Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 14, 2023
1 parent c79c8c2 commit 40c37d0
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 71 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-drinks-wink.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/eleven-elephants-raise.md

This file was deleted.

31 changes: 0 additions & 31 deletions .changeset/sour-boxes-cheer.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/next/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@apollo/client": "^3.8.0",
"@apollo/experimental-nextjs-app-support": "^0.5.1",
"@faustwp/cli": "^1.2.1",
"@faustwp/core": "^1.2.0",
"@faustwp/core": "^1.3.0",
"@faustwp/experimental-app-router": "^0.2.2",
"graphql": "^16.7.1",
"next": "^14.0.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/next/block-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@apollo/client": "^3.8.8",
"@faustwp/blocks": "2.0.0",
"@faustwp/cli": "^1.2.1",
"@faustwp/core": "^1.2.0",
"@faustwp/core": "^1.3.0",
"@wordpress/base-styles": "^4.38.0",
"@wordpress/block-library": "^8.24.0",
"classnames": "^2.3.1",
Expand All @@ -26,7 +26,7 @@
},
"devDependencies": {
"@wordpress/scripts": "26.18.0",
"@faustwp/block-editor-utils": "0.0.5"
"@faustwp/block-editor-utils": "0.1.0"
},
"engines": {
"node": ">=18",
Expand Down
2 changes: 1 addition & 1 deletion examples/next/faustwp-getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@apollo/client": "^3.6.6",
"@faustwp/cli": "^1.2.1",
"@faustwp/core": "^1.2.0",
"@faustwp/core": "^1.3.0",
"@wordpress/base-styles": "^4.36.0",
"@wordpress/block-library": "^7.19.0",
"classnames": "^2.3.1",
Expand Down
36 changes: 36 additions & 0 deletions packages/block-editor-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @faustwp/block-editor-utils

## 0.1.0

### Minor Changes

- 8dcda28: Add support for RichText control fields.

Add a `source` and `selector` in your block attributes string field:

```json
...
"attributes": {
"richText": {
"type": "string",
"source": "html",
"selector": ".rich-text",
"default": "Hello World"
}
}
```

Then in your component definition make sure the selector specifier matches the component you want to render as rich text:

```js
<div
style={styles}
className="rich-text"
dangerouslySetInnerHTML={{ __html: attributes.richText }}
/>
```

Once the blocks are synced you will be able to use it as a RichText field.

### Patch Changes

- 66c1e24: Publish Readme to NPM

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustwp/block-editor-utils",
"version": "0.0.5",
"version": "0.1.0",
"description": "Faust Block Editor Utils Package",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
30 changes: 30 additions & 0 deletions packages/faustwp-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @faustwp/core

## 1.3.0

### Minor Changes

- c79c8c2: Added the ability to provide multiple queries to a given Faust Template:

```js
import {GET_POST, GET_LAYOUT} from './queries.js'

export default function Component(props) {
}

Component.queries = [
{
query: GET_LAYOUT
},
{
query: GET_POST,
variables: (seedNode, ctx) {
return {
id: seedNode.databaseId,
asPreview: ctx?.asPreview
}
}
}
]
```
**Note:** Your Faust template can use either `Component.queries` or `Component.query`, but not both.
## 1.2.0
### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faustwp/core",
"version": "1.2.0",
"version": "1.3.0",
"description": "Faust is a framework that aims to make headless WordPress as streamlined as classic WordPress for both developers and publishers",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down

0 comments on commit 40c37d0

Please sign in to comment.