@wordpress/media-editor 0.13.0 → 0.14.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/components/media-editor/index.cjs +38 -39
  3. package/build/components/media-editor/index.cjs.map +3 -3
  4. package/build/components/media-editor-crop-panel/index.cjs +0 -1
  5. package/build/components/media-editor-crop-panel/index.cjs.map +2 -2
  6. package/build/image-editor/react/components/cropper.cjs +1 -11
  7. package/build/image-editor/react/components/cropper.cjs.map +2 -2
  8. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +8 -8
  9. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +2 -2
  10. package/build/image-editor/react/hooks/use-aria-announcer.cjs +75 -32
  11. package/build/image-editor/react/hooks/use-aria-announcer.cjs.map +2 -2
  12. package/build-module/components/media-editor/index.mjs +40 -43
  13. package/build-module/components/media-editor/index.mjs.map +2 -2
  14. package/build-module/components/media-editor-crop-panel/index.mjs +0 -1
  15. package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
  16. package/build-module/image-editor/react/components/cropper.mjs +1 -11
  17. package/build-module/image-editor/react/components/cropper.mjs.map +2 -2
  18. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +8 -8
  19. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +2 -2
  20. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs +76 -38
  21. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs.map +2 -2
  22. package/build-style/style-rtl.css +12 -6
  23. package/build-style/style.css +12 -6
  24. package/build-types/components/media-editor/index.d.ts.map +1 -1
  25. package/build-types/components/media-editor/use-crop-options.d.ts +1 -1
  26. package/build-types/components/media-editor/use-crop-options.d.ts.map +1 -1
  27. package/build-types/components/media-editor/use-save-media-editor.d.ts +1 -1
  28. package/build-types/components/media-editor/use-save-media-editor.d.ts.map +1 -1
  29. package/build-types/components/media-editor-canvas/index.d.ts +1 -1
  30. package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
  31. package/build-types/components/media-editor-crop-panel/index.d.ts +1 -1
  32. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
  33. package/build-types/components/media-editor-fine-rotation/index.d.ts +1 -1
  34. package/build-types/components/media-editor-fine-rotation/index.d.ts.map +1 -1
  35. package/build-types/components/media-editor-image-controls/index.d.ts +1 -1
  36. package/build-types/components/media-editor-image-controls/index.d.ts.map +1 -1
  37. package/build-types/components/media-editor-keyboard-shortcuts-modal/index.d.ts +1 -1
  38. package/build-types/components/media-editor-keyboard-shortcuts-modal/index.d.ts.map +1 -1
  39. package/build-types/components/media-editor-modal/index.d.ts +1 -1
  40. package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
  41. package/build-types/components/media-editor-provider/index.d.ts +1 -1
  42. package/build-types/components/media-editor-provider/index.d.ts.map +1 -1
  43. package/build-types/components/media-form/index.d.ts +1 -1
  44. package/build-types/components/media-form/index.d.ts.map +1 -1
  45. package/build-types/image-editor/react/components/cropper-provider.d.ts +1 -1
  46. package/build-types/image-editor/react/components/cropper-provider.d.ts.map +1 -1
  47. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
  48. package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts +1 -1
  49. package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts.map +1 -1
  50. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts +1 -1
  51. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +1 -1
  52. package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts +1 -1
  53. package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts.map +1 -1
  54. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +1 -1
  55. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -1
  56. package/build-types/image-editor/react/components/viewport-provider.d.ts +1 -1
  57. package/build-types/image-editor/react/components/viewport-provider.d.ts.map +1 -1
  58. package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts +5 -4
  59. package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts.map +1 -1
  60. package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +1 -1
  61. package/build-types/state/media-editor-state-provider.d.ts +1 -1
  62. package/build-types/state/media-editor-state-provider.d.ts.map +1 -1
  63. package/build-types/store/actions.d.ts +1 -1
  64. package/build-types/store/actions.d.ts.map +1 -1
  65. package/package.json +23 -21
  66. package/src/components/media-editor/index.tsx +75 -74
  67. package/src/components/media-editor/style.scss +9 -10
  68. package/src/components/media-editor-crop-panel/index.tsx +0 -1
  69. package/src/components/media-editor-image-controls/style.scss +1 -1
  70. package/src/components/media-editor-keyboard-shortcuts-modal/style.scss +1 -1
  71. package/src/components/media-preview/style.scss +1 -1
  72. package/src/components/rotation-ruler/style.scss +2 -2
  73. package/src/image-editor/react/components/cropper.tsx +3 -12
  74. package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +8 -8
  75. package/src/image-editor/react/components/stencils/test/rectangle-stencil.tsx +17 -15
  76. package/src/image-editor/react/components/test/cropper.tsx +17 -17
  77. package/src/image-editor/react/hooks/test/use-aria-announcer.ts +413 -5
  78. package/src/image-editor/react/hooks/use-aria-announcer.ts +120 -47
  79. package/src/image-editor/stories/rectangle-crop.story.tsx +0 -7
  80. package/tsconfig.json +1 -0
  81. package/tsconfig.tsbuildinfo +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/image-editor/react/hooks/use-aria-announcer.ts"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tuseState,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseRef,\n} from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CropperState } from '../../core/types';\n\n/** Debounce delay for ARIA live announcements (ms). */\nconst ARIA_DEBOUNCE_MS = 300;\n\nfunction buildFlipAnnouncement( state: CropperState ): string {\n\tconst { horizontal, vertical } = state.flip;\n\tif ( horizontal && vertical ) {\n\t\treturn __( 'Flipped horizontally and vertically' );\n\t}\n\tif ( horizontal ) {\n\t\treturn __( 'Flipped horizontally' );\n\t}\n\tif ( vertical ) {\n\t\treturn __( 'Flipped vertically' );\n\t}\n\treturn __( 'Flip removed' );\n}\n\n// Build a human-readable announcement string from cropper state.\nfunction buildAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string {\n\tif (\n\t\tpreviousState &&\n\t\t( previousState.flip.horizontal !== state.flip.horizontal ||\n\t\t\tpreviousState.flip.vertical !== state.flip.vertical )\n\t) {\n\t\treturn buildFlipAnnouncement( state );\n\t}\n\n\tconst parts: string[] = [];\n\tparts.push(\n\t\tsprintf(\n\t\t\t/* translators: %d: zoom level as a percentage. */\n\t\t\t__( 'Zoom %d%%' ),\n\t\t\tMath.round( state.zoom * 100 )\n\t\t)\n\t);\n\tif ( state.rotation !== 0 ) {\n\t\tparts.push(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %d: rotation angle in degrees. */\n\t\t\t\t__( 'Rotation %d degrees' ),\n\t\t\t\tMath.round( state.rotation )\n\t\t\t)\n\t\t);\n\t}\n\tconst cropW = Math.round( state.cropRect.width * 100 );\n\tconst cropH = Math.round( state.cropRect.height * 100 );\n\tparts.push(\n\t\tsprintf(\n\t\t\t/* translators: 1: crop width as a percentage, 2: crop height as a percentage. */\n\t\t\t__( 'Crop %1$d%% by %2$d%%' ),\n\t\t\tcropW,\n\t\t\tcropH\n\t\t)\n\t);\n\tif ( state.flip.horizontal || state.flip.vertical ) {\n\t\tparts.push( buildFlipAnnouncement( state ) );\n\t}\n\treturn parts.join( ', ' );\n}\n\n/**\n * Debounce and dedupe ARIA-live announcements for screen readers as the\n * cropper state changes. Returns the current announcement message to render\n * inside an `aria-live=\"polite\"` region.\n *\n * Debouncing avoids flooding the live region during drag/pointermove bursts;\n * deduping avoids re-announcing the same state.\n *\n * @param state The current cropper state to announce.\n */\nexport function useAriaAnnouncer( state: CropperState ): string {\n\tconst [ ariaMessage, setAriaMessage ] = useState( '' );\n\tconst timerRef = useRef< ReturnType< typeof setTimeout > >();\n\tconst prevMessageRef = useRef( '' );\n\tconst prevStateRef = useRef< CropperState | null >( null );\n\tconst latestStateRef = useRef( state );\n\tuseLayoutEffect( () => {\n\t\tlatestStateRef.current = state;\n\t}, [ state ] );\n\n\tuseEffect( () => {\n\t\tclearTimeout( timerRef.current );\n\t\ttimerRef.current = setTimeout( () => {\n\t\t\tconst current = latestStateRef.current;\n\t\t\tconst msg = buildAnnouncement( current, prevStateRef.current );\n\t\t\tprevStateRef.current = current;\n\t\t\tif ( msg !== prevMessageRef.current ) {\n\t\t\t\tprevMessageRef.current = msg;\n\t\t\t\tsetAriaMessage( msg );\n\t\t\t}\n\t\t}, ARIA_DEBOUNCE_MS );\n\n\t\treturn () => {\n\t\t\tclearTimeout( timerRef.current );\n\t\t};\n\t}, [\n\t\tstate.zoom,\n\t\tstate.rotation,\n\t\tstate.cropRect.width,\n\t\tstate.cropRect.height,\n\t\tstate.flip.horizontal,\n\t\tstate.flip.vertical,\n\t] );\n\n\treturn ariaMessage;\n}\n"],
5
- "mappings": ";AAGA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,IAAI,eAAe;AAQ5B,IAAM,mBAAmB;AAEzB,SAAS,sBAAuB,OAA8B;AAC7D,QAAM,EAAE,YAAY,SAAS,IAAI,MAAM;AACvC,MAAK,cAAc,UAAW;AAC7B,WAAO,GAAI,qCAAsC;AAAA,EAClD;AACA,MAAK,YAAa;AACjB,WAAO,GAAI,sBAAuB;AAAA,EACnC;AACA,MAAK,UAAW;AACf,WAAO,GAAI,oBAAqB;AAAA,EACjC;AACA,SAAO,GAAI,cAAe;AAC3B;AAGA,SAAS,kBACR,OACA,eACS;AACT,MACC,kBACE,cAAc,KAAK,eAAe,MAAM,K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ACzB,uBAAgB,GAAI;AAAA,MACrB;AAAA,IACD,GAAG,gBAAiB;AAEpB,WAAO,MAAM;AACZ,mBAAc,SAAS,OAAQ;AAAA,IAChC;AAAA,EACD,GAAG;AAAA,IACF,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM,SAAS;AAAA,IACf,MAAM,SAAS;AAAA,IACf,MAAM,KAAK;AAAA,IACX,MAAM,KAAK;AAAA,EACZ,CAAE;AAEF,SAAO;AACR;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { speak } from '@wordpress/a11y';\nimport { useEffect, useLayoutEffect, useRef } from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CropperState } from '../../core/types';\nimport { getSourceRegion } from '../../core/source-region';\n\n/** Debounce delay for ARIA live announcements (ms). */\nconst ARIA_DEBOUNCE_MS = 300;\n\nfunction getFlipAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string | undefined {\n\tif (\n\t\t! previousState ||\n\t\t( previousState.flip.horizontal === state.flip.horizontal &&\n\t\t\tpreviousState.flip.vertical === state.flip.vertical )\n\t) {\n\t\treturn undefined;\n\t}\n\tconst { horizontal, vertical } = state.flip;\n\tif ( horizontal && vertical ) {\n\t\treturn __( 'Flipped horizontally and vertically' );\n\t}\n\tif ( horizontal ) {\n\t\treturn __( 'Flipped horizontally' );\n\t}\n\tif ( vertical ) {\n\t\treturn __( 'Flipped vertically' );\n\t}\n\treturn __( 'Flip removed' );\n}\n\nfunction getRotationAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string | undefined {\n\tif (\n\t\tpreviousState &&\n\t\tMath.round( previousState.rotation ) === Math.round( state.rotation )\n\t) {\n\t\treturn undefined;\n\t}\n\t// Announce the visual rotation — what the user perceives on screen. A\n\t// single-axis flip mirrors the image, reversing the entire on-screen\n\t// rotation relative to the stored field (the same S·R·S inversion the\n\t// reducer applies), so negate the whole angle in that case.\n\tconst singleFlip = state.flip.horizontal !== state.flip.vertical;\n\tconst visualDir = singleFlip ? -1 : 1;\n\t// Normalize to (-180, 180] so the sign indicates direction.\n\tlet visualRotation = ( Math.round( state.rotation ) * visualDir ) % 360;\n\tif ( visualRotation > 180 ) {\n\t\tvisualRotation -= 360;\n\t}\n\tif ( visualRotation <= -180 ) {\n\t\tvisualRotation += 360;\n\t}\n\tif ( visualRotation === 0 ) {\n\t\treturn previousState ? __( 'Rotation 0 degrees' ) : undefined;\n\t}\n\tif ( visualRotation > 0 ) {\n\t\treturn sprintf(\n\t\t\t/* translators: %d: rotation angle in degrees. */\n\t\t\t__( 'Rotated %d degrees clockwise' ),\n\t\t\tvisualRotation\n\t\t);\n\t}\n\treturn sprintf(\n\t\t/* translators: %d: rotation angle in degrees. */\n\t\t__( 'Rotated %d degrees counterclockwise' ),\n\t\tMath.abs( visualRotation )\n\t);\n}\n\nfunction getCropAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string | undefined {\n\tif ( ! state.image ) {\n\t\treturn undefined;\n\t}\n\tconst imageSize = {\n\t\twidth: state.image.naturalWidth,\n\t\theight: state.image.naturalHeight,\n\t};\n\tconst region = getSourceRegion( state, imageSize );\n\t// Announce only when the crop's pixel dimensions change. Measuring both the\n\t// previous and current crop rects under the current rotation and zoom keeps\n\t// the comparison in the same pixel units we announce, and leaves a zoom-only\n\t// change — which doesn't move the crop rect — silent.\n\tif ( previousState?.image ) {\n\t\tconst previousRegion = getSourceRegion(\n\t\t\t{ ...state, cropRect: previousState.cropRect },\n\t\t\timageSize\n\t\t);\n\t\tif (\n\t\t\tMath.round( previousRegion.width ) === Math.round( region.width ) &&\n\t\t\tMath.round( previousRegion.height ) === Math.round( region.height )\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\t}\n\treturn sprintf(\n\t\t/* translators: 1: crop width in pixels, 2: crop height in pixels. */\n\t\t__( 'Crop %1$d by %2$d pixels' ),\n\t\tMath.round( region.width ),\n\t\tMath.round( region.height )\n\t);\n}\n\nfunction getZoomAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string | undefined {\n\tif (\n\t\tpreviousState &&\n\t\tMath.round( previousState.zoom * 100 ) ===\n\t\t\tMath.round( state.zoom * 100 )\n\t) {\n\t\treturn undefined;\n\t}\n\treturn sprintf(\n\t\t/* translators: %d: zoom level as a percentage. */\n\t\t__( 'Zoom %d%%' ),\n\t\tMath.round( state.zoom * 100 )\n\t);\n}\n\nfunction buildAnnouncement(\n\tstate: CropperState,\n\tpreviousState: CropperState | null\n): string {\n\t// Flip changes are announced alone.\n\tconst flip = getFlipAnnouncement( state, previousState );\n\tif ( flip ) {\n\t\treturn flip;\n\t}\n\n\tconst parts = [\n\t\tgetRotationAnnouncement( state, previousState ),\n\t\tgetZoomAnnouncement( state, previousState ),\n\t\tgetCropAnnouncement( state, previousState ),\n\t].filter( ( part ): part is string => part !== undefined );\n\n\treturn parts.join( ', ' );\n}\n\n/**\n * Debounce and dedupe ARIA-live announcements for screen readers as the\n * cropper state changes. Calls `speak()` from `@wordpress/a11y` to use the\n * centralized, persistent live region instead of a local one that may be\n * dynamically mounted.\n *\n * Debouncing avoids flooding announcements during drag/pointermove bursts;\n * deduping avoids re-announcing the same state.\n *\n * @param state The current cropper state to announce.\n */\nexport function useAriaAnnouncer( state: CropperState ): void {\n\tconst timerRef = useRef< ReturnType< typeof setTimeout > >();\n\tconst prevMessageRef = useRef( '' );\n\tconst prevStateRef = useRef< CropperState | null >( null );\n\tconst latestStateRef = useRef( state );\n\tuseLayoutEffect( () => {\n\t\tlatestStateRef.current = state;\n\t}, [ state ] );\n\n\tuseEffect( () => {\n\t\tclearTimeout( timerRef.current );\n\t\ttimerRef.current = setTimeout( () => {\n\t\t\tconst current = latestStateRef.current;\n\t\t\tconst msg = buildAnnouncement( current, prevStateRef.current );\n\t\t\tprevStateRef.current = current;\n\t\t\tif ( msg !== prevMessageRef.current ) {\n\t\t\t\tprevMessageRef.current = msg;\n\t\t\t\tspeak( msg );\n\t\t\t}\n\t\t}, ARIA_DEBOUNCE_MS );\n\n\t\treturn () => {\n\t\t\tclearTimeout( timerRef.current );\n\t\t};\n\t}, [\n\t\tstate.zoom,\n\t\tstate.rotation,\n\t\tstate.cropRect.width,\n\t\tstate.cropRect.height,\n\t\tstate.flip.horizontal,\n\t\tstate.flip.vertical,\n\t] );\n}\n"],
5
+ "mappings": ";AAGA,SAAS,aAAa;AACtB,SAAS,WAAW,iBAAiB,cAAc;AACnD,SAAS,IAAI,eAAe;AAM5B,SAAS,uBAAuB;AAGhC,IAAM,mBAAmB;AAEzB,SAAS,oBACR,OACA,eACqB;AACrB,MACC,CAAE,iBACA,cAAc,KAAK,eAAe,MAAM,KAAK,cAC9C,cAAc,KAAK,aAAa,MAAM,KAAK,UAC3C;AACD,WAAO;AAAA,EACR;AACA,QAAM,EAAE,YAAY,SAAS,IAAI,MAAM;AACvC,MAAK,cAAc,UAAW;AAC7B,WAAO,GAAI,qCAAsC;AAAA,EAClD;AACA,MAAK,YAAa;AACjB,WAAO,GAAI,sBAAuB;AAAA,EACnC;AACA,MAAK,UAAW;AACf,WAAO,GAAI,oBAAqB;AAAA,EACjC;AACA,SAAO,GAAI,cAAe;AAC3B;AAEA,SAAS,wBACR,OACA,eACqB;AACrB,MACC,iBACA,KAAK,MAAO,cAAc,QAAS,MAAM,KAAK,MAAO,MAAM,QAAS,GACnE;AACD,WAAO;AAAA,EACR;AAKA,QAAM,aAAa,MAAM,KAAK,eAAe,MAAM,KAAK;AACxD,QAAM,YAAY,aAAa,KAAK;AAEpC,MAAI,iBAAmB,KAAK,MAAO,MAAM,QAAS,IAAI,YAAc;AACpE,MAAK,iBAAiB,KAAM;AAC3B,sBAAkB;AAAA,EACnB;AACA,MAAK,kBAAkB,MAAO;AAC7B,sBAAkB;AAAA,EACnB;AACA,MAAK,mBAAmB,GAAI;AAC3B,WAAO,gBAAgB,GAAI,oBAAqB,IAAI;AAAA,EACrD;AACA,MAAK,iB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AO,aAAc;AAAA,IAC1C,oBAAqB,OAAO,aAAc;AAAA,EAC3C,EAAE,OAAQ,CAAE,SAA0B,SAAS,MAAU;AAEzD,SAAO,MAAM,KAAM,IAAK;AACzB;AAaO,SAAS,iBAAkB,OAA4B;AAC7D,QAAM,WAAW,OAA0C;AAC3D,QAAM,iBAAiB,OAAQ,EAAG;AAClC,QAAM,eAAe,OAA+B,IAAK;AACzD,QAAM,iBAAiB,OAAQ,KAAM;AACrC,kBAAiB,MAAM;AACtB,mBAAe,UAAU;AAAA,EAC1B,GAAG,CAAE,KAAM,CAAE;AAEb,YAAW,MAAM;AAChB,iBAAc,SAAS,OAAQ;AAC/B,aAAS,UAAU,WAAY,MAAM;AACpC,YAAM,UAAU,eAAe;AAC/B,YAAM,MAAM,kBAAmB,SAAS,aAAa,OAAQ;AAC7D,mBAAa,UAAU;AACvB,UAAK,QAAQ,eAAe,SAAU;AACrC,uBAAe,UAAU;AACzB,cAAO,GAAI;AAAA,MACZ;AAAA,IACD,GAAG,gBAAiB;AAEpB,WAAO,MAAM;AACZ,mBAAc,SAAS,OAAQ;AAAA,IAChC;AAAA,EACD,GAAG;AAAA,IACF,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM,SAAS;AAAA,IACf,MAAM,SAAS;AAAA,IACf,MAAM,KAAK;AAAA,IACX,MAAM,KAAK;AAAA,EACZ,CAAE;AACH;",
6
6
  "names": []
7
7
  }
@@ -105,7 +105,7 @@
105
105
  border-radius: 2px;
106
106
  }
107
107
  .media-editor-preview__file-name {
108
- font-weight: 600;
108
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
109
109
  margin-bottom: 8px;
110
110
  }
111
111
  .media-editor-preview__mime-type {
@@ -342,6 +342,12 @@
342
342
  /**
343
343
  * Focus styles.
344
344
  */
345
+ /**
346
+ * Standard focus rings for the WordPress Design System.
347
+ *
348
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
349
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
350
+ */
345
351
  /**
346
352
  * Applies editor left position to the selector passed as argument
347
353
  */
@@ -458,7 +464,7 @@
458
464
  }
459
465
  @media (min-width: 600px) {
460
466
  .media-editor .media-editor__panel {
461
- padding: 16px 0 0 24px;
467
+ padding: 24px 0 0 24px;
462
468
  }
463
469
  }
464
470
  .media-editor .components-panel__header.media-editor__sidebar-header {
@@ -660,7 +666,7 @@
660
666
  }
661
667
  .media-editor-image-controls__label {
662
668
  font-size: 11px;
663
- font-weight: 500;
669
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
664
670
  line-height: 1.4;
665
671
  text-transform: uppercase;
666
672
  }
@@ -699,7 +705,7 @@
699
705
  }
700
706
  .media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term {
701
707
  background: none;
702
- font-weight: 600;
708
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
703
709
  margin: 0 1rem 0 0;
704
710
  padding: 0;
705
711
  text-align: left;
@@ -720,7 +726,7 @@
720
726
  padding: 0 8px;
721
727
  box-sizing: border-box;
722
728
  color: #1e1e1e;
723
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
729
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
724
730
  -webkit-user-select: none;
725
731
  -moz-user-select: none;
726
732
  user-select: none;
@@ -807,7 +813,7 @@
807
813
  height: 14px;
808
814
  transform: translateX(50%);
809
815
  font-size: 12px;
810
- font-weight: 600;
816
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
811
817
  line-height: 14px;
812
818
  color: #1e1e1e;
813
819
  pointer-events: none;
@@ -105,7 +105,7 @@
105
105
  border-radius: 2px;
106
106
  }
107
107
  .media-editor-preview__file-name {
108
- font-weight: 600;
108
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
109
109
  margin-bottom: 8px;
110
110
  }
111
111
  .media-editor-preview__mime-type {
@@ -342,6 +342,12 @@
342
342
  /**
343
343
  * Focus styles.
344
344
  */
345
+ /**
346
+ * Standard focus rings for the WordPress Design System.
347
+ *
348
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
349
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
350
+ */
345
351
  /**
346
352
  * Applies editor left position to the selector passed as argument
347
353
  */
@@ -458,7 +464,7 @@
458
464
  }
459
465
  @media (min-width: 600px) {
460
466
  .media-editor .media-editor__panel {
461
- padding: 16px 24px 0 0;
467
+ padding: 24px 24px 0 0;
462
468
  }
463
469
  }
464
470
  .media-editor .components-panel__header.media-editor__sidebar-header {
@@ -660,7 +666,7 @@
660
666
  }
661
667
  .media-editor-image-controls__label {
662
668
  font-size: 11px;
663
- font-weight: 500;
669
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
664
670
  line-height: 1.4;
665
671
  text-transform: uppercase;
666
672
  }
@@ -699,7 +705,7 @@
699
705
  }
700
706
  .media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term {
701
707
  background: none;
702
- font-weight: 600;
708
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
703
709
  margin: 0 0 0 1rem;
704
710
  padding: 0;
705
711
  text-align: right;
@@ -720,7 +726,7 @@
720
726
  padding: 0 8px;
721
727
  box-sizing: border-box;
722
728
  color: #1e1e1e;
723
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
729
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
724
730
  -webkit-user-select: none;
725
731
  -moz-user-select: none;
726
732
  user-select: none;
@@ -808,7 +814,7 @@
808
814
  height: 14px;
809
815
  transform: translateX(-50%);
810
816
  font-size: 12px;
811
- font-weight: 600;
817
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
812
818
  line-height: 14px;
813
819
  color: #1e1e1e;
814
820
  pointer-events: none;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/index.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAUtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,OAAO,EAGN,KAAK,qBAAqB,EAC1B,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAiBrE,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,SAAS,CAAC;IACzB;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAC;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,CAAE,KAAK,EAAE,kBAAkB,CAAE,WAAW,CAAE,KAAM,IAAI,CAAC;IAChE,yBAAyB,EAAE,OAAO,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAChC,MAAM,CAAC,EAAE,KAAK,CAAE,KAAK,CAAE,EAAE,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAE,MAAM,EAAE,qBAAqB,KAAM,IAAI,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AChC,MAAM,CAAC,EAAE,KAAK,CAAE,KAAK,CAAE,EAAE,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAE,MAAM,EAAE,qBAAqB,KAAM,IAAI,CAAC;IACpD,WAAW,EAAE,CAAE,KAAK,EAAE,qBAAqB,KAAM,GAAG,CAAC,OAAO,CAAC;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AAwmBD,wBAAgB,WAAW,CAAE,KAAK,EAAE,gBAAgB,+BAMnD;eAEc,WAAW"}
@@ -30,6 +30,6 @@ export declare function getAspectRatioOptions(aspectRatioPresets?: AspectRatioPr
30
30
  * @param args
31
31
  * @param args.aspectRatioPresets Optional caller-supplied aspect-ratio presets.
32
32
  */
33
- export declare function useCropOptions({ aspectRatioPresets }?: UseCropOptionsArgs): UseCropOptionsReturn;
33
+ export declare function useCropOptions({ aspectRatioPresets, }?: UseCropOptionsArgs): UseCropOptionsReturn;
34
34
  export {};
35
35
  //# sourceMappingURL=use-crop-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-crop-options.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/use-crop-options.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,UAAU,kBAAkB;IAC3B,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,UAAU,oBAAoB;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,GACtC,iBAAiB,EAAE,CAMrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAE,EAC/B,kBAAkB,EAClB,GAAE,kBAAuB,GAAI,oBAAoB,CAsBjD"}
1
+ {"version":3,"file":"use-crop-options.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/use-crop-options.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,UAAU,kBAAkB;IAC3B,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,UAAU,oBAAoB;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,GACtC,iBAAiB,EAAE,CAMrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAE,EAC/B,kBAAkB,GAClB,GAAE,kBAAuB,GAAI,oBAAoB,CAsBjD"}
@@ -24,6 +24,6 @@ interface UseSaveMediaEditorReturn {
24
24
  isSaving: boolean;
25
25
  save: () => Promise<void>;
26
26
  }
27
- export declare function useSaveMediaEditor({ cropper, id, isImage, media, onSaved }: UseSaveMediaEditorArgs): UseSaveMediaEditorReturn;
27
+ export declare function useSaveMediaEditor({ cropper, id, isImage, media, onSaved, }: UseSaveMediaEditorArgs): UseSaveMediaEditorReturn;
28
28
  export {};
29
29
  //# sourceMappingURL=use-save-media-editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-save-media-editor.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/use-save-media-editor.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAiBzD,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAI3D,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;CACF;AAED,UAAU,sBAAsB;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAE,MAAM,EAAE,qBAAqB,KAAM,IAAI,CAAC;CACpD;AAED,UAAU,wBAAwB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,OAAO,CAAE,IAAI,CAAE,CAAC;CAC5B;AAgCD,wBAAgB,kBAAkB,CAAE,EACnC,OAAO,EACP,EAAE,EACF,OAAO,EACP,KAAK,EACL,OAAO,EACP,EAAE,sBAAsB,GAAI,wBAAwB,CAuHpD"}
1
+ {"version":3,"file":"use-save-media-editor.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/use-save-media-editor.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAiBzD,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAI3D,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;CACF;AAED,UAAU,sBAAsB;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAE,MAAM,EAAE,qBAAqB,KAAM,IAAI,CAAC;CACpD;AAED,UAAU,wBAAwB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,OAAO,CAAE,IAAI,CAAE,CAAC;CAC5B;AAgCD,wBAAgB,kBAAkB,CAAE,EACnC,OAAO,EACP,EAAE,EACF,OAAO,EACP,KAAK,EACL,OAAO,GACP,EAAE,sBAAsB,GAAI,wBAAwB,CAuHpD"}
@@ -22,5 +22,5 @@ export interface MediaEditorCanvasProps {
22
22
  * @param props.onGestureStart
23
23
  * @param props.onGestureEnd
24
24
  */
25
- export default function MediaEditorCanvas({ focusOnMount, isPlacementActive, onGestureStart, onGestureEnd }: MediaEditorCanvasProps): import("react").JSX.Element | null;
25
+ export default function MediaEditorCanvas({ focusOnMount, isPlacementActive, onGestureStart, onGestureEnd, }: MediaEditorCanvasProps): import("react").JSX.Element | null;
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-canvas/index.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,sBAAsB;IACtC,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,YAAY,EACZ,iBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,EAAE,sBAAsB,sCAkIxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-canvas/index.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,sBAAsB;IACtC,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,YAAY,EACZ,iBAAyB,EACzB,cAAc,EACd,YAAY,GACZ,EAAE,sBAAsB,sCAkIxB"}
@@ -27,5 +27,5 @@ export interface MediaEditorCropPanelProps {
27
27
  * @param props.aspectRatioOptions
28
28
  * @param props.showTransformControls
29
29
  */
30
- export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions, showTransformControls }: MediaEditorCropPanelProps): import("react").JSX.Element;
30
+ export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions, showTransformControls, }: MediaEditorCropPanelProps): import("react").JSX.Element;
31
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,uDAAuD;IACvD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,qBAA6B,EAC7B,EAAE,yBAAyB,+BA0B3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,uDAAuD;IACvD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,qBAA6B,GAC7B,EAAE,yBAAyB,+BAyB3B"}
@@ -11,5 +11,5 @@ export interface MediaEditorFineRotationProps {
11
11
  * @param props
12
12
  * @param props.onPlacementControlInteraction
13
13
  */
14
- export default function MediaEditorFineRotation({ onPlacementControlInteraction }: MediaEditorFineRotationProps): import("react").JSX.Element;
14
+ export default function MediaEditorFineRotation({ onPlacementControlInteraction, }: MediaEditorFineRotationProps): import("react").JSX.Element;
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-fine-rotation/index.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC5C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,EAChD,6BAA6B,EAC7B,EAAE,4BAA4B,+BA6C9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-fine-rotation/index.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC5C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,EAChD,6BAA6B,GAC7B,EAAE,4BAA4B,+BA6C9B"}
@@ -42,5 +42,5 @@ export interface MediaEditorImageControlsProps {
42
42
  * @param props.aspectRatioPresets
43
43
  * @param props.zoomFactor
44
44
  */
45
- export default function MediaEditorImageControls({ withLabels, showAspectRatioControl, aspectRatioPresets, zoomFactor }: MediaEditorImageControlsProps): import("react").JSX.Element;
45
+ export default function MediaEditorImageControls({ withLabels, showAspectRatioControl, aspectRatioPresets, zoomFactor, }: MediaEditorImageControlsProps): import("react").JSX.Element;
46
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-image-controls/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,mCAAmC,CAAC;AAI3C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,WAAW,6BAA6B;IAC7C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAE,EACjD,UAAkB,EAClB,sBAA8B,EAC9B,kBAAkB,EAClB,UAAgC,EAChC,EAAE,6BAA6B,+BAmL/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-image-controls/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,mCAAmC,CAAC;AAI3C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,WAAW,6BAA6B;IAC7C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAE,EACjD,UAAkB,EAClB,sBAA8B,EAC9B,kBAAkB,EAClB,UAAgC,GAChC,EAAE,6BAA6B,+BAmL/B"}
@@ -1,6 +1,6 @@
1
1
  interface MediaEditorKeyboardShortcutsModalProps {
2
2
  onClose: () => void;
3
3
  }
4
- export default function MediaEditorKeyboardShortcutsModal({ onClose }: MediaEditorKeyboardShortcutsModalProps): import("react").JSX.Element;
4
+ export default function MediaEditorKeyboardShortcutsModal({ onClose, }: MediaEditorKeyboardShortcutsModalProps): import("react").JSX.Element;
5
5
  export {};
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-keyboard-shortcuts-modal/index.tsx"],"names":[],"mappings":"AAoIA,UAAU,sCAAsC;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,iCAAiC,CAAE,EAC1D,OAAO,EACP,EAAE,sCAAsC,+BAsCxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-keyboard-shortcuts-modal/index.tsx"],"names":[],"mappings":"AAoIA,UAAU,sCAAsC;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,iCAAiC,CAAE,EAC1D,OAAO,GACP,EAAE,sCAAsC,+BAsCxC"}
@@ -15,6 +15,6 @@ interface MediaEditorModalProps {
15
15
  */
16
16
  aspectRatioPresets?: AspectRatioPreset[];
17
17
  }
18
- export declare function MediaEditorModal({ fields, aspectRatioPresets }: MediaEditorModalProps): import("react").JSX.Element | null;
18
+ export declare function MediaEditorModal({ fields, aspectRatioPresets, }: MediaEditorModalProps): import("react").JSX.Element | null;
19
19
  export default MediaEditorModal;
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-modal/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAOlD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,UAAU,qBAAqB;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAE,KAAK,CAAE,EAAE,CAAC;IAC1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,wBAAgB,gBAAgB,CAAE,EACjC,MAAW,EACX,kBAAkB,EAClB,EAAE,qBAAqB,sCAgHvB;eAEc,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-modal/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAOlD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,UAAU,qBAAqB;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAE,KAAK,CAAE,EAAE,CAAC;IAC1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,wBAAgB,gBAAgB,CAAE,EACjC,MAAW,EACX,kBAAkB,GAClB,EAAE,qBAAqB,sCAgHvB;eAEc,gBAAgB"}
@@ -50,7 +50,7 @@ export interface MediaEditorProviderProps {
50
50
  /** Child components. */
51
51
  children: ReactNode;
52
52
  }
53
- export declare function MediaEditorProvider({ value, onChange, settings, children }: MediaEditorProviderProps): import("react").JSX.Element;
53
+ export declare function MediaEditorProvider({ value, onChange, settings, children, }: MediaEditorProviderProps): import("react").JSX.Element;
54
54
  /**
55
55
  * Hook to access the MediaEditor context.
56
56
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-provider/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,KAAK;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EA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QAAQ,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,KAAK,CAAE,KAAK,CAAE,EAAE,CAAC;KAC1B,CAAC;IACF,wBAAwB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAMD,wBAAgB,mBAAmB,CAAE,EACpC,KAAK,EACL,QAAQ,EACR,QAAa,EACb,QAAQ,GACR,EAAE,wBAAwB,+BAY1B;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,uBAAuB,CAQ/D"}
@@ -18,5 +18,5 @@ export interface MediaFormProps {
18
18
  * @param props.header - Optional header content to display above the form.
19
19
  * @return The MediaForm component.
20
20
  */
21
- export default function MediaForm({ form: formOverrides, header }: MediaFormProps): import("react").JSX.Element;
21
+ export default function MediaForm({ form: formOverrides, header, }: MediaFormProps): import("react").JSX.Element;
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-form/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,EAClC,IAAI,EAAE,aAAa,EACnB,MAAM,EACN,EAAE,cAAc,+BA+DhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-form/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,EAClC,IAAI,EAAE,aAAa,EACnB,MAAM,GACN,EAAE,cAAc,+BA+DhB"}
@@ -27,7 +27,7 @@ interface CropperProviderProps {
27
27
  * @param props.children
28
28
  * @return The provider element wrapping children.
29
29
  */
30
- export declare function CropperProvider({ initialState, children }: CropperProviderProps): import("react").JSX.Element;
30
+ export declare function CropperProvider({ initialState, children, }: CropperProviderProps): import("react").JSX.Element;
31
31
  /**
32
32
  * Hook to consume the CropperProvider context.
33
33
  *
@@ -1 +1 @@
1
- {"version":3,"file":"cropper-provider.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/components/cropper-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUrD;;GAEG;AACH,UAAU,oBAAoB;IAC7B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAE,YAAY,CAAE,CAAC;IACvC,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAE,EAChC,YAAY,EACZ,QAAQ,EACR,EAAE,oBAAoB,+BAQtB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,IAAI,iBAAiB,CAQ9C"}
1
+ {"version":3,"file":"cropper-provider.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/components/cropper-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUrD;;GAEG;AACH,UAAU,oB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E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;IACvC;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,CAAE,KAAK,EAAE,YAAY,KAAM,IAAI,CAAC;IAChD,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAk+BD,eAAO,MAAM,OAAO,yGAMnB,CAAC"}
@@ -31,6 +31,6 @@ interface DimensionsOverlayProps {
31
31
  * @param props.outputWidth
32
32
  * @param props.outputHeight
33
33
  */
34
- export declare function DimensionsOverlay({ cropRect, containerSize, imageSize, activeHandle, outputWidth, outputHeight }: DimensionsOverlayProps): import("react").JSX.Element | null;
34
+ export declare function DimensionsOverlay({ cropRect, containerSize, imageSize, activeHandle, outputWidth, outputHeight, }: DimensionsOverlayProps): import("react").JSX.Element | null;
35
35
  export {};
36
36
  //# sourceMappingURL=dimensions-overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimensions-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/dimensions-overlay.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAgIhF,UAAU,sBAAsB;IAC/B,gDAAgD;IAChD,QAAQ,EAAE,cAAc,CAAC;IACzB,8CAA8C;IAC9C,aAAa,EAAE,IAAI,CAAC;IACpB,gEAAgE;IAChE,SAAS,EAAE,IAAI,CAAC;IAChB,wEAAwE;IACxE,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,EAAE,sBAAsB,sCA+FxB"}
1
+ {"version":3,"file":"dimensions-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/dimensions-overlay.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAgIhF,UAAU,sBAAsB;IAC/B,gDAAgD;IAChD,QAAQ,EAAE,cAAc,CAAC;IACzB,8CAA8C;IAC9C,aAAa,EAAE,IAAI,CAAC;IACpB,gEAAgE;IAChE,SAAS,EAAE,IAAI,CAAC;IAChB,wEAAwE;IACxE,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAE,EAClC,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,GACZ,EAAE,sBAAsB,sCA+FxB"}
@@ -15,6 +15,6 @@ interface DimmingOverlayProps {
15
15
  /** CSS transition string, e.g. during settle animation. */
16
16
  transition?: string;
17
17
  }
18
- export declare function DimmingOverlay({ cropRect, containerSize, imageSize, transition }: DimmingOverlayProps): import("react").JSX.Element | null;
18
+ export declare function DimmingOverlay({ cropRect, containerSize, imageSize, transition, }: DimmingOverlayProps): import("react").JSX.Element | null;
19
19
  export {};
20
20
  //# sourceMappingURL=dimming-overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimming-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/dimming-overlay.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,UAAU,mBAAmB;IAC5B,oDAAoD;IACpD,QAAQ,EAAE,cAAc,CAAC;IACzB,kDAAkD;IAClD,aAAa,EAAE,IAAI,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,IAAI,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,cAAc,CAAE,EAC/B,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,EAAE,mBAAmB,sCA+BrB"}
1
+ {"version":3,"file":"dimming-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/dimming-overlay.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,UAAU,mBAAmB;IAC5B,oDAAoD;IACpD,QAAQ,EAAE,cAAc,CAAC;IACzB,kDAAkD;IAClD,aAAa,EAAE,IAAI,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,IAAI,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,cAAc,CAAE,EAC/B,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,GACV,EAAE,mBAAmB,sCA+BrB"}
@@ -25,6 +25,6 @@ interface GridOverlayProps {
25
25
  * @param props.imageSize The rendered image dimensions in pixels.
26
26
  * @return The grid overlay element.
27
27
  */
28
- export declare function GridOverlay({ cropRect, containerSize, imageSize }: GridOverlayProps): import("react").JSX.Element | null;
28
+ export declare function GridOverlay({ cropRect, containerSize, imageSize, }: GridOverlayProps): import("react").JSX.Element | null;
29
29
  export {};
30
30
  //# sourceMappingURL=grid-overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/grid-overlay.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,UAAU,gBAAgB;IACzB,oDAAoD;IACpD,QAAQ,EAAE,cAAc,CAAC;IACzB,kDAAkD;IAClD,aAAa,EAAE,IAAI,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,IAAI,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAE,EAC5B,QAAQ,EACR,aAAa,EACb,SAAS,EACT,EAAE,gBAAgB,sCA8ClB"}
1
+ {"version":3,"file":"grid-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/overlays/grid-overlay.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,UAAU,gBAAgB;IACzB,oDAAoD;IACpD,QAAQ,EAAE,cAAc,CAAC;IACzB,kDAAkD;IAClD,aAAa,EAAE,IAAI,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,IAAI,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAE,EAC5B,QAAQ,EACR,aAAa,EACb,SAAS,GACT,EAAE,gBAAgB,sCA8ClB"}
@@ -31,6 +31,6 @@ type RectangleStencilProps = StencilProps;
31
31
  * @param props.keyboardResizeStep Optional keyboard resize step in normalized space, per axis.
32
32
  * @return The rectangle stencil element.
33
33
  */
34
- export declare function RectangleStencil({ cropRect, containerSize, imageSize, onCropChange, onResizeStart, onResizeEnd, aspectRatio, freeformCrop, isResizeDisabled, stencilTransition, cropBounds, onEscape, minCropSize, snapCropRect, keyboardResizeStep }: RectangleStencilProps): import("react").JSX.Element | null;
34
+ export declare function RectangleStencil({ cropRect, containerSize, imageSize, onCropChange, onResizeStart, onResizeEnd, aspectRatio, freeformCrop, isResizeDisabled, stencilTransition, cropBounds, onEscape, minCropSize, snapCropRect, keyboardResizeStep, }: RectangleStencilProps): import("react").JSX.Element | null;
35
35
  export {};
36
36
  //# sourceMappingURL=rectangle-stencil.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rectangle-stencil.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/stencils/rectangle-stencil.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AAmExE;;GAEG;AACH,KAAK,qBAAqB,GAAG,YAAY,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAAE,EACjC,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAoB,EACpB,gBAAwB,EACxB,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,EAAE,qBAAqB,sCAmevB"}
1
+ {"version":3,"file":"rectangle-stencil.d.ts","sourceRoot":"","sources":["../../../../../src/image-editor/react/components/stencils/rectangle-stencil.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AAmExE;;GAEG;AACH,KAAK,qBAAqB,GAAG,YAAY,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAAE,EACjC,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAoB,EACpB,gBAAwB,EACxB,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,GAClB,EAAE,qBAAqB,sCAmevB"}
@@ -2,7 +2,7 @@
2
2
  * Internal dependencies
3
3
  */
4
4
  import { type UseViewportStateReturn } from '../hooks/use-viewport-state';
5
- export declare function ViewportProvider({ children }: {
5
+ export declare function ViewportProvider({ children, }: {
6
6
  children: React.ReactNode;
7
7
  }): import("react").JSX.Element;
8
8
  export declare function useViewport(): UseViewportStateReturn;
@@ -1 +1 @@
1
- {"version":3,"file":"viewport-provider.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/components/viewport-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,6BAA6B,CAAC;AAMrC,wBAAgB,gBAAgB,CAAE,EACjC,QAAQ,EACR,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,+BAOA;AAED,wBAAgB,WAAW,IAAI,sBAAsB,CAQpD"}
1
+ {"version":3,"file":"viewport-provider.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/components/viewport-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,6BAA6B,CAAC;AAMrC,wBAAgB,gBAAgB,CAAE,EACjC,QAAQ,GACR,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,+BAOA;AAED,wBAAgB,WAAW,IAAI,sBAAsB,CAQpD"}
@@ -4,13 +4,14 @@
4
4
  import type { CropperState } from '../../core/types';
5
5
  /**
6
6
  * Debounce and dedupe ARIA-live announcements for screen readers as the
7
- * cropper state changes. Returns the current announcement message to render
8
- * inside an `aria-live="polite"` region.
7
+ * cropper state changes. Calls `speak()` from `@wordpress/a11y` to use the
8
+ * centralized, persistent live region instead of a local one that may be
9
+ * dynamically mounted.
9
10
  *
10
- * Debouncing avoids flooding the live region during drag/pointermove bursts;
11
+ * Debouncing avoids flooding announcements during drag/pointermove bursts;
11
12
  * deduping avoids re-announcing the same state.
12
13
  *
13
14
  * @param state The current cropper state to announce.
14
15
  */
15
- export declare function useAriaAnnouncer(state: CropperState): string;
16
+ export declare function useAriaAnnouncer(state: CropperState): void;
16
17
  //# sourceMappingURL=use-aria-announcer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-aria-announcer.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/hooks/use-aria-announcer.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiErD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,YAAY,GAAI,MAAM,CAmC9D"}
1
+ {"version":3,"file":"use-aria-announcer.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/hooks/use-aria-announcer.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgJrD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,YAAY,GAAI,IAAI,CAgC5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"rectangle-crop.story.d.ts","sourceRoot":"","sources":["../../../src/image-editor/stories/rectangle-crop.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAwB5D;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAuBtD,OAAO,aAAa,CAAC;AA6ErB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAI/B,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,OAAO,CAAE,CAAC;AAsBxC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AA6WF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AA+hBF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC"}
1
+ {"version":3,"file":"rectangle-crop.story.d.ts","sourceRoot":"","sources":["../../../src/image-editor/stories/rectangle-crop.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAwB5D;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAuBtD,OAAO,aAAa,CAAC;AA6ErB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAI/B,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,OAAO,CAAE,CAAC;AAsBxC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAyWF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AA4hBF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC"}
@@ -22,7 +22,7 @@ interface MediaEditorStateProviderProps {
22
22
  * @param props.initialCropOptions
23
23
  * @param props.children
24
24
  */
25
- export declare function MediaEditorStateProvider({ initialCropperState, initialCropOptions, children }: MediaEditorStateProviderProps): import("react").JSX.Element;
25
+ export declare function MediaEditorStateProvider({ initialCropperState, initialCropOptions, children, }: MediaEditorStateProviderProps): import("react").JSX.Element;
26
26
  /**
27
27
  * Consume the composite media-editor controller. Throws if used
28
28
  * outside a `<MediaEditorStateProvider>`.
@@ -1 +1 @@
1
- {"version":3,"file":"media-editor-state-provider.d.ts","sourceRoot":"","sources":["../../src/state/media-editor-state-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAEN,KAAK,qBAAqB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,UAAU,6BAA6B;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,OAAO,CAAE,YAAY,CAAE,CAAC;IAC9C,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAE,gBAAgB,CAAE,CAAC;IACjD,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAE,EACzC,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,EAAE,6BAA6B,+BAW/B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,qBAAqB,CAQtD"}
1
+ {"version":3,"file":"media-editor-state-provider.d.ts","sourceRoot":"","sources":["../../src/state/media-editor-state-provider.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAEN,KAAK,qBAAqB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,UAAU,6BAA6B;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,OAAO,CAAE,YAAY,CAAE,CAAC;IAC9C,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAE,gBAAgB,CAAE,CAAC;IACjD,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAE,EACzC,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,GACR,EAAE,6BAA6B,+BAW/B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,qBAAqB,CAQtD"}
@@ -16,7 +16,7 @@ interface OpenMediaEditorModalArgs {
16
16
  onUpdate?: (updated: MediaEditorModalUpdate) => void;
17
17
  onClose?: () => void;
18
18
  }
19
- export declare function openMediaEditorModal({ id, onUpdate, onClose }: OpenMediaEditorModalArgs): {
19
+ export declare function openMediaEditorModal({ id, onUpdate, onClose, }: OpenMediaEditorModalArgs): {
20
20
  type: 'OPEN_MEDIA_EDITOR_MODAL';
21
21
  id: number;
22
22
  onUpdate: ((updated: MediaEditorModalUpdate) => void) | null;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,wBAAwB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,CAAE,OAAO,EAAE,sBAAsB,KAAM,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAE,EACrC,EAAE,EACF,QAAQ,EACR,OAAO,EACP,EAAE,wBAAwB;UAEnB,yBAAyB;;yBAVV,sBAAsB,KAAM,IAAI;oBACtC,IAAI;EAcpB;AAED,wBAAgB,qBAAqB;IAC3B,IAAI,EAAE,0BAA0B;EACzC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,wBAAwB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,CAAE,OAAO,EAAE,sBAAsB,KAAM,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAE,EACrC,EAAE,EACF,QAAQ,EACR,OAAO,GACP,EAAE,wBAAwB;UAEnB,yBAAyB;;yBAVV,sBAAsB,KAAM,IAAI;oBACtC,IAAI;EAcpB;AAED,wBAAgB,qBAAqB;IAC3B,IAAI,EAAE,0BAA0B;EACzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/media-editor",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Media editor components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -43,34 +43,36 @@
43
43
  "build-module/store/index.mjs"
44
44
  ],
45
45
  "dependencies": {
46
- "@wordpress/api-fetch": "^7.50.0",
47
- "@wordpress/base-styles": "^10.2.0",
48
- "@wordpress/components": "^36.1.0",
49
- "@wordpress/compose": "^8.3.0",
50
- "@wordpress/core-data": "^7.50.0",
51
- "@wordpress/data": "^10.50.0",
52
- "@wordpress/dataviews": "^17.1.0",
53
- "@wordpress/date": "^5.50.0",
54
- "@wordpress/element": "^8.2.0",
55
- "@wordpress/i18n": "^6.23.0",
56
- "@wordpress/icons": "^15.1.0",
57
- "@wordpress/interface": "^9.35.0",
58
- "@wordpress/keyboard-shortcuts": "^5.50.0",
59
- "@wordpress/keycodes": "^4.50.0",
60
- "@wordpress/notices": "^5.50.0",
61
- "@wordpress/private-apis": "^1.50.0",
62
- "@wordpress/ui": "^0.17.0",
46
+ "@wordpress/a11y": "^4.51.0",
47
+ "@wordpress/api-fetch": "^7.51.0",
48
+ "@wordpress/base-styles": "^11.0.0",
49
+ "@wordpress/components": "^37.0.0",
50
+ "@wordpress/compose": "^8.4.0",
51
+ "@wordpress/core-data": "^7.51.0",
52
+ "@wordpress/data": "^10.51.0",
53
+ "@wordpress/dataviews": "^17.2.0",
54
+ "@wordpress/date": "^5.51.0",
55
+ "@wordpress/element": "^8.3.0",
56
+ "@wordpress/i18n": "^6.24.0",
57
+ "@wordpress/icons": "^15.2.0",
58
+ "@wordpress/interface": "^9.36.0",
59
+ "@wordpress/keyboard-shortcuts": "^5.51.0",
60
+ "@wordpress/keycodes": "^4.51.0",
61
+ "@wordpress/notices": "^5.51.0",
62
+ "@wordpress/private-apis": "^1.51.0",
63
+ "@wordpress/ui": "^0.18.0",
63
64
  "clsx": "^2.1.1",
64
65
  "gl-matrix": "^3.4.3"
65
66
  },
66
67
  "devDependencies": {
68
+ "@storybook/react-vite": "^10.4.3",
67
69
  "@testing-library/dom": "^10.4.1",
68
70
  "@testing-library/react": "^16.3.2",
69
71
  "@testing-library/user-event": "^14.6.1"
70
72
  },
71
73
  "peerDependencies": {
72
- "@types/react": "^18.3.27",
73
- "react": "^18.0.0"
74
+ "@types/react": "^18 || ^19",
75
+ "react": "^18 || ^19"
74
76
  },
75
77
  "peerDependenciesMeta": {
76
78
  "@types/react": {
@@ -80,5 +82,5 @@
80
82
  "publishConfig": {
81
83
  "access": "public"
82
84
  },
83
- "gitHead": "fee6e24e8e63d36f6bbcf487c193461e9bd79753"
85
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
84
86
  }