@wordpress/block-editor 15.12.1-next.v.0 → 15.12.2-next.v.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/components/block-allowed-blocks/modal.cjs +1 -1
- package/build/components/block-allowed-blocks/modal.cjs.map +2 -2
- package/build/components/block-removal-warning-modal/index.cjs +30 -5
- package/build/components/block-removal-warning-modal/index.cjs.map +3 -3
- package/build/components/block-visibility/use-block-visibility.cjs +14 -29
- package/build/components/block-visibility/use-block-visibility.cjs.map +2 -2
- package/build/components/global-styles/hooks.cjs +7 -0
- package/build/components/global-styles/hooks.cjs.map +2 -2
- package/build/components/global-styles/typography-panel.cjs +71 -3
- package/build/components/global-styles/typography-panel.cjs.map +3 -3
- package/build/components/grid/grid-visualizer.cjs +49 -13
- package/build/components/grid/grid-visualizer.cjs.map +2 -2
- package/build/components/iframe/index.cjs +3 -1
- package/build/components/iframe/index.cjs.map +2 -2
- package/build/components/iframe/use-scale-canvas.cjs +1 -0
- package/build/components/iframe/use-scale-canvas.cjs.map +2 -2
- package/build/components/link-control/index.cjs +73 -2
- package/build/components/link-control/index.cjs.map +3 -3
- package/build/components/link-control/is-url-like.cjs +15 -3
- package/build/components/link-control/is-url-like.cjs.map +2 -2
- package/build/components/link-control/search-input.cjs +4 -1
- package/build/components/link-control/search-input.cjs.map +2 -2
- package/build/components/link-control/use-search-handler.cjs +1 -1
- package/build/components/link-control/use-search-handler.cjs.map +2 -2
- package/build/components/provider/use-block-sync.cjs +60 -8
- package/build/components/provider/use-block-sync.cjs.map +2 -2
- package/build/components/text-indent-control/index.cjs +121 -0
- package/build/components/text-indent-control/index.cjs.map +7 -0
- package/build/components/url-input/index.cjs +22 -2
- package/build/components/url-input/index.cjs.map +3 -3
- package/build/components/url-popover/image-url-input-ui.cjs +1 -1
- package/build/components/url-popover/image-url-input-ui.cjs.map +2 -2
- package/build/components/writing-flow/use-arrow-nav.cjs +0 -3
- package/build/components/writing-flow/use-arrow-nav.cjs.map +2 -2
- package/build/hooks/aria-label.cjs +2 -1
- package/build/hooks/aria-label.cjs.map +2 -2
- package/build/hooks/grid-visualizer.cjs +20 -4
- package/build/hooks/grid-visualizer.cjs.map +2 -2
- package/build/hooks/layout-child.cjs +8 -3
- package/build/hooks/layout-child.cjs.map +2 -2
- package/build/hooks/typography.cjs +2 -0
- package/build/hooks/typography.cjs.map +2 -2
- package/build/hooks/utils.cjs +4 -0
- package/build/hooks/utils.cjs.map +2 -2
- package/build/store/actions.cjs +2 -2
- package/build/store/actions.cjs.map +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs.map +2 -2
- package/build-module/components/block-removal-warning-modal/index.mjs +34 -7
- package/build-module/components/block-removal-warning-modal/index.mjs.map +2 -2
- package/build-module/components/block-visibility/use-block-visibility.mjs +14 -29
- package/build-module/components/block-visibility/use-block-visibility.mjs.map +2 -2
- package/build-module/components/global-styles/hooks.mjs +7 -0
- package/build-module/components/global-styles/hooks.mjs.map +2 -2
- package/build-module/components/global-styles/typography-panel.mjs +73 -4
- package/build-module/components/global-styles/typography-panel.mjs.map +2 -2
- package/build-module/components/grid/grid-visualizer.mjs +50 -14
- package/build-module/components/grid/grid-visualizer.mjs.map +2 -2
- package/build-module/components/iframe/index.mjs +9 -2
- package/build-module/components/iframe/index.mjs.map +2 -2
- package/build-module/components/iframe/use-scale-canvas.mjs +1 -0
- package/build-module/components/iframe/use-scale-canvas.mjs.map +2 -2
- package/build-module/components/link-control/index.mjs +74 -3
- package/build-module/components/link-control/index.mjs.map +2 -2
- package/build-module/components/link-control/is-url-like.mjs +10 -3
- package/build-module/components/link-control/is-url-like.mjs.map +2 -2
- package/build-module/components/link-control/search-input.mjs +4 -1
- package/build-module/components/link-control/search-input.mjs.map +2 -2
- package/build-module/components/link-control/use-search-handler.mjs +2 -2
- package/build-module/components/link-control/use-search-handler.mjs.map +2 -2
- package/build-module/components/provider/use-block-sync.mjs +60 -8
- package/build-module/components/provider/use-block-sync.mjs.map +2 -2
- package/build-module/components/text-indent-control/index.mjs +110 -0
- package/build-module/components/text-indent-control/index.mjs.map +7 -0
- package/build-module/components/url-input/index.mjs +24 -4
- package/build-module/components/url-input/index.mjs.map +2 -2
- package/build-module/components/url-popover/image-url-input-ui.mjs +2 -2
- package/build-module/components/url-popover/image-url-input-ui.mjs.map +2 -2
- package/build-module/components/writing-flow/use-arrow-nav.mjs +0 -3
- package/build-module/components/writing-flow/use-arrow-nav.mjs.map +2 -2
- package/build-module/hooks/aria-label.mjs +2 -1
- package/build-module/hooks/aria-label.mjs.map +2 -2
- package/build-module/hooks/grid-visualizer.mjs +20 -4
- package/build-module/hooks/grid-visualizer.mjs.map +2 -2
- package/build-module/hooks/layout-child.mjs +8 -3
- package/build-module/hooks/layout-child.mjs.map +2 -2
- package/build-module/hooks/typography.mjs +2 -0
- package/build-module/hooks/typography.mjs.map +2 -2
- package/build-module/hooks/utils.mjs +4 -0
- package/build-module/hooks/utils.mjs.map +2 -2
- package/build-module/store/actions.mjs +2 -2
- package/build-module/store/actions.mjs.map +2 -2
- package/package.json +39 -39
- package/src/components/block-allowed-blocks/modal.js +2 -2
- package/src/components/block-removal-warning-modal/index.js +55 -19
- package/src/components/block-switcher/block-transformations-menu.native.js +1 -0
- package/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap +4 -6
- package/src/components/block-toolbar/test/block-toolbar-menu.native.js +2 -2
- package/src/components/block-visibility/use-block-visibility.js +17 -32
- package/src/components/global-styles/hooks.js +10 -0
- package/src/components/global-styles/typography-panel.js +78 -1
- package/src/components/grid/grid-visualizer.js +58 -12
- package/src/components/iframe/index.js +12 -2
- package/src/components/iframe/use-scale-canvas.js +1 -0
- package/src/components/inserter/menu.native.js +1 -0
- package/src/components/link-control/index.js +160 -3
- package/src/components/link-control/is-url-like.js +43 -8
- package/src/components/link-control/search-input.js +7 -0
- package/src/components/link-control/test/index.js +260 -0
- package/src/components/link-control/test/is-url-like.js +49 -1
- package/src/components/link-control/use-search-handler.js +2 -2
- package/src/components/provider/test/use-block-sync.js +105 -0
- package/src/components/provider/use-block-sync.js +118 -9
- package/src/components/text-indent-control/index.js +138 -0
- package/src/components/url-input/index.js +21 -2
- package/src/components/url-popover/image-url-input-ui.js +2 -2
- package/src/components/writing-flow/use-arrow-nav.js +0 -4
- package/src/hooks/aria-label.js +9 -1
- package/src/hooks/grid-visualizer.js +53 -33
- package/src/hooks/layout-child.js +6 -0
- package/src/hooks/typography.js +2 -0
- package/src/hooks/utils.js +4 -0
- package/src/store/actions.js +8 -6
package/src/hooks/utils.js
CHANGED
|
@@ -252,6 +252,7 @@ export function useBlockSettings( name, parentLayout ) {
|
|
|
252
252
|
textAlign,
|
|
253
253
|
textColumns,
|
|
254
254
|
textDecoration,
|
|
255
|
+
textIndent,
|
|
255
256
|
writingMode,
|
|
256
257
|
textTransform,
|
|
257
258
|
letterSpacing,
|
|
@@ -313,6 +314,7 @@ export function useBlockSettings( name, parentLayout ) {
|
|
|
313
314
|
'typography.textAlign',
|
|
314
315
|
'typography.textColumns',
|
|
315
316
|
'typography.textDecoration',
|
|
317
|
+
'typography.textIndent',
|
|
316
318
|
'typography.writingMode',
|
|
317
319
|
'typography.textTransform',
|
|
318
320
|
'typography.letterSpacing',
|
|
@@ -412,6 +414,7 @@ export function useBlockSettings( name, parentLayout ) {
|
|
|
412
414
|
textAlign,
|
|
413
415
|
textColumns,
|
|
414
416
|
textDecoration,
|
|
417
|
+
textIndent,
|
|
415
418
|
textTransform,
|
|
416
419
|
letterSpacing,
|
|
417
420
|
writingMode,
|
|
@@ -464,6 +467,7 @@ export function useBlockSettings( name, parentLayout ) {
|
|
|
464
467
|
textAlign,
|
|
465
468
|
textColumns,
|
|
466
469
|
textDecoration,
|
|
470
|
+
textIndent,
|
|
467
471
|
textTransform,
|
|
468
472
|
letterSpacing,
|
|
469
473
|
writingMode,
|
package/src/store/actions.js
CHANGED
|
@@ -517,11 +517,12 @@ export function moveBlockToPosition(
|
|
|
517
517
|
* Only allowed blocks are inserted. The action may fail silently for blocks that are not allowed or if
|
|
518
518
|
* a templateLock is active on the block list.
|
|
519
519
|
*
|
|
520
|
-
* @param {Object}
|
|
521
|
-
* @param {?number}
|
|
522
|
-
* @param {?string}
|
|
523
|
-
* @param {?boolean}
|
|
524
|
-
* @param {
|
|
520
|
+
* @param {Object} block Block object to insert.
|
|
521
|
+
* @param {?number} index Index at which block should be inserted.
|
|
522
|
+
* @param {?string} rootClientId Optional root client ID of block list on which to insert.
|
|
523
|
+
* @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true.
|
|
524
|
+
* @param {0|-1|null} initialPosition Initial focus position. Setting it to null prevent focusing the inserted block.
|
|
525
|
+
* @param {?Object} meta Optional Meta values to be passed to the action object.
|
|
525
526
|
*
|
|
526
527
|
* @return {Object} Action object.
|
|
527
528
|
*/
|
|
@@ -530,6 +531,7 @@ export function insertBlock(
|
|
|
530
531
|
index,
|
|
531
532
|
rootClientId,
|
|
532
533
|
updateSelection,
|
|
534
|
+
initialPosition,
|
|
533
535
|
meta
|
|
534
536
|
) {
|
|
535
537
|
return insertBlocks(
|
|
@@ -537,7 +539,7 @@ export function insertBlock(
|
|
|
537
539
|
index,
|
|
538
540
|
rootClientId,
|
|
539
541
|
updateSelection,
|
|
540
|
-
|
|
542
|
+
initialPosition,
|
|
541
543
|
meta
|
|
542
544
|
);
|
|
543
545
|
}
|