@wordpress/editor 13.24.1 → 13.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE.md +1 -1
- package/build/components/document-bar/index.js +164 -0
- package/build/components/document-bar/index.js.map +1 -0
- package/build/components/document-outline/index.js +82 -1
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/document-tools/index.js +160 -0
- package/build/components/document-tools/index.js.map +1 -0
- package/build/components/editor-canvas/edit-template-blocks-notification.js +106 -0
- package/build/components/editor-canvas/edit-template-blocks-notification.js.map +1 -0
- package/build/components/editor-canvas/index.js +298 -0
- package/build/components/editor-canvas/index.js.map +1 -0
- package/build/components/entities-saved-states/index.js +3 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/index.js +12 -2
- package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js +9 -0
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build/components/index.js +72 -8
- package/build/components/index.js.map +1 -1
- package/build/components/index.native.js +9 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +77 -0
- package/build/components/inserter-sidebar/index.js.map +1 -0
- package/build/components/list-view-sidebar/index.js +150 -0
- package/build/components/list-view-sidebar/index.js.map +1 -0
- package/build/components/list-view-sidebar/list-view-outline.js +28 -0
- package/build/components/list-view-sidebar/list-view-outline.js.map +1 -0
- package/build/components/offline-status/index.native.js +85 -0
- package/build/components/offline-status/index.native.js.map +1 -0
- package/build/components/page-attributes/panel.js +63 -0
- package/build/components/page-attributes/panel.js.map +1 -0
- package/build/components/post-discussion/panel.js +59 -0
- package/build/components/post-discussion/panel.js.map +1 -0
- package/build/components/post-excerpt/check.js +19 -0
- package/build/components/post-excerpt/check.js.map +1 -1
- package/build/components/post-excerpt/panel.js +55 -0
- package/build/components/post-excerpt/panel.js.map +1 -0
- package/build/components/post-excerpt/plugin.js +72 -0
- package/build/components/post-excerpt/plugin.js.map +1 -0
- package/build/components/post-featured-image/index.js +5 -8
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-featured-image/panel.js +60 -0
- package/build/components/post-featured-image/panel.js.map +1 -0
- package/build/components/post-last-revision/panel.js +27 -0
- package/build/components/post-last-revision/panel.js.map +1 -0
- package/build/components/post-publish-button/index.js +1 -0
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +2 -4
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-saved-state/index.js +13 -8
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/panel.js +1 -1
- package/build/components/post-schedule/panel.js.map +1 -1
- package/build/components/post-taxonomies/panel.js +68 -0
- package/build/components/post-taxonomies/panel.js.map +1 -0
- package/build/components/post-template/block-theme.js +100 -0
- package/build/components/post-template/block-theme.js.map +1 -0
- package/build/components/post-template/classic-theme.js +171 -0
- package/build/components/post-template/classic-theme.js.map +1 -0
- package/build/components/post-template/create-new-template-modal.js +98 -0
- package/build/components/post-template/create-new-template-modal.js.map +1 -0
- package/build/components/post-template/create-new-template.js +55 -0
- package/build/components/post-template/create-new-template.js.map +1 -0
- package/build/components/post-template/hooks.js +88 -0
- package/build/components/post-template/hooks.js.map +1 -0
- package/build/components/post-template/panel.js +70 -0
- package/build/components/post-template/panel.js.map +1 -0
- package/build/components/post-template/reset-default-template.js +48 -0
- package/build/components/post-template/reset-default-template.js.map +1 -0
- package/build/components/post-template/swap-template-button.js +86 -0
- package/build/components/post-template/swap-template-button.js.map +1 -0
- package/build/components/post-title/index.native.js +25 -15
- package/build/components/post-title/index.native.js.map +1 -1
- package/build/components/post-view-link/index.js +58 -0
- package/build/components/post-view-link/index.js.map +1 -0
- package/build/components/post-visibility/check.js +5 -17
- package/build/components/post-visibility/check.js.map +1 -1
- package/build/components/preview-dropdown/index.js +118 -0
- package/build/components/preview-dropdown/index.js.map +1 -0
- package/build/components/provider/index.js +24 -82
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/index.native.js +36 -8
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/navigation-block-editing-mode.js +40 -0
- package/build/components/provider/navigation-block-editing-mode.js.map +1 -0
- package/build/components/provider/use-block-editor-settings.js +38 -15
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/hooks/index.js +1 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/pattern-partial-syncing.js +49 -0
- package/build/hooks/pattern-partial-syncing.js.map +1 -0
- package/build/private-apis.js +14 -0
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +161 -13
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +2 -1
- package/build/store/defaults.js.map +1 -1
- package/build/store/index.js +5 -0
- package/build/store/index.js.map +1 -1
- package/build/store/private-actions.js +52 -0
- package/build/store/private-actions.js.map +1 -0
- package/build/store/private-selectors.js +52 -0
- package/build/store/private-selectors.js.map +1 -0
- package/build/store/reducer.js +109 -27
- package/build/store/reducer.js.map +1 -1
- package/build/store/reducer.native.js +0 -1
- package/build/store/reducer.native.js.map +1 -1
- package/build/store/selectors.js +104 -9
- package/build/store/selectors.js.map +1 -1
- package/build/utils/media-upload/index.js +8 -2
- package/build/utils/media-upload/index.js.map +1 -1
- package/build-module/components/document-bar/index.js +156 -0
- package/build-module/components/document-bar/index.js.map +1 -0
- package/build-module/components/document-outline/index.js +82 -1
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/document-tools/index.js +151 -0
- package/build-module/components/document-tools/index.js.map +1 -0
- package/build-module/components/editor-canvas/edit-template-blocks-notification.js +100 -0
- package/build-module/components/editor-canvas/edit-template-blocks-notification.js.map +1 -0
- package/build-module/components/editor-canvas/index.js +289 -0
- package/build-module/components/editor-canvas/index.js.map +1 -0
- package/build-module/components/entities-saved-states/index.js +3 -1
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/index.js +12 -2
- package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +9 -0
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build-module/components/index.js +9 -1
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/index.native.js +1 -0
- package/build-module/components/index.native.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +70 -0
- package/build-module/components/inserter-sidebar/index.js.map +1 -0
- package/build-module/components/list-view-sidebar/index.js +142 -0
- package/build-module/components/list-view-sidebar/index.js.map +1 -0
- package/build-module/components/list-view-sidebar/list-view-outline.js +20 -0
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -0
- package/build-module/components/offline-status/index.native.js +77 -0
- package/build-module/components/offline-status/index.native.js.map +1 -0
- package/build-module/components/page-attributes/panel.js +53 -0
- package/build-module/components/page-attributes/panel.js.map +1 -0
- package/build-module/components/post-discussion/panel.js +50 -0
- package/build-module/components/post-discussion/panel.js.map +1 -0
- package/build-module/components/post-excerpt/check.js +19 -0
- package/build-module/components/post-excerpt/check.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +48 -0
- package/build-module/components/post-excerpt/panel.js.map +1 -0
- package/build-module/components/post-excerpt/plugin.js +64 -0
- package/build-module/components/post-excerpt/plugin.js.map +1 -0
- package/build-module/components/post-featured-image/index.js +5 -8
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-featured-image/panel.js +51 -0
- package/build-module/components/post-featured-image/panel.js.map +1 -0
- package/build-module/components/post-last-revision/panel.js +18 -0
- package/build-module/components/post-last-revision/panel.js.map +1 -0
- package/build-module/components/post-publish-button/index.js +1 -0
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -4
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +13 -8
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/panel.js +1 -1
- package/build-module/components/post-schedule/panel.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js +59 -0
- package/build-module/components/post-taxonomies/panel.js.map +1 -0
- package/build-module/components/post-template/block-theme.js +92 -0
- package/build-module/components/post-template/block-theme.js.map +1 -0
- package/build-module/components/post-template/classic-theme.js +162 -0
- package/build-module/components/post-template/classic-theme.js.map +1 -0
- package/build-module/components/post-template/create-new-template-modal.js +91 -0
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -0
- package/build-module/components/post-template/create-new-template.js +47 -0
- package/build-module/components/post-template/create-new-template.js.map +1 -0
- package/build-module/components/post-template/hooks.js +78 -0
- package/build-module/components/post-template/hooks.js.map +1 -0
- package/build-module/components/post-template/panel.js +62 -0
- package/build-module/components/post-template/panel.js.map +1 -0
- package/build-module/components/post-template/reset-default-template.js +41 -0
- package/build-module/components/post-template/reset-default-template.js.map +1 -0
- package/build-module/components/post-template/swap-template-button.js +79 -0
- package/build-module/components/post-template/swap-template-button.js.map +1 -0
- package/build-module/components/post-title/index.native.js +26 -16
- package/build-module/components/post-title/index.native.js.map +1 -1
- package/build-module/components/post-view-link/index.js +51 -0
- package/build-module/components/post-view-link/index.js.map +1 -0
- package/build-module/components/post-visibility/check.js +6 -16
- package/build-module/components/post-visibility/check.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +110 -0
- package/build-module/components/preview-dropdown/index.js.map +1 -0
- package/build-module/components/provider/index.js +25 -83
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +37 -9
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/navigation-block-editing-mode.js +34 -0
- package/build-module/components/provider/navigation-block-editing-mode.js.map +1 -0
- package/build-module/components/provider/use-block-editor-settings.js +38 -15
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/hooks/index.js +1 -0
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/pattern-partial-syncing.js +46 -0
- package/build-module/hooks/pattern-partial-syncing.js.map +1 -0
- package/build-module/private-apis.js +14 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +147 -9
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +2 -1
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/index.js +5 -0
- package/build-module/store/index.js.map +1 -1
- package/build-module/store/private-actions.js +44 -0
- package/build-module/store/private-actions.js.map +1 -0
- package/build-module/store/private-selectors.js +43 -0
- package/build-module/store/private-selectors.js.map +1 -0
- package/build-module/store/reducer.js +103 -26
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/reducer.native.js +1 -2
- package/build-module/store/reducer.native.js.map +1 -1
- package/build-module/store/selectors.js +93 -6
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/media-upload/index.js +8 -2
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-style/style-rtl.css +433 -0
- package/build-style/style.css +433 -0
- package/package.json +32 -31
- package/src/components/document-bar/index.js +193 -0
- package/src/components/document-bar/style.scss +130 -0
- package/src/components/document-outline/index.js +48 -1
- package/src/components/document-outline/style.scss +12 -0
- package/src/components/document-tools/index.js +177 -0
- package/src/components/document-tools/style.scss +98 -0
- package/src/components/editor-canvas/edit-template-blocks-notification.js +108 -0
- package/src/components/editor-canvas/index.js +386 -0
- package/src/components/editor-canvas/style.scss +5 -0
- package/src/components/entities-saved-states/index.js +3 -1
- package/src/components/entities-saved-states/style.scss +4 -0
- package/src/components/global-keyboard-shortcuts/index.js +12 -2
- package/src/components/global-keyboard-shortcuts/register-shortcuts.js +10 -0
- package/src/components/index.js +9 -1
- package/src/components/index.native.js +1 -0
- package/src/components/inserter-sidebar/index.js +73 -0
- package/src/components/inserter-sidebar/style.scss +22 -0
- package/src/components/list-view-sidebar/index.js +169 -0
- package/src/components/list-view-sidebar/list-view-outline.js +37 -0
- package/src/components/list-view-sidebar/style.scss +84 -0
- package/src/components/offline-status/index.native.js +101 -0
- package/src/components/offline-status/style.native.scss +28 -0
- package/src/components/offline-status/test/index.native.js +108 -0
- package/src/components/page-attributes/panel.js +62 -0
- package/src/components/post-discussion/panel.js +57 -0
- package/src/components/post-excerpt/check.js +18 -0
- package/src/components/post-excerpt/panel.js +57 -0
- package/src/components/post-excerpt/plugin.js +61 -0
- package/src/components/post-excerpt/test/plugin.js +36 -0
- package/src/components/post-featured-image/index.js +3 -7
- package/src/components/post-featured-image/panel.js +55 -0
- package/src/components/post-last-revision/panel.js +22 -0
- package/src/components/post-last-revision/style.scss +10 -0
- package/src/components/post-publish-button/index.js +1 -0
- package/src/components/post-publish-panel/maybe-upload-media.js +3 -8
- package/src/components/post-saved-state/index.js +9 -8
- package/src/components/post-saved-state/test/__snapshots__/index.js.snap +2 -2
- package/src/components/post-schedule/panel.js +1 -1
- package/src/components/post-taxonomies/panel.js +66 -0
- package/src/components/post-template/block-theme.js +110 -0
- package/src/components/post-template/classic-theme.js +213 -0
- package/src/components/post-template/create-new-template-modal.js +139 -0
- package/src/components/post-template/create-new-template.js +50 -0
- package/src/components/post-template/hooks.js +95 -0
- package/src/components/post-template/panel.js +66 -0
- package/src/components/post-template/reset-default-template.js +43 -0
- package/src/components/post-template/style.scss +52 -0
- package/src/components/post-template/swap-template-button.js +86 -0
- package/src/components/post-title/index.native.js +32 -18
- package/src/components/post-title/style.scss +1 -0
- package/src/components/post-title/test/__snapshots__/index.native.js.snap +25 -0
- package/src/components/post-title/test/index.native.js +78 -0
- package/src/components/post-view-link/index.js +47 -0
- package/src/components/post-visibility/check.js +10 -15
- package/src/components/post-visibility/test/check.js +24 -13
- package/src/components/preview-dropdown/index.js +133 -0
- package/src/components/preview-dropdown/style.scss +5 -0
- package/src/components/provider/index.js +28 -118
- package/src/components/provider/index.native.js +55 -14
- package/src/components/provider/navigation-block-editing-mode.js +37 -0
- package/src/components/provider/use-block-editor-settings.js +42 -17
- package/src/hooks/index.js +1 -0
- package/src/hooks/pattern-partial-syncing.js +73 -0
- package/src/private-apis.js +14 -0
- package/src/store/actions.js +160 -9
- package/src/store/defaults.js +1 -0
- package/src/store/index.js +5 -0
- package/src/store/private-actions.js +61 -0
- package/src/store/private-selectors.js +51 -0
- package/src/store/reducer.js +103 -26
- package/src/store/reducer.native.js +0 -2
- package/src/store/selectors.js +144 -42
- package/src/store/test/actions.js +56 -0
- package/src/store/test/reducer.js +98 -0
- package/src/store/test/selectors.js +137 -147
- package/src/style.scss +7 -0
- package/src/utils/media-upload/index.js +9 -2
- package/build/components/post-template/index.js +0 -66
- package/build/components/post-template/index.js.map +0 -1
- package/build-module/components/post-template/index.js +0 -57
- package/build-module/components/post-template/index.js.map +0 -1
- package/src/components/post-template/index.js +0 -64
package/build-style/style.css
CHANGED
|
@@ -142,6 +142,137 @@
|
|
|
142
142
|
color: var(--wp-admin-theme-color);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.editor-document-bar {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
height: 32px;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
background: #f0f0f0;
|
|
152
|
+
border-radius: 4px;
|
|
153
|
+
width: min(100%, 450px);
|
|
154
|
+
}
|
|
155
|
+
.editor-document-bar:hover {
|
|
156
|
+
background-color: #e0e0e0;
|
|
157
|
+
}
|
|
158
|
+
.editor-document-bar .components-button {
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
}
|
|
161
|
+
.editor-document-bar .components-button:hover {
|
|
162
|
+
color: var(--wp-block-synced-color);
|
|
163
|
+
background: #e0e0e0;
|
|
164
|
+
}
|
|
165
|
+
@media (min-width: 960px) {
|
|
166
|
+
.editor-document-bar {
|
|
167
|
+
width: min(100%, 450px);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.editor-document-bar__command {
|
|
172
|
+
flex-grow: 1;
|
|
173
|
+
color: var(--wp-block-synced-color);
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.editor-document-bar__title {
|
|
178
|
+
flex-grow: 1;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
color: #2f2f2f;
|
|
181
|
+
}
|
|
182
|
+
@media (min-width: 600px) {
|
|
183
|
+
.editor-document-bar__title {
|
|
184
|
+
padding-left: 32px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
.editor-document-bar__title:hover {
|
|
188
|
+
color: var(--wp-block-synced-color);
|
|
189
|
+
}
|
|
190
|
+
.editor-document-bar.is-global .editor-document-bar__title {
|
|
191
|
+
color: var(--wp-block-synced-color);
|
|
192
|
+
}
|
|
193
|
+
.editor-document-bar__title .block-editor-block-icon {
|
|
194
|
+
min-width: 24px;
|
|
195
|
+
flex-shrink: 0;
|
|
196
|
+
}
|
|
197
|
+
.editor-document-bar__title h1 {
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
text-overflow: ellipsis;
|
|
201
|
+
max-width: 50%;
|
|
202
|
+
color: currentColor;
|
|
203
|
+
}
|
|
204
|
+
.editor-document-bar.is-animated.has-back-button .editor-document-bar__title {
|
|
205
|
+
animation: editor-document-bar__slide-in-left 0.3s;
|
|
206
|
+
}
|
|
207
|
+
@media (prefers-reduced-motion: reduce) {
|
|
208
|
+
.editor-document-bar.is-animated.has-back-button .editor-document-bar__title {
|
|
209
|
+
animation-duration: 1ms;
|
|
210
|
+
animation-delay: 0s;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.editor-document-bar.is-animated .editor-document-bar__title {
|
|
214
|
+
animation: editor-document-bar__slide-in-right 0.3s;
|
|
215
|
+
}
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
.editor-document-bar.is-animated .editor-document-bar__title {
|
|
218
|
+
animation-duration: 1ms;
|
|
219
|
+
animation-delay: 0s;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.editor-document-bar__shortcut {
|
|
224
|
+
color: #2f2f2f;
|
|
225
|
+
min-width: 32px;
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
@media (min-width: 782px) {
|
|
229
|
+
.editor-document-bar__shortcut {
|
|
230
|
+
display: initial;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.editor-document-bar__back.components-button.has-icon.has-text {
|
|
235
|
+
min-width: 36px;
|
|
236
|
+
flex-shrink: 0;
|
|
237
|
+
color: #757575;
|
|
238
|
+
gap: 0;
|
|
239
|
+
z-index: 1;
|
|
240
|
+
position: absolute;
|
|
241
|
+
}
|
|
242
|
+
.editor-document-bar__back.components-button.has-icon.has-text:hover {
|
|
243
|
+
color: var(--wp-block-synced-color);
|
|
244
|
+
background-color: transparent;
|
|
245
|
+
}
|
|
246
|
+
.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text {
|
|
247
|
+
animation: editor-document-bar__slide-in-left 0.3s;
|
|
248
|
+
}
|
|
249
|
+
@media (prefers-reduced-motion: reduce) {
|
|
250
|
+
.editor-document-bar.is-animated .editor-document-bar__back.components-button.has-icon.has-text {
|
|
251
|
+
animation-duration: 1ms;
|
|
252
|
+
animation-delay: 0s;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@keyframes editor-document-bar__slide-in-right {
|
|
257
|
+
from {
|
|
258
|
+
transform: translateX(-15%);
|
|
259
|
+
opacity: 0;
|
|
260
|
+
}
|
|
261
|
+
to {
|
|
262
|
+
transform: translateX(0);
|
|
263
|
+
opacity: 1;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
@keyframes editor-document-bar__slide-in-left {
|
|
267
|
+
from {
|
|
268
|
+
transform: translateX(15%);
|
|
269
|
+
opacity: 0;
|
|
270
|
+
}
|
|
271
|
+
to {
|
|
272
|
+
transform: translateX(0);
|
|
273
|
+
opacity: 1;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
145
276
|
.document-outline {
|
|
146
277
|
margin: 20px 0;
|
|
147
278
|
}
|
|
@@ -213,6 +344,107 @@
|
|
|
213
344
|
padding: 1px 0;
|
|
214
345
|
}
|
|
215
346
|
|
|
347
|
+
.editor-document-outline.has-no-headings {
|
|
348
|
+
text-align: center;
|
|
349
|
+
color: #757575;
|
|
350
|
+
}
|
|
351
|
+
.editor-document-outline.has-no-headings > svg {
|
|
352
|
+
margin-top: 28px;
|
|
353
|
+
}
|
|
354
|
+
.editor-document-outline.has-no-headings > p {
|
|
355
|
+
padding-left: 32px;
|
|
356
|
+
padding-right: 32px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.editor-document-tools {
|
|
360
|
+
display: inline-flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
}
|
|
363
|
+
.editor-document-tools .editor-document-tools__left > .components-button {
|
|
364
|
+
display: none;
|
|
365
|
+
}
|
|
366
|
+
@media (min-width: 600px) {
|
|
367
|
+
.editor-document-tools .editor-document-tools__left > .components-button {
|
|
368
|
+
display: inline-flex;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle {
|
|
372
|
+
display: inline-flex;
|
|
373
|
+
}
|
|
374
|
+
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
|
|
375
|
+
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
|
|
376
|
+
}
|
|
377
|
+
@media (prefers-reduced-motion: reduce) {
|
|
378
|
+
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
|
|
379
|
+
transition-duration: 0s;
|
|
380
|
+
transition-delay: 0s;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.is-pressed svg {
|
|
384
|
+
transform: rotate(45deg);
|
|
385
|
+
}
|
|
386
|
+
.editor-document-tools .block-editor-list-view {
|
|
387
|
+
display: none;
|
|
388
|
+
}
|
|
389
|
+
@media (min-width: 600px) {
|
|
390
|
+
.editor-document-tools .block-editor-list-view {
|
|
391
|
+
display: flex;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
.editor-document-tools .editor-document-tools__left > .components-button.has-icon,
|
|
395
|
+
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon {
|
|
396
|
+
height: 32px;
|
|
397
|
+
min-width: 32px;
|
|
398
|
+
padding: 4px;
|
|
399
|
+
}
|
|
400
|
+
.editor-document-tools .editor-document-tools__left > .components-button.has-icon.is-pressed,
|
|
401
|
+
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed {
|
|
402
|
+
background: #1e1e1e;
|
|
403
|
+
}
|
|
404
|
+
.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled),
|
|
405
|
+
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
|
|
406
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
|
|
407
|
+
outline: 1px solid transparent;
|
|
408
|
+
}
|
|
409
|
+
.editor-document-tools .editor-document-tools__left > .components-button.has-icon::before,
|
|
410
|
+
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before {
|
|
411
|
+
display: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.editor-document-tools__left {
|
|
415
|
+
display: inline-flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
padding-left: 16px;
|
|
418
|
+
gap: 8px;
|
|
419
|
+
margin-right: 8px;
|
|
420
|
+
}
|
|
421
|
+
@media (min-width: 782px) {
|
|
422
|
+
.editor-document-tools__left {
|
|
423
|
+
padding-left: 20px;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
@media (min-width: 1280px) {
|
|
427
|
+
.editor-document-tools__left {
|
|
428
|
+
padding-right: 8px;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
|
|
433
|
+
min-width: 32px;
|
|
434
|
+
width: 32px;
|
|
435
|
+
height: 32px;
|
|
436
|
+
padding: 0;
|
|
437
|
+
}
|
|
438
|
+
.show-icon-labels .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
|
|
439
|
+
width: auto;
|
|
440
|
+
height: 32px;
|
|
441
|
+
padding: 0 8px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.show-icon-labels .editor-document-tools__left > * + * {
|
|
445
|
+
margin-left: 8px;
|
|
446
|
+
}
|
|
447
|
+
|
|
216
448
|
.components-editor-notices__dismissible,
|
|
217
449
|
.components-editor-notices__pinned {
|
|
218
450
|
position: relative;
|
|
@@ -247,6 +479,10 @@
|
|
|
247
479
|
padding: 16px;
|
|
248
480
|
padding-bottom: 4px;
|
|
249
481
|
}
|
|
482
|
+
.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header {
|
|
483
|
+
display: block;
|
|
484
|
+
margin-bottom: 12px;
|
|
485
|
+
}
|
|
250
486
|
|
|
251
487
|
.editor-error-boundary {
|
|
252
488
|
margin: auto;
|
|
@@ -256,6 +492,139 @@
|
|
|
256
492
|
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);
|
|
257
493
|
}
|
|
258
494
|
|
|
495
|
+
.editor-inserter-sidebar {
|
|
496
|
+
box-sizing: border-box;
|
|
497
|
+
height: 100%;
|
|
498
|
+
display: flex;
|
|
499
|
+
flex-direction: column;
|
|
500
|
+
}
|
|
501
|
+
.editor-inserter-sidebar *,
|
|
502
|
+
.editor-inserter-sidebar *::before,
|
|
503
|
+
.editor-inserter-sidebar *::after {
|
|
504
|
+
box-sizing: inherit;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.editor-inserter-sidebar__header {
|
|
508
|
+
padding-top: 8px;
|
|
509
|
+
padding-right: 8px;
|
|
510
|
+
display: flex;
|
|
511
|
+
justify-content: flex-end;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.editor-inserter-sidebar__content {
|
|
515
|
+
height: calc(100% - 36px - 8px);
|
|
516
|
+
}
|
|
517
|
+
@media (min-width: 782px) {
|
|
518
|
+
.editor-inserter-sidebar__content {
|
|
519
|
+
height: 100%;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.editor-list-view-sidebar {
|
|
524
|
+
height: 100%;
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: column;
|
|
527
|
+
}
|
|
528
|
+
@media (min-width: 782px) {
|
|
529
|
+
.editor-list-view-sidebar {
|
|
530
|
+
width: 350px;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
.editor-list-view-sidebar .editor-list-view-sidebar__close-button {
|
|
534
|
+
position: absolute;
|
|
535
|
+
right: 8px;
|
|
536
|
+
top: 6px;
|
|
537
|
+
z-index: 1;
|
|
538
|
+
background: #fff;
|
|
539
|
+
}
|
|
540
|
+
.editor-list-view-sidebar .components-tab-panel__tabs {
|
|
541
|
+
border-bottom: 1px solid #ddd;
|
|
542
|
+
box-sizing: border-box;
|
|
543
|
+
display: flex;
|
|
544
|
+
width: 100%;
|
|
545
|
+
padding-right: 56px;
|
|
546
|
+
}
|
|
547
|
+
.editor-list-view-sidebar .components-tab-panel__tabs .editor-list-view-sidebar__panel-tab {
|
|
548
|
+
width: 50%;
|
|
549
|
+
margin-bottom: -1px;
|
|
550
|
+
}
|
|
551
|
+
.editor-list-view-sidebar .components-tab-panel__tab-content {
|
|
552
|
+
height: calc(100% - 47px);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.editor-list-view-sidebar__list-view-panel-content,
|
|
556
|
+
.editor-list-view-sidebar__list-view-container > .document-outline {
|
|
557
|
+
height: 100%;
|
|
558
|
+
scrollbar-width: thin;
|
|
559
|
+
scrollbar-gutter: stable both-edges;
|
|
560
|
+
scrollbar-color: transparent transparent;
|
|
561
|
+
will-change: transform;
|
|
562
|
+
overflow: auto;
|
|
563
|
+
scrollbar-gutter: auto;
|
|
564
|
+
padding: 8px 6px;
|
|
565
|
+
}
|
|
566
|
+
.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar,
|
|
567
|
+
.editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar {
|
|
568
|
+
width: 12px;
|
|
569
|
+
height: 12px;
|
|
570
|
+
}
|
|
571
|
+
.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track,
|
|
572
|
+
.editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-track {
|
|
573
|
+
background-color: transparent;
|
|
574
|
+
}
|
|
575
|
+
.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb,
|
|
576
|
+
.editor-list-view-sidebar__list-view-container > .document-outline::-webkit-scrollbar-thumb {
|
|
577
|
+
background-color: transparent;
|
|
578
|
+
border-radius: 8px;
|
|
579
|
+
border: 3px solid transparent;
|
|
580
|
+
background-clip: padding-box;
|
|
581
|
+
}
|
|
582
|
+
.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb, .editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,
|
|
583
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:hover::-webkit-scrollbar-thumb,
|
|
584
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:focus::-webkit-scrollbar-thumb,
|
|
585
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:focus-within::-webkit-scrollbar-thumb {
|
|
586
|
+
background-color: #949494;
|
|
587
|
+
}
|
|
588
|
+
.editor-list-view-sidebar__list-view-panel-content:hover, .editor-list-view-sidebar__list-view-panel-content:focus, .editor-list-view-sidebar__list-view-panel-content:focus-within,
|
|
589
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:hover,
|
|
590
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:focus,
|
|
591
|
+
.editor-list-view-sidebar__list-view-container > .document-outline:focus-within {
|
|
592
|
+
scrollbar-color: #949494 transparent;
|
|
593
|
+
}
|
|
594
|
+
@media (hover: none) {
|
|
595
|
+
.editor-list-view-sidebar__list-view-panel-content,
|
|
596
|
+
.editor-list-view-sidebar__list-view-container > .document-outline {
|
|
597
|
+
scrollbar-color: #949494 transparent;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.editor-list-view-sidebar__list-view-container {
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: column;
|
|
604
|
+
height: 100%;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.editor-list-view-sidebar__tab-panel {
|
|
608
|
+
height: 100%;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.editor-list-view-sidebar__outline {
|
|
612
|
+
display: flex;
|
|
613
|
+
flex-direction: column;
|
|
614
|
+
gap: 8px;
|
|
615
|
+
border-bottom: 1px solid #ddd;
|
|
616
|
+
padding: 16px;
|
|
617
|
+
}
|
|
618
|
+
.editor-list-view-sidebar__outline > div > span:first-child {
|
|
619
|
+
width: 90px;
|
|
620
|
+
display: inline-block;
|
|
621
|
+
}
|
|
622
|
+
.editor-list-view-sidebar__outline > div > span {
|
|
623
|
+
font-size: 12px;
|
|
624
|
+
line-height: 1.4;
|
|
625
|
+
color: #757575;
|
|
626
|
+
}
|
|
627
|
+
|
|
259
628
|
.editor-post-author__panel {
|
|
260
629
|
padding-top: 8px;
|
|
261
630
|
}
|
|
@@ -376,6 +745,14 @@
|
|
|
376
745
|
border-radius: 0;
|
|
377
746
|
}
|
|
378
747
|
|
|
748
|
+
.components-panel__body.is-opened.editor-post-last-revision__panel {
|
|
749
|
+
padding: 0;
|
|
750
|
+
height: 48px;
|
|
751
|
+
}
|
|
752
|
+
.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button {
|
|
753
|
+
padding: 16px;
|
|
754
|
+
}
|
|
755
|
+
|
|
379
756
|
@media (min-width: 600px) {
|
|
380
757
|
.editor-post-locked-modal {
|
|
381
758
|
max-width: 480px;
|
|
@@ -689,6 +1066,51 @@
|
|
|
689
1066
|
font-size: 12px;
|
|
690
1067
|
}
|
|
691
1068
|
|
|
1069
|
+
.editor-post-template__swap-template-modal {
|
|
1070
|
+
z-index: 1000001;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list {
|
|
1074
|
+
column-count: 2;
|
|
1075
|
+
column-gap: 24px;
|
|
1076
|
+
padding-top: 2px;
|
|
1077
|
+
}
|
|
1078
|
+
@media (min-width: 782px) {
|
|
1079
|
+
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list {
|
|
1080
|
+
column-count: 3;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
@media (min-width: 1280px) {
|
|
1084
|
+
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list {
|
|
1085
|
+
column-count: 4;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
1089
|
+
break-inside: avoid-column;
|
|
1090
|
+
}
|
|
1091
|
+
.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container {
|
|
1092
|
+
box-shadow: 0 0 0 1px #ddd;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.editor-post-template__dropdown .components-popover__content {
|
|
1096
|
+
min-width: 240px;
|
|
1097
|
+
}
|
|
1098
|
+
.editor-post-template__dropdown .components-button.is-pressed,
|
|
1099
|
+
.editor-post-template__dropdown .components-button.is-pressed:hover {
|
|
1100
|
+
background: inherit;
|
|
1101
|
+
color: inherit;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
@media (min-width: 782px) {
|
|
1105
|
+
.editor-post-template__create-form {
|
|
1106
|
+
width: 320px;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.editor-post-template__classic-theme-dropdown {
|
|
1111
|
+
padding: 8px;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
692
1114
|
.edit-post-text-editor__body textarea.editor-post-text-editor {
|
|
693
1115
|
border: 1px solid #949494;
|
|
694
1116
|
border-radius: 0;
|
|
@@ -741,6 +1163,7 @@
|
|
|
741
1163
|
.edit-post-text-editor__body .editor-post-title.is-raw-text {
|
|
742
1164
|
margin-bottom: 24px;
|
|
743
1165
|
margin-top: 2px;
|
|
1166
|
+
max-width: none;
|
|
744
1167
|
}
|
|
745
1168
|
|
|
746
1169
|
.editor-post-url__panel-dropdown {
|
|
@@ -914,6 +1337,12 @@
|
|
|
914
1337
|
justify-content: center;
|
|
915
1338
|
}
|
|
916
1339
|
|
|
1340
|
+
.editor-preview-dropdown__button-external {
|
|
1341
|
+
width: 100%;
|
|
1342
|
+
display: flex;
|
|
1343
|
+
justify-content: space-between;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
917
1346
|
.table-of-contents__popover.components-popover .components-popover__content {
|
|
918
1347
|
min-width: 380px;
|
|
919
1348
|
}
|
|
@@ -990,4 +1419,8 @@
|
|
|
990
1419
|
}
|
|
991
1420
|
.editor-template-validation-notice .components-button {
|
|
992
1421
|
margin-left: 5px;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.editor-canvas__iframe.has-history {
|
|
1425
|
+
padding: 48px 48px 0;
|
|
993
1426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.26.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,35 +31,36 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/a11y": "^3.
|
|
35
|
-
"@wordpress/api-fetch": "^6.
|
|
36
|
-
"@wordpress/blob": "^3.
|
|
37
|
-
"@wordpress/block-editor": "^12.
|
|
38
|
-
"@wordpress/blocks": "^12.
|
|
39
|
-
"@wordpress/
|
|
40
|
-
"@wordpress/
|
|
41
|
-
"@wordpress/
|
|
42
|
-
"@wordpress/data": "^
|
|
43
|
-
"@wordpress/
|
|
44
|
-
"@wordpress/
|
|
45
|
-
"@wordpress/
|
|
46
|
-
"@wordpress/
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/
|
|
55
|
-
"@wordpress/
|
|
56
|
-
"@wordpress/
|
|
57
|
-
"@wordpress/
|
|
58
|
-
"@wordpress/
|
|
59
|
-
"@wordpress/
|
|
60
|
-
"@wordpress/
|
|
61
|
-
"@wordpress/
|
|
62
|
-
"@wordpress/
|
|
34
|
+
"@wordpress/a11y": "^3.49.0",
|
|
35
|
+
"@wordpress/api-fetch": "^6.46.0",
|
|
36
|
+
"@wordpress/blob": "^3.49.0",
|
|
37
|
+
"@wordpress/block-editor": "^12.17.0",
|
|
38
|
+
"@wordpress/blocks": "^12.26.0",
|
|
39
|
+
"@wordpress/commands": "^0.20.0",
|
|
40
|
+
"@wordpress/components": "^25.15.0",
|
|
41
|
+
"@wordpress/compose": "^6.26.0",
|
|
42
|
+
"@wordpress/core-data": "^6.26.0",
|
|
43
|
+
"@wordpress/data": "^9.19.0",
|
|
44
|
+
"@wordpress/date": "^4.49.0",
|
|
45
|
+
"@wordpress/deprecated": "^3.49.0",
|
|
46
|
+
"@wordpress/dom": "^3.49.0",
|
|
47
|
+
"@wordpress/element": "^5.26.0",
|
|
48
|
+
"@wordpress/hooks": "^3.49.0",
|
|
49
|
+
"@wordpress/html-entities": "^3.49.0",
|
|
50
|
+
"@wordpress/i18n": "^4.49.0",
|
|
51
|
+
"@wordpress/icons": "^9.40.0",
|
|
52
|
+
"@wordpress/keyboard-shortcuts": "^4.26.0",
|
|
53
|
+
"@wordpress/keycodes": "^3.49.0",
|
|
54
|
+
"@wordpress/media-utils": "^4.40.0",
|
|
55
|
+
"@wordpress/notices": "^4.17.0",
|
|
56
|
+
"@wordpress/patterns": "^1.10.0",
|
|
57
|
+
"@wordpress/preferences": "^3.26.0",
|
|
58
|
+
"@wordpress/private-apis": "^0.31.0",
|
|
59
|
+
"@wordpress/reusable-blocks": "^4.26.0",
|
|
60
|
+
"@wordpress/rich-text": "^6.26.0",
|
|
61
|
+
"@wordpress/server-side-render": "^4.26.0",
|
|
62
|
+
"@wordpress/url": "^3.50.0",
|
|
63
|
+
"@wordpress/wordcount": "^3.49.0",
|
|
63
64
|
"classnames": "^2.3.1",
|
|
64
65
|
"date-fns": "^2.28.0",
|
|
65
66
|
"memize": "^2.1.0",
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"publishConfig": {
|
|
75
76
|
"access": "public"
|
|
76
77
|
},
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "5e6f9caa205d3bfdbac131952b7bf9c6ec60569b"
|
|
78
79
|
}
|