@wordpress/editor 14.10.0 → 14.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/build/bindings/post-meta.js +2 -1
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/collab-sidebar/add-comment.js +120 -0
- package/build/components/collab-sidebar/add-comment.js.map +1 -0
- package/build/components/collab-sidebar/comment-button-toolbar.js +37 -0
- package/build/components/collab-sidebar/comment-button-toolbar.js.map +1 -0
- package/build/components/collab-sidebar/comment-button.js +37 -0
- package/build/components/collab-sidebar/comment-button.js.map +1 -0
- package/build/components/collab-sidebar/comments.js +321 -0
- package/build/components/collab-sidebar/comments.js.map +1 -0
- package/build/components/collab-sidebar/constants.js +8 -0
- package/build/components/collab-sidebar/constants.js.map +1 -0
- package/build/components/collab-sidebar/index.js +272 -0
- package/build/components/collab-sidebar/index.js.map +1 -0
- package/build/components/collab-sidebar/utils.js +16 -0
- package/build/components/collab-sidebar/utils.js.map +1 -0
- package/build/components/commands/index.js +6 -6
- package/build/components/commands/index.js.map +1 -1
- package/build/components/document-bar/index.js +8 -7
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/document-tools/index.js +1 -5
- package/build/components/document-tools/index.js.map +1 -1
- package/build/components/editor-interface/index.js +3 -2
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/index.js +1 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js +3 -3
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build/components/global-styles-provider/index.js +13 -3
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/index.js +5 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +2 -2
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/page-attributes/parent.js +5 -5
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/plugin-more-menu-item/index.js +13 -11
- package/build/components/plugin-more-menu-item/index.js.map +1 -1
- package/build/components/plugin-preview-menu-item/index.js +15 -13
- package/build/components/plugin-preview-menu-item/index.js.map +1 -1
- package/build/components/plugin-sidebar/index.js +0 -15
- package/build/components/plugin-sidebar/index.js.map +1 -1
- package/build/components/post-actions/index.js +5 -5
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-author/panel.js +4 -4
- package/build/components/post-author/panel.js.map +1 -1
- package/build/components/post-card-panel/index.js +7 -36
- package/build/components/post-card-panel/index.js.map +1 -1
- package/build/components/post-content-information/index.js +1 -2
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-featured-image/index.js +26 -7
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-last-revision/index.js +1 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-schedule/label.js +1 -1
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +9 -1
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js +2 -2
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build/components/post-url/index.js +1 -1
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/panel.js +3 -3
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/preview-dropdown/index.js +0 -4
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.js +10 -12
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +1 -1
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/sidebar/header.js +2 -1
- package/build/components/sidebar/header.js.map +1 -1
- package/build/components/sidebar/index.js +3 -3
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/time-to-read/index.js +2 -2
- package/build/components/time-to-read/index.js.map +1 -1
- package/build/components/visual-editor/index.js +25 -27
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/components/visual-editor/use-zoom-out-mode-exit.js +52 -0
- package/build/components/visual-editor/use-zoom-out-mode-exit.js.map +1 -0
- package/build/components/zoom-out-toggle/index.js +37 -5
- package/build/components/zoom-out-toggle/index.js.map +1 -1
- package/build/dataviews/actions/duplicate-template-part.js +2 -2
- package/build/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build/store/actions.js +4 -3
- package/build/store/actions.js.map +1 -1
- package/build/store/private-actions.js +2 -2
- package/build/store/private-actions.js.map +1 -1
- package/build/store/selectors.js +3 -2
- package/build/store/selectors.js.map +1 -1
- package/build/utils/pageTypeBadge.js +51 -0
- package/build/utils/pageTypeBadge.js.map +1 -0
- package/build/utils/terms.js +2 -2
- package/build/utils/terms.js.map +1 -1
- package/build-module/bindings/post-meta.js +2 -1
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/collab-sidebar/add-comment.js +114 -0
- package/build-module/components/collab-sidebar/add-comment.js.map +1 -0
- package/build-module/components/collab-sidebar/comment-button-toolbar.js +30 -0
- package/build-module/components/collab-sidebar/comment-button-toolbar.js.map +1 -0
- package/build-module/components/collab-sidebar/comment-button.js +30 -0
- package/build-module/components/collab-sidebar/comment-button.js.map +1 -0
- package/build-module/components/collab-sidebar/comments.js +314 -0
- package/build-module/components/collab-sidebar/comments.js.map +1 -0
- package/build-module/components/collab-sidebar/constants.js +2 -0
- package/build-module/components/collab-sidebar/constants.js.map +1 -0
- package/build-module/components/collab-sidebar/index.js +264 -0
- package/build-module/components/collab-sidebar/index.js.map +1 -0
- package/build-module/components/collab-sidebar/utils.js +10 -0
- package/build-module/components/collab-sidebar/utils.js.map +1 -0
- package/build-module/components/commands/index.js +6 -6
- package/build-module/components/commands/index.js.map +1 -1
- package/build-module/components/document-bar/index.js +9 -8
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-tools/index.js +2 -6
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor-interface/index.js +3 -2
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +1 -1
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +3 -3
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +13 -3
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/index.js +5 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +2 -2
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +5 -5
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/plugin-more-menu-item/index.js +12 -10
- package/build-module/components/plugin-more-menu-item/index.js.map +1 -1
- package/build-module/components/plugin-preview-menu-item/index.js +14 -12
- package/build-module/components/plugin-preview-menu-item/index.js.map +1 -1
- package/build-module/components/plugin-sidebar/index.js +0 -15
- package/build-module/components/plugin-sidebar/index.js.map +1 -1
- package/build-module/components/post-actions/index.js +5 -5
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-author/panel.js +4 -4
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +8 -36
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +1 -2
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +26 -7
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +1 -1
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js +1 -1
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +12 -4
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js +2 -2
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build-module/components/post-url/index.js +1 -1
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/panel.js +3 -3
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +0 -4
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.js +10 -12
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +1 -1
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/sidebar/header.js +2 -1
- package/build-module/components/sidebar/header.js.map +1 -1
- package/build-module/components/sidebar/index.js +4 -4
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/time-to-read/index.js +2 -2
- package/build-module/components/time-to-read/index.js.map +1 -1
- package/build-module/components/visual-editor/index.js +26 -28
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/components/visual-editor/use-zoom-out-mode-exit.js +46 -0
- package/build-module/components/visual-editor/use-zoom-out-mode-exit.js.map +1 -0
- package/build-module/components/zoom-out-toggle/index.js +37 -5
- package/build-module/components/zoom-out-toggle/index.js.map +1 -1
- package/build-module/dataviews/actions/duplicate-template-part.js +3 -3
- package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build-module/store/actions.js +4 -3
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-actions.js +3 -3
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/selectors.js +3 -2
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/pageTypeBadge.js +45 -0
- package/build-module/utils/pageTypeBadge.js.map +1 -0
- package/build-module/utils/terms.js +2 -2
- package/build-module/utils/terms.js.map +1 -1
- package/build-style/style-rtl.css +96 -54
- package/build-style/style.css +96 -54
- package/build-types/bindings/post-meta.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-comment.d.ts +15 -0
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-button-toolbar.d.ts +5 -0
- package/build-types/components/collab-sidebar/comment-button-toolbar.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-button.d.ts +5 -0
- package/build-types/components/collab-sidebar/comment-button.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comments.d.ts +19 -0
- package/build-types/components/collab-sidebar/comments.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/constants.d.ts +2 -0
- package/build-types/components/collab-sidebar/constants.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/index.d.ts +5 -0
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/utils.d.ts +8 -0
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -0
- package/build-types/components/commands/index.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/document-tools/index.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/plugin-more-menu-item/index.d.ts +62 -2
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-preview-menu-item/index.d.ts +41 -2
- package/build-types/components/plugin-preview-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
- package/build-types/components/post-author/panel.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-zoom-out-mode-exit.d.ts +5 -0
- package/build-types/components/visual-editor/use-zoom-out-mode-exit.d.ts.map +1 -0
- package/build-types/components/zoom-out-toggle/index.d.ts +3 -1
- package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/pageTypeBadge.d.ts +5 -0
- package/build-types/utils/pageTypeBadge.d.ts.map +1 -0
- package/build-types/utils/terms.d.ts.map +1 -1
- package/package.json +38 -37
- package/src/bindings/post-meta.js +1 -0
- package/src/components/collab-sidebar/add-comment.js +124 -0
- package/src/components/collab-sidebar/comment-button-toolbar.js +29 -0
- package/src/components/collab-sidebar/comment-button.js +31 -0
- package/src/components/collab-sidebar/comments.js +404 -0
- package/src/components/collab-sidebar/constants.js +1 -0
- package/src/components/collab-sidebar/index.js +307 -0
- package/src/components/collab-sidebar/style.scss +111 -0
- package/src/components/collab-sidebar/utils.js +9 -0
- package/src/components/commands/index.js +9 -7
- package/src/components/document-bar/index.js +15 -7
- package/src/components/document-bar/style.scss +0 -4
- package/src/components/document-tools/index.js +1 -7
- package/src/components/editor-interface/index.js +4 -3
- package/src/components/entities-saved-states/index.js +2 -2
- package/src/components/global-keyboard-shortcuts/register-shortcuts.js +3 -3
- package/src/components/global-styles-provider/index.js +20 -6
- package/src/components/header/index.js +3 -1
- package/src/components/inserter-sidebar/index.js +3 -6
- package/src/components/page-attributes/parent.js +6 -4
- package/src/components/plugin-more-menu-item/index.js +12 -11
- package/src/components/plugin-preview-menu-item/index.js +14 -13
- package/src/components/plugin-sidebar/index.js +0 -13
- package/src/components/post-actions/index.js +8 -11
- package/src/components/post-author/panel.js +4 -2
- package/src/components/post-card-panel/index.js +9 -43
- package/src/components/post-card-panel/style.scss +1 -9
- package/src/components/post-content-information/index.js +1 -1
- package/src/components/post-featured-image/index.js +31 -16
- package/src/components/post-featured-image/style.scss +5 -2
- package/src/components/post-last-revision/index.js +1 -1
- package/src/components/post-schedule/label.js +1 -1
- package/src/components/post-sticky/test/index.js +6 -6
- package/src/components/post-taxonomies/flat-term-selector.js +15 -4
- package/src/components/post-taxonomies/hierarchical-term-selector.js +2 -2
- package/src/components/post-url/index.js +1 -1
- package/src/components/post-url/panel.js +4 -2
- package/src/components/preview-dropdown/index.js +0 -2
- package/src/components/provider/index.js +31 -24
- package/src/components/provider/use-block-editor-settings.js +1 -1
- package/src/components/sidebar/header.js +3 -2
- package/src/components/sidebar/index.js +5 -3
- package/src/components/time-to-read/index.js +3 -3
- package/src/components/visual-editor/index.js +32 -41
- package/src/components/visual-editor/use-zoom-out-mode-exit.js +49 -0
- package/src/components/zoom-out-toggle/index.js +39 -5
- package/src/dataviews/actions/duplicate-template-part.tsx +3 -3
- package/src/store/actions.js +5 -3
- package/src/store/private-actions.js +3 -3
- package/src/store/selectors.js +3 -2
- package/src/style.scss +1 -0
- package/src/utils/pageTypeBadge.js +41 -0
- package/src/utils/terms.js +4 -2
- package/src/utils/test/terms.js +3 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -117,23 +117,6 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.components-panel__header.interface-complementary-area-header__small {
|
|
121
|
-
background: #fff;
|
|
122
|
-
padding-left: 4px;
|
|
123
|
-
}
|
|
124
|
-
.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title {
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
text-overflow: ellipsis;
|
|
127
|
-
white-space: nowrap;
|
|
128
|
-
width: 100%;
|
|
129
|
-
margin: 0;
|
|
130
|
-
}
|
|
131
|
-
@media (min-width: 782px) {
|
|
132
|
-
.components-panel__header.interface-complementary-area-header__small {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
120
|
.interface-complementary-area-header {
|
|
138
121
|
background: #fff;
|
|
139
122
|
padding-left: 12px;
|
|
@@ -142,18 +125,6 @@
|
|
|
142
125
|
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
143
126
|
margin: 0;
|
|
144
127
|
}
|
|
145
|
-
.interface-complementary-area-header .components-button.has-icon {
|
|
146
|
-
display: none;
|
|
147
|
-
margin-right: auto;
|
|
148
|
-
}
|
|
149
|
-
.interface-complementary-area-header .components-button.has-icon ~ .components-button {
|
|
150
|
-
margin-right: 0;
|
|
151
|
-
}
|
|
152
|
-
@media (min-width: 782px) {
|
|
153
|
-
.interface-complementary-area-header .components-button.has-icon {
|
|
154
|
-
display: flex;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
128
|
|
|
158
129
|
.interface-complementary-area {
|
|
159
130
|
background: #fff;
|
|
@@ -182,12 +153,7 @@
|
|
|
182
153
|
z-index: 1;
|
|
183
154
|
}
|
|
184
155
|
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
185
|
-
top:
|
|
186
|
-
}
|
|
187
|
-
@media (min-width: 782px) {
|
|
188
|
-
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
189
|
-
top: 0;
|
|
190
|
-
}
|
|
156
|
+
top: 0;
|
|
191
157
|
}
|
|
192
158
|
.interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
|
|
193
159
|
margin-top: 0;
|
|
@@ -591,6 +557,97 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
591
557
|
border-top-width: 0;
|
|
592
558
|
}
|
|
593
559
|
|
|
560
|
+
.editor-collab-sidebar-panel {
|
|
561
|
+
padding: 16px;
|
|
562
|
+
}
|
|
563
|
+
.editor-collab-sidebar-panel__thread {
|
|
564
|
+
position: relative;
|
|
565
|
+
padding: 16px;
|
|
566
|
+
border-radius: 8px;
|
|
567
|
+
border: 1px solid #ddd;
|
|
568
|
+
background-color: #f0f0f0;
|
|
569
|
+
margin-bottom: 16px;
|
|
570
|
+
}
|
|
571
|
+
.editor-collab-sidebar-panel__active-thread {
|
|
572
|
+
border: 1.5px solid #3858e9;
|
|
573
|
+
background-color: #fff;
|
|
574
|
+
box-shadow: 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.102);
|
|
575
|
+
}
|
|
576
|
+
.editor-collab-sidebar-panel__comment-field {
|
|
577
|
+
flex: 1;
|
|
578
|
+
}
|
|
579
|
+
.editor-collab-sidebar-panel__child-thread {
|
|
580
|
+
margin-top: 15px;
|
|
581
|
+
}
|
|
582
|
+
.editor-collab-sidebar-panel__user-name {
|
|
583
|
+
font-size: 12px;
|
|
584
|
+
font-weight: 400;
|
|
585
|
+
line-height: 16px;
|
|
586
|
+
text-align: right;
|
|
587
|
+
color: #757575;
|
|
588
|
+
text-transform: capitalize;
|
|
589
|
+
}
|
|
590
|
+
.editor-collab-sidebar-panel__user-time {
|
|
591
|
+
font-size: 12px;
|
|
592
|
+
font-weight: 400;
|
|
593
|
+
line-height: 16px;
|
|
594
|
+
text-align: right;
|
|
595
|
+
color: #757575;
|
|
596
|
+
}
|
|
597
|
+
.editor-collab-sidebar-panel__user-comment {
|
|
598
|
+
font-size: 13px;
|
|
599
|
+
font-weight: 400;
|
|
600
|
+
line-height: 20px;
|
|
601
|
+
text-align: right;
|
|
602
|
+
color: #1e1e1e;
|
|
603
|
+
}
|
|
604
|
+
.editor-collab-sidebar-panel__user-comment p {
|
|
605
|
+
margin-bottom: 0;
|
|
606
|
+
}
|
|
607
|
+
.editor-collab-sidebar-panel__user-avatar {
|
|
608
|
+
border-radius: 50%;
|
|
609
|
+
flex-shrink: 0;
|
|
610
|
+
}
|
|
611
|
+
.editor-collab-sidebar-panel__thread-overlay {
|
|
612
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
613
|
+
width: 100%;
|
|
614
|
+
height: 100%;
|
|
615
|
+
text-align: center;
|
|
616
|
+
position: absolute;
|
|
617
|
+
top: 0;
|
|
618
|
+
right: 0;
|
|
619
|
+
z-index: 1;
|
|
620
|
+
padding: 15px;
|
|
621
|
+
border-radius: 8px;
|
|
622
|
+
color: #fff;
|
|
623
|
+
}
|
|
624
|
+
.editor-collab-sidebar-panel__thread-overlay p {
|
|
625
|
+
margin-bottom: 15px;
|
|
626
|
+
}
|
|
627
|
+
.editor-collab-sidebar-panel__thread-overlay button {
|
|
628
|
+
padding: 4px 10px;
|
|
629
|
+
color: #fff;
|
|
630
|
+
}
|
|
631
|
+
.editor-collab-sidebar-panel__comment-status {
|
|
632
|
+
margin-right: auto;
|
|
633
|
+
}
|
|
634
|
+
.editor-collab-sidebar-panel__comment-status button.has-icon:not(.has-text) {
|
|
635
|
+
min-width: 24px;
|
|
636
|
+
padding: 0;
|
|
637
|
+
width: 24px;
|
|
638
|
+
height: 24px;
|
|
639
|
+
flex-shrink: 0;
|
|
640
|
+
}
|
|
641
|
+
.editor-collab-sidebar-panel__comment-dropdown-menu {
|
|
642
|
+
flex-shrink: 0;
|
|
643
|
+
}
|
|
644
|
+
.editor-collab-sidebar-panel__comment-dropdown-menu button.has-icon {
|
|
645
|
+
min-width: 24px;
|
|
646
|
+
padding: 0;
|
|
647
|
+
width: 24px;
|
|
648
|
+
height: 24px;
|
|
649
|
+
}
|
|
650
|
+
|
|
594
651
|
.editor-collapsible-block-toolbar {
|
|
595
652
|
overflow: hidden;
|
|
596
653
|
display: flex;
|
|
@@ -775,9 +832,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
775
832
|
overflow: hidden;
|
|
776
833
|
text-overflow: ellipsis;
|
|
777
834
|
}
|
|
778
|
-
.editor-document-bar.is-global .editor-document-bar__post-title {
|
|
779
|
-
color: var(--wp-block-synced-color);
|
|
780
|
-
}
|
|
781
835
|
|
|
782
836
|
.editor-document-bar__post-type-label {
|
|
783
837
|
flex: 0;
|
|
@@ -1510,16 +1564,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1510
1564
|
margin-bottom: 8px;
|
|
1511
1565
|
}
|
|
1512
1566
|
|
|
1513
|
-
.editor-post-card-panel__icon.is-sync {
|
|
1514
|
-
fill: var(--wp-block-synced-color);
|
|
1515
|
-
}
|
|
1516
|
-
.editor-post-card-panel__icon.is-sync + .editor-post-card-panel__title {
|
|
1517
|
-
color: var(--wp-block-synced-color);
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
1567
|
.editor-post-card-panel__title-badge {
|
|
1521
1568
|
background: #f0f0f0;
|
|
1522
|
-
color: #
|
|
1569
|
+
color: #2f2f2f;
|
|
1523
1570
|
padding: 0 4px;
|
|
1524
1571
|
border-radius: 2px;
|
|
1525
1572
|
font-size: 12px;
|
|
@@ -1592,7 +1639,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1592
1639
|
.editor-post-featured-image__preview {
|
|
1593
1640
|
width: 100%;
|
|
1594
1641
|
padding: 0;
|
|
1595
|
-
transition: all 0.1s ease-out;
|
|
1596
1642
|
box-shadow: 0 0 0 0 var(--wp-admin-theme-color);
|
|
1597
1643
|
overflow: hidden;
|
|
1598
1644
|
outline-offset: -1px;
|
|
@@ -1600,13 +1646,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1600
1646
|
display: flex;
|
|
1601
1647
|
justify-content: center;
|
|
1602
1648
|
}
|
|
1603
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1604
|
-
.editor-post-featured-image__toggle,
|
|
1605
|
-
.editor-post-featured-image__preview {
|
|
1606
|
-
transition-duration: 0s;
|
|
1607
|
-
transition-delay: 0s;
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
1649
|
|
|
1611
1650
|
.editor-post-featured-image__preview {
|
|
1612
1651
|
height: auto !important;
|
|
@@ -1622,6 +1661,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1622
1661
|
.editor-post-featured-image__toggle {
|
|
1623
1662
|
box-shadow: inset 0 0 0 1px #ccc;
|
|
1624
1663
|
}
|
|
1664
|
+
.editor-post-featured-image__toggle:focus:not(:disabled) {
|
|
1665
|
+
box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1666
|
+
}
|
|
1625
1667
|
|
|
1626
1668
|
.editor-post-featured-image__actions {
|
|
1627
1669
|
bottom: 0;
|
package/build-style/style.css
CHANGED
|
@@ -117,23 +117,6 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.components-panel__header.interface-complementary-area-header__small {
|
|
121
|
-
background: #fff;
|
|
122
|
-
padding-right: 4px;
|
|
123
|
-
}
|
|
124
|
-
.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title {
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
text-overflow: ellipsis;
|
|
127
|
-
white-space: nowrap;
|
|
128
|
-
width: 100%;
|
|
129
|
-
margin: 0;
|
|
130
|
-
}
|
|
131
|
-
@media (min-width: 782px) {
|
|
132
|
-
.components-panel__header.interface-complementary-area-header__small {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
120
|
.interface-complementary-area-header {
|
|
138
121
|
background: #fff;
|
|
139
122
|
padding-right: 12px;
|
|
@@ -142,18 +125,6 @@
|
|
|
142
125
|
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
143
126
|
margin: 0;
|
|
144
127
|
}
|
|
145
|
-
.interface-complementary-area-header .components-button.has-icon {
|
|
146
|
-
display: none;
|
|
147
|
-
margin-left: auto;
|
|
148
|
-
}
|
|
149
|
-
.interface-complementary-area-header .components-button.has-icon ~ .components-button {
|
|
150
|
-
margin-left: 0;
|
|
151
|
-
}
|
|
152
|
-
@media (min-width: 782px) {
|
|
153
|
-
.interface-complementary-area-header .components-button.has-icon {
|
|
154
|
-
display: flex;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
128
|
|
|
158
129
|
.interface-complementary-area {
|
|
159
130
|
background: #fff;
|
|
@@ -182,12 +153,7 @@
|
|
|
182
153
|
z-index: 1;
|
|
183
154
|
}
|
|
184
155
|
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
185
|
-
top:
|
|
186
|
-
}
|
|
187
|
-
@media (min-width: 782px) {
|
|
188
|
-
.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
|
|
189
|
-
top: 0;
|
|
190
|
-
}
|
|
156
|
+
top: 0;
|
|
191
157
|
}
|
|
192
158
|
.interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
|
|
193
159
|
margin-top: 0;
|
|
@@ -591,6 +557,97 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
591
557
|
border-top-width: 0;
|
|
592
558
|
}
|
|
593
559
|
|
|
560
|
+
.editor-collab-sidebar-panel {
|
|
561
|
+
padding: 16px;
|
|
562
|
+
}
|
|
563
|
+
.editor-collab-sidebar-panel__thread {
|
|
564
|
+
position: relative;
|
|
565
|
+
padding: 16px;
|
|
566
|
+
border-radius: 8px;
|
|
567
|
+
border: 1px solid #ddd;
|
|
568
|
+
background-color: #f0f0f0;
|
|
569
|
+
margin-bottom: 16px;
|
|
570
|
+
}
|
|
571
|
+
.editor-collab-sidebar-panel__active-thread {
|
|
572
|
+
border: 1.5px solid #3858e9;
|
|
573
|
+
background-color: #fff;
|
|
574
|
+
box-shadow: 0 5.5px 7.8px -0.3px rgba(0, 0, 0, 0.102);
|
|
575
|
+
}
|
|
576
|
+
.editor-collab-sidebar-panel__comment-field {
|
|
577
|
+
flex: 1;
|
|
578
|
+
}
|
|
579
|
+
.editor-collab-sidebar-panel__child-thread {
|
|
580
|
+
margin-top: 15px;
|
|
581
|
+
}
|
|
582
|
+
.editor-collab-sidebar-panel__user-name {
|
|
583
|
+
font-size: 12px;
|
|
584
|
+
font-weight: 400;
|
|
585
|
+
line-height: 16px;
|
|
586
|
+
text-align: left;
|
|
587
|
+
color: #757575;
|
|
588
|
+
text-transform: capitalize;
|
|
589
|
+
}
|
|
590
|
+
.editor-collab-sidebar-panel__user-time {
|
|
591
|
+
font-size: 12px;
|
|
592
|
+
font-weight: 400;
|
|
593
|
+
line-height: 16px;
|
|
594
|
+
text-align: left;
|
|
595
|
+
color: #757575;
|
|
596
|
+
}
|
|
597
|
+
.editor-collab-sidebar-panel__user-comment {
|
|
598
|
+
font-size: 13px;
|
|
599
|
+
font-weight: 400;
|
|
600
|
+
line-height: 20px;
|
|
601
|
+
text-align: left;
|
|
602
|
+
color: #1e1e1e;
|
|
603
|
+
}
|
|
604
|
+
.editor-collab-sidebar-panel__user-comment p {
|
|
605
|
+
margin-bottom: 0;
|
|
606
|
+
}
|
|
607
|
+
.editor-collab-sidebar-panel__user-avatar {
|
|
608
|
+
border-radius: 50%;
|
|
609
|
+
flex-shrink: 0;
|
|
610
|
+
}
|
|
611
|
+
.editor-collab-sidebar-panel__thread-overlay {
|
|
612
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
613
|
+
width: 100%;
|
|
614
|
+
height: 100%;
|
|
615
|
+
text-align: center;
|
|
616
|
+
position: absolute;
|
|
617
|
+
top: 0;
|
|
618
|
+
left: 0;
|
|
619
|
+
z-index: 1;
|
|
620
|
+
padding: 15px;
|
|
621
|
+
border-radius: 8px;
|
|
622
|
+
color: #fff;
|
|
623
|
+
}
|
|
624
|
+
.editor-collab-sidebar-panel__thread-overlay p {
|
|
625
|
+
margin-bottom: 15px;
|
|
626
|
+
}
|
|
627
|
+
.editor-collab-sidebar-panel__thread-overlay button {
|
|
628
|
+
padding: 4px 10px;
|
|
629
|
+
color: #fff;
|
|
630
|
+
}
|
|
631
|
+
.editor-collab-sidebar-panel__comment-status {
|
|
632
|
+
margin-left: auto;
|
|
633
|
+
}
|
|
634
|
+
.editor-collab-sidebar-panel__comment-status button.has-icon:not(.has-text) {
|
|
635
|
+
min-width: 24px;
|
|
636
|
+
padding: 0;
|
|
637
|
+
width: 24px;
|
|
638
|
+
height: 24px;
|
|
639
|
+
flex-shrink: 0;
|
|
640
|
+
}
|
|
641
|
+
.editor-collab-sidebar-panel__comment-dropdown-menu {
|
|
642
|
+
flex-shrink: 0;
|
|
643
|
+
}
|
|
644
|
+
.editor-collab-sidebar-panel__comment-dropdown-menu button.has-icon {
|
|
645
|
+
min-width: 24px;
|
|
646
|
+
padding: 0;
|
|
647
|
+
width: 24px;
|
|
648
|
+
height: 24px;
|
|
649
|
+
}
|
|
650
|
+
|
|
594
651
|
.editor-collapsible-block-toolbar {
|
|
595
652
|
overflow: hidden;
|
|
596
653
|
display: flex;
|
|
@@ -775,9 +832,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
775
832
|
overflow: hidden;
|
|
776
833
|
text-overflow: ellipsis;
|
|
777
834
|
}
|
|
778
|
-
.editor-document-bar.is-global .editor-document-bar__post-title {
|
|
779
|
-
color: var(--wp-block-synced-color);
|
|
780
|
-
}
|
|
781
835
|
|
|
782
836
|
.editor-document-bar__post-type-label {
|
|
783
837
|
flex: 0;
|
|
@@ -1510,16 +1564,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1510
1564
|
margin-bottom: 8px;
|
|
1511
1565
|
}
|
|
1512
1566
|
|
|
1513
|
-
.editor-post-card-panel__icon.is-sync {
|
|
1514
|
-
fill: var(--wp-block-synced-color);
|
|
1515
|
-
}
|
|
1516
|
-
.editor-post-card-panel__icon.is-sync + .editor-post-card-panel__title {
|
|
1517
|
-
color: var(--wp-block-synced-color);
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
1567
|
.editor-post-card-panel__title-badge {
|
|
1521
1568
|
background: #f0f0f0;
|
|
1522
|
-
color: #
|
|
1569
|
+
color: #2f2f2f;
|
|
1523
1570
|
padding: 0 4px;
|
|
1524
1571
|
border-radius: 2px;
|
|
1525
1572
|
font-size: 12px;
|
|
@@ -1592,7 +1639,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1592
1639
|
.editor-post-featured-image__preview {
|
|
1593
1640
|
width: 100%;
|
|
1594
1641
|
padding: 0;
|
|
1595
|
-
transition: all 0.1s ease-out;
|
|
1596
1642
|
box-shadow: 0 0 0 0 var(--wp-admin-theme-color);
|
|
1597
1643
|
overflow: hidden;
|
|
1598
1644
|
outline-offset: -1px;
|
|
@@ -1600,13 +1646,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1600
1646
|
display: flex;
|
|
1601
1647
|
justify-content: center;
|
|
1602
1648
|
}
|
|
1603
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1604
|
-
.editor-post-featured-image__toggle,
|
|
1605
|
-
.editor-post-featured-image__preview {
|
|
1606
|
-
transition-duration: 0s;
|
|
1607
|
-
transition-delay: 0s;
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
1649
|
|
|
1611
1650
|
.editor-post-featured-image__preview {
|
|
1612
1651
|
height: auto !important;
|
|
@@ -1622,6 +1661,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1622
1661
|
.editor-post-featured-image__toggle {
|
|
1623
1662
|
box-shadow: inset 0 0 0 1px #ccc;
|
|
1624
1663
|
}
|
|
1664
|
+
.editor-post-featured-image__toggle:focus:not(:disabled) {
|
|
1665
|
+
box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1666
|
+
}
|
|
1625
1667
|
|
|
1626
1668
|
.editor-post-featured-image__actions {
|
|
1627
1669
|
bottom: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"post-meta.d.ts","sourceRoot":"","sources":["../../src/bindings/post-meta.js"],"names":[],"mappings":";;IA4EC;;;;WAYC;IACD;;;;aAcC;IACD;;;;gBAsCC;IACD;;;eAEC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders the UI for adding a comment in the Gutenberg editor's collaboration sidebar.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} props - The component props.
|
|
5
|
+
* @param {Function} props.onSubmit - A callback function to be called when the user submits a comment.
|
|
6
|
+
* @param {boolean} props.showCommentBoard - The function to edit the comment.
|
|
7
|
+
* @param {Function} props.setShowCommentBoard - The function to delete the comment.
|
|
8
|
+
* @return {JSX.Element} The rendered comment input UI.
|
|
9
|
+
*/
|
|
10
|
+
export function AddComment({ onSubmit, showCommentBoard, setShowCommentBoard, }: {
|
|
11
|
+
onSubmit: Function;
|
|
12
|
+
showCommentBoard: boolean;
|
|
13
|
+
setShowCommentBoard: Function;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
//# sourceMappingURL=add-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-comment.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-comment.js"],"names":[],"mappings":"AAoBA;;;;;;;;GAQG;AACH,iFALG;IAAwB,QAAQ;IACR,gBAAgB,EAAhC,OAAO;IACS,mBAAmB;CAC3C,GAAS,GAAG,CAAC,OAAO,CAgGtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-button-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-button-toolbar.js"],"names":[],"mappings":";AAeA;;gCAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-button.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-button.js"],"names":[],"mappings":";AAgBA;;gCAYC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders the Comments component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} props - The component props.
|
|
5
|
+
* @param {Array} props.threads - The array of comment threads.
|
|
6
|
+
* @param {Function} props.onEditComment - The function to handle comment editing.
|
|
7
|
+
* @param {Function} props.onAddReply - The function to add a reply to a comment.
|
|
8
|
+
* @param {Function} props.onCommentDelete - The function to delete a comment.
|
|
9
|
+
* @param {Function} props.onCommentResolve - The function to mark a comment as resolved.
|
|
10
|
+
* @return {JSX.Element} The rendered Comments component.
|
|
11
|
+
*/
|
|
12
|
+
export function Comments({ threads, onEditComment, onAddReply, onCommentDelete, onCommentResolve, }: {
|
|
13
|
+
threads: any[];
|
|
14
|
+
onEditComment: Function;
|
|
15
|
+
onAddReply: Function;
|
|
16
|
+
onCommentDelete: Function;
|
|
17
|
+
onCommentResolve: Function;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comments.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;GAUG;AACH,qGAPG;IAAwB,OAAO;IACP,aAAa;IACb,UAAU;IACV,eAAe;IACf,gBAAgB;CACxC,GAAS,GAAG,CAAC,OAAO,CAqNtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/constants.js"],"names":[],"mappings":"AAAA,2DAA4D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAgDA;;GAEG;AACH,4EA+PC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitizes a comment string by removing non-printable ASCII characters.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} str - The comment string to sanitize.
|
|
5
|
+
* @return {string} - The sanitized comment string.
|
|
6
|
+
*/
|
|
7
|
+
export function sanitizeCommentString(str: string): string;
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2CAHW,MAAM,GACL,MAAM,CAIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/commands/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/commands/index.js"],"names":[],"mappings":"AA2UA,4CAWC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-bar/index.js"],"names":[],"mappings":"AAoCA;;;;;;;;;;;;;;;;GAgBG;AACH,2CAPG;IAAwB,KAAK,EAArB,MAAM;IAEU,IAAI,EAApB,QAAQ;CAGhB,GAAS,GAAG,CAAC,OAAO,CA6JtB;uBAhLa,OAAO,uBAAuB,EAAE,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";AA0BA;;;gCAwJC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AAgDA;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AAgDA;;;;;;;;;;;;;gCAiLC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AAuBA,mEAoBC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AAuBA,mEAoBC;AAqJD;;;;;;4BAjDa,WAAS,MAAM,YAEf,MAAM;;;;;;;4BAFN,WAAS,MAAM,YAEf,MAAM;EA8ElB;AAED;;uCAWC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA4CA;;;;;;;gCA4IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEAuFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,wCAFY,SAAS,GAAC,IAAI,CAqIzB;
|
|
1
|
+
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,wCAFY,SAAS,GAAC,IAAI,CAqIzB;AAkCD,yDA4EC;AArQM,qEAYN"}
|
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
|
|
3
|
+
* The text within the component appears as the menu item label.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} props Component properties.
|
|
6
|
+
* @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
|
|
7
|
+
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
|
|
8
|
+
* @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
|
|
9
|
+
* @param {...*} [props.other] Any additional props are passed through to the underlying [Button](/packages/components/src/button/README.md) component.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* // Using ES5 syntax
|
|
14
|
+
* var __ = wp.i18n.__;
|
|
15
|
+
* var PluginMoreMenuItem = wp.editor.PluginMoreMenuItem;
|
|
16
|
+
* var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
|
|
17
|
+
*
|
|
18
|
+
* function onButtonClick() {
|
|
19
|
+
* alert( 'Button clicked.' );
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* function MyButtonMoreMenuItem() {
|
|
23
|
+
* return wp.element.createElement(
|
|
24
|
+
* PluginMoreMenuItem,
|
|
25
|
+
* {
|
|
26
|
+
* icon: moreIcon,
|
|
27
|
+
* onClick: onButtonClick,
|
|
28
|
+
* },
|
|
29
|
+
* __( 'My button title' )
|
|
30
|
+
* );
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```jsx
|
|
36
|
+
* // Using ESNext syntax
|
|
37
|
+
* import { __ } from '@wordpress/i18n';
|
|
38
|
+
* import { PluginMoreMenuItem } from '@wordpress/editor';
|
|
39
|
+
* import { more } from '@wordpress/icons';
|
|
40
|
+
*
|
|
41
|
+
* function onButtonClick() {
|
|
42
|
+
* alert( 'Button clicked.' );
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* const MyButtonMoreMenuItem = () => (
|
|
46
|
+
* <PluginMoreMenuItem
|
|
47
|
+
* icon={ more }
|
|
48
|
+
* onClick={ onButtonClick }
|
|
49
|
+
* >
|
|
50
|
+
* { __( 'My button title' ) }
|
|
51
|
+
* </PluginMoreMenuItem>
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @return {Component} The component to be rendered.
|
|
56
|
+
*/
|
|
57
|
+
export default function PluginMoreMenuItem(props: {
|
|
58
|
+
href?: string | undefined;
|
|
59
|
+
icon?: any;
|
|
60
|
+
onClick?: Function | undefined;
|
|
61
|
+
other?: any[];
|
|
62
|
+
}): Component;
|
|
3
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-more-menu-item/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-more-menu-item/index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,kDAnDG;IAAsC,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,KAAK,GAAhC,GAAC,EAAA;CAEZ,GA4CS,SAAS,CAYpB"}
|