@wordpress/media-editor 0.10.1 → 0.11.1

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 (85) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/components/media-editor/index.cjs +41 -51
  3. package/build/components/media-editor/index.cjs.map +3 -3
  4. package/build/components/media-editor-crop-panel/index.cjs +15 -45
  5. package/build/components/media-editor-crop-panel/index.cjs.map +3 -3
  6. package/build/components/media-editor-fine-rotation/index.cjs.map +2 -2
  7. package/build/components/media-editor-image-controls/index.cjs +230 -0
  8. package/build/components/media-editor-image-controls/index.cjs.map +7 -0
  9. package/build/components/media-form/index.cjs +12 -23
  10. package/build/components/media-form/index.cjs.map +3 -3
  11. package/build/image-editor/core/constants.cjs +3 -0
  12. package/build/image-editor/core/constants.cjs.map +2 -2
  13. package/build/image-editor/core/stencil-math.cjs +11 -2
  14. package/build/image-editor/core/stencil-math.cjs.map +2 -2
  15. package/build/image-editor/react/components/cropper.cjs +12 -7
  16. package/build/image-editor/react/components/cropper.cjs.map +2 -2
  17. package/build-module/components/media-editor/index.mjs +41 -51
  18. package/build-module/components/media-editor/index.mjs.map +2 -2
  19. package/build-module/components/media-editor-crop-panel/index.mjs +8 -51
  20. package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
  21. package/build-module/components/media-editor-fine-rotation/index.mjs.map +2 -2
  22. package/build-module/components/media-editor-image-controls/index.mjs +221 -0
  23. package/build-module/components/media-editor-image-controls/index.mjs.map +7 -0
  24. package/build-module/components/media-form/index.mjs +12 -13
  25. package/build-module/components/media-form/index.mjs.map +2 -2
  26. package/build-module/image-editor/core/constants.mjs +2 -0
  27. package/build-module/image-editor/core/constants.mjs.map +2 -2
  28. package/build-module/image-editor/core/stencil-math.mjs +9 -1
  29. package/build-module/image-editor/core/stencil-math.mjs.map +2 -2
  30. package/build-module/image-editor/react/components/cropper.mjs +12 -7
  31. package/build-module/image-editor/react/components/cropper.mjs.map +2 -2
  32. package/build-style/style-rtl.css +136 -47
  33. package/build-style/style.css +136 -46
  34. package/build-types/components/media-editor/index.d.ts +6 -7
  35. package/build-types/components/media-editor/index.d.ts.map +1 -1
  36. package/build-types/components/media-editor-crop-panel/index.d.ts +11 -6
  37. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
  38. package/build-types/components/media-editor-fine-rotation/index.d.ts +4 -3
  39. package/build-types/components/media-editor-fine-rotation/index.d.ts.map +1 -1
  40. package/build-types/components/media-editor-image-controls/index.d.ts +46 -0
  41. package/build-types/components/media-editor-image-controls/index.d.ts.map +1 -0
  42. package/build-types/components/media-editor-toolbar/index.d.ts +24 -0
  43. package/build-types/components/media-editor-toolbar/index.d.ts.map +1 -0
  44. package/build-types/components/media-editor-transform-controls/index.d.ts +18 -5
  45. package/build-types/components/media-editor-transform-controls/index.d.ts.map +1 -1
  46. package/build-types/components/media-form/index.d.ts.map +1 -1
  47. package/build-types/image-editor/core/constants.d.ts +10 -0
  48. package/build-types/image-editor/core/constants.d.ts.map +1 -1
  49. package/build-types/image-editor/core/stencil-math.d.ts +16 -3
  50. package/build-types/image-editor/core/stencil-math.d.ts.map +1 -1
  51. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
  52. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts +108 -0
  53. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts.map +1 -0
  54. package/package.json +25 -20
  55. package/src/components/media-editor/index.tsx +69 -77
  56. package/src/components/media-editor/style.scss +124 -4
  57. package/src/components/media-editor-crop-panel/index.tsx +16 -62
  58. package/src/components/media-editor-crop-panel/test/index.tsx +25 -41
  59. package/src/components/media-editor-fine-rotation/index.tsx +4 -3
  60. package/src/components/media-editor-image-controls/index.tsx +262 -0
  61. package/src/components/media-editor-image-controls/style.scss +48 -0
  62. package/src/components/media-editor-image-controls/test/index.tsx +150 -0
  63. package/src/components/media-editor-modal/style.scss +32 -42
  64. package/src/components/media-form/index.tsx +17 -21
  65. package/src/components/media-form/style.scss +6 -0
  66. package/src/components/rotation-ruler/style.scss +10 -3
  67. package/src/image-editor/core/constants.ts +11 -0
  68. package/src/image-editor/core/stencil-math.ts +23 -0
  69. package/src/image-editor/core/test/stencil-math.ts +39 -0
  70. package/src/image-editor/react/components/cropper.scss +28 -17
  71. package/src/image-editor/react/components/cropper.tsx +17 -7
  72. package/src/style.scss +2 -1
  73. package/tsconfig.tsbuildinfo +1 -1
  74. package/build/components/media-editor-transform-controls/index.cjs +0 -84
  75. package/build/components/media-editor-transform-controls/index.cjs.map +0 -7
  76. package/build/components/media-form/sidebar-datetime-view.cjs +0 -53
  77. package/build/components/media-form/sidebar-datetime-view.cjs.map +0 -7
  78. package/build-module/components/media-editor-transform-controls/index.mjs +0 -68
  79. package/build-module/components/media-editor-transform-controls/index.mjs.map +0 -7
  80. package/build-module/components/media-form/sidebar-datetime-view.mjs +0 -32
  81. package/build-module/components/media-form/sidebar-datetime-view.mjs.map +0 -7
  82. package/src/components/media-editor-transform-controls/index.tsx +0 -70
  83. package/src/components/media-editor-transform-controls/style.scss +0 -8
  84. package/src/components/media-form/sidebar-datetime-view.tsx +0 -47
  85. package/src/components/media-form/test/sidebar-datetime-view.test.tsx +0 -96
@@ -65,7 +65,8 @@
65
65
  .media-editor-preview--image img {
66
66
  max-width: 100%;
67
67
  max-height: 100%;
68
- object-fit: contain;
68
+ -o-object-fit: contain;
69
+ object-fit: contain;
69
70
  width: auto;
70
71
  height: auto;
71
72
  opacity: 0;
@@ -87,7 +88,8 @@
87
88
  .media-editor-preview--video video {
88
89
  max-width: 100%;
89
90
  max-height: 100%;
90
- object-fit: contain;
91
+ -o-object-fit: contain;
92
+ object-fit: contain;
91
93
  width: auto;
92
94
  height: auto;
93
95
  }
@@ -133,12 +135,15 @@
133
135
  height: 100%;
134
136
  touch-action: none;
135
137
  -webkit-user-select: none;
138
+ -moz-user-select: none;
136
139
  user-select: none;
137
140
  cursor: grab;
138
141
  }
139
142
  .wp-media-editor-image-editor__canvas {
140
143
  position: absolute;
141
- inset: 22px;
144
+ inset: 24px;
145
+ min-height: 100px;
146
+ min-width: 100px;
142
147
  }
143
148
  .wp-media-editor-image-editor__canvas:focus {
144
149
  outline: none;
@@ -164,14 +169,15 @@
164
169
  .wp-media-editor-image-editor__dimming {
165
170
  position: absolute;
166
171
  pointer-events: none;
167
- /* Large shadow spread dims everything outside the crop area.
168
- Darker at rest for clear crop framing, lighter during drag
169
- so the user can see where they're panning. */
170
- box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
172
+ /* Large shadow spread washes everything outside the crop area
173
+ toward the canvas grey ($gray-200). Slightly stronger at rest
174
+ for clear crop framing, lighter during drag so the user can see
175
+ where they're panning. */
176
+ box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.6);
171
177
  transition: box-shadow 0.15s ease;
172
178
  }
173
179
  .wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming {
174
- box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
180
+ box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.4);
175
181
  }
176
182
  .wp-media-editor-image-editor__grid {
177
183
  position: absolute;
@@ -220,7 +226,7 @@
220
226
  }
221
227
  .wp-media-editor-image-editor__stencil-rect {
222
228
  position: absolute;
223
- border: 1px solid rgba(255, 255, 255, 0.7);
229
+ border: 1px solid #1e1e1e;
224
230
  box-sizing: border-box;
225
231
  pointer-events: none;
226
232
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
@@ -230,7 +236,9 @@
230
236
  box-shadow: 0 0 0 1px var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
231
237
  }
232
238
  .wp-media-editor-image-editor__handle {
233
- appearance: none;
239
+ -webkit-appearance: none;
240
+ -moz-appearance: none;
241
+ appearance: none;
234
242
  margin: 0;
235
243
  padding: 0;
236
244
  font: inherit;
@@ -238,8 +246,8 @@
238
246
  position: absolute;
239
247
  width: 12px;
240
248
  height: 12px;
241
- background: rgba(255, 255, 255, 0.6);
242
- border: 1px solid rgba(255, 255, 255, 0.9);
249
+ background: #fff;
250
+ border: 1px solid var(--wp-admin-theme-color, #007cba);
243
251
  border-radius: 50%;
244
252
  box-sizing: border-box;
245
253
  pointer-events: auto;
@@ -311,10 +319,10 @@
311
319
  }
312
320
 
313
321
  /**
314
- * Typography
322
+ * Breakpoints & Media Queries
315
323
  */
316
324
  /**
317
- * Breakpoints & Media Queries
325
+ * Typography
318
326
  */
319
327
  /**
320
328
  * Converts a hex value into the rgb equivalent.
@@ -382,22 +390,49 @@
382
390
  min-width: 0;
383
391
  flex: 1;
384
392
  }
385
- .media-editor .media-editor__canvas {
393
+ .media-editor .media-editor__content {
394
+ display: flex;
395
+ flex: 1;
396
+ flex-direction: column;
397
+ min-height: 0;
398
+ margin: 0 24px;
399
+ border-radius: 8px;
400
+ overflow: hidden;
401
+ }
402
+ @media (min-width: 600px) {
403
+ .media-editor .media-editor__content {
404
+ margin-right: 16px;
405
+ }
406
+ }
407
+ .media-editor .media-editor__canvas-toolbar {
408
+ display: flex;
409
+ flex-shrink: 0;
410
+ justify-content: center;
411
+ background: #e0e0e0;
412
+ padding: 8px 16px;
413
+ }
414
+ .media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation {
415
+ flex: 0 1 360px;
416
+ min-width: 0;
417
+ }
418
+ .media-editor .media-editor__canvas-area {
386
419
  display: flex;
387
420
  align-items: center;
388
421
  justify-content: center;
389
- background: #f0f0f0;
422
+ background: #e0e0e0;
390
423
  overflow: auto;
391
- height: 100%;
424
+ flex: 1;
425
+ min-height: 0;
392
426
  }
393
- .media-editor .media-editor__canvas .media-editor-preview {
427
+ .media-editor .media-editor__canvas-area .media-editor-preview {
394
428
  height: 100%;
395
429
  }
396
- .media-editor .media-editor__canvas img,
397
- .media-editor .media-editor__canvas video {
430
+ .media-editor .media-editor__canvas-area img,
431
+ .media-editor .media-editor__canvas-area video {
398
432
  max-width: 100%;
399
433
  max-height: 100%;
400
- object-fit: contain;
434
+ -o-object-fit: contain;
435
+ object-fit: contain;
401
436
  }
402
437
  .media-editor .media-editor__sidebar {
403
438
  box-sizing: border-box;
@@ -407,21 +442,58 @@
407
442
  .media-editor .media-editor__sidebar *::after {
408
443
  box-sizing: inherit;
409
444
  }
445
+ @media (min-width: 600px) {
446
+ .media-editor .media-editor__sidebar {
447
+ padding-left: 8px;
448
+ }
449
+ }
450
+ .media-editor .media-editor__sidebar-panel {
451
+ padding-bottom: 24px;
452
+ }
453
+ .media-editor .interface-interface-skeleton__sidebar {
454
+ border-top: 0;
455
+ box-shadow: none;
456
+ outline: 1px solid transparent;
457
+ }
410
458
  .media-editor .media-editor__panel {
411
459
  padding: 16px;
412
460
  }
461
+ @media (min-width: 600px) {
462
+ .media-editor .media-editor__panel {
463
+ padding: 16px 24px 0 0;
464
+ }
465
+ }
413
466
  .media-editor .components-panel__header.media-editor__sidebar-header {
414
467
  padding-left: 0;
415
468
  padding-right: 8px;
469
+ margin-right: 24px;
416
470
  }
417
471
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
418
472
  padding: 0;
419
473
  }
420
- @media (min-width: 782px) {
474
+ @media (min-width: 600px) {
421
475
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
422
476
  display: flex;
423
477
  }
424
478
  }
479
+ @media (min-width: 600px) and (max-width: 781px) {
480
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
481
+ position: relative !important;
482
+ }
483
+ .media-editor .interface-complementary-area__fill,
484
+ .media-editor .interface-complementary-area {
485
+ width: 280px !important;
486
+ }
487
+ }
488
+ @media (max-width: 599px) {
489
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
490
+ width: 100%;
491
+ }
492
+ .media-editor .interface-complementary-area__fill,
493
+ .media-editor .interface-complementary-area {
494
+ width: 100% !important;
495
+ }
496
+ }
425
497
 
426
498
  .media-editor__snackbar {
427
499
  position: fixed;
@@ -438,6 +510,10 @@
438
510
  margin-inline: auto;
439
511
  }
440
512
 
513
+ .media-editor-form .dataforms-layouts-panel__field-control {
514
+ text-wrap: pretty;
515
+ }
516
+
441
517
  .media-editor-modal.components-modal__frame .components-modal__content {
442
518
  padding: 0;
443
519
  margin-bottom: 0;
@@ -457,38 +533,21 @@
457
533
  flex-shrink: 0;
458
534
  display: flex;
459
535
  gap: 16px;
460
- padding: 8px 24px;
461
- border-top: 1px solid #ddd;
536
+ padding: 16px 32px 24px;
462
537
  background: #fff;
538
+ z-index: 1000001;
463
539
  }
464
540
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide {
465
541
  flex-direction: row;
466
542
  align-items: center;
467
543
  }
468
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-modal__footer-toolbar {
469
- flex: 1 1 0;
470
- min-width: 0;
471
- display: flex;
472
- align-items: center;
473
- justify-content: center;
474
- gap: 8px;
475
- }
476
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-fine-rotation {
477
- flex: 1 1 280px;
478
- min-width: 0;
479
- max-width: 360px;
480
- }
481
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-transform-controls {
482
- border-left: 1px solid #ddd;
483
- padding-left: 12px;
484
- }
485
544
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions {
486
545
  margin-left: auto;
487
546
  }
488
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-medium, .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
547
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
489
548
  flex-direction: column;
490
549
  }
491
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-transform-controls {
550
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-image-controls {
492
551
  align-self: center;
493
552
  }
494
553
 
@@ -498,11 +557,15 @@
498
557
  align-items: center;
499
558
  gap: 16px;
500
559
  }
501
- .media-editor-modal__footer-row .media-editor-transform-controls,
560
+ .media-editor-modal__footer-row .media-editor-image-controls,
502
561
  .media-editor-modal__footer-row .media-editor__footer-actions {
503
562
  margin-left: auto;
504
563
  }
505
564
 
565
+ .media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) {
566
+ color: var(--wp-admin-theme-color);
567
+ }
568
+
506
569
  .media-editor-modal {
507
570
  display: flex;
508
571
  flex-direction: column;
@@ -532,12 +595,37 @@
532
595
  height: 100%;
533
596
  }
534
597
 
535
- .media-editor-transform-controls {
598
+ .media-editor-image-controls {
536
599
  display: flex;
537
600
  flex-wrap: nowrap;
538
601
  align-items: center;
539
602
  gap: 8px;
540
603
  }
604
+ .media-editor-image-controls.is-stacked {
605
+ flex-direction: column;
606
+ align-items: flex-start;
607
+ gap: 24px;
608
+ }
609
+ .media-editor-image-controls__transforms {
610
+ display: flex;
611
+ gap: 48px;
612
+ }
613
+ .media-editor-image-controls__group {
614
+ display: flex;
615
+ flex-direction: column;
616
+ gap: 4px;
617
+ }
618
+ .media-editor-image-controls__label {
619
+ font-size: 11px;
620
+ font-weight: 500;
621
+ line-height: 1.4;
622
+ text-transform: uppercase;
623
+ }
624
+ .media-editor-image-controls__buttons {
625
+ display: flex;
626
+ gap: 8px;
627
+ padding-inline: 2px 0;
628
+ }
541
629
 
542
630
  .media-editor-keyboard-shortcuts-modal {
543
631
  min-width: 280px;
@@ -591,6 +679,7 @@
591
679
  color: #1e1e1e;
592
680
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
593
681
  -webkit-user-select: none;
682
+ -moz-user-select: none;
594
683
  user-select: none;
595
684
  touch-action: none;
596
685
  cursor: ew-resize;
@@ -641,6 +730,7 @@
641
730
 
642
731
  .rotation-ruler__ticks {
643
732
  position: absolute;
733
+ /*rtl:ignore*/
644
734
  left: 50%;
645
735
  top: 0;
646
736
  display: block;
@@ -688,7 +778,7 @@
688
778
  width: 60px;
689
779
  height: 100%;
690
780
  transform: translateX(-50%);
691
- background: linear-gradient(to right, transparent 0, #fff 12px, #fff calc(100% - 12px), transparent 100%);
781
+ background: linear-gradient(to right, transparent 0, #e0e0e0 12px, #e0e0e0 calc(100% - 12px), transparent 100%);
692
782
  }
693
783
 
694
784
  .rotation-ruler__active-label-number {
@@ -10,15 +10,14 @@ export interface MediaEditorFrameProps {
10
10
  footerActions: ReactNode;
11
11
  /**
12
12
  * Footer layout selector. Frames apply this to the footer container
13
- * as a modifier class.
13
+ * as a modifier class. Tracks the sidebar-collapse breakpoint (`medium`).
14
14
  *
15
- * - `wide` — single row: History | Ruler | Transform | Cancel/Save.
16
- * - `medium` — two rows: ruler on top; History | Transform | Cancel/Save
17
- * beneath.
18
- * - `narrow` — three rows: ruler; transform (centered); History |
19
- * Cancel/Save.
15
+ * - `wide` — sidebar is a column; footer is a single row of History |
16
+ * Cancel/Save (transform controls live in the Crop panel).
17
+ * - `narrow` — sidebar collapsed; transform controls sit above a
18
+ * History | Cancel/Save row.
20
19
  */
21
- footerLayout: 'wide' | 'medium' | 'narrow';
20
+ footerLayout: 'wide' | 'narrow';
22
21
  onRequestClose: () => void;
23
22
  onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
24
23
  shouldCloseOnClickOutside: boolean;
@@ -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,EAA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AO,CAAC;CAC3B;AAkmBD,wBAAgB,WAAW,CAAE,KAAK,EAAE,gBAAgB,+BAMnD;eAEc,WAAW"}
@@ -8,19 +8,24 @@ export interface MediaEditorCropPanelProps {
8
8
  aspectRatioValue: string;
9
9
  /** Setter for the aspect-ratio preset value. */
10
10
  onAspectRatioChange: (value: string) => void;
11
- /** Signal that a placement-oriented control is being adjusted. */
12
- onPlacementControlInteraction?: () => void;
13
11
  /** Aspect-ratio presets to display in the selector. */
14
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;
15
19
  }
16
20
  /**
17
- * Sidebar panel for crop-shape controls. The tactile verbs (rotate, flip)
18
- * live in the bottom toolbar instead.
21
+ * Sidebar panel for crop controls. Renders the aspect-ratio selector, plus the
22
+ * rotate/flip and zoom controls on wide viewports (these move to the footer
23
+ * toolbar when the sidebar collapses).
19
24
  * @param props
20
25
  * @param props.aspectRatioValue
21
26
  * @param props.onAspectRatioChange
22
- * @param props.onPlacementControlInteraction
23
27
  * @param props.aspectRatioOptions
28
+ * @param props.showTransformControls
24
29
  */
25
- export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, onPlacementControlInteraction, aspectRatioOptions }: MediaEditorCropPanelProps): import("react").JSX.Element;
30
+ export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions, showTransformControls }: MediaEditorCropPanelProps): import("react").JSX.Element;
26
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":"AAiBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAa3E,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,uDAAuD;IACvD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,EAAE,yBAAyB,+BA6D3B"}
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"}
@@ -3,9 +3,10 @@ export interface MediaEditorFineRotationProps {
3
3
  onPlacementControlInteraction?: () => void;
4
4
  }
5
5
  /**
6
- * Fine-rotation slider for the media-editor footer. Lives separately from
7
- * the snap-rotate / flip buttons so the footer can place the two halves on
8
- * different rows at intermediate viewport widths.
6
+ * Fine-rotation slider for the media editor. It renders under the canvas so it
7
+ * stays constrained to the canvas column at all viewport sizes. Lives
8
+ * separately from the snap-rotate / flip buttons so the two can be placed
9
+ * independently per viewport.
9
10
  *
10
11
  * @param props
11
12
  * @param props.onPlacementControlInteraction
@@ -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;;;;;;;GAOG;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,EAC7B,EAAE,4BAA4B,+BA6C9B"}
@@ -0,0 +1,46 @@
1
+ import { type AspectRatioPreset } from '../../image-editor/core/constants';
2
+ /**
3
+ * Default zoom factor per +/- click. Zooming is geometric, so a fixed
4
+ * multiplier — rather than an additive step — makes each click feel like the
5
+ * same amount of zoom at any level (an additive `+0.1` is a 10% jump at 1× but
6
+ * a ~1% nudge at 10×). `1.2` is ~+20% per click. Overridable via the
7
+ * `zoomFactor` prop.
8
+ */
9
+ export declare const DEFAULT_ZOOM_FACTOR = 1.2;
10
+ export interface MediaEditorImageControlsProps {
11
+ /**
12
+ * When `true`, render rotate, flip and zoom as labelled groups — the Crop
13
+ * panel layout used on wide viewports. When `false` (default), render a
14
+ * single flat row of icon buttons — the footer layout used at narrower
15
+ * widths.
16
+ */
17
+ withLabels?: boolean;
18
+ /**
19
+ * When `true`, include an aspect-ratio dropdown in the flat toolbar.
20
+ * Omitted from the labelled panel layout because the Crop panel already
21
+ * renders the full aspect-ratio select control.
22
+ */
23
+ showAspectRatioControl?: boolean;
24
+ /** Optional caller-supplied aspect-ratio presets. */
25
+ aspectRatioPresets?: AspectRatioPreset[];
26
+ /**
27
+ * Multiplier applied to the zoom per +/- click — zoom in multiplies by it,
28
+ * zoom out divides by it. Must be greater than 1. Defaults to
29
+ * `DEFAULT_ZOOM_FACTOR` (1.2).
30
+ */
31
+ zoomFactor?: number;
32
+ }
33
+ /**
34
+ * Image editing controls placed independently per viewport: on wide viewports
35
+ * rotate/flip/zoom render inside the Crop panel (`withLabels`), and at narrower
36
+ * widths they fall back into the footer toolbar (flat row), where the
37
+ * aspect-ratio dropdown can also be shown.
38
+ *
39
+ * @param props
40
+ * @param props.withLabels
41
+ * @param props.showAspectRatioControl
42
+ * @param props.aspectRatioPresets
43
+ * @param props.zoomFactor
44
+ */
45
+ export default function MediaEditorImageControls({ withLabels, showAspectRatioControl, aspectRatioPresets, zoomFactor }: MediaEditorImageControlsProps): import("react").JSX.Element;
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,24 @@
1
+ export interface MediaEditorToolbarProps {
2
+ /**
3
+ * Extra work to run when the user clicks Reset — e.g. clearing
4
+ * aspect-ratio / freeform state that lives outside the cropper
5
+ * controller.
6
+ */
7
+ onReset?: () => void;
8
+ /** Signal that a placement-oriented control is being adjusted. */
9
+ onPlacementControlInteraction?: () => void;
10
+ /** Whether undo/redo should be unavailable during an active gesture. */
11
+ isUndoRedoDisabled?: boolean;
12
+ }
13
+ /**
14
+ * Toolbar for the media editor modal. Hosts the tactile cropper verbs —
15
+ * rotate, flip, fine rotation, reset — so they stay within thumb reach
16
+ * when the toolbar sits at the bottom of the modal. Aspect-ratio presets
17
+ * and freeform toggle live in the Crop sidebar tab instead.
18
+ * @param props
19
+ * @param props.onReset
20
+ * @param props.onPlacementControlInteraction
21
+ * @param props.isUndoRedoDisabled
22
+ */
23
+ export default function MediaEditorToolbar({ onReset, onPlacementControlInteraction, isUndoRedoDisabled }: MediaEditorToolbarProps): import("react").JSX.Element;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-toolbar/index.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,uBAAuB;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAC3C,OAAO,EACP,6BAA6B,EAC7B,kBAA0B,EAC1B,EAAE,uBAAuB,+BAiKzB"}
@@ -1,8 +1,21 @@
1
+ export interface MediaEditorTransformControlsProps {
2
+ /**
3
+ * When `true`, render rotate and flip as two labelled groups stacked
4
+ * vertically — the Crop panel layout used on wide viewports. When
5
+ * `false` (default), render a single flat row of icon buttons — the
6
+ * footer layout used at narrower widths.
7
+ */
8
+ withLabels?: boolean;
9
+ }
1
10
  /**
2
- * Snap-rotate and flip controls for the media-editor footer. Rotation and
3
- * reflection are both geometric transforms, hence "transform controls".
4
- * Lives separately from the fine-rotation slider so the footer can place
5
- * the two halves on different rows at intermediate viewport widths.
11
+ * Snap-rotate and flip controls. Rotation and reflection are both geometric
12
+ * transforms, hence "transform controls". Lives separately from the
13
+ * fine-rotation slider so each can be placed independently per viewport: on
14
+ * wide viewports both render inside the Crop panel (`withLabels`), and at
15
+ * narrower widths they fall back into the footer toolbar (flat row).
16
+ *
17
+ * @param props
18
+ * @param props.withLabels
6
19
  */
7
- export default function MediaEditorTransformControls(): import("react").JSX.Element;
20
+ export default function MediaEditorTransformControls({ withLabels }: MediaEditorTransformControlsProps): import("react").JSX.Element;
8
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-transform-controls/index.tsx"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,gCA8CnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-transform-controls/index.tsx"],"names":[],"mappings":"AAiBA,MAAM,WAAW,iCAAiC;IACjD;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAE,EACrD,UAAkB,EAClB,EAAE,iCAAiC,+BAgGnC"}
@@ -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;AAKxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;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,+BAiEhB"}
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"}
@@ -22,6 +22,16 @@ export declare const MAX_ZOOM = 10;
22
22
  * floor globally.
23
23
  */
24
24
  export declare const MIN_CROP_PIXELS = 24;
25
+ /**
26
+ * Minimum on-screen crop rect dimension in CSS pixels. The source-pixel
27
+ * floor (`MIN_CROP_PIXELS`) keeps crops from going sub-pixel, but on a large
28
+ * image fit into a small canvas it can render only a few CSS pixels wide —
29
+ * too small to grab the resize handles. This floor keeps the crop operable
30
+ * regardless of display scale; it binds when zoomed out and yields to the
31
+ * source-pixel floor once the image is shown large enough. Sized to one
32
+ * handle touch target (`$handle-touch-target-size` in `cropper.scss`).
33
+ */
34
+ export declare const MIN_CROP_SCREEN_PX = 44;
25
35
  /**
26
36
  * Wheel zoom sensitivity. A deltaY of 100 changes zoom by 0.25.
27
37
  * This could be made configurable as a prop to the Cropper component.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/constants.ts"],"names":[],"mappings":"A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SAAS,CAAC;AAE/C,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAmBtC,eAAO,MAAM,aAAa,EAAE,YAU3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAUpD,CAAC"}
@@ -1,8 +1,21 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { HandlePosition, NormalizedRect, Size } from './types';
5
2
  export type { HandlePosition };
3
+ /**
4
+ * Resolve the minimum crop dimension, in source-image pixels, for the current
5
+ * display scale.
6
+ *
7
+ * Two floors compete: a fixed source-pixel floor (`MIN_CROP_PIXELS`) that
8
+ * avoids sub-pixel crops, and an on-screen floor (`MIN_CROP_SCREEN_PX`) that
9
+ * keeps the crop large enough to grab. The on-screen floor converted to source
10
+ * pixels is `MIN_CROP_SCREEN_PX / displayScale`; the binding constraint is the
11
+ * larger of the two. When zoomed out (small `displayScale`) the on-screen floor
12
+ * dominates; once the image is shown large enough the source-pixel floor takes
13
+ * over.
14
+ *
15
+ * @param displayScale CSS pixels rendered per source pixel (fit scale × zoom).
16
+ * @return Minimum crop dimension in source-image pixels.
17
+ */
18
+ export declare function getMinCropPixels(displayScale: number): number;
6
19
  /**
7
20
  * Default minimum crop rect dimension in normalized space, used when no
8
21
  * explicit per-axis minimum is supplied (e.g. before the source image
@@ -1 +1 @@
1
- {"version":3,"file":"stencil-math.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/stencil-math.ts"],"names":[],"m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3,"file":"stencil-math.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/stencil-math.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAE,YAAY,EAAE,MAAM,GAAI,MAAM,CAK/D;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,IAAoC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,qCAAqC;IACrC,MAAM,EAAE,cAAc,CAAC;IACvB,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,EAAE,cAAc,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,EAClB,WAAW,GAAE,IAA4B,GACvC,cAAc,CA6ChB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,EAClB,eAAe,EAAE,MAAM,EACvB,WAAW,GAAE,IAA4B,GACvC,cAAc,CAuFhB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,4BAA4B,CAC3C,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,EAClB,WAAW,GAAE,IAA4B,GACvC,cAAc,CA0GhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"cropper.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/components/cropper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAmBH;;GAEG;AACH,OAAO,KAAK,EACX,YAAY,EAEZ,YAAY,EACZ,IAAI,EAEJ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAmBtE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,4EAA4E;IAC5E,UAAU,EAAE,iBAAiB,CAAC;IAC9B,yEAAyE;IACzE,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAE,YAAY,CAAE,CAAC;IAC9C,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACnC,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sDAAsD;IACtD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,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,K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