Skip to content

Commit ea8379e

Browse files
committed
Merge branch 'heads/canary' into 2096-faustwp---content-replacement-bug
2 parents 19c4997 + bc4838a commit ea8379e

File tree

11 files changed

+124
-110
lines changed

11 files changed

+124
-110
lines changed

.github/workflows/nightly-releases.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222

2323
jobs:
2424
release_nightly_canary:
25+
if: github.repository_owner == 'wpengine'
2526
name: Release Nightly Canary
2627
runs-on: ubuntu-22.04
2728
steps:

.github/workflows/unit-test-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
strategy:
1313
matrix:
14-
wordpress: [ '6.7', '6.6', '6.5', '6.4', '6.3', '6.2']
14+
wordpress: [ '6.8', '6.7', '6.6', '6.5', '6.4', '6.3', '6.2']
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ Docs are MD in [`docs`](docs/). Here are a couple things you should know!
5555
1. Lines can be [highlighted](https://rehype-pretty.pages.dev/#highlight-lines) in code blocks ` ```js {1,3-5}`. There are a variety of advanced highlighting methods, see: https://rehype-pretty.pages.dev/#highlight-lines
5656
2. Lines may be [diffed](https://shiki.style/packages/transformers#transformernotationdiff) in a code block:
5757

58-
```js
59-
console.log('hewwo') // [!code --]
60-
console.log('hello') // [!code ++]
61-
console.log('goodbye')
62-
```
58+
```js
59+
console.log('hewwo') // [!code --]
60+
console.log('hello') // [!code ++]
61+
console.log('goodbye')
62+
```
6363

6464
## WordPress Plugin (FaustWP)
6565

examples/next/block-support/package-lock.json

Lines changed: 58 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/next/block-support/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@faustwp/core": "^3.2.1",
1818
"classnames": "^2.5.1",
1919
"graphql": "^16.10.0",
20-
"next": "^14.2.25",
20+
"next": "^14.2.26",
2121
"react": "^18.2.0",
2222
"react-dom": "^18.2.0",
2323
"sass": "^1.54.9"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dev:next:getting-started": "rimraf examples/next/faustwp-getting-started/.next && npm run dev ---workspace=examples/next/faustwp-getting-started",
2929
"test": "npm run build && npm test --workspace=@faustwp/core --workspace=@faustwp/cli --workspace=@faustwp/blocks --workspace=@faustwp/block-editor-utils",
3030
"test:coverage": "npm run build && npm run test:coverage --workspace=@faustwp/block-editor-utils",
31-
"test:format": "npm run test:format --workspace=@faustwp/cli --workspace=@faustwp/core --workspace=@faustwp/block-editor-utils",
31+
"test:format": "npm run test:format --workspace=@faustwp/cli --workspace=@faustwp/core --workspace=@faustwp/block-editor-utils -- --ignore-path .eslintignore --ignore-pattern CHANGELOG.md",
3232
"wpe-build": "exit 1",
3333
"changeset": "changeset",
3434
"version": "changeset version && node scripts/versionPlugin.js",

packages/block-editor-utils/CHANGELOG.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
// Component.js
3737

3838
Component.config = {
39-
name: 'CreateBlockBlockB',
40-
editorFields: {
41-
textArea: {
42-
type: 'string',
43-
label: 'My Message',
44-
location: 'editor',
45-
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
46-
},
47-
},
39+
name: 'CreateBlockBlockB',
40+
editorFields: {
41+
textArea: {
42+
type: 'string',
43+
label: 'My Message',
44+
location: 'editor',
45+
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
46+
},
47+
},
4848
};
4949
```
5050

@@ -78,9 +78,9 @@
7878

7979
```js
8080
<div
81-
style={styles}
82-
className="rich-text"
83-
dangerouslySetInnerHTML={{ __html: attributes.richText }}
81+
style={styles}
82+
className="rich-text"
83+
dangerouslySetInnerHTML={{ __html: attributes.richText }}
8484
/>
8585
```
8686

@@ -131,9 +131,9 @@
131131
import save from './save';
132132

133133
registerFaustBlock(MyFirstBlock, {
134-
blockJson: metadata,
135-
editFn: Edit,
136-
saveFn: save,
134+
blockJson: metadata,
135+
editFn: Edit,
136+
saveFn: save,
137137
});
138138
```
139139

packages/faustwp-core/CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
export default function Sitemap() {}
3939

4040
export function getServerSideProps(ctx) {
41-
return getSitemapProps(ctx, {
42-
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
43-
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
44-
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
45-
});
41+
return getSitemapProps(ctx, {
42+
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
43+
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
44+
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
45+
});
4646
}
4747
```
4848

@@ -146,7 +146,7 @@
146146
147147
```jsx
148148
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}>
149-
Log Out
149+
Log Out
150150
</ToolbarItem>
151151
```
152152
@@ -252,18 +252,18 @@
252252
import { FaustPage } from '@faustwp/core';
253253

254254
type GetPageData = {
255-
generalSettings: {
256-
title: string;
257-
};
255+
generalSettings: {
256+
title: string;
257+
};
258258
};
259259

260260
type PageProps = {
261-
myProp: string;
261+
myProp: string;
262262
};
263263

264264
const Page: FaustPage<GetPageData, PageProps> = (props) => {
265-
const { myProp, data } = props;
266-
return <></>;
265+
const { myProp, data } = props;
266+
return <></>;
267267
};
268268
```
269269
@@ -332,9 +332,9 @@
332332
export default function Sitemap() {}
333333

334334
export function getServerSideProps(context) {
335-
return getSitemapProps(context, {
336-
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
337-
});
335+
return getSitemapProps(context, {
336+
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
337+
});
338338
}
339339
```
340340
@@ -364,7 +364,7 @@
364364
import { FaustHooks, FaustPlugin } from '@faustwp/core';
365365

366366
export class MyPlugin implements FaustPlugin {
367-
apply(hooks: FaustHooks) {}
367+
apply(hooks: FaustHooks) {}
368368
}
369369
```
370370

0 commit comments

Comments
 (0)