@bylqwjc/media-editor-react 1.0.12

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 (434) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/index.cjs +282 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +54 -0
  6. package/dist/index.d.ts +54 -0
  7. package/dist/index.js +240 -0
  8. package/dist/index.js.map +1 -0
  9. package/filerobot.css +1669 -0
  10. package/node_modules/@media-editor/client/LICENSE +21 -0
  11. package/node_modules/@media-editor/client/README.md +27 -0
  12. package/node_modules/@media-editor/client/dist/index.cjs +60 -0
  13. package/node_modules/@media-editor/client/dist/index.cjs.map +1 -0
  14. package/node_modules/@media-editor/client/dist/index.d.cts +24 -0
  15. package/node_modules/@media-editor/client/dist/index.d.ts +24 -0
  16. package/node_modules/@media-editor/client/dist/index.js +35 -0
  17. package/node_modules/@media-editor/client/dist/index.js.map +1 -0
  18. package/node_modules/@media-editor/client/package.json +23 -0
  19. package/node_modules/@media-editor/core/LICENSE +21 -0
  20. package/node_modules/@media-editor/core/README.md +14 -0
  21. package/node_modules/@media-editor/core/dist/browser.cjs +505 -0
  22. package/node_modules/@media-editor/core/dist/browser.cjs.map +1 -0
  23. package/node_modules/@media-editor/core/dist/browser.d.cts +100 -0
  24. package/node_modules/@media-editor/core/dist/browser.d.ts +100 -0
  25. package/node_modules/@media-editor/core/dist/browser.js +883 -0
  26. package/node_modules/@media-editor/core/dist/browser.js.map +1 -0
  27. package/node_modules/@media-editor/core/dist/chunk-MGKYVYOH.js +371 -0
  28. package/node_modules/@media-editor/core/dist/chunk-MGKYVYOH.js.map +1 -0
  29. package/node_modules/@media-editor/core/dist/chunk-USY6UDGL.js +87 -0
  30. package/node_modules/@media-editor/core/dist/chunk-USY6UDGL.js.map +1 -0
  31. package/node_modules/@media-editor/core/dist/chunk-XCBM7P7N.js +592 -0
  32. package/node_modules/@media-editor/core/dist/chunk-XCBM7P7N.js.map +1 -0
  33. package/node_modules/@media-editor/core/dist/engine.cjs +540 -0
  34. package/node_modules/@media-editor/core/dist/engine.cjs.map +1 -0
  35. package/node_modules/@media-editor/core/dist/engine.d.cts +325 -0
  36. package/node_modules/@media-editor/core/dist/engine.d.ts +359 -0
  37. package/node_modules/@media-editor/core/dist/engine.js +315 -0
  38. package/node_modules/@media-editor/core/dist/engine.js.map +1 -0
  39. package/node_modules/@media-editor/core/dist/filerobot.cjs +818 -0
  40. package/node_modules/@media-editor/core/dist/filerobot.cjs.map +1 -0
  41. package/node_modules/@media-editor/core/dist/filerobot.d.cts +88 -0
  42. package/node_modules/@media-editor/core/dist/filerobot.d.ts +88 -0
  43. package/node_modules/@media-editor/core/dist/filerobot.js +473 -0
  44. package/node_modules/@media-editor/core/dist/filerobot.js.map +1 -0
  45. package/node_modules/@media-editor/core/dist/index.cjs +1276 -0
  46. package/node_modules/@media-editor/core/dist/index.cjs.map +1 -0
  47. package/node_modules/@media-editor/core/dist/index.d.cts +242 -0
  48. package/node_modules/@media-editor/core/dist/index.d.ts +264 -0
  49. package/node_modules/@media-editor/core/dist/index.js +682 -0
  50. package/node_modules/@media-editor/core/dist/index.js.map +1 -0
  51. package/node_modules/@media-editor/core/dist/platform-presets-B-o4C6uY.d.cts +80 -0
  52. package/node_modules/@media-editor/core/dist/platform-presets-B-o4C6uY.d.ts +80 -0
  53. package/node_modules/@media-editor/core/dist/state-B85vkf7_.d.cts +936 -0
  54. package/node_modules/@media-editor/core/dist/state-B85vkf7_.d.ts +1027 -0
  55. package/node_modules/@media-editor/core/node_modules/zod/LICENSE +21 -0
  56. package/node_modules/@media-editor/core/node_modules/zod/README.md +208 -0
  57. package/node_modules/@media-editor/core/node_modules/zod/index.cjs +33 -0
  58. package/node_modules/@media-editor/core/node_modules/zod/index.d.cts +4 -0
  59. package/node_modules/@media-editor/core/node_modules/zod/index.d.ts +4 -0
  60. package/node_modules/@media-editor/core/node_modules/zod/index.js +4 -0
  61. package/node_modules/@media-editor/core/node_modules/zod/package.json +118 -0
  62. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.cjs +138 -0
  63. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.d.cts +164 -0
  64. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.d.ts +164 -0
  65. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.js +133 -0
  66. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.cjs +17 -0
  67. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.d.cts +5 -0
  68. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.d.ts +5 -0
  69. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.js +9 -0
  70. package/node_modules/@media-editor/core/node_modules/zod/v3/external.cjs +22 -0
  71. package/node_modules/@media-editor/core/node_modules/zod/v3/external.d.cts +6 -0
  72. package/node_modules/@media-editor/core/node_modules/zod/v3/external.d.ts +6 -0
  73. package/node_modules/@media-editor/core/node_modules/zod/v3/external.js +6 -0
  74. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  75. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  76. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  77. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  78. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  79. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  80. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  81. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  82. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  83. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  84. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  85. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  86. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  87. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  88. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  89. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  90. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  91. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  92. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  93. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  94. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.cjs +137 -0
  95. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
  96. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.d.ts +85 -0
  97. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.js +133 -0
  98. package/node_modules/@media-editor/core/node_modules/zod/v3/index.cjs +33 -0
  99. package/node_modules/@media-editor/core/node_modules/zod/v3/index.d.cts +4 -0
  100. package/node_modules/@media-editor/core/node_modules/zod/v3/index.d.ts +4 -0
  101. package/node_modules/@media-editor/core/node_modules/zod/v3/index.js +4 -0
  102. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.cjs +111 -0
  103. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.d.cts +3 -0
  104. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.d.ts +3 -0
  105. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.js +109 -0
  106. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.cjs +2 -0
  107. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
  108. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.d.ts +102 -0
  109. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.js +1 -0
  110. package/node_modules/@media-editor/core/node_modules/zod/v3/types.cjs +3775 -0
  111. package/node_modules/@media-editor/core/node_modules/zod/v3/types.d.cts +1031 -0
  112. package/node_modules/@media-editor/core/node_modules/zod/v3/types.d.ts +1031 -0
  113. package/node_modules/@media-editor/core/node_modules/zod/v3/types.js +3693 -0
  114. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.cjs +32 -0
  115. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.d.cts +1 -0
  116. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.d.ts +1 -0
  117. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.js +1 -0
  118. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.cjs +47 -0
  119. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  120. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  121. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.js +17 -0
  122. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.cjs +57 -0
  123. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.d.cts +46 -0
  124. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.d.ts +46 -0
  125. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.js +27 -0
  126. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.cjs +67 -0
  127. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.d.cts +30 -0
  128. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.d.ts +30 -0
  129. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.js +41 -0
  130. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.cjs +70 -0
  131. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.d.cts +13 -0
  132. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.d.ts +13 -0
  133. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.js +18 -0
  134. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.cjs +33 -0
  135. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.d.cts +4 -0
  136. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.d.ts +4 -0
  137. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.js +4 -0
  138. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.cjs +60 -0
  139. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.d.cts +22 -0
  140. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.d.ts +22 -0
  141. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.js +30 -0
  142. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.cjs +32 -0
  143. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.d.cts +23 -0
  144. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.d.ts +23 -0
  145. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.js +6 -0
  146. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  147. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  148. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  149. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.js +1006 -0
  150. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.cjs +1039 -0
  151. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.d.cts +284 -0
  152. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.d.ts +284 -0
  153. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.js +906 -0
  154. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.cjs +591 -0
  155. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.d.cts +278 -0
  156. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.d.ts +278 -0
  157. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.js +565 -0
  158. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.cjs +67 -0
  159. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.d.cts +49 -0
  160. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.d.ts +49 -0
  161. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.js +61 -0
  162. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.cjs +39 -0
  163. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.d.cts +14 -0
  164. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.d.ts +14 -0
  165. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.js +35 -0
  166. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.cjs +226 -0
  167. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.d.cts +208 -0
  168. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.d.ts +208 -0
  169. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.js +195 -0
  170. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.cjs +102 -0
  171. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.d.cts +52 -0
  172. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.d.ts +52 -0
  173. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.js +75 -0
  174. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.cjs +44 -0
  175. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.d.cts +15 -0
  176. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.d.ts +15 -0
  177. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.js +15 -0
  178. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.cjs +2 -0
  179. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  180. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  181. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.js +1 -0
  182. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.cjs +87 -0
  183. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.d.cts +25 -0
  184. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.d.ts +25 -0
  185. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.js +57 -0
  186. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.cjs +103 -0
  187. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.d.cts +62 -0
  188. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.d.ts +62 -0
  189. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.js +95 -0
  190. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.cjs +56 -0
  191. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.d.cts +35 -0
  192. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.d.ts +35 -0
  193. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.js +51 -0
  194. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.cjs +1748 -0
  195. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  196. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  197. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.js +1717 -0
  198. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  199. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  200. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  201. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.js +1 -0
  202. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  203. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  204. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  205. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.js +849 -0
  206. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.cjs +539 -0
  207. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.d.cts +183 -0
  208. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.d.ts +183 -0
  209. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.js +493 -0
  210. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.cjs +8 -0
  211. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.d.cts +5 -0
  212. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.d.ts +5 -0
  213. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.js +5 -0
  214. package/node_modules/@media-editor/core/node_modules/zod/v4/index.cjs +22 -0
  215. package/node_modules/@media-editor/core/node_modules/zod/v4/index.d.cts +3 -0
  216. package/node_modules/@media-editor/core/node_modules/zod/v4/index.d.ts +3 -0
  217. package/node_modules/@media-editor/core/node_modules/zod/v4/index.js +3 -0
  218. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.cjs +142 -0
  219. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.d.cts +4 -0
  220. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.d.ts +4 -0
  221. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.js +116 -0
  222. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.cjs +141 -0
  223. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.d.cts +4 -0
  224. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.d.ts +4 -0
  225. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.js +115 -0
  226. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.cjs +190 -0
  227. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.d.cts +4 -0
  228. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.d.ts +4 -0
  229. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.js +164 -0
  230. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.cjs +144 -0
  231. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.d.cts +4 -0
  232. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.d.ts +4 -0
  233. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.js +118 -0
  234. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.cjs +161 -0
  235. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.d.cts +4 -0
  236. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.d.ts +4 -0
  237. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.js +135 -0
  238. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.cjs +142 -0
  239. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.d.cts +4 -0
  240. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.d.ts +4 -0
  241. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.js +116 -0
  242. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.cjs +145 -0
  243. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.d.cts +5 -0
  244. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.d.ts +5 -0
  245. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.js +117 -0
  246. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.cjs +144 -0
  247. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.d.cts +5 -0
  248. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.d.ts +5 -0
  249. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.js +116 -0
  250. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.cjs +143 -0
  251. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.d.cts +4 -0
  252. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.d.ts +4 -0
  253. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.js +117 -0
  254. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.cjs +148 -0
  255. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.d.cts +4 -0
  256. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.d.ts +4 -0
  257. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.js +122 -0
  258. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.cjs +148 -0
  259. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.d.cts +4 -0
  260. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.d.ts +4 -0
  261. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.js +122 -0
  262. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  263. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  264. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  265. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.js +117 -0
  266. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.cjs +142 -0
  267. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.d.cts +4 -0
  268. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.d.ts +4 -0
  269. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.js +116 -0
  270. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.cjs +143 -0
  271. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.d.cts +4 -0
  272. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.d.ts +4 -0
  273. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.js +117 -0
  274. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.cjs +143 -0
  275. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.d.cts +4 -0
  276. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.d.ts +4 -0
  277. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.js +117 -0
  278. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.cjs +142 -0
  279. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.d.cts +4 -0
  280. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.d.ts +4 -0
  281. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.js +116 -0
  282. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.cjs +84 -0
  283. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.d.cts +39 -0
  284. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.d.ts +39 -0
  285. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.js +39 -0
  286. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.cjs +143 -0
  287. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.d.cts +4 -0
  288. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.d.ts +4 -0
  289. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.js +117 -0
  290. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.cjs +141 -0
  291. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.d.cts +4 -0
  292. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.d.ts +4 -0
  293. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.js +115 -0
  294. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.cjs +143 -0
  295. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.d.cts +4 -0
  296. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.d.ts +4 -0
  297. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.js +117 -0
  298. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.cjs +147 -0
  299. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.d.cts +4 -0
  300. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.d.ts +4 -0
  301. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.js +121 -0
  302. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.cjs +144 -0
  303. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.d.cts +4 -0
  304. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.d.ts +4 -0
  305. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.js +118 -0
  306. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.cjs +142 -0
  307. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.d.cts +4 -0
  308. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.d.ts +4 -0
  309. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.js +116 -0
  310. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.cjs +143 -0
  311. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.d.cts +4 -0
  312. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.d.ts +4 -0
  313. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.js +117 -0
  314. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.cjs +142 -0
  315. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.d.cts +4 -0
  316. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.d.ts +4 -0
  317. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.js +116 -0
  318. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.cjs +143 -0
  319. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.d.cts +4 -0
  320. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.d.ts +4 -0
  321. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.js +117 -0
  322. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.cjs +143 -0
  323. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.d.cts +4 -0
  324. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.d.ts +4 -0
  325. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.js +117 -0
  326. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.cjs +148 -0
  327. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.d.cts +4 -0
  328. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.d.ts +4 -0
  329. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.js +122 -0
  330. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.cjs +142 -0
  331. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.d.cts +4 -0
  332. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.d.ts +4 -0
  333. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.js +116 -0
  334. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.cjs +190 -0
  335. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.d.cts +4 -0
  336. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.d.ts +4 -0
  337. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.js +164 -0
  338. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.cjs +143 -0
  339. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.d.cts +4 -0
  340. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.d.ts +4 -0
  341. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.js +117 -0
  342. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.cjs +144 -0
  343. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.d.cts +4 -0
  344. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.d.ts +4 -0
  345. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.js +118 -0
  346. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.cjs +143 -0
  347. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.d.cts +4 -0
  348. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.d.ts +4 -0
  349. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.js +117 -0
  350. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.cjs +143 -0
  351. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.d.cts +4 -0
  352. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.d.ts +4 -0
  353. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.js +117 -0
  354. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.cjs +143 -0
  355. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.d.cts +5 -0
  356. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.d.ts +5 -0
  357. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.js +115 -0
  358. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.cjs +143 -0
  359. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.d.cts +4 -0
  360. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.d.ts +4 -0
  361. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.js +117 -0
  362. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.cjs +143 -0
  363. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.d.cts +4 -0
  364. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.d.ts +4 -0
  365. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.js +117 -0
  366. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.cjs +142 -0
  367. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.d.cts +4 -0
  368. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.d.ts +4 -0
  369. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.js +116 -0
  370. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  371. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  372. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  373. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.js +116 -0
  374. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  375. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  376. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  377. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.js +117 -0
  378. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.cjs +34 -0
  379. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.d.cts +1 -0
  380. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.d.ts +1 -0
  381. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.js +1 -0
  382. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.cjs +47 -0
  383. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  384. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  385. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.js +17 -0
  386. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.cjs +62 -0
  387. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.d.cts +11 -0
  388. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.d.ts +11 -0
  389. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.js +13 -0
  390. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.cjs +32 -0
  391. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.d.cts +3 -0
  392. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.d.ts +3 -0
  393. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.js +3 -0
  394. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.cjs +60 -0
  395. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.d.cts +22 -0
  396. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.d.ts +22 -0
  397. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.js +30 -0
  398. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.cjs +8 -0
  399. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.d.cts +1 -0
  400. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.d.ts +1 -0
  401. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.js +1 -0
  402. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.cjs +839 -0
  403. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  404. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  405. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.js +732 -0
  406. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.cjs +17 -0
  407. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.d.cts +1 -0
  408. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.d.ts +1 -0
  409. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.js +1 -0
  410. package/node_modules/@media-editor/core/package.json +42 -0
  411. package/node_modules/@media-editor/image/LICENSE +21 -0
  412. package/node_modules/@media-editor/image/README.md +48 -0
  413. package/node_modules/@media-editor/image/dist/chunk-5TBO732O.js +1 -0
  414. package/node_modules/@media-editor/image/dist/index-CU3vkvDR.d.ts +44 -0
  415. package/node_modules/@media-editor/image/dist/index.css +1 -0
  416. package/node_modules/@media-editor/image/dist/index.d.ts +2 -0
  417. package/node_modules/@media-editor/image/dist/index.js +364 -0
  418. package/node_modules/@media-editor/image/dist/lazy.css +1 -0
  419. package/node_modules/@media-editor/image/dist/lazy.d.ts +8 -0
  420. package/node_modules/@media-editor/image/dist/lazy.js +1 -0
  421. package/node_modules/@media-editor/image/package.json +29 -0
  422. package/node_modules/@media-editor/video/LICENSE +21 -0
  423. package/node_modules/@media-editor/video/README.md +55 -0
  424. package/node_modules/@media-editor/video/dist/chunk-EK7ODJWE.js +1 -0
  425. package/node_modules/@media-editor/video/dist/index-CX2iAapm.d.ts +51 -0
  426. package/node_modules/@media-editor/video/dist/index.d.ts +4 -0
  427. package/node_modules/@media-editor/video/dist/index.js +16919 -0
  428. package/node_modules/@media-editor/video/dist/lazy.d.ts +10 -0
  429. package/node_modules/@media-editor/video/dist/lazy.js +1 -0
  430. package/node_modules/@media-editor/video/dist/legacy.js +65 -0
  431. package/node_modules/@media-editor/video/package.json +29 -0
  432. package/package.json +48 -0
  433. package/style.css +1 -0
  434. package/theme.css +1214 -0
package/dist/index.js ADDED
@@ -0,0 +1,240 @@
1
+ // src/useVideoEditor.ts
2
+ import { useMemo, useRef, useSyncExternalStore } from "react";
3
+ import { VideoEditorEngine } from "@media-editor/core/engine";
4
+ function useVideoEditor(provided) {
5
+ const ref = useRef(null);
6
+ if (!ref.current) ref.current = provided ?? new VideoEditorEngine();
7
+ const engine = ref.current;
8
+ const state = useSyncExternalStore(engine.subscribe, engine.getSnapshot, engine.getSnapshot);
9
+ return useMemo(
10
+ () => ({
11
+ engine,
12
+ state,
13
+ canUndo: engine.canUndo(),
14
+ canRedo: engine.canRedo(),
15
+ totalDuration: engine.totalDuration(),
16
+ contentDuration: engine.contentDuration()
17
+ }),
18
+ [engine, state]
19
+ );
20
+ }
21
+
22
+ // src/ImageEditor.tsx
23
+ import { useEffect, useRef as useRef2 } from "react";
24
+ import { jsx } from "react/jsx-runtime";
25
+ var imageRuntimePromise = null;
26
+ function loadImageRuntime() {
27
+ imageRuntimePromise ?? (imageRuntimePromise = import("@media-editor/image"));
28
+ return imageRuntimePromise;
29
+ }
30
+ function ImageEditor({ className, style, ...opts }) {
31
+ const elRef = useRef2(null);
32
+ const handleRef = useRef2(null);
33
+ const optsRef = useRef2(opts);
34
+ optsRef.current = opts;
35
+ useEffect(() => {
36
+ if (!elRef.current) return;
37
+ let disposed = false;
38
+ void loadImageRuntime().then(({ mountImageEditor }) => {
39
+ if (!elRef.current || disposed) return;
40
+ const handle = mountImageEditor(elRef.current, optsRef.current);
41
+ if (disposed) {
42
+ handle.destroy();
43
+ return;
44
+ }
45
+ handleRef.current = handle;
46
+ });
47
+ return () => {
48
+ disposed = true;
49
+ handleRef.current?.destroy();
50
+ handleRef.current = null;
51
+ };
52
+ }, []);
53
+ useEffect(() => {
54
+ handleRef.current?.update(optsRef.current);
55
+ }, [opts.source, opts.locale, opts.theme]);
56
+ return /* @__PURE__ */ jsx("div", { ref: elRef, className, style: { width: "100%", height: "100%", ...style } });
57
+ }
58
+
59
+ // src/VideoEditor.tsx
60
+ import { useEffect as useEffect2, useRef as useRef3 } from "react";
61
+ import { jsx as jsx2 } from "react/jsx-runtime";
62
+ var videoRuntimePromise = null;
63
+ function loadVideoRuntime() {
64
+ videoRuntimePromise ?? (videoRuntimePromise = import("@media-editor/video"));
65
+ return videoRuntimePromise;
66
+ }
67
+ function VideoEditor({ className, style, ...opts }) {
68
+ const elRef = useRef3(null);
69
+ const handleRef = useRef3(null);
70
+ const optsRef = useRef3(opts);
71
+ optsRef.current = opts;
72
+ useEffect2(() => {
73
+ if (!elRef.current) return;
74
+ let disposed = false;
75
+ void loadVideoRuntime().then(({ mountVideoEditor }) => {
76
+ if (!elRef.current || disposed) return;
77
+ const handle = mountVideoEditor(elRef.current, optsRef.current);
78
+ if (disposed) {
79
+ handle.destroy();
80
+ return;
81
+ }
82
+ handleRef.current = handle;
83
+ });
84
+ return () => {
85
+ disposed = true;
86
+ handleRef.current?.destroy();
87
+ handleRef.current = null;
88
+ };
89
+ }, []);
90
+ useEffect2(() => {
91
+ handleRef.current?.update(optsRef.current);
92
+ }, [opts.source, opts.locale, opts.theme, opts.baseUrl]);
93
+ return /* @__PURE__ */ jsx2("div", { ref: elRef, className, style: { width: "100%", height: "100%", ...style } });
94
+ }
95
+
96
+ // src/MediaEditor.tsx
97
+ import { useEffect as useEffect3, useLayoutEffect, useRef as useRef4, useState } from "react";
98
+ import { createFullscreenToggle } from "@media-editor/core/browser";
99
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
100
+ function MediaEditor({
101
+ baseUrl,
102
+ client,
103
+ locale = "zh",
104
+ theme = "auto",
105
+ className,
106
+ style,
107
+ onExported,
108
+ onImageSave
109
+ }) {
110
+ const [mode, setMode] = useState("home");
111
+ const [videoSource, setVideoSource] = useState(null);
112
+ const [imageSource, setImageSource] = useState(null);
113
+ const videoFileRef = useRef4(null);
114
+ const imageFileRef = useRef4(null);
115
+ const shellRef = useRef4(null);
116
+ const actionsRef = useRef4(null);
117
+ const fullscreenRef = useRef4(null);
118
+ useEffect3(() => {
119
+ fullscreenRef.current?.dispose();
120
+ fullscreenRef.current = null;
121
+ if (mode === "home" || !shellRef.current || !actionsRef.current) return;
122
+ const fs = createFullscreenToggle(shellRef.current, { mode: "inline" });
123
+ actionsRef.current.appendChild(fs.button);
124
+ fullscreenRef.current = fs;
125
+ return () => {
126
+ fs.dispose();
127
+ fullscreenRef.current = null;
128
+ };
129
+ }, [mode]);
130
+ useLayoutEffect(() => {
131
+ const shell = shellRef.current;
132
+ if (mode === "home" || !shell) return;
133
+ const update = () => {
134
+ if (document.fullscreenElement === shell) return;
135
+ const top = shell.getBoundingClientRect().top;
136
+ const available = window.innerHeight - top - 16;
137
+ const isCompact = window.matchMedia("(max-width: 760px)").matches;
138
+ const minHeight = isCompact ? 0 : 560;
139
+ shell.style.setProperty("--me-editor-shell-height", `${Math.max(minHeight, available)}px`);
140
+ };
141
+ update();
142
+ const raf = requestAnimationFrame(update);
143
+ window.addEventListener("resize", update);
144
+ document.addEventListener("fullscreenchange", update);
145
+ return () => {
146
+ cancelAnimationFrame(raf);
147
+ window.removeEventListener("resize", update);
148
+ document.removeEventListener("fullscreenchange", update);
149
+ };
150
+ }, [mode]);
151
+ const back = () => {
152
+ setVideoSource(null);
153
+ if (imageSource) {
154
+ URL.revokeObjectURL(imageSource);
155
+ setImageSource(null);
156
+ }
157
+ setMode("home");
158
+ };
159
+ if (mode === "home") {
160
+ return /* @__PURE__ */ jsxs("div", { className, style: { ...HOME, ...style }, children: [
161
+ /* @__PURE__ */ jsx3("h2", { style: TITLE, children: "\u5A92\u4F53\u7F16\u8F91\u5668" }),
162
+ /* @__PURE__ */ jsx3("p", { style: SUB, children: "\u9009\u62E9\u8981\u7F16\u8F91\u7684\u5185\u5BB9" }),
163
+ /* @__PURE__ */ jsxs("div", { style: CARDS, children: [
164
+ /* @__PURE__ */ jsxs("button", { className: "me-card", style: CARD, onClick: () => videoFileRef.current?.click(), children: [
165
+ /* @__PURE__ */ jsx3("span", { style: EMOJI, children: "\u{1F3AC}" }),
166
+ /* @__PURE__ */ jsx3("span", { style: CARD_T, children: "\u7F16\u8F91\u89C6\u9891" }),
167
+ /* @__PURE__ */ jsx3("span", { style: CARD_S, children: "\u591A\u7247\u6BB5\u65F6\u95F4\u8F74 \xB7 \u88C1\u526A \xB7 \u8C03\u8272 \xB7 \u5BFC\u51FA" })
168
+ ] }),
169
+ /* @__PURE__ */ jsxs("button", { className: "me-card", style: CARD, onClick: () => imageFileRef.current?.click(), children: [
170
+ /* @__PURE__ */ jsx3("span", { style: EMOJI, children: "\u{1F5BC}\uFE0F" }),
171
+ /* @__PURE__ */ jsx3("span", { style: CARD_T, children: "\u7F16\u8F91\u56FE\u7247" }),
172
+ /* @__PURE__ */ jsx3("span", { style: CARD_S, children: "\u88C1\u526A \xB7 \u6EE4\u955C \xB7 \u6807\u6CE8 \xB7 \u6C34\u5370" })
173
+ ] })
174
+ ] }),
175
+ /* @__PURE__ */ jsx3(
176
+ "input",
177
+ {
178
+ ref: videoFileRef,
179
+ type: "file",
180
+ accept: "video/*",
181
+ hidden: true,
182
+ onChange: (e) => {
183
+ const f = e.target.files?.[0];
184
+ if (f) {
185
+ setVideoSource(f);
186
+ setMode("video");
187
+ }
188
+ e.target.value = "";
189
+ }
190
+ }
191
+ ),
192
+ /* @__PURE__ */ jsx3(
193
+ "input",
194
+ {
195
+ ref: imageFileRef,
196
+ type: "file",
197
+ accept: "image/*",
198
+ hidden: true,
199
+ onChange: (e) => {
200
+ const f = e.target.files?.[0];
201
+ if (f) {
202
+ setImageSource(URL.createObjectURL(f));
203
+ setMode("image");
204
+ }
205
+ }
206
+ }
207
+ )
208
+ ] });
209
+ }
210
+ return /* @__PURE__ */ jsx3("div", { className, style, children: /* @__PURE__ */ jsxs("div", { ref: shellRef, className: "editor-shell", style: SHELL, children: [
211
+ /* @__PURE__ */ jsx3("div", { ref: actionsRef, className: "editor-actions", style: ACTIONS, children: /* @__PURE__ */ jsx3("button", { style: BACK, onClick: back, children: "\u2190 \u8FD4\u56DE" }) }),
212
+ /* @__PURE__ */ jsx3("div", { style: { flex: "1 1 0", minHeight: 0 }, children: mode === "video" ? /* @__PURE__ */ jsx3(VideoEditor, { source: videoSource ?? void 0, baseUrl, client, locale, theme, onExported, onError: (e) => console.error("[VideoEditor]", e) }) : /* @__PURE__ */ jsx3(ImageEditor, { source: imageSource, locale, theme, onSave: onImageSave, onClose: back }) })
213
+ ] }) });
214
+ }
215
+ var HOME = { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", minHeight: "60vh", gap: 4, textAlign: "center", color: "var(--me-fg,#e7e7ee)" };
216
+ var TITLE = { margin: 0, fontSize: 24, fontWeight: 600 };
217
+ var SUB = { margin: "4px 0 24px", color: "var(--me-fg-muted,#8a8f9c)", fontSize: 14 };
218
+ var CARDS = { display: "flex", gap: 16, flexWrap: "wrap", justifyContent: "center" };
219
+ var CARD = { display: "flex", flexDirection: "column", alignItems: "center", gap: 8, width: 240, padding: "32px 24px", background: "var(--me-elevated,#1c1c20)", color: "var(--me-fg,#e7e7ee)", border: "1px solid var(--me-border,#26262b)", borderRadius: 12, cursor: "pointer", font: "inherit" };
220
+ var EMOJI = { fontSize: 40, lineHeight: 1 };
221
+ var CARD_T = { fontSize: 16, fontWeight: 600 };
222
+ var CARD_S = { fontSize: 12, color: "var(--me-fg-muted,#8a8f9c)" };
223
+ var SHELL = { display: "flex", flexDirection: "column", height: "var(--me-editor-shell-height)", minHeight: 0, position: "relative" };
224
+ var ACTIONS = { display: "flex", alignItems: "center", gap: 8, marginBottom: 10 };
225
+ var BACK = { padding: "6px 10px", background: "var(--me-chip,#1c1c20)", color: "var(--me-fg,#e7e7ee)", border: "1px solid var(--me-border,#26262b)", borderRadius: 6, cursor: "pointer", font: "inherit" };
226
+
227
+ // src/buildExport.ts
228
+ import { buildVideoExportFormData } from "@media-editor/core/browser";
229
+
230
+ // src/index.ts
231
+ import { VideoEditorEngine as VideoEditorEngine2 } from "@media-editor/core/engine";
232
+ export {
233
+ ImageEditor,
234
+ MediaEditor,
235
+ VideoEditor,
236
+ VideoEditorEngine2 as VideoEditorEngine,
237
+ buildVideoExportFormData,
238
+ useVideoEditor
239
+ };
240
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/useVideoEditor.ts","../src/ImageEditor.tsx","../src/VideoEditor.tsx","../src/MediaEditor.tsx","../src/buildExport.ts","../src/index.ts"],"sourcesContent":["/**\n * useVideoEditor —— 把无头 VideoEditorEngine 绑进 React。\n * 通过 useSyncExternalStore 订阅引擎;命令直接调 engine.*(引擎引用稳定)。\n */\nimport { useMemo, useRef, useSyncExternalStore } from 'react';\nimport { VideoEditorEngine } from '@media-editor/core/engine';\nimport type { VideoEditStateT } from '@media-editor/core';\n\nexport interface UseVideoEditor {\n /** 引擎实例(命令式 API:engine.splitAtPlayhead/setFilter/undo… ) */\n engine: VideoEditorEngine;\n /** 当前编辑状态(变更即重渲染) */\n state: VideoEditStateT;\n canUndo: boolean;\n canRedo: boolean;\n totalDuration: number;\n contentDuration: number;\n}\n\n/**\n * @param provided 复用外部引擎(跨组件共享);省略则组件内自建一个,生命周期跟随组件。\n */\nexport function useVideoEditor(provided?: VideoEditorEngine): UseVideoEditor {\n const ref = useRef<VideoEditorEngine | null>(null);\n if (!ref.current) ref.current = provided ?? new VideoEditorEngine();\n const engine = ref.current;\n\n const state = useSyncExternalStore(engine.subscribe, engine.getSnapshot, engine.getSnapshot);\n\n return useMemo<UseVideoEditor>(\n () => ({\n engine,\n state,\n canUndo: engine.canUndo(),\n canRedo: engine.canRedo(),\n totalDuration: engine.totalDuration(),\n contentDuration: engine.contentDuration(),\n }),\n [engine, state],\n );\n}\n","/**\n * <ImageEditor> —— @media-editor/image 的 React 薄包(ref + useEffect 管挂载/更新/卸载)。\n * 编辑器内部的 React 封在 @media-editor/image 里,与宿主 React 互不干扰。\n */\nimport { useEffect, useRef, type CSSProperties } from 'react';\nimport type { ImageEditorHandle, MountImageEditorOptions } from '@media-editor/image';\n\nlet imageRuntimePromise: Promise<typeof import('@media-editor/image')> | null = null;\n\nfunction loadImageRuntime() {\n imageRuntimePromise ??= import('@media-editor/image');\n return imageRuntimePromise;\n}\n\nexport interface ImageEditorProps extends MountImageEditorOptions {\n className?: string;\n style?: CSSProperties;\n}\n\nexport function ImageEditor({ className, style, ...opts }: ImageEditorProps) {\n const elRef = useRef<HTMLDivElement>(null);\n const handleRef = useRef<ImageEditorHandle | null>(null);\n const optsRef = useRef(opts);\n optsRef.current = opts; // 始终持最新 opts(回调不过期),挂载/更新都读它\n\n // 挂载一次,卸载销毁\n useEffect(() => {\n if (!elRef.current) return;\n let disposed = false;\n void loadImageRuntime().then(({ mountImageEditor }) => {\n if (!elRef.current || disposed) return;\n const handle = mountImageEditor(elRef.current, optsRef.current);\n if (disposed) {\n handle.destroy();\n return;\n }\n handleRef.current = handle;\n });\n return () => {\n disposed = true;\n handleRef.current?.destroy();\n handleRef.current = null;\n };\n }, []);\n\n // 仅在 source / locale / theme 变更时重渲染(其余 prop 变动靠 optsRef 透传)\n useEffect(() => {\n handleRef.current?.update(optsRef.current);\n }, [opts.source, opts.locale, opts.theme]);\n\n return <div ref={elRef} className={className} style={{ width: '100%', height: '100%', ...style }} />;\n}\n","/**\n * <VideoEditor> —— @media-editor/video 的 React 薄包(ref + useEffect 管挂载/更新/卸载)。\n * 完整视频富 UI(时间轴/裁剪/标注/贴纸/滤镜/封面)封在 @media-editor/video 内部,内置 React 不外泄。\n * 想要无头自建 UI 的用户用 useVideoEditor + VideoEditorEngine。\n */\nimport { useEffect, useRef, type CSSProperties } from 'react';\nimport type { MountVideoEditorOptions, VideoEditorHandle } from '@media-editor/video';\n\nlet videoRuntimePromise: Promise<typeof import('@media-editor/video')> | null = null;\n\nfunction loadVideoRuntime() {\n videoRuntimePromise ??= import('@media-editor/video');\n return videoRuntimePromise;\n}\n\ntype VideoSourceOption = { source?: File };\n\nexport interface VideoEditorProps extends MountVideoEditorOptions, VideoSourceOption {\n className?: string;\n style?: CSSProperties;\n}\n\nexport function VideoEditor({ className, style, ...opts }: VideoEditorProps) {\n const elRef = useRef<HTMLDivElement>(null);\n const handleRef = useRef<VideoEditorHandle | null>(null);\n const optsRef = useRef(opts);\n optsRef.current = opts; // 始终持最新 opts(回调不过期)\n\n useEffect(() => {\n if (!elRef.current) return;\n let disposed = false;\n void loadVideoRuntime().then(({ mountVideoEditor }) => {\n if (!elRef.current || disposed) return;\n const handle = mountVideoEditor(elRef.current, optsRef.current);\n if (disposed) {\n handle.destroy();\n return;\n }\n handleRef.current = handle;\n });\n return () => {\n disposed = true;\n handleRef.current?.destroy();\n handleRef.current = null;\n };\n }, []);\n\n useEffect(() => {\n handleRef.current?.update(optsRef.current);\n }, [opts.source, opts.locale, opts.theme, opts.baseUrl]);\n\n return <div ref={elRef} className={className} style={{ width: '100%', height: '100%', ...style }} />;\n}\n","/**\n * <MediaEditor> —— 统一入口参考 UI。\n * 先选「编辑视频 / 编辑图片」,再进对应编辑器;编辑器内点返回回到选择页。\n * 视频和图片都在入口卡处选文件后进编辑器,打开后即导入素材。\n */\nimport { useEffect, useLayoutEffect, useRef, useState, type CSSProperties } from 'react';\nimport type { EditorClient } from '@media-editor/client';\nimport type { EditorLocale } from '@media-editor/core';\nimport { createFullscreenToggle, type FullscreenToggle } from '@media-editor/core/browser';\nimport { VideoEditor } from './VideoEditor';\nimport { ImageEditor } from './ImageEditor';\n\nexport interface MediaEditorProps {\n baseUrl?: string;\n client?: EditorClient;\n locale?: EditorLocale;\n theme?: 'auto' | 'light' | 'dark';\n className?: string;\n style?: CSSProperties;\n onExported?: (blob: Blob) => void;\n onImageSave?: (img: unknown, designState: unknown) => void;\n}\n\ntype Mode = 'home' | 'video' | 'image';\n\nexport function MediaEditor({\n baseUrl,\n client,\n locale = 'zh',\n theme = 'auto',\n className,\n style,\n onExported,\n onImageSave,\n}: MediaEditorProps) {\n const [mode, setMode] = useState<Mode>('home');\n const [videoSource, setVideoSource] = useState<File | null>(null);\n const [imageSource, setImageSource] = useState<string | null>(null);\n const videoFileRef = useRef<HTMLInputElement>(null);\n const imageFileRef = useRef<HTMLInputElement>(null);\n const shellRef = useRef<HTMLDivElement>(null);\n const actionsRef = useRef<HTMLDivElement>(null);\n const fullscreenRef = useRef<FullscreenToggle | null>(null);\n\n useEffect(() => {\n fullscreenRef.current?.dispose();\n fullscreenRef.current = null;\n if (mode === 'home' || !shellRef.current || !actionsRef.current) return;\n const fs = createFullscreenToggle(shellRef.current, { mode: 'inline' });\n actionsRef.current.appendChild(fs.button);\n fullscreenRef.current = fs;\n return () => {\n fs.dispose();\n fullscreenRef.current = null;\n };\n }, [mode]);\n\n useLayoutEffect(() => {\n const shell = shellRef.current;\n if (mode === 'home' || !shell) return;\n const update = () => {\n if (document.fullscreenElement === shell) return;\n const top = shell.getBoundingClientRect().top;\n const available = window.innerHeight - top - 16;\n const isCompact = window.matchMedia('(max-width: 760px)').matches;\n const minHeight = isCompact ? 0 : 560;\n shell.style.setProperty('--me-editor-shell-height', `${Math.max(minHeight, available)}px`);\n };\n update();\n const raf = requestAnimationFrame(update);\n window.addEventListener('resize', update);\n document.addEventListener('fullscreenchange', update);\n return () => {\n cancelAnimationFrame(raf);\n window.removeEventListener('resize', update);\n document.removeEventListener('fullscreenchange', update);\n };\n }, [mode]);\n\n const back = () => {\n setVideoSource(null);\n if (imageSource) {\n URL.revokeObjectURL(imageSource);\n setImageSource(null);\n }\n setMode('home');\n };\n\n if (mode === 'home') {\n return (\n <div className={className} style={{ ...HOME, ...style }}>\n <h2 style={TITLE}>媒体编辑器</h2>\n <p style={SUB}>选择要编辑的内容</p>\n <div style={CARDS}>\n <button className=\"me-card\" style={CARD} onClick={() => videoFileRef.current?.click()}>\n <span style={EMOJI}>🎬</span>\n <span style={CARD_T}>编辑视频</span>\n <span style={CARD_S}>多片段时间轴 · 裁剪 · 调色 · 导出</span>\n </button>\n <button className=\"me-card\" style={CARD} onClick={() => imageFileRef.current?.click()}>\n <span style={EMOJI}>🖼️</span>\n <span style={CARD_T}>编辑图片</span>\n <span style={CARD_S}>裁剪 · 滤镜 · 标注 · 水印</span>\n </button>\n </div>\n <input\n ref={videoFileRef}\n type=\"file\"\n accept=\"video/*\"\n hidden\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) {\n setVideoSource(f);\n setMode('video');\n }\n e.target.value = '';\n }}\n />\n <input\n ref={imageFileRef}\n type=\"file\"\n accept=\"image/*\"\n hidden\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) {\n setImageSource(URL.createObjectURL(f));\n setMode('image');\n }\n }}\n />\n </div>\n );\n }\n\n return (\n <div className={className} style={style}>\n <div ref={shellRef} className=\"editor-shell\" style={SHELL}>\n <div ref={actionsRef} className=\"editor-actions\" style={ACTIONS}>\n <button style={BACK} onClick={back}>← 返回</button>\n </div>\n <div style={{ flex: '1 1 0', minHeight: 0 }}>\n {mode === 'video' ? (\n <VideoEditor source={videoSource ?? undefined} baseUrl={baseUrl} client={client} locale={locale} theme={theme} onExported={onExported} onError={(e) => console.error('[VideoEditor]', e)} />\n ) : (\n <ImageEditor source={imageSource!} locale={locale} theme={theme} onSave={onImageSave} onClose={back} />\n )}\n </div>\n </div>\n </div>\n );\n}\n\nconst HOME: CSSProperties = { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '60vh', gap: 4, textAlign: 'center', color: 'var(--me-fg,#e7e7ee)' };\nconst TITLE: CSSProperties = { margin: 0, fontSize: 24, fontWeight: 600 };\nconst SUB: CSSProperties = { margin: '4px 0 24px', color: 'var(--me-fg-muted,#8a8f9c)', fontSize: 14 };\nconst CARDS: CSSProperties = { display: 'flex', gap: 16, flexWrap: 'wrap', justifyContent: 'center' };\nconst CARD: CSSProperties = { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 8, width: 240, padding: '32px 24px', background: 'var(--me-elevated,#1c1c20)', color: 'var(--me-fg,#e7e7ee)', border: '1px solid var(--me-border,#26262b)', borderRadius: 12, cursor: 'pointer', font: 'inherit' };\nconst EMOJI: CSSProperties = { fontSize: 40, lineHeight: 1 };\nconst CARD_T: CSSProperties = { fontSize: 16, fontWeight: 600 };\nconst CARD_S: CSSProperties = { fontSize: 12, color: 'var(--me-fg-muted,#8a8f9c)' };\nconst SHELL: CSSProperties = { display: 'flex', flexDirection: 'column', height: 'var(--me-editor-shell-height)', minHeight: 0, position: 'relative' };\nconst ACTIONS: CSSProperties = { display: 'flex', alignItems: 'center', gap: 8, marginBottom: 10 };\nconst BACK: CSSProperties = { padding: '6px 10px', background: 'var(--me-chip,#1c1c20)', color: 'var(--me-fg,#e7e7ee)', border: '1px solid var(--me-border,#26262b)', borderRadius: 6, cursor: 'pointer', font: 'inherit' };\n","/**\n * 导出 FormData 组装器现集中在 @media-editor/core/browser(React/Vue 共用);此处仅 re-export 保持入口稳定。\n */\nexport { buildVideoExportFormData } from '@media-editor/core/browser';\n","/**\n * @media-editor/react —— React 适配层。\n * 视频:useVideoEditor(无头引擎绑定)+ <VideoEditor>(参考 UI)+ buildVideoExportFormData。\n * 图片:<ImageEditor>(薄包 @media-editor/image,内部 React 不外泄)。\n */\nexport { useVideoEditor, type UseVideoEditor } from './useVideoEditor';\nexport { ImageEditor, type ImageEditorProps } from './ImageEditor';\nexport { VideoEditor, type VideoEditorProps } from './VideoEditor';\nexport { MediaEditor, type MediaEditorProps } from './MediaEditor';\nexport { buildVideoExportFormData } from './buildExport';\n\n// 透传常用类型,免消费方再装 core\nexport { VideoEditorEngine } from '@media-editor/core/engine';\nexport type { MountImageEditorOptions, ImageEditorHandle } from '@media-editor/image';\n"],"mappings":";AAIA,SAAS,SAAS,QAAQ,4BAA4B;AACtD,SAAS,yBAAyB;AAiB3B,SAAS,eAAe,UAA8C;AAC3E,QAAM,MAAM,OAAiC,IAAI;AACjD,MAAI,CAAC,IAAI,QAAS,KAAI,UAAU,YAAY,IAAI,kBAAkB;AAClE,QAAM,SAAS,IAAI;AAEnB,QAAM,QAAQ,qBAAqB,OAAO,WAAW,OAAO,aAAa,OAAO,WAAW;AAE3F,SAAO;AAAA,IACL,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA,SAAS,OAAO,QAAQ;AAAA,MACxB,SAAS,OAAO,QAAQ;AAAA,MACxB,eAAe,OAAO,cAAc;AAAA,MACpC,iBAAiB,OAAO,gBAAgB;AAAA,IAC1C;AAAA,IACA,CAAC,QAAQ,KAAK;AAAA,EAChB;AACF;;;ACpCA,SAAS,WAAW,UAAAA,eAAkC;AA8C7C;AA3CT,IAAI,sBAA4E;AAEhF,SAAS,mBAAmB;AAC1B,gDAAwB,OAAO,qBAAqB;AACpD,S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