@wordpress/media-editor 0.7.0 → 0.8.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 (306) hide show
  1. package/build/components/media-editor-canvas/index.cjs +54 -0
  2. package/build/components/media-editor-canvas/index.cjs.map +7 -0
  3. package/build/components/media-editor-crop-panel/index.cjs +116 -0
  4. package/build/components/media-editor-crop-panel/index.cjs.map +7 -0
  5. package/build/components/media-editor-modal/build-modifiers.cjs +91 -0
  6. package/build/components/media-editor-modal/build-modifiers.cjs.map +7 -0
  7. package/build/components/media-editor-modal/index.cjs +497 -0
  8. package/build/components/media-editor-modal/index.cjs.map +7 -0
  9. package/build/components/media-editor-toolbar/index.cjs +146 -0
  10. package/build/components/media-editor-toolbar/index.cjs.map +7 -0
  11. package/build/components/media-preview/index.cjs +1 -1
  12. package/build/components/media-preview/index.cjs.map +2 -2
  13. package/build/image-editor/core/camera.cjs +194 -0
  14. package/build/image-editor/core/camera.cjs.map +7 -0
  15. package/build/image-editor/core/constants.cjs +81 -0
  16. package/build/image-editor/core/constants.cjs.map +7 -0
  17. package/build/image-editor/core/containment.cjs +245 -0
  18. package/build/image-editor/core/containment.cjs.map +7 -0
  19. package/build/image-editor/core/export/canvas-renderer.cjs +151 -0
  20. package/build/image-editor/core/export/canvas-renderer.cjs.map +7 -0
  21. package/build/image-editor/core/index.cjs +50 -0
  22. package/build/image-editor/core/index.cjs.map +7 -0
  23. package/build/image-editor/core/interaction-controller.cjs +608 -0
  24. package/build/image-editor/core/interaction-controller.cjs.map +7 -0
  25. package/build/image-editor/core/math/rotation.cjs +41 -0
  26. package/build/image-editor/core/math/rotation.cjs.map +7 -0
  27. package/build/image-editor/core/source-region.cjs +95 -0
  28. package/build/image-editor/core/source-region.cjs.map +7 -0
  29. package/build/image-editor/core/state.cjs +269 -0
  30. package/build/image-editor/core/state.cjs.map +7 -0
  31. package/build/image-editor/core/stencil-math.cjs +197 -0
  32. package/build/image-editor/core/stencil-math.cjs.map +7 -0
  33. package/build/image-editor/core/transform-style.cjs +46 -0
  34. package/build/image-editor/core/transform-style.cjs.map +7 -0
  35. package/build/image-editor/core/transforms/pipeline.cjs +43 -0
  36. package/build/image-editor/core/transforms/pipeline.cjs.map +7 -0
  37. package/build/image-editor/core/types.cjs +19 -0
  38. package/build/image-editor/core/types.cjs.map +7 -0
  39. package/build/image-editor/index.cjs +57 -0
  40. package/build/image-editor/index.cjs.map +7 -0
  41. package/build/image-editor/react/components/cropper-provider.cjs +50 -0
  42. package/build/image-editor/react/components/cropper-provider.cjs.map +7 -0
  43. package/build/image-editor/react/components/cropper.cjs +365 -0
  44. package/build/image-editor/react/components/cropper.cjs.map +7 -0
  45. package/build/image-editor/react/components/index.cjs +36 -0
  46. package/build/image-editor/react/components/index.cjs.map +7 -0
  47. package/build/image-editor/react/components/overlays/dimming-overlay.cjs +58 -0
  48. package/build/image-editor/react/components/overlays/dimming-overlay.cjs.map +7 -0
  49. package/build/image-editor/react/components/overlays/grid-overlay.cjs +91 -0
  50. package/build/image-editor/react/components/overlays/grid-overlay.cjs.map +7 -0
  51. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +351 -0
  52. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +7 -0
  53. package/build/image-editor/react/hooks/index.cjs +31 -0
  54. package/build/image-editor/react/hooks/index.cjs.map +7 -0
  55. package/build/image-editor/react/hooks/use-aria-announcer.cjs +68 -0
  56. package/build/image-editor/react/hooks/use-aria-announcer.cjs.map +7 -0
  57. package/build/image-editor/react/hooks/use-cropper-state.cjs +158 -0
  58. package/build/image-editor/react/hooks/use-cropper-state.cjs.map +7 -0
  59. package/build/image-editor/react/hooks/use-interaction.cjs +161 -0
  60. package/build/image-editor/react/hooks/use-interaction.cjs.map +7 -0
  61. package/build/image-editor/react/hooks/use-transform-style.cjs +38 -0
  62. package/build/image-editor/react/hooks/use-transform-style.cjs.map +7 -0
  63. package/build/index.cjs +5 -2
  64. package/build/index.cjs.map +2 -2
  65. package/build/lock-unlock.cjs +37 -0
  66. package/build/lock-unlock.cjs.map +7 -0
  67. package/build/private-apis.cjs +38 -0
  68. package/build/private-apis.cjs.map +7 -0
  69. package/build/store/actions.cjs +45 -0
  70. package/build/store/actions.cjs.map +7 -0
  71. package/build/store/constants.cjs +31 -0
  72. package/build/store/constants.cjs.map +7 -0
  73. package/build/store/index.cjs +51 -0
  74. package/build/store/index.cjs.map +7 -0
  75. package/build/store/reducer.cjs +51 -0
  76. package/build/store/reducer.cjs.map +7 -0
  77. package/build/store/selectors.cjs +43 -0
  78. package/build/store/selectors.cjs.map +7 -0
  79. package/build-module/components/media-editor-canvas/index.mjs +33 -0
  80. package/build-module/components/media-editor-canvas/index.mjs.map +7 -0
  81. package/build-module/components/media-editor-crop-panel/index.mjs +100 -0
  82. package/build-module/components/media-editor-crop-panel/index.mjs.map +7 -0
  83. package/build-module/components/media-editor-modal/build-modifiers.mjs +66 -0
  84. package/build-module/components/media-editor-modal/build-modifiers.mjs.map +7 -0
  85. package/build-module/components/media-editor-modal/index.mjs +483 -0
  86. package/build-module/components/media-editor-modal/index.mjs.map +7 -0
  87. package/build-module/components/media-editor-toolbar/index.mjs +130 -0
  88. package/build-module/components/media-editor-toolbar/index.mjs.map +7 -0
  89. package/build-module/components/media-preview/index.mjs +1 -1
  90. package/build-module/components/media-preview/index.mjs.map +2 -2
  91. package/build-module/image-editor/core/camera.mjs +163 -0
  92. package/build-module/image-editor/core/camera.mjs.map +7 -0
  93. package/build-module/image-editor/core/constants.mjs +51 -0
  94. package/build-module/image-editor/core/constants.mjs.map +7 -0
  95. package/build-module/image-editor/core/containment.mjs +218 -0
  96. package/build-module/image-editor/core/containment.mjs.map +7 -0
  97. package/build-module/image-editor/core/export/canvas-renderer.mjs +120 -0
  98. package/build-module/image-editor/core/export/canvas-renderer.mjs.map +7 -0
  99. package/build-module/image-editor/core/index.mjs +24 -0
  100. package/build-module/image-editor/core/index.mjs.map +7 -0
  101. package/build-module/image-editor/core/interaction-controller.mjs +583 -0
  102. package/build-module/image-editor/core/interaction-controller.mjs.map +7 -0
  103. package/build-module/image-editor/core/math/rotation.mjs +15 -0
  104. package/build-module/image-editor/core/math/rotation.mjs.map +7 -0
  105. package/build-module/image-editor/core/source-region.mjs +69 -0
  106. package/build-module/image-editor/core/source-region.mjs.map +7 -0
  107. package/build-module/image-editor/core/state.mjs +242 -0
  108. package/build-module/image-editor/core/state.mjs.map +7 -0
  109. package/build-module/image-editor/core/stencil-math.mjs +169 -0
  110. package/build-module/image-editor/core/stencil-math.mjs.map +7 -0
  111. package/build-module/image-editor/core/transform-style.mjs +21 -0
  112. package/build-module/image-editor/core/transform-style.mjs.map +7 -0
  113. package/build-module/image-editor/core/transforms/pipeline.mjs +17 -0
  114. package/build-module/image-editor/core/transforms/pipeline.mjs.map +7 -0
  115. package/build-module/image-editor/core/types.mjs +1 -0
  116. package/build-module/image-editor/core/types.mjs.map +7 -0
  117. package/build-module/image-editor/index.mjs +30 -0
  118. package/build-module/image-editor/index.mjs.map +7 -0
  119. package/build-module/image-editor/react/components/cropper-provider.mjs +26 -0
  120. package/build-module/image-editor/react/components/cropper-provider.mjs.map +7 -0
  121. package/build-module/image-editor/react/components/cropper.mjs +337 -0
  122. package/build-module/image-editor/react/components/cropper.mjs.map +7 -0
  123. package/build-module/image-editor/react/components/index.mjs +9 -0
  124. package/build-module/image-editor/react/components/index.mjs.map +7 -0
  125. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs +33 -0
  126. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs.map +7 -0
  127. package/build-module/image-editor/react/components/overlays/grid-overlay.mjs +66 -0
  128. package/build-module/image-editor/react/components/overlays/grid-overlay.mjs.map +7 -0
  129. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +330 -0
  130. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +7 -0
  131. package/build-module/image-editor/react/hooks/index.mjs +6 -0
  132. package/build-module/image-editor/react/hooks/index.mjs.map +7 -0
  133. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs +43 -0
  134. package/build-module/image-editor/react/hooks/use-aria-announcer.mjs.map +7 -0
  135. package/build-module/image-editor/react/hooks/use-cropper-state.mjs +137 -0
  136. package/build-module/image-editor/react/hooks/use-cropper-state.mjs.map +7 -0
  137. package/build-module/image-editor/react/hooks/use-interaction.mjs +138 -0
  138. package/build-module/image-editor/react/hooks/use-interaction.mjs.map +7 -0
  139. package/build-module/image-editor/react/hooks/use-transform-style.mjs +13 -0
  140. package/build-module/image-editor/react/hooks/use-transform-style.mjs.map +7 -0
  141. package/build-module/index.mjs +3 -1
  142. package/build-module/index.mjs.map +2 -2
  143. package/build-module/lock-unlock.mjs +11 -0
  144. package/build-module/lock-unlock.mjs.map +7 -0
  145. package/build-module/private-apis.mjs +13 -0
  146. package/build-module/private-apis.mjs.map +7 -0
  147. package/build-module/store/actions.mjs +19 -0
  148. package/build-module/store/actions.mjs.map +7 -0
  149. package/build-module/store/constants.mjs +6 -0
  150. package/build-module/store/constants.mjs.map +7 -0
  151. package/build-module/store/index.mjs +16 -0
  152. package/build-module/store/index.mjs.map +7 -0
  153. package/build-module/store/reducer.mjs +26 -0
  154. package/build-module/store/reducer.mjs.map +7 -0
  155. package/build-module/store/selectors.mjs +16 -0
  156. package/build-module/store/selectors.mjs.map +7 -0
  157. package/build-style/style-rtl.css +315 -0
  158. package/build-style/style.css +315 -0
  159. package/build-types/components/media-editor-canvas/index.d.ts +22 -0
  160. package/build-types/components/media-editor-canvas/index.d.ts.map +1 -0
  161. package/build-types/components/media-editor-crop-panel/index.d.ts +45 -0
  162. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -0
  163. package/build-types/components/media-editor-modal/build-modifiers.d.ts +83 -0
  164. package/build-types/components/media-editor-modal/build-modifiers.d.ts.map +1 -0
  165. package/build-types/components/media-editor-modal/index.d.ts +20 -0
  166. package/build-types/components/media-editor-modal/index.d.ts.map +1 -0
  167. package/build-types/components/media-editor-toolbar/index.d.ts +21 -0
  168. package/build-types/components/media-editor-toolbar/index.d.ts.map +1 -0
  169. package/build-types/components/media-preview/index.d.ts.map +1 -1
  170. package/build-types/image-editor/core/camera.d.ts +107 -0
  171. package/build-types/image-editor/core/camera.d.ts.map +1 -0
  172. package/build-types/image-editor/core/constants.d.ts +46 -0
  173. package/build-types/image-editor/core/constants.d.ts.map +1 -0
  174. package/build-types/image-editor/core/containment.d.ts +61 -0
  175. package/build-types/image-editor/core/containment.d.ts.map +1 -0
  176. package/build-types/image-editor/core/export/canvas-renderer.d.ts +106 -0
  177. package/build-types/image-editor/core/export/canvas-renderer.d.ts.map +1 -0
  178. package/build-types/image-editor/core/index.d.ts +8 -0
  179. package/build-types/image-editor/core/index.d.ts.map +1 -0
  180. package/build-types/image-editor/core/interaction-controller.d.ts +178 -0
  181. package/build-types/image-editor/core/interaction-controller.d.ts.map +1 -0
  182. package/build-types/image-editor/core/math/rotation.d.ts +18 -0
  183. package/build-types/image-editor/core/math/rotation.d.ts.map +1 -0
  184. package/build-types/image-editor/core/source-region.d.ts +75 -0
  185. package/build-types/image-editor/core/source-region.d.ts.map +1 -0
  186. package/build-types/image-editor/core/state.d.ts +42 -0
  187. package/build-types/image-editor/core/state.d.ts.map +1 -0
  188. package/build-types/image-editor/core/stencil-math.d.ts +79 -0
  189. package/build-types/image-editor/core/stencil-math.d.ts.map +1 -0
  190. package/build-types/image-editor/core/transform-style.d.ts +23 -0
  191. package/build-types/image-editor/core/transform-style.d.ts.map +1 -0
  192. package/build-types/image-editor/core/transforms/pipeline.d.ts +27 -0
  193. package/build-types/image-editor/core/transforms/pipeline.d.ts.map +1 -0
  194. package/build-types/image-editor/core/types.d.ts +211 -0
  195. package/build-types/image-editor/core/types.d.ts.map +1 -0
  196. package/build-types/image-editor/index.d.ts +16 -0
  197. package/build-types/image-editor/index.d.ts.map +1 -0
  198. package/build-types/image-editor/react/components/cropper-provider.d.ts +37 -0
  199. package/build-types/image-editor/react/components/cropper-provider.d.ts.map +1 -0
  200. package/build-types/image-editor/react/components/cropper.d.ts +59 -0
  201. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -0
  202. package/build-types/image-editor/react/components/index.d.ts +4 -0
  203. package/build-types/image-editor/react/components/index.d.ts.map +1 -0
  204. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts +30 -0
  205. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +1 -0
  206. package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts +30 -0
  207. package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts.map +1 -0
  208. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +32 -0
  209. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -0
  210. package/build-types/image-editor/react/hooks/index.d.ts +3 -0
  211. package/build-types/image-editor/react/hooks/index.d.ts.map +1 -0
  212. package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts +16 -0
  213. package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts.map +1 -0
  214. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts +68 -0
  215. package/build-types/image-editor/react/hooks/use-cropper-state.d.ts.map +1 -0
  216. package/build-types/image-editor/react/hooks/use-interaction.d.ts +60 -0
  217. package/build-types/image-editor/react/hooks/use-interaction.d.ts.map +1 -0
  218. package/build-types/image-editor/react/hooks/use-transform-style.d.ts +16 -0
  219. package/build-types/image-editor/react/hooks/use-transform-style.d.ts.map +1 -0
  220. package/build-types/image-editor/stories/rectangle-crop.story.d.ts +16 -0
  221. package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +1 -0
  222. package/build-types/index.d.ts +1 -0
  223. package/build-types/index.d.ts.map +1 -1
  224. package/build-types/lock-unlock.d.ts +2 -0
  225. package/build-types/lock-unlock.d.ts.map +1 -0
  226. package/build-types/private-apis.d.ts +2 -0
  227. package/build-types/private-apis.d.ts.map +1 -0
  228. package/build-types/store/actions.d.ts +27 -0
  229. package/build-types/store/actions.d.ts.map +1 -0
  230. package/build-types/store/constants.d.ts +2 -0
  231. package/build-types/store/constants.d.ts.map +1 -0
  232. package/build-types/store/index.d.ts +4 -0
  233. package/build-types/store/index.d.ts.map +1 -0
  234. package/build-types/store/reducer.d.ts +23 -0
  235. package/build-types/store/reducer.d.ts.map +1 -0
  236. package/build-types/store/selectors.d.ts +8 -0
  237. package/build-types/store/selectors.d.ts.map +1 -0
  238. package/package.json +21 -8
  239. package/src/components/media-editor-canvas/index.tsx +56 -0
  240. package/src/components/media-editor-canvas/style.scss +9 -0
  241. package/src/components/media-editor-crop-panel/index.tsx +143 -0
  242. package/src/components/media-editor-modal/build-modifiers.ts +164 -0
  243. package/src/components/media-editor-modal/index.tsx +639 -0
  244. package/src/components/media-editor-modal/style.scss +139 -0
  245. package/src/components/media-editor-modal/test/build-modifiers.test.ts +343 -0
  246. package/src/components/media-editor-toolbar/index.tsx +150 -0
  247. package/src/components/media-editor-toolbar/style.scss +21 -0
  248. package/src/components/media-preview/index.tsx +2 -1
  249. package/src/image-editor/README.md +162 -0
  250. package/src/image-editor/core/camera.ts +352 -0
  251. package/src/image-editor/core/constants.ts +93 -0
  252. package/src/image-editor/core/containment.ts +435 -0
  253. package/src/image-editor/core/export/canvas-renderer.ts +253 -0
  254. package/src/image-editor/core/export/test/canvas-renderer.ts +813 -0
  255. package/src/image-editor/core/index.ts +35 -0
  256. package/src/image-editor/core/interaction-controller.ts +889 -0
  257. package/src/image-editor/core/math/rotation.ts +26 -0
  258. package/src/image-editor/core/source-region.ts +166 -0
  259. package/src/image-editor/core/state.ts +428 -0
  260. package/src/image-editor/core/stencil-math.ts +330 -0
  261. package/src/image-editor/core/test/camera.ts +593 -0
  262. package/src/image-editor/core/test/interaction-controller.ts +996 -0
  263. package/src/image-editor/core/test/preview-export-parity.ts +242 -0
  264. package/src/image-editor/core/test/render-camera-bridge.ts +348 -0
  265. package/src/image-editor/core/test/state.ts +762 -0
  266. package/src/image-editor/core/test/stencil-math.ts +321 -0
  267. package/src/image-editor/core/transform-style.ts +44 -0
  268. package/src/image-editor/core/transforms/pipeline.ts +43 -0
  269. package/src/image-editor/core/transforms/test/pipeline.ts +269 -0
  270. package/src/image-editor/core/types.ts +177 -0
  271. package/src/image-editor/docs/architecture.md +96 -0
  272. package/src/image-editor/docs/recipes.md +720 -0
  273. package/src/image-editor/docs/roadmap.md +66 -0
  274. package/src/image-editor/index.ts +43 -0
  275. package/src/image-editor/react/components/cropper-provider.tsx +73 -0
  276. package/src/image-editor/react/components/cropper.scss +195 -0
  277. package/src/image-editor/react/components/cropper.tsx +534 -0
  278. package/src/image-editor/react/components/index.ts +3 -0
  279. package/src/image-editor/react/components/overlays/dimming-overlay.tsx +57 -0
  280. package/src/image-editor/react/components/overlays/grid-overlay.tsx +80 -0
  281. package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +513 -0
  282. package/src/image-editor/react/components/stencils/test/rectangle-stencil.tsx +265 -0
  283. package/src/image-editor/react/components/test/cropper.tsx +140 -0
  284. package/src/image-editor/react/hooks/index.ts +2 -0
  285. package/src/image-editor/react/hooks/test/use-cropper-state.ts +913 -0
  286. package/src/image-editor/react/hooks/test/use-interaction.ts +218 -0
  287. package/src/image-editor/react/hooks/test/use-transform-style.ts +146 -0
  288. package/src/image-editor/react/hooks/use-aria-announcer.ts +64 -0
  289. package/src/image-editor/react/hooks/use-cropper-state.ts +238 -0
  290. package/src/image-editor/react/hooks/use-interaction.ts +223 -0
  291. package/src/image-editor/react/hooks/use-transform-style.ts +30 -0
  292. package/src/image-editor/stories/rectangle-crop.story.tsx +1085 -0
  293. package/src/image-editor/stories/style.css +94 -0
  294. package/src/image-editor/style.scss +1 -0
  295. package/src/index.ts +3 -0
  296. package/src/lock-unlock.ts +10 -0
  297. package/src/private-apis.ts +12 -0
  298. package/src/store/actions.ts +33 -0
  299. package/src/store/constants.ts +1 -0
  300. package/src/store/index.ts +20 -0
  301. package/src/store/reducer.ts +48 -0
  302. package/src/store/selectors.ts +16 -0
  303. package/src/store/test/reducer.ts +57 -0
  304. package/src/style.scss +4 -0
  305. package/tsconfig.json +10 -2
  306. package/tsconfig.tsbuildinfo +1 -1
@@ -124,4 +124,319 @@
124
124
  color: #949494;
125
125
  word-break: break-all;
126
126
  margin-top: 8px;
127
+ }
128
+
129
+ .wp-media-editor-image-editor {
130
+ position: relative;
131
+ overflow: hidden;
132
+ width: 100%;
133
+ height: 100%;
134
+ touch-action: none;
135
+ -webkit-user-select: none;
136
+ user-select: none;
137
+ cursor: grab;
138
+ }
139
+ .wp-media-editor-image-editor__canvas {
140
+ position: absolute;
141
+ inset: 22px;
142
+ }
143
+ .wp-media-editor-image-editor--dragging {
144
+ cursor: grabbing;
145
+ }
146
+ .wp-media-editor-image-editor__image {
147
+ position: absolute;
148
+ top: 0;
149
+ right: 0;
150
+ will-change: transform;
151
+ transform-origin: center center;
152
+ }
153
+ .wp-media-editor-image-editor__stencil {
154
+ position: absolute;
155
+ pointer-events: none;
156
+ }
157
+ .wp-media-editor-image-editor__dimming {
158
+ position: absolute;
159
+ pointer-events: none;
160
+ /* Large shadow spread dims everything outside the crop area.
161
+ Darker at rest for clear crop framing, lighter during drag
162
+ so the user can see where they're panning. */
163
+ box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
164
+ transition: box-shadow 0.15s ease;
165
+ }
166
+ .wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming {
167
+ box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
168
+ }
169
+ .wp-media-editor-image-editor__grid {
170
+ position: absolute;
171
+ pointer-events: none;
172
+ overflow: hidden;
173
+ transition: opacity 0.15s ease;
174
+ }
175
+ .wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid {
176
+ opacity: 0;
177
+ transition-delay: 0.1s;
178
+ }
179
+ .wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid {
180
+ opacity: 1;
181
+ transition-delay: 0s;
182
+ }
183
+ .wp-media-editor-image-editor__grid-line {
184
+ position: absolute;
185
+ background: rgba(255, 255, 255, 0.4);
186
+ }
187
+ .wp-media-editor-image-editor__grid-line--horizontal {
188
+ right: 0;
189
+ width: 100%;
190
+ height: 1px;
191
+ }
192
+ .wp-media-editor-image-editor__grid-line--vertical {
193
+ top: 0;
194
+ height: 100%;
195
+ width: 1px;
196
+ }
197
+ .wp-media-editor-image-editor__stencil-rect {
198
+ position: absolute;
199
+ border: 1px solid rgba(255, 255, 255, 0.7);
200
+ box-sizing: border-box;
201
+ pointer-events: none;
202
+ }
203
+ .wp-media-editor-image-editor__handle {
204
+ appearance: none;
205
+ margin: 0;
206
+ padding: 0;
207
+ font: inherit;
208
+ cursor: default;
209
+ position: absolute;
210
+ width: 12px;
211
+ height: 12px;
212
+ background: rgba(255, 255, 255, 0.6);
213
+ border: 1px solid rgba(255, 255, 255, 0.9);
214
+ border-radius: 50%;
215
+ box-sizing: border-box;
216
+ pointer-events: auto;
217
+ transition: background-color 0.15s ease, box-shadow 0.15s ease;
218
+ }
219
+ .wp-media-editor-image-editor__handle:focus {
220
+ outline: none;
221
+ }
222
+ .wp-media-editor-image-editor__handle:focus-visible {
223
+ background: var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
224
+ border-color: transparent;
225
+ box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
226
+ }
227
+ .wp-media-editor-image-editor__handle::before {
228
+ content: "";
229
+ position: absolute;
230
+ top: 50%;
231
+ right: 50%;
232
+ width: 44px;
233
+ height: 44px;
234
+ transform: translate(50%, -50%);
235
+ }
236
+ .wp-media-editor-image-editor__handle {
237
+ /* Offset by half the handle width (12px / 2 = 6px) to center on crop edge */
238
+ }
239
+ .wp-media-editor-image-editor__handle--n {
240
+ top: -6px;
241
+ right: 50%;
242
+ margin-right: -6px;
243
+ cursor: ns-resize;
244
+ }
245
+ .wp-media-editor-image-editor__handle--s {
246
+ bottom: -6px;
247
+ right: 50%;
248
+ margin-right: -6px;
249
+ cursor: ns-resize;
250
+ }
251
+ .wp-media-editor-image-editor__handle--e {
252
+ top: 50%;
253
+ left: -6px;
254
+ margin-top: -6px;
255
+ cursor: ew-resize;
256
+ }
257
+ .wp-media-editor-image-editor__handle--w {
258
+ top: 50%;
259
+ right: -6px;
260
+ margin-top: -6px;
261
+ cursor: ew-resize;
262
+ }
263
+ .wp-media-editor-image-editor__handle--nw {
264
+ top: -6px;
265
+ right: -6px;
266
+ cursor: nesw-resize;
267
+ }
268
+ .wp-media-editor-image-editor__handle--ne {
269
+ top: -6px;
270
+ left: -6px;
271
+ cursor: nwse-resize;
272
+ }
273
+ .wp-media-editor-image-editor__handle--sw {
274
+ bottom: -6px;
275
+ right: -6px;
276
+ cursor: nwse-resize;
277
+ }
278
+ .wp-media-editor-image-editor__handle--se {
279
+ bottom: -6px;
280
+ left: -6px;
281
+ cursor: nesw-resize;
282
+ }
283
+
284
+ /**
285
+ * Typography
286
+ */
287
+ /**
288
+ * Breakpoints & Media Queries
289
+ */
290
+ /**
291
+ * Converts a hex value into the rgb equivalent.
292
+ *
293
+ * @param {string} hex - the hexadecimal value to convert
294
+ * @return {string} comma separated rgb values
295
+ */
296
+ /**
297
+ * Long content fade mixin
298
+ *
299
+ * Creates a fading overlay to signify that the content is longer
300
+ * than the space allows.
301
+ */
302
+ /**
303
+ * Breakpoint mixins
304
+ */
305
+ /**
306
+ * Focus styles.
307
+ */
308
+ /**
309
+ * Applies editor left position to the selector passed as argument
310
+ */
311
+ /**
312
+ * Styles that are reused verbatim in a few places
313
+ */
314
+ /**
315
+ * Allows users to opt-out of animations via OS-level preferences.
316
+ */
317
+ /**
318
+ * Reset default styles for JavaScript UI based pages.
319
+ * This is a WP-admin agnostic reset
320
+ */
321
+ /**
322
+ * Reset the WP Admin page styles for Gutenberg-like pages.
323
+ */
324
+ /**
325
+ * Creates a checkerboard pattern background to indicate transparency.
326
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
327
+ */
328
+ .media-editor-modal.components-modal__frame .components-modal__content {
329
+ padding: 0;
330
+ margin-bottom: 0;
331
+ }
332
+
333
+ .media-editor-modal {
334
+ display: flex;
335
+ flex-direction: column;
336
+ }
337
+ .media-editor-modal .media-editor-modal__loading {
338
+ height: 100%;
339
+ display: flex;
340
+ align-items: center;
341
+ justify-content: center;
342
+ }
343
+ .media-editor-modal .interface-interface-skeleton {
344
+ position: relative;
345
+ top: auto;
346
+ left: auto;
347
+ bottom: auto;
348
+ right: auto;
349
+ height: 100%;
350
+ max-height: none;
351
+ flex: 1;
352
+ flex-direction: column;
353
+ }
354
+ .media-editor-modal .interface-interface-skeleton__editor {
355
+ min-width: 0;
356
+ flex: 1;
357
+ }
358
+ .media-editor-modal .interface-interface-skeleton__footer {
359
+ position: relative;
360
+ display: flex;
361
+ }
362
+ .media-editor-modal .interface-interface-skeleton.has-footer .interface-interface-skeleton__body {
363
+ padding-bottom: 0;
364
+ }
365
+ .media-editor-modal .media-editor-modal__canvas {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: center;
369
+ background: #f0f0f0;
370
+ overflow: auto;
371
+ height: 100%;
372
+ }
373
+ .media-editor-modal .media-editor-modal__canvas .media-editor-preview {
374
+ height: 100%;
375
+ }
376
+ .media-editor-modal .media-editor-modal__canvas img,
377
+ .media-editor-modal .media-editor-modal__canvas video {
378
+ max-width: 100%;
379
+ max-height: 100%;
380
+ object-fit: contain;
381
+ }
382
+ .media-editor-modal .media-editor-modal__sidebar {
383
+ box-sizing: border-box;
384
+ }
385
+ .media-editor-modal .media-editor-modal__sidebar *,
386
+ .media-editor-modal .media-editor-modal__sidebar *::before,
387
+ .media-editor-modal .media-editor-modal__sidebar *::after {
388
+ box-sizing: inherit;
389
+ }
390
+ .media-editor-modal .media-editor-modal__panel {
391
+ padding: 16px;
392
+ }
393
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header {
394
+ padding-right: 0;
395
+ padding-left: 8px;
396
+ }
397
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header .components-button.has-icon {
398
+ padding: 0;
399
+ }
400
+ @media (min-width: 782px) {
401
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header .components-button.has-icon {
402
+ display: flex;
403
+ }
404
+ }
405
+
406
+ .media-editor-modal__snackbar {
407
+ position: fixed;
408
+ bottom: 24px;
409
+ right: 0;
410
+ left: 0;
411
+ padding-inline: 16px;
412
+ box-sizing: border-box;
413
+ display: flex;
414
+ flex-direction: column;
415
+ pointer-events: none;
416
+ }
417
+ .media-editor-modal__snackbar .components-snackbar {
418
+ margin-inline: auto;
419
+ }
420
+ .media-editor-modal__snackbar {
421
+ z-index: 1000001;
422
+ }
423
+
424
+ .media-editor-canvas {
425
+ position: relative;
426
+ width: 100%;
427
+ height: 100%;
428
+ }
429
+
430
+ .media-editor-toolbar {
431
+ width: 100%;
432
+ padding: 8px 16px;
433
+ }
434
+ .media-editor-toolbar .media-editor-toolbar__rotation-slider {
435
+ flex: 1 1 auto;
436
+ max-width: 240px;
437
+ }
438
+ @media (max-width: 480px) {
439
+ .media-editor-toolbar .media-editor-toolbar__rotation-slider {
440
+ display: none;
441
+ }
127
442
  }
@@ -124,4 +124,319 @@
124
124
  color: #949494;
125
125
  word-break: break-all;
126
126
  margin-top: 8px;
127
+ }
128
+
129
+ .wp-media-editor-image-editor {
130
+ position: relative;
131
+ overflow: hidden;
132
+ width: 100%;
133
+ height: 100%;
134
+ touch-action: none;
135
+ -webkit-user-select: none;
136
+ user-select: none;
137
+ cursor: grab;
138
+ }
139
+ .wp-media-editor-image-editor__canvas {
140
+ position: absolute;
141
+ inset: 22px;
142
+ }
143
+ .wp-media-editor-image-editor--dragging {
144
+ cursor: grabbing;
145
+ }
146
+ .wp-media-editor-image-editor__image {
147
+ position: absolute;
148
+ top: 0;
149
+ left: 0;
150
+ will-change: transform;
151
+ transform-origin: center center;
152
+ }
153
+ .wp-media-editor-image-editor__stencil {
154
+ position: absolute;
155
+ pointer-events: none;
156
+ }
157
+ .wp-media-editor-image-editor__dimming {
158
+ position: absolute;
159
+ pointer-events: none;
160
+ /* Large shadow spread dims everything outside the crop area.
161
+ Darker at rest for clear crop framing, lighter during drag
162
+ so the user can see where they're panning. */
163
+ box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
164
+ transition: box-shadow 0.15s ease;
165
+ }
166
+ .wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming {
167
+ box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
168
+ }
169
+ .wp-media-editor-image-editor__grid {
170
+ position: absolute;
171
+ pointer-events: none;
172
+ overflow: hidden;
173
+ transition: opacity 0.15s ease;
174
+ }
175
+ .wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid {
176
+ opacity: 0;
177
+ transition-delay: 0.1s;
178
+ }
179
+ .wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid {
180
+ opacity: 1;
181
+ transition-delay: 0s;
182
+ }
183
+ .wp-media-editor-image-editor__grid-line {
184
+ position: absolute;
185
+ background: rgba(255, 255, 255, 0.4);
186
+ }
187
+ .wp-media-editor-image-editor__grid-line--horizontal {
188
+ left: 0;
189
+ width: 100%;
190
+ height: 1px;
191
+ }
192
+ .wp-media-editor-image-editor__grid-line--vertical {
193
+ top: 0;
194
+ height: 100%;
195
+ width: 1px;
196
+ }
197
+ .wp-media-editor-image-editor__stencil-rect {
198
+ position: absolute;
199
+ border: 1px solid rgba(255, 255, 255, 0.7);
200
+ box-sizing: border-box;
201
+ pointer-events: none;
202
+ }
203
+ .wp-media-editor-image-editor__handle {
204
+ appearance: none;
205
+ margin: 0;
206
+ padding: 0;
207
+ font: inherit;
208
+ cursor: default;
209
+ position: absolute;
210
+ width: 12px;
211
+ height: 12px;
212
+ background: rgba(255, 255, 255, 0.6);
213
+ border: 1px solid rgba(255, 255, 255, 0.9);
214
+ border-radius: 50%;
215
+ box-sizing: border-box;
216
+ pointer-events: auto;
217
+ transition: background-color 0.15s ease, box-shadow 0.15s ease;
218
+ }
219
+ .wp-media-editor-image-editor__handle:focus {
220
+ outline: none;
221
+ }
222
+ .wp-media-editor-image-editor__handle:focus-visible {
223
+ background: var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
224
+ border-color: transparent;
225
+ box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
226
+ }
227
+ .wp-media-editor-image-editor__handle::before {
228
+ content: "";
229
+ position: absolute;
230
+ top: 50%;
231
+ left: 50%;
232
+ width: 44px;
233
+ height: 44px;
234
+ transform: translate(-50%, -50%);
235
+ }
236
+ .wp-media-editor-image-editor__handle {
237
+ /* Offset by half the handle width (12px / 2 = 6px) to center on crop edge */
238
+ }
239
+ .wp-media-editor-image-editor__handle--n {
240
+ top: -6px;
241
+ left: 50%;
242
+ margin-left: -6px;
243
+ cursor: ns-resize;
244
+ }
245
+ .wp-media-editor-image-editor__handle--s {
246
+ bottom: -6px;
247
+ left: 50%;
248
+ margin-left: -6px;
249
+ cursor: ns-resize;
250
+ }
251
+ .wp-media-editor-image-editor__handle--e {
252
+ top: 50%;
253
+ right: -6px;
254
+ margin-top: -6px;
255
+ cursor: ew-resize;
256
+ }
257
+ .wp-media-editor-image-editor__handle--w {
258
+ top: 50%;
259
+ left: -6px;
260
+ margin-top: -6px;
261
+ cursor: ew-resize;
262
+ }
263
+ .wp-media-editor-image-editor__handle--nw {
264
+ top: -6px;
265
+ left: -6px;
266
+ cursor: nwse-resize;
267
+ }
268
+ .wp-media-editor-image-editor__handle--ne {
269
+ top: -6px;
270
+ right: -6px;
271
+ cursor: nesw-resize;
272
+ }
273
+ .wp-media-editor-image-editor__handle--sw {
274
+ bottom: -6px;
275
+ left: -6px;
276
+ cursor: nesw-resize;
277
+ }
278
+ .wp-media-editor-image-editor__handle--se {
279
+ bottom: -6px;
280
+ right: -6px;
281
+ cursor: nwse-resize;
282
+ }
283
+
284
+ /**
285
+ * Typography
286
+ */
287
+ /**
288
+ * Breakpoints & Media Queries
289
+ */
290
+ /**
291
+ * Converts a hex value into the rgb equivalent.
292
+ *
293
+ * @param {string} hex - the hexadecimal value to convert
294
+ * @return {string} comma separated rgb values
295
+ */
296
+ /**
297
+ * Long content fade mixin
298
+ *
299
+ * Creates a fading overlay to signify that the content is longer
300
+ * than the space allows.
301
+ */
302
+ /**
303
+ * Breakpoint mixins
304
+ */
305
+ /**
306
+ * Focus styles.
307
+ */
308
+ /**
309
+ * Applies editor left position to the selector passed as argument
310
+ */
311
+ /**
312
+ * Styles that are reused verbatim in a few places
313
+ */
314
+ /**
315
+ * Allows users to opt-out of animations via OS-level preferences.
316
+ */
317
+ /**
318
+ * Reset default styles for JavaScript UI based pages.
319
+ * This is a WP-admin agnostic reset
320
+ */
321
+ /**
322
+ * Reset the WP Admin page styles for Gutenberg-like pages.
323
+ */
324
+ /**
325
+ * Creates a checkerboard pattern background to indicate transparency.
326
+ * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
327
+ */
328
+ .media-editor-modal.components-modal__frame .components-modal__content {
329
+ padding: 0;
330
+ margin-bottom: 0;
331
+ }
332
+
333
+ .media-editor-modal {
334
+ display: flex;
335
+ flex-direction: column;
336
+ }
337
+ .media-editor-modal .media-editor-modal__loading {
338
+ height: 100%;
339
+ display: flex;
340
+ align-items: center;
341
+ justify-content: center;
342
+ }
343
+ .media-editor-modal .interface-interface-skeleton {
344
+ position: relative;
345
+ top: auto;
346
+ right: auto;
347
+ bottom: auto;
348
+ left: auto;
349
+ height: 100%;
350
+ max-height: none;
351
+ flex: 1;
352
+ flex-direction: column;
353
+ }
354
+ .media-editor-modal .interface-interface-skeleton__editor {
355
+ min-width: 0;
356
+ flex: 1;
357
+ }
358
+ .media-editor-modal .interface-interface-skeleton__footer {
359
+ position: relative;
360
+ display: flex;
361
+ }
362
+ .media-editor-modal .interface-interface-skeleton.has-footer .interface-interface-skeleton__body {
363
+ padding-bottom: 0;
364
+ }
365
+ .media-editor-modal .media-editor-modal__canvas {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: center;
369
+ background: #f0f0f0;
370
+ overflow: auto;
371
+ height: 100%;
372
+ }
373
+ .media-editor-modal .media-editor-modal__canvas .media-editor-preview {
374
+ height: 100%;
375
+ }
376
+ .media-editor-modal .media-editor-modal__canvas img,
377
+ .media-editor-modal .media-editor-modal__canvas video {
378
+ max-width: 100%;
379
+ max-height: 100%;
380
+ object-fit: contain;
381
+ }
382
+ .media-editor-modal .media-editor-modal__sidebar {
383
+ box-sizing: border-box;
384
+ }
385
+ .media-editor-modal .media-editor-modal__sidebar *,
386
+ .media-editor-modal .media-editor-modal__sidebar *::before,
387
+ .media-editor-modal .media-editor-modal__sidebar *::after {
388
+ box-sizing: inherit;
389
+ }
390
+ .media-editor-modal .media-editor-modal__panel {
391
+ padding: 16px;
392
+ }
393
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header {
394
+ padding-left: 0;
395
+ padding-right: 8px;
396
+ }
397
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header .components-button.has-icon {
398
+ padding: 0;
399
+ }
400
+ @media (min-width: 782px) {
401
+ .media-editor-modal .components-panel__header.media-editor-modal__sidebar-header .components-button.has-icon {
402
+ display: flex;
403
+ }
404
+ }
405
+
406
+ .media-editor-modal__snackbar {
407
+ position: fixed;
408
+ bottom: 24px;
409
+ left: 0;
410
+ right: 0;
411
+ padding-inline: 16px;
412
+ box-sizing: border-box;
413
+ display: flex;
414
+ flex-direction: column;
415
+ pointer-events: none;
416
+ }
417
+ .media-editor-modal__snackbar .components-snackbar {
418
+ margin-inline: auto;
419
+ }
420
+ .media-editor-modal__snackbar {
421
+ z-index: 1000001;
422
+ }
423
+
424
+ .media-editor-canvas {
425
+ position: relative;
426
+ width: 100%;
427
+ height: 100%;
428
+ }
429
+
430
+ .media-editor-toolbar {
431
+ width: 100%;
432
+ padding: 8px 16px;
433
+ }
434
+ .media-editor-toolbar .media-editor-toolbar__rotation-slider {
435
+ flex: 1 1 auto;
436
+ max-width: 240px;
437
+ }
438
+ @media (max-width: 480px) {
439
+ .media-editor-toolbar .media-editor-toolbar__rotation-slider {
440
+ display: none;
441
+ }
127
442
  }
@@ -0,0 +1,22 @@
1
+ export interface MediaEditorCanvasProps {
2
+ /** Fixed aspect ratio (width / height). `undefined` means free. */
3
+ aspectRatio?: number;
4
+ /** Enable freeform crop mode (resize handles). */
5
+ freeformCrop?: boolean;
6
+ /** Whether external placement activity should reveal the grid. */
7
+ isPlacementActive?: boolean;
8
+ }
9
+ /**
10
+ * Editing surface for image media in the media editor modal. Pulls its
11
+ * cropper controller from the surrounding `<CropperProvider>` so the
12
+ * bottom bar and Crop sidebar tab share the same state.
13
+ *
14
+ * Returns `null` for missing or non-image media so the modal's outer
15
+ * guards can render a spinner or fall through to `<MediaPreview>`.
16
+ * @param props
17
+ * @param props.aspectRatio
18
+ * @param props.freeformCrop
19
+ * @param props.isPlacementActive
20
+ */
21
+ export default function MediaEditorCanvas({ aspectRatio, freeformCrop, isPlacementActive, }: MediaEditorCanvasProps): import("react").JSX.Element | null;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-canvas/index.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACtC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,WAAW,EACX,YAAY,EACZ,iBAAyB,GACzB,EAAE,sBAAsB,sCAuBxB"}
@@ -0,0 +1,45 @@
1
+ import type { AspectRatioPreset } from '../../image-editor/core/constants';
2
+ export interface MediaEditorCropPanelProps {
3
+ /**
4
+ * Selected aspect-ratio preset value as a string (so it round-trips
5
+ * through `<SelectControl>`). `'0'` = free, `'-1'` = original, any
6
+ * positive number = fixed ratio.
7
+ */
8
+ aspectRatioValue: string;
9
+ /** Setter for the aspect-ratio preset value. */
10
+ onAspectRatioChange: (value: string) => void;
11
+ /** Whether the cropper is in freeform (resize-handle) mode. */
12
+ freeformCrop: boolean;
13
+ /** Setter for freeform mode. */
14
+ onFreeformChange: (value: boolean) => void;
15
+ /** Signal that a placement-oriented control is being adjusted. */
16
+ onPlacementControlInteraction?: () => void;
17
+ /**
18
+ * Fixed aspect-ratio presets to display after Free and Original. When
19
+ * omitted, the media editor's default fixed-ratio presets are used.
20
+ */
21
+ aspectRatioPresets?: AspectRatioPreset[];
22
+ }
23
+ /**
24
+ * Resolve an aspect-ratio preset value into a number suitable for
25
+ * `<Cropper aspectRatio=...>`. Returns `undefined` for Free (no lock).
26
+ *
27
+ * @param value Preset value as a string.
28
+ * @param imageAspectRatio Image's natural width / height — used for
29
+ * the Original preset.
30
+ */
31
+ export declare function resolveAspectRatio(value: string, imageAspectRatio: number | null): number | undefined;
32
+ /**
33
+ * Sidebar panel for crop-shape controls — aspect-ratio presets and
34
+ * freeform toggle. The tactile verbs (rotate, flip) live in the
35
+ * bottom toolbar instead.
36
+ * @param props
37
+ * @param props.aspectRatioValue
38
+ * @param props.onAspectRatioChange
39
+ * @param props.freeformCrop
40
+ * @param props.onFreeformChange
41
+ * @param props.onPlacementControlInteraction
42
+ * @param props.aspectRatioPresets
43
+ */
44
+ export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, freeformCrop, onFreeformChange, onPlacementControlInteraction, aspectRatioPresets, }: MediaEditorCropPanelProps): import("react").JSX.Element;
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAqBA,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,+DAA+D;IAC/D,YAAY,EAAE,OAAO,CAAC;IACtB,gCAAgC;IAChC,gBAAgB,EAAE,CAAE,KAAK,EAAE,OAAO,KAAM,IAAI,CAAC;IAC7C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAC7B,MAAM,GAAG,SAAS,CAYpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,6BAA6B,EAC7B,kBAAkB,GAClB,EAAE,yBAAyB,+BAqD3B"}