@wordpress/media-editor 0.8.1-next.v.202605131032.0 → 0.10.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 (292) hide show
  1. package/build/components/media-editor/index.cjs +34 -135
  2. package/build/components/media-editor/index.cjs.map +3 -3
  3. package/build/components/media-editor/use-crop-options.cjs +87 -0
  4. package/build/components/media-editor/use-crop-options.cjs.map +7 -0
  5. package/build/components/media-editor/use-save-media-editor.cjs +185 -0
  6. package/build/components/media-editor/use-save-media-editor.cjs.map +7 -0
  7. package/build/components/media-editor-canvas/index.cjs +32 -11
  8. package/build/components/media-editor-canvas/index.cjs.map +2 -2
  9. package/build/components/media-editor-crop-panel/index.cjs +66 -83
  10. package/build/components/media-editor-crop-panel/index.cjs.map +2 -2
  11. package/build/components/media-editor-modal/index.cjs +40 -11
  12. package/build/components/media-editor-modal/index.cjs.map +3 -3
  13. package/build/components/media-editor-toolbar/index.cjs +7 -3
  14. package/build/components/media-editor-toolbar/index.cjs.map +2 -2
  15. package/build/components/media-form/index.cjs +19 -1
  16. package/build/components/media-form/index.cjs.map +3 -3
  17. package/build/components/media-form/sidebar-datetime-view.cjs +53 -0
  18. package/build/components/media-form/sidebar-datetime-view.cjs.map +7 -0
  19. package/build/components/rotation-ruler/index.cjs +8 -2
  20. package/build/components/rotation-ruler/index.cjs.map +2 -2
  21. package/build/hooks/use-crop-gesture-handlers.cjs +41 -4
  22. package/build/hooks/use-crop-gesture-handlers.cjs.map +2 -2
  23. package/build/image-editor/core/camera.cjs +29 -11
  24. package/build/image-editor/core/camera.cjs.map +2 -2
  25. package/build/image-editor/core/constants.cjs +6 -0
  26. package/build/image-editor/core/constants.cjs.map +2 -2
  27. package/build/image-editor/core/containment.cjs +71 -34
  28. package/build/image-editor/core/containment.cjs.map +2 -2
  29. package/build/image-editor/core/crop-rect.cjs +48 -0
  30. package/build/image-editor/core/crop-rect.cjs.map +7 -0
  31. package/build/image-editor/core/index.cjs +12 -0
  32. package/build/image-editor/core/index.cjs.map +2 -2
  33. package/build/image-editor/core/interaction-controller.cjs.map +2 -2
  34. package/build/image-editor/core/math/sanitize.cjs +92 -0
  35. package/build/image-editor/core/math/sanitize.cjs.map +7 -0
  36. package/build/image-editor/core/setter-helpers.cjs +64 -0
  37. package/build/image-editor/core/setter-helpers.cjs.map +7 -0
  38. package/build/image-editor/core/source-region.cjs +16 -14
  39. package/build/image-editor/core/source-region.cjs.map +2 -2
  40. package/build/image-editor/core/state.cjs +20 -10
  41. package/build/image-editor/core/state.cjs.map +2 -2
  42. package/build/image-editor/core/stencil-math.cjs +31 -20
  43. package/build/image-editor/core/stencil-math.cjs.map +2 -2
  44. package/build/image-editor/core/transform-style.cjs +12 -6
  45. package/build/image-editor/core/transform-style.cjs.map +2 -2
  46. package/build/image-editor/core/types.cjs.map +1 -1
  47. package/build/image-editor/index.cjs +12 -2
  48. package/build/image-editor/index.cjs.map +2 -2
  49. package/build/image-editor/react/components/cropper-provider.cjs +2 -2
  50. package/build/image-editor/react/components/cropper-provider.cjs.map +2 -2
  51. package/build/image-editor/react/components/cropper.cjs +121 -48
  52. package/build/image-editor/react/components/cropper.cjs.map +2 -2
  53. package/build/image-editor/react/components/overlays/dimensions-overlay.cjs +172 -0
  54. package/build/image-editor/react/components/overlays/dimensions-overlay.cjs.map +7 -0
  55. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +20 -10
  56. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +2 -2
  57. package/build/image-editor/react/hooks/build-cropper-setters.cjs +71 -0
  58. package/build/image-editor/react/hooks/build-cropper-setters.cjs.map +7 -0
  59. package/build/image-editor/react/hooks/index.cjs +6 -3
  60. package/build/image-editor/react/hooks/index.cjs.map +2 -2
  61. package/build/image-editor/react/hooks/use-aria-announcer.cjs +3 -1
  62. package/build/image-editor/react/hooks/use-aria-announcer.cjs.map +2 -2
  63. package/build/image-editor/react/hooks/use-cropper-reducer.cjs +113 -0
  64. package/build/image-editor/react/hooks/use-cropper-reducer.cjs.map +7 -0
  65. package/build/image-editor/react/hooks/use-interaction.cjs +1 -1
  66. package/build/image-editor/react/hooks/use-interaction.cjs.map +2 -2
  67. package/build/state/composite-reducer.cjs +115 -0
  68. package/build/state/composite-reducer.cjs.map +7 -0
  69. package/build/state/index.cjs +48 -0
  70. package/build/state/index.cjs.map +7 -0
  71. package/build/state/media-editor-state-provider.cjs +58 -0
  72. package/build/state/media-editor-state-provider.cjs.map +7 -0
  73. package/build/state/types.cjs +34 -0
  74. package/build/state/types.cjs.map +7 -0
  75. package/build/state/use-media-editor-state.cjs +298 -0
  76. package/build/state/use-media-editor-state.cjs.map +7 -0
  77. package/build-module/components/media-editor/index.mjs +40 -140
  78. package/build-module/components/media-editor/index.mjs.map +2 -2
  79. package/build-module/components/media-editor/use-crop-options.mjs +61 -0
  80. package/build-module/components/media-editor/use-crop-options.mjs.map +7 -0
  81. package/build-module/components/media-editor/use-save-media-editor.mjs +151 -0
  82. package/build-module/components/media-editor/use-save-media-editor.mjs.map +7 -0
  83. package/build-module/components/media-editor-canvas/index.mjs +33 -12
  84. package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
  85. package/build-module/components/media-editor-crop-panel/index.mjs +68 -83
  86. package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
  87. package/build-module/components/media-editor-modal/index.mjs +40 -11
  88. package/build-module/components/media-editor-modal/index.mjs.map +2 -2
  89. package/build-module/components/media-editor-toolbar/index.mjs +7 -3
  90. package/build-module/components/media-editor-toolbar/index.mjs.map +2 -2
  91. package/build-module/components/media-form/index.mjs +9 -1
  92. package/build-module/components/media-form/index.mjs.map +2 -2
  93. package/build-module/components/media-form/sidebar-datetime-view.mjs +32 -0
  94. package/build-module/components/media-form/sidebar-datetime-view.mjs.map +7 -0
  95. package/build-module/components/rotation-ruler/index.mjs +8 -2
  96. package/build-module/components/rotation-ruler/index.mjs.map +2 -2
  97. package/build-module/hooks/use-crop-gesture-handlers.mjs +41 -4
  98. package/build-module/hooks/use-crop-gesture-handlers.mjs.map +2 -2
  99. package/build-module/image-editor/core/camera.mjs +34 -11
  100. package/build-module/image-editor/core/camera.mjs.map +2 -2
  101. package/build-module/image-editor/core/constants.mjs +4 -0
  102. package/build-module/image-editor/core/constants.mjs.map +2 -2
  103. package/build-module/image-editor/core/containment.mjs +75 -34
  104. package/build-module/image-editor/core/containment.mjs.map +2 -2
  105. package/build-module/image-editor/core/crop-rect.mjs +23 -0
  106. package/build-module/image-editor/core/crop-rect.mjs.map +7 -0
  107. package/build-module/image-editor/core/index.mjs +12 -0
  108. package/build-module/image-editor/core/index.mjs.map +2 -2
  109. package/build-module/image-editor/core/interaction-controller.mjs.map +2 -2
  110. package/build-module/image-editor/core/math/sanitize.mjs +63 -0
  111. package/build-module/image-editor/core/math/sanitize.mjs.map +7 -0
  112. package/build-module/image-editor/core/setter-helpers.mjs +39 -0
  113. package/build-module/image-editor/core/setter-helpers.mjs.map +7 -0
  114. package/build-module/image-editor/core/source-region.mjs +16 -14
  115. package/build-module/image-editor/core/source-region.mjs.map +2 -2
  116. package/build-module/image-editor/core/state.mjs +25 -11
  117. package/build-module/image-editor/core/state.mjs.map +2 -2
  118. package/build-module/image-editor/core/stencil-math.mjs +30 -19
  119. package/build-module/image-editor/core/stencil-math.mjs.map +2 -2
  120. package/build-module/image-editor/core/transform-style.mjs +12 -6
  121. package/build-module/image-editor/core/transform-style.mjs.map +2 -2
  122. package/build-module/image-editor/index.mjs +11 -2
  123. package/build-module/image-editor/index.mjs.map +2 -2
  124. package/build-module/image-editor/react/components/cropper-provider.mjs +3 -3
  125. package/build-module/image-editor/react/components/cropper-provider.mjs.map +2 -2
  126. package/build-module/image-editor/react/components/cropper.mjs +122 -49
  127. package/build-module/image-editor/react/components/cropper.mjs.map +2 -2
  128. package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs +147 -0
  129. package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs.map +7 -0
  130. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +20 -10
  131. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +2 -2
  132. package/build-module/image-editor/react/hooks/build-cropper-setters.mjs +46 -0
  133. package/build-module/image-editor/react/hooks/build-cropper-setters.mjs.map +7 -0
  134. package/build-module/image-editor/react/hooks/index.mjs +4 -2
  135. package/build-module/image-editor/react/hooks/index.mjs.map +2 -2
  136. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs +3 -1
  137. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs.map +2 -2
  138. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs +100 -0
  139. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs.map +7 -0
  140. package/build-module/image-editor/react/hooks/use-interaction.mjs +1 -1
  141. package/build-module/image-editor/react/hooks/use-interaction.mjs.map +2 -2
  142. package/build-module/state/composite-reducer.mjs +94 -0
  143. package/build-module/state/composite-reducer.mjs.map +7 -0
  144. package/build-module/state/index.mjs +26 -0
  145. package/build-module/state/index.mjs.map +7 -0
  146. package/build-module/state/media-editor-state-provider.mjs +34 -0
  147. package/build-module/state/media-editor-state-provider.mjs.map +7 -0
  148. package/build-module/state/types.mjs +9 -0
  149. package/build-module/state/types.mjs.map +7 -0
  150. package/build-module/state/use-media-editor-state.mjs +289 -0
  151. package/build-module/state/use-media-editor-state.mjs.map +7 -0
  152. package/build-style/style-rtl.css +46 -9
  153. package/build-style/style.css +46 -9
  154. package/build-types/components/media-editor/index.d.ts +4 -7
  155. package/build-types/components/media-editor/index.d.ts.map +1 -1
  156. package/build-types/components/media-editor/use-crop-options.d.ts +37 -0
  157. package/build-types/components/media-editor/use-crop-options.d.ts.map +1 -0
  158. package/build-types/components/media-editor/use-save-media-editor.d.ts +29 -0
  159. package/build-types/components/media-editor/use-save-media-editor.d.ts.map +1 -0
  160. package/build-types/components/media-editor-canvas/index.d.ts +5 -10
  161. package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
  162. package/build-types/components/media-editor-crop-panel/index.d.ts +4 -16
  163. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
  164. package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
  165. package/build-types/components/media-editor-toolbar/index.d.ts.map +1 -1
  166. package/build-types/components/media-form/index.d.ts.map +1 -1
  167. package/build-types/components/media-form/sidebar-datetime-view.d.ts +10 -0
  168. package/build-types/components/media-form/sidebar-datetime-view.d.ts.map +1 -0
  169. package/build-types/components/rotation-ruler/index.d.ts.map +1 -1
  170. package/build-types/hooks/use-crop-gesture-handlers.d.ts +13 -14
  171. package/build-types/hooks/use-crop-gesture-handlers.d.ts.map +1 -1
  172. package/build-types/image-editor/core/camera.d.ts.map +1 -1
  173. package/build-types/image-editor/core/constants.d.ts +18 -0
  174. package/build-types/image-editor/core/constants.d.ts.map +1 -1
  175. package/build-types/image-editor/core/containment.d.ts +10 -0
  176. package/build-types/image-editor/core/containment.d.ts.map +1 -1
  177. package/build-types/image-editor/core/crop-rect.d.ts +19 -0
  178. package/build-types/image-editor/core/crop-rect.d.ts.map +1 -0
  179. package/build-types/image-editor/core/index.d.ts +3 -1
  180. package/build-types/image-editor/core/index.d.ts.map +1 -1
  181. package/build-types/image-editor/core/interaction-controller.d.ts +5 -1
  182. package/build-types/image-editor/core/interaction-controller.d.ts.map +1 -1
  183. package/build-types/image-editor/core/math/sanitize.d.ts +70 -0
  184. package/build-types/image-editor/core/math/sanitize.d.ts.map +1 -0
  185. package/build-types/image-editor/core/setter-helpers.d.ts +24 -0
  186. package/build-types/image-editor/core/setter-helpers.d.ts.map +1 -0
  187. package/build-types/image-editor/core/source-region.d.ts.map +1 -1
  188. package/build-types/image-editor/core/state.d.ts +12 -0
  189. package/build-types/image-editor/core/state.d.ts.map +1 -1
  190. package/build-types/image-editor/core/stencil-math.d.ts +23 -18
  191. package/build-types/image-editor/core/stencil-math.d.ts.map +1 -1
  192. package/build-types/image-editor/core/transform-style.d.ts.map +1 -1
  193. package/build-types/image-editor/core/types.d.ts +23 -4
  194. package/build-types/image-editor/core/types.d.ts.map +1 -1
  195. package/build-types/image-editor/index.d.ts +4 -4
  196. package/build-types/image-editor/index.d.ts.map +1 -1
  197. package/build-types/image-editor/react/components/cropper-provider.d.ts +11 -7
  198. package/build-types/image-editor/react/components/cropper-provider.d.ts.map +1 -1
  199. package/build-types/image-editor/react/components/cropper.d.ts +6 -4
  200. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
  201. package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts +36 -0
  202. package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts.map +1 -0
  203. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +2 -1
  204. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -1
  205. package/build-types/image-editor/react/hooks/build-cropper-setters.d.ts +47 -0
  206. package/build-types/image-editor/react/hooks/build-cropper-setters.d.ts.map +1 -0
  207. package/build-types/image-editor/react/hooks/index.d.ts +4 -2
  208. package/build-types/image-editor/react/hooks/index.d.ts.map +1 -1
  209. package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts.map +1 -1
  210. package/build-types/image-editor/react/hooks/use-cropper-reducer.d.ts +58 -0
  211. package/build-types/image-editor/react/hooks/use-cropper-reducer.d.ts.map +1 -0
  212. package/build-types/image-editor/react/hooks/use-interaction.d.ts.map +1 -1
  213. package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +1 -1
  214. package/build-types/state/composite-reducer.d.ts +39 -0
  215. package/build-types/state/composite-reducer.d.ts.map +1 -0
  216. package/build-types/state/index.d.ts +7 -0
  217. package/build-types/state/index.d.ts.map +1 -0
  218. package/build-types/state/media-editor-state-provider.d.ts +34 -0
  219. package/build-types/state/media-editor-state-provider.d.ts.map +1 -0
  220. package/build-types/state/types.d.ts +104 -0
  221. package/build-types/state/types.d.ts.map +1 -0
  222. package/build-types/state/use-media-editor-state.d.ts +104 -0
  223. package/build-types/state/use-media-editor-state.d.ts.map +1 -0
  224. package/package.json +19 -17
  225. package/src/components/media-editor/index.tsx +52 -188
  226. package/src/components/media-editor/test/use-crop-options.tsx +164 -0
  227. package/src/components/media-editor/use-crop-options.ts +115 -0
  228. package/src/components/media-editor/use-save-media-editor.ts +214 -0
  229. package/src/components/media-editor-canvas/index.tsx +56 -24
  230. package/src/components/media-editor-crop-panel/index.tsx +25 -61
  231. package/src/components/media-editor-crop-panel/test/index.tsx +17 -43
  232. package/src/components/media-editor-modal/index.tsx +50 -12
  233. package/src/components/media-editor-modal/test/build-modifiers.test.ts +14 -0
  234. package/src/components/media-editor-modal/test/index.tsx +143 -0
  235. package/src/components/media-editor-toolbar/index.tsx +9 -5
  236. package/src/components/media-form/index.tsx +15 -1
  237. package/src/components/media-form/sidebar-datetime-view.tsx +47 -0
  238. package/src/components/media-form/test/sidebar-datetime-view.test.tsx +96 -0
  239. package/src/components/rotation-ruler/README.md +11 -25
  240. package/src/components/rotation-ruler/index.tsx +17 -2
  241. package/src/components/rotation-ruler/style.scss +49 -13
  242. package/src/hooks/use-crop-gesture-handlers.ts +66 -17
  243. package/src/image-editor/README.md +28 -129
  244. package/src/image-editor/core/camera.ts +51 -26
  245. package/src/image-editor/core/constants.ts +19 -0
  246. package/src/image-editor/core/containment.ts +102 -49
  247. package/src/image-editor/core/crop-rect.ts +45 -0
  248. package/src/image-editor/core/index.ts +16 -4
  249. package/src/image-editor/core/interaction-controller.ts +5 -1
  250. package/src/image-editor/core/math/sanitize.ts +158 -0
  251. package/src/image-editor/core/math/test/sanitize.ts +244 -0
  252. package/src/image-editor/core/setter-helpers.ts +66 -0
  253. package/src/image-editor/core/source-region.ts +21 -14
  254. package/src/image-editor/core/state.ts +67 -15
  255. package/src/image-editor/core/stencil-math.ts +55 -35
  256. package/src/image-editor/core/test/camera.ts +367 -1
  257. package/src/image-editor/core/test/state.ts +101 -8
  258. package/src/image-editor/core/test/stencil-math.ts +193 -0
  259. package/src/image-editor/core/transform-style.ts +21 -6
  260. package/src/image-editor/core/types.ts +24 -4
  261. package/src/image-editor/docs/architecture.md +48 -89
  262. package/src/image-editor/docs/recipes.md +123 -659
  263. package/src/image-editor/index.ts +12 -3
  264. package/src/image-editor/react/components/cropper-provider.tsx +16 -12
  265. package/src/image-editor/react/components/cropper.scss +23 -4
  266. package/src/image-editor/react/components/cropper.tsx +197 -90
  267. package/src/image-editor/react/components/overlays/dimensions-overlay.tsx +269 -0
  268. package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +22 -9
  269. package/src/image-editor/react/components/test/cropper.tsx +55 -13
  270. package/src/image-editor/react/hooks/build-cropper-setters.ts +105 -0
  271. package/src/image-editor/react/hooks/index.ts +4 -2
  272. package/src/image-editor/react/hooks/test/{use-cropper-state.ts → use-cropper-reducer.ts} +142 -286
  273. package/src/image-editor/react/hooks/use-aria-announcer.ts +3 -1
  274. package/src/image-editor/react/hooks/use-cropper-reducer.ts +204 -0
  275. package/src/image-editor/react/hooks/use-interaction.ts +3 -2
  276. package/src/image-editor/stories/rectangle-crop.story.tsx +7 -17
  277. package/src/state/composite-reducer.ts +152 -0
  278. package/src/state/index.ts +20 -0
  279. package/src/state/media-editor-state-provider.tsx +70 -0
  280. package/src/state/test/use-media-editor-state.ts +402 -0
  281. package/src/state/types.ts +107 -0
  282. package/src/state/use-media-editor-state.ts +488 -0
  283. package/tsconfig.json +2 -0
  284. package/tsconfig.tsbuildinfo +1 -1
  285. package/build/image-editor/react/hooks/use-cropper-state.cjs +0 -277
  286. package/build/image-editor/react/hooks/use-cropper-state.cjs.map +0 -7
  287. package/build-module/image-editor/react/hooks/use-cropper-state.mjs +0 -262
  288. package/build-module/image-editor/react/hooks/use-cropper-state.mjs.map +0 -7
  289. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts +0 -97
  290. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts.map +0 -1
  291. package/src/image-editor/docs/roadmap.md +0 -66
  292. package/src/image-editor/react/hooks/use-cropper-state.ts +0 -457
@@ -1 +1 @@
1
- {"version":3,"file":"use-interaction.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/hooks/use-interaction.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAEN,KAAK,yBAAyB,EAC9B,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,8DAA8D;IAC9D,QAAQ,EAAE;QACT,aAAa,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,YAAY,KAAM,IAAI,CAAC;QACjD,YAAY,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,UAAU,KAAM,IAAI,CAAC;QAC9C,SAAS,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,aAAa,KAAM,IAAI,CAAC;KAC9C,CAAC;IACF,yEAAyE;IACzE,aAAa,EAAE,CAAE,CAAC,EAAE,UAAU,KAAM,IAAI,CAAC;IACzC,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AA6BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,yBAAyB,EAClC,aAAa,EAAE,IAAI,EACnB,SAAS,CAAC,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,qBAAqB,GAC7B,oBAAoB,CAmJtB"}
1
+ {"version":3,"file":"use-interaction.d.ts","sourceRoot":"","sources":["../../../../src/image-editor/react/hooks/use-interaction.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAEN,KAAK,yBAAyB,EAC9B,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,8DAA8D;IAC9D,QAAQ,EAAE;QACT,aAAa,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,YAAY,KAAM,IAAI,CAAC;QACjD,YAAY,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,UAAU,KAAM,IAAI,CAAC;QAC9C,SAAS,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,aAAa,KAAM,IAAI,CAAC;KAC9C,CAAC;IACF,yEAAyE;IACzE,aAAa,EAAE,CAAE,CAAC,EAAE,UAAU,KAAM,IAAI,CAAC;IACzC,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AA6BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,yBAAyB,EAClC,aAAa,EAAE,IAAI,EACnB,SAAS,CAAC,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,qBAAqB,GAC7B,oBAAoB,CAoJtB"}
@@ -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;AAwBtD,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;AAkXF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAmiBF,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;AA6WF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AA+hBF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import { type CropperState } from '../image-editor';
5
+ import { type CropOptionsSlice, type MediaEditorAction, type MediaEditorState } from './types';
6
+ /**
7
+ * Pure composite reducer for the media editor.
8
+ *
9
+ * Delegates `CROPPER`-tagged actions to the framework-agnostic
10
+ * `cropperReducer` and owns first-class transitions for the sidebar
11
+ * `cropOptions` slice. `RESTORE_SNAPSHOT` replaces the whole composite
12
+ * in one transaction (used by undo/redo).
13
+ *
14
+ * Note: this reducer carries NO history of its own. Snapshots and
15
+ * stacks live in the `useMediaEditorState` hook that wraps it.
16
+ *
17
+ * @param state Current composite state.
18
+ * @param action Action to apply.
19
+ * @return Next composite state.
20
+ */
21
+ export declare function mediaEditorReducer(state: MediaEditorState, action: MediaEditorAction): MediaEditorState;
22
+ /**
23
+ * Value-equality check for two composite states. Used by the history
24
+ * machinery to dedup snapshots when an action turned out to be a no-op.
25
+ *
26
+ * @param a First composite state.
27
+ * @param b Second composite state.
28
+ * @return Whether `a` and `b` are value-equal across all slices.
29
+ */
30
+ export declare function areMediaEditorStatesEqual(a: MediaEditorState, b: MediaEditorState): boolean;
31
+ /**
32
+ * Build the initial composite state from optional partial overrides.
33
+ *
34
+ * @param initialCropper Initial cropper-slice fields to merge.
35
+ * @param initialOptions Initial cropOptions-slice fields to merge.
36
+ * @return Composite initial state.
37
+ */
38
+ export declare function buildInitialMediaEditorState(initialCropper: CropperState, initialOptions?: Partial<CropOptionsSlice>): MediaEditorState;
39
+ //# sourceMappingURL=composite-reducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-reducer.d.ts","sourceRoot":"","sources":["../../src/state/composite-reducer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAIN,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,iBAAiB,GACvB,gBAAgB,CA8ElB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACxC,CAAC,EAAE,gBAAgB,EACnB,CAAC,EAAE,gBAAgB,GACjB,OAAO,CAST;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,cAAc,EAAE,YAAY,EAC5B,cAAc,CAAC,EAAE,OAAO,CAAE,gBAAgB,CAAE,GAC1C,gBAAgB,CAKlB"}
@@ -0,0 +1,7 @@
1
+ export { useMediaEditorState, resolveAspectRatio, } from './use-media-editor-state';
2
+ export type { MediaEditorController } from './use-media-editor-state';
3
+ export { MediaEditorStateProvider, useMediaEditor, } from './media-editor-state-provider';
4
+ export { mediaEditorReducer, areMediaEditorStatesEqual, buildInitialMediaEditorState, } from './composite-reducer';
5
+ export { DEFAULT_CROP_OPTIONS } from './types';
6
+ export type { CropOptionsSlice, MediaEditorState, MediaEditorAction, } from './types';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,cAAc,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { CropperState } from '../image-editor';
5
+ import { type MediaEditorController } from './use-media-editor-state';
6
+ import type { CropOptionsSlice } from './types';
7
+ interface MediaEditorStateProviderProps {
8
+ /** Optional cropper-slice initial state. */
9
+ initialCropperState?: Partial<CropperState>;
10
+ /** Optional cropOptions-slice initial state. */
11
+ initialCropOptions?: Partial<CropOptionsSlice>;
12
+ /** Child components. */
13
+ children: React.ReactNode;
14
+ }
15
+ /**
16
+ * Provider that vends the composite media-editor controller via
17
+ * context. Wrap the media editor in this so every consumer
18
+ * (canvas, toolbar, sidebar) reads from the same store.
19
+ *
20
+ * @param props
21
+ * @param props.initialCropperState
22
+ * @param props.initialCropOptions
23
+ * @param props.children
24
+ */
25
+ export declare function MediaEditorStateProvider({ initialCropperState, initialCropOptions, children }: MediaEditorStateProviderProps): import("react").JSX.Element;
26
+ /**
27
+ * Consume the composite media-editor controller. Throws if used
28
+ * outside a `<MediaEditorStateProvider>`.
29
+ *
30
+ * @return The composite controller.
31
+ */
32
+ export declare function useMediaEditor(): MediaEditorController;
33
+ export {};
34
+ //# sourceMappingURL=media-editor-state-provider.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { CropperAction, CropperState, NormalizedRect, Size } from '../image-editor';
5
+ /**
6
+ * Sidebar control state for the cropper — preset selection and
7
+ * resize-handle visibility. Lives in the composite store so it
8
+ * participates in the same undo history as cropper geometry.
9
+ */
10
+ export interface CropOptionsSlice {
11
+ /**
12
+ * Selected aspect-ratio preset as a string (round-trippable through
13
+ * `<SelectControl>`). `'0'` = Free, `'-1'` = Original, any positive
14
+ * decimal = fixed ratio.
15
+ */
16
+ aspectRatioValue: string;
17
+ /** Whether the cropper exposes resize handles. */
18
+ freeformCrop: boolean;
19
+ }
20
+ /**
21
+ * Default values for the crop-options slice. Mirrors the initial state
22
+ * used by the sidebar before the user has touched anything.
23
+ */
24
+ export declare const DEFAULT_CROP_OPTIONS: CropOptionsSlice;
25
+ /**
26
+ * The full composite state for the media editor — cropper geometry
27
+ * plus the sidebar control slice. Future feature slices (text
28
+ * overlays, filters, …) extend this object.
29
+ *
30
+ * Every undo/redo snapshot is a full `MediaEditorState`. Slices stay
31
+ * referentially equal across actions that don't touch them.
32
+ */
33
+ export interface MediaEditorState {
34
+ cropper: CropperState;
35
+ cropOptions: CropOptionsSlice;
36
+ }
37
+ /**
38
+ * Composite reducer action union.
39
+ *
40
+ * Cropper geometry actions are wrapped in a `CROPPER` envelope and
41
+ * delegated to the pure `cropperReducer`. Sidebar and history
42
+ * concerns are first-class actions on this reducer.
43
+ */
44
+ export type MediaEditorAction =
45
+ /**
46
+ * Delegate to the underlying cropper reducer. Used for every
47
+ * geometry transition (pan / zoom / rotation / flip / cropRect /
48
+ * settle / etc.).
49
+ */
50
+ {
51
+ type: 'CROPPER';
52
+ action: CropperAction;
53
+ }
54
+ /**
55
+ * Set the aspect-ratio preset. Atomically updates the preset key
56
+ * and the cropRect (computed from the resolved ratio and the
57
+ * current visualSize). One transaction = one undo entry.
58
+ */
59
+ | {
60
+ type: 'SET_ASPECT_RATIO_VALUE';
61
+ payload: {
62
+ /** Preset key as it appears in the dropdown. */
63
+ presetKey: string;
64
+ /**
65
+ * Resolved width/height ratio. `undefined` = Free
66
+ * (no lock; cropRect stays where it is).
67
+ */
68
+ resolved: number | undefined;
69
+ /**
70
+ * Rendered image size used to compute the inscribed
71
+ * rect. Caller supplies it because the reducer is
72
+ * framework-agnostic and has no DOM access.
73
+ */
74
+ visualSize: Size;
75
+ };
76
+ }
77
+ /** Toggle the resize-handle (freeform) mode. */
78
+ | {
79
+ type: 'SET_FREEFORM_CROP';
80
+ payload: boolean;
81
+ }
82
+ /** Reset both cropOptions fields to defaults. */
83
+ | {
84
+ type: 'RESET_CROP_OPTIONS';
85
+ }
86
+ /**
87
+ * Replace the entire composite state with `payload`. Used by
88
+ * undo/redo to restore a full snapshot atomically.
89
+ */
90
+ | {
91
+ type: 'RESTORE_SNAPSHOT';
92
+ payload: MediaEditorState;
93
+ }
94
+ /**
95
+ * Adjust the cropper's cropRect in response to a viewport change
96
+ * (e.g., window resize). Behaviorally identical to a `CROPPER
97
+ * SET_CROP_RECT` dispatch, but tagged so the hook layer can skip
98
+ * history recording — viewport reshapes aren't editor actions.
99
+ */
100
+ | {
101
+ type: 'VIEWPORT_ADJUST_CROP_RECT';
102
+ payload: NormalizedRect;
103
+ };
104
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/state/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACX,aAAa,EACb,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,MAAM,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,YAAY,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAGlC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,gBAAgB,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB;AAC5B;;;;GAIG;AACD;IACA,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;CACrB;AACH;;;;GAIG;GACD;IACA,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE;QACR,gDAAgD;QAChD,SAAS,EAAE,MAAM,CAAC;QAClB;;;WAGG;QACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;QAC7B;;;;WAIG;QACH,UAAU,EAAE,IAAI,CAAC;KACjB,CAAC;CACD;AACH,gDAAgD;GAC9C;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE;AACjD,iDAAiD;GAC/C;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE;AAChC;;;GAGG;GACD;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE;AACzD;;;;;GAKG;GACD;IACA,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE,cAAc,CAAC;CACvB,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import { type CropperController, type CropperState, type NormalizedRect, type Size } from '../image-editor';
5
+ import type { CropOptionsSlice } from './types';
6
+ /**
7
+ * Resolve an aspect-ratio preset value (the string the dropdown
8
+ * round-trips) into a numeric width/height ratio for the cropper.
9
+ *
10
+ * - `'0'` → `undefined` (Free; no lock)
11
+ * - `'-1'` (Original) → image's natural width / height, or `undefined`
12
+ * if no image is loaded.
13
+ * - Any positive decimal → the parsed number.
14
+ *
15
+ * Centralizing here means the dropdown, the action dispatcher, and
16
+ * the test harness all resolve the same way.
17
+ *
18
+ * @param presetKey Preset value from the dropdown.
19
+ * @param cropperImage The cropper's loaded image, or `null`.
20
+ * @return The resolved ratio, or `undefined` for Free / unresolvable.
21
+ */
22
+ export declare function resolveAspectRatio(presetKey: string, cropperImage: CropperState['image'] | null): number | undefined;
23
+ /**
24
+ * The composite controller exposed by `useMediaEditorState`.
25
+ *
26
+ * Satisfies `CropperController` (so a `<Cropper>` can take this
27
+ * controller directly via the `controller` prop) and adds slice
28
+ * setters, undo/redo, gesture boundaries, and viewport reporting.
29
+ */
30
+ export interface MediaEditorController extends CropperController {
31
+ /** The cropOptions slice (preset key + freeform toggle). */
32
+ cropOptions: CropOptionsSlice;
33
+ /** Set the aspect-ratio preset. Atomic with the cropRect reshape. */
34
+ setAspectRatioValue: (presetKey: string) => void;
35
+ /** Toggle the resize-handle (freeform) mode. */
36
+ setFreeformCrop: (value: boolean) => void;
37
+ /** Reset cropOptions to defaults (Free + freeform on). */
38
+ resetCropOptions: () => void;
39
+ /**
40
+ * Whether the cropper geometry differs from the initial baseline.
41
+ * This excludes UI-only cropOptions such as the resize-handle toggle.
42
+ */
43
+ isCropperDirty: boolean;
44
+ /** Whether there's an undoable change in history. */
45
+ hasUndo: boolean;
46
+ /** Whether there's a redoable change in history. */
47
+ hasRedo: boolean;
48
+ /** Undo the last committed action across all slices. */
49
+ undo: () => void;
50
+ /** Redo the last undone action across all slices. */
51
+ redo: () => void;
52
+ /**
53
+ * Open a gesture boundary. During a gesture all state-changing
54
+ * actions coalesce into one undo entry — the snapshot taken at
55
+ * `beginGesture`. Pair with `endGesture` on pointer-up / key-up.
56
+ */
57
+ beginGesture: () => void;
58
+ /** Close a gesture boundary and commit the pre-gesture snapshot. */
59
+ endGesture: () => void;
60
+ /**
61
+ * Report the current rendered image size to the controller. The
62
+ * Cropper component calls this whenever its visualSize changes;
63
+ * the controller needs it to compute aspect-ratio reshapes.
64
+ */
65
+ setVisualSize: (size: Size) => void;
66
+ /**
67
+ * Reshape the cropRect in response to a viewport change. Behaves
68
+ * like `setCropRect` but does NOT record an undo entry — window
69
+ * resizes aren't editor actions.
70
+ */
71
+ adjustCropRectForViewport: (rect: NormalizedRect) => void;
72
+ }
73
+ interface InitialMediaEditorState {
74
+ cropper?: Partial<CropperState>;
75
+ cropOptions?: Partial<CropOptionsSlice>;
76
+ }
77
+ /**
78
+ * Composite store for the media editor.
79
+ *
80
+ * Owns the only undo/redo history for the editor. Cropper geometry
81
+ * actions and sidebar cropOptions actions flow through the same
82
+ * reducer and the same history stack.
83
+ *
84
+ * History semantics:
85
+ * - Each action's pre-state is pushed to the undo stack before the
86
+ * action commits, unless a gesture is open or the action is a
87
+ * no-op (post-state value-equal to pre-state).
88
+ * - During a gesture (`beginGesture` → `endGesture`) all mutations
89
+ * coalesce: only the pre-gesture snapshot is pushed, at gesture
90
+ * end. Any pending gesture is flushed on undo/redo.
91
+ * - Viewport-driven cropRect reshapes (window resize) use a
92
+ * dedicated non-recording dispatch path so they never produce
93
+ * undo entries.
94
+ *
95
+ * `isDirty` tracks the full editor session, including undoable UI
96
+ * state. Use `isCropperDirty` when deciding whether the image output
97
+ * needs saving.
98
+ *
99
+ * @param initialState Optional seed for the cropper and cropOptions slices.
100
+ * @return The composite controller.
101
+ */
102
+ export declare function useMediaEditorState(initialState?: InitialMediaEditorState): MediaEditorController;
103
+ export {};
104
+ //# sourceMappingURL=use-media-editor-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-media-editor-state.d.ts","sourceRoot":"","sources":["../../src/state/use-media-editor-state.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,EAQN,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EACX,gBAAgB,EAGhB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CACjC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,CAAE,OAAO,CAAE,GAAG,IAAI,GAC1C,MAAM,GAAG,SAAS,CAmBpB;AAaD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC/D,4DAA4D;IAC5D,WAAW,EAAE,gBAAgB,CAAC;IAC9B,qEAAqE;IACrE,mBAAmB,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IACnD,gDAAgD;IAChD,eAAe,EAAE,CAAE,KAAK,EAAE,OAAO,KAAM,IAAI,CAAC;IAC5C,0DAA0D;IAC1D,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,qDAAqD;IACrD,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB;;;;OAIG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oEAAoE;IACpE,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,CAAE,IAAI,EAAE,cAAc,KAAM,IAAI,CAAC;CAC5D;AAED,UAAU,uBAAuB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAE,YAAY,CAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAE,gBAAgB,CAAE,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,mBAAmB,CAClC,YAAY,CAAC,EAAE,uBAAuB,GACpC,qBAAqB,CA2TvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/media-editor",
3
- "version": "0.8.1-next.v.202605131032.0+f6d6e7149",
3
+ "version": "0.10.0",
4
4
  "description": "Media editor components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -44,28 +44,30 @@
44
44
  "build-module/store/index.mjs"
45
45
  ],
46
46
  "dependencies": {
47
- "@wordpress/api-fetch": "^7.45.1-next.v.202605131032.0+f6d6e7149",
48
- "@wordpress/base-styles": "^8.0.1-next.v.202605131032.0+f6d6e7149",
49
- "@wordpress/components": "^33.1.1-next.v.202605131032.0+f6d6e7149",
50
- "@wordpress/core-data": "^7.45.1-next.v.202605131032.0+f6d6e7149",
51
- "@wordpress/data": "^10.45.1-next.v.202605131032.0+f6d6e7149",
52
- "@wordpress/dataviews": "^14.2.1-next.v.202605131032.0+f6d6e7149",
53
- "@wordpress/element": "^6.45.1-next.v.202605131032.0+f6d6e7149",
54
- "@wordpress/i18n": "^6.18.1-next.v.202605131032.0+f6d6e7149",
55
- "@wordpress/icons": "^13.0.1-next.v.202605131032.0+f6d6e7149",
56
- "@wordpress/interface": "^9.30.1-next.v.202605131032.0+f6d6e7149",
57
- "@wordpress/keycodes": "^4.45.1-next.v.202605131032.0+f6d6e7149",
58
- "@wordpress/notices": "^5.45.1-next.v.202605131032.0+f6d6e7149",
59
- "@wordpress/private-apis": "^1.45.1-next.v.202605131032.0+f6d6e7149",
60
- "@wordpress/ui": "^0.13.1-next.v.202605131032.0+f6d6e7149",
47
+ "@wordpress/api-fetch": "^7.47.0",
48
+ "@wordpress/base-styles": "^9.0.0",
49
+ "@wordpress/components": "^34.0.0",
50
+ "@wordpress/core-data": "^7.47.0",
51
+ "@wordpress/data": "^10.47.0",
52
+ "@wordpress/dataviews": "^15.0.0",
53
+ "@wordpress/date": "^5.47.0",
54
+ "@wordpress/element": "^7.0.0",
55
+ "@wordpress/i18n": "^6.20.0",
56
+ "@wordpress/icons": "^13.2.0",
57
+ "@wordpress/interface": "^9.32.0",
58
+ "@wordpress/keyboard-shortcuts": "^5.47.0",
59
+ "@wordpress/keycodes": "^4.47.0",
60
+ "@wordpress/notices": "^5.47.0",
61
+ "@wordpress/private-apis": "^1.47.0",
62
+ "@wordpress/ui": "^0.14.0",
61
63
  "clsx": "^2.1.1",
62
64
  "gl-matrix": "^3.4.3"
63
65
  },
64
66
  "peerDependencies": {
65
- "react": "^18.0.0"
67
+ "react": "^19.2.4"
66
68
  },
67
69
  "publishConfig": {
68
70
  "access": "public"
69
71
  },
70
- "gitHead": "0e198c7ac7ca634e73ded9220ce048c0302174dd"
72
+ "gitHead": "d653c5fd6161571a0c2ebde28553d6e25624eacc"
71
73
  }