@wordpress/edit-widgets 7.2.0 → 7.3.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/build/blocks/widget-area/edit/index.cjs +10 -8
- package/build/blocks/widget-area/edit/index.cjs.map +1 -1
- package/build/blocks/widget-area/edit/inner-blocks.cjs +10 -8
- package/build/blocks/widget-area/edit/inner-blocks.cjs.map +1 -1
- package/build/blocks/widget-area/edit/use-is-dragging-within.cjs.map +1 -1
- package/build/blocks/widget-area/index.cjs +9 -7
- package/build/blocks/widget-area/index.cjs.map +1 -1
- package/build/components/error-boundary/index.cjs.map +1 -1
- package/build/components/header/document-tools/index.cjs +20 -10
- package/build/components/header/document-tools/index.cjs.map +1 -1
- package/build/components/header/index.cjs +12 -10
- package/build/components/header/index.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/config.cjs +5 -0
- package/build/components/keyboard-shortcut-help-modal/config.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs +9 -7
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.cjs +12 -11
- package/build/components/keyboard-shortcut-help-modal/index.cjs.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.cjs +34 -13
- package/build/components/keyboard-shortcut-help-modal/shortcut.cjs.map +1 -1
- package/build/components/keyboard-shortcuts/index.cjs.map +1 -1
- package/build/components/layout/index.cjs +19 -13
- package/build/components/layout/index.cjs.map +1 -1
- package/build/components/layout/interface.cjs +27 -13
- package/build/components/layout/interface.cjs.map +1 -1
- package/build/components/layout/unsaved-changes-warning.cjs.map +1 -1
- package/build/components/more-menu/index.cjs +14 -9
- package/build/components/more-menu/index.cjs.map +1 -1
- package/build/components/secondary-sidebar/index.cjs +10 -8
- package/build/components/secondary-sidebar/index.cjs.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.cjs +9 -7
- package/build/components/secondary-sidebar/inserter-sidebar.cjs.map +1 -1
- package/build/components/sidebar/index.cjs +23 -15
- package/build/components/sidebar/index.cjs.map +1 -1
- package/build/components/welcome-guide/index.cjs +5 -1
- package/build/components/welcome-guide/index.cjs.map +1 -1
- package/build/components/widget-areas-block-editor-content/index.cjs +10 -8
- package/build/components/widget-areas-block-editor-content/index.cjs.map +1 -1
- package/build/components/widget-areas-block-editor-provider/index.cjs +10 -8
- package/build/components/widget-areas-block-editor-provider/index.cjs.map +1 -1
- package/build/constants.cjs +0 -2
- package/build/constants.cjs.map +1 -1
- package/build/index.cjs +12 -10
- package/build/index.cjs.map +1 -1
- package/build/store/actions.cjs +11 -7
- package/build/store/actions.cjs.map +1 -1
- package/build/store/index.cjs +14 -12
- package/build/store/index.cjs.map +1 -1
- package/build/store/selectors.cjs +3 -1
- package/build/store/selectors.cjs.map +1 -1
- package/build-module/blocks/widget-area/index.mjs.map +1 -1
- package/build-module/components/header/document-tools/index.mjs +10 -2
- package/build-module/components/header/document-tools/index.mjs.map +1 -1
- package/build-module/components/header/undo-redo/redo.mjs.map +1 -1
- package/build-module/components/header/undo-redo/undo.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.mjs +5 -0
- package/build-module/components/keyboard-shortcut-help-modal/config.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.mjs +1 -2
- package/build-module/components/keyboard-shortcut-help-modal/index.mjs.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs +34 -13
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs.map +1 -1
- package/build-module/components/layout/index.mjs +5 -1
- package/build-module/components/layout/index.mjs.map +1 -1
- package/build-module/components/layout/interface.mjs +16 -4
- package/build-module/components/layout/interface.mjs.map +1 -1
- package/build-module/components/more-menu/index.mjs +4 -1
- package/build-module/components/more-menu/index.mjs.map +1 -1
- package/build-module/components/sidebar/index.mjs +14 -8
- package/build-module/components/sidebar/index.mjs.map +1 -1
- package/build-module/components/welcome-guide/index.mjs +5 -1
- package/build-module/components/welcome-guide/index.mjs.map +1 -1
- package/build-module/constants.mjs +1 -2
- package/build-module/constants.mjs.map +1 -1
- package/build-module/index.mjs +2 -2
- package/build-module/index.mjs.map +1 -1
- package/build-module/store/actions.mjs +11 -7
- package/build-module/store/actions.mjs.map +1 -1
- package/build-module/store/selectors.mjs +3 -1
- package/build-module/store/selectors.mjs.map +1 -1
- package/build-style/style-rtl.css +42 -37
- package/build-style/style.css +42 -37
- package/build-types/blocks/widget-area/edit/index.d.ts +10 -0
- package/build-types/blocks/widget-area/edit/index.d.ts.map +1 -0
- package/build-types/blocks/widget-area/edit/inner-blocks.d.ts +4 -0
- package/build-types/blocks/widget-area/edit/inner-blocks.d.ts.map +1 -0
- package/build-types/blocks/widget-area/edit/use-is-dragging-within.d.ts +12 -0
- package/build-types/blocks/widget-area/edit/use-is-dragging-within.d.ts.map +1 -0
- package/build-types/blocks/widget-area/index.d.ts +14 -0
- package/build-types/blocks/widget-area/index.d.ts.map +1 -0
- package/build-types/components/error-boundary/index.d.ts +14 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/header/document-tools/index.d.ts +3 -0
- package/build-types/components/header/document-tools/index.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts +3 -0
- package/build-types/components/header/index.d.ts.map +1 -0
- package/build-types/components/header/undo-redo/redo.d.ts +3 -0
- package/build-types/components/header/undo-redo/redo.d.ts.map +1 -0
- package/build-types/components/header/undo-redo/undo.d.ts +3 -0
- package/build-types/components/header/undo-redo/undo.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +3 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +25 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcuts/index.d.ts +7 -0
- package/build-types/components/keyboard-shortcuts/index.d.ts.map +1 -0
- package/build-types/components/layout/index.d.ts +5 -0
- package/build-types/components/layout/index.d.ts.map +1 -0
- package/build-types/components/layout/interface.d.ts +5 -0
- package/build-types/components/layout/interface.d.ts.map +1 -0
- package/build-types/components/layout/unsaved-changes-warning.d.ts +10 -0
- package/build-types/components/layout/unsaved-changes-warning.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +2 -0
- package/build-types/components/more-menu/index.d.ts.map +1 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
- package/build-types/components/notices/index.d.ts +3 -0
- package/build-types/components/notices/index.d.ts.map +1 -0
- package/build-types/components/save-button/index.d.ts +3 -0
- package/build-types/components/save-button/index.d.ts.map +1 -0
- package/build-types/components/secondary-sidebar/index.d.ts +2 -0
- package/build-types/components/secondary-sidebar/index.d.ts.map +1 -0
- package/build-types/components/secondary-sidebar/inserter-sidebar.d.ts +2 -0
- package/build-types/components/secondary-sidebar/inserter-sidebar.d.ts.map +1 -0
- package/build-types/components/secondary-sidebar/list-view-sidebar.d.ts +2 -0
- package/build-types/components/secondary-sidebar/list-view-sidebar.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +2 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -0
- package/build-types/components/sidebar/widget-areas.d.ts +4 -0
- package/build-types/components/sidebar/widget-areas.d.ts.map +1 -0
- package/build-types/components/welcome-guide/index.d.ts +2 -0
- package/build-types/components/welcome-guide/index.d.ts.map +1 -0
- package/build-types/components/widget-areas-block-editor-content/index.d.ts +4 -0
- package/build-types/components/widget-areas-block-editor-content/index.d.ts.map +1 -0
- package/build-types/components/widget-areas-block-editor-provider/index.d.ts +6 -0
- package/build-types/components/widget-areas-block-editor-provider/index.d.ts.map +1 -0
- package/build-types/constants.d.ts +2 -0
- package/build-types/constants.d.ts.map +1 -0
- package/build-types/filters/index.d.ts +3 -0
- package/build-types/filters/index.d.ts.map +1 -0
- package/build-types/filters/move-to-widget-area.d.ts +2 -0
- package/build-types/filters/move-to-widget-area.d.ts.map +1 -0
- package/build-types/filters/replace-media-upload.d.ts +2 -0
- package/build-types/filters/replace-media-upload.d.ts.map +1 -0
- package/build-types/hooks/use-last-selected-widget-area.d.ts +9 -0
- package/build-types/hooks/use-last-selected-widget-area.d.ts.map +1 -0
- package/build-types/hooks/use-widget-library-insertion-point.d.ts +3 -0
- package/build-types/hooks/use-widget-library-insertion-point.d.ts.map +1 -0
- package/build-types/index.d.ts +16 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +2 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/store/actions.d.ts +144 -0
- package/build-types/store/actions.d.ts.map +1 -0
- package/build-types/store/constants.d.ts +5 -0
- package/build-types/store/constants.d.ts.map +1 -0
- package/build-types/store/index.d.ts +9 -0
- package/build-types/store/index.d.ts.map +1 -0
- package/build-types/store/private-selectors.d.ts +3 -0
- package/build-types/store/private-selectors.d.ts.map +1 -0
- package/build-types/store/reducer.d.ts +73 -0
- package/build-types/store/reducer.d.ts.map +1 -0
- package/build-types/store/resolvers.d.ts +17 -0
- package/build-types/store/resolvers.d.ts.map +1 -0
- package/build-types/store/selectors.d.ts +159 -0
- package/build-types/store/selectors.d.ts.map +1 -0
- package/build-types/store/transformers.d.ts +16 -0
- package/build-types/store/transformers.d.ts.map +1 -0
- package/build-types/store/utils.d.ts +53 -0
- package/build-types/store/utils.d.ts.map +1 -0
- package/package.json +33 -33
- package/src/components/header/style.scss +1 -1
- package/src/components/keyboard-shortcut-help-modal/config.js +3 -0
- package/src/components/keyboard-shortcut-help-modal/index.jsx +0 -2
- package/src/components/keyboard-shortcut-help-modal/shortcut.jsx +43 -29
- package/src/components/sidebar/index.jsx +1 -1
- package/src/components/sidebar/style.scss +6 -0
- package/src/components/welcome-guide/style.scss +1 -1
- package/src/components/widget-areas-block-editor-content/style.scss +1 -1
- package/src/constants.js +0 -1
- package/src/index.jsx +2 -7
- package/src/store/actions.js +8 -12
- package/src/store/selectors.js +4 -1
- package/src/store/test/actions.jsdom.test.js +47 -2
package/build-style/style.css
CHANGED
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
body.admin-color-fresh {
|
|
116
|
-
--wp-admin-theme-color: #
|
|
117
|
-
--wp-admin-theme-color--rgb: 0,
|
|
118
|
-
--wp-admin-theme-color-darker-10: rgb(0,
|
|
119
|
-
--wp-admin-theme-color-darker-10--rgb: 0,
|
|
120
|
-
--wp-admin-theme-color-darker-20:
|
|
121
|
-
--wp-admin-theme-color-darker-20--rgb: 0,
|
|
116
|
+
--wp-admin-theme-color: #006daa;
|
|
117
|
+
--wp-admin-theme-color--rgb: 0, 109, 170;
|
|
118
|
+
--wp-admin-theme-color-darker-10: rgb(0, 92.65, 144.5);
|
|
119
|
+
--wp-admin-theme-color-darker-10--rgb: 0, 92.65, 144.5;
|
|
120
|
+
--wp-admin-theme-color-darker-20: rgb(0, 76.3, 119);
|
|
121
|
+
--wp-admin-theme-color-darker-20--rgb: 0, 76.3, 119;
|
|
122
122
|
--wp-admin-border-width-focus: 2px;
|
|
123
123
|
}
|
|
124
124
|
@media (min-resolution: 192dpi) {
|
|
@@ -127,9 +127,6 @@ body.admin-color-fresh {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
/**
|
|
131
|
-
* Colors
|
|
132
|
-
*/
|
|
133
130
|
/**
|
|
134
131
|
* SCSS Variables.
|
|
135
132
|
*
|
|
@@ -137,6 +134,9 @@ body.admin-color-fresh {
|
|
|
137
134
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
138
135
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
139
136
|
*/
|
|
137
|
+
/**
|
|
138
|
+
* Colors
|
|
139
|
+
*/
|
|
140
140
|
/**
|
|
141
141
|
* Fonts & basic variables.
|
|
142
142
|
*/
|
|
@@ -173,7 +173,7 @@ body.admin-color-fresh {
|
|
|
173
173
|
* These variables do not appear to be used anywhere else.
|
|
174
174
|
*/
|
|
175
175
|
.interface-complementary-area-header {
|
|
176
|
-
background: #fff;
|
|
176
|
+
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
177
177
|
padding-right: 8px;
|
|
178
178
|
gap: 4px;
|
|
179
179
|
}
|
|
@@ -233,8 +233,8 @@ body.admin-color-fresh {
|
|
|
233
233
|
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
234
234
|
*/
|
|
235
235
|
.interface-complementary-area {
|
|
236
|
-
background: #fff;
|
|
237
|
-
color: #1e1e1e;
|
|
236
|
+
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
237
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
238
238
|
height: 100%;
|
|
239
239
|
overflow: auto;
|
|
240
240
|
width: 100vw;
|
|
@@ -266,9 +266,9 @@ body.admin-color-fresh {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.interface-complementary-area h2 {
|
|
269
|
-
font-size: 13px;
|
|
269
|
+
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
270
270
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
271
|
-
color: #1e1e1e;
|
|
271
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
272
272
|
margin-bottom: 1.5em;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -276,13 +276,13 @@ body.admin-color-fresh {
|
|
|
276
276
|
font-size: 11px;
|
|
277
277
|
text-transform: uppercase;
|
|
278
278
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
279
|
-
color: #1e1e1e;
|
|
279
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
280
280
|
margin-bottom: 1.5em;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.interface-complementary-area hr {
|
|
284
284
|
border-top: none;
|
|
285
|
-
border-bottom: 1px solid #
|
|
285
|
+
border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
286
286
|
margin: 1.5em 0;
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -424,8 +424,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
424
424
|
top: 0;
|
|
425
425
|
left: 0;
|
|
426
426
|
bottom: 0;
|
|
427
|
-
background: #fff;
|
|
428
|
-
color: #1e1e1e;
|
|
427
|
+
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
428
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
429
429
|
width: auto;
|
|
430
430
|
}
|
|
431
431
|
|
|
@@ -436,46 +436,46 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
.interface-interface-skeleton__sidebar {
|
|
439
|
-
border-top: 1px solid #
|
|
439
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
440
440
|
overflow: hidden;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
@media (min-width: 782px) {
|
|
444
444
|
.interface-interface-skeleton__sidebar {
|
|
445
|
-
box-shadow: -1px 0 0 0
|
|
445
|
+
box-shadow: -1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
446
446
|
outline: 1px solid transparent;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
.interface-interface-skeleton__secondary-sidebar {
|
|
450
|
-
border-top: 1px solid #
|
|
450
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
451
451
|
right: 0;
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
@media (min-width: 782px) {
|
|
455
455
|
.interface-interface-skeleton__secondary-sidebar {
|
|
456
|
-
box-shadow: 1px 0 0 0
|
|
456
|
+
box-shadow: 1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
457
457
|
outline: 1px solid transparent;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
.interface-interface-skeleton__header {
|
|
461
461
|
flex-shrink: 0;
|
|
462
462
|
height: auto;
|
|
463
|
-
box-shadow: 0 1px 0 0
|
|
463
|
+
box-shadow: 0 1px 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
464
464
|
z-index: 30;
|
|
465
|
-
color: #1e1e1e;
|
|
465
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
466
466
|
outline: 1px solid transparent;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.interface-interface-skeleton__footer {
|
|
470
470
|
height: auto;
|
|
471
471
|
flex-shrink: 0;
|
|
472
|
-
border-top: 1px solid #
|
|
473
|
-
color: #1e1e1e;
|
|
472
|
+
border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
473
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
474
474
|
position: absolute;
|
|
475
475
|
bottom: 0;
|
|
476
476
|
left: 0;
|
|
477
477
|
width: 100%;
|
|
478
|
-
background-color: #fff;
|
|
478
|
+
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
479
479
|
z-index: 90;
|
|
480
480
|
display: none;
|
|
481
481
|
}
|
|
@@ -492,8 +492,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
492
492
|
bottom: auto;
|
|
493
493
|
left: auto;
|
|
494
494
|
right: 0;
|
|
495
|
-
color: #1e1e1e;
|
|
496
|
-
background: #fff;
|
|
495
|
+
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
496
|
+
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
497
497
|
width: 100vw;
|
|
498
498
|
}
|
|
499
499
|
|
|
@@ -507,16 +507,17 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
507
507
|
bottom: 0;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
-
.is-entity-save-view-open .interface-interface-skeleton__actions
|
|
510
|
+
.is-entity-save-view-open .interface-interface-skeleton__actions {
|
|
511
511
|
top: 46px;
|
|
512
|
+
bottom: 0;
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
@media (min-width: 782px) {
|
|
515
|
-
.is-entity-save-view-open .interface-interface-skeleton__actions
|
|
516
|
-
border-left: 1px solid #
|
|
516
|
+
.is-entity-save-view-open .interface-interface-skeleton__actions {
|
|
517
|
+
border-left: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
|
|
517
518
|
top: 32px;
|
|
518
519
|
}
|
|
519
|
-
.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions
|
|
520
|
+
.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions {
|
|
520
521
|
top: var(--wp-admin--admin-bar--height, 0);
|
|
521
522
|
}
|
|
522
523
|
}
|
|
@@ -727,7 +728,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
727
728
|
}
|
|
728
729
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
|
|
729
730
|
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
|
|
730
|
-
background: var(--wpds-color-background-interactive-neutral-strong-active, #
|
|
731
|
+
background: var(--wpds-color-background-interactive-neutral-strong-active, #2e2e2e);
|
|
731
732
|
}
|
|
732
733
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]),
|
|
733
734
|
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
|
|
@@ -736,7 +737,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
736
737
|
@media (forced-colors: active) {
|
|
737
738
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
|
|
738
739
|
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
|
|
739
|
-
background:
|
|
740
|
+
background: Highlight !important;
|
|
740
741
|
}
|
|
741
742
|
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true],
|
|
742
743
|
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:disabled,
|
|
@@ -827,6 +828,10 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
827
828
|
padding-left: 0;
|
|
828
829
|
}
|
|
829
830
|
|
|
831
|
+
.edit-widgets-sidebar__panel-tablist {
|
|
832
|
+
margin-bottom: -1px;
|
|
833
|
+
}
|
|
834
|
+
|
|
830
835
|
.edit-widgets-widget-areas__top-container {
|
|
831
836
|
display: flex;
|
|
832
837
|
padding: 16px;
|
|
@@ -910,7 +915,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
910
915
|
padding: 0 32px;
|
|
911
916
|
}
|
|
912
917
|
.edit-widgets-welcome-guide__text {
|
|
913
|
-
font-size: 13px;
|
|
918
|
+
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
914
919
|
line-height: 1.4;
|
|
915
920
|
margin: 0 0 24px 0;
|
|
916
921
|
padding: 0 32px;
|
|
@@ -941,7 +946,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
|
|
|
941
946
|
}
|
|
942
947
|
.edit-widgets-block-editor .components-button {
|
|
943
948
|
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
944
|
-
font-size: 13px;
|
|
949
|
+
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
945
950
|
}
|
|
946
951
|
.edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
|
|
947
952
|
padding: 6px;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type RefObject = import('@wordpress/element').RefObject;
|
|
2
|
+
/** @typedef {import('@wordpress/element').RefObject} RefObject */
|
|
3
|
+
export default function WidgetAreaEdit({ clientId, attributes: { id, name }, }: {
|
|
4
|
+
attributes: {
|
|
5
|
+
id: any;
|
|
6
|
+
name: any;
|
|
7
|
+
};
|
|
8
|
+
clientId: any;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/index.jsx"],"names":[],"mappings":"AAaI,YAAkD,SAAS,GAAjD,OAAO,oBAAoB,EAAE,SAAS,CAAW;AAA/D,kEAAkE;AAElE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,QAAQ,EACR,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GACxB;;;;;;CAAA,+BAkEA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inner-blocks.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/inner-blocks.jsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,EAAE,EAAE,EAAE;;CAAA,+BAkCpD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type RefObject = import('@wordpress/element').RefObject;
|
|
2
|
+
/** @typedef {import('@wordpress/element').RefObject} RefObject */
|
|
3
|
+
/**
|
|
4
|
+
* A React hook to determine if it's dragging within the target element.
|
|
5
|
+
*
|
|
6
|
+
* @param {RefObject<HTMLElement>} elementRef The target elementRef object.
|
|
7
|
+
*
|
|
8
|
+
* @return {boolean} Is dragging within the target element.
|
|
9
|
+
*/
|
|
10
|
+
declare const useIsDraggingWithin: (elementRef: RefObject<HTMLElement>) => boolean;
|
|
11
|
+
export default useIsDraggingWithin;
|
|
12
|
+
//# sourceMappingURL=use-is-dragging-within.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-is-dragging-within.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/use-is-dragging-within.js"],"names":[],"mappings":"AAEI,YAAkD,SAAS,GAAjD,OAAO,oBAAoB,EAAE,SAAS,CAAW;AAA/D,kEAAkE;AAElE;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,eAJd,SAAS,CAAC,WAAW,CAAC,KAErB,OAyCX,CAAC;eAEa,mBAAmB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import metadata from './block.json';
|
|
2
|
+
import edit from './edit';
|
|
3
|
+
declare const name: string;
|
|
4
|
+
export { metadata, name };
|
|
5
|
+
export declare const settings: {
|
|
6
|
+
title: import("@wordpress/i18n").TransformedText<"Widget Area">;
|
|
7
|
+
description: import("@wordpress/i18n").TransformedText<"A widget area container.">;
|
|
8
|
+
__experimentalLabel: ({ name: label }: {
|
|
9
|
+
name: any;
|
|
10
|
+
}) => any;
|
|
11
|
+
icon: import("react").JSX.Element;
|
|
12
|
+
edit: typeof edit;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/widget-area/index.js"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,QAAA,MAAQ,IAAI,QAAa,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;;;;;;CAMpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from '@wordpress/element';
|
|
2
|
+
export default class ErrorBoundary extends Component {
|
|
3
|
+
state: {
|
|
4
|
+
error: null;
|
|
5
|
+
componentStack: null;
|
|
6
|
+
};
|
|
7
|
+
constructor();
|
|
8
|
+
componentDidCatch(error: any, errorInfo: any): void;
|
|
9
|
+
static getDerivedStateFromError(error: any): {
|
|
10
|
+
error: any;
|
|
11
|
+
};
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/index.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA6H/C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAI7C,KAAK;;;;IAHX,cAOC;IAED,iBAAiB,CAAE,KAAK,KAAA,EAAE,SAAS,KAAA,QAKlC;IAED,MAAM,CAAC,wBAAwB,CAAE,KAAK,KAAA;;MAErC;IAED,MAAM,QAoCL;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/header/document-tools/index.jsx"],"names":[],"mappings":"AAYA,iBAAS,aAAa,gCA+ErB;eAEc,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.jsx"],"names":[],"mappings":"AAcA,iBAAS,MAAM,gCA2Dd;eAEc,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redo.d.ts","sourceRoot":"","sources":["../../../../src/components/header/undo-redo/redo.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undo.d.ts","sourceRoot":"","sources":["../../../../src/components/header/undo-redo/undo.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/config.js"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,EADzB,KAAK,CAAC,OAAO,OAAO,EAAE,cAAc,CAAC,cAAc,YAAY,EAAE,OAAO,CAAC,CA2DnF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/dynamic-shortcut.jsx"],"names":[],"mappings":"AAIA,iBAAS,eAAe,CAAE,EAAE,IAAI,EAAE;;CAAA,sCA6BjC;eAEc,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/index.jsx"],"names":[],"mappings":"AA4EA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAE,EAClD,aAAa,EACb,WAAW,GACX;;;CAAA,sCAmDA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ShortcutKeyCombination = {
|
|
2
|
+
/**
|
|
3
|
+
* Shortcut key.
|
|
4
|
+
*/
|
|
5
|
+
character: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional shortcut modifier.
|
|
8
|
+
*/
|
|
9
|
+
modifier?: import('@wordpress/keycodes').WPKeycodeModifier | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @param {Object} props Component props.
|
|
13
|
+
* @param {string} props.description Description of the shortcut action.
|
|
14
|
+
* @param {ShortcutKeyCombination} props.keyCombination Primary shortcut.
|
|
15
|
+
* @param {ShortcutKeyCombination[]} [props.aliases] Alternative shortcuts.
|
|
16
|
+
* @param {string} [props.ariaLabel] Custom readable shortcut label.
|
|
17
|
+
*/
|
|
18
|
+
declare function Shortcut({ description, keyCombination, aliases, ariaLabel }: {
|
|
19
|
+
description: string;
|
|
20
|
+
keyCombination: ShortcutKeyCombination;
|
|
21
|
+
aliases?: ShortcutKeyCombination[];
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
export default Shortcut;
|
|
25
|
+
//# sourceMappingURL=shortcut.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcut-help-modal/shortcut.jsx"],"names":[],"mappings":"AAKG,YAAkB,sBAAsB,GACxC;;;;IAAmE,SAAS,EAAjE,MAAM,CACjB;;;;IAAoE,QAAQ,AAA5E,CACF,EADa,OAAO,qBAAqB,EAAE,iBAAiB,GAAG,IAAI,CACnE;CAAA,CAAA;AAuCD;;;;;;GAMG;AACH,iBAAS,QAAQ,CAAE,EAAE,WAAW,EAAE,cAAc,EAAE,OAAY,EAAE,SAAS,EAAE,EALxE;IAAwC,WAAW,EAA3C,MAAM,CACd;IAAwC,cAAc,EAA9C,sBAAsB,CAC9B;IAAyC,OAAO,AAAhD,CACA,EADQ,sBAAsB,EAAE,CAChC;IAAyC,SAAS,AAAlD,CACF,EADU,MAAM,CAChB;CAC0E,+BAqB1E;eAEc,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/keyboard-shortcuts/index.js"],"names":[],"mappings":"AAeA,iBAAS,iBAAiB,SA0BzB;kBA1BQ,iBAAiB;aA4HG,yBAAyB;;AAhGtD,iBAAS,yBAAyB,SA8FjC;eAGc,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.jsx"],"names":[],"mappings":"AAeA,iBAAS,MAAM,CAAE,EAAE,mBAAmB,EAAE;;CAAA,+BAqCvC;eAEc,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/components/layout/interface.jsx"],"names":[],"mappings":"AA2BA,iBAAS,SAAS,CAAE,EAAE,mBAAmB,EAAE;;CAAA,+BA0E1C;eAEc,SAAS"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warns the user if there are unsaved changes before leaving the editor.
|
|
3
|
+
*
|
|
4
|
+
* This is a duplicate of the component implemented in the editor package.
|
|
5
|
+
* Duplicated here as edit-widgets doesn't depend on editor.
|
|
6
|
+
*
|
|
7
|
+
* @return {Component} The component.
|
|
8
|
+
*/
|
|
9
|
+
export default function UnsavedChangesWarning(): Component;
|
|
10
|
+
//# sourceMappingURL=unsaved-changes-warning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsaved-changes-warning.d.ts","sourceRoot":"","sources":["../../../src/components/layout/unsaved-changes-warning.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,IAFjC,SAAS,CA+BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/index.jsx"],"names":[],"mappings":"AAgBA,MAAM,CAAC,OAAO,UAAU,QAAQ,gCA6I/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-more-menu-group.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/tools-more-menu-group.jsx"],"names":[],"mappings":"AAEA,QAAA,MAAc,kBAAkB;;;CAE/B,CAAC;eAIa,kBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notices/index.jsx"],"names":[],"mappings":"AAGA,iBAAS,OAAO,gCAWf;eAEc,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-button/index.jsx"],"names":[],"mappings":"AAKA,iBAAS,UAAU,gCAiClB;eAEc,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/secondary-sidebar/index.jsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,gBAAgB,uCAiBvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inserter-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/secondary-sidebar/inserter-sidebar.jsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,eAAe,gCA0BtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-view-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/secondary-sidebar/list-view-sidebar.jsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,eAAe,gCA+CtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.jsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,OAAO,gCAqF9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-areas.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/widget-areas.jsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EAAE,oBAAoB,EAAE;;CAAA,+BAkE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/welcome-guide/index.jsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,YAAY,uCAuLnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/widget-areas-block-editor-content/index.jsx"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,UAAU,6BAA6B,CAAE,EACtD,mBAAmB,GACnB;;CAAA,+BAkCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/widget-areas-block-editor-provider/index.jsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAE,EACvD,mBAAmB,EACnB,QAAQ,EACR,GAAG,KAAK,EACR;;;;CAAA,+BAmGA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.js"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filters/index.js"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-to-widget-area.d.ts","sourceRoot":"","sources":["../../src/filters/move-to-widget-area.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-media-upload.d.ts","sourceRoot":"","sources":["../../src/filters/replace-media-upload.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A react hook that returns the client id of the last widget area to have
|
|
3
|
+
* been selected, or to have a selected block within it.
|
|
4
|
+
*
|
|
5
|
+
* @return {string} clientId of the widget area last selected.
|
|
6
|
+
*/
|
|
7
|
+
declare const useLastSelectedWidgetArea: () => string;
|
|
8
|
+
export default useLastSelectedWidgetArea;
|
|
9
|
+
//# sourceMappingURL=use-last-selected-widget-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-last-selected-widget-area.d.ts","sourceRoot":"","sources":["../../src/hooks/use-last-selected-widget-area.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,QAAA,MAAM,yBAAyB,QAFnB,MA+BJ,CAAC;eAEM,yBAAyB"}
|