@wordpress/editor 14.7.1-next.5368f64a9.0 → 14.8.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 (241) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +1 -1
  3. package/build/bindings/post-meta.js +42 -7
  4. package/build/bindings/post-meta.js.map +1 -1
  5. package/build/components/block-manager/index.js +45 -66
  6. package/build/components/block-manager/index.js.map +1 -1
  7. package/build/components/document-bar/index.js +20 -28
  8. package/build/components/document-bar/index.js.map +1 -1
  9. package/build/components/editor-history/redo.js +2 -4
  10. package/build/components/editor-history/redo.js.map +1 -1
  11. package/build/components/editor-history/undo.js +2 -4
  12. package/build/components/editor-history/undo.js.map +1 -1
  13. package/build/components/editor-interface/index.js +1 -2
  14. package/build/components/editor-interface/index.js.map +1 -1
  15. package/build/components/error-boundary/index.js +2 -4
  16. package/build/components/error-boundary/index.js.map +1 -1
  17. package/build/components/global-styles-provider/index.js +21 -12
  18. package/build/components/global-styles-provider/index.js.map +1 -1
  19. package/build/components/header/index.js +4 -4
  20. package/build/components/header/index.js.map +1 -1
  21. package/build/components/media-categories/index.js +1 -0
  22. package/build/components/media-categories/index.js.map +1 -1
  23. package/build/components/post-excerpt/panel.js +2 -5
  24. package/build/components/post-excerpt/panel.js.map +1 -1
  25. package/build/components/post-featured-image/index.js +6 -12
  26. package/build/components/post-featured-image/index.js.map +1 -1
  27. package/build/components/post-format/index.js +2 -4
  28. package/build/components/post-format/index.js.map +1 -1
  29. package/build/components/post-last-revision/index.js +2 -4
  30. package/build/components/post-last-revision/index.js.map +1 -1
  31. package/build/components/post-locked-modal/index.js +4 -8
  32. package/build/components/post-locked-modal/index.js.map +1 -1
  33. package/build/components/post-publish-panel/index.js +2 -4
  34. package/build/components/post-publish-panel/index.js.map +1 -1
  35. package/build/components/post-publish-panel/maybe-post-format-panel.js +2 -4
  36. package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  37. package/build/components/post-publish-panel/maybe-upload-media.js +2 -4
  38. package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  39. package/build/components/post-status/index.js +1 -0
  40. package/build/components/post-status/index.js.map +1 -1
  41. package/build/components/post-taxonomies/hierarchical-term-selector.js +2 -4
  42. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  43. package/build/components/post-taxonomies/most-used-terms.js +2 -4
  44. package/build/components/post-taxonomies/most-used-terms.js.map +1 -1
  45. package/build/components/post-url/index.js +8 -7
  46. package/build/components/post-url/index.js.map +1 -1
  47. package/build/components/preview-dropdown/index.js +5 -57
  48. package/build/components/preview-dropdown/index.js.map +1 -1
  49. package/build/components/save-publish-panels/index.js +4 -10
  50. package/build/components/save-publish-panels/index.js.map +1 -1
  51. package/build/components/zoom-out-toggle/index.js +38 -0
  52. package/build/components/zoom-out-toggle/index.js.map +1 -0
  53. package/build/dataviews/store/private-actions.js +4 -10
  54. package/build/dataviews/store/private-actions.js.map +1 -1
  55. package/build-module/bindings/post-meta.js +40 -7
  56. package/build-module/bindings/post-meta.js.map +1 -1
  57. package/build-module/components/block-manager/index.js +46 -67
  58. package/build-module/components/block-manager/index.js.map +1 -1
  59. package/build-module/components/document-bar/index.js +22 -28
  60. package/build-module/components/document-bar/index.js.map +1 -1
  61. package/build-module/components/editor-history/redo.js +2 -4
  62. package/build-module/components/editor-history/redo.js.map +1 -1
  63. package/build-module/components/editor-history/undo.js +2 -4
  64. package/build-module/components/editor-history/undo.js.map +1 -1
  65. package/build-module/components/editor-interface/index.js +1 -2
  66. package/build-module/components/editor-interface/index.js.map +1 -1
  67. package/build-module/components/error-boundary/index.js +2 -4
  68. package/build-module/components/error-boundary/index.js.map +1 -1
  69. package/build-module/components/global-styles-provider/index.js +21 -12
  70. package/build-module/components/global-styles-provider/index.js.map +1 -1
  71. package/build-module/components/header/index.js +4 -4
  72. package/build-module/components/header/index.js.map +1 -1
  73. package/build-module/components/media-categories/index.js +1 -0
  74. package/build-module/components/media-categories/index.js.map +1 -1
  75. package/build-module/components/post-excerpt/panel.js +2 -5
  76. package/build-module/components/post-excerpt/panel.js.map +1 -1
  77. package/build-module/components/post-featured-image/index.js +6 -12
  78. package/build-module/components/post-featured-image/index.js.map +1 -1
  79. package/build-module/components/post-format/index.js +2 -4
  80. package/build-module/components/post-format/index.js.map +1 -1
  81. package/build-module/components/post-last-revision/index.js +2 -4
  82. package/build-module/components/post-last-revision/index.js.map +1 -1
  83. package/build-module/components/post-locked-modal/index.js +4 -8
  84. package/build-module/components/post-locked-modal/index.js.map +1 -1
  85. package/build-module/components/post-publish-panel/index.js +2 -4
  86. package/build-module/components/post-publish-panel/index.js.map +1 -1
  87. package/build-module/components/post-publish-panel/maybe-post-format-panel.js +2 -4
  88. package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  89. package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -4
  90. package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  91. package/build-module/components/post-status/index.js +1 -0
  92. package/build-module/components/post-status/index.js.map +1 -1
  93. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +2 -4
  94. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  95. package/build-module/components/post-taxonomies/most-used-terms.js +2 -4
  96. package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
  97. package/build-module/components/post-url/index.js +9 -8
  98. package/build-module/components/post-url/index.js.map +1 -1
  99. package/build-module/components/preview-dropdown/index.js +5 -57
  100. package/build-module/components/preview-dropdown/index.js.map +1 -1
  101. package/build-module/components/save-publish-panels/index.js +4 -10
  102. package/build-module/components/save-publish-panels/index.js.map +1 -1
  103. package/build-module/components/zoom-out-toggle/index.js +31 -0
  104. package/build-module/components/zoom-out-toggle/index.js.map +1 -0
  105. package/build-module/dataviews/store/private-actions.js +2 -8
  106. package/build-module/dataviews/store/private-actions.js.map +1 -1
  107. package/build-style/style-rtl.css +38 -23
  108. package/build-style/style.css +38 -23
  109. package/build-types/bindings/post-meta.d.ts +4 -1
  110. package/build-types/bindings/post-meta.d.ts.map +1 -1
  111. package/build-types/components/block-manager/index.d.ts +1 -2
  112. package/build-types/components/block-manager/index.d.ts.map +1 -1
  113. package/build-types/components/document-bar/index.d.ts +7 -6
  114. package/build-types/components/document-bar/index.d.ts.map +1 -1
  115. package/build-types/components/editor-history/redo.d.ts.map +1 -1
  116. package/build-types/components/editor-history/undo.d.ts.map +1 -1
  117. package/build-types/components/editor-interface/index.d.ts +1 -2
  118. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  119. package/build-types/components/error-boundary/index.d.ts.map +1 -1
  120. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  121. package/build-types/components/header/index.d.ts +2 -2
  122. package/build-types/components/header/index.d.ts.map +1 -1
  123. package/build-types/components/post-format/index.d.ts.map +1 -1
  124. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  125. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  126. package/build-types/components/post-publish-panel/index.d.ts.map +1 -1
  127. package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -1
  128. package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -1
  129. package/build-types/components/post-status/index.d.ts.map +1 -1
  130. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  131. package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -1
  132. package/build-types/components/post-url/index.d.ts.map +1 -1
  133. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  134. package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
  135. package/build-types/components/zoom-out-toggle/index.d.ts +3 -0
  136. package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -0
  137. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  138. package/package.json +37 -36
  139. package/src/bindings/post-meta.js +56 -20
  140. package/src/components/block-manager/index.js +50 -67
  141. package/src/components/document-bar/index.js +29 -41
  142. package/src/components/document-bar/style.scss +33 -15
  143. package/src/components/editor-history/redo.js +1 -2
  144. package/src/components/editor-history/undo.js +1 -2
  145. package/src/components/editor-interface/index.js +1 -2
  146. package/src/components/error-boundary/index.js +1 -6
  147. package/src/components/global-styles-provider/index.js +50 -36
  148. package/src/components/header/index.js +8 -2
  149. package/src/components/post-excerpt/panel.js +1 -3
  150. package/src/components/post-featured-image/index.js +3 -6
  151. package/src/components/post-featured-image/style.scss +1 -5
  152. package/src/components/post-format/index.js +1 -2
  153. package/src/components/post-last-revision/index.js +1 -2
  154. package/src/components/post-locked-modal/index.js +2 -4
  155. package/src/components/post-panel-row/style.scss +1 -0
  156. package/src/components/post-publish-panel/index.js +1 -2
  157. package/src/components/post-publish-panel/maybe-post-format-panel.js +1 -2
  158. package/src/components/post-publish-panel/maybe-upload-media.js +1 -2
  159. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +2 -2
  160. package/src/components/post-status/index.js +1 -0
  161. package/src/components/post-status/style.scss +5 -0
  162. package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -2
  163. package/src/components/post-taxonomies/most-used-terms.js +1 -2
  164. package/src/components/post-taxonomies/style.scss +0 -4
  165. package/src/components/post-url/index.js +9 -7
  166. package/src/components/preview-dropdown/index.js +26 -84
  167. package/src/components/save-publish-panels/index.js +2 -6
  168. package/src/components/zoom-out-toggle/index.js +34 -0
  169. package/src/dataviews/store/private-actions.ts +10 -8
  170. package/tsconfig.json +1 -0
  171. package/tsconfig.tsbuildinfo +1 -1
  172. package/build/dataviews/actions/duplicate-pattern.js +0 -48
  173. package/build/dataviews/actions/duplicate-pattern.js.map +0 -1
  174. package/build/dataviews/actions/duplicate-post.js +0 -146
  175. package/build/dataviews/actions/duplicate-post.js.map +0 -1
  176. package/build/dataviews/actions/duplicate-post.native.js +0 -9
  177. package/build/dataviews/actions/duplicate-post.native.js.map +0 -1
  178. package/build/dataviews/actions/export-pattern.js +0 -57
  179. package/build/dataviews/actions/export-pattern.js.map +0 -1
  180. package/build/dataviews/actions/export-pattern.native.js +0 -9
  181. package/build/dataviews/actions/export-pattern.native.js.map +0 -1
  182. package/build/dataviews/actions/permanently-delete-post.js +0 -109
  183. package/build/dataviews/actions/permanently-delete-post.js.map +0 -1
  184. package/build/dataviews/actions/reorder-page.js +0 -116
  185. package/build/dataviews/actions/reorder-page.js.map +0 -1
  186. package/build/dataviews/actions/reorder-page.native.js +0 -9
  187. package/build/dataviews/actions/reorder-page.native.js.map +0 -1
  188. package/build/dataviews/actions/view-post-revisions.js +0 -49
  189. package/build/dataviews/actions/view-post-revisions.js.map +0 -1
  190. package/build/dataviews/actions/view-post.js +0 -36
  191. package/build/dataviews/actions/view-post.js.map +0 -1
  192. package/build-module/dataviews/actions/duplicate-pattern.js +0 -39
  193. package/build-module/dataviews/actions/duplicate-pattern.js.map +0 -1
  194. package/build-module/dataviews/actions/duplicate-post.js +0 -139
  195. package/build-module/dataviews/actions/duplicate-post.js.map +0 -1
  196. package/build-module/dataviews/actions/duplicate-post.native.js +0 -3
  197. package/build-module/dataviews/actions/duplicate-post.native.js.map +0 -1
  198. package/build-module/dataviews/actions/export-pattern.js +0 -51
  199. package/build-module/dataviews/actions/export-pattern.js.map +0 -1
  200. package/build-module/dataviews/actions/export-pattern.native.js +0 -3
  201. package/build-module/dataviews/actions/export-pattern.native.js.map +0 -1
  202. package/build-module/dataviews/actions/permanently-delete-post.js +0 -102
  203. package/build-module/dataviews/actions/permanently-delete-post.js.map +0 -1
  204. package/build-module/dataviews/actions/reorder-page.js +0 -111
  205. package/build-module/dataviews/actions/reorder-page.js.map +0 -1
  206. package/build-module/dataviews/actions/reorder-page.native.js +0 -3
  207. package/build-module/dataviews/actions/reorder-page.native.js.map +0 -1
  208. package/build-module/dataviews/actions/view-post-revisions.js +0 -43
  209. package/build-module/dataviews/actions/view-post-revisions.js.map +0 -1
  210. package/build-module/dataviews/actions/view-post.js +0 -30
  211. package/build-module/dataviews/actions/view-post.js.map +0 -1
  212. package/build-types/dataviews/actions/duplicate-pattern.d.ts +0 -5
  213. package/build-types/dataviews/actions/duplicate-pattern.d.ts.map +0 -1
  214. package/build-types/dataviews/actions/duplicate-post.d.ts +0 -5
  215. package/build-types/dataviews/actions/duplicate-post.d.ts.map +0 -1
  216. package/build-types/dataviews/actions/duplicate-post.native.d.ts +0 -3
  217. package/build-types/dataviews/actions/duplicate-post.native.d.ts.map +0 -1
  218. package/build-types/dataviews/actions/export-pattern.d.ts +0 -8
  219. package/build-types/dataviews/actions/export-pattern.d.ts.map +0 -1
  220. package/build-types/dataviews/actions/export-pattern.native.d.ts +0 -3
  221. package/build-types/dataviews/actions/export-pattern.native.d.ts.map +0 -1
  222. package/build-types/dataviews/actions/permanently-delete-post.d.ts +0 -5
  223. package/build-types/dataviews/actions/permanently-delete-post.d.ts.map +0 -1
  224. package/build-types/dataviews/actions/reorder-page.d.ts +0 -8
  225. package/build-types/dataviews/actions/reorder-page.d.ts.map +0 -1
  226. package/build-types/dataviews/actions/reorder-page.native.d.ts +0 -3
  227. package/build-types/dataviews/actions/reorder-page.native.d.ts.map +0 -1
  228. package/build-types/dataviews/actions/view-post-revisions.d.ts +0 -8
  229. package/build-types/dataviews/actions/view-post-revisions.d.ts.map +0 -1
  230. package/build-types/dataviews/actions/view-post.d.ts +0 -8
  231. package/build-types/dataviews/actions/view-post.d.ts.map +0 -1
  232. package/src/dataviews/actions/duplicate-pattern.tsx +0 -40
  233. package/src/dataviews/actions/duplicate-post.native.tsx +0 -3
  234. package/src/dataviews/actions/duplicate-post.tsx +0 -174
  235. package/src/dataviews/actions/export-pattern.native.tsx +0 -3
  236. package/src/dataviews/actions/export-pattern.tsx +0 -76
  237. package/src/dataviews/actions/permanently-delete-post.tsx +0 -118
  238. package/src/dataviews/actions/reorder-page.native.tsx +0 -3
  239. package/src/dataviews/actions/reorder-page.tsx +0 -125
  240. package/src/dataviews/actions/view-post-revisions.tsx +0 -47
  241. package/src/dataviews/actions/view-post.tsx +0 -30
@@ -12,9 +12,7 @@ import { __ } from '@wordpress/i18n';
12
12
  import { desktop, mobile, tablet, external } from '@wordpress/icons';
13
13
  import { useSelect, useDispatch } from '@wordpress/data';
14
14
  import { store as coreStore } from '@wordpress/core-data';
15
- import { useEffect, useRef } from '@wordpress/element';
16
15
  import { store as preferencesStore } from '@wordpress/preferences';
17
- import { store as blockEditorStore } from '@wordpress/block-editor';
18
16
  import { ActionItem } from '@wordpress/interface';
19
17
 
20
18
  /**
@@ -31,7 +29,6 @@ export default function PreviewDropdown({
31
29
  }) {
32
30
  const {
33
31
  deviceType,
34
- editorMode,
35
32
  homeUrl,
36
33
  isTemplate,
37
34
  isViewable,
@@ -49,13 +46,9 @@ export default function PreviewDropdown({
49
46
  const {
50
47
  get
51
48
  } = select(preferencesStore);
52
- const {
53
- __unstableGetEditorMode
54
- } = select(blockEditorStore);
55
49
  const _currentPostType = getCurrentPostType();
56
50
  return {
57
51
  deviceType: getDeviceType(),
58
- editorMode: __unstableGetEditorMode(),
59
52
  homeUrl: getEntityRecord('root', '__unstableBase')?.home,
60
53
  isTemplate: _currentPostType === 'wp_template',
61
54
  isViewable: (_getPostType$viewable = getPostType(_currentPostType)?.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false,
@@ -65,24 +58,6 @@ export default function PreviewDropdown({
65
58
  const {
66
59
  setDeviceType
67
60
  } = useDispatch(editorStore);
68
- const {
69
- __unstableSetEditorMode
70
- } = useDispatch(blockEditorStore);
71
-
72
- /**
73
- * Save the original editing mode in a ref to restore it when we exit zoom out.
74
- */
75
- const originalEditingModeRef = useRef(editorMode);
76
- useEffect(() => {
77
- if (editorMode !== 'zoom-out') {
78
- originalEditingModeRef.current = editorMode;
79
- }
80
- return () => {
81
- if (editorMode === 'zoom-out' && editorMode !== originalEditingModeRef.current) {
82
- __unstableSetEditorMode(originalEditingModeRef.current);
83
- }
84
- };
85
- }, [editorMode, __unstableSetEditorMode]);
86
61
  const isMobile = useViewportMatch('medium', '<');
87
62
  if (isMobile) {
88
63
  return null;
@@ -116,48 +91,21 @@ export default function PreviewDropdown({
116
91
  value: 'Desktop',
117
92
  label: __('Desktop'),
118
93
  icon: desktop
119
- }];
120
- if (window.__experimentalEnableZoomOutExperiment) {
121
- choices.push({
122
- value: 'ZoomOut',
123
- label: __('Desktop (50%)'),
124
- icon: desktop
125
- });
126
- }
127
- choices.push({
94
+ }, {
128
95
  value: 'Tablet',
129
96
  label: __('Tablet'),
130
97
  icon: tablet
131
- });
132
- choices.push({
98
+ }, {
133
99
  value: 'Mobile',
134
100
  label: __('Mobile'),
135
101
  icon: mobile
136
- });
137
- const previewValue = editorMode === 'zoom-out' ? 'ZoomOut' : deviceType;
138
-
139
- /**
140
- * Handles the selection of a device type.
141
- *
142
- * @param {string} value The device type.
143
- */
144
- const onSelect = value => {
145
- let newEditorMode = originalEditingModeRef.current;
146
- if (value === 'ZoomOut') {
147
- newEditorMode = 'zoom-out';
148
- setDeviceType('Desktop');
149
- } else {
150
- setDeviceType(value);
151
- }
152
- __unstableSetEditorMode(newEditorMode);
153
- };
102
+ }];
154
103
  return /*#__PURE__*/_jsx(DropdownMenu, {
155
104
  className: clsx('editor-preview-dropdown', `editor-preview-dropdown--${deviceType.toLowerCase()}`),
156
105
  popoverProps: popoverProps,
157
106
  toggleProps: toggleProps,
158
107
  menuProps: menuProps,
159
108
  icon: deviceIcons[deviceType.toLowerCase()],
160
- text: editorMode === 'zoom-out' ? __('50%') : undefined,
161
109
  label: __('View'),
162
110
  disableOpenOnArrowDown: disabled,
163
111
  children: ({
@@ -166,8 +114,8 @@ export default function PreviewDropdown({
166
114
  children: [/*#__PURE__*/_jsx(MenuGroup, {
167
115
  children: /*#__PURE__*/_jsx(MenuItemsChoice, {
168
116
  choices: choices,
169
- value: previewValue,
170
- onSelect: onSelect
117
+ value: deviceType,
118
+ onSelect: setDeviceType
171
119
  })
172
120
  }), isTemplate && /*#__PURE__*/_jsx(MenuGroup, {
173
121
  children: /*#__PURE__*/_jsxs(MenuItem, {
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","useViewportMatch","DropdownMenu","MenuGroup","MenuItem","MenuItemsChoice","VisuallyHidden","Icon","__","desktop","mobile","tablet","external","useSelect","useDispatch","store","coreStore","useEffect","useRef","preferencesStore","blockEditorStore","ActionItem","editorStore","PostPreviewButton","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","PreviewDropdown","forceIsAutosaveable","disabled","deviceType","editorMode","homeUrl","isTemplate","isViewable","showIconLabels","select","_getPostType$viewable","getDeviceType","getCurrentPostType","getEntityRecord","getPostType","get","__unstableGetEditorMode","_currentPostType","home","viewable","setDeviceType","__unstableSetEditorMode","originalEditingModeRef","current","isMobile","popoverProps","placement","toggleProps","className","iconPosition","size","showTooltip","accessibleWhenDisabled","menuProps","deviceIcons","choices","value","label","icon","window","__experimentalEnableZoomOutExperiment","push","previewValue","onSelect","newEditorMode","toLowerCase","text","undefined","disableOpenOnArrowDown","children","onClose","href","target","onClick","as","role","textContent","onPreview","Slot","name","fillProps"],"sources":["@wordpress/editor/src/components/preview-dropdown/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useViewportMatch } from '@wordpress/compose';\nimport {\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItem,\n\tMenuItemsChoice,\n\tVisuallyHidden,\n\tIcon,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { desktop, mobile, tablet, external } from '@wordpress/icons';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useEffect, useRef } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { ActionItem } from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\nimport PostPreviewButton from '../post-preview-button';\n\nexport default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {\n\tconst {\n\t\tdeviceType,\n\t\teditorMode,\n\t\thomeUrl,\n\t\tisTemplate,\n\t\tisViewable,\n\t\tshowIconLabels,\n\t} = useSelect( ( select ) => {\n\t\tconst { getDeviceType, getCurrentPostType } = select( editorStore );\n\t\tconst { getEntityRecord, getPostType } = select( coreStore );\n\t\tconst { get } = select( preferencesStore );\n\t\tconst { __unstableGetEditorMode } = select( blockEditorStore );\n\t\tconst _currentPostType = getCurrentPostType();\n\t\treturn {\n\t\t\tdeviceType: getDeviceType(),\n\t\t\teditorMode: __unstableGetEditorMode(),\n\t\t\thomeUrl: getEntityRecord( 'root', '__unstableBase' )?.home,\n\t\t\tisTemplate: _currentPostType === 'wp_template',\n\t\t\tisViewable: getPostType( _currentPostType )?.viewable ?? false,\n\t\t\tshowIconLabels: get( 'core', 'showIconLabels' ),\n\t\t};\n\t}, [] );\n\tconst { setDeviceType } = useDispatch( editorStore );\n\tconst { __unstableSetEditorMode } = useDispatch( blockEditorStore );\n\n\t/**\n\t * Save the original editing mode in a ref to restore it when we exit zoom out.\n\t */\n\tconst originalEditingModeRef = useRef( editorMode );\n\tuseEffect( () => {\n\t\tif ( editorMode !== 'zoom-out' ) {\n\t\t\toriginalEditingModeRef.current = editorMode;\n\t\t}\n\n\t\treturn () => {\n\t\t\tif (\n\t\t\t\teditorMode === 'zoom-out' &&\n\t\t\t\teditorMode !== originalEditingModeRef.current\n\t\t\t) {\n\t\t\t\t__unstableSetEditorMode( originalEditingModeRef.current );\n\t\t\t}\n\t\t};\n\t}, [ editorMode, __unstableSetEditorMode ] );\n\n\tconst isMobile = useViewportMatch( 'medium', '<' );\n\tif ( isMobile ) {\n\t\treturn null;\n\t}\n\n\tconst popoverProps = {\n\t\tplacement: 'bottom-end',\n\t};\n\tconst toggleProps = {\n\t\tclassName: 'editor-preview-dropdown__toggle',\n\t\ticonPosition: 'right',\n\t\tsize: 'compact',\n\t\tshowTooltip: ! showIconLabels,\n\t\tdisabled,\n\t\taccessibleWhenDisabled: disabled,\n\t};\n\tconst menuProps = {\n\t\t'aria-label': __( 'View options' ),\n\t};\n\n\tconst deviceIcons = {\n\t\tdesktop,\n\t\tmobile,\n\t\ttablet,\n\t};\n\n\t/**\n\t * The choices for the device type.\n\t *\n\t * @type {Array}\n\t */\n\tconst choices = [\n\t\t{\n\t\t\tvalue: 'Desktop',\n\t\t\tlabel: __( 'Desktop' ),\n\t\t\ticon: desktop,\n\t\t},\n\t];\n\tif ( window.__experimentalEnableZoomOutExperiment ) {\n\t\tchoices.push( {\n\t\t\tvalue: 'ZoomOut',\n\t\t\tlabel: __( 'Desktop (50%)' ),\n\t\t\ticon: desktop,\n\t\t} );\n\t}\n\tchoices.push( {\n\t\tvalue: 'Tablet',\n\t\tlabel: __( 'Tablet' ),\n\t\ticon: tablet,\n\t} );\n\tchoices.push( {\n\t\tvalue: 'Mobile',\n\t\tlabel: __( 'Mobile' ),\n\t\ticon: mobile,\n\t} );\n\n\tconst previewValue = editorMode === 'zoom-out' ? 'ZoomOut' : deviceType;\n\n\t/**\n\t * Handles the selection of a device type.\n\t *\n\t * @param {string} value The device type.\n\t */\n\tconst onSelect = ( value ) => {\n\t\tlet newEditorMode = originalEditingModeRef.current;\n\n\t\tif ( value === 'ZoomOut' ) {\n\t\t\tnewEditorMode = 'zoom-out';\n\t\t\tsetDeviceType( 'Desktop' );\n\t\t} else {\n\t\t\tsetDeviceType( value );\n\t\t}\n\n\t\t__unstableSetEditorMode( newEditorMode );\n\t};\n\n\treturn (\n\t\t<DropdownMenu\n\t\t\tclassName={ clsx(\n\t\t\t\t'editor-preview-dropdown',\n\t\t\t\t`editor-preview-dropdown--${ deviceType.toLowerCase() }`\n\t\t\t) }\n\t\t\tpopoverProps={ popoverProps }\n\t\t\ttoggleProps={ toggleProps }\n\t\t\tmenuProps={ menuProps }\n\t\t\ticon={ deviceIcons[ deviceType.toLowerCase() ] }\n\t\t\ttext={ editorMode === 'zoom-out' ? __( '50%' ) : undefined }\n\t\t\tlabel={ __( 'View' ) }\n\t\t\tdisableOpenOnArrowDown={ disabled }\n\t\t>\n\t\t\t{ ( { onClose } ) => (\n\t\t\t\t<>\n\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\tchoices={ choices }\n\t\t\t\t\t\t\tvalue={ previewValue }\n\t\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t{ isTemplate && (\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\thref={ homeUrl }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'View site' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t) }\n\t\t\t\t\t{ isViewable && (\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<PostPreviewButton\n\t\t\t\t\t\t\t\tclassName=\"editor-preview-dropdown__button-external\"\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\tforceIsAutosaveable={ forceIsAutosaveable }\n\t\t\t\t\t\t\t\taria-label={ __( 'Preview in new tab' ) }\n\t\t\t\t\t\t\t\ttextContent={\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Preview in new tab' ) }\n\t\t\t\t\t\t\t\t\t\t<Icon icon={ external } />\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\tonPreview={ onClose }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t) }\n\t\t\t\t\t<ActionItem.Slot\n\t\t\t\t\t\tname=\"core/plugin-preview-menu\"\n\t\t\t\t\t\tas={ MenuGroup }\n\t\t\t\t\t\tfillProps={ { onClick: onClose } }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t) }\n\t\t</DropdownMenu>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACCC,YAAY,EACZC,SAAS,EACTC,QAAQ,EACRC,eAAe,EACfC,cAAc,EACdC,IAAI,QACE,uBAAuB;AAC9B,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,kBAAkB;AACpE,SAASC,SAAS,EAAEC,WAAW,QAAQ,iBAAiB;AACxD,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AACzD,SAASC,SAAS,EAAEC,MAAM,QAAQ,oBAAoB;AACtD,SAASH,KAAK,IAAII,gBAAgB,QAAQ,wBAAwB;AAClE,SAASJ,KAAK,IAAIK,gBAAgB,QAAQ,yBAAyB;AACnE,SAASC,UAAU,QAAQ,sBAAsB;;AAEjD;AACA;AACA;AACA,SAASN,KAAK,IAAIO,WAAW,QAAQ,aAAa;AAClD,OAAOC,iBAAiB,MAAM,wBAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAEvD,eAAe,SAASC,eAAeA,CAAE;EAAEC,mBAAmB;EAAEC;AAAS,CAAC,EAAG;EAC5E,MAAM;IACLC,UAAU;IACVC,UAAU;IACVC,OAAO;IACPC,UAAU;IACVC,UAAU;IACVC;EACD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,QAAA,eACTpD,KAAA,CAACvB,QAAQ;UACR6E,IAAI,EAAG9C,OAAS;UAChB+C,MAAM,EAAC,QAAQ;UACfd,IAAI,EAAGxD,QAAU;UACjBuE,OAAO,EAAGH,OAAS;UAAAD,QAAA,GAEjBvE,EAAE,CAAE,WAAY,CAAC,eACnBiB,IAAA,CAACnB,cAAc;YAAC8E,EAAE,EAAC,MAAM;YAAAL,QAAA,EAEvB;YACAvE,EAAE,CAAE,sBAAuB;UAAC,CAEd,CAAC;QAAA,CACR;MAAC,CACD,CACX,EACC6B,UAAU,iBACXZ,IAAA,CAACtB,SAAS;QAAA4E,QAAA,eACTtD,IAAA,CAACF,iBAAiB;UACjBmC,SAAS,EAAC,0CAA0C;UACpD2B,IAAI,EAAC,UAAU;UACftD,mBAAmB,EAAGA,mBAAqB;UAC3C,cAAavB,EAAE,CAAE,oBAAqB,CAAG;UACzC8E,WAAW,eACV3D,KAAA,CAAAE,SAAA;YAAAkD,QAAA,GACGvE,EAAE,CAAE,oBAAqB,CAAC,eAC5BiB,IAAA,CAAClB,IAAI;cAAC6D,IAAI,EAAGxD;YAAU,CAAE,CAAC;UAAA,CACzB,CACF;UACD2E,SAAS,EAAGP;QAAS,CACrB;MAAC,CACQ,CACX,eACDvD,IAAA,CAACJ,UAAU,CAACmE,IAAI;QACfC,IAAI,EAAC,0BAA0B;QAC/BL,EAAE,EAAGjF,SAAW;QAChBuF,SAAS,EAAG;UAAEP,OAAO,EAAEH;QAAQ;MAAG,CAClC,CAAC;IAAA,CACD;EACF,CACY,CAAC;AAEjB","ignoreList":[]}
1
+ {"version":3,"names":["clsx","useViewportMatch","DropdownMenu","MenuGroup","MenuItem","MenuItemsChoice","VisuallyHidden","Icon","__","desktop","mobile","tablet","external","useSelect","useDispatch","store","coreStore","preferencesStore","ActionItem","editorStore","PostPreviewButton","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","PreviewDropdown","forceIsAutosaveable","disabled","deviceType","homeUrl","isTemplate","isViewable","showIconLabels","select","_getPostType$viewable","getDeviceType","getCurrentPostType","getEntityRecord","getPostType","get","_currentPostType","home","viewable","setDeviceType","isMobile","popoverProps","placement","toggleProps","className","iconPosition","size","showTooltip","accessibleWhenDisabled","menuProps","deviceIcons","choices","value","label","icon","toLowerCase","disableOpenOnArrowDown","children","onClose","onSelect","href","target","onClick","as","role","textContent","onPreview","Slot","name","fillProps"],"sources":["@wordpress/editor/src/components/preview-dropdown/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useViewportMatch } from '@wordpress/compose';\nimport {\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItem,\n\tMenuItemsChoice,\n\tVisuallyHidden,\n\tIcon,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { desktop, mobile, tablet, external } from '@wordpress/icons';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { ActionItem } from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\nimport PostPreviewButton from '../post-preview-button';\n\nexport default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {\n\tconst { deviceType, homeUrl, isTemplate, isViewable, showIconLabels } =\n\t\tuseSelect( ( select ) => {\n\t\t\tconst { getDeviceType, getCurrentPostType } = select( editorStore );\n\t\t\tconst { getEntityRecord, getPostType } = select( coreStore );\n\t\t\tconst { get } = select( preferencesStore );\n\t\t\tconst _currentPostType = getCurrentPostType();\n\t\t\treturn {\n\t\t\t\tdeviceType: getDeviceType(),\n\t\t\t\thomeUrl: getEntityRecord( 'root', '__unstableBase' )?.home,\n\t\t\t\tisTemplate: _currentPostType === 'wp_template',\n\t\t\t\tisViewable: getPostType( _currentPostType )?.viewable ?? false,\n\t\t\t\tshowIconLabels: get( 'core', 'showIconLabels' ),\n\t\t\t};\n\t\t}, [] );\n\tconst { setDeviceType } = useDispatch( editorStore );\n\n\tconst isMobile = useViewportMatch( 'medium', '<' );\n\tif ( isMobile ) {\n\t\treturn null;\n\t}\n\n\tconst popoverProps = {\n\t\tplacement: 'bottom-end',\n\t};\n\tconst toggleProps = {\n\t\tclassName: 'editor-preview-dropdown__toggle',\n\t\ticonPosition: 'right',\n\t\tsize: 'compact',\n\t\tshowTooltip: ! showIconLabels,\n\t\tdisabled,\n\t\taccessibleWhenDisabled: disabled,\n\t};\n\tconst menuProps = {\n\t\t'aria-label': __( 'View options' ),\n\t};\n\n\tconst deviceIcons = {\n\t\tdesktop,\n\t\tmobile,\n\t\ttablet,\n\t};\n\n\t/**\n\t * The choices for the device type.\n\t *\n\t * @type {Array}\n\t */\n\tconst choices = [\n\t\t{\n\t\t\tvalue: 'Desktop',\n\t\t\tlabel: __( 'Desktop' ),\n\t\t\ticon: desktop,\n\t\t},\n\t\t{\n\t\t\tvalue: 'Tablet',\n\t\t\tlabel: __( 'Tablet' ),\n\t\t\ticon: tablet,\n\t\t},\n\t\t{\n\t\t\tvalue: 'Mobile',\n\t\t\tlabel: __( 'Mobile' ),\n\t\t\ticon: mobile,\n\t\t},\n\t];\n\n\treturn (\n\t\t<DropdownMenu\n\t\t\tclassName={ clsx(\n\t\t\t\t'editor-preview-dropdown',\n\t\t\t\t`editor-preview-dropdown--${ deviceType.toLowerCase() }`\n\t\t\t) }\n\t\t\tpopoverProps={ popoverProps }\n\t\t\ttoggleProps={ toggleProps }\n\t\t\tmenuProps={ menuProps }\n\t\t\ticon={ deviceIcons[ deviceType.toLowerCase() ] }\n\t\t\tlabel={ __( 'View' ) }\n\t\t\tdisableOpenOnArrowDown={ disabled }\n\t\t>\n\t\t\t{ ( { onClose } ) => (\n\t\t\t\t<>\n\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\tchoices={ choices }\n\t\t\t\t\t\t\tvalue={ deviceType }\n\t\t\t\t\t\t\tonSelect={ setDeviceType }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t{ isTemplate && (\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\thref={ homeUrl }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\ticon={ external }\n\t\t\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'View site' ) }\n\t\t\t\t\t\t\t\t<VisuallyHidden as=\"span\">\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t/* translators: accessibility text */\n\t\t\t\t\t\t\t\t\t\t__( '(opens in a new tab)' )\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t) }\n\t\t\t\t\t{ isViewable && (\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<PostPreviewButton\n\t\t\t\t\t\t\t\tclassName=\"editor-preview-dropdown__button-external\"\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\tforceIsAutosaveable={ forceIsAutosaveable }\n\t\t\t\t\t\t\t\taria-label={ __( 'Preview in new tab' ) }\n\t\t\t\t\t\t\t\ttextContent={\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Preview in new tab' ) }\n\t\t\t\t\t\t\t\t\t\t<Icon icon={ external } />\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\tonPreview={ onClose }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t) }\n\t\t\t\t\t<ActionItem.Slot\n\t\t\t\t\t\tname=\"core/plugin-preview-menu\"\n\t\t\t\t\t\tas={ MenuGroup }\n\t\t\t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A,CAACF,iBAAiB;UACjB8B,SAAS,EAAC,0CAA0C;UACpDoB,IAAI,EAAC,UAAU;UACf1C,mBAAmB,EAAGA,mBAAqB;UAC3C,cAAapB,EAAE,CAAE,oBAAqB,CAAG;UACzC+D,WAAW,eACV/C,KAAA,CAAAE,SAAA;YAAAqC,QAAA,GACGvD,EAAE,CAAE,oBAAqB,CAAC,eAC5Bc,IAAA,CAACf,IAAI;cAACqD,IAAI,EAAGhD;YAAU,CAAE,CAAC;UAAA,CACzB,CACF;UACD4D,SAAS,EAAGR;QAAS,CACrB;MAAC,CACQ,CACX,eACD1C,IAAA,CAACJ,UAAU,CAACuD,IAAI;QACfC,IAAI,EAAC,0BAA0B;QAC/BL,EAAE,EAAGlE,SAAW;QAChBwE,SAAS,EAAG;UAAEP,OAAO,EAAEJ;QAAQ;MAAG,CAClC,CAAC;IAAA,CACD;EACF,CACY,CAAC;AAEjB","ignoreList":[]}
@@ -68,12 +68,9 @@ export default function SavePublishPanels({
68
68
  } else if (isPublishable && !hasOtherEntitiesChanges) {
69
69
  unmountableContent = /*#__PURE__*/_jsx("div", {
70
70
  className: "editor-layout__toggle-publish-panel",
71
- children: /*#__PURE__*/_jsx(Button
72
- // TODO: Switch to `true` (40px size) if possible
73
- , {
74
- __next40pxDefaultSize: false,
71
+ children: /*#__PURE__*/_jsx(Button, {
72
+ __next40pxDefaultSize: true,
75
73
  variant: "secondary",
76
- className: "editor-layout__toggle-publish-panel-button",
77
74
  onClick: togglePublishSidebar,
78
75
  "aria-expanded": false,
79
76
  children: __('Open publish panel')
@@ -82,12 +79,9 @@ export default function SavePublishPanels({
82
79
  } else {
83
80
  unmountableContent = /*#__PURE__*/_jsx("div", {
84
81
  className: "editor-layout__toggle-entities-saved-states-panel",
85
- children: /*#__PURE__*/_jsx(Button
86
- // TODO: Switch to `true` (40px size) if possible
87
- , {
88
- __next40pxDefaultSize: false,
82
+ children: /*#__PURE__*/_jsx(Button, {
83
+ __next40pxDefaultSize: true,
89
84
  variant: "secondary",
90
- className: "editor-layout__toggle-entities-saved-states-panel-button",
91
85
  onClick: openEntitiesSavedStates,
92
86
  "aria-expanded": false,
93
87
  disabled: !isDirty,
@@ -1 +1 @@
1
- {"version":3,"names":["useSelect","useDispatch","Button","createSlotFill","__","useCallback","EntitiesSavedStates","PostPublishPanel","PluginPrePublishPanel","PluginPostPublishPanel","store","editorStore","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Fill","Slot","ActionsPanelFill","SavePublishPanels","setEntitiesSavedStatesCallback","closeEntitiesSavedStates","isEntitiesSavedStatesOpen","forceIsDirtyPublishPanel","closePublishSidebar","togglePublishSidebar","publishSidebarOpened","isPublishable","isDirty","hasOtherEntitiesChanges","select","isPublishSidebarOpened","isEditedPostPublishable","isCurrentPostPublished","isEditedPostDirty","hasNonPostEntityChanges","_hasOtherEntitiesChanges","openEntitiesSavedStates","unmountableContent","onClose","forceIsDirty","PrePublishExtension","PostPublishExtension","className","children","__next40pxDefaultSize","variant","onClick","disabled","accessibleWhenDisabled","close","bubblesVirtually"],"sources":["@wordpress/editor/src/components/save-publish-panels/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { Button, createSlotFill } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport EntitiesSavedStates from '../entities-saved-states';\nimport PostPublishPanel from '../post-publish-panel';\nimport PluginPrePublishPanel from '../plugin-pre-publish-panel';\nimport PluginPostPublishPanel from '../plugin-post-publish-panel';\nimport { store as editorStore } from '../../store';\n\nconst { Fill, Slot } = createSlotFill( 'ActionsPanel' );\n\nexport const ActionsPanelFill = Fill;\n\nexport default function SavePublishPanels( {\n\tsetEntitiesSavedStatesCallback,\n\tcloseEntitiesSavedStates,\n\tisEntitiesSavedStatesOpen,\n\tforceIsDirtyPublishPanel,\n} ) {\n\tconst { closePublishSidebar, togglePublishSidebar } =\n\t\tuseDispatch( editorStore );\n\tconst {\n\t\tpublishSidebarOpened,\n\t\tisPublishable,\n\t\tisDirty,\n\t\thasOtherEntitiesChanges,\n\t} = useSelect( ( select ) => {\n\t\tconst {\n\t\t\tisPublishSidebarOpened,\n\t\t\tisEditedPostPublishable,\n\t\t\tisCurrentPostPublished,\n\t\t\tisEditedPostDirty,\n\t\t\thasNonPostEntityChanges,\n\t\t} = select( editorStore );\n\t\tconst _hasOtherEntitiesChanges = hasNonPostEntityChanges();\n\t\treturn {\n\t\t\tpublishSidebarOpened: isPublishSidebarOpened(),\n\t\t\tisPublishable:\n\t\t\t\t! isCurrentPostPublished() && isEditedPostPublishable(),\n\t\t\tisDirty: _hasOtherEntitiesChanges || isEditedPostDirty(),\n\t\t\thasOtherEntitiesChanges: _hasOtherEntitiesChanges,\n\t\t};\n\t}, [] );\n\n\tconst openEntitiesSavedStates = useCallback(\n\t\t() => setEntitiesSavedStatesCallback( true ),\n\t\t[]\n\t);\n\n\t// It is ok for these components to be unmounted when not in visual use.\n\t// We don't want more than one present at a time, decide which to render.\n\tlet unmountableContent;\n\tif ( publishSidebarOpened ) {\n\t\tunmountableContent = (\n\t\t\t<PostPublishPanel\n\t\t\t\tonClose={ closePublishSidebar }\n\t\t\t\tforceIsDirty={ forceIsDirtyPublishPanel }\n\t\t\t\tPrePublishExtension={ PluginPrePublishPanel.Slot }\n\t\t\t\tPostPublishExtension={ PluginPostPublishPanel.Slot }\n\t\t\t/>\n\t\t);\n\t} else if ( isPublishable && ! hasOtherEntitiesChanges ) {\n\t\tunmountableContent = (\n\t\t\t<div className=\"editor-layout__toggle-publish-panel\">\n\t\t\t\t<Button\n\t\t\t\t\t// TODO: Switch to `true` (40px size) if possible\n\t\t\t\t\t__next40pxDefaultSize={ false }\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tclassName=\"editor-layout__toggle-publish-panel-button\"\n\t\t\t\t\tonClick={ togglePublishSidebar }\n\t\t\t\t\taria-expanded={ false }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Open publish panel' ) }\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t} else {\n\t\tunmountableContent = (\n\t\t\t<div className=\"editor-layout__toggle-entities-saved-states-panel\">\n\t\t\t\t<Button\n\t\t\t\t\t// TODO: Switch to `true` (40px size) if possible\n\t\t\t\t\t__next40pxDefaultSize={ false }\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tclassName=\"editor-layout__toggle-entities-saved-states-panel-button\"\n\t\t\t\t\tonClick={ openEntitiesSavedStates }\n\t\t\t\t\taria-expanded={ false }\n\t\t\t\t\tdisabled={ ! isDirty }\n\t\t\t\t\taccessibleWhenDisabled\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Open save panel' ) }\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Since EntitiesSavedStates controls its own panel, we can keep it\n\t// always mounted to retain its own component state (such as checkboxes).\n\treturn (\n\t\t<>\n\t\t\t{ isEntitiesSavedStatesOpen && (\n\t\t\t\t<EntitiesSavedStates close={ closeEntitiesSavedStates } />\n\t\t\t) }\n\t\t\t<Slot bubblesVirtually />\n\t\t\t{ ! isEntitiesSavedStatesOpen && unmountableContent }\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,EAAEC,WAAW,QAAQ,iBAAiB;AACxD,SAASC,MAAM,EAAEC,cAAc,QAAQ,uBAAuB;AAC9D,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,QAAQ,oBAAoB;;AAEhD;AACA;AACA;AACA,OAAOC,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,OAAOC,qBAAqB,MAAM,6BAA6B;AAC/D,OAAOC,sBAAsB,MAAM,8BAA8B;AACjE,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IA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AsB,CAACU;IAAM,CACpD,CACD;EACF,CAAC,MAAM,IAAKU,aAAa,IAAI,CAAEE,uBAAuB,EAAG;IACxDS,kBAAkB,gBACjB3B,IAAA;MAAKgC,SAAS,EAAC,qCAAqC;MAAAC,QAAA,eACnDjC,IAAA,CAACX;MACA;MAAA;QACA6C,qBAAqB,EAAG,KAAO;QAC/BC,OAAO,EAAC,WAAW;QACnBH,SAAS,EAAC,4CAA4C;QACtDI,OAAO,EAAGtB,oBAAsB;QAChC,iBAAgB,KAAO;QAAAmB,QAAA,EAErB1C,EAAE,CAAE,oBAAqB;MAAC,CACrB;IAAC,CACL,CACL;EACF,CAAC,MAAM;IACNoC,kBAAkB,gBACjB3B,IAAA;MAAKgC,SAAS,EAAC,mDAAmD;MAAAC,QAAA,eACjEjC,IAAA,CAACX;MACA;MAAA;QACA6C,qBAAqB,EAAG,KAAO;QAC/BC,OAAO,EAAC,WAAW;QACnBH,SAAS,EAAC,0DAA0D;QACpEI,OAAO,EAAGV,uBAAyB;QACnC,iBAAgB,KAAO;QACvBW,QAAQ,EAAG,CAAEpB,OAAS;QACtBqB,sBAAsB;QAAAL,QAAA,EAEpB1C,EAAE,CAAE,iBAAkB;MAAC,CAClB;IAAC,CACL,CACL;EACF;;EAEA;EACA;EACA,oBACCa,KAAA,CAAAF,SAAA;IAAA+B,QAAA,GACGtB,yBAAyB,iBAC1BX,IAAA,CAACP,mBAAmB;MAAC8C,KAAK,EAAG7B;IAA0B,CAAE,CACzD,eACDV,IAAA,CAACM,IAAI;MAACkC,gBAAgB;IAAA,CAAE,CAAC,EACvB,CAAE7B,yBAAyB,IAAIgB,kBAAkB;EAAA,CAClD,CAAC;AAEL","ignoreList":[]}
1
+ {"version":3,"names":["useSelect","useDispatch","Button","createSlotFill","__","useCallback","EntitiesSavedStates","PostPublishPanel","PluginPrePublishPanel","PluginPostPublishPanel","store","editorStore","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Fill","Slot","ActionsPanelFill","SavePublishPanels","setEntitiesSavedStatesCallback","closeEntitiesSavedStates","isEntitiesSavedStatesOpen","forceIsDirtyPublishPanel","closePublishSidebar","togglePublishSidebar","publishSidebarOpened","isPublishable","isDirty","hasOtherEntitiesChanges","select","isPublishSidebarOpened","isEditedPostPublishable","isCurrentPostPublished","isEditedPostDirty","hasNonPostEntityChanges","_hasOtherEntitiesChanges","openEntitiesSavedStates","unmountableContent","onClose","forceIsDirty","PrePublishExtension","PostPublishExtension","className","children","__next40pxDefaultSize","variant","onClick","disabled","accessibleWhenDisabled","close","bubblesVirtually"],"sources":["@wordpress/editor/src/components/save-publish-panels/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { Button, createSlotFill } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport EntitiesSavedStates from '../entities-saved-states';\nimport PostPublishPanel from '../post-publish-panel';\nimport PluginPrePublishPanel from '../plugin-pre-publish-panel';\nimport PluginPostPublishPanel from '../plugin-post-publish-panel';\nimport { store as editorStore } from '../../store';\n\nconst { Fill, Slot } = createSlotFill( 'ActionsPanel' );\n\nexport const ActionsPanelFill = Fill;\n\nexport default function SavePublishPanels( {\n\tsetEntitiesSavedStatesCallback,\n\tcloseEntitiesSavedStates,\n\tisEntitiesSavedStatesOpen,\n\tforceIsDirtyPublishPanel,\n} ) {\n\tconst { closePublishSidebar, togglePublishSidebar } =\n\t\tuseDispatch( editorStore );\n\tconst {\n\t\tpublishSidebarOpened,\n\t\tisPublishable,\n\t\tisDirty,\n\t\thasOtherEntitiesChanges,\n\t} = useSelect( ( select ) => {\n\t\tconst {\n\t\t\tisPublishSidebarOpened,\n\t\t\tisEditedPostPublishable,\n\t\t\tisCurrentPostPublished,\n\t\t\tisEditedPostDirty,\n\t\t\thasNonPostEntityChanges,\n\t\t} = select( editorStore );\n\t\tconst _hasOtherEntitiesChanges = hasNonPostEntityChanges();\n\t\treturn {\n\t\t\tpublishSidebarOpened: isPublishSidebarOpened(),\n\t\t\tisPublishable:\n\t\t\t\t! isCurrentPostPublished() && isEditedPostPublishable(),\n\t\t\tisDirty: _hasOtherEntitiesChanges || isEditedPostDirty(),\n\t\t\thasOtherEntitiesChanges: _hasOtherEntitiesChanges,\n\t\t};\n\t}, [] );\n\n\tconst openEntitiesSavedStates = useCallback(\n\t\t() => setEntitiesSavedStatesCallback( true ),\n\t\t[]\n\t);\n\n\t// It is ok for these components to be unmounted when not in visual use.\n\t// We don't want more than one present at a time, decide which to render.\n\tlet unmountableContent;\n\tif ( publishSidebarOpened ) {\n\t\tunmountableContent = (\n\t\t\t<PostPublishPanel\n\t\t\t\tonClose={ closePublishSidebar }\n\t\t\t\tforceIsDirty={ forceIsDirtyPublishPanel }\n\t\t\t\tPrePublishExtension={ PluginPrePublishPanel.Slot }\n\t\t\t\tPostPublishExtension={ PluginPostPublishPanel.Slot }\n\t\t\t/>\n\t\t);\n\t} else if ( isPublishable && ! hasOtherEntitiesChanges ) {\n\t\tunmountableContent = (\n\t\t\t<div className=\"editor-layout__toggle-publish-panel\">\n\t\t\t\t<Button\n\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tonClick={ togglePublishSidebar }\n\t\t\t\t\taria-expanded={ false }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Open publish panel' ) }\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t} else {\n\t\tunmountableContent = (\n\t\t\t<div className=\"editor-layout__toggle-entities-saved-states-panel\">\n\t\t\t\t<Button\n\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tonClick={ openEntitiesSavedStates }\n\t\t\t\t\taria-expanded={ false }\n\t\t\t\t\tdisabled={ ! isDirty }\n\t\t\t\t\taccessibleWhenDisabled\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Open save panel' ) }\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Since EntitiesSavedStates controls its own panel, we can keep it\n\t// always mounted to retain its own component state (such as checkboxes).\n\treturn (\n\t\t<>\n\t\t\t{ isEntitiesSavedStatesOpen && (\n\t\t\t\t<EntitiesSavedStates close={ closeEntitiesSavedStates } />\n\t\t\t) }\n\t\t\t<Slot bubblesVirtually />\n\t\t\t{ ! isEntitiesSavedStatesOpen && unmountableContent }\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,EAAEC,WAAW,QAAQ,iBAAiB;AACxD,SAASC,MAAM,EAAEC,cAAc,QAAQ,uBAAuB;AAC9D,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,QAAQ,oBAAoB;;AAEhD;AACA;AACA;AACA,OAAOC,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,OAAOC,qBAAqB,MAAM,6BAA6B;AAC/D,OAAOC,sBAAsB,MAAM,8BAA8B;AACjE,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEnD,MAAM;EAAEC,IAAI;EAAEC;AAAK,CAAC,GAAGhB,cAAc,CAAE,cAAe,CAAC;AAEvD,OAAO,MAAMiB,gBAAgB,GAAGF,IAAI;AAEpC,eAAe,SAASG,iBAAiBA,CAAE;EAC1CC,8BAA8B;EAC9BC,wBAAwB;EACxBC,yBAAyB;EACzBC;AACD,CAAC,EAAG;EACH,MAAM;IAAEC,mBAAmB;IAAEC;EAAqB,CAAC,GAClD1B,WAAW,CAAEU,WAAY,CAAC;EAC3B,MAAM;IACLiB,oBAAoB;IACpBC,aAAa;IACbC,OAAO;IACPC;EACD,CAAC,GAAG/B,SAAS,CAAIgC,MAAM,IAAM;IAC5B,MAAM;MACLC,sBAAs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C,OAAO,EAAC,WAAW;QACnBC,OAAO,EAAGV,uBAAyB;QACnC,iBAAgB,KAAO;QACvBW,QAAQ,EAAG,CAAEpB,OAAS;QACtBqB,sBAAsB;QAAAL,QAAA,EAEpB1C,EAAE,CAAE,iBAAkB;MAAC,CAClB;IAAC,CACL,CACL;EACF;;EAEA;EACA;EACA,oBACCa,KAAA,CAAAF,SAAA;IAAA+B,QAAA,GACGtB,yBAAyB,iBAC1BX,IAAA,CAACP,mBAAmB;MAAC8C,KAAK,EAAG7B;IAA0B,CAAE,CACzD,eACDV,IAAA,CAACM,IAAI;MAACkC,gBAAgB;IAAA,CAAE,CAAC,EACvB,CAAE7B,yBAAyB,IAAIgB,kBAAkB;EAAA,CAClD,CAAC;AAEL","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { Button } from '@wordpress/components';
5
+ import { __ } from '@wordpress/i18n';
6
+ import { useDispatch, useSelect } from '@wordpress/data';
7
+ import { store as blockEditorStore } from '@wordpress/block-editor';
8
+ import { square as zoomOutIcon } from '@wordpress/icons';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const ZoomOutToggle = () => {
11
+ const {
12
+ isZoomOutMode
13
+ } = useSelect(select => ({
14
+ isZoomOutMode: select(blockEditorStore).__unstableGetEditorMode() === 'zoom-out'
15
+ }));
16
+ const {
17
+ __unstableSetEditorMode
18
+ } = useDispatch(blockEditorStore);
19
+ const handleZoomOut = () => {
20
+ __unstableSetEditorMode(isZoomOutMode ? 'edit' : 'zoom-out');
21
+ };
22
+ return /*#__PURE__*/_jsx(Button, {
23
+ onClick: handleZoomOut,
24
+ icon: zoomOutIcon,
25
+ label: __('Toggle Zoom Out'),
26
+ isPressed: isZoomOutMode,
27
+ size: "compact"
28
+ });
29
+ };
30
+ export default ZoomOutToggle;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Button","__","useDispatch","useSelect","store","blockEditorStore","square","zoomOutIcon","jsx","_jsx","ZoomOutToggle","isZoomOutMode","select","__unstableGetEditorMode","__unstableSetEditorMode","handleZoomOut","onClick","icon","label","isPressed","size"],"sources":["@wordpress/editor/src/components/zoom-out-toggle/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Button } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { square as zoomOutIcon } from '@wordpress/icons';\n\nconst ZoomOutToggle = () => {\n\tconst { isZoomOutMode } = useSelect( ( select ) => ( {\n\t\tisZoomOutMode:\n\t\t\tselect( blockEditorStore ).__unstableGetEditorMode() === 'zoom-out',\n\t} ) );\n\n\tconst { __unstableSetEditorMode } = useDispatch( blockEditorStore );\n\n\tconst handleZoomOut = () => {\n\t\t__unstableSetEditorMode( isZoomOutMode ? 'edit' : 'zoom-out' );\n\t};\n\n\treturn (\n\t\t<Button\n\t\t\tonClick={ handleZoomOut }\n\t\t\ticon={ zoomOutIcon }\n\t\t\tlabel={ __( 'Toggle Zoom Out' ) }\n\t\t\tisPressed={ isZoomOutMode }\n\t\t\tsize=\"compact\"\n\t\t/>\n\t);\n};\n\nexport default ZoomOutToggle;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,EAAE,QAAQ,iBAAiB;AAEpC,SAASC,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AACnE,SAASC,MAAM,IAAIC,WAAW,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzD,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAC3B,MAAM;IAAEC;EAAc,CAAC,GAAGR,SAAS,CAAIS,MAAM,KAAQ;IACpDD,aAAa,EACZC,MAAM,CAAEP,gBAAiB,CAAC,CAACQ,uBAAuB,CAAC,CAAC,KAAK;EAC3D,CAAC,CAAG,CAAC;EAEL,MAAM;IAAEC;EAAwB,CAAC,GAAGZ,WAAW,CAAEG,gBAAiB,CAAC;EAEnE,MAAMU,aAAa,GAAGA,CAAA,KAAM;IAC3BD,uBAAuB,CAAEH,aAAa,GAAG,MAAM,GAAG,UAAW,CAAC;EAC/D,CAAC;EAED,oBACCF,IAAA,CAACT,MAAM;IACNgB,OAAO,EAAGD,aAAe;IACzBE,IAAI,EAAGV,WAAa;IACpBW,KAAK,EAAGjB,EAAE,CAAE,iBAAkB,CAAG;IACjCkB,SAAS,EAAGR,aAAe;IAC3BS,IAAI,EAAC;EAAS,CACd,CAAC;AAEJ,CAAC;AAED,eAAeV,aAAa","ignoreList":[]}
@@ -7,21 +7,15 @@ import { doAction } from '@wordpress/hooks';
7
7
  /**
8
8
  * Internal dependencies
9
9
  */
10
- import deletePost from '../actions/delete-post';
11
- import duplicatePattern from '../actions/duplicate-pattern';
12
10
  import duplicateTemplatePart from '../actions/duplicate-template-part';
13
- import exportPattern from '../actions/export-pattern';
14
11
  import resetPost from '../actions/reset-post';
15
12
  import trashPost from '../actions/trash-post';
16
- import permanentlyDeletePost from '../actions/permanently-delete-post';
17
13
  import renamePost from '../actions/rename-post';
18
- import reorderPage from '../actions/reorder-page';
19
14
  import restorePost from '../actions/restore-post';
20
15
  import { store as editorStore } from '../../store';
21
16
  import { unlock } from '../../lock-unlock';
22
- import duplicatePost from '../actions/duplicate-post';
23
- import viewPostRevisions from '../actions/view-post-revisions';
24
- import viewPost from '../actions/view-post';
17
+ import { viewPost, viewPostRevisions, duplicatePost, duplicatePattern, reorderPage, exportPattern, permanentlyDeletePost } from '@wordpress/fields';
18
+ import deletePost from '../actions/delete-post';
25
19
  export function registerEntityAction(kind, name, config) {
26
20
  return {
27
21
  type: 'REGISTER_ENTITY_ACTION',
@@ -1 +1 @@
1
- {"version":3,"names":["store","coreStore","doAction","deletePost","duplicatePattern","duplicateTemplatePart","exportPattern","resetPost","trashPost","permanentlyDeletePost","renamePost","reorderPage","restorePost","editorStore","unlock","duplicatePost","viewPostRevisions","viewPost","registerEntityAction","kind","name","config","type","unregisterEntityAction","actionId","setIsReady","registerPostTypeActions","postType","registry","isReady","select","isEntityReady","dispatch","postTypeConfig","resolveSelect","getPostType","canCreate","canUser","currentTheme","getCurrentTheme","actions","viewable","undefined","supports","revisions","globalThis","IS_GUTENBERG_PLUGIN","includes","slug","is_block_theme","title","batch","forEach","action"],"sources":["@wordpress/editor/src/dataviews/store/private-actions.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { Action } from '@wordpress/dataviews';\nimport { doAction } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport deletePost from '../actions/delete-post';\nimport duplicatePattern from '../actions/duplicate-pattern';\nimport duplicateTemplatePart from '../actions/duplicate-template-part';\nimport exportPattern from '../actions/export-pattern';\nimport resetPost from '../actions/reset-post';\nimport trashPost from '../actions/trash-post';\nimport permanentlyDeletePost from '../actions/permanently-delete-post';\nimport renamePost from '../actions/rename-post';\nimport reorderPage from '../actions/reorder-page';\nimport restorePost from '../actions/restore-post';\nimport type { PostType } from '../types';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport duplicatePost from '../actions/duplicate-post';\nimport viewPostRevisions from '../actions/view-post-revisions';\nimport viewPost from '../actions/view-post';\n\nexport function registerEntityAction< Item >(\n\tkind: string,\n\tname: string,\n\tconfig: Action< Item >\n) {\n\treturn {\n\t\ttype: 'REGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tconfig,\n\t};\n}\n\nexport function unregisterEntityAction(\n\tkind: string,\n\tname: string,\n\tactionId: string\n) {\n\treturn {\n\t\ttype: 'UNREGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tactionId,\n\t};\n}\n\nexport function setIsReady( kind: string, name: string ) {\n\treturn {\n\t\ttype: 'SET_IS_READY' as const,\n\t\tkind,\n\t\tname,\n\t};\n}\n\nexport const registerPostTypeActions =\n\t( postType: string ) =>\n\tasync ( { registry }: { registry: any } ) => {\n\t\tconst isReady = unlock( registry.select( editorStore ) ).isEntityReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\t\tif ( isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\tunlock( registry.dispatch( editorStore ) ).setIsReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\n\t\tconst postTypeConfig = ( await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getPostType( postType ) ) as PostType;\n\n\t\tconst canCreate = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.canUser( 'create', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: postType,\n\t\t\t} );\n\t\tconst currentTheme = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getCurrentTheme();\n\n\t\tconst actions = [\n\t\t\tpostTypeConfig.viewable ? viewPost : undefined,\n\t\t\t!! postTypeConfig?.supports?.revisions\n\t\t\t\t? viewPostRevisions\n\t\t\t\t: undefined,\n\t\t\t// @ts-ignore\n\t\t\tglobalThis.IS_GUTENBERG_PLUGIN\n\t\t\t\t? ! [ 'wp_template', 'wp_block', 'wp_template_part' ].includes(\n\t\t\t\t\t\tpostTypeConfig.slug\n\t\t\t\t ) &&\n\t\t\t\t canCreate &&\n\t\t\t\t duplicatePost\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_template_part' &&\n\t\t\tcanCreate &&\n\t\t\tcurrentTheme?.is_block_theme\n\t\t\t\t? duplicateTemplatePart\n\t\t\t\t: undefined,\n\t\t\tcanCreate && postTypeConfig.slug === 'wp_block'\n\t\t\t\t? duplicatePattern\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.supports?.title ? renamePost : undefined,\n\t\t\tpostTypeConfig?.supports?.[ 'page-attributes' ]\n\t\t\t\t? reorderPage\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_block' ? exportPattern : undefined,\n\t\t\tresetPost,\n\t\t\trestorePost,\n\t\t\tdeletePost,\n\t\t\ttrashPost,\n\t\t\tpermanentlyDeletePost,\n\t\t];\n\n\t\tregistry.batch( () => {\n\t\t\tactions.forEach( ( action ) => {\n\t\t\t\tif ( ! action ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunlock( registry.dispatch( editorStore ) ).registerEntityAction(\n\t\t\t\t\t'postType',\n\t\t\t\t\tpostType,\n\t\t\t\t\taction\n\t\t\t\t);\n\t\t\t} );\n\t\t} );\n\n\t\tdoAction( 'core.registerPostTypeActions', postType );\n\t};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AAEzD,SAASC,QAAQ,QAAQ,kBAAkB;;AAE3C;AACA;AACA;AACA,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,OAAOC,qBAAqB,MAAM,oCAAoC;AACtE,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,qBAAqB,MAAM,oCAAoC;AACtE,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,WAAW,MAAM,yBAAyB;AAEjD,SAASZ,KAAK,IAAIa,WAAW,QAAQ,aAAa;AAClD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,aAAa,MAAM,2BAA2B;AACrD,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,QAAQ,MAAM,sBAAsB;AAE3C,OAAO,SAASC,oBAAoBA,CACnCC,IAAY,EACZC,IAAY,EACZC,MAAsB,EACrB;EACD,OAAO;IACNC,IAAI,EAAE,wBAAiC;IACvCH,IAAI;IACJC,IAAI;IACJC;EACD,CAAC;A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CAAE,CAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,CAAE,CAACC,QAAQ,CAC5Dd,cAAc,CAACe,IACf,CAAC,IACDZ,SAAS,IACTrB,aAAa,GACb2B,SAAS,EACZT,cAAc,CAACe,IAAI,KAAK,kBAAkB,IAC1CZ,SAAS,IACTE,YAAY,EAAEW,cAAc,GACzB5C,qBAAqB,GACrBqC,SAAS,EACZN,SAAS,IAAIH,cAAc,CAACe,IAAI,KAAK,UAAU,GAC5C5C,gBAAgB,GAChBsC,SAAS,EACZT,cAAc,CAACU,QAAQ,EAAEO,KAAK,GAAGxC,UAAU,GAAGgC,SAAS,EACvDT,cAAc,EAAEU,QAAQ,GAAI,iBAAiB,CAAE,GAC5ChC,WAAW,GACX+B,SAAS,EACZT,cAAc,CAACe,IAAI,KAAK,UAAU,GAAG1C,aAAa,GAAGoC,SAAS,EAC9DnC,SAAS,EACTK,WAAW,EACXT,UAAU,EACVK,SAAS,EACTC,qBAAqB,CACrB;EAEDmB,QAAQ,CAACuB,KAAK,CAAE,MAAM;IACrBX,OAAO,CAACY,OAAO,CAAIC,MAAM,IAAM;MAC9B,IAAK,CAAEA,MAAM,EAAG;QACf;MACD;MACAvC,MAAM,CAAEc,QAAQ,CAACI,QAAQ,CAAEnB,WAAY,CAAE,CAAC,CAACK,oBAAoB,CAC9D,UAAU,EACVS,QAAQ,EACR0B,MACD,CAAC;IACF,CAAE,CAAC;EACJ,CAAE,CAAC;EAEHnD,QAAQ,CAAE,8BAA8B,EAAEyB,QAAS,CAAC;AACrD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["store","coreStore","doAction","duplicateTemplatePart","resetPost","trashPost","renamePost","restorePost","editorStore","unlock","viewPost","viewPostRevisions","duplicatePost","duplicatePattern","reorderPage","exportPattern","permanentlyDeletePost","deletePost","registerEntityAction","kind","name","config","type","unregisterEntityAction","actionId","setIsReady","registerPostTypeActions","postType","registry","isReady","select","isEntityReady","dispatch","postTypeConfig","resolveSelect","getPostType","canCreate","canUser","currentTheme","getCurrentTheme","actions","viewable","undefined","supports","revisions","globalThis","IS_GUTENBERG_PLUGIN","includes","slug","is_block_theme","title","batch","forEach","action"],"sources":["@wordpress/editor/src/dataviews/store/private-actions.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { Action } from '@wordpress/dataviews';\nimport { doAction } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport duplicateTemplatePart from '../actions/duplicate-template-part';\nimport resetPost from '../actions/reset-post';\nimport trashPost from '../actions/trash-post';\nimport renamePost from '../actions/rename-post';\nimport restorePost from '../actions/restore-post';\nimport type { PostType } from '../types';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport {\n\tviewPost,\n\tviewPostRevisions,\n\tduplicatePost,\n\tduplicatePattern,\n\treorderPage,\n\texportPattern,\n\tpermanentlyDeletePost,\n} from '@wordpress/fields';\nimport deletePost from '../actions/delete-post';\n\nexport function registerEntityAction< Item >(\n\tkind: string,\n\tname: string,\n\tconfig: Action< Item >\n) {\n\treturn {\n\t\ttype: 'REGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tconfig,\n\t};\n}\n\nexport function unregisterEntityAction(\n\tkind: string,\n\tname: string,\n\tactionId: string\n) {\n\treturn {\n\t\ttype: 'UNREGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tactionId,\n\t};\n}\n\nexport function setIsReady( kind: string, name: string ) {\n\treturn {\n\t\ttype: 'SET_IS_READY' as const,\n\t\tkind,\n\t\tname,\n\t};\n}\n\nexport const registerPostTypeActions =\n\t( postType: string ) =>\n\tasync ( { registry }: { registry: any } ) => {\n\t\tconst isReady = unlock( registry.select( editorStore ) ).isEntityReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\t\tif ( isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\tunlock( registry.dispatch( editorStore ) ).setIsReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\n\t\tconst postTypeConfig = ( await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getPostType( postType ) ) as PostType;\n\n\t\tconst canCreate = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.canUser( 'create', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: postType,\n\t\t\t} );\n\t\tconst currentTheme = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getCurrentTheme();\n\n\t\tconst actions = [\n\t\t\tpostTypeConfig.viewable ? viewPost : undefined,\n\t\t\t!! postTypeConfig?.supports?.revisions\n\t\t\t\t? viewPostRevisions\n\t\t\t\t: undefined,\n\t\t\t// @ts-ignore\n\t\t\tglobalThis.IS_GUTENBERG_PLUGIN\n\t\t\t\t? ! [ 'wp_template', 'wp_block', 'wp_template_part' ].includes(\n\t\t\t\t\t\tpostTypeConfig.slug\n\t\t\t\t ) &&\n\t\t\t\t canCreate &&\n\t\t\t\t duplicatePost\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_template_part' &&\n\t\t\tcanCreate &&\n\t\t\tcurrentTheme?.is_block_theme\n\t\t\t\t? duplicateTemplatePart\n\t\t\t\t: undefined,\n\t\t\tcanCreate && postTypeConfig.slug === 'wp_block'\n\t\t\t\t? duplicatePattern\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.supports?.title ? renamePost : undefined,\n\t\t\tpostTypeConfig?.supports?.[ 'page-attributes' ]\n\t\t\t\t? reorderPage\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_block' ? exportPattern : undefined,\n\t\t\tresetPost,\n\t\t\trestorePost,\n\t\t\tdeletePost,\n\t\t\ttrashPost,\n\t\t\tpermanentlyDeletePost,\n\t\t];\n\n\t\tregistry.batch( () => {\n\t\t\tactions.forEach( ( action ) => {\n\t\t\t\tif ( ! action ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunlock( registry.dispatch( editorStore ) ).registerEntityAction(\n\t\t\t\t\t'postType',\n\t\t\t\t\tpostType,\n\t\t\t\t\taction\n\t\t\t\t);\n\t\t\t} );\n\t\t} );\n\n\t\tdoAction( 'core.registerPostTypeActions', postType );\n\t};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AAEzD,SAASC,QAAQ,QAAQ,kBAAkB;;AAE3C;AACA;AACA;AACA,OAAOC,qBAAqB,MAAM,oCAAoC;AACtE,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,WAAW,MAAM,yBAAyB;AAEjD,SAASP,KAAK,IAAIQ,WAAW,QAAQ,aAAa;AAClD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SACCC,QAAQ,EACRC,iBAAiB,EACjBC,aAAa,EACbC,gBAAgB,EAChBC,WAAW,EACXC,aAAa,EACbC,qBAAqB,QACf,mBAAmB;AAC1B,OAAOC,UAAU,MAAM,wBAAwB;AAE/C,OAAO,SAASC,oBAAoBA,CACnCC,IAAY,EACZC,IAAY,EACZC,MAAsB,EACrB;EACD,OAAO;IACNC,IAAI,EAAE,wBAAiC;IACvCH,IAAI;IACJC,IAAI;IACJC;EACD,CAAC;AACF;AAEA,OAAO,SAASE,sBAAsBA,CACrCJ,IAAY,EACZC,IAAY,EACZI,QAAgB,EACf;EACD,OAAO;IACNF,IAAI,EAAE,0BAAmC;IACzCH,IAAI;IACJC,IAAI;IACJI;EACD,CAAC;AACF;AAEA,OAAO,SAASC,UAAUA,CAAEN,IAAY,EAAEC,IAAY,EAAG;EACxD,OAAO;IACNE,IAAI,EAAE,cAAuB;IAC7BH,IAAI;IACJC;EACD,CAAC;AACF;AAEA,OAAO,MAAMM,uBAAuB,GACjCC,QAAgB,IAClB,OAAQ;EAAEC;AAA4B,CAAC,KAAM;EAC5C,MAAMC,OAAO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,SAAS,EACvDT,cAAc,EAAEU,QAAQ,GAAI,iBAAiB,CAAE,GAC5C7B,WAAW,GACX4B,SAAS,EACZT,cAAc,CAACe,IAAI,KAAK,UAAU,GAAGjC,aAAa,GAAG2B,SAAS,EAC9DtC,SAAS,EACTG,WAAW,EACXU,UAAU,EACVZ,SAAS,EACTW,qBAAqB,CACrB;EAEDY,QAAQ,CAACuB,KAAK,CAAE,MAAM;IACrBX,OAAO,CAACY,OAAO,CAAIC,MAAM,IAAM;MAC9B,IAAK,CAAEA,MAAM,EAAG;QACf;MACD;MACA5C,MAAM,CAAEmB,QAAQ,CAACI,QAAQ,CAAExB,WAAY,CAAE,CAAC,CAACU,oBAAoB,CAC9D,UAAU,EACVS,QAAQ,EACR0B,MACD,CAAC;IACF,CAAE,CAAC;EACJ,CAAE,CAAC;EAEHnD,QAAQ,CAAE,8BAA8B,EAAEyB,QAAS,CAAC;AACrD,CAAC","ignoreList":[]}
@@ -728,6 +728,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
728
728
  .editor-document-bar .components-button:hover {
729
729
  background: #e0e0e0;
730
730
  }
731
+ @media screen and (min-width: 782px) and (max-width: 960px) {
732
+ .editor-document-bar.has-back-button .editor-document-bar__post-type-label {
733
+ display: none;
734
+ }
735
+ }
731
736
 
732
737
  .editor-document-bar__command {
733
738
  flex-grow: 1;
@@ -736,32 +741,44 @@ body.is-fullscreen-mode .interface-interface-skeleton {
736
741
  }
737
742
 
738
743
  .editor-document-bar__title {
739
- flex: 1;
740
744
  overflow: hidden;
741
745
  color: #1e1e1e;
742
- gap: 4px;
743
- display: flex;
744
- justify-content: center;
745
- align-items: center;
746
+ margin: 0 auto;
747
+ max-width: 70%;
746
748
  }
747
749
  @media (min-width: 782px) {
748
750
  .editor-document-bar__title {
749
751
  padding-right: 24px;
750
752
  }
751
753
  }
752
- .editor-document-bar.is-global .editor-document-bar__title {
753
- color: var(--wp-block-synced-color);
754
- }
755
- .editor-document-bar__title .block-editor-block-icon {
756
- min-width: 24px;
757
- flex-shrink: 0;
758
- }
759
754
  .editor-document-bar__title h1 {
755
+ display: flex;
756
+ align-items: center;
757
+ justify-content: center;
758
+ font-weight: 400;
760
759
  white-space: nowrap;
761
760
  overflow: hidden;
762
- text-overflow: ellipsis;
763
- max-width: 70%;
761
+ }
762
+
763
+ .editor-document-bar__post-title {
764
764
  color: currentColor;
765
+ flex: 1;
766
+ overflow: hidden;
767
+ text-overflow: ellipsis;
768
+ }
769
+ .editor-document-bar.is-global .editor-document-bar__post-title {
770
+ color: var(--wp-block-synced-color);
771
+ }
772
+
773
+ .editor-document-bar__post-type-label {
774
+ flex: 0;
775
+ color: #2f2f2f;
776
+ padding-right: 4px;
777
+ }
778
+ @media screen and (max-width: 600px) {
779
+ .editor-document-bar__post-type-label {
780
+ display: none;
781
+ }
765
782
  }
766
783
 
767
784
  .editor-document-bar__shortcut {
@@ -1022,7 +1039,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1022
1039
  max-width: 780px;
1023
1040
  padding: 20px;
1024
1041
  margin-top: 60px;
1025
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), -0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
1042
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02);
1026
1043
  }
1027
1044
 
1028
1045
  .editor-header {
@@ -1582,7 +1599,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1582
1599
  }
1583
1600
 
1584
1601
  .editor-post-featured-image__preview {
1585
- height: auto;
1602
+ height: auto !important;
1586
1603
  outline: 1px solid rgba(0, 0, 0, 0.1);
1587
1604
  }
1588
1605
  .editor-post-featured-image__preview .editor-post-featured-image__preview-image {
@@ -1593,10 +1610,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1593
1610
  }
1594
1611
 
1595
1612
  .editor-post-featured-image__toggle {
1596
- height: 100%;
1597
- line-height: 20px;
1598
- padding: 8px 0;
1599
- text-align: center;
1600
1613
  box-shadow: inset 0 0 0 1px #ccc;
1601
1614
  }
1602
1615
 
@@ -1708,6 +1721,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1708
1721
  white-space: normal;
1709
1722
  text-wrap: balance;
1710
1723
  text-wrap: pretty;
1724
+ height: auto;
1711
1725
  min-height: 32px;
1712
1726
  }
1713
1727
  .editor-post-panel__row-control .components-dropdown {
@@ -1992,6 +2006,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1992
2006
  .editor-post-status.is-read-only {
1993
2007
  padding: 6px 12px;
1994
2008
  }
2009
+ .editor-post-status .editor-post-status__toggle.editor-post-status__toggle {
2010
+ padding-top: 4px;
2011
+ padding-bottom: 4px;
2012
+ }
1995
2013
 
1996
2014
  .editor-change-status__password-fieldset,
1997
2015
  .editor-change-status__publish-date-wrapper {
@@ -2052,9 +2070,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
2052
2070
  display: inline-block;
2053
2071
  margin-left: 8px;
2054
2072
  }
2055
- .editor-post-taxonomies__flat-term-most-used-list .components-button {
2056
- font-size: 12px;
2057
- }
2058
2073
 
2059
2074
  .editor-post-template__swap-template-modal {
2060
2075
  z-index: 1000001;
@@ -728,6 +728,11 @@ body.is-fullscreen-mode .interface-interface-skeleton {
728
728
  .editor-document-bar .components-button:hover {
729
729
  background: #e0e0e0;
730
730
  }
731
+ @media screen and (min-width: 782px) and (max-width: 960px) {
732
+ .editor-document-bar.has-back-button .editor-document-bar__post-type-label {
733
+ display: none;
734
+ }
735
+ }
731
736
 
732
737
  .editor-document-bar__command {
733
738
  flex-grow: 1;
@@ -736,32 +741,44 @@ body.is-fullscreen-mode .interface-interface-skeleton {
736
741
  }
737
742
 
738
743
  .editor-document-bar__title {
739
- flex: 1;
740
744
  overflow: hidden;
741
745
  color: #1e1e1e;
742
- gap: 4px;
743
- display: flex;
744
- justify-content: center;
745
- align-items: center;
746
+ margin: 0 auto;
747
+ max-width: 70%;
746
748
  }
747
749
  @media (min-width: 782px) {
748
750
  .editor-document-bar__title {
749
751
  padding-left: 24px;
750
752
  }
751
753
  }
752
- .editor-document-bar.is-global .editor-document-bar__title {
753
- color: var(--wp-block-synced-color);
754
- }
755
- .editor-document-bar__title .block-editor-block-icon {
756
- min-width: 24px;
757
- flex-shrink: 0;
758
- }
759
754
  .editor-document-bar__title h1 {
755
+ display: flex;
756
+ align-items: center;
757
+ justify-content: center;
758
+ font-weight: 400;
760
759
  white-space: nowrap;
761
760
  overflow: hidden;
762
- text-overflow: ellipsis;
763
- max-width: 70%;
761
+ }
762
+
763
+ .editor-document-bar__post-title {
764
764
  color: currentColor;
765
+ flex: 1;
766
+ overflow: hidden;
767
+ text-overflow: ellipsis;
768
+ }
769
+ .editor-document-bar.is-global .editor-document-bar__post-title {
770
+ color: var(--wp-block-synced-color);
771
+ }
772
+
773
+ .editor-document-bar__post-type-label {
774
+ flex: 0;
775
+ color: #2f2f2f;
776
+ padding-left: 4px;
777
+ }
778
+ @media screen and (max-width: 600px) {
779
+ .editor-document-bar__post-type-label {
780
+ display: none;
781
+ }
765
782
  }
766
783
 
767
784
  .editor-document-bar__shortcut {
@@ -1022,7 +1039,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1022
1039
  max-width: 780px;
1023
1040
  padding: 20px;
1024
1041
  margin-top: 60px;
1025
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.15), 0 2.7px 3.8px -0.2px rgba(0, 0, 0, 0.15), 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.15), 0.1px 11.5px 16.4px -0.5px rgba(0, 0, 0, 0.15);
1042
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02);
1026
1043
  }
1027
1044
 
1028
1045
  .editor-header {
@@ -1582,7 +1599,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1582
1599
  }
1583
1600
 
1584
1601
  .editor-post-featured-image__preview {
1585
- height: auto;
1602
+ height: auto !important;
1586
1603
  outline: 1px solid rgba(0, 0, 0, 0.1);
1587
1604
  }
1588
1605
  .editor-post-featured-image__preview .editor-post-featured-image__preview-image {
@@ -1593,10 +1610,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1593
1610
  }
1594
1611
 
1595
1612
  .editor-post-featured-image__toggle {
1596
- height: 100%;
1597
- line-height: 20px;
1598
- padding: 8px 0;
1599
- text-align: center;
1600
1613
  box-shadow: inset 0 0 0 1px #ccc;
1601
1614
  }
1602
1615
 
@@ -1708,6 +1721,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1708
1721
  white-space: normal;
1709
1722
  text-wrap: balance;
1710
1723
  text-wrap: pretty;
1724
+ height: auto;
1711
1725
  min-height: 32px;
1712
1726
  }
1713
1727
  .editor-post-panel__row-control .components-dropdown {
@@ -1992,6 +2006,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1992
2006
  .editor-post-status.is-read-only {
1993
2007
  padding: 6px 12px;
1994
2008
  }
2009
+ .editor-post-status .editor-post-status__toggle.editor-post-status__toggle {
2010
+ padding-top: 4px;
2011
+ padding-bottom: 4px;
2012
+ }
1995
2013
 
1996
2014
  .editor-change-status__password-fieldset,
1997
2015
  .editor-change-status__publish-date-wrapper {
@@ -2052,9 +2070,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
2052
2070
  display: inline-block;
2053
2071
  margin-right: 8px;
2054
2072
  }
2055
- .editor-post-taxonomies__flat-term-most-used-list .components-button {
2056
- font-size: 12px;
2057
- }
2058
2073
 
2059
2074
  .editor-post-template__swap-template-modal {
2060
2075
  z-index: 1000001;
@@ -19,7 +19,10 @@ declare namespace _default {
19
19
  registry: any;
20
20
  context: any;
21
21
  }): {
22
- [k: string]: any;
22
+ [k: string]: {
23
+ label: any;
24
+ value: any;
25
+ };
23
26
  } | null;
24
27
  }
25
28
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;IAYC;;;;WAeC;IACD;;;;aAUC;IACD;;;;gBA2CC;IACD;;;;;aAmBC"}
1
+ {"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;IAsCC;;;;WAiBC;IACD;;;;aAUC;IACD;;;;gBA2CC;IACD;;;;;;;;aA2BC"}
@@ -1,3 +1,2 @@
1
- declare const _default: unknown;
2
- export default _default;
1
+ export default function BlockManager(): import("react").JSX.Element;
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-manager/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-manager/index.js"],"names":[],"mappings":"AAmBA,oEA6HC"}