@wordpress/block-editor 7.0.3 → 7.0.4
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/components/block-actions/index.js +6 -5
- package/build/components/block-actions/index.js.map +1 -1
- package/build/components/block-alignment-control/use-available-alignments.js +17 -4
- package/build/components/block-alignment-control/use-available-alignments.js.map +1 -1
- package/build/components/block-inspector/index.js +1 -1
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/block-html.js +5 -0
- package/build/components/block-list/block-html.js.map +1 -1
- package/build/components/block-list/block.native.js +2 -2
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list-appender/index.js +9 -1
- package/build/components/block-list-appender/index.js.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu-controls/index.js +10 -3
- package/build/components/block-settings-menu-controls/index.js.map +1 -1
- package/build/components/block-switcher/block-styles-menu.js +1 -1
- package/build/components/block-switcher/block-styles-menu.js.map +1 -1
- package/build/components/block-tools/index.js +4 -1
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/insertion-point.js +96 -7
- package/build/components/block-tools/insertion-point.js.map +1 -1
- package/build/components/border-radius-control/index.js.map +1 -1
- package/build/components/border-radius-control/utils.js +17 -8
- package/build/components/border-radius-control/utils.js.map +1 -1
- package/build/components/colors-gradients/control.js +17 -13
- package/build/components/colors-gradients/control.js.map +1 -1
- package/build/components/copy-handler/index.js +3 -3
- package/build/components/copy-handler/index.js.map +1 -1
- package/build/components/default-block-appender/index.js +2 -2
- package/build/components/default-block-appender/index.js.map +1 -1
- package/build/components/font-appearance-control/index.js +3 -5
- package/build/components/font-appearance-control/index.js.map +1 -1
- package/build/components/index.js +0 -18
- package/build/components/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab.js +11 -1
- package/build/components/inserter/block-patterns-tab.js.map +1 -1
- package/build/components/inserter/hooks/use-clipboard-block.native.js +5 -4
- package/build/components/inserter/hooks/use-clipboard-block.native.js.map +1 -1
- package/build/components/inserter/preview-panel.js +1 -1
- package/build/components/inserter/preview-panel.js.map +1 -1
- package/build/components/inspector-controls/block-support-slot-container.js +28 -0
- package/build/components/inspector-controls/block-support-slot-container.js.map +1 -0
- package/build/components/inspector-controls/block-support-tools-panel.js +7 -4
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/inspector-controls/fill.js +16 -1
- package/build/components/inspector-controls/fill.js.map +1 -1
- package/build/components/inspector-controls/slot.js +5 -2
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/list-view/block-contents.js +1 -20
- package/build/components/list-view/block-contents.js.map +1 -1
- package/build/components/list-view/block.js +5 -36
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/list-item.js +3 -2
- package/build/components/list-view/list-item.js.map +1 -1
- package/build/components/media-placeholder/index.js +26 -17
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/media-replace-flow/index.js +3 -2
- package/build/components/media-replace-flow/index.js.map +1 -1
- package/build/components/plain-text/index.native.js +30 -1
- package/build/components/plain-text/index.native.js.map +1 -1
- package/build/components/rich-text/embed-handler-picker.native.js +65 -0
- package/build/components/rich-text/embed-handler-picker.native.js.map +1 -0
- package/build/components/rich-text/index.js +5 -1
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/index.native.js +41 -2
- package/build/components/rich-text/index.native.js.map +1 -1
- package/build/components/rich-text/use-paste-handler.js +28 -9
- package/build/components/rich-text/use-paste-handler.js.map +1 -1
- package/build/components/rich-text/utils.js +22 -0
- package/build/components/rich-text/utils.js.map +1 -1
- package/build/hooks/align.js +10 -7
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/anchor.js +1 -1
- package/build/hooks/anchor.js.map +1 -1
- package/build/hooks/font-family.js +93 -23
- package/build/hooks/font-family.js.map +1 -1
- package/build/hooks/style.js +6 -3
- package/build/hooks/style.js.map +1 -1
- package/build/layouts/flow.js +4 -1
- package/build/layouts/flow.js.map +1 -1
- package/build/store/reducer.js +11 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +1 -3
- package/build/store/selectors.js.map +1 -1
- package/build/utils/transform-styles/transforms/wrap.js +16 -0
- package/build/utils/transform-styles/transforms/wrap.js.map +1 -1
- package/build-module/components/block-actions/index.js +6 -5
- package/build-module/components/block-actions/index.js.map +1 -1
- package/build-module/components/block-alignment-control/use-available-alignments.js +17 -4
- package/build-module/components/block-alignment-control/use-available-alignments.js.map +1 -1
- package/build-module/components/block-inspector/index.js +1 -1
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/block-html.js +5 -0
- package/build-module/components/block-list/block-html.js.map +1 -1
- package/build-module/components/block-list/block.native.js +2 -2
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list-appender/index.js +9 -1
- package/build-module/components/block-list-appender/index.js.map +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.js +10 -3
- package/build-module/components/block-settings-menu-controls/index.js.map +1 -1
- package/build-module/components/block-switcher/block-styles-menu.js +1 -1
- package/build-module/components/block-switcher/block-styles-menu.js.map +1 -1
- package/build-module/components/block-tools/index.js +4 -1
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/insertion-point.js +96 -8
- package/build-module/components/block-tools/insertion-point.js.map +1 -1
- package/build-module/components/border-radius-control/index.js.map +1 -1
- package/build-module/components/border-radius-control/utils.js +16 -9
- package/build-module/components/border-radius-control/utils.js.map +1 -1
- package/build-module/components/colors-gradients/control.js +18 -14
- package/build-module/components/colors-gradients/control.js.map +1 -1
- package/build-module/components/copy-handler/index.js +3 -3
- package/build-module/components/copy-handler/index.js.map +1 -1
- package/build-module/components/default-block-appender/index.js +2 -2
- package/build-module/components/default-block-appender/index.js.map +1 -1
- package/build-module/components/font-appearance-control/index.js +3 -5
- package/build-module/components/font-appearance-control/index.js.map +1 -1
- package/build-module/components/index.js +0 -2
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab.js +11 -1
- package/build-module/components/inserter/block-patterns-tab.js.map +1 -1
- package/build-module/components/inserter/hooks/use-clipboard-block.native.js +5 -4
- package/build-module/components/inserter/hooks/use-clipboard-block.native.js.map +1 -1
- package/build-module/components/inserter/preview-panel.js +1 -1
- package/build-module/components/inserter/preview-panel.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-slot-container.js +18 -0
- package/build-module/components/inspector-controls/block-support-slot-container.js.map +1 -0
- package/build-module/components/inspector-controls/block-support-tools-panel.js +7 -4
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/inspector-controls/fill.js +16 -2
- package/build-module/components/inspector-controls/fill.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js +4 -2
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/list-view/block-contents.js +1 -18
- package/build-module/components/list-view/block-contents.js.map +1 -1
- package/build-module/components/list-view/block.js +7 -37
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/list-item.js +3 -2
- package/build-module/components/list-view/list-item.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +26 -17
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/media-replace-flow/index.js +3 -2
- package/build-module/components/media-replace-flow/index.js.map +1 -1
- package/build-module/components/plain-text/index.native.js +29 -2
- package/build-module/components/plain-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/embed-handler-picker.native.js +53 -0
- package/build-module/components/rich-text/embed-handler-picker.native.js.map +1 -0
- package/build-module/components/rich-text/index.js +4 -1
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +41 -3
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/use-paste-handler.js +28 -9
- package/build-module/components/rich-text/use-paste-handler.js.map +1 -1
- package/build-module/components/rich-text/utils.js +20 -0
- package/build-module/components/rich-text/utils.js.map +1 -1
- package/build-module/hooks/align.js +10 -7
- package/build-module/hooks/align.js.map +1 -1
- package/build-module/hooks/anchor.js +1 -1
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/font-family.js +91 -24
- package/build-module/hooks/font-family.js.map +1 -1
- package/build-module/hooks/style.js +6 -3
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/layouts/flow.js +4 -1
- package/build-module/layouts/flow.js.map +1 -1
- package/build-module/store/reducer.js +11 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +2 -4
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/transform-styles/transforms/wrap.js +16 -0
- package/build-module/utils/transform-styles/transforms/wrap.js.map +1 -1
- package/build-style/style-rtl.css +52 -76
- package/build-style/style.css +52 -76
- package/package.json +14 -14
- package/src/components/block-actions/index.js +5 -5
- package/src/components/block-alignment-control/use-available-alignments.js +18 -3
- package/src/components/block-inspector/index.js +1 -1
- package/src/components/block-list/block-html.js +5 -0
- package/src/components/block-list/block.native.js +2 -2
- package/src/components/block-list-appender/index.js +8 -0
- package/src/components/block-preview/README.md +1 -1
- package/src/components/block-preview/style.scss +0 -17
- package/src/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/src/components/block-settings-menu-controls/index.js +9 -6
- package/src/components/block-switcher/block-styles-menu.js +1 -1
- package/src/components/block-tools/index.js +5 -2
- package/src/components/block-tools/insertion-point.js +97 -9
- package/src/components/block-tools/style.scss +4 -35
- package/src/components/border-radius-control/index.js +1 -0
- package/src/components/border-radius-control/test/utils.js +216 -0
- package/src/components/border-radius-control/utils.js +18 -10
- package/src/components/color-palette/test/__snapshots__/control.js.snap +103 -72
- package/src/components/colors-gradients/control.js +64 -61
- package/src/components/colors-gradients/style.scss +8 -5
- package/src/components/colors-gradients/test/control.js +43 -52
- package/src/components/copy-handler/index.js +1 -1
- package/src/components/default-block-appender/index.js +2 -2
- package/src/components/default-block-appender/test/__snapshots__/index.js.snap +3 -3
- package/src/components/font-appearance-control/index.js +12 -14
- package/src/components/font-appearance-control/style.scss +1 -1
- package/src/components/index.js +0 -2
- package/src/components/inserter/block-patterns-tab.js +11 -4
- package/src/components/inserter/hooks/use-clipboard-block.native.js +3 -2
- package/src/components/inserter/preview-panel.js +1 -1
- package/src/components/inserter/style.scss +1 -2
- package/src/components/inspector-controls/block-support-slot-container.js +10 -0
- package/src/components/inspector-controls/block-support-tools-panel.js +4 -2
- package/src/components/inspector-controls/fill.js +23 -2
- package/src/components/inspector-controls/slot.js +6 -1
- package/src/components/link-control/style.scss +9 -5
- package/src/components/list-view/block-contents.js +17 -38
- package/src/components/list-view/block.js +6 -51
- package/src/components/list-view/list-item.js +5 -4
- package/src/components/list-view/style.scss +56 -30
- package/src/components/media-placeholder/index.js +24 -17
- package/src/components/media-replace-flow/README.md +7 -0
- package/src/components/media-replace-flow/index.js +2 -0
- package/src/components/plain-text/index.native.js +26 -4
- package/src/components/rich-text/embed-handler-picker.native.js +67 -0
- package/src/components/rich-text/index.js +12 -8
- package/src/components/rich-text/index.native.js +35 -1
- package/src/components/rich-text/use-paste-handler.js +30 -12
- package/src/components/rich-text/utils.js +16 -0
- package/src/components/skip-to-selected-block/README.md +39 -0
- package/src/hooks/align.js +11 -7
- package/src/hooks/anchor.js +2 -2
- package/src/hooks/font-family.js +107 -27
- package/src/hooks/style.js +14 -8
- package/src/layouts/flow.js +4 -1
- package/src/store/reducer.js +17 -0
- package/src/store/selectors.js +2 -3
- package/src/store/test/reducer.js +22 -0
- package/src/utils/transform-styles/transforms/test/wrap.js +1 -1
- package/src/utils/transform-styles/transforms/wrap.js +16 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/list-view/block-slot.js +0 -121
- package/build/components/list-view/block-slot.js.map +0 -1
- package/build/components/list-view/editor.js +0 -35
- package/build/components/list-view/editor.js.map +0 -1
- package/build-module/components/list-view/block-slot.js +0 -96
- package/build-module/components/list-view/block-slot.js.map +0 -1
- package/build-module/components/list-view/editor.js +0 -25
- package/build-module/components/list-view/editor.js.map +0 -1
- package/src/components/list-view/block-slot.js +0 -120
- package/src/components/list-view/editor.js +0 -29
|
@@ -2,8 +2,24 @@
|
|
|
2
2
|
* @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector.
|
|
3
3
|
*/
|
|
4
4
|
const IS_ROOT_TAG = /^(body|html|:root).*$/;
|
|
5
|
+
/**
|
|
6
|
+
* Creates a callback to modify selectors so they only apply within a certain
|
|
7
|
+
* namespace.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} namespace Namespace to prefix selectors with.
|
|
10
|
+
* @param {string[]} ignore Selectors to not prefix.
|
|
11
|
+
*
|
|
12
|
+
* @return {(node: Object) => Object} Callback to wrap selectors.
|
|
13
|
+
*/
|
|
5
14
|
|
|
6
15
|
const wrap = (namespace, ignore = []) => node => {
|
|
16
|
+
/**
|
|
17
|
+
* Updates selector if necessary.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} selector Selector to modify.
|
|
20
|
+
*
|
|
21
|
+
* @return {string} Updated selector.
|
|
22
|
+
*/
|
|
7
23
|
const updateSelector = selector => {
|
|
8
24
|
if (ignore.includes(selector.trim())) {
|
|
9
25
|
return selector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/block-editor/src/utils/transform-styles/transforms/wrap.js"],"names":["IS_ROOT_TAG","wrap","namespace","ignore","node","updateSelector","selector","includes","trim","match","replace","type","selectors","map"],"mappings":"AAAA;AACA;AACA;AACA,MAAMA,WAAW,GAAG,uBAApB;;
|
|
1
|
+
{"version":3,"sources":["@wordpress/block-editor/src/utils/transform-styles/transforms/wrap.js"],"names":["IS_ROOT_TAG","wrap","namespace","ignore","node","updateSelector","selector","includes","trim","match","replace","type","selectors","map"],"mappings":"AAAA;AACA;AACA;AACA,MAAMA,WAAW,GAAG,uBAApB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,MAAMC,IAAI,GAAG,CAAEC,SAAF,EAAaC,MAAM,GAAG,EAAtB,KAAgCC,IAAF,IAAY;AACtD;AACD;AACA;AACA;AACA;AACA;AACA;AACC,QAAMC,cAAc,GAAKC,QAAF,IAAgB;AACtC,QAAKH,MAAM,CAACI,QAAP,CAAiBD,QAAQ,CAACE,IAAT,EAAjB,CAAL,EAA0C;AACzC,aAAOF,QAAP;AACA,KAHqC,CAKtC;;;AACA;AACC,UAAK,CAAEA,QAAQ,CAACG,KAAT,CAAgBT,WAAhB,CAAP,EAAuC;AACtC,eAAOE,SAAS,GAAG,GAAZ,GAAkBI,QAAzB;AACA;AACD,KAVqC,CAYtC;;AACA,WAAOA,QAAQ,CAACI,OAAT,CAAkB,oBAAlB,EAAwCR,SAAxC,CAAP;AACA,GAdD;;AAgBA,MAAKE,IAAI,CAACO,IAAL,KAAc,MAAnB,EAA4B;AAC3B,WAAO,EACN,GAAGP,IADG;AAENQ,MAAAA,SAAS,EAAER,IAAI,CAACQ,SAAL,CAAeC,GAAf,CAAoBR,cAApB;AAFL,KAAP;AAIA;;AAED,SAAOD,IAAP;AACA,CAhCD;;AAkCA,eAAeH,IAAf","sourcesContent":["/**\n * @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector.\n */\nconst IS_ROOT_TAG = /^(body|html|:root).*$/;\n\n/**\n * Creates a callback to modify selectors so they only apply within a certain\n * namespace.\n *\n * @param {string} namespace Namespace to prefix selectors with.\n * @param {string[]} ignore Selectors to not prefix.\n *\n * @return {(node: Object) => Object} Callback to wrap selectors.\n */\nconst wrap = ( namespace, ignore = [] ) => ( node ) => {\n\t/**\n\t * Updates selector if necessary.\n\t *\n\t * @param {string} selector Selector to modify.\n\t *\n\t * @return {string} Updated selector.\n\t */\n\tconst updateSelector = ( selector ) => {\n\t\tif ( ignore.includes( selector.trim() ) ) {\n\t\t\treturn selector;\n\t\t}\n\n\t\t// Anything other than a root tag is always prefixed.\n\t\t{\n\t\t\tif ( ! selector.match( IS_ROOT_TAG ) ) {\n\t\t\t\treturn namespace + ' ' + selector;\n\t\t\t}\n\t\t}\n\n\t\t// HTML and Body elements cannot be contained within our container so lets extract their styles.\n\t\treturn selector.replace( /^(body|html|:root)/, namespace );\n\t};\n\n\tif ( node.type === 'rule' ) {\n\t\treturn {\n\t\t\t...node,\n\t\t\tselectors: node.selectors.map( updateSelector ),\n\t\t};\n\t}\n\n\treturn node;\n};\n\nexport default wrap;\n"]}
|
|
@@ -495,26 +495,15 @@
|
|
|
495
495
|
.block-editor-block-list__insertion-point-indicator {
|
|
496
496
|
position: absolute;
|
|
497
497
|
background: var(--wp-admin-theme-color);
|
|
498
|
-
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
|
|
499
|
-
animation-fill-mode: forwards;
|
|
500
|
-
}
|
|
501
|
-
@media (prefers-reduced-motion: reduce) {
|
|
502
|
-
.block-editor-block-list__insertion-point-indicator {
|
|
503
|
-
animation-duration: 1ms;
|
|
504
|
-
animation-delay: 0s;
|
|
505
|
-
}
|
|
506
498
|
}
|
|
507
499
|
.block-editor-block-list__insertion-point.is-vertical > .block-editor-block-list__insertion-point-indicator {
|
|
508
500
|
top: 50%;
|
|
509
|
-
left: 0;
|
|
510
|
-
right: 0;
|
|
511
501
|
height: 1px;
|
|
512
502
|
}
|
|
513
503
|
.block-editor-block-list__insertion-point.is-horizontal > .block-editor-block-list__insertion-point-indicator {
|
|
514
504
|
top: 0;
|
|
515
505
|
left: 0;
|
|
516
506
|
right: 50%;
|
|
517
|
-
height: 100%;
|
|
518
507
|
width: 1px;
|
|
519
508
|
}
|
|
520
509
|
|
|
@@ -566,30 +555,6 @@
|
|
|
566
555
|
background: #1e1e1e;
|
|
567
556
|
}
|
|
568
557
|
|
|
569
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,
|
|
570
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button {
|
|
571
|
-
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
|
|
572
|
-
animation-fill-mode: forwards;
|
|
573
|
-
}
|
|
574
|
-
@media (prefers-reduced-motion: reduce) {
|
|
575
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,
|
|
576
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button {
|
|
577
|
-
animation-duration: 1ms;
|
|
578
|
-
animation-delay: 0s;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
@keyframes block-editor-inserter__toggle__fade-in-animation-delayed {
|
|
583
|
-
0% {
|
|
584
|
-
opacity: 0;
|
|
585
|
-
}
|
|
586
|
-
60% {
|
|
587
|
-
opacity: 0;
|
|
588
|
-
}
|
|
589
|
-
100% {
|
|
590
|
-
opacity: 1;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
558
|
/**
|
|
594
559
|
* Block Toolbar when contextual.
|
|
595
560
|
*/
|
|
@@ -1218,10 +1183,6 @@
|
|
|
1218
1183
|
width: 100%;
|
|
1219
1184
|
overflow: hidden;
|
|
1220
1185
|
}
|
|
1221
|
-
.block-editor-block-preview__container.editor-styles-wrapper {
|
|
1222
|
-
padding: 0;
|
|
1223
|
-
margin: 0;
|
|
1224
|
-
}
|
|
1225
1186
|
.block-editor-block-preview__container .block-editor-block-preview__content {
|
|
1226
1187
|
top: 0;
|
|
1227
1188
|
right: 0;
|
|
@@ -1237,14 +1198,6 @@
|
|
|
1237
1198
|
.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender {
|
|
1238
1199
|
display: none;
|
|
1239
1200
|
}
|
|
1240
|
-
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
|
1241
|
-
padding-right: 0;
|
|
1242
|
-
padding-left: 0;
|
|
1243
|
-
}
|
|
1244
|
-
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] {
|
|
1245
|
-
margin-right: 0;
|
|
1246
|
-
margin-left: 0;
|
|
1247
|
-
}
|
|
1248
1201
|
|
|
1249
1202
|
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
|
|
1250
1203
|
padding: 0;
|
|
@@ -1813,10 +1766,6 @@
|
|
|
1813
1766
|
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
|
1814
1767
|
margin-bottom: 12px;
|
|
1815
1768
|
}
|
|
1816
|
-
.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs {
|
|
1817
|
-
display: block;
|
|
1818
|
-
margin-bottom: 12px;
|
|
1819
|
-
}
|
|
1820
1769
|
|
|
1821
1770
|
.block-editor-panel-color-gradient-settings .component-color-indicator {
|
|
1822
1771
|
vertical-align: text-bottom;
|
|
@@ -1838,6 +1787,9 @@
|
|
|
1838
1787
|
margin-left: 0;
|
|
1839
1788
|
}
|
|
1840
1789
|
}
|
|
1790
|
+
.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control {
|
|
1791
|
+
margin-bottom: inherit;
|
|
1792
|
+
}
|
|
1841
1793
|
|
|
1842
1794
|
.block-editor-contrast-checker > .components-notice {
|
|
1843
1795
|
margin: 0;
|
|
@@ -1908,10 +1860,10 @@
|
|
|
1908
1860
|
margin-right: -14px;
|
|
1909
1861
|
}
|
|
1910
1862
|
|
|
1911
|
-
.components-font-appearance-
|
|
1863
|
+
.components-font-appearance-control {
|
|
1912
1864
|
margin-bottom: 24px;
|
|
1913
1865
|
}
|
|
1914
|
-
.components-font-appearance-
|
|
1866
|
+
.components-font-appearance-control ul li {
|
|
1915
1867
|
color: #1e1e1e;
|
|
1916
1868
|
text-transform: capitalize;
|
|
1917
1869
|
}
|
|
@@ -2086,11 +2038,14 @@
|
|
|
2086
2038
|
border: none;
|
|
2087
2039
|
text-align: right;
|
|
2088
2040
|
padding: 12px 16px;
|
|
2089
|
-
border-radius:
|
|
2041
|
+
border-radius: 2px;
|
|
2090
2042
|
height: auto;
|
|
2091
2043
|
}
|
|
2092
2044
|
.block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus {
|
|
2093
|
-
background-color: #
|
|
2045
|
+
background-color: #f0f0f0;
|
|
2046
|
+
}
|
|
2047
|
+
.block-editor-link-control__search-item:hover .block-editor-link-control__search-item-type, .block-editor-link-control__search-item:focus .block-editor-link-control__search-item-type {
|
|
2048
|
+
background: #fff;
|
|
2094
2049
|
}
|
|
2095
2050
|
.block-editor-link-control__search-item:focus:not(:disabled) {
|
|
2096
2051
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset;
|
|
@@ -2165,7 +2120,7 @@
|
|
|
2165
2120
|
}
|
|
2166
2121
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark {
|
|
2167
2122
|
font-weight: 700;
|
|
2168
|
-
color:
|
|
2123
|
+
color: inherit;
|
|
2169
2124
|
background-color: transparent;
|
|
2170
2125
|
}
|
|
2171
2126
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-title span {
|
|
@@ -2186,7 +2141,7 @@
|
|
|
2186
2141
|
}
|
|
2187
2142
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-type {
|
|
2188
2143
|
display: block;
|
|
2189
|
-
padding: 3px
|
|
2144
|
+
padding: 3px 6px;
|
|
2190
2145
|
margin-right: auto;
|
|
2191
2146
|
font-size: 0.9em;
|
|
2192
2147
|
background-color: #f0f0f0;
|
|
@@ -2509,19 +2464,24 @@
|
|
|
2509
2464
|
.block-editor-list-view-leaf {
|
|
2510
2465
|
position: relative;
|
|
2511
2466
|
}
|
|
2512
|
-
.block-editor-list-view-leaf.is-selected
|
|
2467
|
+
.block-editor-list-view-leaf.is-selected {
|
|
2513
2468
|
background: var(--wp-admin-theme-color);
|
|
2469
|
+
}
|
|
2470
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
|
|
2514
2471
|
color: #fff;
|
|
2515
2472
|
}
|
|
2516
2473
|
.is-dragging-components-draggable .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents {
|
|
2517
2474
|
background: none;
|
|
2518
2475
|
color: #1e1e1e;
|
|
2519
2476
|
}
|
|
2520
|
-
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus {
|
|
2477
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
|
|
2521
2478
|
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2522
2479
|
}
|
|
2523
|
-
.
|
|
2524
|
-
box-shadow:
|
|
2480
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
|
|
2481
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff;
|
|
2482
|
+
}
|
|
2483
|
+
.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) {
|
|
2484
|
+
background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), linear-gradient(var(--wp-admin-theme-color), var(--wp-admin-theme-color));
|
|
2525
2485
|
}
|
|
2526
2486
|
.block-editor-list-view-leaf.is-branch-selected.is-selected .block-editor-list-view-block-contents {
|
|
2527
2487
|
border-radius: 2px 2px 0 0;
|
|
@@ -2530,7 +2490,6 @@
|
|
|
2530
2490
|
border-radius: 2px;
|
|
2531
2491
|
}
|
|
2532
2492
|
.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) .block-editor-list-view-block-contents {
|
|
2533
|
-
background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), linear-gradient(var(--wp-admin-theme-color), var(--wp-admin-theme-color));
|
|
2534
2493
|
border-radius: 0;
|
|
2535
2494
|
}
|
|
2536
2495
|
.block-editor-list-view-leaf.is-branch-selected.is-last-of-selected-branch .block-editor-list-view-block-contents {
|
|
@@ -2551,15 +2510,6 @@
|
|
|
2551
2510
|
position: relative;
|
|
2552
2511
|
white-space: nowrap;
|
|
2553
2512
|
}
|
|
2554
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-contents:hover, .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2555
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2556
|
-
}
|
|
2557
|
-
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:hover, .is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2558
|
-
box-shadow: none;
|
|
2559
|
-
}
|
|
2560
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2561
|
-
z-index: 1;
|
|
2562
|
-
}
|
|
2563
2513
|
.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before::before {
|
|
2564
2514
|
content: "";
|
|
2565
2515
|
position: absolute;
|
|
@@ -2574,6 +2524,31 @@
|
|
|
2574
2524
|
padding-right: 0;
|
|
2575
2525
|
padding-left: 0;
|
|
2576
2526
|
}
|
|
2527
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2528
|
+
box-shadow: none;
|
|
2529
|
+
}
|
|
2530
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2531
|
+
content: "";
|
|
2532
|
+
position: absolute;
|
|
2533
|
+
top: 0;
|
|
2534
|
+
left: -29px;
|
|
2535
|
+
bottom: 0;
|
|
2536
|
+
right: 0;
|
|
2537
|
+
border-radius: inherit;
|
|
2538
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2539
|
+
z-index: 1;
|
|
2540
|
+
pointer-events: none;
|
|
2541
|
+
}
|
|
2542
|
+
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2543
|
+
box-shadow: none;
|
|
2544
|
+
}
|
|
2545
|
+
.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus {
|
|
2546
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2547
|
+
z-index: 1;
|
|
2548
|
+
}
|
|
2549
|
+
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus {
|
|
2550
|
+
box-shadow: none;
|
|
2551
|
+
}
|
|
2577
2552
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
2578
2553
|
opacity: 1;
|
|
2579
2554
|
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
|
@@ -2601,7 +2576,7 @@
|
|
|
2601
2576
|
line-height: 0;
|
|
2602
2577
|
width: 36px;
|
|
2603
2578
|
opacity: 0;
|
|
2604
|
-
vertical-align:
|
|
2579
|
+
vertical-align: middle;
|
|
2605
2580
|
}
|
|
2606
2581
|
@media (prefers-reduced-motion: reduce) {
|
|
2607
2582
|
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,
|
|
@@ -2636,7 +2611,10 @@
|
|
|
2636
2611
|
padding: 0;
|
|
2637
2612
|
}
|
|
2638
2613
|
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell {
|
|
2639
|
-
padding-
|
|
2614
|
+
padding-left: 5px;
|
|
2615
|
+
}
|
|
2616
|
+
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon {
|
|
2617
|
+
height: 24px;
|
|
2640
2618
|
}
|
|
2641
2619
|
.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper {
|
|
2642
2620
|
display: flex;
|
|
@@ -2721,7 +2699,6 @@
|
|
|
2721
2699
|
background: rgba(0, 0, 0, 0.3);
|
|
2722
2700
|
}
|
|
2723
2701
|
|
|
2724
|
-
.block-editor-list-view-block-slot__description,
|
|
2725
2702
|
.block-editor-list-view-block-select-button__description,
|
|
2726
2703
|
.block-editor-list-view-appender__description {
|
|
2727
2704
|
display: none;
|
|
@@ -3771,11 +3748,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3771
3748
|
.block-editor-inserter__tabs {
|
|
3772
3749
|
display: flex;
|
|
3773
3750
|
flex-direction: column;
|
|
3774
|
-
margin-top: -8px;
|
|
3775
3751
|
}
|
|
3776
3752
|
.block-editor-inserter__tabs .components-tab-panel__tabs {
|
|
3777
3753
|
position: sticky;
|
|
3778
|
-
top:
|
|
3754
|
+
top: 64px;
|
|
3779
3755
|
background: #fff;
|
|
3780
3756
|
z-index: 1;
|
|
3781
3757
|
border-bottom: 1px solid #ddd;
|
package/build-style/style.css
CHANGED
|
@@ -495,26 +495,15 @@
|
|
|
495
495
|
.block-editor-block-list__insertion-point-indicator {
|
|
496
496
|
position: absolute;
|
|
497
497
|
background: var(--wp-admin-theme-color);
|
|
498
|
-
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
|
|
499
|
-
animation-fill-mode: forwards;
|
|
500
|
-
}
|
|
501
|
-
@media (prefers-reduced-motion: reduce) {
|
|
502
|
-
.block-editor-block-list__insertion-point-indicator {
|
|
503
|
-
animation-duration: 1ms;
|
|
504
|
-
animation-delay: 0s;
|
|
505
|
-
}
|
|
506
498
|
}
|
|
507
499
|
.block-editor-block-list__insertion-point.is-vertical > .block-editor-block-list__insertion-point-indicator {
|
|
508
500
|
top: 50%;
|
|
509
|
-
right: 0;
|
|
510
|
-
left: 0;
|
|
511
501
|
height: 1px;
|
|
512
502
|
}
|
|
513
503
|
.block-editor-block-list__insertion-point.is-horizontal > .block-editor-block-list__insertion-point-indicator {
|
|
514
504
|
top: 0;
|
|
515
505
|
right: 0;
|
|
516
506
|
left: 50%;
|
|
517
|
-
height: 100%;
|
|
518
507
|
width: 1px;
|
|
519
508
|
}
|
|
520
509
|
|
|
@@ -566,30 +555,6 @@
|
|
|
566
555
|
background: #1e1e1e;
|
|
567
556
|
}
|
|
568
557
|
|
|
569
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,
|
|
570
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button {
|
|
571
|
-
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
|
|
572
|
-
animation-fill-mode: forwards;
|
|
573
|
-
}
|
|
574
|
-
@media (prefers-reduced-motion: reduce) {
|
|
575
|
-
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,
|
|
576
|
-
.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button {
|
|
577
|
-
animation-duration: 1ms;
|
|
578
|
-
animation-delay: 0s;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
@keyframes block-editor-inserter__toggle__fade-in-animation-delayed {
|
|
583
|
-
0% {
|
|
584
|
-
opacity: 0;
|
|
585
|
-
}
|
|
586
|
-
60% {
|
|
587
|
-
opacity: 0;
|
|
588
|
-
}
|
|
589
|
-
100% {
|
|
590
|
-
opacity: 1;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
558
|
/**
|
|
594
559
|
* Block Toolbar when contextual.
|
|
595
560
|
*/
|
|
@@ -1218,10 +1183,6 @@
|
|
|
1218
1183
|
width: 100%;
|
|
1219
1184
|
overflow: hidden;
|
|
1220
1185
|
}
|
|
1221
|
-
.block-editor-block-preview__container.editor-styles-wrapper {
|
|
1222
|
-
padding: 0;
|
|
1223
|
-
margin: 0;
|
|
1224
|
-
}
|
|
1225
1186
|
.block-editor-block-preview__container .block-editor-block-preview__content {
|
|
1226
1187
|
top: 0;
|
|
1227
1188
|
left: 0;
|
|
@@ -1237,14 +1198,6 @@
|
|
|
1237
1198
|
.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender {
|
|
1238
1199
|
display: none;
|
|
1239
1200
|
}
|
|
1240
|
-
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container {
|
|
1241
|
-
padding-left: 0;
|
|
1242
|
-
padding-right: 0;
|
|
1243
|
-
}
|
|
1244
|
-
.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] {
|
|
1245
|
-
margin-left: 0;
|
|
1246
|
-
margin-right: 0;
|
|
1247
|
-
}
|
|
1248
1201
|
|
|
1249
1202
|
.block-editor-block-settings-menu__popover .components-dropdown-menu__menu {
|
|
1250
1203
|
padding: 0;
|
|
@@ -1813,10 +1766,6 @@
|
|
|
1813
1766
|
.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator {
|
|
1814
1767
|
margin-bottom: 12px;
|
|
1815
1768
|
}
|
|
1816
|
-
.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs {
|
|
1817
|
-
display: block;
|
|
1818
|
-
margin-bottom: 12px;
|
|
1819
|
-
}
|
|
1820
1769
|
|
|
1821
1770
|
.block-editor-panel-color-gradient-settings .component-color-indicator {
|
|
1822
1771
|
vertical-align: text-bottom;
|
|
@@ -1838,6 +1787,9 @@
|
|
|
1838
1787
|
margin-right: 0;
|
|
1839
1788
|
}
|
|
1840
1789
|
}
|
|
1790
|
+
.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control {
|
|
1791
|
+
margin-bottom: inherit;
|
|
1792
|
+
}
|
|
1841
1793
|
|
|
1842
1794
|
.block-editor-contrast-checker > .components-notice {
|
|
1843
1795
|
margin: 0;
|
|
@@ -1908,10 +1860,10 @@
|
|
|
1908
1860
|
margin-left: -14px;
|
|
1909
1861
|
}
|
|
1910
1862
|
|
|
1911
|
-
.components-font-appearance-
|
|
1863
|
+
.components-font-appearance-control {
|
|
1912
1864
|
margin-bottom: 24px;
|
|
1913
1865
|
}
|
|
1914
|
-
.components-font-appearance-
|
|
1866
|
+
.components-font-appearance-control ul li {
|
|
1915
1867
|
color: #1e1e1e;
|
|
1916
1868
|
text-transform: capitalize;
|
|
1917
1869
|
}
|
|
@@ -2086,11 +2038,14 @@
|
|
|
2086
2038
|
border: none;
|
|
2087
2039
|
text-align: left;
|
|
2088
2040
|
padding: 12px 16px;
|
|
2089
|
-
border-radius:
|
|
2041
|
+
border-radius: 2px;
|
|
2090
2042
|
height: auto;
|
|
2091
2043
|
}
|
|
2092
2044
|
.block-editor-link-control__search-item:hover, .block-editor-link-control__search-item:focus {
|
|
2093
|
-
background-color: #
|
|
2045
|
+
background-color: #f0f0f0;
|
|
2046
|
+
}
|
|
2047
|
+
.block-editor-link-control__search-item:hover .block-editor-link-control__search-item-type, .block-editor-link-control__search-item:focus .block-editor-link-control__search-item-type {
|
|
2048
|
+
background: #fff;
|
|
2094
2049
|
}
|
|
2095
2050
|
.block-editor-link-control__search-item:focus:not(:disabled) {
|
|
2096
2051
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset;
|
|
@@ -2165,7 +2120,7 @@
|
|
|
2165
2120
|
}
|
|
2166
2121
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark {
|
|
2167
2122
|
font-weight: 700;
|
|
2168
|
-
color:
|
|
2123
|
+
color: inherit;
|
|
2169
2124
|
background-color: transparent;
|
|
2170
2125
|
}
|
|
2171
2126
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-title span {
|
|
@@ -2186,7 +2141,7 @@
|
|
|
2186
2141
|
}
|
|
2187
2142
|
.block-editor-link-control__search-item .block-editor-link-control__search-item-type {
|
|
2188
2143
|
display: block;
|
|
2189
|
-
padding: 3px
|
|
2144
|
+
padding: 3px 6px;
|
|
2190
2145
|
margin-left: auto;
|
|
2191
2146
|
font-size: 0.9em;
|
|
2192
2147
|
background-color: #f0f0f0;
|
|
@@ -2509,19 +2464,24 @@
|
|
|
2509
2464
|
.block-editor-list-view-leaf {
|
|
2510
2465
|
position: relative;
|
|
2511
2466
|
}
|
|
2512
|
-
.block-editor-list-view-leaf.is-selected
|
|
2467
|
+
.block-editor-list-view-leaf.is-selected {
|
|
2513
2468
|
background: var(--wp-admin-theme-color);
|
|
2469
|
+
}
|
|
2470
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
|
|
2514
2471
|
color: #fff;
|
|
2515
2472
|
}
|
|
2516
2473
|
.is-dragging-components-draggable .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents {
|
|
2517
2474
|
background: none;
|
|
2518
2475
|
color: #1e1e1e;
|
|
2519
2476
|
}
|
|
2520
|
-
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus {
|
|
2477
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
|
|
2521
2478
|
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2522
2479
|
}
|
|
2523
|
-
.
|
|
2524
|
-
box-shadow:
|
|
2480
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
|
|
2481
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff;
|
|
2482
|
+
}
|
|
2483
|
+
.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) {
|
|
2484
|
+
background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), linear-gradient(var(--wp-admin-theme-color), var(--wp-admin-theme-color));
|
|
2525
2485
|
}
|
|
2526
2486
|
.block-editor-list-view-leaf.is-branch-selected.is-selected .block-editor-list-view-block-contents {
|
|
2527
2487
|
border-radius: 2px 2px 0 0;
|
|
@@ -2530,7 +2490,6 @@
|
|
|
2530
2490
|
border-radius: 2px;
|
|
2531
2491
|
}
|
|
2532
2492
|
.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) .block-editor-list-view-block-contents {
|
|
2533
|
-
background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), linear-gradient(var(--wp-admin-theme-color), var(--wp-admin-theme-color));
|
|
2534
2493
|
border-radius: 0;
|
|
2535
2494
|
}
|
|
2536
2495
|
.block-editor-list-view-leaf.is-branch-selected.is-last-of-selected-branch .block-editor-list-view-block-contents {
|
|
@@ -2551,15 +2510,6 @@
|
|
|
2551
2510
|
position: relative;
|
|
2552
2511
|
white-space: nowrap;
|
|
2553
2512
|
}
|
|
2554
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-contents:hover, .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2555
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2556
|
-
}
|
|
2557
|
-
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:hover, .is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2558
|
-
box-shadow: none;
|
|
2559
|
-
}
|
|
2560
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2561
|
-
z-index: 1;
|
|
2562
|
-
}
|
|
2563
2513
|
.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before::before {
|
|
2564
2514
|
content: "";
|
|
2565
2515
|
position: absolute;
|
|
@@ -2574,6 +2524,31 @@
|
|
|
2574
2524
|
padding-left: 0;
|
|
2575
2525
|
padding-right: 0;
|
|
2576
2526
|
}
|
|
2527
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2528
|
+
box-shadow: none;
|
|
2529
|
+
}
|
|
2530
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2531
|
+
content: "";
|
|
2532
|
+
position: absolute;
|
|
2533
|
+
top: 0;
|
|
2534
|
+
right: -29px;
|
|
2535
|
+
bottom: 0;
|
|
2536
|
+
left: 0;
|
|
2537
|
+
border-radius: inherit;
|
|
2538
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2539
|
+
z-index: 1;
|
|
2540
|
+
pointer-events: none;
|
|
2541
|
+
}
|
|
2542
|
+
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2543
|
+
box-shadow: none;
|
|
2544
|
+
}
|
|
2545
|
+
.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus {
|
|
2546
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2547
|
+
z-index: 1;
|
|
2548
|
+
}
|
|
2549
|
+
.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus {
|
|
2550
|
+
box-shadow: none;
|
|
2551
|
+
}
|
|
2577
2552
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
2578
2553
|
opacity: 1;
|
|
2579
2554
|
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
|
@@ -2601,7 +2576,7 @@
|
|
|
2601
2576
|
line-height: 0;
|
|
2602
2577
|
width: 36px;
|
|
2603
2578
|
opacity: 0;
|
|
2604
|
-
vertical-align:
|
|
2579
|
+
vertical-align: middle;
|
|
2605
2580
|
}
|
|
2606
2581
|
@media (prefers-reduced-motion: reduce) {
|
|
2607
2582
|
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,
|
|
@@ -2636,7 +2611,10 @@
|
|
|
2636
2611
|
padding: 0;
|
|
2637
2612
|
}
|
|
2638
2613
|
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell {
|
|
2639
|
-
padding-
|
|
2614
|
+
padding-right: 5px;
|
|
2615
|
+
}
|
|
2616
|
+
.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon {
|
|
2617
|
+
height: 24px;
|
|
2640
2618
|
}
|
|
2641
2619
|
.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper {
|
|
2642
2620
|
display: flex;
|
|
@@ -2721,7 +2699,6 @@
|
|
|
2721
2699
|
background: rgba(0, 0, 0, 0.3);
|
|
2722
2700
|
}
|
|
2723
2701
|
|
|
2724
|
-
.block-editor-list-view-block-slot__description,
|
|
2725
2702
|
.block-editor-list-view-block-select-button__description,
|
|
2726
2703
|
.block-editor-list-view-appender__description {
|
|
2727
2704
|
display: none;
|
|
@@ -3771,11 +3748,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3771
3748
|
.block-editor-inserter__tabs {
|
|
3772
3749
|
display: flex;
|
|
3773
3750
|
flex-direction: column;
|
|
3774
|
-
margin-top: -8px;
|
|
3775
3751
|
}
|
|
3776
3752
|
.block-editor-inserter__tabs .components-tab-panel__tabs {
|
|
3777
3753
|
position: sticky;
|
|
3778
|
-
top:
|
|
3754
|
+
top: 64px;
|
|
3779
3755
|
background: #fff;
|
|
3780
3756
|
z-index: 1;
|
|
3781
3757
|
border-bottom: 1px solid #ddd;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
35
|
"@react-spring/web": "^9.2.4",
|
|
36
36
|
"@wordpress/a11y": "^3.2.3",
|
|
37
|
-
"@wordpress/api-fetch": "^5.2.
|
|
37
|
+
"@wordpress/api-fetch": "^5.2.4",
|
|
38
38
|
"@wordpress/blob": "^3.2.1",
|
|
39
39
|
"@wordpress/block-serialization-default-parser": "^4.2.2",
|
|
40
|
-
"@wordpress/blocks": "^11.1.
|
|
41
|
-
"@wordpress/components": "^
|
|
42
|
-
"@wordpress/compose": "^5.0.
|
|
43
|
-
"@wordpress/data": "^6.1.
|
|
44
|
-
"@wordpress/data-controls": "^2.2.
|
|
40
|
+
"@wordpress/blocks": "^11.1.2",
|
|
41
|
+
"@wordpress/components": "^19.0.0",
|
|
42
|
+
"@wordpress/compose": "^5.0.4",
|
|
43
|
+
"@wordpress/data": "^6.1.2",
|
|
44
|
+
"@wordpress/data-controls": "^2.2.5",
|
|
45
45
|
"@wordpress/deprecated": "^3.2.2",
|
|
46
|
-
"@wordpress/dom": "^3.2.
|
|
47
|
-
"@wordpress/element": "^4.0.
|
|
46
|
+
"@wordpress/dom": "^3.2.5",
|
|
47
|
+
"@wordpress/element": "^4.0.3",
|
|
48
48
|
"@wordpress/hooks": "^3.2.1",
|
|
49
49
|
"@wordpress/html-entities": "^3.2.2",
|
|
50
50
|
"@wordpress/i18n": "^4.2.3",
|
|
51
|
-
"@wordpress/icons": "^6.0.
|
|
51
|
+
"@wordpress/icons": "^6.0.1",
|
|
52
52
|
"@wordpress/is-shallow-equal": "^4.2.0",
|
|
53
|
-
"@wordpress/keyboard-shortcuts": "^3.0.
|
|
53
|
+
"@wordpress/keyboard-shortcuts": "^3.0.4",
|
|
54
54
|
"@wordpress/keycodes": "^3.2.3",
|
|
55
|
-
"@wordpress/notices": "^3.2.
|
|
56
|
-
"@wordpress/rich-text": "^5.0.
|
|
55
|
+
"@wordpress/notices": "^3.2.5",
|
|
56
|
+
"@wordpress/rich-text": "^5.0.4",
|
|
57
57
|
"@wordpress/shortcode": "^3.2.2",
|
|
58
58
|
"@wordpress/token-list": "^2.2.1",
|
|
59
59
|
"@wordpress/url": "^3.2.3",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "157f4ae53ab98e574af01f72213ae5a9613159ff"
|
|
80
80
|
}
|
|
@@ -28,12 +28,11 @@ export default function BlockActions( {
|
|
|
28
28
|
canInsertBlockType,
|
|
29
29
|
getBlockRootClientId,
|
|
30
30
|
getBlocksByClientId,
|
|
31
|
+
canMoveBlocks,
|
|
31
32
|
canRemoveBlocks,
|
|
32
|
-
|
|
33
|
-
} = useSelect( ( select ) => select( blockEditorStore ), [] );
|
|
33
|
+
} = useSelect( blockEditorStore );
|
|
34
34
|
const { getDefaultBlockName, getGroupingBlockName } = useSelect(
|
|
35
|
-
|
|
36
|
-
[]
|
|
35
|
+
blocksStore
|
|
37
36
|
);
|
|
38
37
|
|
|
39
38
|
const blocks = getBlocksByClientId( clientIds );
|
|
@@ -51,6 +50,7 @@ export default function BlockActions( {
|
|
|
51
50
|
rootClientId
|
|
52
51
|
);
|
|
53
52
|
|
|
53
|
+
const canMove = canMoveBlocks( clientIds, rootClientId );
|
|
54
54
|
const canRemove = canRemoveBlocks( clientIds, rootClientId );
|
|
55
55
|
|
|
56
56
|
const {
|
|
@@ -70,8 +70,8 @@ export default function BlockActions( {
|
|
|
70
70
|
return children( {
|
|
71
71
|
canDuplicate,
|
|
72
72
|
canInsertDefaultBlock,
|
|
73
|
+
canMove,
|
|
73
74
|
canRemove,
|
|
74
|
-
isLocked: !! getTemplateLock( rootClientId ),
|
|
75
75
|
rootClientId,
|
|
76
76
|
blocks,
|
|
77
77
|
onDuplicate() {
|