Skip to content

Commit 5692a13

Browse files
committed
Merge branch 'develop' into trunk
2 parents f145ff8 + f93957d commit 5692a13

33 files changed

+2988
-381
lines changed

.github/workflows/build-release-zip.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

1919
- name: Cache node_modules
2020
id: cache-node-modules
21-
uses: actions/cache@v4
21+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
2222
env:
2323
cache-name: cache-node-modules
2424
with:
@@ -29,7 +29,7 @@ jobs:
2929
run: composer install --no-dev -o
3030

3131
- name: Setup node version and npm cache
32-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
3333
with:
3434
node-version-file: .nvmrc
3535
cache: npm
@@ -42,4 +42,4 @@ jobs:
4242
run: npm run build
4343

4444
- name: Generate ZIP file
45-
uses: 10up/action-wordpress-plugin-build-zip@stable
45+
uses: 10up/action-wordpress-plugin-build-zip@b9e621e1261ccf51592b6f3943e4dc4518fca0d1 # v1.0.2

.github/workflows/close-stale-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
stale:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/stale@v9
18+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1919
with:
2020
days-before-stale: 7
2121
days-before-close: 7
@@ -33,4 +33,4 @@ jobs:
3333
close-issue-reason: 'not_planned'
3434
any-of-labels: 'needs:feedback'
3535
remove-stale-when-updated: true
36-
36+

.github/workflows/cypress.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: E2E test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build:
10+
uses: 10up/embed-block-figma/.github/workflows/build-release-zip.yml@develop
11+
12+
cypress:
13+
needs: build
14+
name: ${{ matrix.core.name }}
15+
runs-on: ubuntu-latest
16+
if: always()
17+
18+
strategy:
19+
matrix:
20+
core:
21+
- {name: 'WP latest', version: 'latest'}
22+
- {name: 'WP minimum', version: 'WordPress/WordPress#6.6'}
23+
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
29+
- name: Download built zip
30+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
31+
with:
32+
name: ${{ github.event.repository.name }}
33+
path: ${{ github.event.repository.name }}
34+
35+
- name: Display structure of downloaded files
36+
run: ls -R
37+
working-directory: ${{ github.event.repository.name }}
38+
39+
- name: Install node
40+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
41+
with:
42+
node-version-file: '.nvmrc'
43+
44+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
45+
id: cache-node
46+
with:
47+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
48+
path: |
49+
node_modules
50+
~/.cache
51+
~/.npm
52+
53+
- run: npm ci
54+
if: ${{ steps.cache-node.outputs.cache-hit != 'true' }}
55+
56+
- name: Set the core version and plugins config
57+
run: ./tests/bin/set-wp-config.js --core=${{ matrix.core.version }} --plugins=./${{ github.event.repository.name }}
58+
59+
- name: Set up WP environment
60+
run: npm run env:start
61+
62+
- name: Test
63+
run: npm run cypress:run
64+
65+
- name: Upload artifacts
66+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
67+
if: failure()
68+
with:
69+
name: cypress-artifact-embed-block-figma
70+
retention-days: 2
71+
path: |
72+
${{ github.workspace }}/tests/cypress/screenshots/
73+
${{ github.workspace }}/tests/cypress/videos/
74+
${{ github.workspace }}/tests/cypress/logs/

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
1920
- name: Dependency Review
20-
uses: actions/dependency-review-action@v4
21+
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3
2122
with:
2223
license-check: true
2324
vulnerability-check: false

.github/workflows/eslint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Setup node and npm cache
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2626
with:
2727
node-version-file: .nvmrc
2828
cache: npm
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Get updated JS files
3434
id: changed-files
35-
uses: tj-actions/changed-files@v42
35+
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
3636
with:
3737
files: |
3838
**/*.js

.github/workflows/php-compat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Setup proper PHP version
26-
uses: shivammathur/setup-php@v2
26+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
2727
with:
2828
php-version: 8.2
2929

@@ -32,7 +32,7 @@ jobs:
3232
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3333

3434
- name: Cache dependencies
35-
uses: actions/cache@v4
35+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
3636
with:
3737
path: ${{ steps.composer-cache.outputs.dir }}
3838
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/phpcs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Setup proper PHP version
25-
uses: shivammathur/setup-php@v2
25+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
2626
with:
2727
php-version: 8.2
2828

@@ -31,15 +31,15 @@ jobs:
3131
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3232

3333
- name: Cache dependencies
34-
uses: actions/cache@v4
34+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
3535
with:
3636
path: ${{ steps.composer-cache.outputs.dir }}
3737
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3838
restore-keys: ${{ runner.os }}-composer-
3939

4040
- name: Get changed files
4141
id: changed-files
42-
uses: tj-actions/changed-files@v42
42+
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
4343
with:
4444
files: |
4545
**/*.php

.github/workflows/wordpress-plugin-asset-update.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

1616
- name: Setup node version
17-
uses: actions/setup-node@v4
17+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1818
with:
1919
node-version-file: .nvmrc
2020
cache: npm
@@ -26,7 +26,7 @@ jobs:
2626
composer install --no-dev -o
2727
2828
- name: WordPress.org plugin asset/readme update
29-
uses: 10up/action-wordpress-plugin-asset-update@stable
29+
uses: 10up/action-wordpress-plugin-asset-update@2480306f6f693672726d08b5917ea114cb2825f7 # v2.2.0
3030
env:
3131
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
3232
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

.github/workflows/wordpress-plugin-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

1616
- name: Install Composer dependencies
1717
run: composer install --no-dev
@@ -23,15 +23,15 @@ jobs:
2323
2424
- name: WordPress Plugin Deploy
2525
id: deploy
26-
uses: 10up/action-wordpress-plugin-deploy@stable
26+
uses: 10up/action-wordpress-plugin-deploy@54bd289b8525fd23a5c365ec369185f2966529c2 # v2.3.0
2727
with:
2828
generate-zip: true
2929
env:
3030
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
3131
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
3232

3333
- name: Upload release asset
34-
uses: actions/upload-release-asset@v1
34+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
with:

.github/workflows/wordpress-version-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: WordPress version checker
21-
uses: skaut/wordpress-version-checker@master
21+
uses: skaut/wordpress-version-checker@9d247334f5b30202cb9c1f4aee74c52f37399f69 # v2.2.3
2222
with:
2323
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ Thumbs.db
3434
Desktop.ini
3535
/debug.log
3636
/db.php
37+
38+
# Tests
39+
tests/**

.wordpress-org/blueprints/blueprint.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,17 @@
55
"php": "7.4",
66
"wp": "latest"
77
},
8-
"phpExtensionBundles": [
9-
"kitchen-sink"
10-
],
118
"features": {
129
"networking": true
1310
},
1411
"steps": [
1512
{
1613
"step": "login",
17-
"username": "admin",
18-
"password": "password"
14+
"username": "admin"
1915
},
2016
{
2117
"step": "installPlugin",
22-
"pluginZipFile": {
18+
"pluginData": {
2319
"resource": "wordpress.org\/plugins",
2420
"slug": "embed-block-figma"
2521
},

.wordpress-org/blueprints/demo-data.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<wp:author><wp:author_id>1</wp:author_id><wp:author_login><![CDATA[admin]]></wp:author_login><wp:author_email><![CDATA[admin@localhost.com]]></wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
3939

40-
40+
4141
<generator>https://wordpress.org/?v=6.6.1</generator>
4242

4343
<item>
@@ -47,9 +47,9 @@
4747
<dc:creator><![CDATA[admin]]></dc:creator>
4848
<guid isPermaLink="false">https://playground.wordpress.net/scope:0.1624312760462985/?page_id=7</guid>
4949
<description></description>
50-
<content:encoded><![CDATA[<!-- wp:embed {"url":"https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-Filesss","type":"rich","providerNameSlug":"figma","responsive":true,"className":"wp-embed-aspect-4-3 wp-has-aspect-ratio"} -->
50+
<content:encoded><![CDATA[<!-- wp:embed {"url":"https://www.figma.com/proto/nrPSsILSYjesyc5UHjYYa4/Embed-Kit-2.0-examples?node-id=5-3&starting-point-node-id=5%3A3","type":"rich","providerNameSlug":"figma","responsive":true,"className":"wp-embed-aspect-4-3 wp-has-aspect-ratio"} -->
5151
<figure class="wp-block-embed is-type-rich is-provider-figma wp-block-embed-figma wp-embed-aspect-4-3 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
52-
https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-Filesss
52+
https://www.figma.com/proto/nrPSsILSYjesyc5UHjYYa4/Embed-Kit-2.0-examples?node-id=5-3&starting-point-node-id=5%3A3
5353
</div></figure>
5454
<!-- /wp:embed -->]]></content:encoded>
5555
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
@@ -74,4 +74,3 @@ https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-Filesss
7474
</item>
7575
</channel>
7676
</rss>
77-

.wp-env.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"plugins": ["."],
3+
"env": {
4+
"tests": {
5+
"mappings": {
6+
"wp-cli.yml": "./tests/bin/wp-cli.yml"
7+
}
8+
}
9+
}
10+
}

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7+
## [0.4.0] - 2025-05-19
8+
**Note that this release bumps the WordPress minimum version from 6.4 to 6.6.**
9+
10+
### Changed
11+
- Bump WordPress "tested up to" version 6.8 (props [@thrijith](https://github.com/thrijith), [@jeffpaul](https://github.com/jeffpaul) via [#42](https://github.com/10up/embed-block-figma/pull/42), [#43](https://github.com/10up/embed-block-figma/pull/43), [#48](https://github.com/10up/embed-block-figma/pull/48), [#49](https://github.com/10up/embed-block-figma/pull/49)).
12+
- Bump WordPress "requires at least" version 6.6 (props [@thrijith](https://github.com/thrijith), [@jeffpaul](https://github.com/jeffpaul) via [#42](https://github.com/10up/embed-block-figma/pull/42), [#43](https://github.com/10up/embed-block-figma/pull/43), [#48](https://github.com/10up/embed-block-figma/pull/48), [#49](https://github.com/10up/embed-block-figma/pull/49)).
13+
- Bump Support Level from `Beta` to `Stable` (props [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter) via [#52](https://github.com/10up/embed-block-figma/pull/52)).
14+
15+
### Security
16+
- Bump `express` from 4.21.1 to 4.21.2 (props [@dependabot](https://github.com/apps/dependabot), [@dkotter](https://github.com/dkotter) via [#47](https://github.com/10up/embed-block-figma/pull/47)).
17+
- Bump `body-parser` from 1.20.2 to 1.20.3 (props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh) via [#38](https://github.com/10up/embed-block-figma/pull/38)).
18+
- Bump `http-proxy-middleware` from 2.0.7 to 2.0.9 and `tar-fs` from 2.1.1 to 3.0.8 (props [@dependabot](https://github.com/apps/dependabot), [@dkotter](https://github.com/dkotter) via [#53](https://github.com/10up/embed-block-figma/pull/53)).
19+
20+
### Developer
21+
- Add E2E tests (props [@sksaju](https://github.com/sksaju), [@jeffpaul](https://github.com/jeffpaul), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#37](https://github.com/10up/embed-block-figma/pull/37)).
22+
- Update badges in the `README.md` file (props [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter) via [#39](https://github.com/10up/embed-block-figma/pull/39), [#51](https://github.com/10up/embed-block-figma/pull/51)).
23+
- Update the plugin preview blueprint to fix errors (props [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter) via [#50](https://github.com/10up/embed-block-figma/pull/50)).
24+
- Update all third-party actions our workflows rely on to use versions based on specific commit hashes (props [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter) via [#45](https://github.com/10up/embed-block-figma/pull/45)).
25+
726
## [0.3.1] - 2024-09-05
827
**Initial plugin release on WordPress.org 🎉**
928

@@ -35,6 +54,7 @@ All notable changes to this project will be documented in this file, per [the Ke
3554
- Initial private plugin release.
3655

3756
[Unreleased]: https://github.com/10up/embed-block-figma/compare/trunk...develop
57+
[0.4.0]: https://github.com/10up/embed-block-figma/compare/0.3.1...0.4.0
3858
[0.3.1]: https://github.com/10up/embed-block-figma/compare/0.3.0...0.3.1
3959
[0.3.0]: https://github.com/10up/embed-block-figma/compare/0.2.0...0.3.0
4060
[0.2.0]: https://github.com/10up/embed-block-figma/compare/0.1.0...0.2.0

CREDITS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo
1010

1111
Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc.
1212

13-
[Darin Kotter (@dkotter)](https://github.com/dkotter), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Konstantinos Galanakis (@kmgalanakis)](https://github.com/kmgalanakis), [Ankit Gupta (@ankitguptaindia)](https://github.com/ankitguptaindia), [Fabian Kägy (@fabiankaegy)](https://github.com/fabiankaegy), [Zubair Bhatti](https://www.linkedin.com/in/zbhatti89/), [Peter Sorensen (@psorensen)](https://github.com/psorensen), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith).
13+
[Darin Kotter (@dkotter)](https://github.com/dkotter), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Konstantinos Galanakis (@kmgalanakis)](https://github.com/kmgalanakis), [Ankit Gupta (@ankitguptaindia)](https://github.com/ankitguptaindia), [Fabian Kägy (@fabiankaegy)](https://github.com/fabiankaegy), [Zubair Bhatti](https://www.linkedin.com/in/zbhatti89/), [Peter Sorensen (@psorensen)](https://github.com/psorensen), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Shazahan Kabir Saju (@sksaju)](https://github.com/sksaju).
1414

1515
## Libraries
1616

0 commit comments

Comments
 (0)