@wordpress/list-reusable-blocks 5.57.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +1,28 @@
1
- // packages/list-reusable-blocks/src/utils/export.ts
2
- import { paramCase as kebabCase } from "change-case";
1
+ import { paramCase } from "change-case";
3
2
  import removeAccents from "remove-accents";
4
3
  import apiFetch from "@wordpress/api-fetch";
5
4
  import { downloadBlob } from "@wordpress/blob";
5
+ // packages/list-reusable-blocks/src/utils/export.ts
6
+ /**
7
+ * Export a reusable block as a JSON file.
8
+ *
9
+ * @param id - The ID of the reusable block to export
10
+ */
6
11
  async function exportReusableBlock(id) {
7
- const postType = await apiFetch({
8
- path: `/wp/v2/types/wp_block`
9
- });
10
- const post = await apiFetch({
11
- path: `/wp/v2/${postType.rest_base}/${id}?context=edit`
12
- });
13
- const title = post.title.raw;
14
- const content = post.content.raw;
15
- const syncStatus = post.wp_pattern_sync_status;
16
- const fileContent = JSON.stringify(
17
- {
18
- __file: "wp_block",
19
- title,
20
- content,
21
- syncStatus
22
- },
23
- null,
24
- 2
25
- );
26
- const fileName = kebabCase(removeAccents(title)) + ".json";
27
- downloadBlob(fileName, fileContent, "application/json");
12
+ const postType = await apiFetch({ path: `/wp/v2/types/wp_block` });
13
+ const post = await apiFetch({ path: `/wp/v2/${postType.rest_base}/${id}?context=edit` });
14
+ const title = post.title.raw;
15
+ const content = post.content.raw;
16
+ const syncStatus = post.wp_pattern_sync_status;
17
+ const fileContent = JSON.stringify({
18
+ __file: "wp_block",
19
+ title,
20
+ content,
21
+ syncStatus
22
+ }, null, 2);
23
+ const fileName = paramCase(removeAccents(title)) + ".json";
24
+ downloadBlob(fileName, fileContent, "application/json");
28
25
  }
29
- var export_default = exportReusableBlock;
30
- export {
31
- export_default as default
32
- };
33
- //# sourceMappingURL=export.mjs.map
26
+ export { exportReusableBlock as default };
27
+
28
+ //# sourceMappingURL=export.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/export.ts"],
4
- "sourcesContent": ["import { paramCase as kebabCase } from 'change-case';\nimport removeAccents from 'remove-accents';\nimport apiFetch from '@wordpress/api-fetch';\nimport { downloadBlob } from '@wordpress/blob';\nimport type { Post, PostType } from './types';\n\n/**\n * Export a reusable block as a JSON file.\n *\n * @param id - The ID of the reusable block to export\n */\nasync function exportReusableBlock( id: number ): Promise< void > {\n\tconst postType = await apiFetch< PostType >( {\n\t\tpath: `/wp/v2/types/wp_block`,\n\t} );\n\n\tconst post = await apiFetch< Post >( {\n\t\tpath: `/wp/v2/${ postType.rest_base }/${ id }?context=edit`,\n\t} );\n\n\tconst title = post.title.raw;\n\tconst content = post.content.raw;\n\tconst syncStatus = post.wp_pattern_sync_status;\n\n\tconst fileContent = JSON.stringify(\n\t\t{\n\t\t\t__file: 'wp_block',\n\t\t\ttitle,\n\t\t\tcontent,\n\t\t\tsyncStatus,\n\t\t},\n\t\tnull,\n\t\t2\n\t);\n\n\tconst fileName = kebabCase( removeAccents( title ) ) + '.json';\n\n\tdownloadBlob( fileName, fileContent, 'application/json' );\n}\n\nexport default exportReusableBlock;\n"],
5
- "mappings": ";AAAA,SAAS,aAAa,iBAAiB;AACvC,OAAO,mBAAmB;AAC1B,OAAO,cAAc;AACrB,SAAS,oBAAoB;AAQ7B,eAAe,oBAAqB,IAA8B;AACjE,QAAM,WAAW,MAAM,SAAsB;AAAA,IAC5C,MAAM;AAAA,EACP,CAAE;AAEF,QAAM,OAAO,MAAM,SAAkB;AAAA,IACpC,MAAM,UAAW,SAAS,SAAU,IAAK,EAAG;AAAA,EAC7C,CAAE;AAEF,QAAM,QAAQ,KAAK,MAAM;AACzB,QAAM,UAAU,KAAK,QAAQ;AAC7B,QAAM,aAAa,KAAK;AAExB,QAAM,cAAc,KAAK;AAAA,IACxB;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,QAAM,WAAW,UAAW,cAAe,KAAM,CAAE,IAAI;AAEvD,eAAc,UAAU,aAAa,kBAAmB;AACzD;AAEA,IAAO,iBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"export.mjs","names":["kebabCase"],"sources":["../../src/utils/export.ts"],"sourcesContent":["import { paramCase as kebabCase } from 'change-case';\nimport removeAccents from 'remove-accents';\nimport apiFetch from '@wordpress/api-fetch';\nimport { downloadBlob } from '@wordpress/blob';\nimport type { Post, PostType } from './types';\n\n/**\n * Export a reusable block as a JSON file.\n *\n * @param id - The ID of the reusable block to export\n */\nasync function exportReusableBlock( id: number ): Promise< void > {\n\tconst postType = await apiFetch< PostType >( {\n\t\tpath: `/wp/v2/types/wp_block`,\n\t} );\n\n\tconst post = await apiFetch< Post >( {\n\t\tpath: `/wp/v2/${ postType.rest_base }/${ id }?context=edit`,\n\t} );\n\n\tconst title = post.title.raw;\n\tconst content = post.content.raw;\n\tconst syncStatus = post.wp_pattern_sync_status;\n\n\tconst fileContent = JSON.stringify(\n\t\t{\n\t\t\t__file: 'wp_block',\n\t\t\ttitle,\n\t\t\tcontent,\n\t\t\tsyncStatus,\n\t\t},\n\t\tnull,\n\t\t2\n\t);\n\n\tconst fileName = kebabCase( removeAccents( title ) ) + '.json';\n\n\tdownloadBlob( fileName, fileContent, 'application/json' );\n}\n\nexport default exportReusableBlock;\n"],"mappings":";;;;;;;;;;AAWA,eAAe,oBAAqB,IAA8B;CACjE,MAAM,WAAW,MAAM,SAAsB,EAC5C,MAAM,wBACP,CAAE;CAEF,MAAM,OAAO,MAAM,SAAkB,EACpC,MAAM,UAAW,SAAS,UAAW,GAAI,GAAI,eAC9C,CAAE;CAEF,MAAM,QAAQ,KAAK,MAAM;CACzB,MAAM,UAAU,KAAK,QAAQ;CAC7B,MAAM,aAAa,KAAK;CAExB,MAAM,cAAc,KAAK,UACxB;EACC,QAAQ;EACR;EACA;EACA;CACD,GACA,MACA,CACD;CAEA,MAAM,WAAWA,UAAW,cAAe,KAAM,CAAE,IAAI;CAEvD,aAAc,UAAU,aAAa,kBAAmB;AACzD"}
@@ -1,14 +1,19 @@
1
1
  // packages/list-reusable-blocks/src/utils/file.ts
2
+ /**
3
+ * Reads the textual content of the given file.
4
+ *
5
+ * @param file - File to read
6
+ * @return Promise that resolves to the content of the file
7
+ */
2
8
  function readTextFile(file) {
3
- const reader = new window.FileReader();
4
- return new Promise((resolve) => {
5
- reader.onload = () => {
6
- resolve(reader.result);
7
- };
8
- reader.readAsText(file);
9
- });
9
+ const reader = new window.FileReader();
10
+ return new Promise((resolve) => {
11
+ reader.onload = () => {
12
+ resolve(reader.result);
13
+ };
14
+ reader.readAsText(file);
15
+ });
10
16
  }
11
- export {
12
- readTextFile
13
- };
14
- //# sourceMappingURL=file.mjs.map
17
+ export { readTextFile };
18
+
19
+ //# sourceMappingURL=file.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/file.ts"],
4
- "sourcesContent": ["/**\n * Reads the textual content of the given file.\n *\n * @param file - File to read\n * @return Promise that resolves to the content of the file\n */\nexport function readTextFile( file: File ): Promise< string > {\n\tconst reader = new window.FileReader();\n\treturn new Promise( ( resolve ) => {\n\t\treader.onload = () => {\n\t\t\tresolve( reader.result as string );\n\t\t};\n\t\treader.readAsText( file );\n\t} );\n}\n"],
5
- "mappings": ";AAMO,SAAS,aAAc,MAAgC;AAC7D,QAAM,SAAS,IAAI,OAAO,WAAW;AACrC,SAAO,IAAI,QAAS,CAAE,YAAa;AAClC,WAAO,SAAS,MAAM;AACrB,cAAS,OAAO,MAAiB;AAAA,IAClC;AACA,WAAO,WAAY,IAAK;AAAA,EACzB,CAAE;AACH;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"file.mjs","names":[],"sources":["../../src/utils/file.ts"],"sourcesContent":["/**\n * Reads the textual content of the given file.\n *\n * @param file - File to read\n * @return Promise that resolves to the content of the file\n */\nexport function readTextFile( file: File ): Promise< string > {\n\tconst reader = new window.FileReader();\n\treturn new Promise( ( resolve ) => {\n\t\treader.onload = () => {\n\t\t\tresolve( reader.result as string );\n\t\t};\n\t\treader.readAsText( file );\n\t} );\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,aAAc,MAAgC;CAC7D,MAAM,SAAS,IAAI,OAAO,WAAW;CACrC,OAAO,IAAI,SAAW,YAAa;EAClC,OAAO,eAAe;GACrB,QAAS,OAAO,MAAiB;EAClC;EACA,OAAO,WAAY,IAAK;CACzB,CAAE;AACH"}
@@ -1,34 +1,33 @@
1
- // packages/list-reusable-blocks/src/utils/import.ts
2
1
  import apiFetch from "@wordpress/api-fetch";
3
2
  import { readTextFile } from "./file.mjs";
3
+ // packages/list-reusable-blocks/src/utils/import.ts
4
+ /**
5
+ * Import a reusable block from a JSON file.
6
+ *
7
+ * @param file - File to import
8
+ * @return Promise returning the imported reusable block
9
+ */
4
10
  async function importReusableBlock(file) {
5
- const fileContent = await readTextFile(file);
6
- let parsedContent;
7
- try {
8
- parsedContent = JSON.parse(fileContent);
9
- } catch {
10
- throw new Error("Invalid JSON file");
11
- }
12
- if (parsedContent.__file !== "wp_block" || !parsedContent.title || !parsedContent.content || typeof parsedContent.title !== "string" || typeof parsedContent.content !== "string" || parsedContent.syncStatus && typeof parsedContent.syncStatus !== "string") {
13
- throw new Error("Invalid pattern JSON file");
14
- }
15
- const postType = await apiFetch({
16
- path: `/wp/v2/types/wp_block`
17
- });
18
- const reusableBlock = await apiFetch({
19
- path: `/wp/v2/${postType.rest_base}`,
20
- data: {
21
- title: parsedContent.title,
22
- content: parsedContent.content,
23
- status: "publish",
24
- meta: parsedContent.syncStatus === "unsynced" ? { wp_pattern_sync_status: parsedContent.syncStatus } : void 0
25
- },
26
- method: "POST"
27
- });
28
- return reusableBlock;
11
+ const fileContent = await readTextFile(file);
12
+ let parsedContent;
13
+ try {
14
+ parsedContent = JSON.parse(fileContent);
15
+ } catch {
16
+ throw new Error("Invalid JSON file");
17
+ }
18
+ if (parsedContent.__file !== "wp_block" || !parsedContent.title || !parsedContent.content || typeof parsedContent.title !== "string" || typeof parsedContent.content !== "string" || parsedContent.syncStatus && typeof parsedContent.syncStatus !== "string") throw new Error("Invalid pattern JSON file");
19
+ const postType = await apiFetch({ path: `/wp/v2/types/wp_block` });
20
+ return await apiFetch({
21
+ path: `/wp/v2/${postType.rest_base}`,
22
+ data: {
23
+ title: parsedContent.title,
24
+ content: parsedContent.content,
25
+ status: "publish",
26
+ meta: parsedContent.syncStatus === "unsynced" ? { wp_pattern_sync_status: parsedContent.syncStatus } : void 0
27
+ },
28
+ method: "POST"
29
+ });
29
30
  }
30
- var import_default = importReusableBlock;
31
- export {
32
- import_default as default
33
- };
34
- //# sourceMappingURL=import.mjs.map
31
+ export { importReusableBlock as default };
32
+
33
+ //# sourceMappingURL=import.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/import.ts"],
4
- "sourcesContent": ["import apiFetch from '@wordpress/api-fetch';\nimport { readTextFile } from './file';\nimport type {\n\tParsedContent,\n\tPostType,\n\tReusableBlock,\n\tReusableBlockData,\n} from './types';\n\n/**\n * Import a reusable block from a JSON file.\n *\n * @param file - File to import\n * @return Promise returning the imported reusable block\n */\nasync function importReusableBlock( file: File ): Promise< ReusableBlock > {\n\tconst fileContent = await readTextFile( file );\n\tlet parsedContent: ParsedContent;\n\n\ttry {\n\t\tparsedContent = JSON.parse( fileContent );\n\t} catch {\n\t\tthrow new Error( 'Invalid JSON file' );\n\t}\n\n\tif (\n\t\tparsedContent.__file !== 'wp_block' ||\n\t\t! parsedContent.title ||\n\t\t! parsedContent.content ||\n\t\ttypeof parsedContent.title !== 'string' ||\n\t\ttypeof parsedContent.content !== 'string' ||\n\t\t( parsedContent.syncStatus &&\n\t\t\ttypeof parsedContent.syncStatus !== 'string' )\n\t) {\n\t\tthrow new Error( 'Invalid pattern JSON file' );\n\t}\n\n\tconst postType = await apiFetch< PostType >( {\n\t\tpath: `/wp/v2/types/wp_block`,\n\t} );\n\n\tconst reusableBlock = await apiFetch< ReusableBlock >( {\n\t\tpath: `/wp/v2/${ postType.rest_base }`,\n\t\tdata: {\n\t\t\ttitle: parsedContent.title,\n\t\t\tcontent: parsedContent.content,\n\t\t\tstatus: 'publish',\n\t\t\tmeta:\n\t\t\t\tparsedContent.syncStatus === 'unsynced'\n\t\t\t\t\t? { wp_pattern_sync_status: parsedContent.syncStatus }\n\t\t\t\t\t: undefined,\n\t\t} satisfies ReusableBlockData,\n\t\tmethod: 'POST',\n\t} );\n\n\treturn reusableBlock;\n}\n\nexport default importReusableBlock;\n"],
5
- "mappings": ";AAAA,OAAO,cAAc;AACrB,SAAS,oBAAoB;AAc7B,eAAe,oBAAqB,MAAuC;AAC1E,QAAM,cAAc,MAAM,aAAc,IAAK;AAC7C,MAAI;AAEJ,MAAI;AACH,oBAAgB,KAAK,MAAO,WAAY;AAAA,EACzC,QAAQ;AACP,UAAM,IAAI,MAAO,mBAAoB;AAAA,EACtC;AAEA,MACC,cAAc,WAAW,cACzB,CAAE,cAAc,SAChB,CAAE,cAAc,WAChB,OAAO,cAAc,UAAU,YAC/B,OAAO,cAAc,YAAY,YAC/B,cAAc,cACf,OAAO,cAAc,eAAe,UACpC;AACD,UAAM,IAAI,MAAO,2BAA4B;AAAA,EAC9C;AAEA,QAAM,WAAW,MAAM,SAAsB;AAAA,IAC5C,MAAM;AAAA,EACP,CAAE;AAEF,QAAM,gBAAgB,MAAM,SAA2B;AAAA,IACtD,MAAM,UAAW,SAAS,SAAU;AAAA,IACpC,MAAM;AAAA,MACL,OAAO,cAAc;AAAA,MACrB,SAAS,cAAc;AAAA,MACvB,QAAQ;AAAA,MACR,MACC,cAAc,eAAe,aAC1B,EAAE,wBAAwB,cAAc,WAAW,IACnD;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EACT,CAAE;AAEF,SAAO;AACR;AAEA,IAAO,iBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"import.mjs","names":[],"sources":["../../src/utils/import.ts"],"sourcesContent":["import apiFetch from '@wordpress/api-fetch';\nimport { readTextFile } from './file';\nimport type {\n\tParsedContent,\n\tPostType,\n\tReusableBlock,\n\tReusableBlockData,\n} from './types';\n\n/**\n * Import a reusable block from a JSON file.\n *\n * @param file - File to import\n * @return Promise returning the imported reusable block\n */\nasync function importReusableBlock( file: File ): Promise< ReusableBlock > {\n\tconst fileContent = await readTextFile( file );\n\tlet parsedContent: ParsedContent;\n\n\ttry {\n\t\tparsedContent = JSON.parse( fileContent );\n\t} catch {\n\t\tthrow new Error( 'Invalid JSON file' );\n\t}\n\n\tif (\n\t\tparsedContent.__file !== 'wp_block' ||\n\t\t! parsedContent.title ||\n\t\t! parsedContent.content ||\n\t\ttypeof parsedContent.title !== 'string' ||\n\t\ttypeof parsedContent.content !== 'string' ||\n\t\t( parsedContent.syncStatus &&\n\t\t\ttypeof parsedContent.syncStatus !== 'string' )\n\t) {\n\t\tthrow new Error( 'Invalid pattern JSON file' );\n\t}\n\n\tconst postType = await apiFetch< PostType >( {\n\t\tpath: `/wp/v2/types/wp_block`,\n\t} );\n\n\tconst reusableBlock = await apiFetch< ReusableBlock >( {\n\t\tpath: `/wp/v2/${ postType.rest_base }`,\n\t\tdata: {\n\t\t\ttitle: parsedContent.title,\n\t\t\tcontent: parsedContent.content,\n\t\t\tstatus: 'publish',\n\t\t\tmeta:\n\t\t\t\tparsedContent.syncStatus === 'unsynced'\n\t\t\t\t\t? { wp_pattern_sync_status: parsedContent.syncStatus }\n\t\t\t\t\t: undefined,\n\t\t} satisfies ReusableBlockData,\n\t\tmethod: 'POST',\n\t} );\n\n\treturn reusableBlock;\n}\n\nexport default importReusableBlock;\n"],"mappings":";;;;;;;;;AAeA,eAAe,oBAAqB,MAAuC;CAC1E,MAAM,cAAc,MAAM,aAAc,IAAK;CAC7C,IAAI;CAEJ,IAAI;EACH,gBAAgB,KAAK,MAAO,WAAY;CACzC,QAAQ;EACP,MAAM,IAAI,MAAO,mBAAoB;CACtC;CAEA,IACC,cAAc,WAAW,cACzB,CAAE,cAAc,SAChB,CAAE,cAAc,WAChB,OAAO,cAAc,UAAU,YAC/B,OAAO,cAAc,YAAY,YAC/B,cAAc,cACf,OAAO,cAAc,eAAe,UAErC,MAAM,IAAI,MAAO,2BAA4B;CAG9C,MAAM,WAAW,MAAM,SAAsB,EAC5C,MAAM,wBACP,CAAE;CAgBF,OAAO,MAdqB,SAA2B;EACtD,MAAM,UAAW,SAAS;EAC1B,MAAM;GACL,OAAO,cAAc;GACrB,SAAS,cAAc;GACvB,QAAQ;GACR,MACC,cAAc,eAAe,aAC1B,EAAE,wBAAwB,cAAc,WAAW,IACnD,KAAA;EACL;EACA,QAAQ;CACT,CAAE;AAGH"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/list-reusable-blocks",
3
- "version": "5.57.0",
3
+ "version": "6.1.0",
4
4
  "description": "Adding Export/Import support to the reusable blocks listing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,14 +20,13 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=18.12.0"
23
+ "node": ">=22.13.0"
24
24
  },
25
25
  "files": [
26
26
  "build",
27
27
  "build-module",
28
28
  "build-style",
29
- "build-types",
30
- "*.md"
29
+ "build-types"
31
30
  ],
32
31
  "main": "build/index.cjs",
33
32
  "module": "build-module/index.mjs",
@@ -43,14 +42,14 @@
43
42
  "wpScript": true,
44
43
  "types": "build-types",
45
44
  "dependencies": {
46
- "@wordpress/api-fetch": "^7.57.0",
47
- "@wordpress/base-styles": "^13.3.0",
48
- "@wordpress/blob": "^4.57.0",
49
- "@wordpress/components": "^42.0.0",
50
- "@wordpress/compose": "^8.10.0",
51
- "@wordpress/core-data": "^8.2.0",
52
- "@wordpress/element": "^9.0.0",
53
- "@wordpress/i18n": "^6.30.0",
45
+ "@wordpress/api-fetch": "^8.1.0",
46
+ "@wordpress/base-styles": "^15.0.0",
47
+ "@wordpress/blob": "^5.1.0",
48
+ "@wordpress/components": "^44.0.0",
49
+ "@wordpress/compose": "^9.1.0",
50
+ "@wordpress/core-data": "^9.1.0",
51
+ "@wordpress/element": "^10.1.0",
52
+ "@wordpress/i18n": "^7.1.0",
54
53
  "change-case": "^4.1.2",
55
54
  "remove-accents": "^0.5.0"
56
55
  },
@@ -67,5 +66,5 @@
67
66
  "publishConfig": {
68
67
  "access": "public"
69
68
  },
70
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
69
+ "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
71
70
  }
package/CHANGELOG.md DELETED
@@ -1,317 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 5.57.0 (2026-10-07)
6
-
7
- ## 5.56.0 (2026-09-23)
8
-
9
- ## 5.55.0 (2026-09-10)
10
-
11
- ### Bug Fixes
12
-
13
- - Normalize special characters in exported reusable block filenames to prevent broken or unreadable files. ([#77033](https://github.com/WordPress/gutenberg/pull/77033))
14
-
15
- ## 5.54.0 (2026-08-26)
16
-
17
- ## 5.53.0 (2026-08-12)
18
-
19
-
20
- ## 5.52.0 (2026-07-29)
21
-
22
- ### Internal
23
-
24
- - Update `exports` to use subpath patterns instead of deprecated trailing `/` folder mappings ([#80270](https://github.com/WordPress/gutenberg/pull/80270)).
25
-
26
- ## 5.51.0 (2026-07-14)
27
-
28
- ### Enhancements
29
-
30
- - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
31
-
32
- ## 5.50.0 (2026-07-01)
33
-
34
- ## 5.49.0 (2026-06-24)
35
-
36
- ## 5.48.1 (2026-06-16)
37
-
38
- ## 5.48.0 (2026-06-10)
39
-
40
- ### Code Quality
41
-
42
- - Add missing `@types/react` dependency. [#78882](https://github.com/WordPress/gutenberg/pull/78882).
43
-
44
- ## 5.47.0 (2026-05-27)
45
-
46
- ### Internal
47
-
48
- - Import form: remove `Notice` margin and padding overrides ([#78231](https://github.com/WordPress/gutenberg/pull/78231)).
49
-
50
- ## 5.46.0 (2026-05-14)
51
-
52
- ## 5.45.0 (2026-04-29)
53
-
54
- ## 5.44.0 (2026-04-15)
55
-
56
- ## 5.43.0 (2026-04-01)
57
-
58
- ## 5.42.0 (2026-03-18)
59
-
60
- ## 5.41.0 (2026-03-04)
61
-
62
- ## 5.40.0 (2026-02-18)
63
-
64
- ## 5.39.0 (2026-01-29)
65
-
66
- ## 5.38.0 (2026-01-16)
67
-
68
- ## 5.36.0 (2025-11-26)
69
-
70
- ## 5.35.0 (2025-11-12)
71
-
72
- ## 5.34.0 (2025-10-29)
73
-
74
- ## 5.33.0 (2025-10-17)
75
-
76
- ## 5.32.0 (2025-10-01)
77
-
78
- ## 5.31.0 (2025-09-17)
79
-
80
- ## 5.30.0 (2025-09-03)
81
-
82
- ## 5.29.0 (2025-08-20)
83
-
84
- ## 5.28.0 (2025-08-07)
85
-
86
- ## 5.27.0 (2025-07-23)
87
-
88
- ## 5.26.0 (2025-06-25)
89
-
90
- ## 5.25.0 (2025-06-04)
91
-
92
- ## 5.24.0 (2025-05-22)
93
-
94
- ## 5.23.0 (2025-05-07)
95
-
96
- ## 5.22.0 (2025-04-11)
97
-
98
- ## 5.21.0 (2025-03-27)
99
-
100
- ## 5.20.0 (2025-03-13)
101
-
102
- ## 5.19.0 (2025-02-28)
103
-
104
- ## 5.18.0 (2025-02-12)
105
-
106
- ## 5.17.0 (2025-01-29)
107
-
108
- ## 5.16.0 (2025-01-15)
109
-
110
- ## 5.15.0 (2025-01-02)
111
-
112
- ## 5.14.0 (2024-12-11)
113
-
114
- ## 5.13.0 (2024-11-27)
115
-
116
- ## 5.12.0 (2024-11-16)
117
-
118
- ## 5.11.0 (2024-10-30)
119
-
120
- ## 5.10.0 (2024-10-16)
121
-
122
- ## 5.9.0 (2024-10-03)
123
-
124
- ## 5.8.0 (2024-09-19)
125
-
126
- ## 5.7.0 (2024-09-05)
127
-
128
- ## 5.6.0 (2024-08-21)
129
-
130
- ## 5.5.0 (2024-08-07)
131
-
132
- ## 5.4.0 (2024-07-24)
133
-
134
- ## 5.3.0 (2024-07-10)
135
-
136
- ## 5.2.0 (2024-06-26)
137
-
138
- ## 5.1.0 (2024-06-15)
139
-
140
- ## 5.0.0 (2024-05-31)
141
-
142
- ### Breaking Changes
143
-
144
- - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
145
-
146
- ## 4.35.0 (2024-05-16)
147
-
148
- ## 4.34.0 (2024-05-02)
149
-
150
- ## 4.33.0 (2024-04-19)
151
-
152
- ## 4.32.0 (2024-04-03)
153
-
154
- ## 4.31.0 (2024-03-21)
155
-
156
- ## 4.30.0 (2024-03-06)
157
-
158
- ## 4.29.0 (2024-02-21)
159
-
160
- ## 4.28.0 (2024-02-09)
161
-
162
- ## 4.27.0 (2024-01-24)
163
-
164
- ## 4.26.0 (2024-01-10)
165
-
166
- ## 4.25.0 (2023-12-13)
167
-
168
- ## 4.24.0 (2023-11-29)
169
-
170
- ## 4.23.0 (2023-11-16)
171
-
172
- ## 4.22.0 (2023-11-02)
173
-
174
- ## 4.21.0 (2023-10-18)
175
-
176
- ## 4.20.0 (2023-10-05)
177
-
178
- ## 4.19.0 (2023-09-20)
179
-
180
- ## 4.18.0 (2023-08-31)
181
-
182
- ## 4.17.0 (2023-08-16)
183
-
184
- ## 4.16.0 (2023-08-10)
185
-
186
- ## 4.15.0 (2023-07-20)
187
-
188
- ## 4.14.0 (2023-07-05)
189
-
190
- ## 4.13.0 (2023-06-23)
191
-
192
- ## 4.12.0 (2023-06-07)
193
-
194
- ## 4.11.0 (2023-05-24)
195
-
196
- ## 4.10.0 (2023-05-10)
197
-
198
- ## 4.9.0 (2023-04-26)
199
-
200
- ## 4.8.0 (2023-04-12)
201
-
202
- ## 4.7.0 (2023-03-29)
203
-
204
- ## 4.6.0 (2023-03-15)
205
-
206
- ## 4.5.0 (2023-03-01)
207
-
208
- ## 4.4.0 (2023-02-15)
209
-
210
- ## 4.3.0 (2023-02-01)
211
-
212
- ## 4.2.0 (2023-01-11)
213
-
214
- ## 4.1.0 (2023-01-02)
215
-
216
- ## 4.0.0 (2022-12-14)
217
-
218
- ### Breaking Changes
219
-
220
- - Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
221
-
222
- ## 3.20.0 (2022-11-16)
223
-
224
- ## 3.19.0 (2022-11-02)
225
-
226
- ## 3.18.0 (2022-10-19)
227
-
228
- ## 3.17.0 (2022-10-05)
229
-
230
- ## 3.16.0 (2022-09-21)
231
-
232
- ## 3.15.0 (2022-09-13)
233
-
234
- ## 3.14.0 (2022-08-24)
235
-
236
- ## 3.13.0 (2022-08-10)
237
-
238
- ## 3.12.0 (2022-07-27)
239
-
240
- ## 3.11.0 (2022-07-13)
241
-
242
- ## 3.10.0 (2022-06-29)
243
-
244
- ## 3.9.0 (2022-06-15)
245
-
246
- ## 3.8.0 (2022-06-01)
247
-
248
- ## 3.7.0 (2022-05-18)
249
-
250
- ## 3.6.0 (2022-05-04)
251
-
252
- ## 3.5.0 (2022-04-21)
253
-
254
- ## 3.4.0 (2022-04-08)
255
-
256
- ## 3.3.0 (2022-03-23)
257
-
258
- ## 3.2.0 (2022-03-11)
259
-
260
- ## 3.1.0 (2022-01-27)
261
-
262
- ## 3.0.0 (2021-07-29)
263
-
264
- ### Breaking Changes
265
-
266
- - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
267
-
268
- ## 2.2.0 (2021-07-21)
269
-
270
- ## 2.1.0 (2021-05-20)
271
-
272
- ## 2.0.0 (2021-05-14)
273
-
274
- ### Breaking Changes
275
-
276
- - Drop support for Internet Explorer 11 ([#31110](https://github.com/WordPress/gutenberg/pull/31110)). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
277
- - Increase the minimum Node.js version to v12 matching Long Term Support releases ([#31270](https://github.com/WordPress/gutenberg/pull/31270)). Learn more at https://nodejs.org/en/about/releases/.
278
-
279
- ## 1.26.0 (2021-03-17)
280
-
281
- ## 1.1.18 (2019-01-03)
282
-
283
- ## 1.1.17 (2018-12-12)
284
-
285
- ## 1.1.16 (2018-11-30)
286
-
287
- ## 1.1.15 (2018-11-22)
288
-
289
- ## 1.1.14 (2018-11-21)
290
-
291
- ## 1.1.13 (2018-11-20)
292
-
293
- ## 1.1.12 (2018-11-15)
294
-
295
- ## 1.1.11 (2018-11-12)
296
-
297
- ## 1.1.10 (2018-11-10)
298
-
299
- ## 1.1.9 (2018-11-09)
300
-
301
- ## 1.1.8 (2018-11-09)
302
-
303
- ## 1.1.7 (2018-11-03)
304
-
305
- ## 1.1.6 (2018-10-30)
306
-
307
- ## 1.1.4 (2018-10-22)
308
-
309
- ## 1.1.3 (2018-10-19)
310
-
311
- ## 1.1.2 (2018-10-18)
312
-
313
- ## 1.1.0 (2018-10-10)
314
-
315
- ### New Features
316
-
317
- - Initial public release.
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/types.ts"],
4
- "sourcesContent": ["import type { Post as CorePost, Type } from '@wordpress/core-data';\n\nexport interface ImportDropdownProps {\n\tonUpload: ( data: ReusableBlock ) => void;\n}\n\nexport interface ImportFormProps {\n\tinstanceId: string | number;\n\tonUpload: ( reusableBlock: ReusableBlock ) => void;\n}\n\nexport type PostType = Type;\n\nexport type Post = CorePost & { wp_pattern_sync_status?: string };\n\nexport interface ParsedContent {\n\t__file: string;\n\ttitle: string;\n\tcontent: string;\n\tsyncStatus?: string;\n\t[ key: string ]: unknown;\n}\n\nexport interface ReusableBlockMeta {\n\twp_pattern_sync_status?: string;\n}\n\nexport interface ReusableBlockData {\n\ttitle: string;\n\tcontent: string;\n\tstatus: string;\n\tmeta?: ReusableBlockMeta;\n}\n\nexport interface ReusableBlock {\n\tid: number;\n\ttitle: {\n\t\traw: string;\n\t\trendered: string;\n\t};\n\tcontent: {\n\t\traw: string;\n\t\trendered: string;\n\t};\n\tstatus: string;\n\t[ key: string ]: unknown;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }