@wordpress/edit-post 8.34.0 → 8.34.1-next.2f1c7c01b.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.
Files changed (146) hide show
  1. package/build/commands/use-commands.js +2 -0
  2. package/build/commands/use-commands.js.map +1 -1
  3. package/build/components/back-button/fullscreen-mode-close.js +5 -3
  4. package/build/components/back-button/fullscreen-mode-close.js.map +1 -1
  5. package/build/components/back-button/index.js +5 -3
  6. package/build/components/back-button/index.js.map +1 -1
  7. package/build/components/browser-url/index.js +2 -0
  8. package/build/components/browser-url/index.js.map +1 -1
  9. package/build/components/editor-initialization/index.js +2 -0
  10. package/build/components/editor-initialization/index.js.map +1 -1
  11. package/build/components/editor-initialization/listener-hooks.js +3 -1
  12. package/build/components/editor-initialization/listener-hooks.js.map +1 -1
  13. package/build/components/init-pattern-modal/index.js +3 -1
  14. package/build/components/init-pattern-modal/index.js.map +1 -1
  15. package/build/components/keyboard-shortcuts/index.js +2 -0
  16. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  17. package/build/components/layout/index.js +7 -5
  18. package/build/components/layout/index.js.map +1 -1
  19. package/build/components/layout/use-padding-appender.js +5 -3
  20. package/build/components/layout/use-padding-appender.js.map +2 -2
  21. package/build/components/layout/use-should-iframe.js +3 -1
  22. package/build/components/layout/use-should-iframe.js.map +1 -1
  23. package/build/components/meta-boxes/index.js +3 -1
  24. package/build/components/meta-boxes/index.js.map +1 -1
  25. package/build/components/meta-boxes/meta-box-visibility.js +2 -0
  26. package/build/components/meta-boxes/meta-box-visibility.js.map +1 -1
  27. package/build/components/meta-boxes/meta-boxes-area/index.js +3 -1
  28. package/build/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  29. package/build/components/meta-boxes/use-meta-box-initialization.js +3 -1
  30. package/build/components/meta-boxes/use-meta-box-initialization.js.map +1 -1
  31. package/build/components/more-menu/index.js +5 -3
  32. package/build/components/more-menu/index.js.map +1 -1
  33. package/build/components/more-menu/manage-patterns-menu-item.js +3 -1
  34. package/build/components/more-menu/manage-patterns-menu-item.js.map +1 -1
  35. package/build/components/more-menu/welcome-guide-menu-item.js +3 -1
  36. package/build/components/more-menu/welcome-guide-menu-item.js.map +1 -1
  37. package/build/components/preferences-modal/enable-custom-fields.js +4 -2
  38. package/build/components/preferences-modal/enable-custom-fields.js.map +1 -1
  39. package/build/components/preferences-modal/enable-panel.js +4 -2
  40. package/build/components/preferences-modal/enable-panel.js.map +1 -1
  41. package/build/components/preferences-modal/index.js +5 -3
  42. package/build/components/preferences-modal/index.js.map +1 -1
  43. package/build/components/preferences-modal/meta-boxes-section.js +4 -2
  44. package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
  45. package/build/components/welcome-guide/default.js +3 -1
  46. package/build/components/welcome-guide/default.js.map +1 -1
  47. package/build/components/welcome-guide/image.js +2 -0
  48. package/build/components/welcome-guide/image.js.map +1 -1
  49. package/build/components/welcome-guide/index.js +3 -1
  50. package/build/components/welcome-guide/index.js.map +1 -1
  51. package/build/components/welcome-guide/template.js +3 -1
  52. package/build/components/welcome-guide/template.js.map +1 -1
  53. package/build/deprecated.js +6 -4
  54. package/build/deprecated.js.map +1 -1
  55. package/build/hooks/use-navigate-to-entity-record.js +2 -0
  56. package/build/hooks/use-navigate-to-entity-record.js.map +1 -1
  57. package/build/index.js +4 -2
  58. package/build/index.js.map +1 -1
  59. package/build/lock-unlock.js +3 -1
  60. package/build/lock-unlock.js.map +1 -1
  61. package/build/store/actions.js +26 -24
  62. package/build/store/actions.js.map +1 -1
  63. package/build/store/constants.js +5 -3
  64. package/build/store/constants.js.map +1 -1
  65. package/build/store/index.js +3 -1
  66. package/build/store/index.js.map +1 -1
  67. package/build/store/reducer.js +3 -1
  68. package/build/store/reducer.js.map +1 -1
  69. package/build/store/selectors.js +27 -25
  70. package/build/store/selectors.js.map +1 -1
  71. package/build/utils/meta-boxes.js +3 -1
  72. package/build/utils/meta-boxes.js.map +1 -1
  73. package/build-module/commands/use-commands.js +1 -0
  74. package/build-module/commands/use-commands.js.map +1 -1
  75. package/build-module/components/back-button/fullscreen-mode-close.js +4 -3
  76. package/build-module/components/back-button/fullscreen-mode-close.js.map +1 -1
  77. package/build-module/components/back-button/index.js +4 -3
  78. package/build-module/components/back-button/index.js.map +1 -1
  79. package/build-module/components/browser-url/index.js +1 -0
  80. package/build-module/components/browser-url/index.js.map +1 -1
  81. package/build-module/components/editor-initialization/index.js +1 -0
  82. package/build-module/components/editor-initialization/index.js.map +1 -1
  83. package/build-module/components/editor-initialization/listener-hooks.js +2 -1
  84. package/build-module/components/editor-initialization/listener-hooks.js.map +1 -1
  85. package/build-module/components/init-pattern-modal/index.js +2 -1
  86. package/build-module/components/init-pattern-modal/index.js.map +1 -1
  87. package/build-module/components/keyboard-shortcuts/index.js +1 -0
  88. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  89. package/build-module/components/layout/index.js +6 -5
  90. package/build-module/components/layout/index.js.map +1 -1
  91. package/build-module/components/layout/use-padding-appender.js +4 -3
  92. package/build-module/components/layout/use-padding-appender.js.map +2 -2
  93. package/build-module/components/layout/use-should-iframe.js +2 -1
  94. package/build-module/components/layout/use-should-iframe.js.map +1 -1
  95. package/build-module/components/meta-boxes/index.js +2 -1
  96. package/build-module/components/meta-boxes/index.js.map +1 -1
  97. package/build-module/components/meta-boxes/meta-box-visibility.js +1 -0
  98. package/build-module/components/meta-boxes/meta-box-visibility.js.map +1 -1
  99. package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -1
  100. package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  101. package/build-module/components/meta-boxes/use-meta-box-initialization.js +2 -1
  102. package/build-module/components/meta-boxes/use-meta-box-initialization.js.map +1 -1
  103. package/build-module/components/more-menu/index.js +4 -3
  104. package/build-module/components/more-menu/index.js.map +1 -1
  105. package/build-module/components/more-menu/manage-patterns-menu-item.js +2 -1
  106. package/build-module/components/more-menu/manage-patterns-menu-item.js.map +1 -1
  107. package/build-module/components/more-menu/welcome-guide-menu-item.js +2 -1
  108. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +1 -1
  109. package/build-module/components/preferences-modal/enable-custom-fields.js +3 -2
  110. package/build-module/components/preferences-modal/enable-custom-fields.js.map +1 -1
  111. package/build-module/components/preferences-modal/enable-panel.js +3 -2
  112. package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
  113. package/build-module/components/preferences-modal/index.js +4 -3
  114. package/build-module/components/preferences-modal/index.js.map +1 -1
  115. package/build-module/components/preferences-modal/meta-boxes-section.js +3 -2
  116. package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
  117. package/build-module/components/welcome-guide/default.js +2 -1
  118. package/build-module/components/welcome-guide/default.js.map +1 -1
  119. package/build-module/components/welcome-guide/image.js +1 -0
  120. package/build-module/components/welcome-guide/image.js.map +1 -1
  121. package/build-module/components/welcome-guide/index.js +2 -1
  122. package/build-module/components/welcome-guide/index.js.map +1 -1
  123. package/build-module/components/welcome-guide/template.js +2 -1
  124. package/build-module/components/welcome-guide/template.js.map +1 -1
  125. package/build-module/deprecated.js +5 -4
  126. package/build-module/deprecated.js.map +1 -1
  127. package/build-module/hooks/use-navigate-to-entity-record.js +1 -0
  128. package/build-module/hooks/use-navigate-to-entity-record.js.map +1 -1
  129. package/build-module/index.js +6 -5
  130. package/build-module/index.js.map +1 -1
  131. package/build-module/lock-unlock.js +2 -1
  132. package/build-module/lock-unlock.js.map +1 -1
  133. package/build-module/store/actions.js +25 -24
  134. package/build-module/store/actions.js.map +1 -1
  135. package/build-module/store/constants.js +4 -3
  136. package/build-module/store/constants.js.map +1 -1
  137. package/build-module/store/index.js +2 -1
  138. package/build-module/store/index.js.map +1 -1
  139. package/build-module/store/reducer.js +2 -1
  140. package/build-module/store/reducer.js.map +1 -1
  141. package/build-module/store/selectors.js +26 -25
  142. package/build-module/store/selectors.js.map +1 -1
  143. package/build-module/utils/meta-boxes.js +2 -1
  144. package/build-module/utils/meta-boxes.js.map +1 -1
  145. package/package.json +33 -33
  146. package/src/components/layout/use-padding-appender.js +2 -2
@@ -1,9 +1,10 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/meta-boxes/meta-boxes-area/index.js
2
2
  import clsx from "clsx";
3
3
  import { useRef, useEffect } from "@wordpress/element";
4
4
  import { Spinner } from "@wordpress/components";
5
5
  import { useSelect } from "@wordpress/data";
6
6
  import { store as editPostStore } from "../../../store";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
7
8
  function MetaBoxesArea({ location }) {
8
9
  const container = useRef(null);
9
10
  const formRef = useRef(null);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/meta-boxes/meta-boxes-area/index.js"],
4
4
  "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useRef, useEffect } from '@wordpress/element';\nimport { Spinner } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Render metabox area.\n *\n * @param {Object} props Component props.\n * @param {string} props.location metabox location.\n * @return {Component} The component to be rendered.\n */\nfunction MetaBoxesArea( { location } ) {\n\tconst container = useRef( null );\n\tconst formRef = useRef( null );\n\n\tuseEffect( () => {\n\t\tformRef.current = document.querySelector(\n\t\t\t'.metabox-location-' + location\n\t\t);\n\n\t\tif ( formRef.current ) {\n\t\t\tcontainer.current.appendChild( formRef.current );\n\t\t}\n\n\t\treturn () => {\n\t\t\tif ( formRef.current ) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector( '#metaboxes' )\n\t\t\t\t\t.appendChild( formRef.current );\n\t\t\t}\n\t\t};\n\t}, [ location ] );\n\n\tconst isSaving = useSelect( ( select ) => {\n\t\treturn select( editPostStore ).isSavingMetaBoxes();\n\t}, [] );\n\n\tconst classes = clsx( 'edit-post-meta-boxes-area', `is-${ location }`, {\n\t\t'is-loading': isSaving,\n\t} );\n\n\treturn (\n\t\t<div className={ classes }>\n\t\t\t{ isSaving && <Spinner /> }\n\t\t\t<div\n\t\t\t\tclassName=\"edit-post-meta-boxes-area__container\"\n\t\t\t\tref={ container }\n\t\t\t/>\n\t\t\t<div className=\"edit-post-meta-boxes-area__clear\" />\n\t\t</div>\n\t);\n}\n\nexport default MetaBoxesArea;\n"],
5
- "mappings": "AAuDE,SACe,KADf;AApDF,OAAO,UAAU;AAKjB,SAAS,QAAQ,iBAAiB;AAClC,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAK1B,SAAS,SAAS,qBAAqB;AASvC,SAAS,cAAe,EAAE,SAAS,GAAI;AACtC,QAAM,YAAY,OAAQ,IAAK;AAC/B,QAAM,UAAU,OAAQ,IAAK;AAE7B,YAAW,MAAM;AAChB,YAAQ,UAAU,SAAS;AAAA,MAC1B,uBAAuB;AAAA,IACxB;AAEA,QAAK,QAAQ,SAAU;AACtB,gBAAU,QAAQ,YAAa,QAAQ,OAAQ;AAAA,IAChD;AAEA,WAAO,MAAM;AACZ,UAAK,QAAQ,SAAU;AACtB,iBACE,cAAe,YAAa,EAC5B,YAAa,QAAQ,OAAQ;AAAA,MAChC;AAAA,IACD;AAAA,EACD,GAAG,CAAE,QAAS,CAAE;AAEhB,QAAM,WAAW,UAAW,CAAE,WAAY;AACzC,WAAO,OAAQ,aAAc,EAAE,kBAAkB;AAAA,EAClD,GAAG,CAAC,CAAE;AAEN,QAAM,UAAU,KAAM,6BAA6B,MAAO,QAAS,IAAI;AAAA,IACtE,cAAc;AAAA,EACf,CAAE;AAEF,SACC,qBAAC,SAAI,WAAY,SACd;AAAA,gBAAY,oBAAC,WAAQ;AAAA,IACvB;AAAA,MAAC;AAAA;AAAA,QACA,WAAU;AAAA,QACV,KAAM;AAAA;AAAA,IACP;AAAA,IACA,oBAAC,SAAI,WAAU,oCAAmC;AAAA,KACnD;AAEF;AAEA,IAAO,0BAAQ;",
5
+ "mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,QAAQ,iBAAiB;AAClC,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAK1B,SAAS,SAAS,qBAAqB;AAwCrC,SACe,KADf;AA/BF,SAAS,cAAe,EAAE,SAAS,GAAI;AACtC,QAAM,YAAY,OAAQ,IAAK;AAC/B,QAAM,UAAU,OAAQ,IAAK;AAE7B,YAAW,MAAM;AAChB,YAAQ,UAAU,SAAS;AAAA,MAC1B,uBAAuB;AAAA,IACxB;AAEA,QAAK,QAAQ,SAAU;AACtB,gBAAU,QAAQ,YAAa,QAAQ,OAAQ;AAAA,IAChD;AAEA,WAAO,MAAM;AACZ,UAAK,QAAQ,SAAU;AACtB,iBACE,cAAe,YAAa,EAC5B,YAAa,QAAQ,OAAQ;AAAA,MAChC;AAAA,IACD;AAAA,EACD,GAAG,CAAE,QAAS,CAAE;AAEhB,QAAM,WAAW,UAAW,CAAE,WAAY;AACzC,WAAO,OAAQ,aAAc,EAAE,kBAAkB;AAAA,EAClD,GAAG,CAAC,CAAE;AAEN,QAAM,UAAU,KAAM,6BAA6B,MAAO,QAAS,IAAI;AAAA,IACtE,cAAc;AAAA,EACf,CAAE;AAEF,SACC,qBAAC,SAAI,WAAY,SACd;AAAA,gBAAY,oBAAC,WAAQ;AAAA,IACvB;AAAA,MAAC;AAAA;AAAA,QACA,WAAU;AAAA,QACV,KAAM;AAAA;AAAA,IACP;AAAA,IACA,oBAAC,SAAI,WAAU,oCAAmC;AAAA,KACnD;AAEF;AAEA,IAAO,0BAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,9 @@
1
+ // packages/edit-post/src/components/meta-boxes/use-meta-box-initialization.js
1
2
  import { useDispatch, useSelect } from "@wordpress/data";
2
3
  import { store as editorStore } from "@wordpress/editor";
3
4
  import { useEffect } from "@wordpress/element";
4
5
  import { store as editPostStore } from "../../store";
5
- const useMetaBoxInitialization = (enabled) => {
6
+ var useMetaBoxInitialization = (enabled) => {
6
7
  const isEnabledAndEditorReady = useSelect(
7
8
  (select) => enabled && select(editorStore).__unstableIsEditorReady(),
8
9
  [enabled]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/meta-boxes/use-meta-box-initialization.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../store';\n\n/**\n * Initializes WordPress `postboxes` script and the logic for saving meta boxes.\n *\n * @param { boolean } enabled\n */\nexport const useMetaBoxInitialization = ( enabled ) => {\n\tconst isEnabledAndEditorReady = useSelect(\n\t\t( select ) =>\n\t\t\tenabled && select( editorStore ).__unstableIsEditorReady(),\n\t\t[ enabled ]\n\t);\n\tconst { initializeMetaBoxes } = useDispatch( editPostStore );\n\t// The effect has to rerun when the editor is ready because initializeMetaBoxes\n\t// will noop until then.\n\tuseEffect( () => {\n\t\tif ( isEnabledAndEditorReady ) {\n\t\t\tinitializeMetaBoxes();\n\t\t}\n\t}, [ isEnabledAndEditorReady, initializeMetaBoxes ] );\n};\n"],
5
- "mappings": "AAGA,SAAS,aAAa,iBAAiB;AACvC,SAAS,SAAS,mBAAmB;AACrC,SAAS,iBAAiB;AAK1B,SAAS,SAAS,qBAAqB;AAOhC,MAAM,2BAA2B,CAAE,YAAa;AACtD,QAAM,0BAA0B;AAAA,IAC/B,CAAE,WACD,WAAW,OAAQ,WAAY,EAAE,wBAAwB;AAAA,IAC1D,CAAE,OAAQ;AAAA,EACX;AACA,QAAM,EAAE,oBAAoB,IAAI,YAAa,aAAc;AAG3D,YAAW,MAAM;AAChB,QAAK,yBAA0B;AAC9B,0BAAoB;AAAA,IACrB;AAAA,EACD,GAAG,CAAE,yBAAyB,mBAAoB,CAAE;AACrD;",
5
+ "mappings": ";AAGA,SAAS,aAAa,iBAAiB;AACvC,SAAS,SAAS,mBAAmB;AACrC,SAAS,iBAAiB;AAK1B,SAAS,SAAS,qBAAqB;AAOhC,IAAM,2BAA2B,CAAE,YAAa;AACtD,QAAM,0BAA0B;AAAA,IAC/B,CAAE,WACD,WAAW,OAAQ,WAAY,EAAE,wBAAwB;AAAA,IAC1D,CAAE,OAAQ;AAAA,EACX;AACA,QAAM,EAAE,oBAAoB,IAAI,YAAa,aAAc;AAG3D,YAAW,MAAM;AAChB,QAAK,yBAA0B;AAC9B,0BAAoB;AAAA,IACrB;AAAA,EACD,GAAG,CAAE,yBAAyB,mBAAoB,CAAE;AACrD;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/more-menu/index.js
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { useViewportMatch } from "@wordpress/compose";
4
4
  import { privateApis as editorPrivateApis } from "@wordpress/editor";
@@ -8,8 +8,9 @@ import { unlock } from "../../lock-unlock";
8
8
  import ManagePatternsMenuItem from "./manage-patterns-menu-item";
9
9
  import WelcomeGuideMenuItem from "./welcome-guide-menu-item";
10
10
  import EditPostPreferencesModal from "../preferences-modal";
11
- const { ToolsMoreMenuGroup, ViewMoreMenuGroup } = unlock(editorPrivateApis);
12
- const MoreMenu = () => {
11
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
+ var { ToolsMoreMenuGroup, ViewMoreMenuGroup } = unlock(editorPrivateApis);
13
+ var MoreMenu = () => {
13
14
  const isLargeViewport = useViewportMatch("large");
14
15
  return /* @__PURE__ */ jsxs(Fragment, { children: [
15
16
  isLargeViewport && /* @__PURE__ */ jsx(ViewMoreMenuGroup, { children: /* @__PURE__ */ jsx(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/more-menu/index.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport ManagePatternsMenuItem from './manage-patterns-menu-item';\nimport WelcomeGuideMenuItem from './welcome-guide-menu-item';\nimport EditPostPreferencesModal from '../preferences-modal';\n\nconst { ToolsMoreMenuGroup, ViewMoreMenuGroup } = unlock( editorPrivateApis );\n\nconst MoreMenu = () => {\n\tconst isLargeViewport = useViewportMatch( 'large' );\n\n\treturn (\n\t\t<>\n\t\t\t{ isLargeViewport && (\n\t\t\t\t<ViewMoreMenuGroup>\n\t\t\t\t\t<PreferenceToggleMenuItem\n\t\t\t\t\t\tscope=\"core/edit-post\"\n\t\t\t\t\t\tname=\"fullscreenMode\"\n\t\t\t\t\t\tlabel={ __( 'Fullscreen mode' ) }\n\t\t\t\t\t\tinfo={ __( 'Show and hide the admin user interface' ) }\n\t\t\t\t\t\tmessageActivated={ __( 'Fullscreen mode activated.' ) }\n\t\t\t\t\t\tmessageDeactivated={ __(\n\t\t\t\t\t\t\t'Fullscreen mode deactivated.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tshortcut={ displayShortcut.secondary( 'f' ) }\n\t\t\t\t\t/>\n\t\t\t\t</ViewMoreMenuGroup>\n\t\t\t) }\n\t\t\t<ToolsMoreMenuGroup>\n\t\t\t\t<ManagePatternsMenuItem />\n\t\t\t\t<WelcomeGuideMenuItem />\n\t\t\t</ToolsMoreMenuGroup>\n\t\t\t<EditPostPreferencesModal />\n\t\t</>\n\t);\n};\n\nexport default MoreMenu;\n"],
5
- "mappings": "AAuBE,mBAGG,KAaF,YAhBD;AApBF,SAAS,UAAU;AACnB,SAAS,wBAAwB;AACjC,SAAS,eAAe,yBAAyB;AACjD,SAAS,uBAAuB;AAChC,SAAS,gCAAgC;AAKzC,SAAS,cAAc;AACvB,OAAO,4BAA4B;AACnC,OAAO,0BAA0B;AACjC,OAAO,8BA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BAAC,sBACA;AAAA,0BAAC,0BAAuB;AAAA,MACxB,oBAAC,wBAAqB;AAAA,OACvB;AAAA,IACA,oBAAC,4BAAyB;AAAA,KAC3B;AAEF;AAEA,IAAO,oBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,10 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/more-menu/manage-patterns-menu-item.js
2
2
  import { MenuItem } from "@wordpress/components";
3
3
  import { store as coreStore } from "@wordpress/core-data";
4
4
  import { useSelect } from "@wordpress/data";
5
5
  import { __ } from "@wordpress/i18n";
6
6
  import { addQueryArgs } from "@wordpress/url";
7
+ import { jsx } from "react/jsx-runtime";
7
8
  function ManagePatternsMenuItem() {
8
9
  const url = useSelect((select) => {
9
10
  const { canUser } = select(coreStore);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/more-menu/manage-patterns-menu-item.js"],
4
4
  "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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
7
7
  }
@@ -1,8 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/more-menu/welcome-guide-menu-item.js
2
2
  import { useSelect } from "@wordpress/data";
3
3
  import { PreferenceToggleMenuItem } from "@wordpress/preferences";
4
4
  import { __ } from "@wordpress/i18n";
5
5
  import { store as editorStore } from "@wordpress/editor";
6
+ import { jsx } from "react/jsx-runtime";
6
7
  function WelcomeGuideMenuItem() {
7
8
  const isEditingTemplate = useSelect(
8
9
  (select) => select(editorStore).getCurrentPostType() === "wp_template",
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/more-menu/welcome-guide-menu-item.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { PreferenceToggleMenuItem } from '@wordpress/preferences';\nimport { __ } from '@wordpress/i18n';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function WelcomeGuideMenuItem() {\n\tconst isEditingTemplate = useSelect(\n\t\t( select ) =>\n\t\t\tselect( editorStore ).getCurrentPostType() === 'wp_template',\n\t\t[]\n\t);\n\n\treturn (\n\t\t<PreferenceToggleMenuItem\n\t\t\tscope=\"core/edit-post\"\n\t\t\tname={ isEditingTemplate ? 'welcomeGuideTemplate' : 'welcomeGuide' }\n\t\t\tlabel={ __( 'Welcome Guide' ) }\n\t\t/>\n\t);\n}\n"],
5
- "mappings": "AAgBE;AAbF,SAAS,iBAAiB;AAC1B,SAAS,gCAAgC;AACzC,SAAS,UAAU;AACnB,SAAS,SAAS,mBAAmB;AAEtB,SAAR,uBAAwC;AAC9C,QAAM,oBAAoB;AAAA,IACzB,CAAE,WACD,OAAQ,WAAY,EAAE,mBAAmB,MAAM;AAAA,IAChD,CAAC;AAAA,EACF;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,OAAM;AAAA,MACN,MAAO,oBAAoB,yBAAyB;AAAA,MACpD,OAAQ,GAAI,eAAgB;AAAA;AAAA,EAC7B;AAEF;",
5
+ "mappings": ";AAGA,SAAS,iBAAiB;AAC1B,SAAS,gCAAgC;AACzC,SAAS,UAAU;AACnB,SAAS,SAAS,mBAAmB;AAUnC;AARa,SAAR,uBAAwC;AAC9C,QAAM,oBAAoB;AAAA,IACzB,CAAE,WACD,OAAQ,WAAY,EAAE,mBAAmB,MAAM;AAAA,IAChD,CAAC;AAAA,EACF;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,OAAM;AAAA,MACN,MAAO,oBAAoB,yBAAyB;AAAA,MACpD,OAAQ,GAAI,eAAgB;AAAA;AAAA,EAC7B;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/preferences-modal/enable-custom-fields.js
2
2
  import { useState } from "@wordpress/element";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  import { Button } from "@wordpress/components";
@@ -7,7 +7,8 @@ import { store as editorStore } from "@wordpress/editor";
7
7
  import { privateApis as preferencesPrivateApis } from "@wordpress/preferences";
8
8
  import { getPathAndQueryString } from "@wordpress/url";
9
9
  import { unlock } from "../../lock-unlock";
10
- const { PreferenceBaseOption } = unlock(preferencesPrivateApis);
10
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
+ var { PreferenceBaseOption } = unlock(preferencesPrivateApis);
11
12
  function submitCustomFieldsForm() {
12
13
  const customFieldsForm = document.getElementById(
13
14
  "toggle-custom-fields-form"
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/preferences-modal/enable-custom-fields.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\nimport { getPathAndQueryString } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferenceBaseOption } = unlock( preferencesPrivateApis );\n\nfunction submitCustomFieldsForm() {\n\tconst customFieldsForm = document.getElementById(\n\t\t'toggle-custom-fields-form'\n\t);\n\n\t// Ensure the referrer values is up to update with any\n\tcustomFieldsForm\n\t\t.querySelector( '[name=\"_wp_http_referer\"]' )\n\t\t.setAttribute( 'value', getPathAndQueryString( window.location.href ) );\n\n\tcustomFieldsForm.submit();\n}\n\nexport function CustomFieldsConfirmation( { willEnable } ) {\n\tconst [ isReloading, setIsReloading ] = useState( false );\n\treturn (\n\t\t<>\n\t\t\t<p className=\"edit-post-preferences-modal__custom-fields-confirmation-message\">\n\t\t\t\t{ __(\n\t\t\t\t\t'A page reload is required for this change. Make sure your content is saved before reloading.'\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<Button\n\t\t\t\t__next40pxDefaultSize\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\tisBusy={ isReloading }\n\t\t\t\taccessibleWhenDisabled\n\t\t\t\tdisabled={ isReloading }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsReloading( true );\n\t\t\t\t\tsubmitCustomFieldsForm();\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ willEnable\n\t\t\t\t\t? __( 'Show & Reload Page' )\n\t\t\t\t\t: __( 'Hide & Reload Page' ) }\n\t\t\t</Button>\n\t\t</>\n\t);\n}\n\nexport default function EnableCustomFieldsOption( { label } ) {\n\tconst areCustomFieldsEnabled = useSelect( ( select ) => {\n\t\treturn !! select( editorStore ).getEditorSettings().enableCustomFields;\n\t}, [] );\n\tconst [ isChecked, setIsChecked ] = useState( areCustomFieldsEnabled );\n\n\treturn (\n\t\t<PreferenceBaseOption\n\t\t\tlabel={ label }\n\t\t\tisChecked={ isChecked }\n\t\t\tonChange={ setIsChecked }\n\t\t>\n\t\t\t{ isChecked !== areCustomFieldsEnabled && (\n\t\t\t\t<Custom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MAET,wBAAc,0BACf,oBAAC,4BAAyB,YAAa,WAAY;AAAA;AAAA,EAErD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,10 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/preferences-modal/enable-panel.js
2
2
  import { useDispatch, useSelect } from "@wordpress/data";
3
3
  import { store as editorStore } from "@wordpress/editor";
4
4
  import { privateApis as preferencesPrivateApis } from "@wordpress/preferences";
5
5
  import { unlock } from "../../lock-unlock";
6
- const { PreferenceBaseOption } = unlock(preferencesPrivateApis);
6
+ import { jsx } from "react/jsx-runtime";
7
+ var { PreferenceBaseOption } = unlock(preferencesPrivateApis);
7
8
  function EnablePanelOption(props) {
8
9
  const { toggleEditorPanelEnabled } = useDispatch(editorStore);
9
10
  const { isChecked, isRemoved } = useSelect(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/preferences-modal/enable-panel.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferenceBaseOption } = unlock( preferencesPrivateApis );\n\nexport default function EnablePanelOption( props ) {\n\tconst { toggleEditorPanelEnabled } = useDispatch( editorStore );\n\tconst { isChecked, isRemoved } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isEditorPanelEnabled, isEditorPanelRemoved } =\n\t\t\t\tselect( editorStore );\n\t\t\treturn {\n\t\t\t\tisChecked: isEditorPanelEnabled( props.panelName ),\n\t\t\t\tisRemoved: isEditorPanelRemoved( props.panelName ),\n\t\t\t};\n\t\t},\n\t\t[ props.panelName ]\n\t);\n\n\tif ( isRemoved ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PreferenceBaseOption\n\t\t\tisChecked={ isChecked }\n\t\t\ton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,MAAM,SAAU;AAAA,EACnB;AAEA,MAAK,WAAY;AAChB,WAAO;AAAA,EACR;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,UAAW,MAAM,yBAA0B,MAAM,SAAU;AAAA,MACzD,GAAG;AAAA;AAAA,EACN;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,12 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/preferences-modal/index.js
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { privateApis as preferencesPrivateApis } from "@wordpress/preferences";
4
4
  import { privateApis as editorPrivateApis } from "@wordpress/editor";
5
5
  import { unlock } from "../../lock-unlock";
6
6
  import MetaBoxesSection from "./meta-boxes-section";
7
- const { PreferenceToggleControl } = unlock(preferencesPrivateApis);
8
- const { PreferencesModal } = unlock(editorPrivateApis);
7
+ import { jsx } from "react/jsx-runtime";
8
+ var { PreferenceToggleControl } = unlock(preferencesPrivateApis);
9
+ var { PreferencesModal } = unlock(editorPrivateApis);
9
10
  function EditPostPreferencesModal() {
10
11
  const extraSections = {
11
12
  general: /* @__PURE__ */ jsx(MetaBoxesSection, { title: __("Advanced") }),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/preferences-modal/index.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\n\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport MetaBoxesSection from './meta-boxes-section';\n\nconst { PreferenceToggleControl } = unlock( preferencesPrivateApis );\nconst { PreferencesModal } = unlock( editorPrivateApis );\n\nexport default function EditPostPreferencesModal() {\n\tconst extraSections = {\n\t\tgeneral: <MetaBoxesSection title={ __( 'Advanced' ) } />,\n\t\tappearance: (\n\t\t\t<PreferenceToggleControl\n\t\t\t\tscope=\"core/edit-post\"\n\t\t\t\tfeatureName=\"themeStyles\"\n\t\t\t\thelp={ __( 'Make the editor look like your theme.' ) }\n\t\t\t\tlabel={ __( 'Use theme styles' ) }\n\t\t\t/>\n\t\t),\n\t};\n\n\treturn <PreferencesModal extraSections={ extraSections } />;\n}\n"],
5
- "mappings": "AAmBW;AAfX,SAAS,UAAU;AACnB,SAAS,eAAe,8BAA8B;AACtD,SAAS,eAAe,yBAAyB;AAKjD,SAAS,cAAc;AACvB,OAAO,sBAAsB;AAE7B,MAAM,EAAE,wBAAwB,IAAI,OAAQ,sBAAuB;AACnE,MAAM,EAAE,iBAAiB,IAAI,OAAQ,iBAAkB;AAExC,SAAR,2BAA4C;AAClD,QAAM,gBAAgB;AAAA,IACrB,SAAS,oBAAC,oBAAiB,OAAQ,GAAI,UAAW,GAAI;AAAA,IACtD,YACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,MAAO,GAAI,uCAAwC;AAAA,QACnD,OAAQ,GAAI,kBAAmB;AAAA;AAAA,IAChC;AAAA,EAEF;AAEA,SAAO,oBAAC,oBAAiB,eAAgC;AAC1D;",
5
+ "mappings": ";AAIA,SAAS,UAAU;AACnB,SAAS,eAAe,8BAA8B;AACtD,SAAS,eAAe,yBAAyB;AAKjD,SAAS,cAAc;AACvB,OAAO,sBAAsB;AAOlB;AALX,IAAM,EAAE,wBAAwB,IAAI,OAAQ,sBAAuB;AACnE,IAAM,EAAE,iBAAiB,IAAI,OAAQ,iBAAkB;AAExC,SAAR,2BAA4C;AAClD,QAAM,gBAAgB;AAAA,IACrB,SAAS,oBAAC,oBAAiB,OAAQ,GAAI,UAAW,GAAI;AAAA,IACtD,YACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,MAAO,GAAI,uCAAwC;AAAA,QACnD,OAAQ,GAAI,kBAAmB;AAAA;AAAA,IAChC;AAAA,EAEF;AAEA,SAAO,oBAAC,oBAAiB,eAAgC;AAC1D;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/preferences-modal/meta-boxes-section.js
2
2
  import { __ } from "@wordpress/i18n";
3
3
  import { withSelect } from "@wordpress/data";
4
4
  import { store as editorStore } from "@wordpress/editor";
@@ -7,7 +7,8 @@ import EnableCustomFieldsOption from "./enable-custom-fields";
7
7
  import EnablePanelOption from "./enable-panel";
8
8
  import { store as editPostStore } from "../../store";
9
9
  import { unlock } from "../../lock-unlock";
10
- const { PreferencesModalSection } = unlock(preferencesPrivateApis);
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var { PreferencesModalSection } = unlock(preferencesPrivateApis);
11
12
  function MetaBoxesSection({
12
13
  areCustomFieldsRegistered,
13
14
  metaBoxes,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/preferences-modal/meta-boxes-section.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { withSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport EnableCustomFieldsOption from './enable-custom-fields';\nimport EnablePanelOption from './enable-panel';\nimport { store as editPostStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\n\nconst { PreferencesModalSection } = unlock( preferencesPrivateApis );\n\nexport function MetaBoxesSection( {\n\tareCustomFieldsRegistered,\n\tmetaBoxes,\n\t...sectionProps\n} ) {\n\t// The 'Custom Fields' meta box is a special case that we handle separately.\n\tconst thirdPartyMetaBoxes = metaBoxes.filter(\n\t\t( { id } ) => id !== 'postcustom'\n\t);\n\n\tif ( ! areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PreferencesModalSection { ...sectionProps }>\n\t\t\t{ areCustomFieldsRegistered && (\n\t\t\t\t<EnableCustomFieldsOption label={ __( 'Custom fields' ) } />\n\t\t\t) }\n\t\t\t{ thirdPartyMetaBoxes.map( ( { id, title } ) => (\n\t\t\t\t<EnablePanelOption\n\t\t\t\t\tkey={ id }\n\t\t\t\t\tlabel={ title }\n\t\t\t\t\tpanelName={ `meta-box-${ id }` }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</PreferencesModalSection>\n\t);\n}\n\nexport default withSelect( ( select ) => {\n\tconst { getEditorSettings } = select( editorStore );\n\tconst { getAllMetaBoxes } = select( editPostStore );\n\n\treturn {\n\t\t// This setting should not live in the block editor's store.\n\t\tareCustomFieldsRegistered:\n\t\t\tgetEditorSettings().enableCustomFields !== undefined,\n\t\tmetaBoxes: getAllMetaBoxes(),\n\t};\n} )( MetaBoxesSection );\n"],
5
- "mappings": "AAiCE,SAEE,KAFF;AA9BF,SAAS,UAAU;AACnB,SAAS,kBAAkB;AAC3B,SAAS,SAAS,mBAAmB;AACrC,SAAS,eAAe,8BAA8B;AAKtD,OAAO,8BAA8B;AACrC,OAAO,uBAAuB;AAC9B,SAAS,SAAS,qBAAqB;AACvC,SAAS,cAAc;AAEvB,MAAM,EAAE,wBAAwB,IAAI,OAAQ,sBAAuB;AAE5D,SAAS,iBAAkB;AAAA,EACjC;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAI;AAEH,QAAM,sBAAsB,UAAU;AAAA,IACrC,CAAE,EAAE,GAAG,MAAO,OAAO;AAAA,EACtB;AAEA,MAAK,CAAE,6BAA6B,oBAAoB,WAAW,GAAI;AACtE,WAAO;AAAA,EACR;AAEA,SACC,qBAAC,2BAA0B,GAAG,cAC3B;AAAA,iCACD,oBAAC,4BAAyB,OAAQ,GAAI,eAAgB,GAAI;AAAA,IAEzD,oBAAoB,IAAK,CAAE,EAAE,IAAI,MAAM,MACxC;AAAA,MAAC;AAAA;AAAA,QAEA,OAAQ;AAAA,QACR,WAAY,YAAa,EAAG;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C,kBAAkB,EAAE,uBAAuB;AAAA,IAC5C,WAAW,gBAAgB;AAAA,EAC5B;AACD,CAAE,EAAG,gBAAiB;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,11 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/welcome-guide/default.js
2
2
  import { useDispatch } from "@wordpress/data";
3
3
  import { ExternalLink, Guide } from "@wordpress/components";
4
4
  import { __ } from "@wordpress/i18n";
5
5
  import { createInterpolateElement } from "@wordpress/element";
6
6
  import WelcomeGuideImage from "./image";
7
7
  import { store as editPostStore } from "../../store";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
9
  function WelcomeGuideDefault() {
9
10
  const { toggleFeature } = useDispatch(editPostStore);
10
11
  return /* @__PURE__ */ jsx(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/welcome-guide/default.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { ExternalLink, Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { createInterpolateElement } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideImage from './image';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuideDefault() {\n\tconst { toggleFeature } = useDispatch( editPostStore );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-post-welcome-guide\"\n\t\t\tcontentLabel={ __( 'Welcome to the editor' ) }\n\t\t\tfinishButtonText={ __( 'Get started' ) }\n\t\t\tonFinish={ () => toggleFeature( 'welcomeGuide' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-canvas.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-canvas.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Welcome to the editor' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'In the WordPress editor, each paragraph, image, or video is presented as a distinct \u201Cblock\u201D of content.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-editor.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-editor.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Customize each block' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-library.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-library.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Explore all blocks' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t'All of the blocks available to you live in the block library. You\u2019ll find it wherever you see the <InserterIconImage /> icon.'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tInserterIconImage: (\n\t\t\t\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\t\t\t\talt={ __( 'inserter' ) }\n\t\t\t\t\t\t\t\t\t\t\t\tsrc=\"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A\"\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-documentation.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-documentation.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Learn more' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t\"New to the block editor? Want to learn more about using it? <a>Here's a detailed guide.</a>\"\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ta: (\n\t\t\t\t\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/wordpress-block-editor/'\n\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t] }\n\t\t/>\n\t);\n}\n"],
5
- "mappings": "AA0BM,SAMA,UANA,KAMA,YANA;AAvBN,SAAS,mBAAmB;AAC5B,SAAS,cAAc,aAAa;AACpC,SAAS,UAAU;AACnB,SAAS,gCAAgC;AAKzC,OAAO,uBAAuB;AAC9B,SAAS,SAAS,qBAAqB;AAExB,SAAR,sBAAuC;AAC7C,QAAM,EAAE,cAAc,IAAI,YAAa,aAAc;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe,GAAI,uBAAwB;AAAA,MAC3C,kBAAmB,GAAI,aAAc;AAAA,MACrC,UAAW,MAAM,cAAe,cAAe;AAAA,MAC/C,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,gBAAe;AAAA,cACf,aA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AAA,kBAAC;AAAA;AAAA,oBACA,KAAM,GAAI,UAAW;AAAA,oBACrB,KAAI;AAAA;AAAA,gBACL;AAAA,cAEF;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,QACA;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,aAAI,YAAa,GACpB;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,gBACC;AAAA,cACD;AAAA,cACA;AAAA,gBACC,GACC;AAAA,kBAAC;AAAA;AAAA,oBACA,MAAO;AAAA,sBACN;AAAA,oBACD;AAAA;AAAA,gBACD;AAAA,cAEF;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ // packages/edit-post/src/components/welcome-guide/image.js
1
2
  import { jsx, jsxs } from "react/jsx-runtime";
2
3
  function WelcomeGuideImage({ nonAnimatedSrc, animatedSrc }) {
3
4
  return /* @__PURE__ */ jsxs("picture", { className: "edit-post-welcome-guide__image", children: [
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/welcome-guide/image.js"],
4
4
  "sourcesContent": ["export default function WelcomeGuideImage( { nonAnimatedSrc, animatedSrc } ) {\n\treturn (\n\t\t<picture className=\"edit-post-welcome-guide__image\">\n\t\t\t<source\n\t\t\t\tsrcSet={ nonAnimatedSrc }\n\t\t\t\tmedia=\"(prefers-reduced-motion: reduce)\"\n\t\t\t/>\n\t\t\t<img src={ animatedSrc } width=\"312\" height=\"240\" alt=\"\" />\n\t\t</picture>\n\t);\n}\n"],
5
- "mappings": "AAEE,SACC,KADD;AAFa,SAAR,kBAAoC,EAAE,gBAAgB,YAAY,GAAI;AAC5E,SACC,qBAAC,aAAQ,WAAU,kCAClB;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,QAAS;AAAA,QACT,OAAM;AAAA;AAAA,IACP;AAAA,IACA,oBAAC,SAAI,KAAM,aAAc,OAAM,OAAM,QAAO,OAAM,KAAI,IAAG;AAAA,KAC1D;AAEF;",
5
+ "mappings": ";AAEE,SACC,KADD;AAFa,SAAR,kBAAoC,EAAE,gBAAgB,YAAY,GAAI;AAC5E,SACC,qBAAC,aAAQ,WAAU,kCAClB;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,QAAS;AAAA,QACT,OAAM;AAAA;AAAA,IACP;AAAA,IACA,oBAAC,SAAI,KAAM,aAAc,OAAM,OAAM,QAAO,OAAM,KAAI,IAAG;AAAA,KAC1D;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/welcome-guide/index.js
2
2
  import { useSelect } from "@wordpress/data";
3
3
  import WelcomeGuideDefault from "./default";
4
4
  import WelcomeGuideTemplate from "./template";
5
5
  import { store as editPostStore } from "../../store";
6
+ import { jsx } from "react/jsx-runtime";
6
7
  function WelcomeGuide({ postType }) {
7
8
  const { isActive, isEditingTemplate } = useSelect(
8
9
  (select) => {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/welcome-guide/index.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideDefault from './default';\nimport WelcomeGuideTemplate from './template';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuide( { postType } ) {\n\tconst { isActive, isEditingTemplate } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isFeatureActive } = select( editPostStore );\n\t\t\tconst _isEditingTemplate = postType === 'wp_template';\n\t\t\tconst feature = _isEditingTemplate\n\t\t\t\t? 'welcomeGuideTemplate'\n\t\t\t\t: 'welcomeGuide';\n\n\t\t\treturn {\n\t\t\t\tisActive: isFeatureActive( feature ),\n\t\t\t\tisEditingTemplate: _isEditingTemplate,\n\t\t\t};\n\t\t},\n\t\t[ postType ]\n\t);\n\n\tif ( ! isActive ) {\n\t\treturn null;\n\t}\n\n\treturn isEditingTemplate ? (\n\t\t<WelcomeGuideTemplate />\n\t) : (\n\t\t<WelcomeGuideDefault />\n\t);\n}\n"],
5
- "mappings": "AAkCE;AA/BF,SAAS,iBAAiB;AAK1B,OAAO,yBAAyB;AAChC,OAAO,0BAA0B;AACjC,SAAS,SAAS,qBAAqB;AAExB,SAAR,aAA+B,EAAE,SAAS,GAAI;AACpD,QAAM,EAAE,UAAU,kBAAkB,IAAI;AAAA,IACvC,CAAE,WAAY;AACb,YAAM,EAAE,gBAAgB,IAAI,OAAQ,aAAc;AAClD,YAAM,qBAAqB,aAAa;AACxC,YAAM,UAAU,qBACb,yBACA;AAEH,aAAO;AAAA,QACN,UAAU,gBAAiB,OAAQ;AAAA,QACnC,mBAAmB;AAAA,MACpB;AAAA,IACD;AAAA,IACA,CAAE,QAAS;AAAA,EACZ;AAEA,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SAAO,oBACN,oBAAC,wBAAqB,IAEtB,oBAAC,uBAAoB;AAEvB;",
5
+ "mappings": ";AAGA,SAAS,iBAAiB;AAK1B,OAAO,yBAAyB;AAChC,OAAO,0BAA0B;AACjC,SAAS,SAAS,qBAAqB;AAwBrC;AAtBa,SAAR,aAA+B,EAAE,SAAS,GAAI;AACpD,QAAM,EAAE,UAAU,kBAAkB,IAAI;AAAA,IACvC,CAAE,WAAY;AACb,YAAM,EAAE,gBAAgB,IAAI,OAAQ,aAAc;AAClD,YAAM,qBAAqB,aAAa;AACxC,YAAM,UAAU,qBACb,yBACA;AAEH,aAAO;AAAA,QACN,UAAU,gBAAiB,OAAQ;AAAA,QACnC,mBAAmB;AAAA,MACpB;AAAA,IACD;AAAA,IACA,CAAE,QAAS;AAAA,EACZ;AAEA,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAEA,SAAO,oBACN,oBAAC,wBAAqB,IAEtB,oBAAC,uBAAoB;AAEvB;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,10 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ // packages/edit-post/src/components/welcome-guide/template.js
2
2
  import { useDispatch } from "@wordpress/data";
3
3
  import { Guide } from "@wordpress/components";
4
4
  import { __ } from "@wordpress/i18n";
5
5
  import WelcomeGuideImage from "./image";
6
6
  import { store as editPostStore } from "../../store";
7
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
8
  function WelcomeGuideTemplate() {
8
9
  const { toggleFeature } = useDispatch(editPostStore);
9
10
  return /* @__PURE__ */ jsx(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/welcome-guide/template.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { Guide } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport WelcomeGuideImage from './image';\nimport { store as editPostStore } from '../../store';\n\nexport default function WelcomeGuideTemplate() {\n\tconst { toggleFeature } = useDispatch( editPostStore );\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"edit-template-welcome-guide\"\n\t\t\tcontentLabel={ __( 'Welcome to the template editor' ) }\n\t\t\tfinishButtonText={ __( 'Get started' ) }\n\t\t\tonFinish={ () => toggleFeature( 'welcomeGuideTemplate' ) }\n\t\t\tpages={ [\n\t\t\t\t{\n\t\t\t\t\timage: (\n\t\t\t\t\t\t<WelcomeGuideImage\n\t\t\t\t\t\t\tnonAnimatedSrc=\"https://s.w.org/images/block-editor/welcome-template-editor.svg\"\n\t\t\t\t\t\t\tanimatedSrc=\"https://s.w.org/images/block-editor/welcome-template-editor.gif\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t),\n\t\t\t\t\tcontent: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<h1 className=\"edit-post-welcome-guide__heading\">\n\t\t\t\t\t\t\t\t{ __( 'Welcome to the template editor' ) }\n\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t<p className=\"edit-post-welcome-guide__text\">\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t] }\n\t\t/>\n\t);\n}\n"],
5
- "mappings": "AAyBM,SAMA,UANA,KAMA,YANA;AAtBN,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,UAAU;AAKnB,OAAO,uBAAuB;AAC9B,SAAS,SAAS,qBAAqB;AAExB,SAAR,uBAAwC;AAC9C,QAAM,EAAE,cAAc,IAAI,YAAa,aAAc;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe,GAAI,gCAAiC;AAAA,MACpD,kBAAmB,GAAI,aAAc;AAAA,MACrC,UAAW,MAAM,cAAe,sBAAuB;AAAA,MACvD,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,aAAI,gCAAiC,GACxC;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
5
+ "mappings": ";AAGA,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,UAAU;AAKnB,OAAO,uBAAuB;AAC9B,SAAS,SAAS,qBAAqB;AAcjC,SAMA,UANA,KAMA,YANA;AAZS,SAAR,uBAAwC;AAC9C,QAAM,EAAE,cAAc,IAAI,YAAa,aAAc;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe,GAAI,gCAAiC;AAAA,MACpD,kBAAmB,GAAI,aAAc;AAAA,MACrC,UAAW,MAAM,cAAe,sBAAuB;AAAA,MACvD,OAAQ;AAAA,QACP;AAAA,UACC,OACC;AAAA,YAAC;AAAA;AAAA,cACA,gBAAe;AAAA,cACf,aAAY;AAAA;AAAA,UACb;AAAA,UAED,SACC,iCACC;AAAA,gCAAC,QAAG,WAAU,oCACX,aAAI,gCAAiC,GACxC;AAAA,YACA,oBAAC,OAAE,WAAU,iCACV;AAAA,cACD;AAAA,YACD,GACD;AAAA,aACD;AAAA,QAEF;AAAA,MACD;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/deprecated.js
2
2
  import {
3
3
  privateApis as editorPrivateApis,
4
4
  PluginBlockSettingsMenuItem as EditorPluginBlockSettingsMenuItem,
@@ -13,11 +13,12 @@ import {
13
13
  import { getPath } from "@wordpress/url";
14
14
  import deprecated from "@wordpress/deprecated";
15
15
  import { unlock } from "./lock-unlock";
16
- const { PluginPostExcerpt } = unlock(editorPrivateApis);
17
- const isSiteEditor = getPath(window.location.href)?.includes(
16
+ import { jsx } from "react/jsx-runtime";
17
+ var { PluginPostExcerpt } = unlock(editorPrivateApis);
18
+ var isSiteEditor = getPath(window.location.href)?.includes(
18
19
  "site-editor.php"
19
20
  );
20
- const deprecateSlot = (name) => {
21
+ var deprecateSlot = (name) => {
21
22
  deprecated(`wp.editPost.${name}`, {
22
23
  since: "6.6",
23
24
  alternative: `wp.editor.${name}`
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/deprecated.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tprivateApis as editorPrivateApis,\n\tPluginBlockSettingsMenuItem as EditorPluginBlockSettingsMenuItem,\n\tPluginDocumentSettingPanel as EditorPluginDocumentSettingPanel,\n\tPluginMoreMenuItem as EditorPluginMoreMenuItem,\n\tPluginPrePublishPanel as EditorPluginPrePublishPanel,\n\tPluginPostPublishPanel as EditorPluginPostPublishPanel,\n\tPluginPostStatusInfo as EditorPluginPostStatusInfo,\n\tPluginSidebar as EditorPluginSidebar,\n\tPluginSidebarMoreMenuItem as EditorPluginSidebarMoreMenuItem,\n} from '@wordpress/editor';\nimport { getPath } from '@wordpress/url';\nimport deprecated from '@wordpress/deprecated';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from './lock-unlock';\nconst { PluginPostExcerpt } = unlock( editorPrivateApis );\n\nconst isSiteEditor = getPath( window.location.href )?.includes(\n\t'site-editor.php'\n);\n\nconst deprecateSlot = ( name ) => {\n\tdeprecated( `wp.editPost.${ name }`, {\n\t\tsince: '6.6',\n\t\talternative: `wp.editor.${ name }`,\n\t} );\n};\n\n/* eslint-disable jsdoc/require-param */\n/**\n * @see PluginBlockSettingsMenuItem in @wordpress/editor package.\n */\nexport function PluginBlockSettingsMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginBlockSettingsMenuItem' );\n\treturn <EditorPluginBlockSettingsMenuItem { ...props } />;\n}\n\n/**\n * @see PluginDocumentSettingPanel in @wordpress/editor package.\n */\nexport function PluginDocumentSettingPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginDocumentSettingPanel' );\n\treturn <EditorPluginDocumentSettingPanel { ...props } />;\n}\n\n/**\n * @see PluginMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginMoreMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginMoreMenuItem' );\n\treturn <EditorPluginMoreMenuItem { ...props } />;\n}\n\n/**\n * @see PluginPrePublishPanel in @wordpress/editor package.\n */\nexport function PluginPrePublishPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPrePublishPanel' );\n\treturn <EditorPluginPrePublishPanel { ...props } />;\n}\n\n/**\n * @see PluginPostPublishPanel in @wordpress/editor package.\n */\nexport function PluginPostPublishPanel( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPostPublishPanel' );\n\treturn <EditorPluginPostPublishPanel { ...props } />;\n}\n\n/**\n * @see PluginPostStatusInfo in @wordpress/editor package.\n */\nexport function PluginPostStatusInfo( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginPostStatusInfo' );\n\treturn <EditorPluginPostStatusInfo { ...props } />;\n}\n\n/**\n * @see PluginSidebar in @wordpress/editor package.\n */\nexport function PluginSidebar( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebar' );\n\treturn <EditorPluginSidebar { ...props } />;\n}\n\n/**\n * @see PluginSidebarMoreMenuItem in @wordpress/editor package.\n */\nexport function PluginSidebarMoreMenuItem( props ) {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecateSlot( 'PluginSidebarMoreMenuItem' );\n\treturn <EditorPluginSidebarMoreMenuItem { ...props } />;\n}\n\n/**\n * @see PluginPostExcerpt in @wordpress/editor package.\n */\nexport function __experimentalPluginPostExcerpt() {\n\tif ( isSiteEditor ) {\n\t\treturn null;\n\t}\n\tdeprecated( 'wp.editPost.__experimentalPluginPostExcerpt', {\n\t\tsince: '6.6',\n\t\thint: 'Core and custom panels can be access programmatically using their panel name.',\n\t\tlink: 'https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically',\n\t} );\n\treturn PluginPostExcerpt;\n}\n\n/* eslint-enable jsdoc/require-param */\n"],
5
- "mapp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,OAAQ;AACnD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,4BAA6B;AAC5C,SAAO,oBAAC,oCAAmC,GAAG,OAAQ;AACvD;AAKO,SAAS,mBAAoB,OAAQ;AAC3C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,oBAAqB;AACpC,SAAO,oBAAC,4BAA2B,GAAG,OAAQ;AAC/C;AAKO,SAAS,sBAAuB,OAAQ;AAC9C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,uBAAwB;AACvC,SAAO,oBAAC,+BAA8B,GAAG,OAAQ;AAClD;AAKO,SAAS,uBAAwB,OAAQ;AAC/C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,wBAAyB;AACxC,SAAO,oBAAC,gCAA+B,GAAG,OAAQ;AACnD;AAKO,SAAS,qBAAsB,OAAQ;AAC7C,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,sBAAuB;AACtC,SAAO,oBAAC,8BAA6B,GAAG,OAAQ;AACjD;AAKO,SAAS,cAAe,OAAQ;AACtC,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,eAAgB;AAC/B,SAAO,oBAAC,uBAAsB,GAAG,OAAQ;AAC1C;AAKO,SAAS,0BAA2B,OAAQ;AAClD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,gBAAe,2BAA4B;AAC3C,SAAO,oBAAC,mCAAkC,GAAG,OAAQ;AACtD;AAKO,SAAS,kCAAkC;AACjD,MAAK,cAAe;AACnB,WAAO;AAAA,EACR;AACA,aAAY,+CAA+C;AAAA,IAC1D,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,EACP,CAAE;AACF,SAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ // packages/edit-post/src/hooks/use-navigate-to-entity-record.js
1
2
  import { useCallback, useReducer } from "@wordpress/element";
2
3
  import { useSelect, useDispatch } from "@wordpress/data";
3
4
  import { store as editorStore } from "@wordpress/editor";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/hooks/use-navigate-to-entity-record.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useCallback, useReducer } from '@wordpress/element';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * A hook that records the 'entity' history in the post editor as a user\n * navigates between editing a post and editing the post template or patterns.\n *\n * Implemented as a stack, so a little similar to the browser history API.\n *\n * Used to control displaying UI elements like the back button.\n *\n * @param {number} initialPostId The post id of the post when the editor loaded.\n * @param {string} initialPostType The post type of the post when the editor loaded.\n * @param {string} defaultRenderingMode The rendering mode to switch to when navigating.\n *\n * @return {Object} An object containing the `currentPost` variable and\n * `onNavigateToEntityRecord` and `onNavigateToPreviousEntityRecord` functions.\n */\nexport default function useNavigateToEntityRecord(\n\tinitialPostId,\n\tinitialPostType,\n\tdefaultRenderingMode\n) {\n\tconst [ postHistory, dispatch ] = useReducer(\n\t\t( historyState, { type, post, previousRenderingMode } ) => {\n\t\t\tif ( type === 'push' ) {\n\t\t\t\treturn [ ...historyState, { post, previousRenderingMode } ];\n\t\t\t}\n\t\t\tif ( type === 'pop' ) {\n\t\t\t\t// Try to leave one item in the history.\n\t\t\t\tif ( historyState.length > 1 ) {\n\t\t\t\t\treturn historyState.slice( 0, -1 );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn historyState;\n\t\t},\n\t\t[\n\t\t\t{\n\t\t\t\tpost: { postId: initialPostId, postType: initialPostType },\n\t\t\t},\n\t\t]\n\t);\n\n\tconst { post, previousRenderingMode } =\n\t\tpostHistory[ postHistory.length - 1 ];\n\n\tconst { getRenderingMode } = useSelect( editorStore );\n\tconst { setRenderingMode } = useDispatch( editorStore );\n\n\tconst onNavigateToEntityRecord = useCallback(\n\t\t( params ) => {\n\t\t\tdispatch( {\n\t\t\t\ttype: 'push',\n\t\t\t\tpost: { postId: params.postId, postType: params.postType },\n\t\t\t\t// Save the current rendering mode so we can restore it when navigating back.\n\t\t\t\tpreviousRenderingMode: getRenderingMode(),\n\t\t\t} );\n\t\t\tsetRenderingMode( defaultRenderingMode );\n\t\t},\n\t\t[ getRenderingMode, setRenderingMode, defaultRenderingMode ]\n\t);\n\n\tconst onNavigateToPreviousEntityRecord = useCallback( () => {\n\t\tdispatch( { type: 'pop' } );\n\t\tif ( previousRenderingMode ) {\n\t\t\tsetRenderingMode( previousRenderingMode );\n\t\t}\n\t}, [ setRenderingMode, previousRenderingMode ] );\n\n\treturn {\n\t\tcurrentPost: post,\n\t\tonNavigateToEntityRecord,\n\t\tonNavigateToPreviousEntityRecord:\n\t\t\tpostHistory.length > 1\n\t\t\t\t? onNavigateToPreviousEntityRecord\n\t\t\t\t: undefined,\n\t};\n}\n"],
5
- "mappings": "AAGA,SAAS,aAAa,kBAAkB;AACxC,SAAS,WAAW,mBAAmB;AACvC,SAAS,SAAS,mBAAmB;AAiBtB,SAAR,0BACN,eACA,iBACA,sBACC;AACD,QAAM,CAAE,aAAa,QAAS,IAAI;AAAA,IACjC,CAAE,cAAc,EAAE,MAAM,MAAAA,OAAM,uBAAAC,uBAAsB,MAAO;AAC1D,UAAK,SAAS,QAAS;AACtB,eAAO,CAAE,GAAG,cAAc,EAAE,MAAAD,OAAM,uBAAAC,uBAAsB,CAAE;AAAA,MAC3D;AACA,UAAK,SAAS,OAAQ;AAErB,YAAK,aAAa,SAAS,GAAI;AAC9B,iBAAO,aAAa,MAAO,GAAG,EAAG;AAAA,QAClC;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,IACA;AAAA,MACC;AAAA,QACC,MAAM,EAAE,QAAQ,eAAe,UAAU,gBAAgB;AAAA,MAC1D;AAAA,IACD;AAAA,EACD;AAEA,QAAM,EAAE,MAAM,sBAAsB,IACnC,YAAa,YAAY,SAAS,CAAE;AAErC,QAAM,EAAE,iBAAiB,IAAI,UAAW,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YAAa,YAAY,SAAS,CAAE;AAErC,QAAM,EAAE,iBAAiB,IAAI,UAAW,WAAY;AACpD,QAAM,EAAE,iBAAiB,IAAI,YAAa,WAAY;AAEtD,QAAM,2BAA2B;AAAA,IAChC,CAAE,WAAY;AACb,eAAU;AAAA,QACT,MAAM;AAAA,QACN,MAAM,EAAE,QAAQ,OAAO,QAAQ,UAAU,OAAO,SAAS;AAAA;AAAA,QAEzD,uBAAuB,iBAAiB;AAAA,MACzC,CAAE;AACF,uBAAkB,oBAAqB;AAAA,IACxC;AAAA,IACA,CAAE,kBAAkB,kBAAkB,oBAAqB;AAAA,EAC5D;AAEA,QAAM,mCAAmC,YAAa,MAAM;AAC3D,aAAU,EAAE,MAAM,MAAM,CAAE;AAC1B,QAAK,uBAAwB;AAC5B,uBAAkB,qBAAsB;AAAA,IACzC;AAAA,EACD,GAAG,CAAE,kBAAkB,qBAAsB,CAAE;AAE/C,SAAO;AAAA,IACN,aAAa;AAAA,IACb;AAAA,IACA,kCACC,YAAY,SAAS,IAClB,mCACA;AAAA,EACL;AACD;",
6
6
  "names": ["post", "previousRenderingMode"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ // packages/edit-post/src/index.js
2
2
  import { store as blocksStore } from "@wordpress/blocks";
3
3
  import {
4
4
  registerCoreBlocks,
@@ -18,7 +18,11 @@ import {
18
18
  } from "@wordpress/editor";
19
19
  import Layout from "./components/layout";
20
20
  import { unlock } from "./lock-unlock";
21
- const {
21
+ import { default as default2 } from "./components/back-button/fullscreen-mode-close";
22
+ import { store } from "./store";
23
+ export * from "./deprecated";
24
+ import { jsx } from "react/jsx-runtime";
25
+ var {
22
26
  BackButton: __experimentalMainDashboardButton,
23
27
  registerCoreBlockBindingsSources
24
28
  } = unlock(editorPrivateApis);
@@ -108,9 +112,6 @@ function reinitializeEditor() {
108
112
  version: "6.3"
109
113
  });
110
114
  }
111
- import { default as default2 } from "./components/back-button/fullscreen-mode-close";
112
- import { store } from "./store";
113
- export * from "./deprecated";
114
115
  export {
115
116
  default2 as __experimentalFullscreenModeClose,
116
117
  __experimentalMainDashboardButton,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/index.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { dispatch, select } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\nimport { unlock } from './lock-unlock';\n\nconst {\n\tBackButton: __experimentalMainDashboardButton,\n\tregisterCoreBlockBindingsSources,\n} = unlock( editorPrivateApis );\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {string} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor(\n\tid,\n\tpostType,\n\tpostId,\n\tsettings,\n\tinitialEdits\n) {\n\tconst isMediumOrBigger = window.matchMedia( '(min-width: 782px)' ).matches;\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-post', {\n\t\tfullscreenMode: true,\n\t\tthemeStyles: true,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\thiddenBlockTypes: [],\n\t\tinactivePanels: [],\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowIconLabels: false,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tisPublishSidebarEnabled: true,\n\t} );\n\n\tif ( window.__experimentalMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\n\t// Check if the block list view should be open by default.\n\t// If `distractionFree` mode is enabled, the block list view should not be open.\n\t// This behavior is disabled for small viewports.\n\tif (\n\t\tisMediumOrBigger &&\n\t\tselect( preferencesStore ).get( 'core', 'showListViewByDefault' ) &&\n\t\t! select( preferencesStore ).get( 'core', 'distractionFree' )\n\t) {\n\t\tdispatch( editorStore ).setIsListViewOpened( true );\n\t}\n\n\tregisterCoreBlocks();\n\tregisterCoreBlockBindingsSources();\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: settings.__unstableEnableFullSiteEditingBlocks,\n\t\t} );\n\t}\n\n\t// Show a console log warning if the browser is not in Standards rendering mode.\n\tconst documentMode =\n\t\tdocument.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';\n\tif ( documentMode !== 'Standards' ) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.warn(\n\t\t\t\"Your browser is using Quirks Mode. \\nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.\"\n\t\t);\n\t}\n\n\t// This is a temporary fix for a couple of issues specific to Webkit on iOS.\n\t// Without this hack the browser scrolls the mobile toolbar off-screen.\n\t// Once supported in Safari we can replace this in favor of preventScroll.\n\t// For details see issue #18632 and PR #18686\n\t// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.\n\t// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.\n\n\tconst isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1;\n\tif ( isIphone ) {\n\t\twindow.addEventListener( 'scroll', ( event ) => {\n\t\t\tconst editorScrollContainer = document.getElementsByClassName(\n\t\t\t\t'interface-interface-skeleton__body'\n\t\t\t)[ 0 ];\n\t\t\tif ( event.target === document ) {\n\t\t\t\t// Scroll element into view by scrolling the editor container by the same amount\n\t\t\t\t// that Mobile Safari tried to scroll the html element upwards.\n\t\t\t\tif ( window.scrollY > 100 ) {\n\t\t\t\t\teditorScrollContainer.scrollTop =\n\t\t\t\t\t\teditorScrollContainer.scrollTop + window.scrollY;\n\t\t\t\t}\n\t\t\t\t// Undo unwanted scroll on html element, but only in the visual editor.\n\t\t\t\tif (\n\t\t\t\t\tdocument.getElementsByClassName( 'is-mode-visual' )[ 0 ]\n\t\t\t\t) {\n\t\t\t\t\twindow.scrollTo( 0, 0 );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<Layout\n\t\t\t\tsettings={ settings }\n\t\t\t\tpostId={ postId }\n\t\t\t\tpostType={ postType }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t/>\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Used to reinitialize the editor after an error. Now it's a deprecated noop function.\n */\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editPost.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as __experimentalFullscreenModeClose } from './components/back-button/fullscreen-mode-close';\nexport { __experimentalMainDashboardButton };\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
- "mappings": "AAwJG;AArJH,SAAS,SAAS,mBAAmB;AACrC;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC,SAAS,UAAU,cAAc;AACjC,SAAS,SAAS,wBAAwB;AAC1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP;AAAA,EACC,SAAS;AAAA,EACT,eAAe;AAAA,OACT;AAKP,OAAO,YAAY;AACnB,SAAS,cAAc;AAEvB,MAAM;AAAA,EACL,YAAY;AAAA,EACZ;AACD,IAAI,OAAQ,iBAAkB;AAavB,SAAS,iBACf,IACA,UACA,QACA,UACA,cACC;AACD,QAAM,mBAAmB,OAAO,WAAY,oBAAqB,EAAE;AACnE,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,OAAO,WAAY,MAAO;AAEhC,WAAU,gBAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,cAAc;AAAA,IACd,sBAAsB;AAAA,EACvB,CAAE;AAEF,WAAU,gBAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,gBAAgB,CAAC;AAAA,IACjB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,EAC1B,CAAE;AAEF,MAAK,OAAO,+BAAgC;AAC3C,aAAU,gBAAiB,EAAE,YAAa,cAAc;AAAA,M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,KAAM;AAEpE,OAAK;AAAA,IACJ,oBAAC,cACA;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACD,GACD;AAAA,EACD;AAEA,SAAO;AACR;AAKO,SAAS,qBAAqB;AACpC,aAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
6
6
  "names": ["default"]
7
7
  }
@@ -1,5 +1,6 @@
1
+ // packages/edit-post/src/lock-unlock.js
1
2
  import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from "@wordpress/private-apis";
2
- const { lock, unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
3
+ var { lock, unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
3
4
  "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
4
5
  "@wordpress/edit-post"
5
6
  );
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/lock-unlock.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/edit-post'\n\t);\n"],
5
- "mappings": "AAGA,SAAS,wDAAwD;AAE1D,MAAM,EAAE,MAAM,OAAO,IAC3B;AAAA,EACC;AAAA,EACA;AACD;",
5
+ "mappings": ";AAGA,SAAS,wDAAwD;AAE1D,IAAM,EAAE,MAAM,OAAO,IAC3B;AAAA,EACC;AAAA,EACA;AACD;",
6
6
  "names": []
7
7
  }