@wordpress/media-editor 0.16.0 → 0.17.2-next.v.202608281122.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 +25 -1
- package/build/components/media-editor/index.cjs +188 -183
- package/build/components/media-editor/index.cjs.map +3 -3
- package/build/components/media-editor-canvas/index.cjs +0 -2
- package/build/components/media-editor-canvas/index.cjs.map +2 -2
- package/build/components/media-editor-crop-panel/index.cjs +2 -3
- package/build/components/media-editor-crop-panel/index.cjs.map +2 -2
- package/build/components/media-editor-modal/index.cjs +16 -14
- package/build/components/media-editor-modal/index.cjs.map +3 -3
- package/build-module/components/media-editor/index.mjs +192 -190
- package/build-module/components/media-editor/index.mjs.map +2 -2
- package/build-module/components/media-editor-canvas/index.mjs +0 -2
- package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
- package/build-module/components/media-editor-crop-panel/index.mjs +2 -3
- package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
- package/build-module/components/media-editor-modal/index.mjs +16 -14
- package/build-module/components/media-editor-modal/index.mjs.map +2 -2
- package/build-style/style-rtl.css +62 -95
- package/build-style/style.css +62 -95
- package/build-types/components/media-editor/index.d.ts +39 -11
- package/build-types/components/media-editor/index.d.ts.map +1 -1
- package/build-types/components/media-editor-canvas/index.d.ts +1 -4
- package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
- package/build-types/components/media-editor-crop-panel/index.d.ts +4 -11
- package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
- package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
- package/global.d.ts +5 -0
- package/package.json +23 -22
- package/src/components/media-editor/index.tsx +381 -271
- package/src/components/media-editor/style.scss +136 -131
- package/src/components/media-editor-canvas/index.tsx +5 -9
- package/src/components/media-editor-crop-panel/index.tsx +4 -12
- package/src/components/media-editor-crop-panel/test/index.tsx +2 -10
- package/src/components/media-editor-modal/index.tsx +23 -12
- package/src/components/media-editor-modal/style.scss +14 -51
- package/src/image-editor/stories/rectangle-crop.story.tsx +15 -0
- package/tsconfig.build.json +26 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +23 -16
- package/build-types/components/rotation-ruler/stories/index.story.d.ts +0 -8
- package/build-types/components/rotation-ruler/stories/index.story.d.ts.map +0 -1
- package/build-types/image-editor/stories/rectangle-crop.story.d.ts +0 -10
- package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/build-style/style.css
CHANGED
|
@@ -381,41 +381,47 @@
|
|
|
381
381
|
align-items: center;
|
|
382
382
|
justify-content: center;
|
|
383
383
|
}
|
|
384
|
-
.media-editor .
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
bottom: auto;
|
|
389
|
-
left: auto;
|
|
390
|
-
height: 100%;
|
|
391
|
-
max-height: none;
|
|
392
|
-
flex: 1;
|
|
393
|
-
flex-direction: column;
|
|
394
|
-
}
|
|
395
|
-
.media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton {
|
|
396
|
-
top: auto;
|
|
397
|
-
}
|
|
398
|
-
.media-editor .interface-interface-skeleton__editor {
|
|
399
|
-
min-width: 0;
|
|
384
|
+
.media-editor .media-editor__body {
|
|
385
|
+
container-type: inline-size;
|
|
386
|
+
container-name: media-editor-body;
|
|
387
|
+
display: flex;
|
|
400
388
|
flex: 1;
|
|
389
|
+
min-height: 0;
|
|
401
390
|
}
|
|
402
391
|
.media-editor .media-editor__content {
|
|
403
392
|
display: flex;
|
|
404
393
|
flex: 1;
|
|
405
394
|
flex-direction: column;
|
|
395
|
+
min-width: 0;
|
|
406
396
|
min-height: 0;
|
|
407
|
-
margin:
|
|
408
|
-
|
|
409
|
-
|
|
397
|
+
margin: 24px 24px 8px 24px;
|
|
398
|
+
}
|
|
399
|
+
@media (min-width: 600px) {
|
|
400
|
+
.media-editor .media-editor__content {
|
|
401
|
+
margin: 0 24px;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
@container media-editor-body (min-width: 864px) {
|
|
405
|
+
.media-editor .media-editor__content {
|
|
406
|
+
min-width: 520px;
|
|
407
|
+
}
|
|
410
408
|
}
|
|
411
409
|
.media-editor .media-editor__canvas-toolbar {
|
|
412
410
|
display: flex;
|
|
413
|
-
flex
|
|
411
|
+
flex: 0 0 auto;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
align-items: center;
|
|
414
|
+
gap: 12px;
|
|
415
|
+
}
|
|
416
|
+
.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation {
|
|
417
|
+
display: flex;
|
|
414
418
|
justify-content: center;
|
|
419
|
+
align-self: stretch;
|
|
415
420
|
background: #e0e0e0;
|
|
421
|
+
border-radius: 0 0 8px 8px;
|
|
416
422
|
padding: 8px 16px;
|
|
417
423
|
}
|
|
418
|
-
.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation {
|
|
424
|
+
.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation .rotation-ruler {
|
|
419
425
|
flex: 0 1 360px;
|
|
420
426
|
min-width: 0;
|
|
421
427
|
}
|
|
@@ -424,6 +430,7 @@
|
|
|
424
430
|
align-items: center;
|
|
425
431
|
justify-content: center;
|
|
426
432
|
background: #e0e0e0;
|
|
433
|
+
border-radius: 8px;
|
|
427
434
|
overflow: auto;
|
|
428
435
|
flex: 1;
|
|
429
436
|
min-height: 0;
|
|
@@ -439,69 +446,49 @@
|
|
|
439
446
|
object-fit: contain;
|
|
440
447
|
}
|
|
441
448
|
.media-editor .media-editor__sidebar {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
449
|
+
display: flex;
|
|
450
|
+
flex: 1;
|
|
451
|
+
flex-direction: column;
|
|
452
|
+
min-width: 0;
|
|
453
|
+
min-height: 0;
|
|
454
|
+
overflow: hidden;
|
|
448
455
|
}
|
|
449
456
|
@media (min-width: 600px) {
|
|
450
457
|
.media-editor .media-editor__sidebar {
|
|
451
|
-
|
|
458
|
+
flex: none;
|
|
459
|
+
width: var(--wpds-dimension-surface-width-sm, 320px);
|
|
452
460
|
}
|
|
453
461
|
}
|
|
454
|
-
.media-editor .media-
|
|
455
|
-
|
|
462
|
+
.media-editor .media-editor__tabs {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex: 1;
|
|
465
|
+
flex-direction: column;
|
|
466
|
+
min-height: 0;
|
|
456
467
|
}
|
|
457
|
-
.media-editor .
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
468
|
+
.media-editor .media-editor__tablist {
|
|
469
|
+
flex-shrink: 0;
|
|
470
|
+
margin-inline: 24px;
|
|
471
|
+
background: #fff;
|
|
472
|
+
border-bottom: 1px solid #ddd;
|
|
461
473
|
}
|
|
462
474
|
.media-editor .media-editor__panel {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
.media-editor .components-panel__header.media-editor__sidebar-header {
|
|
471
|
-
padding-left: 0;
|
|
472
|
-
padding-right: 8px;
|
|
473
|
-
margin-right: 24px;
|
|
474
|
-
margin-right: 0;
|
|
475
|
+
flex: 1;
|
|
476
|
+
min-height: 0;
|
|
477
|
+
overflow-y: auto;
|
|
478
|
+
padding-block: 24px;
|
|
479
|
+
padding-inline: 24px;
|
|
475
480
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
481
|
+
.media-editor .media-editor__content:has(.media-editor-fine-rotation) .media-editor__canvas-area {
|
|
482
|
+
border-end-start-radius: 0;
|
|
483
|
+
border-end-end-radius: 0;
|
|
480
484
|
}
|
|
481
|
-
.media-editor .
|
|
482
|
-
|
|
485
|
+
.media-editor .media-editor__body.has-panel-open .media-editor__content {
|
|
486
|
+
display: none;
|
|
483
487
|
}
|
|
484
488
|
@media (min-width: 600px) {
|
|
485
|
-
.media-editor .
|
|
489
|
+
.media-editor .media-editor__body.has-panel-open .media-editor__content {
|
|
486
490
|
display: flex;
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
@media (min-width: 600px) and (max-width: 781px) {
|
|
490
|
-
.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
|
|
491
|
-
position: relative !important;
|
|
492
|
-
}
|
|
493
|
-
.media-editor .interface-complementary-area__fill,
|
|
494
|
-
.media-editor .interface-complementary-area {
|
|
495
|
-
width: 280px !important;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
@media (max-width: 599px) {
|
|
499
|
-
.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
|
|
500
|
-
width: 100%;
|
|
501
|
-
}
|
|
502
|
-
.media-editor .interface-complementary-area__fill,
|
|
503
|
-
.media-editor .interface-complementary-area {
|
|
504
|
-
width: 100% !important;
|
|
491
|
+
margin: 0 0 0 24px;
|
|
505
492
|
}
|
|
506
493
|
}
|
|
507
494
|
|
|
@@ -542,37 +529,17 @@
|
|
|
542
529
|
.media-editor-modal.components-modal__frame .media-editor-modal__footer {
|
|
543
530
|
flex-shrink: 0;
|
|
544
531
|
display: flex;
|
|
545
|
-
gap: 16px;
|
|
546
|
-
padding: 16px 32px 24px;
|
|
547
|
-
background: #fff;
|
|
548
|
-
z-index: 1000001;
|
|
549
|
-
}
|
|
550
|
-
.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide {
|
|
551
532
|
flex-direction: row;
|
|
552
533
|
align-items: center;
|
|
553
|
-
}
|
|
554
|
-
.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions {
|
|
555
|
-
margin-left: auto;
|
|
556
|
-
}
|
|
557
|
-
.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
|
|
558
|
-
flex-direction: column;
|
|
559
|
-
}
|
|
560
|
-
.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-image-controls {
|
|
561
|
-
align-self: center;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
.media-editor-modal__footer-row {
|
|
565
|
-
display: flex;
|
|
566
|
-
flex-wrap: wrap;
|
|
567
|
-
align-items: center;
|
|
568
534
|
gap: 16px;
|
|
535
|
+
padding: 24px;
|
|
536
|
+
background: #fff;
|
|
569
537
|
}
|
|
570
|
-
.media-editor-
|
|
571
|
-
.media-editor-modal__footer-row .media-editor__footer-actions {
|
|
538
|
+
.media-editor-modal.components-modal__frame .media-editor-modal__footer .media-editor__save-actions {
|
|
572
539
|
margin-left: auto;
|
|
573
540
|
}
|
|
574
541
|
|
|
575
|
-
.media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) {
|
|
542
|
+
.media-editor-modal .media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) {
|
|
576
543
|
color: var(--wp-admin-theme-color);
|
|
577
544
|
}
|
|
578
545
|
|
|
@@ -6,18 +6,21 @@ import { type MediaEditorSaveResult } from './use-save-media-editor';
|
|
|
6
6
|
export type { MediaEditorSaveResult } from './use-save-media-editor';
|
|
7
7
|
export interface MediaEditorFrameProps {
|
|
8
8
|
children: ReactNode;
|
|
9
|
-
headerActions: ReactNode;
|
|
10
|
-
footerActions: ReactNode;
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
* Whether the media being edited is an image. The history and transform
|
|
11
|
+
* clusters render nothing for other media types, so a frame uses this to
|
|
12
|
+
* decide whether the container it would put them in is worth rendering at
|
|
13
|
+
* all.
|
|
14
|
+
*/
|
|
15
|
+
isImage: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* `narrow` below the `small` breakpoint, where the frame's header has no
|
|
18
|
+
* room for the history cluster beside its other controls. A frame uses
|
|
19
|
+
* this to place that cluster, not to decide whether it renders —
|
|
20
|
+
* `HistoryActions` returns nothing on its own when the canvas is off
|
|
21
|
+
* screen.
|
|
19
22
|
*/
|
|
20
|
-
|
|
23
|
+
layout: 'wide' | 'narrow';
|
|
21
24
|
onRequestClose: () => void;
|
|
22
25
|
onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
|
|
23
26
|
shouldCloseOnClickOutside: boolean;
|
|
@@ -34,9 +37,34 @@ export interface MediaEditorProps {
|
|
|
34
37
|
renderFrame: (props: MediaEditorFrameProps) => JSX.Element;
|
|
35
38
|
noticesClassName?: string;
|
|
36
39
|
noticesPortalElement?: Element | null;
|
|
37
|
-
showCloseButton?: boolean;
|
|
38
40
|
shouldCloseOnEsc?: boolean;
|
|
39
41
|
}
|
|
42
|
+
export interface HeaderActionsProps {
|
|
43
|
+
/**
|
|
44
|
+
* Whether to include a Close button. Frames with a dismissal affordance of
|
|
45
|
+
* their own — a route's breadcrumbs, say — leave it out.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
showCloseButton?: boolean;
|
|
50
|
+
}
|
|
51
|
+
declare function HeaderActions({ showCloseButton }: HeaderActionsProps): import("react").JSX.Element;
|
|
52
|
+
declare function HistoryActions(): import("react").JSX.Element | null;
|
|
53
|
+
export interface SaveActionsProps {
|
|
54
|
+
/**
|
|
55
|
+
* Button height. Footers take the 40px default; frames placing these in a
|
|
56
|
+
* page header pass `compact` to match the header's other controls.
|
|
57
|
+
*
|
|
58
|
+
* @default 'default'
|
|
59
|
+
*/
|
|
60
|
+
size?: 'default' | 'compact';
|
|
61
|
+
}
|
|
62
|
+
declare function SaveActions({ size }: SaveActionsProps): import("react").JSX.Element;
|
|
40
63
|
export declare function MediaEditor(props: MediaEditorProps): import("react").JSX.Element;
|
|
64
|
+
export declare namespace MediaEditor {
|
|
65
|
+
export { HeaderActions };
|
|
66
|
+
export { HistoryActions };
|
|
67
|
+
export { SaveActions };
|
|
68
|
+
}
|
|
41
69
|
export default MediaEditor;
|
|
42
70
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAStD,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;AA0BrE,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,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,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,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AA8GD,MAAM,WAAW,kBAAkB;IAClC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,iBAAS,aAAa,CAAE,EAAE,eAAuB,EAAE,EAAE,kBAAkB,+BAoDtE;AAED,iBAAS,cAAc,uCAmFtB;AAED,MAAM,WAAW,gBAAgB;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAC7B;AAED,iBAAS,WAAW,CAAE,EAAE,IAAgB,EAAE,EAAE,gBAAgB,+BAkC3D;AAoaD,wBAAgB,WAAW,CAAE,KAAK,EAAE,gBAAgB,+BAMnD;yBANe,WAAW;;;;;eAeZ,WAAW"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export interface MediaEditorCanvasProps {
|
|
2
|
-
/** Focus the crop area when the canvas mounts. */
|
|
3
|
-
focusOnMount?: boolean;
|
|
4
2
|
/** Whether external placement activity should reveal the grid. */
|
|
5
3
|
isPlacementActive?: boolean;
|
|
6
4
|
/** Fires when a canvas cropper gesture begins. */
|
|
@@ -17,10 +15,9 @@ export interface MediaEditorCanvasProps {
|
|
|
17
15
|
* guards can render a spinner or fall through to `<MediaPreview>`.
|
|
18
16
|
*
|
|
19
17
|
* @param props
|
|
20
|
-
* @param props.focusOnMount
|
|
21
18
|
* @param props.isPlacementActive
|
|
22
19
|
* @param props.onGestureStart
|
|
23
20
|
* @param props.onGestureEnd
|
|
24
21
|
*/
|
|
25
|
-
export default function MediaEditorCanvas({
|
|
22
|
+
export default function MediaEditorCanvas({ isPlacementActive, onGestureStart, onGestureEnd, }: MediaEditorCanvasProps): import("react").JSX.Element | null;
|
|
26
23
|
//# 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":"AASA,MAAM,WAAW,sBAAsB;IACtC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-canvas/index.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,sBAAsB;IACtC,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;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,iBAAyB,EACzB,cAAc,EACd,YAAY,GACZ,EAAE,sBAAsB,sCAkIxB"}
|
|
@@ -10,22 +10,15 @@ export interface MediaEditorCropPanelProps {
|
|
|
10
10
|
onAspectRatioChange: (value: string) => void;
|
|
11
11
|
/** Aspect-ratio presets to display in the selector. */
|
|
12
12
|
aspectRatioOptions: AspectRatioPreset[];
|
|
13
|
-
/**
|
|
14
|
-
* When `true`, render the rotate/flip/zoom image controls at the top of
|
|
15
|
-
* the panel. Used on wide viewports where the footer no longer carries
|
|
16
|
-
* them.
|
|
17
|
-
*/
|
|
18
|
-
showTransformControls?: boolean;
|
|
19
13
|
}
|
|
20
14
|
/**
|
|
21
|
-
* Sidebar panel for crop controls
|
|
22
|
-
*
|
|
23
|
-
*
|
|
15
|
+
* Sidebar panel for crop controls: rotate, flip and zoom above the
|
|
16
|
+
* aspect-ratio selector. Rendered where the panel docks; below that the
|
|
17
|
+
* transform controls sit under the canvas instead, placed by the editor.
|
|
24
18
|
* @param props
|
|
25
19
|
* @param props.aspectRatioValue
|
|
26
20
|
* @param props.onAspectRatioChange
|
|
27
21
|
* @param props.aspectRatioOptions
|
|
28
|
-
* @param props.showTransformControls
|
|
29
22
|
*/
|
|
30
|
-
export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions,
|
|
23
|
+
export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions, }: MediaEditorCropPanelProps): import("react").JSX.Element;
|
|
31
24
|
//# 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":"AAKA,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAKA,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;CACxC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GAClB,EAAE,yBAAyB,+BAyB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-modal/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-modal/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,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;AAqBD,wBAAgB,gBAAgB,CAAE,EACjC,MAAW,EACX,kBAAkB,GAClB,EAAE,qBAAqB,sCAwGvB;eAEc,gBAAgB"}
|
package/global.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/media-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.2-next.v.202608281122.0",
|
|
4
4
|
"description": "Media editor components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -43,32 +43,33 @@
|
|
|
43
43
|
"build-module/store/index.mjs"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@wordpress/a11y": "^4.
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/data": "^
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/
|
|
55
|
-
"@wordpress/element": "^8.
|
|
56
|
-
"@wordpress/i18n": "^6.
|
|
57
|
-
"@wordpress/icons": "^15.
|
|
58
|
-
"@wordpress/
|
|
59
|
-
"@wordpress/
|
|
60
|
-
"@wordpress/
|
|
61
|
-
"@wordpress/
|
|
62
|
-
"@wordpress/
|
|
63
|
-
"@wordpress/ui": "^0.20.0",
|
|
46
|
+
"@wordpress/a11y": "^4.54.1-next.v.202608281122.0",
|
|
47
|
+
"@wordpress/admin-ui": "^2.9.1-next.v.202608281122.0",
|
|
48
|
+
"@wordpress/api-fetch": "^7.54.1-next.v.202608281122.0",
|
|
49
|
+
"@wordpress/base-styles": "^13.0.1-next.v.202608281122.0",
|
|
50
|
+
"@wordpress/components": "^40.1.1-next.v.202608281122.0",
|
|
51
|
+
"@wordpress/compose": "^8.7.2-next.v.202608281122.0",
|
|
52
|
+
"@wordpress/core-data": "^7.54.2-next.v.202608281122.0",
|
|
53
|
+
"@wordpress/data": "^10.54.2-next.v.202608281122.0",
|
|
54
|
+
"@wordpress/dataviews": "^18.1.2-next.v.202608281122.0",
|
|
55
|
+
"@wordpress/element": "^8.6.2-next.v.202608281122.0",
|
|
56
|
+
"@wordpress/i18n": "^6.27.1-next.v.202608281122.0",
|
|
57
|
+
"@wordpress/icons": "^15.5.1-next.v.202608281122.0",
|
|
58
|
+
"@wordpress/keyboard-shortcuts": "^5.54.1-next.v.202608281122.0",
|
|
59
|
+
"@wordpress/keycodes": "^4.54.1-next.v.202608281122.0",
|
|
60
|
+
"@wordpress/notices": "^5.54.1-next.v.202608281122.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.54.1-next.v.202608281122.0",
|
|
62
|
+
"@wordpress/ui": "^0.22.1-next.v.202608281122.0",
|
|
64
63
|
"clsx": "^2.1.1",
|
|
65
64
|
"gl-matrix": "^3.4.3"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
68
|
-
"@storybook/react-vite": "^10.
|
|
67
|
+
"@storybook/react-vite": "^10.5.3",
|
|
69
68
|
"@testing-library/dom": "^10.4.1",
|
|
69
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
70
70
|
"@testing-library/react": "^16.3.2",
|
|
71
|
-
"@testing-library/user-event": "^14.6.1"
|
|
71
|
+
"@testing-library/user-event": "^14.6.1",
|
|
72
|
+
"@types/jest": "^30.0.0"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
75
|
"@types/react": "^18 || ^19",
|
|
@@ -82,5 +83,5 @@
|
|
|
82
83
|
"publishConfig": {
|
|
83
84
|
"access": "public"
|
|
84
85
|
},
|
|
85
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "de479d415171765f7b573c81aeec5334ff506a12"
|
|
86
87
|
}
|