@wordpress/editor 14.15.1 → 14.17.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 +4 -0
- package/README.md +20 -20
- package/build/bindings/pattern-overrides.js +1 -1
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/components/collab-sidebar/index.js +1 -4
- package/build/components/collab-sidebar/index.js.map +1 -1
- package/build/components/document-outline/check.js +3 -3
- package/build/components/document-outline/check.js.map +1 -1
- package/build/components/document-outline/index.js +2 -2
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/header/index.js +14 -8
- package/build/components/header/index.js.map +1 -1
- package/build/components/page-attributes/check.js +3 -3
- package/build/components/page-attributes/check.js.map +1 -1
- package/build/components/post-excerpt/index.js +1 -1
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-pending-status/check.js +3 -3
- package/build/components/post-pending-status/check.js.map +1 -1
- package/build/components/post-preview-button/index.js +7 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-button/index.js +2 -2
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build/components/post-schedule/check.js +3 -3
- package/build/components/post-schedule/check.js.map +1 -1
- package/build/components/post-schedule/index.js +1 -1
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-sticky/check.js +3 -3
- package/build/components/post-sticky/check.js.map +1 -1
- package/build/components/post-taxonomies/check.js +1 -1
- package/build/components/post-taxonomies/check.js.map +1 -1
- package/build/components/post-template/swap-template-button.js +1 -1
- package/build/components/post-template/swap-template-button.js.map +1 -1
- package/build/components/post-trash/check.js +3 -3
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-type-support-check/index.js +6 -6
- package/build/components/post-type-support-check/index.js.map +1 -1
- package/build/components/post-url/check.js +3 -3
- package/build/components/post-url/check.js.map +1 -1
- package/build/components/preferences-modal/index.js +1 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/provider/index.js +25 -17
- package/build/components/provider/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +1 -1
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/start-page-options/index.js +15 -6
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/theme-support-check/index.js +4 -4
- package/build/components/theme-support-check/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/components/visual-editor/index.js +2 -2
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/dataviews/fields/content-preview/content-preview-view.js +101 -0
- package/build/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
- package/build/dataviews/fields/content-preview/index.js +26 -0
- package/build/dataviews/fields/content-preview/index.js.map +1 -0
- package/build/dataviews/store/private-actions.js +3 -1
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/store/private-actions.js +1 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +7 -1
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/selectors.js +4 -4
- package/build/store/selectors.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +1 -1
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/components/collab-sidebar/index.js +1 -4
- package/build-module/components/collab-sidebar/index.js.map +1 -1
- package/build-module/components/document-outline/check.js +3 -3
- package/build-module/components/document-outline/check.js.map +1 -1
- package/build-module/components/document-outline/index.js +2 -2
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/header/index.js +14 -8
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/page-attributes/check.js +3 -3
- package/build-module/components/page-attributes/check.js.map +1 -1
- package/build-module/components/post-excerpt/index.js +1 -1
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-pending-status/check.js +3 -3
- package/build-module/components/post-pending-status/check.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +7 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +2 -2
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build-module/components/post-schedule/check.js +3 -3
- package/build-module/components/post-schedule/check.js.map +1 -1
- package/build-module/components/post-schedule/index.js +1 -1
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-sticky/check.js +3 -3
- package/build-module/components/post-sticky/check.js.map +1 -1
- package/build-module/components/post-taxonomies/check.js +1 -1
- package/build-module/components/post-taxonomies/check.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +1 -1
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-trash/check.js +3 -3
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-type-support-check/index.js +6 -6
- package/build-module/components/post-type-support-check/index.js.map +1 -1
- package/build-module/components/post-url/check.js +3 -3
- package/build-module/components/post-url/check.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +1 -1
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/provider/index.js +25 -17
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -1
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/start-page-options/index.js +15 -6
- package/build-module/components/start-page-options/index.js.map +1 -1
- package/build-module/components/theme-support-check/index.js +4 -4
- package/build-module/components/theme-support-check/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/visual-editor/index.js +2 -2
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/dataviews/fields/content-preview/content-preview-view.js +95 -0
- package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +1 -0
- package/build-module/dataviews/fields/content-preview/index.js +19 -0
- package/build-module/dataviews/fields/content-preview/index.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js +2 -1
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/store/private-actions.js +1 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +7 -1
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/selectors.js +4 -4
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +35 -31
- package/build-style/style.css +35 -31
- package/build-types/components/autocompleters/user.d.ts +5 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/document-outline/check.d.ts +5 -5
- package/build-types/components/document-outline/check.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/page-attributes/check.d.ts +5 -5
- package/build-types/components/page-attributes/check.d.ts.map +1 -1
- package/build-types/components/post-author/hook.d.ts +1 -1
- package/build-types/components/post-pending-status/check.d.ts +5 -5
- package/build-types/components/post-pending-status/check.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/check.d.ts +5 -5
- package/build-types/components/post-schedule/check.d.ts.map +1 -1
- package/build-types/components/post-sticky/check.d.ts +5 -5
- package/build-types/components/post-sticky/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts +2 -2
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/index.d.ts +1 -1
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-trash/check.d.ts +5 -5
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-type-support-check/index.d.ts +8 -8
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
- package/build-types/components/post-url/check.d.ts +5 -5
- package/build-types/components/post-url/check.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts +9 -9
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/components/theme-support-check/index.d.ts +6 -6
- package/build-types/components/theme-support-check/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
- package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts +5 -0
- package/build-types/dataviews/fields/content-preview/content-preview-view.d.ts.map +1 -0
- package/build-types/dataviews/fields/content-preview/index.d.ts +8 -0
- package/build-types/dataviews/fields/content-preview/index.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +5 -5
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +37 -37
- package/src/bindings/pattern-overrides.js +1 -1
- package/src/components/autocompleters/style.scss +1 -1
- package/src/components/collab-sidebar/index.js +1 -4
- package/src/components/document-bar/style.scss +4 -2
- package/src/components/document-outline/check.js +3 -3
- package/src/components/document-outline/index.js +2 -2
- package/src/components/document-tools/style.scss +3 -2
- package/src/components/header/index.js +26 -23
- package/src/components/page-attributes/check.js +3 -3
- package/src/components/post-excerpt/index.js +1 -1
- package/src/components/post-featured-image/style.scss +4 -2
- package/src/components/post-pending-status/check.js +3 -3
- package/src/components/post-preview-button/index.js +5 -1
- package/src/components/post-publish-button/index.js +2 -2
- package/src/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/src/components/post-publish-panel/style.scss +5 -3
- package/src/components/post-schedule/check.js +3 -3
- package/src/components/post-schedule/index.js +1 -1
- package/src/components/post-sticky/check.js +3 -3
- package/src/components/post-taxonomies/check.js +1 -1
- package/src/components/post-template/swap-template-button.js +1 -1
- package/src/components/post-text-editor/style.scss +4 -2
- package/src/components/post-trash/check.js +3 -3
- package/src/components/post-type-support-check/index.js +6 -6
- package/src/components/post-url/check.js +3 -3
- package/src/components/preferences-modal/index.js +1 -1
- package/src/components/provider/index.js +32 -20
- package/src/components/sidebar/post-summary.js +1 -1
- package/src/components/start-page-options/index.js +20 -12
- package/src/components/theme-support-check/index.js +4 -4
- package/src/components/visual-editor/edit-template-blocks-notification.js +1 -1
- package/src/components/visual-editor/index.js +2 -2
- package/src/dataviews/fields/content-preview/content-preview-view.tsx +108 -0
- package/src/dataviews/fields/content-preview/index.tsx +21 -0
- package/src/dataviews/fields/content-preview/style.scss +21 -0
- package/src/dataviews/store/private-actions.ts +4 -0
- package/src/store/private-actions.js +1 -1
- package/src/store/private-selectors.js +15 -8
- package/src/store/selectors.js +4 -4
- package/src/style.scss +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/build-style/style.css
CHANGED
|
@@ -674,12 +674,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
674
674
|
}
|
|
675
675
|
.editor-document-bar .components-button {
|
|
676
676
|
border-radius: 4px;
|
|
677
|
-
transition: all 0.1s ease-out;
|
|
678
677
|
}
|
|
679
|
-
@media (prefers-reduced-motion
|
|
678
|
+
@media not (prefers-reduced-motion) {
|
|
680
679
|
.editor-document-bar .components-button {
|
|
681
|
-
transition
|
|
682
|
-
transition-delay: 0s;
|
|
680
|
+
transition: all 0.1s ease-out;
|
|
683
681
|
}
|
|
684
682
|
}
|
|
685
683
|
.editor-document-bar .components-button:hover {
|
|
@@ -874,13 +872,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
874
872
|
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle {
|
|
875
873
|
display: inline-flex;
|
|
876
874
|
}
|
|
877
|
-
|
|
878
|
-
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
|
|
879
|
-
}
|
|
880
|
-
@media (prefers-reduced-motion: reduce) {
|
|
875
|
+
@media not (prefers-reduced-motion) {
|
|
881
876
|
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle svg {
|
|
882
|
-
transition
|
|
883
|
-
transition-delay: 0s;
|
|
877
|
+
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
|
|
884
878
|
}
|
|
885
879
|
}
|
|
886
880
|
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.is-pressed svg {
|
|
@@ -1574,12 +1568,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1574
1568
|
opacity: 0;
|
|
1575
1569
|
padding: 8px;
|
|
1576
1570
|
position: absolute;
|
|
1577
|
-
transition: opacity 50ms ease-out;
|
|
1578
1571
|
}
|
|
1579
|
-
@media (prefers-reduced-motion
|
|
1572
|
+
@media not (prefers-reduced-motion) {
|
|
1580
1573
|
.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) {
|
|
1581
|
-
transition
|
|
1582
|
-
transition-delay: 0s;
|
|
1574
|
+
transition: opacity 50ms ease-out;
|
|
1583
1575
|
}
|
|
1584
1576
|
}
|
|
1585
1577
|
.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action {
|
|
@@ -1881,14 +1873,12 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1881
1873
|
left: auto;
|
|
1882
1874
|
width: 281px;
|
|
1883
1875
|
border-left: 1px solid #ddd;
|
|
1884
|
-
transform: translateX(100%);
|
|
1885
|
-
animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
|
|
1886
1876
|
}
|
|
1887
1877
|
}
|
|
1888
|
-
@media (min-width: 782px) and (prefers-reduced-motion
|
|
1878
|
+
@media (min-width: 782px) and (not (prefers-reduced-motion)) {
|
|
1889
1879
|
.editor-post-publish-panel {
|
|
1890
|
-
|
|
1891
|
-
animation
|
|
1880
|
+
transform: translateX(100%);
|
|
1881
|
+
animation: editor-post-publish-panel__slide-in-animation 0.1s forwards;
|
|
1892
1882
|
}
|
|
1893
1883
|
}
|
|
1894
1884
|
@media (min-width: 782px) {
|
|
@@ -2075,15 +2065,13 @@ textarea.editor-post-text-editor {
|
|
|
2075
2065
|
font-family: Menlo, Consolas, monaco, monospace;
|
|
2076
2066
|
line-height: 2.4;
|
|
2077
2067
|
min-height: 200px;
|
|
2078
|
-
transition: border 0.1s ease-out, box-shadow 0.1s linear;
|
|
2079
2068
|
padding: 16px;
|
|
2080
2069
|
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
2081
2070
|
font-size: 16px !important;
|
|
2082
2071
|
}
|
|
2083
|
-
@media (prefers-reduced-motion
|
|
2072
|
+
@media not (prefers-reduced-motion) {
|
|
2084
2073
|
textarea.editor-post-text-editor {
|
|
2085
|
-
transition
|
|
2086
|
-
transition-delay: 0s;
|
|
2074
|
+
transition: border 0.1s ease-out, box-shadow 0.1s linear;
|
|
2087
2075
|
}
|
|
2088
2076
|
}
|
|
2089
2077
|
@media (min-width: 600px) {
|
|
@@ -2167,7 +2155,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2167
2155
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
2168
2156
|
padding: 6px 8px;
|
|
2169
2157
|
box-shadow: 0 0 0 transparent;
|
|
2170
|
-
transition: box-shadow 0.1s linear;
|
|
2171
2158
|
border-radius: 2px;
|
|
2172
2159
|
border: 1px solid #949494;
|
|
2173
2160
|
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
@@ -2185,10 +2172,9 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2185
2172
|
position: relative;
|
|
2186
2173
|
margin-top: 2px;
|
|
2187
2174
|
}
|
|
2188
|
-
@media (prefers-reduced-motion
|
|
2175
|
+
@media not (prefers-reduced-motion) {
|
|
2189
2176
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
|
|
2190
|
-
transition
|
|
2191
|
-
transition-delay: 0s;
|
|
2177
|
+
transition: box-shadow 0.1s linear;
|
|
2192
2178
|
}
|
|
2193
2179
|
}
|
|
2194
2180
|
@media (min-width: 600px) {
|
|
@@ -2264,7 +2250,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2264
2250
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
2265
2251
|
padding: 6px 8px;
|
|
2266
2252
|
box-shadow: 0 0 0 transparent;
|
|
2267
|
-
transition: box-shadow 0.1s linear;
|
|
2268
2253
|
border-radius: 2px;
|
|
2269
2254
|
border: 1px solid #949494;
|
|
2270
2255
|
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
@@ -2274,10 +2259,9 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2274
2259
|
margin-left: 32px;
|
|
2275
2260
|
width: calc(100% - 32px);
|
|
2276
2261
|
}
|
|
2277
|
-
@media (prefers-reduced-motion
|
|
2262
|
+
@media not (prefers-reduced-motion) {
|
|
2278
2263
|
.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text] {
|
|
2279
|
-
transition
|
|
2280
|
-
transition-delay: 0s;
|
|
2264
|
+
transition: box-shadow 0.1s linear;
|
|
2281
2265
|
}
|
|
2282
2266
|
}
|
|
2283
2267
|
@media (min-width: 600px) {
|
|
@@ -2656,4 +2640,24 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2656
2640
|
.editor-visual-editor.is-scrollable .block-editor-block-canvas > .block-editor-iframe__container > .block-editor-iframe__scale-container {
|
|
2657
2641
|
flex: 1 0 fit-content;
|
|
2658
2642
|
display: flow-root;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
.editor-fields-content-preview {
|
|
2646
|
+
display: flex;
|
|
2647
|
+
flex-direction: column;
|
|
2648
|
+
height: 100%;
|
|
2649
|
+
border-radius: 4px;
|
|
2650
|
+
}
|
|
2651
|
+
.dataviews-view-table .editor-fields-content-preview {
|
|
2652
|
+
width: 96px;
|
|
2653
|
+
flex-grow: 0;
|
|
2654
|
+
}
|
|
2655
|
+
.editor-fields-content-preview .block-editor-block-preview__container,
|
|
2656
|
+
.editor-fields-content-preview .editor-fields-content-preview__empty {
|
|
2657
|
+
margin-top: auto;
|
|
2658
|
+
margin-bottom: auto;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.editor-fields-content-preview__empty {
|
|
2662
|
+
text-align: center;
|
|
2659
2663
|
}
|
|
@@ -3,7 +3,11 @@ declare const _default: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
className: string;
|
|
5
5
|
triggerPrefix: string;
|
|
6
|
-
useItems(filterValue: any):
|
|
6
|
+
useItems(filterValue: any): {
|
|
7
|
+
key: string;
|
|
8
|
+
value: import("@wordpress/core-data").User<"edit">;
|
|
9
|
+
label: import("react").JSX.Element;
|
|
10
|
+
}[][];
|
|
7
11
|
getOptionCompletion(user: any): string;
|
|
8
12
|
};
|
|
9
13
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAwNA;;GAEG;AACH,4EAuJC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Component check if there are any headings (core/heading blocks) present in the document.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props Props.
|
|
5
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The component to be rendered or null if there are headings.
|
|
8
8
|
*/
|
|
9
9
|
export default function DocumentOutlineCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/check.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,2DAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/document-outline/check.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,2DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAc1B"}
|
|
@@ -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":";AAqDA;;;;;;gCA0JC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wrapper component that renders its children only if the post type supports page attributes.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props - The component props.
|
|
5
|
+
* @param {React.ReactNode} props.children - The child components to render.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The rendered child components or null if page attributes are not supported.
|
|
8
8
|
*/
|
|
9
9
|
export function PageAttributesCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
export default PageAttributesCheck;
|
|
13
13
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,kDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,kDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAiB1B"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* If the post is already published or the user doesn't have the
|
|
4
4
|
* capability to publish, it returns null.
|
|
5
5
|
*
|
|
6
|
-
* @param {Object}
|
|
7
|
-
* @param {React.
|
|
6
|
+
* @param {Object} props Component properties.
|
|
7
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
8
8
|
*
|
|
9
|
-
* @return {React.
|
|
9
|
+
* @return {React.ReactNode} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
|
|
10
10
|
*/
|
|
11
11
|
export function PostPendingStatusCheck({ children }: {
|
|
12
|
-
children: React.
|
|
13
|
-
}): React.
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): React.ReactNode;
|
|
14
14
|
export default PostPendingStatusCheck;
|
|
15
15
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-pending-status/check.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,qDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-pending-status/check.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,qDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAkB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"AAqGA;;;;;;;;;;;;;;GAcG;AACH,6GARG;IAAwB,SAAS,EAAzB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,mBAAmB,EAAnC,OAAO;IACS,IAAI,EAApB,MAAM;IACU,SAAS;CAEjC,GAAS,KAAK,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"AAqGA;;;;;;;;;;;;;;GAcG;AACH,6GARG;IAAwB,SAAS,EAAzB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,mBAAmB,EAAnC,OAAO;IACS,IAAI,EAApB,MAAM;IACU,SAAS;CAEjC,GAAS,KAAK,CAAC,SAAS,CA8F1B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wrapper component that renders its children only if post has a publish action.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props Props.
|
|
5
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} - The component to be rendered or null if there is no publish action.
|
|
8
8
|
*/
|
|
9
9
|
export default function PostScheduleCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-schedule/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-schedule/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAgB1B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wrapper component that renders its children only if post has a sticky action.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props Props.
|
|
5
|
+
* @param {React.ReactNode} props.children Children to be rendered.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
|
|
8
8
|
*/
|
|
9
9
|
export default function PostStickyCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-sticky/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-sticky/check.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAgB1B"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @param {Object} props The component props.
|
|
5
5
|
* @param {React.ReactNode} props.children The children components to render.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The rendered children components or null if the current post type has no taxonomies.
|
|
8
8
|
*/
|
|
9
9
|
export default function PostTaxonomiesCheck({ children }: {
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
}): React.
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,0DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,0DAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CAiB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/index.js"],"names":[],"mappings":"AAgBA;;kCAkCC"}
|
|
@@ -3,6 +3,6 @@ export function useEditedPostContext(): {
|
|
|
3
3
|
postType: string;
|
|
4
4
|
};
|
|
5
5
|
export function useAllowSwitchingTemplates(): boolean;
|
|
6
|
-
export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
|
|
6
|
+
export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
|
|
7
7
|
export function useCurrentTemplateSlug(): any;
|
|
8
8
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA0BC;AAaD
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA0BC;AAaD,mpEAeC;AAED,8CAuBC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wrapper component that renders its children only if the post can be trashed.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props The component props.
|
|
5
|
+
* @param {React.ReactNode} props.children The child components.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The rendered child components or null if the post can't be trashed.
|
|
8
8
|
*/
|
|
9
9
|
export default function PostTrashCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,qDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-trash/check.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,qDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CA8B1B"}
|
|
@@ -3,16 +3,16 @@ export default PostTypeSupportCheck;
|
|
|
3
3
|
* A component which renders its own children only if the current editor post
|
|
4
4
|
* type supports one of the given `supportKeys` prop.
|
|
5
5
|
*
|
|
6
|
-
* @param {Object}
|
|
7
|
-
* @param {React.
|
|
8
|
-
*
|
|
9
|
-
* @param {(string|string[])}
|
|
10
|
-
*
|
|
6
|
+
* @param {Object} props Props.
|
|
7
|
+
* @param {React.ReactNode} props.children Children to be rendered if post
|
|
8
|
+
* type supports.
|
|
9
|
+
* @param {(string|string[])} props.supportKeys String or string array of keys
|
|
10
|
+
* to test.
|
|
11
11
|
*
|
|
12
|
-
* @return {React.
|
|
12
|
+
* @return {React.ReactNode} The component to be rendered.
|
|
13
13
|
*/
|
|
14
14
|
declare function PostTypeSupportCheck({ children, supportKeys }: {
|
|
15
|
-
children: React.
|
|
15
|
+
children: React.ReactNode;
|
|
16
16
|
supportKeys: (string | string[]);
|
|
17
|
-
}): React.
|
|
17
|
+
}): React.ReactNode;
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-type-support-check/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;GAWG;AACH,iEAPG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-type-support-check/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;GAWG;AACH,iEAPG;IAAiC,QAAQ,EAAjC,KAAK,CAAC,SAAS;IAEU,WAAW,EAApC,CAAC,MAAM,GAAC,MAAM,EAAE,CAAC;CAGzB,GAAS,KAAK,CAAC,SAAS,CAoB1B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Check if the post URL is valid and visible.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
4
|
+
* @param {Object} props The component props.
|
|
5
|
+
* @param {React.ReactNode} props.children The child components.
|
|
6
6
|
*
|
|
7
|
-
* @return {React.
|
|
7
|
+
* @return {React.ReactNode} The child components if the post URL is valid and visible, otherwise null.
|
|
8
8
|
*/
|
|
9
9
|
export default function PostURLCheck({ children }: {
|
|
10
|
-
children: React.
|
|
11
|
-
}): React.
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.ReactNode;
|
|
12
12
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,mDAJG;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/check.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,mDAJG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;CAEvB,GAAS,KAAK,CAAC,SAAS,CA4B1B"}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
* All modification and changes are performed to the `@wordpress/core-data` store.
|
|
8
8
|
*
|
|
9
|
-
* @param {Object}
|
|
10
|
-
* @param {Object}
|
|
11
|
-
* @param {Object}
|
|
12
|
-
*
|
|
13
|
-
* @param {Object}
|
|
14
|
-
*
|
|
15
|
-
* @param {
|
|
16
|
-
*
|
|
9
|
+
* @param {Object} props The component props.
|
|
10
|
+
* @param {Object} [props.post] The post object to edit. This is required.
|
|
11
|
+
* @param {Object} [props.__unstableTemplate] The template object wrapper the edited post.
|
|
12
|
+
* This is optional and can only be used when the post type supports templates (like posts and pages).
|
|
13
|
+
* @param {Object} [props.settings] The settings object to use for the editor.
|
|
14
|
+
* This is optional and can be used to override the default settings.
|
|
15
|
+
* @param {React.ReactNode} [props.children] Children elements for which the BlockEditorProvider context should apply.
|
|
16
|
+
* This is optional.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```jsx
|
|
@@ -32,7 +32,7 @@ export function EditorProvider(props: {
|
|
|
32
32
|
post?: Object | undefined;
|
|
33
33
|
__unstableTemplate?: Object | undefined;
|
|
34
34
|
settings?: Object | undefined;
|
|
35
|
-
children?:
|
|
35
|
+
children?: React.ReactNode;
|
|
36
36
|
}): React.ReactNode;
|
|
37
37
|
/**
|
|
38
38
|
* This component provides the editor context and manages the state of the block editor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA6YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AA9SD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA2OE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAaA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/start-page-options/index.js"],"names":[],"mappings":"AAaA,iDA4CC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks if the current theme supports specific features and renders the children if supported.
|
|
3
3
|
*
|
|
4
|
-
* @param {Object}
|
|
5
|
-
* @param {React.
|
|
6
|
-
* @param {string|string[]}
|
|
4
|
+
* @param {Object} props The component props.
|
|
5
|
+
* @param {React.ReactNode} props.children The children to render if the theme supports the specified features.
|
|
6
|
+
* @param {string|string[]} props.supportKeys The key(s) of the theme support(s) to check.
|
|
7
7
|
*
|
|
8
|
-
* @return {React.
|
|
8
|
+
* @return {React.ReactNode} The rendered children if the theme supports the specified features, otherwise null.
|
|
9
9
|
*/
|
|
10
10
|
export default function ThemeSupportCheck({ children, supportKeys }: {
|
|
11
|
-
children: React.
|
|
11
|
+
children: React.ReactNode;
|
|
12
12
|
supportKeys: string | string[];
|
|
13
|
-
}): React.
|
|
13
|
+
}): React.ReactNode;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/theme-support-check/index.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,qEALG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/theme-support-check/index.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,qEALG;IAA+B,QAAQ,EAA/B,KAAK,CAAC,SAAS;IACQ,WAAW,EAAlC,MAAM,GAAC,MAAM,EAAE;CAEvB,GAAS,KAAK,CAAC,SAAS,CA6B1B"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* user is focusing on editing page content and clicks on a disabled template
|
|
6
6
|
* block.
|
|
7
7
|
* - Displays a 'Edit your template to edit this block' dialog when the user
|
|
8
|
-
* is focusing on editing page
|
|
8
|
+
* is focusing on editing page content and double clicks on a disabled
|
|
9
9
|
* template block.
|
|
10
10
|
*
|
|
11
11
|
* @param {Object} props
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-preview-view.d.ts","sourceRoot":"","sources":["../../../../src/dataviews/fields/content-preview/content-preview-view.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAuDlD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,+BA2CpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dataviews/fields/content-preview/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQlD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAE,QAAQ,CAMtC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAuC1D,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AAED,eAAO,MAAM,sBAAsB,aACtB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA6GtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAgFA,sDAEC;AACD,6DAEC;AAwFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAnJD;;;;;;GAMG;AACH;;;;EAmCE;AAeF;;;;EAuCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAsBE"}
|
|
@@ -345,19 +345,19 @@ export function isEditorPanelRemoved(state: Object, panelName: string): boolean;
|
|
|
345
345
|
/**
|
|
346
346
|
* Returns the current selection start.
|
|
347
347
|
*
|
|
348
|
+
* @deprecated since Gutenberg 10.0.0.
|
|
349
|
+
*
|
|
348
350
|
* @param {Object} state
|
|
349
351
|
* @return {WPBlockSelection} The selection start.
|
|
350
|
-
*
|
|
351
|
-
* @deprecated since Gutenberg 10.0.0.
|
|
352
352
|
*/
|
|
353
353
|
export function getEditorSelectionStart(state: Object): WPBlockSelection;
|
|
354
354
|
/**
|
|
355
355
|
* Returns the current selection end.
|
|
356
356
|
*
|
|
357
|
+
* @deprecated since Gutenberg 10.0.0.
|
|
358
|
+
*
|
|
357
359
|
* @param {Object} state
|
|
358
360
|
* @return {WPBlockSelection} The selection end.
|
|
359
|
-
*
|
|
360
|
-
* @deprecated since Gutenberg 10.0.0.
|
|
361
361
|
*/
|
|
362
362
|
export function getEditorSelectionEnd(state: Object): WPBlockSelection;
|
|
363
363
|
/**
|
|
@@ -1142,7 +1142,7 @@ export const __experimentalGetTemplateInfo: {
|
|
|
1142
1142
|
* @return {string|undefined} The post type label if available, otherwise undefined.
|
|
1143
1143
|
*/
|
|
1144
1144
|
export const getPostTypeLabel: {
|
|
1145
|
-
(state?: any):
|
|
1145
|
+
(state?: any): string | undefined;
|
|
1146
1146
|
isRegistrySelector?: boolean;
|
|
1147
1147
|
registry?: any;
|
|
1148
1148
|
};
|