@wordpress/editor 14.50.0 → 14.51.1-next.v.202607070741.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 +10 -0
- package/build/components/collab-sidebar/format.cjs +83 -0
- package/build/components/collab-sidebar/format.cjs.map +7 -0
- package/build/components/collab-sidebar/hooks.cjs +117 -16
- package/build/components/collab-sidebar/hooks.cjs.map +2 -2
- package/build/components/collab-sidebar/index.cjs +18 -2
- package/build/components/collab-sidebar/index.cjs.map +2 -2
- package/build/components/collab-sidebar/note-highlight-styles.cjs +67 -0
- package/build/components/collab-sidebar/note-highlight-styles.cjs.map +7 -0
- package/build/components/collab-sidebar/utils.cjs +139 -0
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs +55 -30
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +2 -2
- package/build/components/commands/index.cjs +99 -3
- package/build/components/commands/index.cjs.map +2 -2
- package/build/components/document-bar/index.cjs +28 -34
- package/build/components/document-bar/index.cjs.map +2 -2
- package/build/components/entities-saved-states/index.cjs +1 -4
- package/build/components/entities-saved-states/index.cjs.map +2 -2
- package/build/components/media-categories/index.cjs +92 -6
- package/build/components/media-categories/index.cjs.map +2 -2
- package/build/components/page-attributes/parent.cjs +0 -1
- package/build/components/page-attributes/parent.cjs.map +2 -2
- package/build/components/post-author/combobox.cjs +0 -1
- package/build/components/post-author/combobox.cjs.map +2 -2
- package/build/components/post-author/select.cjs +0 -1
- package/build/components/post-author/select.cjs.map +2 -2
- package/build/components/post-preview-button/index.cjs +29 -2
- package/build/components/post-preview-button/index.cjs.map +2 -2
- package/build/components/post-publish-panel/maybe-upload-media.cjs +15 -26
- package/build/components/post-publish-panel/maybe-upload-media.cjs.map +3 -3
- package/build/components/post-revisions-preview/revisions-slider.cjs +3 -1
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-taxonomies/flat-term-selector.cjs +0 -1
- package/build/components/post-taxonomies/flat-term-selector.cjs.map +2 -2
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs +0 -2
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs.map +2 -2
- package/build/components/post-template/classic-theme.cjs +0 -1
- package/build/components/post-template/classic-theme.cjs.map +2 -2
- package/build/components/preferences-modal/index.cjs +54 -28
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/preview-dropdown/index.cjs +3 -3
- package/build/components/preview-dropdown/index.cjs.map +2 -2
- package/build/components/provider/use-block-editor-settings.cjs +23 -3
- package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
- package/build/components/sidebar/dataform-post-summary.cjs +5 -1
- package/build/components/sidebar/dataform-post-summary.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +29 -38
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-summary.cjs +0 -13
- package/build/components/sidebar/post-summary.cjs.map +3 -3
- package/build/dataviews/store/private-actions.cjs +24 -19
- package/build/dataviews/store/private-actions.cjs.map +2 -2
- package/build/store/private-actions.cjs +5 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/utils/media-sideload-from-url/index.cjs +63 -0
- package/build/utils/media-sideload-from-url/index.cjs.map +7 -0
- package/build-module/components/collab-sidebar/format.mjs +57 -0
- package/build-module/components/collab-sidebar/format.mjs.map +7 -0
- package/build-module/components/collab-sidebar/hooks.mjs +121 -16
- package/build-module/components/collab-sidebar/hooks.mjs.map +2 -2
- package/build-module/components/collab-sidebar/index.mjs +21 -5
- package/build-module/components/collab-sidebar/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-highlight-styles.mjs +41 -0
- package/build-module/components/collab-sidebar/note-highlight-styles.mjs.map +7 -0
- package/build-module/components/collab-sidebar/utils.mjs +133 -0
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +55 -30
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +2 -2
- package/build-module/components/commands/index.mjs +99 -3
- package/build-module/components/commands/index.mjs.map +2 -2
- package/build-module/components/document-bar/index.mjs +28 -34
- package/build-module/components/document-bar/index.mjs.map +2 -2
- package/build-module/components/entities-saved-states/index.mjs +1 -4
- package/build-module/components/entities-saved-states/index.mjs.map +2 -2
- package/build-module/components/media-categories/index.mjs +93 -7
- package/build-module/components/media-categories/index.mjs.map +2 -2
- package/build-module/components/page-attributes/parent.mjs +0 -1
- package/build-module/components/page-attributes/parent.mjs.map +2 -2
- package/build-module/components/post-author/combobox.mjs +0 -1
- package/build-module/components/post-author/combobox.mjs.map +2 -2
- package/build-module/components/post-author/select.mjs +0 -1
- package/build-module/components/post-author/select.mjs.map +2 -2
- package/build-module/components/post-preview-button/index.mjs +29 -2
- package/build-module/components/post-preview-button/index.mjs.map +2 -2
- package/build-module/components/post-publish-panel/maybe-upload-media.mjs +19 -27
- package/build-module/components/post-publish-panel/maybe-upload-media.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +3 -1
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-taxonomies/flat-term-selector.mjs +0 -1
- package/build-module/components/post-taxonomies/flat-term-selector.mjs.map +2 -2
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs +0 -2
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs.map +2 -2
- package/build-module/components/post-template/classic-theme.mjs +0 -1
- package/build-module/components/post-template/classic-theme.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +54 -28
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/preview-dropdown/index.mjs +3 -3
- package/build-module/components/preview-dropdown/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +23 -3
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/sidebar/dataform-post-summary.mjs +6 -2
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +29 -42
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-summary.mjs +0 -13
- package/build-module/components/sidebar/post-summary.mjs.map +2 -2
- package/build-module/dataviews/store/private-actions.mjs +26 -19
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +5 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/utils/media-sideload-from-url/index.mjs +32 -0
- package/build-module/utils/media-sideload-from-url/index.mjs.map +7 -0
- package/build-style/style-rtl.css +65 -33
- package/build-style/style.css +65 -33
- package/build-types/components/collab-sidebar/format.d.ts +17 -0
- package/build-types/components/collab-sidebar/format.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-highlight-styles.d.ts +31 -0
- package/build-types/components/collab-sidebar/note-highlight-styles.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/utils.d.ts +82 -2
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map +1 -1
- 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/entities-saved-states/index.d.ts.map +1 -1
- package/build-types/components/media-categories/index.d.ts +12 -3
- package/build-types/components/media-categories/index.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/post-author/combobox.d.ts.map +1 -1
- package/build-types/components/post-author/select.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -1
- package/build-types/utils/media-sideload-from-url/index.d.ts +18 -0
- package/build-types/utils/media-sideload-from-url/index.d.ts.map +1 -0
- package/package.json +48 -46
- package/src/components/collab-sidebar/format.js +72 -0
- package/src/components/collab-sidebar/hooks.js +203 -22
- package/src/components/collab-sidebar/index.js +19 -5
- package/src/components/collab-sidebar/note-highlight-styles.js +83 -0
- package/src/components/collab-sidebar/style.scss +9 -0
- package/src/components/collab-sidebar/test/note-highlight-styles.js +106 -0
- package/src/components/collab-sidebar/test/utils.js +471 -0
- package/src/components/collab-sidebar/utils.js +225 -2
- package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +265 -262
- package/src/components/collaborators-presence/use-collaborator-notifications.ts +70 -34
- package/src/components/commands/index.js +142 -0
- package/src/components/document-bar/index.js +0 -9
- package/src/components/document-bar/style.scss +0 -17
- package/src/components/entities-saved-states/index.js +1 -5
- package/src/components/header/style.scss +7 -3
- package/src/components/media-categories/index.js +160 -6
- package/src/components/media-categories/test/index.js +202 -0
- package/src/components/page-attributes/parent.js +0 -1
- package/src/components/post-author/combobox.js +0 -1
- package/src/components/post-author/select.js +0 -1
- package/src/components/post-preview-button/index.js +68 -2
- package/src/components/post-publish-panel/maybe-upload-media.js +25 -30
- package/src/components/post-publish-panel/style.scss +1 -1
- package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +11 -127
- package/src/components/post-revisions-preview/revisions-slider.js +4 -1
- package/src/components/post-revisions-preview/test/block-diff.js +2 -2
- package/src/components/post-taxonomies/flat-term-selector.js +0 -1
- package/src/components/post-taxonomies/hierarchical-term-selector.js +0 -2
- package/src/components/post-template/classic-theme.js +0 -1
- package/src/components/preferences-modal/index.js +40 -22
- package/src/components/preferences-modal/test/index.js +83 -0
- package/src/components/preview-dropdown/index.js +3 -3
- package/src/components/provider/use-block-editor-settings.js +42 -1
- package/src/components/sidebar/dataform-post-summary.js +13 -1
- package/src/components/sidebar/index.js +32 -47
- package/src/components/sidebar/post-summary.js +0 -17
- package/src/dataviews/store/private-actions.ts +30 -26
- package/src/store/private-actions.js +6 -2
- package/src/utils/media-sideload-from-url/index.js +54 -0
- package/src/utils/media-sideload-from-url/test/index.js +162 -0
- package/build/components/post-publish-panel/media-util.cjs +0 -72
- package/build/components/post-publish-panel/media-util.cjs.map +0 -7
- package/build-module/components/post-publish-panel/media-util.mjs +0 -46
- package/build-module/components/post-publish-panel/media-util.mjs.map +0 -7
- package/build-types/components/post-publish-panel/media-util.d.ts +0 -20
- package/build-types/components/post-publish-panel/media-util.d.ts.map +0 -1
- package/src/components/post-publish-panel/media-util.js +0 -87
- package/src/components/post-publish-panel/test/media-util.js +0 -118
package/build-style/style.css
CHANGED
|
@@ -68,6 +68,12 @@
|
|
|
68
68
|
/**
|
|
69
69
|
* Focus styles.
|
|
70
70
|
*/
|
|
71
|
+
/**
|
|
72
|
+
* Standard focus rings for the WordPress Design System.
|
|
73
|
+
*
|
|
74
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
75
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
76
|
+
*/
|
|
71
77
|
/**
|
|
72
78
|
* Applies editor left position to the selector passed as argument
|
|
73
79
|
*/
|
|
@@ -186,6 +192,12 @@
|
|
|
186
192
|
/**
|
|
187
193
|
* Focus styles.
|
|
188
194
|
*/
|
|
195
|
+
/**
|
|
196
|
+
* Standard focus rings for the WordPress Design System.
|
|
197
|
+
*
|
|
198
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
199
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
200
|
+
*/
|
|
189
201
|
/**
|
|
190
202
|
* Applies editor left position to the selector passed as argument
|
|
191
203
|
*/
|
|
@@ -282,12 +294,7 @@
|
|
|
282
294
|
}
|
|
283
295
|
|
|
284
296
|
@media (min-width: 782px) {
|
|
285
|
-
body.js.is-fullscreen-mode {
|
|
286
|
-
margin-top: -32px;
|
|
287
|
-
height: calc(100% + 32px);
|
|
288
|
-
}
|
|
289
|
-
body.js.is-fullscreen-mode #adminmenumain,
|
|
290
|
-
body.js.is-fullscreen-mode #wpadminbar {
|
|
297
|
+
body.js.is-fullscreen-mode #adminmenumain {
|
|
291
298
|
display: none;
|
|
292
299
|
}
|
|
293
300
|
body.js.is-fullscreen-mode #wpcontent,
|
|
@@ -323,7 +330,7 @@ html.interface-interface-skeleton__html-container {
|
|
|
323
330
|
top: 32px;
|
|
324
331
|
}
|
|
325
332
|
.is-fullscreen-mode .interface-interface-skeleton {
|
|
326
|
-
top: 0;
|
|
333
|
+
top: var(--wp-admin--admin-bar--height, 0);
|
|
327
334
|
}
|
|
328
335
|
}
|
|
329
336
|
.interface-interface-skeleton__editor {
|
|
@@ -505,7 +512,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
505
512
|
top: 32px;
|
|
506
513
|
}
|
|
507
514
|
.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
|
|
508
|
-
top: 0;
|
|
515
|
+
top: var(--wp-admin--admin-bar--height, 0);
|
|
509
516
|
}
|
|
510
517
|
}
|
|
511
518
|
.interface-pinned-items {
|
|
@@ -604,6 +611,12 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
604
611
|
/**
|
|
605
612
|
* Focus styles.
|
|
606
613
|
*/
|
|
614
|
+
/**
|
|
615
|
+
* Standard focus rings for the WordPress Design System.
|
|
616
|
+
*
|
|
617
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
618
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
619
|
+
*/
|
|
607
620
|
/**
|
|
608
621
|
* Applies editor left position to the selector passed as argument
|
|
609
622
|
*/
|
|
@@ -1278,6 +1291,14 @@ button.font-library__upload-area {
|
|
|
1278
1291
|
height: 100%;
|
|
1279
1292
|
}
|
|
1280
1293
|
|
|
1294
|
+
.global-styles-ui-color-palette__tablist-container {
|
|
1295
|
+
border-bottom: 1px solid #ddd;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.global-styles-ui-color-palette__tablist {
|
|
1299
|
+
margin-bottom: -1px;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1281
1302
|
.global-styles-ui-sidebar__navigator-screen .single-column {
|
|
1282
1303
|
grid-column: span 1;
|
|
1283
1304
|
}
|
|
@@ -1374,6 +1395,12 @@ button.font-library__upload-area {
|
|
|
1374
1395
|
/**
|
|
1375
1396
|
* Focus styles.
|
|
1376
1397
|
*/
|
|
1398
|
+
/**
|
|
1399
|
+
* Standard focus rings for the WordPress Design System.
|
|
1400
|
+
*
|
|
1401
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
1402
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
1403
|
+
*/
|
|
1377
1404
|
/**
|
|
1378
1405
|
* Applies editor left position to the selector passed as argument
|
|
1379
1406
|
*/
|
|
@@ -1401,7 +1428,6 @@ button.font-library__upload-area {
|
|
|
1401
1428
|
min-height: 0;
|
|
1402
1429
|
box-sizing: border-box;
|
|
1403
1430
|
scroll-padding-bottom: 64px;
|
|
1404
|
-
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
1405
1431
|
container: dataviews-wrapper/inline-size;
|
|
1406
1432
|
display: flex;
|
|
1407
1433
|
flex-direction: column;
|
|
@@ -1464,6 +1490,10 @@ button.font-library__upload-area {
|
|
|
1464
1490
|
text-align: center;
|
|
1465
1491
|
}
|
|
1466
1492
|
|
|
1493
|
+
.dataviews-loading-more[aria-hidden=true] {
|
|
1494
|
+
visibility: hidden;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1467
1497
|
@container (max-width: 430px) {
|
|
1468
1498
|
.dataviews__view-actions,
|
|
1469
1499
|
.dataviews-filters__container {
|
|
@@ -2232,7 +2262,6 @@ button.font-library__upload-area {
|
|
|
2232
2262
|
|
|
2233
2263
|
.dataviews-view-config {
|
|
2234
2264
|
width: 320px;
|
|
2235
|
-
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
2236
2265
|
container-type: inline-size;
|
|
2237
2266
|
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
2238
2267
|
line-height: var(--wpds-typography-line-height-sm, 20px);
|
|
@@ -4179,6 +4208,12 @@ div.dataviews-view-list {
|
|
|
4179
4208
|
/**
|
|
4180
4209
|
* Focus styles.
|
|
4181
4210
|
*/
|
|
4211
|
+
/**
|
|
4212
|
+
* Standard focus rings for the WordPress Design System.
|
|
4213
|
+
*
|
|
4214
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
4215
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
4216
|
+
*/
|
|
4182
4217
|
/**
|
|
4183
4218
|
* Applies editor left position to the selector passed as argument
|
|
4184
4219
|
*/
|
|
@@ -4318,7 +4353,6 @@ fieldset.fields__media-edit .fields__media-edit-description {
|
|
|
4318
4353
|
}
|
|
4319
4354
|
|
|
4320
4355
|
fieldset.fields__media-edit {
|
|
4321
|
-
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
4322
4356
|
container-type: inline-size;
|
|
4323
4357
|
}
|
|
4324
4358
|
|
|
@@ -4558,7 +4592,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media
|
|
|
4558
4592
|
|
|
4559
4593
|
fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
|
|
4560
4594
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
4561
|
-
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
4562
4595
|
}
|
|
4563
4596
|
|
|
4564
4597
|
@container (max-width: 500px) {
|
|
@@ -5084,6 +5117,12 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
5084
5117
|
/**
|
|
5085
5118
|
* Focus styles.
|
|
5086
5119
|
*/
|
|
5120
|
+
/**
|
|
5121
|
+
* Standard focus rings for the WordPress Design System.
|
|
5122
|
+
*
|
|
5123
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
5124
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
5125
|
+
*/
|
|
5087
5126
|
/**
|
|
5088
5127
|
* Applies editor left position to the selector passed as argument
|
|
5089
5128
|
*/
|
|
@@ -5216,7 +5255,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
5216
5255
|
|
|
5217
5256
|
@media (min-width: 600px) {
|
|
5218
5257
|
.media-editor .media-editor__panel {
|
|
5219
|
-
padding:
|
|
5258
|
+
padding: 24px 24px 0 0;
|
|
5220
5259
|
}
|
|
5221
5260
|
}
|
|
5222
5261
|
.media-editor .components-panel__header.media-editor__sidebar-header {
|
|
@@ -5906,6 +5945,11 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
5906
5945
|
font-size: 12px;
|
|
5907
5946
|
}
|
|
5908
5947
|
|
|
5948
|
+
mark.wp-note {
|
|
5949
|
+
border-radius: 1px;
|
|
5950
|
+
transition: background-color 0.1s ease-in-out;
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5909
5953
|
.editor-avatar {
|
|
5910
5954
|
position: relative;
|
|
5911
5955
|
display: inline-flex;
|
|
@@ -6356,11 +6400,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6356
6400
|
margin: 0 auto;
|
|
6357
6401
|
max-width: 70%;
|
|
6358
6402
|
}
|
|
6359
|
-
@media (min-width: 782px) {
|
|
6360
|
-
.editor-document-bar.has-shortcut .editor-document-bar__title {
|
|
6361
|
-
padding-left: 24px;
|
|
6362
|
-
}
|
|
6363
|
-
}
|
|
6364
6403
|
.editor-document-bar__title h1 {
|
|
6365
6404
|
display: flex;
|
|
6366
6405
|
align-items: center;
|
|
@@ -6388,17 +6427,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6388
6427
|
}
|
|
6389
6428
|
}
|
|
6390
6429
|
|
|
6391
|
-
.editor-document-bar__shortcut {
|
|
6392
|
-
color: #2f2f2f;
|
|
6393
|
-
min-width: 24px;
|
|
6394
|
-
display: none;
|
|
6395
|
-
}
|
|
6396
|
-
@media (min-width: 782px) {
|
|
6397
|
-
.editor-document-bar__shortcut {
|
|
6398
|
-
display: initial;
|
|
6399
|
-
}
|
|
6400
|
-
}
|
|
6401
|
-
|
|
6402
6430
|
.editor-document-bar__back.components-button.has-icon.has-text {
|
|
6403
6431
|
min-width: 36px;
|
|
6404
6432
|
flex-shrink: 0;
|
|
@@ -6788,14 +6816,14 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6788
6816
|
background: #fff;
|
|
6789
6817
|
display: grid;
|
|
6790
6818
|
grid-auto-flow: row;
|
|
6791
|
-
grid-template: auto/
|
|
6819
|
+
grid-template: auto/32px minmax(0, max-content) minmax(min-content, 1fr) 64px;
|
|
6792
6820
|
}
|
|
6793
6821
|
.editor-header:has(> .editor-header__center) {
|
|
6794
|
-
grid-template: auto/
|
|
6822
|
+
grid-template: auto/32px min-content 1fr min-content 64px;
|
|
6795
6823
|
}
|
|
6796
6824
|
@media (min-width: 782px) {
|
|
6797
6825
|
.editor-header:has(> .editor-header__center) {
|
|
6798
|
-
grid-template: auto/
|
|
6826
|
+
grid-template: auto/32px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px;
|
|
6799
6827
|
}
|
|
6800
6828
|
}
|
|
6801
6829
|
@media (min-width: 480px) {
|
|
@@ -6814,6 +6842,10 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
6814
6842
|
}
|
|
6815
6843
|
}
|
|
6816
6844
|
|
|
6845
|
+
.editor-header__back-button {
|
|
6846
|
+
padding-left: 8px;
|
|
6847
|
+
}
|
|
6848
|
+
|
|
6817
6849
|
.editor-header__toolbar {
|
|
6818
6850
|
grid-column: 1/3;
|
|
6819
6851
|
}
|
|
@@ -7711,7 +7743,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
7711
7743
|
}
|
|
7712
7744
|
@media (min-width: 782px) {
|
|
7713
7745
|
body.is-fullscreen-mode .editor-post-publish-panel {
|
|
7714
|
-
top: 0;
|
|
7746
|
+
top: var(--wp-admin--admin-bar--height, 0);
|
|
7715
7747
|
}
|
|
7716
7748
|
[role=region]:focus .editor-post-publish-panel {
|
|
7717
7749
|
transform: translateX(0%);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const NOTE_FORMAT_NAME = "core/note";
|
|
2
|
+
export declare const noteFormat: {
|
|
3
|
+
title: import("@wordpress/i18n").TransformedText<"Add note">;
|
|
4
|
+
tagName: string;
|
|
5
|
+
className: string;
|
|
6
|
+
attributes: {
|
|
7
|
+
'data-id': string;
|
|
8
|
+
};
|
|
9
|
+
edit: typeof NoteFormatEdit;
|
|
10
|
+
};
|
|
11
|
+
declare function NoteFormatEdit({ value, isActive, activeAttributes }: {
|
|
12
|
+
activeAttributes: any;
|
|
13
|
+
isActive: any;
|
|
14
|
+
value: any;
|
|
15
|
+
}): import("react").JSX.Element | null;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/format.js"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,UAAU;IACtB,KAAK;IACL,OAAO;IACP,SAAS;IACT,UAAU;QACT,SAAS;;IAEV,IAAI;CACJ,CAAC;AAEF,iBAAS,cAAc,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE;;;;CAAA,sCA0C7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AA2CA,wBAAgB,cAAc,CAAE,MAAM,KAAA;;;EAgIrC;AAoGD,wBAAgB,cAAc;;;;;;;;;;;EA+N7B;AAED,wBAAgB,wBAAwB,CAAE,OAAO,UAAQ,QA4BxD;AAED,wBAAgB,gBAAgB,CAAE,EACjC,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV;;;;;CAAA;;;;EA0DA"}
|
|
@@ -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":"AA+NA,MAAM,CAAC,OAAO,UAAU,qBAAqB,uCA0B5C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the CSS rule set that tints each inline-note marker with its author's
|
|
3
|
+
* avatar color. Pure helper extracted so it can be unit-tested without React.
|
|
4
|
+
*
|
|
5
|
+
* @param {Array} threads Unresolved note threads (each with `id` and `author`).
|
|
6
|
+
* @param {string|null} selectedId ID of the currently selected note, if any.
|
|
7
|
+
* @return {string} A serialized CSS string targeting the in-content note markers.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildHighlightCss(threads: any[], selectedId?: string | null): string;
|
|
10
|
+
/**
|
|
11
|
+
* Injects per-note background rules into the editor canvas so inline-note
|
|
12
|
+
* markers carry their author's avatar color. The `core/note` format serializes
|
|
13
|
+
* each marker as `<mark class="wp-note" data-id="{noteId}">`, which we target
|
|
14
|
+
* directly.
|
|
15
|
+
*
|
|
16
|
+
* Uses `useStyleOverride` so the styles reach the iframed canvas; a plain
|
|
17
|
+
* `<style>` element rendered in the sidebar would only affect the parent doc.
|
|
18
|
+
*
|
|
19
|
+
* Opacity boosts on `:hover`, `:focus-within`, and when the matching thread is
|
|
20
|
+
* the editor's selected note.
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} props
|
|
23
|
+
* @param {Array} props.threads Unresolved note threads.
|
|
24
|
+
* @param {string|null} [props.selectedId] ID of the currently selected note.
|
|
25
|
+
* @return {null} Renders nothing; styles are applied via `useStyleOverride`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function NoteHighlightStyles({ threads, selectedId }: {
|
|
28
|
+
threads: any[];
|
|
29
|
+
selectedId?: string | null;
|
|
30
|
+
}): null;
|
|
31
|
+
//# sourceMappingURL=note-highlight-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note-highlight-styles.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/note-highlight-styles.js"],"names":[],"mappings":"AAuBA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAE,OAAO,OAAA,EAAE,UAAU,GAH3C,MAAM,GAAC,IAG2C,GAFjD,MAAM,CA2BjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAJzD;IAA2B,OAAO,QAClC;IAA4B,UAAU,AAAtC,CACA,EADQ,MAAM,GAAC,IAAI,CACnB;CAEyD,GAFhD,IAAI,CASf"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { RichTextData } from '@wordpress/rich-text';
|
|
1
2
|
/**
|
|
2
|
-
* Sanitizes a note string by
|
|
3
|
+
* Sanitizes a note string by trimming leading and trailing whitespace.
|
|
3
4
|
*
|
|
4
5
|
* @param {string} str - The note string to sanitize.
|
|
5
6
|
* @return {string} - The sanitized note string.
|
|
@@ -8,8 +9,11 @@ export declare function sanitizeNoteContent(str: string): string;
|
|
|
8
9
|
/**
|
|
9
10
|
* Gets the border color for an avatar based on the user ID.
|
|
10
11
|
*
|
|
12
|
+
* Always returns a 6-digit `#RRGGBB` hex string; callers (e.g. the highlight
|
|
13
|
+
* styles) rely on this format to append alpha suffixes.
|
|
14
|
+
*
|
|
11
15
|
* @param {number} userId - The user ID.
|
|
12
|
-
* @return {string} - The border color.
|
|
16
|
+
* @return {string} - The border color as a `#RRGGBB` hex string.
|
|
13
17
|
*/
|
|
14
18
|
export declare function getAvatarBorderColor(userId: number): string;
|
|
15
19
|
/**
|
|
@@ -38,6 +42,82 @@ export declare function getNoteIdsFromMetadata(metadata: Object): number[];
|
|
|
38
42
|
* @return {Object} Updated metadata object
|
|
39
43
|
*/
|
|
40
44
|
export declare function addNoteIdToMetadata(metadata: Object, noteId: number): Object;
|
|
45
|
+
/**
|
|
46
|
+
* Search a rich-text value for a `core/note` marker matching `noteId` and
|
|
47
|
+
* return its character range. Used to derive an inline note's anchor from
|
|
48
|
+
* the in-content marker (resilient to edits) rather than stale offset meta.
|
|
49
|
+
*
|
|
50
|
+
* @param {*} value Block attribute value (RichTextData, string, or other).
|
|
51
|
+
* @param {number|string} noteId Note id to search for.
|
|
52
|
+
* @return {?{start: number, end: number}} Range or null when no marker is found.
|
|
53
|
+
*/
|
|
54
|
+
export declare function findNoteRange(value: any, noteId: number | string): {
|
|
55
|
+
start: number;
|
|
56
|
+
end: number;
|
|
57
|
+
} | null;
|
|
58
|
+
/**
|
|
59
|
+
* Locate a note's in-content `core/note` marker across all of a block's
|
|
60
|
+
* attributes. The marker (carrying `data-id`) is the single source of truth for
|
|
61
|
+
* an inline note's anchor: a note is inline iff a marker with its id exists in
|
|
62
|
+
* the block, and the attribute that holds it is discovered here rather than
|
|
63
|
+
* stored separately. Returns the matching attribute key and the marker range.
|
|
64
|
+
*
|
|
65
|
+
* @param {?Object} attributes Block attributes, or null/undefined when unloaded.
|
|
66
|
+
* @param {number|string} noteId Note id to search for.
|
|
67
|
+
* @return {?{attributeKey: string, start: number, end: number}} Anchor or null when no marker is found.
|
|
68
|
+
*/
|
|
69
|
+
export declare function findNoteInBlock(attributes: Object | null, noteId: number | string): {
|
|
70
|
+
attributeKey: string;
|
|
71
|
+
start: number;
|
|
72
|
+
end: number;
|
|
73
|
+
} | null;
|
|
74
|
+
export declare const BLOCK_LEVEL_NOTE_START = -1;
|
|
75
|
+
/**
|
|
76
|
+
* Resolve an inline note's character offset in its block so threads can be
|
|
77
|
+
* sorted by reading order. A note is inline iff an in-content `core/note`
|
|
78
|
+
* marker carries its id; block-level notes (no marker) sort first within their
|
|
79
|
+
* block via a sentinel.
|
|
80
|
+
*
|
|
81
|
+
* @param {Object} thread Materialized thread record (with `.id`).
|
|
82
|
+
* @param {?Object} attributes Block attributes for the thread's block.
|
|
83
|
+
* @return {number} Marker start offset, or `BLOCK_LEVEL_NOTE_START` when there is no inline anchor.
|
|
84
|
+
*/
|
|
85
|
+
export declare function getInlineMarkerStart(thread: Object, attributes: Object | null): number;
|
|
86
|
+
/**
|
|
87
|
+
* Apply a `core/note` marker across `[start, end)` without removing notes
|
|
88
|
+
* already present in that range.
|
|
89
|
+
*
|
|
90
|
+
* Rich-text's `applyFormat` strips any existing format of the same type before
|
|
91
|
+
* applying, so two `core/note` markers can't coexist - a note drawn over an
|
|
92
|
+
* existing one would wipe it in the overlap. This keeps every overlapping note
|
|
93
|
+
* and orders the markers outermost-first by span, so a note fully contained in
|
|
94
|
+
* another nests inside it (`<mark><mark>…</mark></mark>`). Crossing (partial)
|
|
95
|
+
* overlaps can't nest in HTML and serialize as split runs, but each note keeps
|
|
96
|
+
* its full range. The returned record is not normalised; callers should
|
|
97
|
+
* round-trip it (e.g. through `RichTextData`) before storing.
|
|
98
|
+
*
|
|
99
|
+
* @param {Object} record A rich-text record (`{ text, formats, … }`).
|
|
100
|
+
* @param {Object} format The `core/note` format to add (`{ type, attributes }`).
|
|
101
|
+
* @param {number} start Range start (inclusive).
|
|
102
|
+
* @param {number} end Range end (exclusive).
|
|
103
|
+
* @return {Object} A new record with the note applied.
|
|
104
|
+
*/
|
|
105
|
+
export declare function applyNoteFormat(record: Object, format: Object, start: number, end: number): Object;
|
|
106
|
+
/**
|
|
107
|
+
* Remove a single note's `core/note` marker from a rich-text value, leaving any
|
|
108
|
+
* other notes nested or overlapping with it intact. Used when a note is deleted
|
|
109
|
+
* or resolved so its highlight does not linger in the content.
|
|
110
|
+
*
|
|
111
|
+
* Rich-text's `removeFormat` strips every `core/note` marker in a range, so it
|
|
112
|
+
* would wipe co-located notes; this filters by `data-id` to drop only the target
|
|
113
|
+
* marker.
|
|
114
|
+
*
|
|
115
|
+
* @param {*} value Block attribute value (RichTextData or other).
|
|
116
|
+
* @param {number|string} noteId Note id whose marker should be removed.
|
|
117
|
+
* @return {?RichTextData} A new value with the marker removed, or null when the
|
|
118
|
+
* attribute isn't rich text or carries no such marker.
|
|
119
|
+
*/
|
|
120
|
+
export declare function removeNoteFormat(value: any, noteId: number | string): RichTextData | null;
|
|
41
121
|
/**
|
|
42
122
|
* Picks the most relevant thread from a list: first unresolved, else first.
|
|
43
123
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/utils.js"],"names":[],"mappings":"AAIA,OAAO,EA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AaG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,EAL5B,GAK4B,EAAE,MAAM,EAJpC,MAAM,GAAC,MAI6B,GAHnC,mBAAa,CAiCxB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAE,OAAO,OAAA,GAF5B,SAAO,IAAI,CAQtB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAE,QAAQ,QAAA,EAAE,MAAM,EAH/C,MAG+C,UAOzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAE,EACvC,OAAO,EACP,cAAc,EACd,UAAU,EACV,OAAO,EACP,SAAa,EACb,EAbE;IAAwC,OAAO,QAC/C;IAAwC,cAAc,EAA9C,MAAM,GAAC,MAAM,GAAC,SAAS,CAC/B;IAAwC,UAAU,0BAClD;IAAwC,OAAO,yBAC/C;IAAwC,SAAS,EAAzC,MAAM,CACd;CAQF,GARW;IAAE,SAAS,yBAAuB;CAAE,CA8F/C;AAkDD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,MAAM,EAJ5B,MAI4B,EAAE,SAAS,EAHvC,kBAGuC,EAAE,kBAAkB,EAF3D,MAE2D,iBAUrE;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAE,MAAM,EAHrC,MAGqC,EAAE,SAAS,EAFhD,kBAEgD,iBAI1D"}
|
package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-collaborator-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/use-collaborator-notifications.ts"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACrB,IAAI,
|
|
1
|
+
{"version":3,"file":"use-collaborator-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/use-collaborator-notifications.ts"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACrB,IAAI,CAyKN"}
|
|
@@ -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":"AA8lBA,MAAM,CAAC,OAAO,UAAU,WAAW,SA4BlC"}
|
|
@@ -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":"AAoCI,YAAoD,QAAQ,GAAlD,OAAO,uBAAuB,EAAE,QAAQ,CAAU;AAIhE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,KAAK,EANvC;IAAwB,KAAK,EAArB,MAAM,CACd;IAAwB,IAAI,2CAG5B;CAEuC,6BAuNzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/entities-saved-states/index.js"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,EAC5C,KAAK,EACL,YAAY,EACZ,OAAO,EACP,EAVE;IAAwB,KAAK,WAC7B;IAAwB,YAAY,AAApC,CACA,EADQ,OAAO,YAAC,CAChB;IAAwB,OAAO,EAAvB,MAAM,CAEd;CAMF,6BAUA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,6BAA6B,CAAE,EAC9C,gBAA4B,EAC5B,KAAK,EACL,MAAkB,EAClB,WAAW,EAAE,eAA2B,EACxC,SAAwB,EACxB,YAAY,EACZ,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACrB,kBAAkB,EAClB,OAAmB,EACnB,oBAAoB,EACpB,EA5BE;IAAwB,gBAAgB,EAAhC,MAAM,CACd;IAAwB,KAAK,WAC7B;IAAwB,MAAM,WAC9B;IAAwB,WAAW,EAA3B,OAAO,CACf;IAAwB,SAAS,EAAzB,MAAM,CACd;IAAwB,YAAY,EAA5B,OAAO,CACf;IAAwB,kBAAkB,QAC1C;IAAwB,OAAO,EAAvB,OAAO,CACf;IAAwB,qBAAqB,WAC7C;IAAwB,kBAAkB,QAC1C;IAAwB,OAAO,EAAvB,MAAM,CACd;IAAwB,oBAAoB,EAApC,MAAM,CAEd;CAeF,6BA0JA"}
|
|
@@ -8,7 +8,16 @@
|
|
|
8
8
|
export type InserterMediaRequest = import('@wordpress/block-editor').InserterMediaRequest;
|
|
9
9
|
export type InserterMediaItem = import('@wordpress/block-editor').InserterMediaItem;
|
|
10
10
|
export type InserterMediaCategory = import('@wordpress/block-editor').InserterMediaCategory;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Returns the inserter media categories for a given post. The "Attachments"
|
|
13
|
+
* category is prepended only when editing real, front-end-rendered content
|
|
14
|
+
* (posts, pages, public custom post types). It is omitted for synced patterns,
|
|
15
|
+
* navigation menus and templates, which aren't the entity that actually gets
|
|
16
|
+
* rendered, so attaching media to them is meaningless.
|
|
17
|
+
*
|
|
18
|
+
* @param {number|string} postId The current post id.
|
|
19
|
+
* @param {string} [viewablePostTypeLabel] Singular label of the post type, set only when it is front-end viewable (post, page, public CPT).
|
|
20
|
+
* @return {InserterMediaCategory[]} The inserter media categories.
|
|
21
|
+
*/
|
|
22
|
+
export default function getInserterMediaCategories(postId: number | string, viewablePostTypeLabel?: string): any[];
|
|
14
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-categories/index.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcC,YAAkE,oBAAoB,GAA5E,OAAO,yBAAyB,EAAE,oBAAoB,CAAsB;AACtF,YAA+D,iBAAiB,GAAtE,OAAO,yBAAyB,EAAE,iBAAiB,CAAmB;AAChF,YAAmE,qBAAqB,GAA9E,OAAO,yBAAyB,EAAE,qBAAqB,CAAuB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-categories/index.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcC,YAAkE,oBAAoB,GAA5E,OAAO,yBAAyB,EAAE,oBAAoB,CAAsB;AACtF,YAA+D,iBAAiB,GAAtE,OAAO,yBAAyB,EAAE,iBAAiB,CAAmB;AAChF,YAAmE,qBAAqB,GAA9E,OAAO,yBAAyB,EAAE,qBAAqB,CAAuB;AA2U5F;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CACjD,MAAM,EALI,MAAM,GAAC,MAKX,EACN,qBAAqB,AALnB,CACA,EADQ,MAKW,GAJV,KAAuB,CAoBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAwCA,eAAO,MAAM,eAAe,yCAY3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../src/components/page-attributes/parent.js"],"names":[],"mappings":"AAwCA,eAAO,MAAM,eAAe,yCAY3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,oBAAoB,8BAoJnC;AAkCD,wBAAgB,SAAS,gCA4ExB;eAEc,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/combobox.js"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/combobox.js"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,UAAU,kBAAkB,gCA+BzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/select.js"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/post-author/select.js"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,gBAAgB,gCAmBvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-preview-button/index.js"],"names":[],"mappings":"AAwKA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,EAdE;IAAwB,SAAS,EAAzB,MAAM,CACd;IAAwB,WAAW,EAA3B,MAAM,CACd;IAAwB,mBAAmB,EAAnC,OAAO,CACf;IAAwB,IAAI,EAApB,MAAM,CACd;IAAwB,SAAS,WAEjC;CAQF,6BAsFA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-upload-media.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-upload-media.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"maybe-upload-media.d.ts","sourceRoot":"","sources":["../../../src/components/post-publish-panel/maybe-upload-media.js"],"names":[],"mappings":"AAmHA,MAAM,CAAC,OAAO,UAAU,qBAAqB,uCAqJ5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,iBAAS,eAAe,gCA0KvB;eAEc,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flat-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/flat-term-selector.js"],"names":[],"mappings":"AAuDA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,EAAE,IAAI,EAAE,EAJvC;IAAsB,IAAI,EAAlB,MAAM,CAEd;CAEuC,
|
|
1
|
+
{"version":3,"file":"flat-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/flat-term-selector.js"],"names":[],"mappings":"AAuDA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,EAAE,IAAI,EAAE,EAJvC;IAAsB,IAAI,EAAlB,MAAM,CAEd;CAEuC,6BAyOzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AAmDA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,SAAS,EAL9B,QAK8B,EAAE,KAAK,EAJrC,MAAM,EAI+B,GAFpC,QAAQ,CAqCnB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAE,KAAK,EALpB,QAKoB,EAAE,MAAM,EAJ5B,MAAM,GAAC,MAIqB,EAAE,IAAI,EAHlC,MAGkC,UAQ5C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAE,WAAW,EAHlC,MAGkC,GAFjC,UAAS,CAqCpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAE,EAAE,IAAI,EAAE,EAH/C;IAAsB,IAAI,EAAlB,MAAM,CACd;CAE+C,
|
|
1
|
+
{"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AAmDA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,SAAS,EAL9B,QAK8B,EAAE,KAAK,EAJrC,MAAM,EAI+B,GAFpC,QAAQ,CAqCnB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAE,KAAK,EALpB,QAKoB,EAAE,MAAM,EAJ5B,MAAM,GAAC,MAIqB,EAAE,IAAI,EAHlC,MAGkC,UAQ5C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAE,WAAW,EAHlC,MAGkC,GAFjC,UAAS,CAqCpB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAE,EAAE,IAAI,EAAE,EAH/C;IAAsB,IAAI,EAAlB,MAAM,CACd;CAE+C,WAyUjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":"AAmNA,iBAAS,mBAAmB,gCAiC3B;AAED;;;;;;GAMG;eACY,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":"AA4HA;;;;;;;;;GASG;AACH,iBAAS,sBAAsB,CAAE,QAAQ,QAAA,EAAE,QAAQ,EANxC,MAMwC,EAAE,MAAM,EALhD,MAKgD,EAAE,aAAa,EAJ/D,MAI+D,UA2WzE;eAEc,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAgLA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,EAAE,iBAAiB,EAAE;;CAAA,+BA6OjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":"AAgJA,QAAA,MAAM,OAAO;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":"AAgJA,QAAA,MAAM,OAAO;;;iCAmDZ,CAAC;eAEa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AAqCA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EAAE,iBAAiB,EAAE;;CAAA,+BAgEzD"}
|
|
@@ -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;AAsE1D,OAAO,CAAC,MAAM,CAAC,CAAC;IACf,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;KACzC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;UAGf,wBAAwB;;;;EAK/B;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;UAGT,0BAA0B;;;;EAKjC;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;UAGd,uBAAuB;;;;EAK9B;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;UAGR,yBAAyB;;;;EAKhC;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;UAE9C,cAAc;;;EAIrB;AA2BD,eAAO,MAAM,sBAAsB,aACtB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBAiLtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAwBA,cAAc,oCAAoC,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,EAAE,EAJ7B,MAI6B,UAKvC;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,aAFf,MAAM,OAAA;;;;kBAqChB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAFhB,MAAM,EAAE;;UAoBjB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAFhB,MAAM,EAAE;;UAkBjB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,kFAN3B;IAA2B,MAAM,AAAjC,CACA,WAAA;IAA2B,kBAAkB,AAA7C,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,cAAc,AAAzC,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,KAAK,AAAhC,CACA,WAAA;IAA2B,oBAAoB,AAA/C,CACF,EADU,MAAM,CAChB;CAAA;;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAwBA,cAAc,oCAAoC,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,EAAE,EAJ7B,MAI6B,UAKvC;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,aAFf,MAAM,OAAA;;;;kBAqChB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAFhB,MAAM,EAAE;;UAoBjB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAFhB,MAAM,EAAE;;UAkBjB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,kFAN3B;IAA2B,MAAM,AAAjC,CACA,WAAA;IAA2B,kBAAkB,AAA7C,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,cAAc,AAAzC,CACA,EADQ,MAAM,EAAE,CAChB;IAA2B,KAAK,AAAhC,CACA,WAAA;IAA2B,oBAAoB,AAA/C,CACF,EADU,MAAM,CAChB;CAAA;;UAiHC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,aALhB,MAAM,kBAEd;IAA0B,SAAS,AAAnC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AMG;AACH,wBAAgB,sBAAsB,CAAE,KAAK,QAAA,GAFjC,OAAO,CAIlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,
|
|
1
|
+
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAE,cAAc,EAJxC,MAIwC,GAFvC,MAAM,CAajB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sideloads an external image into the media library from its URL.
|
|
3
|
+
*
|
|
4
|
+
* The server downloads the remote file, which avoids a cross-origin browser
|
|
5
|
+
* fetch that fails when the editor is cross-origin isolated. Since the server
|
|
6
|
+
* owns the upload it also generates sub-sizes, as with a regular upload.
|
|
7
|
+
*
|
|
8
|
+
* @param {Object} $0 Parameters object.
|
|
9
|
+
* @param {string} $0.url URL of the external image to sideload.
|
|
10
|
+
* @param {Function} $0.onSuccess Function called with the new attachment on success.
|
|
11
|
+
* @param {Function} $0.onError Function called with an error message on failure.
|
|
12
|
+
*/
|
|
13
|
+
export default function mediaSideloadFromUrl({ url, onSuccess, onError }: {
|
|
14
|
+
url: string;
|
|
15
|
+
onSuccess: Function;
|
|
16
|
+
onError: Function;
|
|
17
|
+
}): void;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|