@wordpress/edit-post 8.19.3 → 8.21.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 8.21.0 (2025-03-27)
6
+
7
+ ## 8.20.0 (2025-03-13)
8
+
5
9
  ## 8.19.0 (2025-02-28)
6
10
 
7
11
  ## 8.18.0 (2025-02-12)
@@ -23,7 +23,7 @@ function ManagePatternsMenuItem() {
23
23
  post_type: 'wp_block'
24
24
  });
25
25
  const patternsUrl = (0, _url.addQueryArgs)('site-editor.php', {
26
- path: '/patterns'
26
+ p: '/pattern'
27
27
  });
28
28
 
29
29
  // The site editor and templates both check whether the user has
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_coreData","_data","_i18n","_url","_jsxRuntime","ManagePatternsMenuItem","url","useSelect","select","canUser","coreStore","defaultUrl","addQueryArgs","post_type","patternsUrl","path","kind","name","jsx","MenuItem","role","href","children","__","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/more-menu/manage-patterns-menu-item.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction ManagePatternsMenuItem() {\n\tconst url = useSelect( ( select ) => {\n\t\tconst { canUser } = select( coreStore );\n\t\tconst defaultUrl = addQueryArgs( 'edit.php', {\n\t\t\tpost_type: 'wp_block',\n\t\t} );\n\t\tconst patternsUrl = addQueryArgs( 'site-editor.php', {\n\t\t\tpath: '/patterns',\n\t\t} );\n\n\t\t// The site editor and templates both check whether the user has\n\t\t// edit_theme_options capabilities. We can leverage that here and not\n\t\t// display the manage patterns link if the user can't access it.\n\t\treturn canUser( 'create', {\n\t\t\tkind: 'postType',\n\t\t\tname: 'wp_template',\n\t\t} )\n\t\t\t? patternsUrl\n\t\t\t: defaultUrl;\n\t}, [] );\n\n\treturn (\n\t\t<MenuItem role=\"menuitem\" href={ url }>\n\t\t\t{ __( 'Manage patterns' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default ManagePatternsMenuItem;\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAP9C;AACA;AACA;;AAOA,SAASM,sBAAsBA,CAAA,EAAG;EACjC,MAAMC,GAAG,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACpC,MAAM;MAAEC;IAAQ,CAAC,GAAGD,MAAM,CAAEE,eAAU,CAAC;IACvC,MAAMC,UAAU,GAAG,IAAAC,iBAAY,EAAE,UAAU,EAAE;MAC5CC,SAAS,EAAE;IACZ,CAAE,CAAC;IACH,MAAMC,WAAW,GAAG,IAAAF,iBAAY,EAAE,iBAAiB,EAAE;MACpDG,IAAI,EAAE;IACP,CAAE,CAAC;;IAEH;IACA;IACA;IACA,OAAON,OAAO,CAAE,QAAQ,EAAE;MACzBO,IAAI,EAAE,UAAU;MAChBC,IAAI,EAAE;IACP,CAAE,CAAC,GACAH,WAAW,GACXH,UAAU;EACd,CAAC,EAAE,EAAG,CAAC;EAEP,oBACC,IAAAP,WAAA,CAAAc,GAAA,EAACpB,WAAA,CAAAqB,QAAQ;IAACC,IAAI,EAAC,UAAU;IAACC,IAAI,EAAGf,GAAK;IAAAgB,QAAA,EACnC,IAAAC,QAAE,EAAE,iBAAkB;EAAC,CAChB,CAAC;AAEb;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcrB,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["_components","require","_coreData","_data","_i18n","_url","_jsxRuntime","ManagePatternsMenuItem","url","useSelect","select","canUser","coreStore","defaultUrl","addQueryArgs","post_type","patternsUrl","p","kind","name","jsx","MenuItem","role","href","children","__","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/more-menu/manage-patterns-menu-item.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction ManagePatternsMenuItem() {\n\tconst url = useSelect( ( select ) => {\n\t\tconst { canUser } = select( coreStore );\n\t\tconst defaultUrl = addQueryArgs( 'edit.php', {\n\t\t\tpost_type: 'wp_block',\n\t\t} );\n\t\tconst patternsUrl = addQueryArgs( 'site-editor.php', {\n\t\t\tp: '/pattern',\n\t\t} );\n\n\t\t// The site editor and templates both check whether the user has\n\t\t// edit_theme_options capabilities. We can leverage that here and not\n\t\t// display the manage patterns link if the user can't access it.\n\t\treturn canUser( 'create', {\n\t\t\tkind: 'postType',\n\t\t\tname: 'wp_template',\n\t\t} )\n\t\t\t? patternsUrl\n\t\t\t: defaultUrl;\n\t}, [] );\n\n\treturn (\n\t\t<MenuItem role=\"menuitem\" href={ url }>\n\t\t\t{ __( 'Manage patterns' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default ManagePatternsMenuItem;\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAP9C;AACA;AACA;;AAOA,SAASM,sBAAsBA,CAAA,EAAG;EACjC,MAAMC,GAAG,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACpC,MAAM;MAAEC;IAAQ,CAAC,GAAGD,MAAM,CAAEE,eAAU,CAAC;IACvC,MAAMC,UAAU,GAAG,IAAAC,iBAAY,EAAE,UAAU,EAAE;MAC5CC,SAAS,EAAE;IACZ,CAAE,CAAC;IACH,MAAMC,WAAW,GAAG,IAAAF,iBAAY,EAAE,iBAAiB,EAAE;MACpDG,CAAC,EAAE;IACJ,CAAE,CAAC;;IAEH;IACA;IACA;IACA,OAAON,OAAO,CAAE,QAAQ,EAAE;MACzBO,IAAI,EAAE,UAAU;MAChBC,IAAI,EAAE;IACP,CAAE,CAAC,GACAH,WAAW,GACXH,UAAU;EACd,CAAC,EAAE,EAAG,CAAC;EAEP,oBACC,IAAAP,WAAA,CAAAc,GAAA,EAACpB,WAAA,CAAAqB,QAAQ;IAACC,IAAI,EAAC,UAAU;IAACC,IAAI,EAAGf,GAAK;IAAAgB,QAAA,EACnC,IAAAC,QAAE,EAAE,iBAAkB;EAAC,CAChB,CAAC;AAEb;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcrB,sBAAsB","ignoreList":[]}
@@ -16,7 +16,7 @@ function ManagePatternsMenuItem() {
16
16
  post_type: 'wp_block'
17
17
  });
18
18
  const patternsUrl = addQueryArgs('site-editor.php', {
19
- path: '/patterns'
19
+ p: '/pattern'
20
20
  });
21
21
 
22
22
  // The site editor and templates both check whether the user has
@@ -1 +1 @@
1
- {"version":3,"names":["MenuItem","store","coreStore","useSelect","__","addQueryArgs","jsx","_jsx","ManagePatternsMenuItem","url","select","canUser","defaultUrl","post_type","patternsUrl","path","kind","name","role","href","children"],"sources":["@wordpress/edit-post/src/components/more-menu/manage-patterns-menu-item.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction ManagePatternsMenuItem() {\n\tconst url = useSelect( ( select ) => {\n\t\tconst { canUser } = select( coreStore );\n\t\tconst defaultUrl = addQueryArgs( 'edit.php', {\n\t\t\tpost_type: 'wp_block',\n\t\t} );\n\t\tconst patternsUrl = addQueryArgs( 'site-editor.php', {\n\t\t\tpath: '/patterns',\n\t\t} );\n\n\t\t// The site editor and templates both check whether the user has\n\t\t// edit_theme_options capabilities. We can leverage that here and not\n\t\t// display the manage patterns link if the user can't access it.\n\t\treturn canUser( 'create', {\n\t\t\tkind: 'postType',\n\t\t\tname: 'wp_template',\n\t\t} )\n\t\t\t? patternsUrl\n\t\t\t: defaultUrl;\n\t}, [] );\n\n\treturn (\n\t\t<MenuItem role=\"menuitem\" href={ url }>\n\t\t\t{ __( 'Manage patterns' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default ManagePatternsMenuItem;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AACzD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,YAAY,QAAQ,gBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9C,SAASC,sBAAsBA,CAAA,EAAG;EACjC,MAAMC,GAAG,GAAGN,SAAS,CAAIO,MAAM,IAAM;IACpC,MAAM;MAAEC;IAAQ,CAAC,GAAGD,MAAM,CAAER,SAAU,CAAC;IACvC,MAAMU,UAAU,GAAGP,YAAY,CAAE,UAAU,EAAE;MAC5CQ,SAAS,EAAE;IACZ,CAAE,CAAC;IACH,MAAMC,WAAW,GAAGT,YAAY,CAAE,iBAAiB,EAAE;MACpDU,IAAI,EAAE;IACP,CAAE,CAAC;;IAEH;IACA;IACA;IACA,OAAOJ,OAAO,CAAE,QAAQ,EAAE;MACzBK,IAAI,EAAE,UAAU;MAChBC,IAAI,EAAE;IACP,CAAE,CAAC,GACAH,WAAW,GACXF,UAAU;EACd,CAAC,EAAE,EAAG,CAAC;EAEP,oBACCL,IAAA,CAACP,QAAQ;IAACkB,IAAI,EAAC,UAAU;IAACC,IAAI,EAAGV,GAAK;IAAAW,QAAA,EACnChB,EAAE,CAAE,iBAAkB;EAAC,CAChB,CAAC;AAEb;AAEA,eAAeI,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["MenuItem","store","coreStore","useSelect","__","addQueryArgs","jsx","_jsx","ManagePatternsMenuItem","url","select","canUser","defaultUrl","post_type","patternsUrl","p","kind","name","role","href","children"],"sources":["@wordpress/edit-post/src/components/more-menu/manage-patterns-menu-item.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction ManagePatternsMenuItem() {\n\tconst url = useSelect( ( select ) => {\n\t\tconst { canUser } = select( coreStore );\n\t\tconst defaultUrl = addQueryArgs( 'edit.php', {\n\t\t\tpost_type: 'wp_block',\n\t\t} );\n\t\tconst patternsUrl = addQueryArgs( 'site-editor.php', {\n\t\t\tp: '/pattern',\n\t\t} );\n\n\t\t// The site editor and templates both check whether the user has\n\t\t// edit_theme_options capabilities. We can leverage that here and not\n\t\t// display the manage patterns link if the user can't access it.\n\t\treturn canUser( 'create', {\n\t\t\tkind: 'postType',\n\t\t\tname: 'wp_template',\n\t\t} )\n\t\t\t? patternsUrl\n\t\t\t: defaultUrl;\n\t}, [] );\n\n\treturn (\n\t\t<MenuItem role=\"menuitem\" href={ url }>\n\t\t\t{ __( 'Manage patterns' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default ManagePatternsMenuItem;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AACzD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,YAAY,QAAQ,gBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9C,SAASC,sBAAsBA,CAAA,EAAG;EACjC,MAAMC,GAAG,GAAGN,SAAS,CAAIO,MAAM,IAAM;IACpC,MAAM;MAAEC;IAAQ,CAAC,GAAGD,MAAM,CAAER,SAAU,CAAC;IACvC,MAAMU,UAAU,GAAGP,YAAY,CAAE,UAAU,EAAE;MAC5CQ,SAAS,EAAE;IACZ,CAAE,CAAC;IACH,MAAMC,WAAW,GAAGT,YAAY,CAAE,iBAAiB,EAAE;MACpDU,CAAC,EAAE;IACJ,CAAE,CAAC;;IAEH;IACA;IACA;IACA,OAAOJ,OAAO,CAAE,QAAQ,EAAE;MACzBK,IAAI,EAAE,UAAU;MAChBC,IAAI,EAAE;IACP,CAAE,CAAC,GACAH,WAAW,GACXF,UAAU;EACd,CAAC,EAAE,EAAG,CAAC;EAEP,oBACCL,IAAA,CAACP,QAAQ;IAACkB,IAAI,EAAC,UAAU;IAACC,IAAI,EAAGV,GAAK;IAAAW,QAAA,EACnChB,EAAE,CAAE,iBAAkB;EAAC,CAChB,CAAC;AAEb;AAEA,eAAeI,sBAAsB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-post",
3
- "version": "8.19.3",
3
+ "version": "8.21.0",
4
4
  "description": "Edit Post module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,35 +29,35 @@
29
29
  "wpScript": true,
30
30
  "dependencies": {
31
31
  "@babel/runtime": "7.25.7",
32
- "@wordpress/a11y": "^4.19.1",
33
- "@wordpress/api-fetch": "^7.19.1",
34
- "@wordpress/block-editor": "^14.14.2",
35
- "@wordpress/block-library": "^9.19.2",
36
- "@wordpress/blocks": "^14.8.1",
37
- "@wordpress/commands": "^1.19.1",
38
- "@wordpress/components": "^29.5.1",
39
- "@wordpress/compose": "^7.19.1",
40
- "@wordpress/core-commands": "^1.19.2",
41
- "@wordpress/core-data": "^7.19.2",
42
- "@wordpress/data": "^10.19.1",
43
- "@wordpress/deprecated": "^4.19.1",
44
- "@wordpress/dom": "^4.19.1",
45
- "@wordpress/editor": "^14.19.3",
46
- "@wordpress/element": "^6.19.1",
47
- "@wordpress/hooks": "^4.19.1",
48
- "@wordpress/html-entities": "^4.19.1",
49
- "@wordpress/i18n": "^5.19.1",
50
- "@wordpress/icons": "^10.19.1",
51
- "@wordpress/keyboard-shortcuts": "^5.19.1",
52
- "@wordpress/keycodes": "^4.19.1",
53
- "@wordpress/notices": "^5.19.1",
54
- "@wordpress/plugins": "^7.19.1",
55
- "@wordpress/preferences": "^4.19.1",
56
- "@wordpress/private-apis": "^1.19.1",
57
- "@wordpress/url": "^4.19.1",
58
- "@wordpress/viewport": "^6.19.1",
59
- "@wordpress/warning": "^3.19.1",
60
- "@wordpress/widgets": "^4.19.2",
32
+ "@wordpress/a11y": "^4.21.0",
33
+ "@wordpress/api-fetch": "^7.21.0",
34
+ "@wordpress/block-editor": "^14.16.0",
35
+ "@wordpress/block-library": "^9.21.0",
36
+ "@wordpress/blocks": "^14.10.0",
37
+ "@wordpress/commands": "^1.21.0",
38
+ "@wordpress/components": "^29.7.0",
39
+ "@wordpress/compose": "^7.21.0",
40
+ "@wordpress/core-commands": "^1.21.0",
41
+ "@wordpress/core-data": "^7.21.0",
42
+ "@wordpress/data": "^10.21.0",
43
+ "@wordpress/deprecated": "^4.21.0",
44
+ "@wordpress/dom": "^4.21.0",
45
+ "@wordpress/editor": "^14.21.0",
46
+ "@wordpress/element": "^6.21.0",
47
+ "@wordpress/hooks": "^4.21.0",
48
+ "@wordpress/html-entities": "^4.21.0",
49
+ "@wordpress/i18n": "^5.21.0",
50
+ "@wordpress/icons": "^10.21.0",
51
+ "@wordpress/keyboard-shortcuts": "^5.21.0",
52
+ "@wordpress/keycodes": "^4.21.0",
53
+ "@wordpress/notices": "^5.21.0",
54
+ "@wordpress/plugins": "^7.21.0",
55
+ "@wordpress/preferences": "^4.21.0",
56
+ "@wordpress/private-apis": "^1.21.0",
57
+ "@wordpress/url": "^4.21.0",
58
+ "@wordpress/viewport": "^6.21.0",
59
+ "@wordpress/warning": "^3.21.0",
60
+ "@wordpress/widgets": "^4.21.0",
61
61
  "clsx": "^2.1.1",
62
62
  "memize": "^2.1.0"
63
63
  },
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "ebddb7a8df3d45e83f318436516d9b6225486703"
71
+ "gitHead": "104af00f9abcd7a4d36b87e648f148c72cc4ea5f"
72
72
  }
@@ -14,7 +14,7 @@ function ManagePatternsMenuItem() {
14
14
  post_type: 'wp_block',
15
15
  } );
16
16
  const patternsUrl = addQueryArgs( 'site-editor.php', {
17
- path: '/patterns',
17
+ p: '/pattern',
18
18
  } );
19
19
 
20
20
  // The site editor and templates both check whether the user has