@wordpress/media-editor 0.11.0 → 0.11.2-next.v.202606191442.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 (179) 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/use-crop-options.cjs.map +1 -1
  5. package/build/components/media-editor-canvas/index.cjs +63 -15
  6. package/build/components/media-editor-canvas/index.cjs.map +3 -3
  7. package/build/components/media-editor-crop-panel/index.cjs +15 -45
  8. package/build/components/media-editor-crop-panel/index.cjs.map +3 -3
  9. package/build/components/media-editor-fine-rotation/index.cjs.map +2 -2
  10. package/build/components/media-editor-image-controls/index.cjs +230 -0
  11. package/build/components/media-editor-image-controls/index.cjs.map +7 -0
  12. package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs +4 -4
  13. package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs.map +2 -2
  14. package/build/components/media-editor-modal/build-modifiers.cjs.map +1 -1
  15. package/build/components/media-form/index.cjs +12 -23
  16. package/build/components/media-form/index.cjs.map +3 -3
  17. package/build/components/rotation-ruler/index.cjs +1 -1
  18. package/build/components/rotation-ruler/index.cjs.map +1 -1
  19. package/build/components/rotation-ruler/use-ruler-drag.cjs.map +1 -1
  20. package/build/image-editor/core/camera.cjs +13 -0
  21. package/build/image-editor/core/camera.cjs.map +2 -2
  22. package/build/image-editor/core/constants.cjs +15 -3
  23. package/build/image-editor/core/constants.cjs.map +2 -2
  24. package/build/image-editor/core/containment.cjs.map +1 -1
  25. package/build/image-editor/core/crop-rect.cjs.map +1 -1
  26. package/build/image-editor/core/export/canvas-renderer.cjs.map +1 -1
  27. package/build/image-editor/core/interaction-controller.cjs +9 -7
  28. package/build/image-editor/core/interaction-controller.cjs.map +2 -2
  29. package/build/image-editor/core/math/sanitize.cjs.map +1 -1
  30. package/build/image-editor/core/setter-helpers.cjs.map +1 -1
  31. package/build/image-editor/core/source-region.cjs +111 -2
  32. package/build/image-editor/core/source-region.cjs.map +2 -2
  33. package/build/image-editor/core/state.cjs.map +1 -1
  34. package/build/image-editor/core/stencil-math.cjs +14 -6
  35. package/build/image-editor/core/stencil-math.cjs.map +2 -2
  36. package/build/image-editor/core/transform-style.cjs.map +1 -1
  37. package/build/image-editor/core/types.cjs.map +1 -1
  38. package/build/image-editor/react/components/cropper.cjs +231 -49
  39. package/build/image-editor/react/components/cropper.cjs.map +2 -2
  40. package/build/image-editor/react/components/overlays/dimensions-overlay.cjs.map +1 -1
  41. package/build/image-editor/react/components/overlays/dimming-overlay.cjs +1 -0
  42. package/build/image-editor/react/components/overlays/dimming-overlay.cjs.map +2 -2
  43. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +65 -19
  44. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +2 -2
  45. package/build/image-editor/react/hooks/build-cropper-setters.cjs.map +1 -1
  46. package/build/image-editor/react/hooks/use-cropper-reducer.cjs +1 -1
  47. package/build/image-editor/react/hooks/use-cropper-reducer.cjs.map +2 -2
  48. package/build/image-editor/react/hooks/use-interaction.cjs.map +1 -1
  49. package/build/image-editor/react/hooks/use-viewport-state.cjs.map +1 -1
  50. package/build/index.cjs.map +1 -1
  51. package/build/state/types.cjs.map +1 -1
  52. package/build/state/use-media-editor-state.cjs +1 -1
  53. package/build/state/use-media-editor-state.cjs.map +2 -2
  54. package/build-module/components/media-editor/index.mjs +41 -51
  55. package/build-module/components/media-editor/index.mjs.map +2 -2
  56. package/build-module/components/media-editor/use-crop-options.mjs.map +1 -1
  57. package/build-module/components/media-editor-canvas/index.mjs +55 -17
  58. package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
  59. package/build-module/components/media-editor-crop-panel/index.mjs +8 -51
  60. package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
  61. package/build-module/components/media-editor-fine-rotation/index.mjs.map +2 -2
  62. package/build-module/components/media-editor-image-controls/index.mjs +221 -0
  63. package/build-module/components/media-editor-image-controls/index.mjs.map +7 -0
  64. package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs +4 -4
  65. package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs.map +2 -2
  66. package/build-module/components/media-editor-modal/build-modifiers.mjs.map +1 -1
  67. package/build-module/components/media-form/index.mjs +12 -13
  68. package/build-module/components/media-form/index.mjs.map +2 -2
  69. package/build-module/components/rotation-ruler/index.mjs +1 -1
  70. package/build-module/components/rotation-ruler/index.mjs.map +1 -1
  71. package/build-module/components/rotation-ruler/use-ruler-drag.mjs.map +1 -1
  72. package/build-module/image-editor/core/camera.mjs +12 -0
  73. package/build-module/image-editor/core/camera.mjs.map +2 -2
  74. package/build-module/image-editor/core/constants.mjs +10 -2
  75. package/build-module/image-editor/core/constants.mjs.map +2 -2
  76. package/build-module/image-editor/core/containment.mjs.map +1 -1
  77. package/build-module/image-editor/core/crop-rect.mjs.map +1 -1
  78. package/build-module/image-editor/core/export/canvas-renderer.mjs.map +1 -1
  79. package/build-module/image-editor/core/interaction-controller.mjs +9 -7
  80. package/build-module/image-editor/core/interaction-controller.mjs.map +2 -2
  81. package/build-module/image-editor/core/math/sanitize.mjs.map +1 -1
  82. package/build-module/image-editor/core/setter-helpers.mjs.map +1 -1
  83. package/build-module/image-editor/core/source-region.mjs +108 -1
  84. package/build-module/image-editor/core/source-region.mjs.map +2 -2
  85. package/build-module/image-editor/core/state.mjs.map +1 -1
  86. package/build-module/image-editor/core/stencil-math.mjs +12 -5
  87. package/build-module/image-editor/core/stencil-math.mjs.map +2 -2
  88. package/build-module/image-editor/core/transform-style.mjs.map +1 -1
  89. package/build-module/image-editor/react/components/cropper.mjs +242 -52
  90. package/build-module/image-editor/react/components/cropper.mjs.map +2 -2
  91. package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs.map +1 -1
  92. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs +1 -0
  93. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs.map +2 -2
  94. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +65 -19
  95. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +2 -2
  96. package/build-module/image-editor/react/hooks/build-cropper-setters.mjs.map +1 -1
  97. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs +1 -1
  98. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs.map +2 -2
  99. package/build-module/image-editor/react/hooks/use-interaction.mjs.map +1 -1
  100. package/build-module/image-editor/react/hooks/use-viewport-state.mjs.map +1 -1
  101. package/build-module/index.mjs.map +1 -1
  102. package/build-module/state/types.mjs.map +1 -1
  103. package/build-module/state/use-media-editor-state.mjs +1 -1
  104. package/build-module/state/use-media-editor-state.mjs.map +2 -2
  105. package/build-style/style-rtl.css +179 -47
  106. package/build-style/style.css +179 -46
  107. package/build-types/components/media-editor/index.d.ts +6 -7
  108. package/build-types/components/media-editor/index.d.ts.map +1 -1
  109. package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
  110. package/build-types/components/media-editor-crop-panel/index.d.ts +11 -6
  111. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
  112. package/build-types/components/media-editor-fine-rotation/index.d.ts +4 -3
  113. package/build-types/components/media-editor-fine-rotation/index.d.ts.map +1 -1
  114. package/build-types/components/media-editor-image-controls/index.d.ts +46 -0
  115. package/build-types/components/media-editor-image-controls/index.d.ts.map +1 -0
  116. package/build-types/components/media-form/index.d.ts.map +1 -1
  117. package/build-types/image-editor/core/camera.d.ts +25 -1
  118. package/build-types/image-editor/core/camera.d.ts.map +1 -1
  119. package/build-types/image-editor/core/constants.d.ts +30 -1
  120. package/build-types/image-editor/core/constants.d.ts.map +1 -1
  121. package/build-types/image-editor/core/interaction-controller.d.ts.map +1 -1
  122. package/build-types/image-editor/core/source-region.d.ts +23 -1
  123. package/build-types/image-editor/core/source-region.d.ts.map +1 -1
  124. package/build-types/image-editor/core/stencil-math.d.ts +22 -4
  125. package/build-types/image-editor/core/stencil-math.d.ts.map +1 -1
  126. package/build-types/image-editor/core/types.d.ts +14 -0
  127. package/build-types/image-editor/core/types.d.ts.map +1 -1
  128. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
  129. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +1 -1
  130. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +17 -14
  131. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -1
  132. package/package.json +30 -20
  133. package/src/components/media-editor/index.tsx +69 -77
  134. package/src/components/media-editor/style.scss +136 -4
  135. package/src/components/media-editor-canvas/index.tsx +82 -13
  136. package/src/components/media-editor-canvas/style.scss +41 -0
  137. package/src/components/media-editor-crop-panel/index.tsx +16 -62
  138. package/src/components/media-editor-crop-panel/test/index.tsx +25 -41
  139. package/src/components/media-editor-fine-rotation/index.tsx +4 -3
  140. package/src/components/media-editor-image-controls/index.tsx +262 -0
  141. package/src/components/media-editor-image-controls/style.scss +48 -0
  142. package/src/components/media-editor-image-controls/test/index.tsx +150 -0
  143. package/src/components/media-editor-modal/style.scss +32 -42
  144. package/src/components/media-form/index.tsx +17 -21
  145. package/src/components/media-form/style.scss +6 -0
  146. package/src/components/rotation-ruler/style.scss +10 -3
  147. package/src/image-editor/core/camera.ts +60 -1
  148. package/src/image-editor/core/constants.ts +34 -1
  149. package/src/image-editor/core/interaction-controller.ts +25 -11
  150. package/src/image-editor/core/source-region.ts +202 -1
  151. package/src/image-editor/core/stencil-math.ts +42 -10
  152. package/src/image-editor/core/test/camera.ts +272 -1
  153. package/src/image-editor/core/test/interaction-controller.ts +100 -0
  154. package/src/image-editor/core/test/stencil-math.ts +153 -0
  155. package/src/image-editor/core/types.ts +17 -0
  156. package/src/image-editor/react/components/cropper.scss +28 -17
  157. package/src/image-editor/react/components/cropper.tsx +362 -62
  158. package/src/image-editor/react/components/overlays/dimming-overlay.tsx +1 -0
  159. package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +101 -32
  160. package/src/image-editor/react/components/stencils/test/rectangle-stencil.tsx +169 -17
  161. package/src/image-editor/react/components/test/cropper.tsx +689 -6
  162. package/src/style.scss +2 -1
  163. package/tsconfig.tsbuildinfo +1 -1
  164. package/build/components/media-editor-transform-controls/index.cjs +0 -84
  165. package/build/components/media-editor-transform-controls/index.cjs.map +0 -7
  166. package/build/components/media-form/sidebar-datetime-view.cjs +0 -53
  167. package/build/components/media-form/sidebar-datetime-view.cjs.map +0 -7
  168. package/build-module/components/media-editor-transform-controls/index.mjs +0 -68
  169. package/build-module/components/media-editor-transform-controls/index.mjs.map +0 -7
  170. package/build-module/components/media-form/sidebar-datetime-view.mjs +0 -32
  171. package/build-module/components/media-form/sidebar-datetime-view.mjs.map +0 -7
  172. package/build-types/components/media-editor-transform-controls/index.d.ts +0 -8
  173. package/build-types/components/media-editor-transform-controls/index.d.ts.map +0 -1
  174. package/build-types/components/media-form/sidebar-datetime-view.d.ts +0 -10
  175. package/build-types/components/media-form/sidebar-datetime-view.d.ts.map +0 -1
  176. package/src/components/media-editor-transform-controls/index.tsx +0 -70
  177. package/src/components/media-editor-transform-controls/style.scss +0 -8
  178. package/src/components/media-form/sidebar-datetime-view.tsx +0 -47
  179. 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.
@@ -378,26 +386,51 @@
378
386
  flex: 1;
379
387
  flex-direction: column;
380
388
  }
389
+ .media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton {
390
+ top: auto;
391
+ }
381
392
  .media-editor .interface-interface-skeleton__editor {
382
393
  min-width: 0;
383
394
  flex: 1;
384
395
  }
385
- .media-editor .media-editor__canvas {
396
+ .media-editor .media-editor__content {
397
+ display: flex;
398
+ flex: 1;
399
+ flex-direction: column;
400
+ min-height: 0;
401
+ margin: 0 24px;
402
+ border-radius: 8px;
403
+ overflow: hidden;
404
+ }
405
+ .media-editor .media-editor__canvas-toolbar {
406
+ display: flex;
407
+ flex-shrink: 0;
408
+ justify-content: center;
409
+ background: #e0e0e0;
410
+ padding: 8px 16px;
411
+ }
412
+ .media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation {
413
+ flex: 0 1 360px;
414
+ min-width: 0;
415
+ }
416
+ .media-editor .media-editor__canvas-area {
386
417
  display: flex;
387
418
  align-items: center;
388
419
  justify-content: center;
389
- background: #f0f0f0;
420
+ background: #e0e0e0;
390
421
  overflow: auto;
391
- height: 100%;
422
+ flex: 1;
423
+ min-height: 0;
392
424
  }
393
- .media-editor .media-editor__canvas .media-editor-preview {
425
+ .media-editor .media-editor__canvas-area .media-editor-preview {
394
426
  height: 100%;
395
427
  }
396
- .media-editor .media-editor__canvas img,
397
- .media-editor .media-editor__canvas video {
428
+ .media-editor .media-editor__canvas-area img,
429
+ .media-editor .media-editor__canvas-area video {
398
430
  max-width: 100%;
399
431
  max-height: 100%;
400
- object-fit: contain;
432
+ -o-object-fit: contain;
433
+ object-fit: contain;
401
434
  }
402
435
  .media-editor .media-editor__sidebar {
403
436
  box-sizing: border-box;
@@ -407,21 +440,64 @@
407
440
  .media-editor .media-editor__sidebar *::after {
408
441
  box-sizing: inherit;
409
442
  }
443
+ @media (min-width: 600px) {
444
+ .media-editor .media-editor__sidebar {
445
+ padding-right: 1px;
446
+ }
447
+ }
448
+ .media-editor .media-editor__sidebar-panel {
449
+ padding-bottom: 24px;
450
+ }
451
+ .media-editor .interface-interface-skeleton__sidebar {
452
+ border-top: 0;
453
+ box-shadow: none;
454
+ outline: 1px solid transparent;
455
+ }
410
456
  .media-editor .media-editor__panel {
411
457
  padding: 16px;
412
458
  }
459
+ @media (min-width: 600px) {
460
+ .media-editor .media-editor__panel {
461
+ padding: 16px 0 0 24px;
462
+ }
463
+ }
413
464
  .media-editor .components-panel__header.media-editor__sidebar-header {
414
465
  padding-right: 0;
415
466
  padding-left: 8px;
467
+ margin-left: 24px;
468
+ margin-left: 0;
469
+ }
470
+ @media (min-width: 600px) {
471
+ .media-editor .components-panel__header.media-editor__sidebar-header {
472
+ margin-left: 24px;
473
+ }
416
474
  }
417
475
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
418
476
  padding: 0;
419
477
  }
420
- @media (min-width: 782px) {
478
+ @media (min-width: 600px) {
421
479
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
422
480
  display: flex;
423
481
  }
424
482
  }
483
+ @media (min-width: 600px) and (max-width: 781px) {
484
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
485
+ position: relative !important;
486
+ }
487
+ .media-editor .interface-complementary-area__fill,
488
+ .media-editor .interface-complementary-area {
489
+ width: 280px !important;
490
+ }
491
+ }
492
+ @media (max-width: 599px) {
493
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
494
+ width: 100%;
495
+ }
496
+ .media-editor .interface-complementary-area__fill,
497
+ .media-editor .interface-complementary-area {
498
+ width: 100% !important;
499
+ }
500
+ }
425
501
 
426
502
  .media-editor__snackbar {
427
503
  position: fixed;
@@ -438,6 +514,10 @@
438
514
  margin-inline: auto;
439
515
  }
440
516
 
517
+ .media-editor-form .dataforms-layouts-panel__field-control {
518
+ text-wrap: pretty;
519
+ }
520
+
441
521
  .media-editor-modal.components-modal__frame .components-modal__content {
442
522
  padding: 0;
443
523
  margin-bottom: 0;
@@ -457,38 +537,21 @@
457
537
  flex-shrink: 0;
458
538
  display: flex;
459
539
  gap: 16px;
460
- padding: 8px 24px;
461
- border-top: 1px solid #ddd;
540
+ padding: 16px 32px 24px;
462
541
  background: #fff;
542
+ z-index: 1000001;
463
543
  }
464
544
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide {
465
545
  flex-direction: row;
466
546
  align-items: center;
467
547
  }
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-right: 1px solid #ddd;
483
- padding-right: 12px;
484
- }
485
548
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions {
486
549
  margin-right: auto;
487
550
  }
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 {
551
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
489
552
  flex-direction: column;
490
553
  }
491
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-transform-controls {
554
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-image-controls {
492
555
  align-self: center;
493
556
  }
494
557
 
@@ -498,11 +561,15 @@
498
561
  align-items: center;
499
562
  gap: 16px;
500
563
  }
501
- .media-editor-modal__footer-row .media-editor-transform-controls,
564
+ .media-editor-modal__footer-row .media-editor-image-controls,
502
565
  .media-editor-modal__footer-row .media-editor__footer-actions {
503
566
  margin-right: auto;
504
567
  }
505
568
 
569
+ .media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) {
570
+ color: var(--wp-admin-theme-color);
571
+ }
572
+
506
573
  .media-editor-modal {
507
574
  display: flex;
508
575
  flex-direction: column;
@@ -531,13 +598,77 @@
531
598
  width: 100%;
532
599
  height: 100%;
533
600
  }
601
+ .media-editor-canvas__cropper {
602
+ width: 100%;
603
+ height: 100%;
604
+ opacity: 0;
605
+ pointer-events: none;
606
+ }
607
+ .media-editor-canvas__cropper.is-loaded {
608
+ opacity: 1;
609
+ pointer-events: auto;
610
+ }
611
+ @keyframes __wp-base-styles-fade-in {
612
+ from {
613
+ opacity: 0;
614
+ }
615
+ to {
616
+ opacity: 1;
617
+ }
618
+ }
619
+ @media not (prefers-reduced-motion) {
620
+ .media-editor-canvas__cropper.is-loaded {
621
+ animation: __wp-base-styles-fade-in 0.2s linear 0s;
622
+ animation-fill-mode: forwards;
623
+ }
624
+ }
625
+ .media-editor-canvas__spinner {
626
+ position: absolute;
627
+ top: 50%;
628
+ right: 50%;
629
+ transform: translate(50%, -50%);
630
+ }
631
+ .media-editor-canvas__error {
632
+ display: flex;
633
+ align-items: center;
634
+ justify-content: center;
635
+ width: 100%;
636
+ height: 100%;
637
+ color: #757575;
638
+ text-align: center;
639
+ }
534
640
 
535
- .media-editor-transform-controls {
641
+ .media-editor-image-controls {
536
642
  display: flex;
537
643
  flex-wrap: nowrap;
538
644
  align-items: center;
539
645
  gap: 8px;
540
646
  }
647
+ .media-editor-image-controls.is-stacked {
648
+ flex-direction: column;
649
+ align-items: flex-start;
650
+ gap: 24px;
651
+ }
652
+ .media-editor-image-controls__transforms {
653
+ display: flex;
654
+ gap: 48px;
655
+ }
656
+ .media-editor-image-controls__group {
657
+ display: flex;
658
+ flex-direction: column;
659
+ gap: 4px;
660
+ }
661
+ .media-editor-image-controls__label {
662
+ font-size: 11px;
663
+ font-weight: 500;
664
+ line-height: 1.4;
665
+ text-transform: uppercase;
666
+ }
667
+ .media-editor-image-controls__buttons {
668
+ display: flex;
669
+ gap: 8px;
670
+ padding-inline: 2px 0;
671
+ }
541
672
 
542
673
  .media-editor-keyboard-shortcuts-modal {
543
674
  min-width: 280px;
@@ -591,6 +722,7 @@
591
722
  color: #1e1e1e;
592
723
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
593
724
  -webkit-user-select: none;
725
+ -moz-user-select: none;
594
726
  user-select: none;
595
727
  touch-action: none;
596
728
  cursor: ew-resize;
@@ -641,7 +773,7 @@
641
773
 
642
774
  .rotation-ruler__ticks {
643
775
  position: absolute;
644
- right: 50%;
776
+ left: 50%;
645
777
  top: 0;
646
778
  display: block;
647
779
  overflow: visible;
@@ -688,7 +820,7 @@
688
820
  width: 60px;
689
821
  height: 100%;
690
822
  transform: translateX(50%);
691
- background: linear-gradient(to left, transparent 0, #fff 12px, #fff calc(100% - 12px), transparent 100%);
823
+ background: linear-gradient(to left, transparent 0, #e0e0e0 12px, #e0e0e0 calc(100% - 12px), transparent 100%);
692
824
  }
693
825
 
694
826
  .rotation-ruler__active-label-number {