@wordpress/editor 14.18.0 → 14.19.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 (141) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +2 -0
  3. package/build/components/document-outline/index.js +16 -16
  4. package/build/components/document-outline/index.js.map +1 -1
  5. package/build/components/entities-saved-states/entity-record-item.js +2 -1
  6. package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
  7. package/build/components/entities-saved-states/entity-type-list.js +2 -1
  8. package/build/components/entities-saved-states/entity-type-list.js.map +1 -1
  9. package/build/components/entities-saved-states/index.js +66 -42
  10. package/build/components/entities-saved-states/index.js.map +1 -1
  11. package/build/components/post-actions/index.js +19 -28
  12. package/build/components/post-actions/index.js.map +1 -1
  13. package/build/components/post-card-panel/index.js +2 -2
  14. package/build/components/post-card-panel/index.js.map +1 -1
  15. package/build/components/post-featured-image/index.js +4 -2
  16. package/build/components/post-featured-image/index.js.map +1 -1
  17. package/build/components/post-template/block-theme.js +68 -48
  18. package/build/components/post-template/block-theme.js.map +1 -1
  19. package/build/components/post-template/classic-theme.js +30 -18
  20. package/build/components/post-template/classic-theme.js.map +1 -1
  21. package/build/components/post-template/create-new-template-modal.js +3 -1
  22. package/build/components/post-template/create-new-template-modal.js.map +1 -1
  23. package/build/components/post-template/panel.js +3 -11
  24. package/build/components/post-template/panel.js.map +1 -1
  25. package/build/components/preferences-modal/block-visibility.js +2 -1
  26. package/build/components/preferences-modal/block-visibility.js.map +1 -1
  27. package/build/components/preferences-modal/index.js +1 -1
  28. package/build/components/preferences-modal/index.js.map +1 -1
  29. package/build/components/preview-dropdown/index.js +6 -3
  30. package/build/components/preview-dropdown/index.js.map +1 -1
  31. package/build/components/provider/index.js +19 -18
  32. package/build/components/provider/index.js.map +1 -1
  33. package/build/components/sidebar/header.js +1 -1
  34. package/build/components/sidebar/header.js.map +1 -1
  35. package/build/components/sidebar/index.js +1 -1
  36. package/build/components/sidebar/index.js.map +1 -1
  37. package/build/components/start-page-options/index.js +148 -23
  38. package/build/components/start-page-options/index.js.map +1 -1
  39. package/build/components/visual-editor/edit-template-blocks-notification.js +1 -1
  40. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  41. package/build/store/private-actions.js +29 -2
  42. package/build/store/private-actions.js.map +1 -1
  43. package/build/store/private-selectors.js +44 -0
  44. package/build/store/private-selectors.js.map +1 -1
  45. package/build/utils/media-upload/index.js +5 -2
  46. package/build/utils/media-upload/index.js.map +1 -1
  47. package/build-module/components/document-outline/index.js +17 -17
  48. package/build-module/components/document-outline/index.js.map +1 -1
  49. package/build-module/components/entities-saved-states/entity-record-item.js +2 -1
  50. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  51. package/build-module/components/entities-saved-states/entity-type-list.js +2 -1
  52. package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
  53. package/build-module/components/entities-saved-states/index.js +67 -43
  54. package/build-module/components/entities-saved-states/index.js.map +1 -1
  55. package/build-module/components/post-actions/index.js +19 -28
  56. package/build-module/components/post-actions/index.js.map +1 -1
  57. package/build-module/components/post-card-panel/index.js +2 -2
  58. package/build-module/components/post-card-panel/index.js.map +1 -1
  59. package/build-module/components/post-featured-image/index.js +4 -2
  60. package/build-module/components/post-featured-image/index.js.map +1 -1
  61. package/build-module/components/post-template/block-theme.js +68 -48
  62. package/build-module/components/post-template/block-theme.js.map +1 -1
  63. package/build-module/components/post-template/classic-theme.js +30 -18
  64. package/build-module/components/post-template/classic-theme.js.map +1 -1
  65. package/build-module/components/post-template/create-new-template-modal.js +3 -1
  66. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  67. package/build-module/components/post-template/panel.js +3 -11
  68. package/build-module/components/post-template/panel.js.map +1 -1
  69. package/build-module/components/preferences-modal/block-visibility.js +2 -1
  70. package/build-module/components/preferences-modal/block-visibility.js.map +1 -1
  71. package/build-module/components/preferences-modal/index.js +1 -1
  72. package/build-module/components/preferences-modal/index.js.map +1 -1
  73. package/build-module/components/preview-dropdown/index.js +6 -3
  74. package/build-module/components/preview-dropdown/index.js.map +1 -1
  75. package/build-module/components/provider/index.js +19 -18
  76. package/build-module/components/provider/index.js.map +1 -1
  77. package/build-module/components/sidebar/header.js +1 -1
  78. package/build-module/components/sidebar/header.js.map +1 -1
  79. package/build-module/components/sidebar/index.js +1 -1
  80. package/build-module/components/sidebar/index.js.map +1 -1
  81. package/build-module/components/start-page-options/index.js +148 -24
  82. package/build-module/components/start-page-options/index.js.map +1 -1
  83. package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -1
  84. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  85. package/build-module/store/private-actions.js +25 -0
  86. package/build-module/store/private-actions.js.map +1 -1
  87. package/build-module/store/private-selectors.js +43 -0
  88. package/build-module/store/private-selectors.js.map +1 -1
  89. package/build-module/utils/media-upload/index.js +5 -2
  90. package/build-module/utils/media-upload/index.js.map +1 -1
  91. package/build-style/style-rtl.css +49 -8
  92. package/build-style/style.css +49 -8
  93. package/build-types/components/document-outline/index.d.ts.map +1 -1
  94. package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -1
  95. package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -1
  96. package/build-types/components/entities-saved-states/index.d.ts +6 -2
  97. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  98. package/build-types/components/post-actions/index.d.ts.map +1 -1
  99. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  100. package/build-types/components/post-template/block-theme.d.ts.map +1 -1
  101. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  102. package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
  103. package/build-types/components/post-template/panel.d.ts.map +1 -1
  104. package/build-types/components/preferences-modal/block-visibility.d.ts.map +1 -1
  105. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  106. package/build-types/components/provider/index.d.ts.map +1 -1
  107. package/build-types/components/start-page-options/index.d.ts +2 -1
  108. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  109. package/build-types/store/private-actions.d.ts +4 -0
  110. package/build-types/store/private-actions.d.ts.map +1 -1
  111. package/build-types/store/private-selectors.d.ts +13 -0
  112. package/build-types/store/private-selectors.d.ts.map +1 -1
  113. package/build-types/utils/media-upload/index.d.ts +3 -1
  114. package/build-types/utils/media-upload/index.d.ts.map +1 -1
  115. package/package.json +37 -37
  116. package/src/components/document-outline/index.js +22 -16
  117. package/src/components/entities-saved-states/entity-record-item.js +1 -0
  118. package/src/components/entities-saved-states/entity-type-list.js +6 -2
  119. package/src/components/entities-saved-states/index.js +98 -58
  120. package/src/components/entities-saved-states/style.scss +40 -5
  121. package/src/components/post-actions/index.js +19 -37
  122. package/src/components/post-card-panel/index.js +7 -5
  123. package/src/components/post-featured-image/index.js +2 -0
  124. package/src/components/post-template/block-theme.js +76 -56
  125. package/src/components/post-template/classic-theme.js +31 -15
  126. package/src/components/post-template/create-new-template-modal.js +1 -0
  127. package/src/components/post-template/panel.js +2 -12
  128. package/src/components/post-text-editor/style.scss +0 -2
  129. package/src/components/preferences-modal/block-visibility.js +2 -1
  130. package/src/components/preferences-modal/index.js +1 -1
  131. package/src/components/preview-dropdown/index.js +8 -6
  132. package/src/components/provider/index.js +21 -30
  133. package/src/components/sidebar/header.js +1 -1
  134. package/src/components/sidebar/index.js +1 -1
  135. package/src/components/start-page-options/index.js +149 -23
  136. package/src/components/start-page-options/style.scss +27 -0
  137. package/src/components/visual-editor/edit-template-blocks-notification.js +1 -1
  138. package/src/store/private-actions.js +33 -0
  139. package/src/store/private-selectors.js +57 -0
  140. package/src/utils/media-upload/index.js +3 -0
  141. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["v4","uuid","select","dispatch","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","onSuccess","getCurrentPost","getEditorSettings","lockPostAutosaving","unlockPostAutosaving","lockPostSaving","unlockPostSaving","wpAllowedMimeTypes","allowedMimeTypes","lockKey","imageIsUploading","currentPost","currentPostId","id","wp_id","setSaveLock","postData","post","clearSaveLock","file","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { select, dispatch } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $0.onSuccess Function called after the final representation of the file is available.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n\tonSuccess,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst {\n\t\tlockPostAutosaving,\n\t\tunlockPostAutosaving,\n\t\tlockPostSaving,\n\t\tunlockPostSaving,\n\t} = dispatch( editorStore );\n\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tconst lockKey = `image-upload-${ uuid() }`;\n\tlet imageIsUploading = false;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst setSaveLock = () => {\n\t\tlockPostSaving( lockKey );\n\t\tlockPostAutosaving( lockKey );\n\t\timageIsUploading = true;\n\t};\n\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\tconst clearSaveLock = () => {\n\t\tunlockPostSaving( lockKey );\n\t\tunlockPostAutosaving( lockKey );\n\t\timageIsUploading = false;\n\t};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange: ( file ) => {\n\t\t\tif ( ! imageIsUploading ) {\n\t\t\t\tsetSaveLock();\n\t\t\t} else {\n\t\t\t\tclearSaveLock();\n\t\t\t}\n\t\t\tonFileChange?.( file );\n\t\t},\n\t\tonSuccess,\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) => {\n\t\t\tclearSaveLock();\n\t\t\tonError( message );\n\t\t},\n\t\twpAllowedMimeTypes,\n\t} );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;;AAEjC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,QAAQ,QAAQ,iBAAiB;AAClD,SAASC,WAAW,QAAQ,wBAAwB;;AAEpD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAElD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,WAAWA,CAAE;EACpCC,cAAc,GAAG,CAAC,CAAC;EACnBC,YAAY;EACZC,SAAS;EACTC,iBAAiB;EACjBC,OAAO,GAAGN,IAAI;EACdO,YAAY;EACZC;AACD,CAAC,EAAG;EACH,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAGf,MAAM,CAAEI,WAAY,CAAC;EACnE,MAAM;IACLY,kBAAkB;IAClBC,oBAAoB;IACpBC,cAAc;IACdC;EACD,CAAC,GAAGlB,QAAQ,CAAEG,WAAY,CAAC;EAE3B,MAAMgB,kBAAkB,GAAGL,iBAAiB,CAAC,CAAC,CAACM,gBAAgB;EAC/D,MAAMC,OAAO,GAAG,gBAAiBvB,IAAI,CAAC,CAAC,EAAG;EAC1C,IAAIwB,gBAAgB,GAAG,KAAK;EAC5Bb,iBAAiB,GAChBA,iBAAiB,IAAIK,iBAAiB,CAAC,CAAC,CAACL,iBAAiB;EAC3D,MAAMc,WAAW,GAAGV,cAAc,CAAC,CAAC;EACpC;EACA,MAAMW,aAAa,GAClB,OAAOD,WAAW,EAAEE,EAAE,KAAK,QAAQ,GAChCF,WAAW,CAACE,EAAE,GACdF,WAAW,EAAEG,KAAK;EACtB,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACzBV,cAAc,CAAEI,OAAQ,CAAC;IACzBN,kBAAkB,CAAEM,OAAQ,CAAC;IAC7BC,gBAAgB,GAAG,IAAI;EACxB,CAAC;EAED,MAAMM,QAAQ,GAAGJ,aAAa,GAAG;IAAEK,IAAI,EAAEL;EAAc,CAAC,GAAG,CAAC,CAAC;EAC7D,MAAMM,aAAa,GAAGA,CAAA,KAAM;IAC3BZ,gBAAgB,CAAEG,OAAQ,CAAC;IAC3BL,oBAAoB,CAAEK,OAAQ,CAAC;IAC/BC,gBAAgB,GAAG,KAAK;EACzB,CAAC;EAEDrB,WAAW,CAAE;IACZM,YAAY;IACZC,SAAS;IACTG,YAAY,EAAIoB,IAAI,IAAM;MACzB,IAAK,CAAET,gBAAgB,EAAG;QACzBK,WAAW,CAAC,CAAC;MACd,CAAC,MAAM;QACNG,aAAa,CAAC,CAAC;MAChB;MACAnB,YAAY,GAAIoB,IAAK,CAAC;IACvB,CAAC;IACDnB,SAAS;IACTN,cAAc,EAAE;MACf,GAAGsB,QAAQ;MACX,GAAGtB;IACJ,CAAC;IACDG,iBAAiB;IACjBC,OAAO,EAAEA,CAAE;MAAEsB;IAAQ,CAAC,KAAM;MAC3BF,aAAa,CAAC,CAAC;MACfpB,OAAO,CAAEsB,OAAQ,CAAC;IACnB,CAAC;IACDb;EACD,CAAE,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["v4","uuid","select","dispatch","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","onSuccess","multiple","getCurrentPost","getEditorSettings","lockPostAutosaving","unlockPostAutosaving","lockPostSaving","unlockPostSaving","wpAllowedMimeTypes","allowedMimeTypes","lockKey","imageIsUploading","currentPost","currentPostId","id","wp_id","setSaveLock","postData","post","clearSaveLock","file","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { select, dispatch } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $0.onSuccess Function called after the final representation of the file is available.\n * @param {boolean} $0.multiple Whether to allow multiple files to be uploaded.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n\tonSuccess,\n\tmultiple = true,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst {\n\t\tlockPostAutosaving,\n\t\tunlockPostAutosaving,\n\t\tlockPostSaving,\n\t\tunlockPostSaving,\n\t} = dispatch( editorStore );\n\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tconst lockKey = `image-upload-${ uuid() }`;\n\tlet imageIsUploading = false;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst setSaveLock = () => {\n\t\tlockPostSaving( lockKey );\n\t\tlockPostAutosaving( lockKey );\n\t\timageIsUploading = true;\n\t};\n\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\tconst clearSaveLock = () => {\n\t\tunlockPostSaving( lockKey );\n\t\tunlockPostAutosaving( lockKey );\n\t\timageIsUploading = false;\n\t};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange: ( file ) => {\n\t\t\tif ( ! imageIsUploading ) {\n\t\t\t\tsetSaveLock();\n\t\t\t} else {\n\t\t\t\tclearSaveLock();\n\t\t\t}\n\t\t\tonFileChange?.( file );\n\t\t},\n\t\tonSuccess,\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) => {\n\t\t\tclearSaveLock();\n\t\t\tonError( message );\n\t\t},\n\t\twpAllowedMimeTypes,\n\t\tmultiple,\n\t} );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;;AAEjC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,QAAQ,QAAQ,iBAAiB;AAClD,SAASC,WAAW,QAAQ,wBAAwB;;AAEpD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAElD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,WAAWA,CAAE;EACpCC,cAAc,GAAG,CAAC,CAAC;EACnBC,YAAY;EACZC,SAAS;EACTC,iBAAiB;EACjBC,OAAO,GAAGN,IAAI;EACdO,YAAY;EACZC,SAAS;EACTC,QAAQ,GAAG;AACZ,CAAC,EAAG;EACH,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAGhB,MAAM,CAAEI,WAAY,CAAC;EACnE,MAAM;IACLa,kBAAkB;IAClBC,oBAAoB;IACpBC,cAAc;IACdC;EACD,CAAC,GAAGnB,QAAQ,CAAEG,WAAY,CAAC;EAE3B,MAAMiB,kBAAkB,GAAGL,iBAAiB,CAAC,CAAC,CAACM,gBAAgB;EAC/D,MAAMC,OAAO,GAAG,gBAAiBxB,IAAI,CAAC,CAAC,EAAG;EAC1C,IAAIyB,gBAAgB,GAAG,KAAK;EAC5Bd,iBAAiB,GAChBA,iBAAiB,IAAIM,iBAAiB,CAAC,CAAC,CAACN,iBAAiB;EAC3D,MAAMe,WAAW,GAAGV,cAAc,CAAC,CAAC;EACpC;EACA,MAAMW,aAAa,GAClB,OAAOD,WAAW,EAAEE,EAAE,KAAK,QAAQ,GAChCF,WAAW,CAACE,EAAE,GACdF,WAAW,EAAEG,KAAK;EACtB,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACzBV,cAAc,CAAEI,OAAQ,CAAC;IACzBN,kBAAkB,CAAEM,OAAQ,CAAC;IAC7BC,gBAAgB,GAAG,IAAI;EACxB,CAAC;EAED,MAAMM,QAAQ,GAAGJ,aAAa,GAAG;IAAEK,IAAI,EAAEL;EAAc,CAAC,GAAG,CAAC,CAAC;EAC7D,MAAMM,aAAa,GAAGA,CAAA,KAAM;IAC3BZ,gBAAgB,CAAEG,OAAQ,CAAC;IAC3BL,oBAAoB,CAAEK,OAAQ,CAAC;IAC/BC,gBAAgB,GAAG,KAAK;EACzB,CAAC;EAEDtB,WAAW,CAAE;IACZM,YAAY;IACZC,SAAS;IACTG,YAAY,EAAIqB,IAAI,IAAM;MACzB,IAAK,CAAET,gBAAgB,EAAG;QACzBK,WAAW,CAAC,CAAC;MACd,CAAC,MAAM;QACNG,aAAa,CAAC,CAAC;MAChB;MACApB,YAAY,GAAIqB,IAAK,CAAC;IACvB,CAAC;IACDpB,SAAS;IACTN,cAAc,EAAE;MACf,GAAGuB,QAAQ;MACX,GAAGvB;IACJ,CAAC;IACDG,iBAAiB;IACjBC,OAAO,EAAEA,CAAE;MAAEuB;IAAQ,CAAC,KAAM;MAC3BF,aAAa,CAAC,CAAC;MACfrB,OAAO,CAAEuB,OAAQ,CAAC;IACnB,CAAC;IACDb,kBAAkB;IAClBP;EACD,CAAE,CAAC;AACJ","ignoreList":[]}
@@ -976,14 +976,41 @@ body.is-fullscreen-mode .interface-interface-skeleton {
976
976
  margin-bottom: 12px;
977
977
  }
978
978
 
979
- .entities-saved-states__description-heading {
980
- font-size: 13px;
979
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt {
980
+ padding: 0;
981
+ }
982
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body {
983
+ padding-right: 0;
984
+ padding-left: 0;
985
+ border: 0;
986
+ }
987
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 {
988
+ margin-right: -16px;
989
+ margin-left: -16px;
990
+ margin-bottom: 0;
991
+ }
992
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 button {
993
+ font-size: 11px;
994
+ text-transform: uppercase;
995
+ }
996
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--header-wrapper {
997
+ display: none;
998
+ }
999
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--changes-count {
1000
+ margin-top: 0;
1001
+ margin-bottom: 8px;
1002
+ }
1003
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-footer {
1004
+ margin-top: 16px;
1005
+ }
1006
+
1007
+ .entities-saved-states__change-control {
1008
+ flex: 1;
981
1009
  }
982
1010
 
983
1011
  .entities-saved-states__changes {
984
- color: #757575;
985
- font-size: 12px;
986
- margin: 8px 16px 0 16px;
1012
+ font-size: 13px;
1013
+ margin: 4px 24px 0 16px;
987
1014
  list-style: disc;
988
1015
  }
989
1016
  .entities-saved-states__changes li {
@@ -2094,7 +2121,6 @@ textarea.editor-post-text-editor::-webkit-input-placeholder {
2094
2121
  }
2095
2122
  textarea.editor-post-text-editor::-moz-placeholder {
2096
2123
  color: rgba(30, 30, 30, 0.62);
2097
- opacity: 1;
2098
2124
  }
2099
2125
  textarea.editor-post-text-editor:-ms-input-placeholder {
2100
2126
  color: rgba(30, 30, 30, 0.62);
@@ -2189,7 +2215,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2189
2215
  color: rgba(30, 30, 30, 0.62);
2190
2216
  }
2191
2217
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder {
2192
- opacity: 1;
2193
2218
  color: rgba(30, 30, 30, 0.62);
2194
2219
  }
2195
2220
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder {
@@ -2276,7 +2301,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2276
2301
  color: rgba(30, 30, 30, 0.62);
2277
2302
  }
2278
2303
  .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder {
2279
- opacity: 1;
2280
2304
  color: rgba(30, 30, 30, 0.62);
2281
2305
  }
2282
2306
  .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder {
@@ -2374,6 +2398,23 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2374
2398
  bottom: 0;
2375
2399
  }
2376
2400
 
2401
+ .editor-start-page-options__modal .editor-start-page-options__modal__actions {
2402
+ position: absolute;
2403
+ bottom: 0;
2404
+ width: 100%;
2405
+ height: 92px;
2406
+ background-color: #fff;
2407
+ margin-right: -32px;
2408
+ margin-left: -32px;
2409
+ padding-right: 32px;
2410
+ padding-left: 32px;
2411
+ border-top: 1px solid #ddd;
2412
+ z-index: 1;
2413
+ }
2414
+ .editor-start-page-options__modal .block-editor-block-patterns-list {
2415
+ padding-bottom: 92px;
2416
+ }
2417
+
2377
2418
  .editor-start-page-options__modal-content .block-editor-block-patterns-list {
2378
2419
  column-count: 2;
2379
2420
  column-gap: 24px;
@@ -976,14 +976,41 @@ body.is-fullscreen-mode .interface-interface-skeleton {
976
976
  margin-bottom: 12px;
977
977
  }
978
978
 
979
- .entities-saved-states__description-heading {
980
- font-size: 13px;
979
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt {
980
+ padding: 0;
981
+ }
982
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body {
983
+ padding-left: 0;
984
+ padding-right: 0;
985
+ border: 0;
986
+ }
987
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 {
988
+ margin-left: -16px;
989
+ margin-right: -16px;
990
+ margin-bottom: 0;
991
+ }
992
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 button {
993
+ font-size: 11px;
994
+ text-transform: uppercase;
995
+ }
996
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--header-wrapper {
997
+ display: none;
998
+ }
999
+ .entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--changes-count {
1000
+ margin-top: 0;
1001
+ margin-bottom: 8px;
1002
+ }
1003
+ .entities-saved-states__panel.is-inline .entities-saved-states__panel-footer {
1004
+ margin-top: 16px;
1005
+ }
1006
+
1007
+ .entities-saved-states__change-control {
1008
+ flex: 1;
981
1009
  }
982
1010
 
983
1011
  .entities-saved-states__changes {
984
- color: #757575;
985
- font-size: 12px;
986
- margin: 8px 16px 0 16px;
1012
+ font-size: 13px;
1013
+ margin: 4px 16px 0 24px;
987
1014
  list-style: disc;
988
1015
  }
989
1016
  .entities-saved-states__changes li {
@@ -2094,7 +2121,6 @@ textarea.editor-post-text-editor::-webkit-input-placeholder {
2094
2121
  }
2095
2122
  textarea.editor-post-text-editor::-moz-placeholder {
2096
2123
  color: rgba(30, 30, 30, 0.62);
2097
- opacity: 1;
2098
2124
  }
2099
2125
  textarea.editor-post-text-editor:-ms-input-placeholder {
2100
2126
  color: rgba(30, 30, 30, 0.62);
@@ -2193,7 +2219,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2193
2219
  color: rgba(30, 30, 30, 0.62);
2194
2220
  }
2195
2221
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder {
2196
- opacity: 1;
2197
2222
  color: rgba(30, 30, 30, 0.62);
2198
2223
  }
2199
2224
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder {
@@ -2280,7 +2305,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2280
2305
  color: rgba(30, 30, 30, 0.62);
2281
2306
  }
2282
2307
  .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder {
2283
- opacity: 1;
2284
2308
  color: rgba(30, 30, 30, 0.62);
2285
2309
  }
2286
2310
  .editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder {
@@ -2378,6 +2402,23 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2378
2402
  bottom: 0;
2379
2403
  }
2380
2404
 
2405
+ .editor-start-page-options__modal .editor-start-page-options__modal__actions {
2406
+ position: absolute;
2407
+ bottom: 0;
2408
+ width: 100%;
2409
+ height: 92px;
2410
+ background-color: #fff;
2411
+ margin-left: -32px;
2412
+ margin-right: -32px;
2413
+ padding-left: 32px;
2414
+ padding-right: 32px;
2415
+ border-top: 1px solid #ddd;
2416
+ z-index: 1;
2417
+ }
2418
+ .editor-start-page-options__modal .block-editor-block-patterns-list {
2419
+ padding-bottom: 92px;
2420
+ }
2421
+
2381
2422
  .editor-start-page-options__modal-content .block-editor-block-patterns-list {
2382
2423
  column-count: 2;
2383
2424
  column-gap: 24px;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/index.js"],"names":[],"mappings":"AAqGA;;;;;;;;GAQG;AACH,gFALG;IAAwB,QAAQ;IACR,uBAAuB,EAAvC,OAAO;CAEf,GAAS,KAAK,CAAC,SAAS,CA6G1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/index.js"],"names":[],"mappings":"AAkGA;;;;;;;;GAQG;AACH,gFALG;IAAwB,QAAQ;IACR,uBAAuB,EAAvC,OAAO;CAEf,GAAS,KAAK,CAAC,SAAS,CAsH1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-record-item.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-record-item.js"],"names":[],"mappings":"AAgBA;;;;gCA2DC"}
1
+ {"version":3,"file":"entity-record-item.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-record-item.js"],"names":[],"mappings":"AAgBA;;;;gCA4DC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entity-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-type-list.js"],"names":[],"mappings":"AAyEA;;;;gCAkDC"}
1
+ {"version":3,"file":"entity-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/entity-type-list.js"],"names":[],"mappings":"AAyEA;;;;gCAsDC"}
@@ -4,12 +4,14 @@
4
4
  * @param {Object} props The component props.
5
5
  * @param {Function} props.close The function to close the dialog.
6
6
  * @param {boolean} props.renderDialog Whether to render the component with modal dialog behavior.
7
+ * @param {string} props.variant Changes the layout of the component. When an `inline` value is provided, the action buttons are rendered at the end of the component instead of at the start.
7
8
  *
8
9
  * @return {React.ReactNode} The rendered component.
9
10
  */
10
- export default function EntitiesSavedStates({ close, renderDialog }: {
11
+ export default function EntitiesSavedStates({ close, renderDialog, variant, }: {
11
12
  close: Function;
12
13
  renderDialog: boolean;
14
+ variant: string;
13
15
  }): React.ReactNode;
14
16
  /**
15
17
  * Renders a panel for saving entities with dirty records.
@@ -25,10 +27,11 @@ export default function EntitiesSavedStates({ close, renderDialog }: {
25
27
  * @param {boolean} props.isDirty Flag indicating if there are dirty entities.
26
28
  * @param {Function} props.setUnselectedEntities Function to set unselected entities.
27
29
  * @param {Array} props.unselectedEntities Array of unselected entities.
30
+ * @param {string} props.variant Changes the layout of the component. When an `inline` value is provided, the action buttons are rendered at the end of the component instead of at the start.
28
31
  *
29
32
  * @return {React.ReactNode} The rendered component.
30
33
  */
31
- export function EntitiesSavedStatesExtensible({ additionalPrompt, close, onSave, saveEnabled: saveEnabledProp, saveLabel, renderDialog, dirtyEntityRecords, isDirty, setUnselectedEntities, unselectedEntities, }: {
34
+ export function EntitiesSavedStatesExtensible({ additionalPrompt, close, onSave, saveEnabled: saveEnabledProp, saveLabel, renderDialog, dirtyEntityRecords, isDirty, setUnselectedEntities, unselectedEntities, variant, }: {
32
35
  additionalPrompt: string;
33
36
  close: Function;
34
37
  onSave: Function;
@@ -39,5 +42,6 @@ export function EntitiesSavedStatesExtensible({ additionalPrompt, close, onSave,
39
42
  isDirty: boolean;
40
43
  setUnselectedEntities: Function;
41
44
  unselectedEntities: any[];
45
+ variant: string;
42
46
  }): React.ReactNode;
43
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/index.js"],"names":[],"mappings":"AA4BA;;;;;;;;GAQG;AACH,qEALG;IAAwB,KAAK;IACL,YAAY,EAA5B,OAAO;CAEf,GAAS,KAAK,CAAC,SAAS,CAW1B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,mNAbG;IAAwB,gBAAgB,EAAhC,MAAM;IACU,KAAK;IACL,MAAM;IACN,WAAW,EAA3B,OAAO;IACS,SAAS,EAAzB,MAAM;IACU,YAAY,EAA5B,OAAO;IACS,kBAAkB;IAClB,OAAO,EAAvB,OAAO;IACS,qBAAqB;IACrB,kBAAkB;CAE1C,GAAS,KAAK,CAAC,SAAS,CA2I1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/index.js"],"names":[],"mappings":"AAiCA;;;;;;;;;GASG;AACH,+EANG;IAAwB,KAAK;IACL,YAAY,EAA5B,OAAO;IACS,OAAO,EAAvB,MAAM;CAEd,GAAS,KAAK,CAAC,SAAS,CAgB1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,4NAdG;IAAwB,gBAAgB,EAAhC,MAAM;IACU,KAAK;IACL,MAAM;IACN,WAAW,EAA3B,OAAO;IACS,SAAS,EAAzB,MAAM;IACU,YAAY,EAA5B,OAAO;IACS,kBAAkB;IAClB,OAAO,EAAvB,OAAO;IACS,qBAAqB;IACrB,kBAAkB;IAClB,OAAO,EAAvB,MAAM;CAEd,GAAS,KAAK,CAAC,SAAS,CAuK1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/index.js"],"names":[],"mappings":"AA+CA;;;;gCA2DC;AAiBD;;;;gCAiBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-actions/index.js"],"names":[],"mappings":"AAsBA;;;;gCAkEC;AAiBD;;;;gCAiBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AA8BA;;;;;;;;GAQG;AACH,gFALG;IAAgC,QAAQ;IACR,MAAM;IACN,iBAAiB;CACjD,GAAS,KAAK,CAAC,SAAS,CAoG1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-card-panel/index.js"],"names":[],"mappings":"AA8BA;;;;;;;;GAQG;AACH,gFALG;IAAgC,QAAQ;IACR,MAAM;IACN,iBAAiB;CACjD,GAAS,KAAK,CAAC,SAAS,CAsG1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"block-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/block-theme.js"],"names":[],"mappings":"AA0BA;;uCA0HC"}
1
+ {"version":3,"file":"block-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/block-theme.js"],"names":[],"mappings":"AA2BA;;uCA6IC"}
@@ -1 +1 @@
1
- {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAyNA,oEAaC"}
1
+ {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAqNA,oEAiCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-new-template-modal.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/create-new-template-modal.js"],"names":[],"mappings":"AAwBA;;gCAkIC"}
1
+ {"version":3,"file":"create-new-template-modal.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/create-new-template-modal.js"],"names":[],"mappings":"AAwBA;;gCAmIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CAgE1B"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CAwD1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"block-visibility.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/block-visibility.js"],"names":[],"mappings":"AAiBA,uEA8EC"}
1
+ {"version":3,"file":"block-visibility.d.ts","sourceRoot":"","sources":["../../../src/components/preferences-modal/block-visibility.js"],"names":[],"mappings":"AAkBA,uEA8EC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preview-dropdown/index.js"],"names":[],"mappings":"AAgCA;;;uCAsKC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/preview-dropdown/index.js"],"names":[],"mappings":"AAgCA;;;uCAwKC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA6YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA9SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA2OE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAoYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA1SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAuOE"}
@@ -1,2 +1,3 @@
1
- export default function StartPageOptions(): null;
1
+ export function useStartPatterns(): any;
2
+ export default function StartPageOptions(): import("react").JSX.Element | null;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAaA,iDA4CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAqBA,wCA0CC;AA8ED,+EA0CC"}
@@ -34,4 +34,8 @@ export function revertTemplate(template: Object, { allowUndo }?: {
34
34
  export function removeTemplates(items: any[]): ({ registry }: {
35
35
  registry: any;
36
36
  }) => Promise<void>;
37
+ export function setDefaultRenderingMode(mode: string): ({ select, registry }: {
38
+ select: any;
39
+ registry: any;
40
+ }) => void;
37
41
  //# sourceMappingURL=private-actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFK,MAAM,OAAA;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAmGC;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC;;oBA6HC;AAOK;;oBA0HL"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFK,MAAM,OAAA;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAmGC;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC;;oBA6HC;AAOK;;oBA0HL;AAOK,8CAFI,MAAM;;;WA4Bf"}
@@ -49,4 +49,17 @@ export const getPostBlocksByName: {
49
49
  isRegistrySelector?: boolean;
50
50
  registry?: any;
51
51
  };
52
+ /**
53
+ * Returns the default rendering mode for a post type by user preference or post type configuration.
54
+ *
55
+ * @param {Object} state Global application state.
56
+ * @param {string} postType The post type.
57
+ *
58
+ * @return {string} The default rendering mode. Returns `undefined` while resolving value.
59
+ */
60
+ export const getDefaultRenderingMode: {
61
+ (state?: any, postType?: any): any;
62
+ isRegistrySelector?: boolean;
63
+ registry?: any;
64
+ };
52
65
  //# sourceMappingURL=private-selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAgFA,sDAEC;AACD,6DAEC;AAwFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAnJD;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAuCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAsFA,sDAEC;AACD,6DAEC;AAwFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAnJD;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAuCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE"}
@@ -10,8 +10,9 @@
10
10
  * @param {Function} $0.onError Function called when an error happens.
11
11
  * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.
12
12
  * @param {Function} $0.onSuccess Function called after the final representation of the file is available.
13
+ * @param {boolean} $0.multiple Whether to allow multiple files to be uploaded.
13
14
  */
14
- export default function mediaUpload({ additionalData, allowedTypes, filesList, maxUploadFileSize, onError, onFileChange, onSuccess, }: {
15
+ export default function mediaUpload({ additionalData, allowedTypes, filesList, maxUploadFileSize, onError, onFileChange, onSuccess, multiple, }: {
15
16
  additionalData: Object | null;
16
17
  allowedTypes: string;
17
18
  filesList: any[];
@@ -19,5 +20,6 @@ export default function mediaUpload({ additionalData, allowedTypes, filesList, m
19
20
  onError: Function;
20
21
  onFileChange: Function;
21
22
  onSuccess: Function;
23
+ multiple: boolean;
22
24
  }): void;
23
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;GAYG;AACH,uIARG;IAAqB,cAAc,EAA1B,MAAM,OAAA;IACM,YAAY,EAAzB,MAAM;IACO,SAAS;IACT,iBAAiB,EAA7B,MAAM,OAAA;IACM,OAAO;IACP,YAAY;IACZ,SAAS;CAChC,QAiEA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AACH,iJATG;IAAqB,cAAc,EAA1B,MAAM,OAAA;IACM,YAAY,EAAzB,MAAM;IACO,SAAS;IACT,iBAAiB,EAA7B,MAAM,OAAA;IACM,OAAO;IACP,YAAY;IACZ,SAAS;IACT,QAAQ,EAArB,OAAO;CACjB,QAmEA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.18.0",
3
+ "version": "14.19.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -34,41 +34,41 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@babel/runtime": "7.25.7",
37
- "@wordpress/a11y": "^4.18.0",
38
- "@wordpress/api-fetch": "^7.18.0",
39
- "@wordpress/blob": "^4.18.0",
40
- "@wordpress/block-editor": "^14.13.0",
41
- "@wordpress/blocks": "^14.7.0",
42
- "@wordpress/commands": "^1.18.0",
43
- "@wordpress/components": "^29.4.0",
44
- "@wordpress/compose": "^7.18.0",
45
- "@wordpress/core-data": "^7.18.0",
46
- "@wordpress/data": "^10.18.0",
47
- "@wordpress/dataviews": "^4.14.0",
48
- "@wordpress/date": "^5.18.0",
49
- "@wordpress/deprecated": "^4.18.0",
50
- "@wordpress/dom": "^4.18.0",
51
- "@wordpress/element": "^6.18.0",
52
- "@wordpress/fields": "^0.10.0",
53
- "@wordpress/hooks": "^4.18.0",
54
- "@wordpress/html-entities": "^4.18.0",
55
- "@wordpress/i18n": "^5.18.0",
56
- "@wordpress/icons": "^10.18.0",
57
- "@wordpress/interface": "^9.3.0",
58
- "@wordpress/keyboard-shortcuts": "^5.18.0",
59
- "@wordpress/keycodes": "^4.18.0",
60
- "@wordpress/media-utils": "^5.18.0",
61
- "@wordpress/notices": "^5.18.0",
62
- "@wordpress/patterns": "^2.18.0",
63
- "@wordpress/plugins": "^7.18.0",
64
- "@wordpress/preferences": "^4.18.0",
65
- "@wordpress/private-apis": "^1.18.0",
66
- "@wordpress/reusable-blocks": "^5.18.0",
67
- "@wordpress/rich-text": "^7.18.0",
68
- "@wordpress/server-side-render": "^5.18.0",
69
- "@wordpress/url": "^4.18.0",
70
- "@wordpress/warning": "^3.18.0",
71
- "@wordpress/wordcount": "^4.18.0",
37
+ "@wordpress/a11y": "^4.19.0",
38
+ "@wordpress/api-fetch": "^7.19.0",
39
+ "@wordpress/blob": "^4.19.0",
40
+ "@wordpress/block-editor": "^14.14.0",
41
+ "@wordpress/blocks": "^14.8.0",
42
+ "@wordpress/commands": "^1.19.0",
43
+ "@wordpress/components": "^29.5.0",
44
+ "@wordpress/compose": "^7.19.0",
45
+ "@wordpress/core-data": "^7.19.0",
46
+ "@wordpress/data": "^10.19.0",
47
+ "@wordpress/dataviews": "^4.15.0",
48
+ "@wordpress/date": "^5.19.0",
49
+ "@wordpress/deprecated": "^4.19.0",
50
+ "@wordpress/dom": "^4.19.0",
51
+ "@wordpress/element": "^6.19.0",
52
+ "@wordpress/fields": "^0.11.0",
53
+ "@wordpress/hooks": "^4.19.0",
54
+ "@wordpress/html-entities": "^4.19.0",
55
+ "@wordpress/i18n": "^5.19.0",
56
+ "@wordpress/icons": "^10.19.0",
57
+ "@wordpress/interface": "^9.4.0",
58
+ "@wordpress/keyboard-shortcuts": "^5.19.0",
59
+ "@wordpress/keycodes": "^4.19.0",
60
+ "@wordpress/media-utils": "^5.19.0",
61
+ "@wordpress/notices": "^5.19.0",
62
+ "@wordpress/patterns": "^2.19.0",
63
+ "@wordpress/plugins": "^7.19.0",
64
+ "@wordpress/preferences": "^4.19.0",
65
+ "@wordpress/private-apis": "^1.19.0",
66
+ "@wordpress/reusable-blocks": "^5.19.0",
67
+ "@wordpress/rich-text": "^7.19.0",
68
+ "@wordpress/server-side-render": "^5.19.0",
69
+ "@wordpress/url": "^4.19.0",
70
+ "@wordpress/warning": "^3.19.0",
71
+ "@wordpress/wordcount": "^4.19.0",
72
72
  "change-case": "^4.1.2",
73
73
  "client-zip": "^2.4.5",
74
74
  "clsx": "^2.1.1",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "afe4fb333177642180ac020f1030c5685eab7183"
91
+ "gitHead": "d6b0b20fa927b110140dc7fdd906a7e0bf662004"
92
92
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import { useDispatch, useSelect } from '@wordpress/data';
6
- import { useRef } from '@wordpress/element';
6
+ import { useRef, useMemo } from '@wordpress/element';
7
7
  import { create, getTextContent } from '@wordpress/rich-text';
8
8
  import { store as blockEditorStore } from '@wordpress/block-editor';
9
9
  import { store as coreStore } from '@wordpress/core-data';
@@ -83,16 +83,13 @@ function EmptyOutlineIllustration() {
83
83
  * @return {Array} An array of heading blocks enhanced with the properties described above.
84
84
  */
85
85
  const computeOutlineHeadings = ( blocks = [] ) => {
86
- return blocks.flatMap( ( block = {} ) => {
87
- if ( block.name === 'core/heading' ) {
88
- return {
89
- ...block,
90
- level: block.attributes.level,
91
- isEmpty: isEmptyHeading( block ),
92
- };
93
- }
94
- return computeOutlineHeadings( block.innerBlocks );
95
- } );
86
+ return blocks
87
+ .filter( ( block ) => block.name === 'core/heading' )
88
+ .map( ( block ) => ( {
89
+ ...block,
90
+ level: block.attributes.level,
91
+ isEmpty: isEmptyHeading( block ),
92
+ } ) );
96
93
  };
97
94
 
98
95
  const isEmptyHeading = ( heading ) =>
@@ -113,22 +110,31 @@ export default function DocumentOutline( {
113
110
  hasOutlineItemsDisabled,
114
111
  } ) {
115
112
  const { selectBlock } = useDispatch( blockEditorStore );
116
- const { blocks, title, isTitleSupported } = useSelect( ( select ) => {
117
- const { getBlocks } = select( blockEditorStore );
113
+ const { title, isTitleSupported } = useSelect( ( select ) => {
118
114
  const { getEditedPostAttribute } = select( editorStore );
119
115
  const { getPostType } = select( coreStore );
120
116
  const postType = getPostType( getEditedPostAttribute( 'type' ) );
121
-
122
117
  return {
123
118
  title: getEditedPostAttribute( 'title' ),
124
- blocks: getBlocks(),
125
119
  isTitleSupported: postType?.supports?.title ?? false,
126
120
  };
127
121
  } );
122
+ const blocks = useSelect( ( select ) => {
123
+ const { getClientIdsWithDescendants, getBlock } =
124
+ select( blockEditorStore );
125
+ const clientIds = getClientIdsWithDescendants();
126
+ // Note: Don't modify data inside the `Array.map` callback,
127
+ // all compulations should happen in `computeOutlineHeadings`.
128
+ return clientIds.map( ( id ) => getBlock( id ) );
129
+ } );
128
130
 
129
131
  const prevHeadingLevelRef = useRef( 1 );
130
132
 
131
- const headings = computeOutlineHeadings( blocks );
133
+ const headings = useMemo(
134
+ () => computeOutlineHeadings( blocks ),
135
+ [ blocks ]
136
+ );
137
+
132
138
  if ( headings.length < 1 ) {
133
139
  return (
134
140
  <div className="editor-document-outline has-no-headings">
@@ -64,6 +64,7 @@ export default function EntityRecordItem( { record, checked, onChange } ) {
64
64
  }
65
65
  checked={ checked }
66
66
  onChange={ onChange }
67
+ className="entities-saved-states__change-control"
67
68
  />
68
69
  </PanelRow>
69
70
  { hasPostMetaChanges && (
@@ -26,7 +26,7 @@ function getEntityDescription( entity, count ) {
26
26
  : __( 'These changes will affect your whole site.' );
27
27
  case 'wp_template':
28
28
  return __(
29
- 'This change will affect pages and posts that use this template.'
29
+ 'This change will affect other parts of your site that use this template.'
30
30
  );
31
31
  case 'page':
32
32
  case 'post':
@@ -94,7 +94,11 @@ export default function EntityTypeList( {
94
94
  }
95
95
 
96
96
  return (
97
- <PanelBody title={ entityLabel } initialOpen>
97
+ <PanelBody
98
+ title={ entityLabel }
99
+ initialOpen
100
+ className="entities-saved-states__panel-body"
101
+ >
98
102
  <EntityDescription record={ firstRecord } count={ count } />
99
103
  { list.map( ( record ) => {
100
104
  return (