@wordpress/block-editor 14.7.0 → 14.7.1-next.082ed6819.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/components/block-controls/slot.js +6 -3
- package/build/components/block-controls/slot.js.map +1 -1
- package/build/components/block-inspector/index.js +1 -2
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-lock/modal.js +1 -1
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-manager/category.js +79 -0
- package/build/components/block-manager/category.js.map +1 -0
- package/build/components/block-manager/checklist.js +40 -0
- package/build/components/block-manager/checklist.js.map +1 -0
- package/build/components/block-manager/index.js +108 -0
- package/build/components/block-manager/index.js.map +1 -0
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu/index.js.map +1 -1
- package/build/components/block-toolbar/index.js +7 -2
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-toolbar/switch-section-style.js +105 -0
- package/build/components/block-toolbar/switch-section-style.js.map +1 -0
- package/build/components/collab/block-comment-icon-slot.js +2 -6
- package/build/components/collab/block-comment-icon-slot.js.map +1 -1
- package/build/components/collab/block-comment-icon-toolbar-slot.js +2 -6
- package/build/components/collab/block-comment-icon-toolbar-slot.js.map +1 -1
- package/build/components/color-palette/with-color-context.js +4 -2
- package/build/components/color-palette/with-color-context.js.map +1 -1
- package/build/components/font-family/index.js +14 -13
- package/build/components/font-family/index.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +1 -1
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/iframe/index.js +140 -23
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js +1 -5
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build/components/inserter/category-tabs/index.js +7 -8
- package/build/components/inserter/category-tabs/index.js.map +1 -1
- package/build/components/inserter-draggable-blocks/index.js +2 -1
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/inspector-controls/slot.js +7 -4
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.js +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.js +4 -4
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.js.map +1 -1
- package/build/components/media-placeholder/index.js +29 -21
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/hooks/border.js +3 -3
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color.js +1 -1
- package/build/hooks/color.js.map +1 -1
- package/build/hooks/dimensions.js +2 -2
- package/build/hooks/dimensions.js.map +1 -1
- package/build/hooks/style.js +6 -6
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/supports.js +1 -1
- package/build/hooks/supports.js.map +1 -1
- package/build/hooks/typography.js +1 -1
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/utils.js +1 -1
- package/build/hooks/utils.js.map +1 -1
- package/build/layouts/flex.js +11 -9
- package/build/layouts/flex.js.map +1 -1
- package/build/private-apis.js +4 -4
- package/build/private-apis.js.map +1 -1
- package/build/store/private-selectors.js +1 -1
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/selectors.js +3 -0
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/block-controls/slot.js +6 -3
- package/build-module/components/block-controls/slot.js.map +1 -1
- package/build-module/components/block-inspector/index.js +1 -2
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-lock/modal.js +1 -1
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-manager/category.js +71 -0
- package/build-module/components/block-manager/category.js.map +1 -0
- package/build-module/components/block-manager/checklist.js +32 -0
- package/build-module/components/block-manager/checklist.js.map +1 -0
- package/build-module/components/block-manager/index.js +102 -0
- package/build-module/components/block-manager/index.js.map +1 -0
- 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/index.js +2 -2
- package/build-module/components/block-settings-menu/index.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +7 -2
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-toolbar/switch-section-style.js +97 -0
- package/build-module/components/block-toolbar/switch-section-style.js.map +1 -0
- package/build-module/components/collab/block-comment-icon-slot.js +2 -6
- package/build-module/components/collab/block-comment-icon-slot.js.map +1 -1
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js +2 -6
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js.map +1 -1
- package/build-module/components/color-palette/with-color-context.js +4 -2
- package/build-module/components/color-palette/with-color-context.js.map +1 -1
- package/build-module/components/font-family/index.js +15 -14
- package/build-module/components/font-family/index.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/iframe/index.js +141 -24
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +1 -5
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build-module/components/inserter/category-tabs/index.js +8 -9
- package/build-module/components/inserter/category-tabs/index.js.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.js +2 -1
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js +7 -4
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.js +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js +4 -4
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +29 -21
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/hooks/border.js +3 -3
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color.js +1 -1
- package/build-module/hooks/color.js.map +1 -1
- package/build-module/hooks/dimensions.js +2 -2
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/style.js +6 -6
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/supports.js +1 -1
- package/build-module/hooks/supports.js.map +1 -1
- package/build-module/hooks/typography.js +1 -1
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/utils.js +1 -1
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/layouts/flex.js +11 -9
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/private-apis.js +6 -6
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/private-selectors.js +1 -1
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/selectors.js +3 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/content-rtl.css +23 -9
- package/build-style/content.css +23 -9
- package/build-style/style-rtl.css +78 -0
- package/build-style/style.css +78 -0
- package/package.json +31 -31
- package/src/components/block-controls/slot.js +5 -3
- package/src/components/block-inspector/index.js +0 -2
- package/src/components/block-lock/modal.js +1 -1
- package/src/components/block-manager/category.js +102 -0
- package/src/components/block-manager/checklist.js +34 -0
- package/src/components/block-manager/index.js +127 -0
- package/src/components/block-manager/style.scss +82 -0
- package/src/components/block-mover/README.md +15 -8
- package/src/components/block-mover/stories/index.story.js +73 -71
- package/src/components/block-mover/style.scss +3 -0
- package/src/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/src/components/block-settings-menu/index.js +2 -2
- package/src/components/block-toolbar/index.js +6 -0
- package/src/components/block-toolbar/switch-section-style.js +115 -0
- package/src/components/collab/block-comment-icon-slot.js +2 -6
- package/src/components/collab/block-comment-icon-toolbar-slot.js +3 -5
- package/src/components/color-palette/with-color-context.js +25 -7
- package/src/components/font-family/index.js +13 -13
- package/src/components/global-styles/test/use-global-styles-output.js +1 -1
- package/src/components/global-styles/use-global-styles-output.js +1 -1
- package/src/components/iframe/content.scss +16 -3
- package/src/components/iframe/index.js +187 -44
- package/src/components/inserter/block-patterns-tab/pattern-category-previews.js +7 -16
- package/src/components/inserter/category-tabs/index.js +8 -9
- package/src/components/inserter-draggable-blocks/index.js +10 -1
- package/src/components/inspector-controls/README.md +2 -0
- package/src/components/inspector-controls/slot.js +6 -4
- package/src/components/inspector-controls-tabs/position-controls-panel.js +1 -3
- package/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js +10 -10
- package/src/components/media-placeholder/index.js +37 -33
- package/src/components/provider/test/use-block-sync.js +3 -1
- package/src/components/rich-text/content.scss +15 -10
- package/src/hooks/border.js +3 -9
- package/src/hooks/color.js +1 -1
- package/src/hooks/dimensions.js +2 -2
- package/src/hooks/style.js +6 -12
- package/src/hooks/supports.js +1 -1
- package/src/hooks/test/style.js +1 -2
- package/src/hooks/typography.js +1 -1
- package/src/hooks/utils.js +1 -1
- package/src/layouts/flex.js +26 -18
- package/src/private-apis.js +6 -6
- package/src/store/private-selectors.js +1 -1
- package/src/store/selectors.js +3 -0
- package/src/store/test/selectors.js +87 -58
- package/src/style.scss +1 -0
- package/build/components/block-info-slot-fill/index.js +0 -39
- package/build/components/block-info-slot-fill/index.js.map +0 -1
- package/build-module/components/block-info-slot-fill/index.js +0 -32
- package/build-module/components/block-info-slot-fill/index.js.map +0 -1
- package/src/components/block-info-slot-fill/index.js +0 -27
|
@@ -777,7 +777,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
777
777
|
|
|
778
778
|
.block-editor-iframe__html {
|
|
779
779
|
transform-origin: top center;
|
|
780
|
-
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s;
|
|
780
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s, translate 0s;
|
|
781
781
|
}
|
|
782
782
|
@media (prefers-reduced-motion: reduce) {
|
|
783
783
|
.block-editor-iframe__html {
|
|
@@ -786,7 +786,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
.block-editor-iframe__html.zoom-out-animation {
|
|
789
|
-
|
|
789
|
+
position: fixed;
|
|
790
|
+
right: 0;
|
|
791
|
+
left: 0;
|
|
792
|
+
top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
|
|
793
|
+
bottom: 0;
|
|
794
|
+
translate: 0 calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0) - var(--wp-block-editor-iframe-zoom-out-scroll-top-next, 0));
|
|
795
|
+
overflow-y: scroll;
|
|
796
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, top 0s, bottom 0s, left 0s, right 0s;
|
|
790
797
|
}
|
|
791
798
|
@media (prefers-reduced-motion: reduce) {
|
|
792
799
|
.block-editor-iframe__html.zoom-out-animation {
|
|
@@ -860,13 +867,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
860
867
|
.rich-text:focus {
|
|
861
868
|
outline: none;
|
|
862
869
|
}
|
|
863
|
-
.rich-text:focus [data-rich-text-format-boundary] {
|
|
864
|
-
border-radius: 2px;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
.block-editor-rich-text__editable > p:first-child {
|
|
868
|
-
margin-top: 0;
|
|
869
|
-
}
|
|
870
870
|
|
|
871
871
|
figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before {
|
|
872
872
|
opacity: 0.8;
|
|
@@ -880,6 +880,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
880
880
|
background: yellow;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
+
[data-rich-text-comment],
|
|
884
|
+
[data-rich-text-format-boundary] {
|
|
885
|
+
border-radius: 2px;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
[data-rich-text-comment] {
|
|
889
|
+
background-color: currentColor;
|
|
890
|
+
}
|
|
891
|
+
[data-rich-text-comment] span {
|
|
892
|
+
filter: invert(100%);
|
|
893
|
+
color: currentColor;
|
|
894
|
+
padding: 0 2px;
|
|
895
|
+
}
|
|
896
|
+
|
|
883
897
|
.block-editor-warning {
|
|
884
898
|
align-items: center;
|
|
885
899
|
display: flex;
|
package/build-style/content.css
CHANGED
|
@@ -777,7 +777,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
777
777
|
|
|
778
778
|
.block-editor-iframe__html {
|
|
779
779
|
transform-origin: top center;
|
|
780
|
-
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s;
|
|
780
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s, translate 0s;
|
|
781
781
|
}
|
|
782
782
|
@media (prefers-reduced-motion: reduce) {
|
|
783
783
|
.block-editor-iframe__html {
|
|
@@ -786,7 +786,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
.block-editor-iframe__html.zoom-out-animation {
|
|
789
|
-
|
|
789
|
+
position: fixed;
|
|
790
|
+
left: 0;
|
|
791
|
+
right: 0;
|
|
792
|
+
top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
|
|
793
|
+
bottom: 0;
|
|
794
|
+
translate: 0 calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0) - var(--wp-block-editor-iframe-zoom-out-scroll-top-next, 0));
|
|
795
|
+
overflow-y: scroll;
|
|
796
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, top 0s, bottom 0s, right 0s, left 0s;
|
|
790
797
|
}
|
|
791
798
|
@media (prefers-reduced-motion: reduce) {
|
|
792
799
|
.block-editor-iframe__html.zoom-out-animation {
|
|
@@ -860,13 +867,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
860
867
|
.rich-text:focus {
|
|
861
868
|
outline: none;
|
|
862
869
|
}
|
|
863
|
-
.rich-text:focus [data-rich-text-format-boundary] {
|
|
864
|
-
border-radius: 2px;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
.block-editor-rich-text__editable > p:first-child {
|
|
868
|
-
margin-top: 0;
|
|
869
|
-
}
|
|
870
870
|
|
|
871
871
|
figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before {
|
|
872
872
|
opacity: 0.8;
|
|
@@ -880,6 +880,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
880
880
|
background: yellow;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
+
[data-rich-text-comment],
|
|
884
|
+
[data-rich-text-format-boundary] {
|
|
885
|
+
border-radius: 2px;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
[data-rich-text-comment] {
|
|
889
|
+
background-color: currentColor;
|
|
890
|
+
}
|
|
891
|
+
[data-rich-text-comment] span {
|
|
892
|
+
filter: invert(100%);
|
|
893
|
+
color: currentColor;
|
|
894
|
+
padding: 0 2px;
|
|
895
|
+
}
|
|
896
|
+
|
|
883
897
|
.block-editor-warning {
|
|
884
898
|
align-items: center;
|
|
885
899
|
display: flex;
|
|
@@ -766,6 +766,81 @@ iframe[name=editor-canvas] {
|
|
|
766
766
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02);
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
+
.block-editor-block-manager__no-results {
|
|
770
|
+
font-style: italic;
|
|
771
|
+
padding: 24px 0;
|
|
772
|
+
text-align: center;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.block-editor-block-manager__search {
|
|
776
|
+
margin: 16px 0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.block-editor-block-manager__disabled-blocks-count {
|
|
780
|
+
border: 1px solid #ddd;
|
|
781
|
+
border-width: 1px 0;
|
|
782
|
+
box-shadow: 32px 0 0 0 #fff, -32px 0 0 0 #fff;
|
|
783
|
+
padding: 8px;
|
|
784
|
+
background-color: #fff;
|
|
785
|
+
text-align: center;
|
|
786
|
+
position: sticky;
|
|
787
|
+
top: -5px;
|
|
788
|
+
z-index: 2;
|
|
789
|
+
}
|
|
790
|
+
.block-editor-block-manager__disabled-blocks-count ~ .block-editor-block-manager__results .block-editor-block-manager__category-title {
|
|
791
|
+
top: 31px;
|
|
792
|
+
}
|
|
793
|
+
.block-editor-block-manager__disabled-blocks-count .is-link {
|
|
794
|
+
margin-right: 12px;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.block-editor-block-manager__category {
|
|
798
|
+
margin: 0 0 24px 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.block-editor-block-manager__category-title {
|
|
802
|
+
position: sticky;
|
|
803
|
+
top: -4px;
|
|
804
|
+
padding: 16px 0;
|
|
805
|
+
background-color: #fff;
|
|
806
|
+
z-index: 1;
|
|
807
|
+
}
|
|
808
|
+
.block-editor-block-manager__category-title .components-checkbox-control__label {
|
|
809
|
+
font-weight: 600;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.block-editor-block-manager__checklist {
|
|
813
|
+
margin-top: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.block-editor-block-manager__category-title,
|
|
817
|
+
.block-editor-block-manager__checklist-item {
|
|
818
|
+
border-bottom: 1px solid #ddd;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.block-editor-block-manager__checklist-item {
|
|
822
|
+
display: flex;
|
|
823
|
+
justify-content: space-between;
|
|
824
|
+
align-items: center;
|
|
825
|
+
margin-bottom: 0;
|
|
826
|
+
padding: 8px 16px 8px 0;
|
|
827
|
+
}
|
|
828
|
+
.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container {
|
|
829
|
+
margin: 0 8px;
|
|
830
|
+
}
|
|
831
|
+
.block-editor-block-manager__checklist-item .block-editor-block-icon {
|
|
832
|
+
margin-left: 10px;
|
|
833
|
+
fill: #1e1e1e;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.block-editor-block-manager__results {
|
|
837
|
+
border-top: 1px solid #ddd;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.block-editor-block-manager__disabled-blocks-count + .block-editor-block-manager__results {
|
|
841
|
+
border-top-width: 0;
|
|
842
|
+
}
|
|
843
|
+
|
|
769
844
|
.block-editor-block-mover__move-button-container {
|
|
770
845
|
display: flex;
|
|
771
846
|
padding: 0;
|
|
@@ -827,6 +902,9 @@ iframe[name=editor-canvas] {
|
|
|
827
902
|
}
|
|
828
903
|
}
|
|
829
904
|
|
|
905
|
+
.components-button.block-editor-block-mover-button {
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
}
|
|
830
908
|
.components-button.block-editor-block-mover-button::before {
|
|
831
909
|
content: "";
|
|
832
910
|
position: absolute;
|
package/build-style/style.css
CHANGED
|
@@ -766,6 +766,81 @@ iframe[name=editor-canvas] {
|
|
|
766
766
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02);
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
+
.block-editor-block-manager__no-results {
|
|
770
|
+
font-style: italic;
|
|
771
|
+
padding: 24px 0;
|
|
772
|
+
text-align: center;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.block-editor-block-manager__search {
|
|
776
|
+
margin: 16px 0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.block-editor-block-manager__disabled-blocks-count {
|
|
780
|
+
border: 1px solid #ddd;
|
|
781
|
+
border-width: 1px 0;
|
|
782
|
+
box-shadow: -32px 0 0 0 #fff, 32px 0 0 0 #fff;
|
|
783
|
+
padding: 8px;
|
|
784
|
+
background-color: #fff;
|
|
785
|
+
text-align: center;
|
|
786
|
+
position: sticky;
|
|
787
|
+
top: -5px;
|
|
788
|
+
z-index: 2;
|
|
789
|
+
}
|
|
790
|
+
.block-editor-block-manager__disabled-blocks-count ~ .block-editor-block-manager__results .block-editor-block-manager__category-title {
|
|
791
|
+
top: 31px;
|
|
792
|
+
}
|
|
793
|
+
.block-editor-block-manager__disabled-blocks-count .is-link {
|
|
794
|
+
margin-left: 12px;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.block-editor-block-manager__category {
|
|
798
|
+
margin: 0 0 24px 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.block-editor-block-manager__category-title {
|
|
802
|
+
position: sticky;
|
|
803
|
+
top: -4px;
|
|
804
|
+
padding: 16px 0;
|
|
805
|
+
background-color: #fff;
|
|
806
|
+
z-index: 1;
|
|
807
|
+
}
|
|
808
|
+
.block-editor-block-manager__category-title .components-checkbox-control__label {
|
|
809
|
+
font-weight: 600;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.block-editor-block-manager__checklist {
|
|
813
|
+
margin-top: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.block-editor-block-manager__category-title,
|
|
817
|
+
.block-editor-block-manager__checklist-item {
|
|
818
|
+
border-bottom: 1px solid #ddd;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.block-editor-block-manager__checklist-item {
|
|
822
|
+
display: flex;
|
|
823
|
+
justify-content: space-between;
|
|
824
|
+
align-items: center;
|
|
825
|
+
margin-bottom: 0;
|
|
826
|
+
padding: 8px 0 8px 16px;
|
|
827
|
+
}
|
|
828
|
+
.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container {
|
|
829
|
+
margin: 0 8px;
|
|
830
|
+
}
|
|
831
|
+
.block-editor-block-manager__checklist-item .block-editor-block-icon {
|
|
832
|
+
margin-right: 10px;
|
|
833
|
+
fill: #1e1e1e;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.block-editor-block-manager__results {
|
|
837
|
+
border-top: 1px solid #ddd;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.block-editor-block-manager__disabled-blocks-count + .block-editor-block-manager__results {
|
|
841
|
+
border-top-width: 0;
|
|
842
|
+
}
|
|
843
|
+
|
|
769
844
|
.block-editor-block-mover__move-button-container {
|
|
770
845
|
display: flex;
|
|
771
846
|
padding: 0;
|
|
@@ -827,6 +902,9 @@ iframe[name=editor-canvas] {
|
|
|
827
902
|
}
|
|
828
903
|
}
|
|
829
904
|
|
|
905
|
+
.components-button.block-editor-block-mover-button {
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
}
|
|
830
908
|
.components-button.block-editor-block-mover-button::before {
|
|
831
909
|
content: "";
|
|
832
910
|
position: absolute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "14.7.0",
|
|
3
|
+
"version": "14.7.1-next.082ed6819.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,37 +37,37 @@
|
|
|
37
37
|
"@emotion/react": "^11.7.1",
|
|
38
38
|
"@emotion/styled": "^11.6.0",
|
|
39
39
|
"@react-spring/web": "^9.4.5",
|
|
40
|
-
"@wordpress/a11y": "
|
|
41
|
-
"@wordpress/api-fetch": "
|
|
42
|
-
"@wordpress/blob": "
|
|
43
|
-
"@wordpress/block-serialization-default-parser": "
|
|
44
|
-
"@wordpress/blocks": "
|
|
45
|
-
"@wordpress/commands": "
|
|
40
|
+
"@wordpress/a11y": "^4.12.1-next.082ed6819.0",
|
|
41
|
+
"@wordpress/api-fetch": "^7.12.1-next.082ed6819.0",
|
|
42
|
+
"@wordpress/blob": "^4.12.1-next.082ed6819.0",
|
|
43
|
+
"@wordpress/block-serialization-default-parser": "^5.12.1-next.082ed6819.0",
|
|
44
|
+
"@wordpress/blocks": "^14.1.1-next.082ed6819.0",
|
|
45
|
+
"@wordpress/commands": "^1.12.1-next.082ed6819.0",
|
|
46
46
|
"@wordpress/components": "*",
|
|
47
|
-
"@wordpress/compose": "
|
|
47
|
+
"@wordpress/compose": "^7.12.1-next.082ed6819.0",
|
|
48
48
|
"@wordpress/data": "*",
|
|
49
|
-
"@wordpress/date": "
|
|
50
|
-
"@wordpress/deprecated": "
|
|
51
|
-
"@wordpress/dom": "
|
|
52
|
-
"@wordpress/element": "
|
|
53
|
-
"@wordpress/escape-html": "
|
|
54
|
-
"@wordpress/hooks": "
|
|
55
|
-
"@wordpress/html-entities": "
|
|
56
|
-
"@wordpress/i18n": "
|
|
57
|
-
"@wordpress/icons": "
|
|
58
|
-
"@wordpress/is-shallow-equal": "
|
|
59
|
-
"@wordpress/keyboard-shortcuts": "
|
|
60
|
-
"@wordpress/keycodes": "
|
|
61
|
-
"@wordpress/notices": "
|
|
62
|
-
"@wordpress/preferences": "
|
|
63
|
-
"@wordpress/priority-queue": "
|
|
64
|
-
"@wordpress/private-apis": "
|
|
65
|
-
"@wordpress/rich-text": "
|
|
66
|
-
"@wordpress/style-engine": "
|
|
67
|
-
"@wordpress/token-list": "
|
|
68
|
-
"@wordpress/url": "
|
|
69
|
-
"@wordpress/warning": "
|
|
70
|
-
"@wordpress/wordcount": "
|
|
49
|
+
"@wordpress/date": "^5.12.1-next.082ed6819.0",
|
|
50
|
+
"@wordpress/deprecated": "^4.12.1-next.082ed6819.0",
|
|
51
|
+
"@wordpress/dom": "^4.12.1-next.082ed6819.0",
|
|
52
|
+
"@wordpress/element": "^6.12.1-next.082ed6819.0",
|
|
53
|
+
"@wordpress/escape-html": "^3.12.1-next.082ed6819.0",
|
|
54
|
+
"@wordpress/hooks": "^4.12.1-next.082ed6819.0",
|
|
55
|
+
"@wordpress/html-entities": "^4.12.1-next.082ed6819.0",
|
|
56
|
+
"@wordpress/i18n": "^5.12.1-next.082ed6819.0",
|
|
57
|
+
"@wordpress/icons": "^10.12.1-next.082ed6819.0",
|
|
58
|
+
"@wordpress/is-shallow-equal": "^5.12.1-next.082ed6819.0",
|
|
59
|
+
"@wordpress/keyboard-shortcuts": "^5.12.1-next.082ed6819.0",
|
|
60
|
+
"@wordpress/keycodes": "^4.12.1-next.082ed6819.0",
|
|
61
|
+
"@wordpress/notices": "^5.12.1-next.082ed6819.0",
|
|
62
|
+
"@wordpress/preferences": "^4.12.1-next.082ed6819.0",
|
|
63
|
+
"@wordpress/priority-queue": "^3.12.1-next.082ed6819.0",
|
|
64
|
+
"@wordpress/private-apis": "^1.12.1-next.082ed6819.0",
|
|
65
|
+
"@wordpress/rich-text": "^7.12.1-next.082ed6819.0",
|
|
66
|
+
"@wordpress/style-engine": "^2.12.1-next.082ed6819.0",
|
|
67
|
+
"@wordpress/token-list": "^3.12.1-next.082ed6819.0",
|
|
68
|
+
"@wordpress/url": "^4.12.1-next.082ed6819.0",
|
|
69
|
+
"@wordpress/warning": "^3.12.1-next.082ed6819.0",
|
|
70
|
+
"@wordpress/wordcount": "^4.12.1-next.082ed6819.0",
|
|
71
71
|
"change-case": "^4.1.2",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
73
73
|
"colord": "^2.7.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "2bb7bad15ddb8e88210fab7d4a1ef1565466e424"
|
|
94
94
|
}
|
|
@@ -31,9 +31,10 @@ export default function BlockControlsSlot( { group = 'default', ...props } ) {
|
|
|
31
31
|
[ toolbarState, contextState ]
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
-
const
|
|
35
|
-
const fills = useSlotFills(
|
|
36
|
-
|
|
34
|
+
const slotFill = groups[ group ];
|
|
35
|
+
const fills = useSlotFills( slotFill.name );
|
|
36
|
+
|
|
37
|
+
if ( ! slotFill ) {
|
|
37
38
|
warning( `Unknown BlockControls group "${ group }" provided.` );
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
@@ -42,6 +43,7 @@ export default function BlockControlsSlot( { group = 'default', ...props } ) {
|
|
|
42
43
|
return null;
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
const { Slot } = slotFill;
|
|
45
47
|
const slot = <Slot { ...props } bubblesVirtually fillProps={ fillProps } />;
|
|
46
48
|
|
|
47
49
|
if ( group === 'default' ) {
|
|
@@ -26,7 +26,6 @@ import useInspectorControlsTabs from '../inspector-controls-tabs/use-inspector-c
|
|
|
26
26
|
import AdvancedControls from '../inspector-controls-tabs/advanced-controls-panel';
|
|
27
27
|
import PositionControls from '../inspector-controls-tabs/position-controls-panel';
|
|
28
28
|
import useBlockInspectorAnimationSettings from './useBlockInspectorAnimationSettings';
|
|
29
|
-
import BlockInfo from '../block-info-slot-fill';
|
|
30
29
|
import BlockQuickNavigation from '../block-quick-navigation';
|
|
31
30
|
import { useBorderPanelLabel } from '../../hooks/border';
|
|
32
31
|
|
|
@@ -253,7 +252,6 @@ const BlockInspectorSingleBlock = ( {
|
|
|
253
252
|
className={ blockInformation.isSynced && 'is-synced' }
|
|
254
253
|
/>
|
|
255
254
|
<BlockVariationTransforms blockClientId={ clientId } />
|
|
256
|
-
<BlockInfo.Slot />
|
|
257
255
|
{ showTabs && (
|
|
258
256
|
<InspectorControlsTabs
|
|
259
257
|
hasBlockStyles={ hasBlockStyles }
|
|
@@ -24,7 +24,7 @@ import useBlockDisplayInformation from '../use-block-display-information';
|
|
|
24
24
|
import { store as blockEditorStore } from '../../store';
|
|
25
25
|
|
|
26
26
|
// Entity based blocks which allow edit locking
|
|
27
|
-
const ALLOWS_EDIT_LOCKING = [ 'core/
|
|
27
|
+
const ALLOWS_EDIT_LOCKING = [ 'core/navigation' ];
|
|
28
28
|
|
|
29
29
|
function getTemplateLockValue( lock ) {
|
|
30
30
|
// Prevents all operations.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useCallback } from '@wordpress/element';
|
|
5
|
+
import { useInstanceId } from '@wordpress/compose';
|
|
6
|
+
import { CheckboxControl } from '@wordpress/components';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal dependencies
|
|
10
|
+
*/
|
|
11
|
+
import BlockTypesChecklist from './checklist';
|
|
12
|
+
|
|
13
|
+
function BlockManagerCategory( {
|
|
14
|
+
title,
|
|
15
|
+
blockTypes,
|
|
16
|
+
selectedBlockTypes,
|
|
17
|
+
onChange,
|
|
18
|
+
} ) {
|
|
19
|
+
const instanceId = useInstanceId( BlockManagerCategory );
|
|
20
|
+
|
|
21
|
+
const toggleVisible = useCallback(
|
|
22
|
+
( blockType, nextIsChecked ) => {
|
|
23
|
+
if ( nextIsChecked ) {
|
|
24
|
+
onChange( [ ...selectedBlockTypes, blockType ] );
|
|
25
|
+
} else {
|
|
26
|
+
onChange(
|
|
27
|
+
selectedBlockTypes.filter(
|
|
28
|
+
( { name } ) => name !== blockType.name
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
[ selectedBlockTypes, onChange ]
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
const toggleAllVisible = useCallback(
|
|
37
|
+
( nextIsChecked ) => {
|
|
38
|
+
if ( nextIsChecked ) {
|
|
39
|
+
onChange( [
|
|
40
|
+
...selectedBlockTypes,
|
|
41
|
+
...blockTypes.filter(
|
|
42
|
+
( blockType ) =>
|
|
43
|
+
! selectedBlockTypes.find(
|
|
44
|
+
( { name } ) => name === blockType.name
|
|
45
|
+
)
|
|
46
|
+
),
|
|
47
|
+
] );
|
|
48
|
+
} else {
|
|
49
|
+
onChange(
|
|
50
|
+
selectedBlockTypes.filter(
|
|
51
|
+
( selectedBlockType ) =>
|
|
52
|
+
! blockTypes.find(
|
|
53
|
+
( { name } ) => name === selectedBlockType.name
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[ blockTypes, selectedBlockTypes, onChange ]
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
if ( ! blockTypes.length ) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const checkedBlockNames = blockTypes
|
|
67
|
+
.map( ( { name } ) => name )
|
|
68
|
+
.filter( ( type ) =>
|
|
69
|
+
( selectedBlockTypes ?? [] ).some(
|
|
70
|
+
( selectedBlockType ) => selectedBlockType.name === type
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
const titleId = 'block-editor-block-manager__category-title-' + instanceId;
|
|
75
|
+
|
|
76
|
+
const isAllChecked = checkedBlockNames.length === blockTypes.length;
|
|
77
|
+
const isIndeterminate = ! isAllChecked && checkedBlockNames.length > 0;
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div
|
|
81
|
+
role="group"
|
|
82
|
+
aria-labelledby={ titleId }
|
|
83
|
+
className="block-editor-block-manager__category"
|
|
84
|
+
>
|
|
85
|
+
<CheckboxControl
|
|
86
|
+
__nextHasNoMarginBottom
|
|
87
|
+
checked={ isAllChecked }
|
|
88
|
+
onChange={ toggleAllVisible }
|
|
89
|
+
className="block-editor-block-manager__category-title"
|
|
90
|
+
indeterminate={ isIndeterminate }
|
|
91
|
+
label={ <span id={ titleId }>{ title }</span> }
|
|
92
|
+
/>
|
|
93
|
+
<BlockTypesChecklist
|
|
94
|
+
blockTypes={ blockTypes }
|
|
95
|
+
value={ checkedBlockNames }
|
|
96
|
+
onItemChange={ toggleVisible }
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export default BlockManagerCategory;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { CheckboxControl } from '@wordpress/components';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import BlockIcon from '../block-icon';
|
|
10
|
+
|
|
11
|
+
function BlockTypesChecklist( { blockTypes, value, onItemChange } ) {
|
|
12
|
+
return (
|
|
13
|
+
<ul className="block-editor-block-manager__checklist">
|
|
14
|
+
{ blockTypes.map( ( blockType ) => (
|
|
15
|
+
<li
|
|
16
|
+
key={ blockType.name }
|
|
17
|
+
className="block-editor-block-manager__checklist-item"
|
|
18
|
+
>
|
|
19
|
+
<CheckboxControl
|
|
20
|
+
__nextHasNoMarginBottom
|
|
21
|
+
label={ blockType.title }
|
|
22
|
+
checked={ value.includes( blockType.name ) }
|
|
23
|
+
onChange={ ( ...args ) =>
|
|
24
|
+
onItemChange( blockType, ...args )
|
|
25
|
+
}
|
|
26
|
+
/>
|
|
27
|
+
<BlockIcon icon={ blockType.icon } />
|
|
28
|
+
</li>
|
|
29
|
+
) ) }
|
|
30
|
+
</ul>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default BlockTypesChecklist;
|