@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.4

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 (325) hide show
  1. package/README.md +1 -1
  2. package/cli/dist/lib/cli/project.js +2 -16
  3. package/cli/dist/lib/config.js +20 -29
  4. package/cli/dist/lib/local-test.js +3 -19
  5. package/cli/dist/lib/paths.js +11 -0
  6. package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
  7. package/cli/dist/lib/resolveNpmSpawn.js +71 -0
  8. package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
  9. package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
  10. package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
  11. package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
  12. package/cli/dist/lib/templates/shared/i18n.js +2 -2
  13. package/cli/dist/lib/templates/shared/paths.js +3 -4
  14. package/cli/dist/lib/types/package-config.d.ts +1 -0
  15. package/cli/lib/cli/project.ts +2 -18
  16. package/cli/lib/config.ts +19 -30
  17. package/cli/lib/local-test.ts +3 -22
  18. package/cli/lib/paths.ts +15 -0
  19. package/cli/lib/resolveNpmSpawn.ts +72 -0
  20. package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
  21. package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
  22. package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
  23. package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
  24. package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
  25. package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
  26. package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
  27. package/cli/lib/templates/shared/i18n.ts +2 -2
  28. package/cli/lib/templates/shared/paths.ts +3 -4
  29. package/cli/lib/types/package-config.ts +1 -0
  30. package/cli/package.json +1 -1
  31. package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
  32. package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
  33. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
  34. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
  35. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
  36. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
  37. package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
  38. package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
  39. package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
  40. package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
  41. package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
  42. package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
  43. package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
  44. package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
  45. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
  46. package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
  47. package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
  48. package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
  49. package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
  50. package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
  51. package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
  52. package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
  53. package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
  54. package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
  55. package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
  56. package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
  57. package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
  58. package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
  59. package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
  60. package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
  61. package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
  62. package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
  63. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
  64. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
  65. package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
  66. package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
  67. package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
  68. package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
  69. package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
  70. package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
  71. package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
  72. package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
  73. package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
  74. package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
  75. package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
  76. package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
  77. package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
  78. package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
  79. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
  80. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
  81. package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
  82. package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
  83. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
  84. package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
  85. package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
  86. package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
  87. package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
  88. package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
  89. package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
  90. package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
  91. package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
  92. package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
  93. package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
  94. package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
  95. package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
  96. package/cli/scripts/cli-matrix-smoke.ts +19 -10
  97. package/cli/scripts/verify-global-cli.ts +1 -1
  98. package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
  99. package/cli/tsconfig.json +2 -2
  100. package/emailmaker-core.aa9efbce.js +1 -0
  101. package/emailmaker-esm.js +788 -153
  102. package/emailmaker.d.ts +32 -0
  103. package/emailmaker.js +4 -4
  104. package/iframe/js/amp.BGJMqoms.js +1 -1
  105. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  106. package/iframe/js/iframe-eblock.js +1 -1
  107. package/iframe/js/iframe.js +1 -1
  108. package/iframe/js/rules.BSaCN7eK.js +1 -1
  109. package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
  110. package/images/integrations/activecampaign.svg +4 -0
  111. package/images/integrations/bento.svg +9 -0
  112. package/images/integrations/brevo.svg +7 -0
  113. package/images/integrations/campaign_monitor.svg +10 -0
  114. package/images/integrations/constant_contact.svg +24 -0
  115. package/images/integrations/dotdigital.svg +144 -0
  116. package/images/integrations/getresponse.svg +23 -0
  117. package/images/integrations/hubspot.svg +3 -0
  118. package/images/integrations/klaviyo.svg +10 -0
  119. package/images/integrations/mailchimp.svg +9 -0
  120. package/images/integrations/salesforce.svg +20 -0
  121. package/js/browser-image-compression.js +9 -0
  122. package/package.json +2 -5
  123. package/runtime/@ant-design/cssinjs/index.js +1 -1
  124. package/runtime/@ant-design/icons/index.js +1 -1
  125. package/runtime/@ant-design/pro-layout/index.js +1 -1
  126. package/runtime/README.md +13 -13
  127. package/runtime/antd/index.js +1 -1
  128. package/runtime/app-core/index.js +1 -2
  129. package/runtime/classnames/index.js +1 -1
  130. package/runtime/core/index.js +6 -6
  131. package/runtime/dayjs/index.js +1 -1
  132. package/runtime/di/index.js +1 -2
  133. package/runtime/disposable/index.js +1 -2
  134. package/runtime/errors-runtime/index.js +1 -2
  135. package/runtime/guid/index.js +1 -2
  136. package/runtime/index.js +2 -4
  137. package/runtime/package.json +2 -3
  138. package/runtime/prop-types/index.js +1 -1
  139. package/runtime/react/index.js +1 -1
  140. package/runtime/react/jsx-dev-runtime/index.js +1 -1
  141. package/runtime/react/jsx-runtime/index.js +1 -1
  142. package/runtime/react-dom/client/index.js +1 -1
  143. package/runtime/react-dom/index.js +1 -1
  144. package/runtime/react-router-dom/index.js +1 -1
  145. package/runtime/uuid/index.js +1 -1
  146. package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
  147. package/static/core/192ec827.js +1 -0
  148. package/static/core/22c1de2e2.js +1 -0
  149. package/static/core/24faedf0.js +1 -0
  150. package/static/core/29231645.js +1 -0
  151. package/static/core/2a3177fc2.js +1 -0
  152. package/static/core/346aabd2.js +3 -0
  153. package/static/core/3b800ed6.js +1 -0
  154. package/static/core/3e840e90.js +1 -0
  155. package/static/core/40cc9fd7.js +1 -0
  156. package/static/core/421bdec22.js +1 -0
  157. package/static/core/4aaa358b2.js +903 -0
  158. package/static/core/50ff48bc.js +4 -0
  159. package/static/core/5282795d2.js +6 -0
  160. package/static/core/563a283d.js +1 -0
  161. package/static/core/5d47e095.js +47 -0
  162. package/static/core/5f574386.js +1 -0
  163. package/static/core/67a41193.js +1 -0
  164. package/static/core/698dace4.js +7 -0
  165. package/static/core/6b648e2d.js +1 -0
  166. package/static/core/7629adfd.js +1 -0
  167. package/static/core/7717f2932.js +3 -0
  168. package/static/core/776cb34a.js +1 -0
  169. package/static/core/78a1e31e.js +1 -0
  170. package/static/core/7d56d643.js +1 -0
  171. package/static/core/841752212.js +40 -0
  172. package/static/core/8477e97e.js +1 -0
  173. package/static/core/8756d562.js +1 -0
  174. package/static/core/91d328d8.js +1 -0
  175. package/static/core/9270dbb6.js +6 -0
  176. package/static/core/96371334.js +566 -0
  177. package/static/core/9b9ddaef2.js +168 -0
  178. package/static/core/af1da4b4.js +1 -0
  179. package/static/core/b5096b152.js +471 -0
  180. package/static/core/bde6775a.js +1 -0
  181. package/static/core/bf1b888c.js +4 -0
  182. package/static/core/cec8d739.js +11 -0
  183. package/static/core/cf45bf332.js +598 -0
  184. package/static/core/cfac3d32.js +1 -0
  185. package/static/core/d21c95cf2.js +1 -0
  186. package/static/core/dbd9ca52.js +1 -0
  187. package/static/core/dc590181.js +1 -0
  188. package/static/core/e0039d55.js +1 -0
  189. package/static/core/e4071c1a.js +4 -0
  190. package/static/core/ef87b75c.js +41 -0
  191. package/static/core/f47701f32.js +20 -0
  192. package/static/core/f83d7ac42.js +3 -0
  193. package/static/core/fcc67e6b.js +1 -0
  194. package/static/core/fd40d85c.js +1 -0
  195. package/static/core/fe638847.js +1 -0
  196. package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
  197. package/static/esm/4b679053.js +27 -0
  198. package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
  199. package/static/runtime/disposable-CD74igiJ.js +1 -0
  200. package/static/runtime/guid-C0wuVR8v.js +1 -0
  201. package/vite/index.d.ts +17 -6
  202. package/vite/index.js +315 -270
  203. package/vite/pluginDev/index.d.ts +10 -19
  204. package/vite/pluginDev/index.js +251 -204
  205. package/webpack/index.d.ts +24 -5
  206. package/webpack/index.js +168 -144
  207. package/webpack/pluginDev/index.d.ts +21 -22
  208. package/webpack/pluginDev/index.js +242 -177
  209. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
  210. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
  211. package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
  212. package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
  213. package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
  214. package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
  215. package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
  216. package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
  217. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
  218. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
  219. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
  220. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
  221. package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
  222. package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
  223. package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
  224. package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
  225. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
  226. package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
  227. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
  228. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
  229. package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
  230. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
  231. package/emailmaker-core.80d62b88.js +0 -569
  232. package/runtime/_core/app-core/index.js +0 -1
  233. package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
  234. package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
  235. package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
  236. package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
  237. package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
  238. package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
  239. package/runtime/_core/di/index.js +0 -1
  240. package/runtime/_core/disposable/index.js +0 -1
  241. package/runtime/_core/errors-runtime/index.js +0 -1
  242. package/runtime/_core/guid/index.js +0 -1
  243. package/runtime/_core/index.js +0 -1
  244. package/shared/hostBootstrap.js +0 -47
  245. package/shared/pluginDevOptions.js +0 -31
  246. package/shared/runtimeManifest.js +0 -72
  247. package/shared/stringCase.js +0 -16
  248. package/static/core/2360f32a.js +0 -3
  249. package/static/core/2687db56.js +0 -3
  250. package/static/core/2b250af6.js +0 -1261
  251. package/static/core/3469930c.js +0 -302
  252. package/static/core/34ce9042.js +0 -201
  253. package/static/core/4091ba5b.js +0 -25
  254. package/static/core/41ce3a6a.js +0 -173
  255. package/static/core/4ac4908c.js +0 -2213
  256. package/static/core/519096c1.js +0 -2597
  257. package/static/core/5fa1772b.js +0 -116550
  258. package/static/core/61312909.js +0 -3
  259. package/static/core/62a98c07.js +0 -75301
  260. package/static/core/6309c0f2.js +0 -3
  261. package/static/core/68d9f440.js +0 -3
  262. package/static/core/73b645ab.js +0 -2
  263. package/static/core/81019351.js +0 -280
  264. package/static/core/835b37ef.js +0 -591
  265. package/static/core/91242fb3.js +0 -3
  266. package/static/core/972b15b0.js +0 -92399
  267. package/static/core/974ef468.js +0 -493
  268. package/static/core/a17614422.js +0 -38078
  269. package/static/core/a2fa7b5b.js +0 -4232
  270. package/static/core/a513adfd.js +0 -89857
  271. package/static/core/a7c73a9b.js +0 -3813
  272. package/static/core/b64c7c90.js +0 -228
  273. package/static/core/cdc9ba92.js +0 -4711
  274. package/static/core/d1db685d.js +0 -2193
  275. package/static/core/d661febc.js +0 -3
  276. package/static/core/d6d2d2d0.js +0 -23
  277. package/static/core/df1a1225.js +0 -607
  278. package/static/core/e5bff179.js +0 -1302
  279. package/static/core/e5d602f5.js +0 -2
  280. package/static/core/eb029366.js +0 -1532
  281. package/static/core/f46c035a.js +0 -2
  282. package/static/core/f8b9d89a.js +0 -461
  283. package/static/core/fd897ad7.js +0 -3
  284. package/static/core/fdd890c7.js +0 -6168
  285. package/static/esm/29eb18ff.js +0 -164
  286. package/vite/mime-types.js +0 -179
  287. package/vite/utils.js +0 -44
  288. /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  289. /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
  290. /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
  291. /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  292. /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
  293. /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
  294. /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  295. /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  296. /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  297. /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  298. /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  299. /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  300. /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  301. /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  302. /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  303. /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  304. /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  305. /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  306. /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.aa9efbce.html} +0 -0
  307. /package/iframe/{iframe.80d62b88.html → iframe.aa9efbce.html} +0 -0
  308. /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
  309. /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
  310. /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
  311. /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
  312. /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
  313. /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
  314. /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
  315. /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
  316. /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
  317. /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
  318. /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
  319. /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
  320. /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
  321. /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
  322. /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
  323. /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
  324. /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
  325. /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
@@ -1,569 +0,0 @@
1
- import { a as e, g as t, i as n, n as r, o as i, t as a } from "./static/core/4091ba5b.js";
2
- import { At as o, Dt as s, Et as c, Ft as l, It as u, Lt as d, Mt as f, Nt as p, Ot as m, Pt as h, Rt as g, Tt as _, Ut as ee, Vt as v, _ as y, a as b, gt as te, kt as x, n as S, vt as ne, yt as re } from "./static/core/cdc9ba92.js";
3
- import { Zt as C } from "./static/core/4ac4908c.js";
4
- import { a as w, n as ie, o as T, t as E } from "./static/core/974ef468.js";
5
- import "./static/core/a513adfd.js";
6
- import "./static/core/a2fa7b5b.js";
7
- import "./static/core/972b15b0.js";
8
- import { T as D, b as O, o as k, u as A } from "./static/core/34ce9042.js";
9
- import "./static/core/5fa1772b.js";
10
- import { f as j, m as M, t as N, u as P } from "./static/core/eb029366.js";
11
- //#region src/plugin/mixins/appInitMixin/index.ts
12
- var F = t(), I = c((e) => {
13
- let t = !0, n;
14
- return { setOptions(r) {
15
- if (r.hasOwnProperty("baseUrl")) {
16
- let i = e.getInstance(te), a = ne(r.baseUrl);
17
- n !== a && (i?.setOptions({ baseUrl: a }), n = a, t = !0);
18
- }
19
- if (t && !e.getInstance(p)) {
20
- let n = e.getInstance(i);
21
- e.injectFactory(s, async (e, t) => t || n.app.app_init_create({}).then(({ data: e }) => e), !0), t = !1;
22
- }
23
- } };
24
- }), L = c((e) => {
25
- let t = e.getInstance(x), n = new ee(), r = T(n.event);
26
- t.addDispose(() => {
27
- let t = e.getInstance(o);
28
- n.fire(t);
29
- });
30
- let i = t.addDisposable(new w(r));
31
- return t.addDisposable(n), {
32
- setOptions({ handleDestroy: e }) {
33
- i.setListener(e);
34
- },
35
- instance: {
36
- handleDestroy: r,
37
- destroy: () => t.dispose()
38
- }
39
- };
40
- }), R = c((e) => {
41
- let t = e.getInstance(x), n = T(d(e, m)), r = t.addDisposable(new w(n));
42
- return {
43
- setOptions({ handleLoad: e }) {
44
- r.setListener(e);
45
- },
46
- instance: { handleLoad: n },
47
- destroy: () => t.dispose()
48
- };
49
- }), z = c((e) => {
50
- let t = e.getInstance(x), n = t.addDisposable(new v()), r = t.addDisposable(new v()), i = t.addDisposable(new v()), a = T(n.event), o = T(r.event), s = T(i.event), c = t.addDisposable(new w(a)), l = t.addDisposable(new w(o)), u = t.addDisposable(new w(s)), d = null, f = null, p = !1;
51
- return {
52
- instance: {
53
- handleSetOptions: a,
54
- handleOptionsChanged: o,
55
- handleConfigChanged: s
56
- },
57
- async setOptions(a) {
58
- if (c.setListener(a.handleSetOptions), l.setListener(a.handleOptionsChanged), u.setListener(a.handleConfigChanged), await n.fire(a), !p) {
59
- p = !0;
60
- let n = e.getInstance(h);
61
- n && (f = n.getState().configSlice?.config ?? null, d = n.subscribe(() => {
62
- let e = n.getState().configSlice?.config;
63
- f !== e && e && (i.fire(e), f = e);
64
- }), t.addDispose(d));
65
- }
66
- await r.fire(a);
67
- },
68
- dispose() {
69
- d &&= (d(), null);
70
- }
71
- };
72
- }), B = 1e4;
73
- function V(e, t, n, r = {}) {
74
- let i = Object.assign({}, e);
75
- for (let [e, a] of Object.entries(t)) if (a !== void 0) if (n.includes(e) && typeof a == "object" && a) {
76
- let t = i[e], n = r[e] ?? {};
77
- i[e] = Object.assign({}, typeof t == "object" && t ? t : n, a);
78
- } else i[e] = a;
79
- return i;
80
- }
81
- var H = {
82
- border: {
83
- all: null,
84
- top: null,
85
- right: null,
86
- bottom: null,
87
- left: null
88
- },
89
- borderRadius: {
90
- all: 5,
91
- topLeft: null,
92
- topRight: null,
93
- bottomRight: null,
94
- bottomLeft: null
95
- },
96
- borderRadiusCards: {
97
- all: 10,
98
- topLeft: null,
99
- topRight: null,
100
- bottomRight: null,
101
- bottomLeft: null
102
- },
103
- padding: {
104
- all: null,
105
- top: null,
106
- right: null,
107
- bottom: null,
108
- left: null
109
- }
110
- }, U = class {
111
- constructor(e) {
112
- this._editor = e;
113
- }
114
- async getEmailLayoutSettings() {
115
- let e = await this._editor.container.getInstanceAsync(h);
116
- await this._waitForEmailSettingsFromIframe(e);
117
- let t = A(e.getState());
118
- return {
119
- backgroundColor: t.backgroundColor || "",
120
- backgroundImage: (t.backgroundImage || []).map((e) => ({
121
- type: "url",
122
- value: e?.value || ""
123
- })),
124
- backgroundPositionX: t.backgroundPositionX || "",
125
- backgroundPositionY: t.backgroundPositionY || "",
126
- backgroundRepeat: t.backgroundRepeat || "",
127
- backgroundSize: t.backgroundSize || "",
128
- backgroundColorContent: t.backgroundColorContent || "",
129
- textStrong: t.textStrong || !1,
130
- textItalic: t.textItalic || !1,
131
- textUnderline: t.textUnderline || !1,
132
- width: t.width,
133
- responsive: t.responsive
134
- };
135
- }
136
- async setEmailLayoutSettings(e) {
137
- let t = await this._editor.container.getInstanceAsync(h);
138
- await this._waitForEmailSettingsFromIframe(t);
139
- let n = {
140
- ...A(t.getState()),
141
- ...e
142
- };
143
- t.dispatch(D(n));
144
- }
145
- async _waitForEmailSettingsFromIframe(e, t = B) {
146
- let n = e.getState(), r = k(n), i = A(n);
147
- if (r?.is_inited && i && Object.keys(i).length > 0 && (i.backgroundColor || i.backgroundImage?.[0]?.value || i.width?.value || i.responsive !== void 0) || r?.is_inited) return;
148
- let a = this._editor.container, o = d(a, l.ON_EMAIL_INIT_ID);
149
- return new Promise((e) => {
150
- let n = !1, r, i = () => {
151
- r &&= (clearTimeout(r), void 0);
152
- }, a = o(() => {
153
- n || (n = !0, i(), a.dispose(), e());
154
- });
155
- r = setTimeout(() => {
156
- n || (n = !0, a.dispose(), `${t}`, e());
157
- }, t);
158
- });
159
- }
160
- async getEmailContentStyles() {
161
- let e = k((await this._editor.container.getInstanceAsync(h)).getState()), t = y;
162
- try {
163
- t = e?.common_styles && e.common_styles !== "{}" ? JSON.parse(e.common_styles) : y;
164
- } catch {}
165
- return {
166
- text: {
167
- fontFamily: t.text?.fontFamily || ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],
168
- fontSize: t.text?.fontSize || 16,
169
- fontSizeDim: t.text?.fontSizeDim || "px",
170
- lineHeight: t.text?.lineHeight || 21,
171
- lineHeightDim: t.text?.lineHeightDim || "px",
172
- color: t.text?.color || "#5a5a5a",
173
- contrastColor: t.text?.contrastColor || "#FFFFFF",
174
- textAlign: t.text?.textAlign || "left",
175
- paddingBottom: t.text?.paddingBottom || 10,
176
- paddingBottomDim: t.text?.paddingBottomDim || "px"
177
- },
178
- headings: {
179
- fontFamily: t.headings?.fontFamily || ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],
180
- fontSize: t.headings?.fontSize || 24,
181
- fontSizeDim: t.headings?.fontSizeDim || "px",
182
- lineHeight: t.headings?.lineHeight || 32,
183
- lineHeightDim: t.headings?.lineHeightDim || "px",
184
- color: t.headings?.color || "#333333",
185
- contrastColor: t.headings?.contrastColor || "#FFFFFF",
186
- textAlign: t.headings?.textAlign || "left",
187
- paddingTop: t.headings?.paddingTop || 20,
188
- paddingTopDim: t.headings?.paddingTopDim || "px",
189
- paddingBottom: t.headings?.paddingBottom || 20,
190
- paddingBottomDim: t.headings?.paddingBottomDim || "px",
191
- letterSpacing: t.headings?.letterSpacing || 0,
192
- letterSpacingDim: t.headings?.letterSpacingDim || "px",
193
- bold: t.headings?.bold ?? !0,
194
- italic: t.headings?.italic ?? !1
195
- },
196
- links: {
197
- color: t.links?.color || "#1C52DC",
198
- contrastColor: t.links?.contrastColor || "#FFFFFF",
199
- underline: t.links?.underline ?? !0
200
- },
201
- buttons: {
202
- fontFamily: t.buttons?.fontFamily || ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],
203
- fontSize: t.buttons?.fontSize || 16,
204
- fontSizeDim: t.buttons?.fontSizeDim || "px",
205
- letterSpacing: t.buttons?.letterSpacing || 0,
206
- letterSpacingDim: t.buttons?.letterSpacingDim || "px",
207
- color: t.buttons?.color || "#FFFFFF",
208
- contrastColor: t.buttons?.contrastColor || "#1C52DC",
209
- bold: t.buttons?.bold ?? !1,
210
- italic: t.buttons?.italic ?? !1,
211
- backgroundColor: t.buttons?.backgroundColor || "#1C52DC",
212
- contrastBackgroundColor: t.buttons?.contrastBackgroundColor || "#FFFFFF",
213
- marginTop: t.buttons?.marginTop || 10,
214
- marginTopDim: t.buttons?.marginTopDim || "px",
215
- marginBottom: t.buttons?.marginBottom || 10,
216
- marginBottomDim: t.buttons?.marginBottomDim || "px",
217
- border: t.buttons?.border || {
218
- all: null,
219
- top: null,
220
- right: null,
221
- bottom: null,
222
- left: null
223
- },
224
- borderRadius: t.buttons?.borderRadius || {
225
- all: 5,
226
- topLeft: null,
227
- topRight: null,
228
- bottomRight: null,
229
- bottomLeft: null
230
- },
231
- textAlign: t.buttons?.textAlign || "center",
232
- padding: t.buttons?.padding || {
233
- all: null,
234
- top: null,
235
- right: null,
236
- bottom: null,
237
- left: null
238
- }
239
- },
240
- block: {
241
- backgroundColor: t.block?.backgroundColor || "#FFFFFF",
242
- contrastBackgroundColor: t.block?.contrastBackgroundColor || "#1C52DC",
243
- padding: t.block?.padding || {
244
- all: null,
245
- top: null,
246
- right: null,
247
- bottom: null,
248
- left: null
249
- }
250
- },
251
- cards: {
252
- contrastBackgroundColor: t.cards?.contrastBackgroundColor || "#1C52DC",
253
- contrastTextColor: t.cards?.contrastTextColor || "#FFFFFF",
254
- baseBackgroundColor: t.cards?.baseBackgroundColor || "#F8F8F8",
255
- baseTextColor: t.cards?.baseTextColor || "#333333",
256
- border: t.cards?.border || {
257
- all: null,
258
- top: null,
259
- right: null,
260
- bottom: null,
261
- left: null
262
- },
263
- borderRadius: t.cards?.borderRadius || {
264
- all: 10,
265
- topLeft: null,
266
- topRight: null,
267
- bottomRight: null,
268
- bottomLeft: null
269
- }
270
- }
271
- };
272
- }
273
- async setEmailContentStyles(e) {
274
- let t = await this._editor.container.getInstanceAsync(h), n = k(t.getState());
275
- if (!n) return;
276
- let r = { ...y };
277
- try {
278
- n.common_styles && n.common_styles !== "{}" && (r = JSON.parse(n.common_styles));
279
- } catch {}
280
- e.text !== void 0 && (r.text = {
281
- ...r.text || {},
282
- ...e.text
283
- }), e.headings !== void 0 && (r.headings = {
284
- ...r.headings || {},
285
- ...e.headings
286
- }), e.links !== void 0 && (r.links = {
287
- ...r.links || {},
288
- ...e.links
289
- }), e.buttons !== void 0 && (r.buttons = V(r.buttons || {}, e.buttons, [
290
- "border",
291
- "borderRadius",
292
- "padding"
293
- ], {
294
- border: H.border,
295
- borderRadius: H.borderRadius,
296
- padding: H.padding
297
- })), e.block !== void 0 && (r.block = V(r.block || {}, e.block, ["padding"], { padding: H.padding })), e.cards !== void 0 && (r.cards = V(r.cards || {}, e.cards, ["border", "borderRadius"], {
298
- border: H.border,
299
- borderRadius: H.borderRadiusCards
300
- })), t.dispatch(O({
301
- ...n,
302
- common_styles: JSON.stringify(r)
303
- }));
304
- }
305
- }, W = {
306
- ...g,
307
- EmailSettingsApi: U
308
- }, G = {
309
- ...g,
310
- EmailSettingsApi: U
311
- };
312
- ({ ...W });
313
- function K() {
314
- a.addAll(G);
315
- }
316
- _([
317
- L,
318
- R,
319
- z,
320
- b,
321
- S,
322
- I
323
- ]);
324
- async function q() {
325
- return (await import("./static/core/a17614422.js")).default;
326
- }
327
- var J = (e) => {
328
- let t = null, n = !1;
329
- return {
330
- instance: {},
331
- async setOptions(r) {
332
- if (!t && !n) {
333
- t = (await q())(e);
334
- let n = await e.getInstanceAsync(o);
335
- Object.assign(n, t.instance || {}), K();
336
- }
337
- t && await t.setOptions(r);
338
- },
339
- dispose() {
340
- t?.dispose(), n = !0;
341
- }
342
- };
343
- }, ae = _([...[
344
- L,
345
- R,
346
- z,
347
- b,
348
- S,
349
- I
350
- ], J]), oe = r(), se = c((t) => {
351
- let n;
352
- function r() {
353
- if (!n) throw Error("PluginCollection not initialized. Call init() first.");
354
- return n;
355
- }
356
- return {
357
- async setOptions(r) {
358
- let i = t.getInstance(o), a = t.getInstance(e);
359
- n ||= new oe.PluginCollection(i, a);
360
- let s = r?.plugins || [];
361
- i && await n.setPlugins(s);
362
- },
363
- instance: {
364
- use(e) {
365
- return typeof e == "function" ? r().useByCtor(e) : r().useByKey(e);
366
- },
367
- useAsync(e) {
368
- return r().useAsync(e);
369
- },
370
- waitPlugin(e) {
371
- return r().waitFor(e);
372
- }
373
- },
374
- dispose() {
375
- n?.dispose(), n = void 0;
376
- }
377
- };
378
- }), ce = class {
379
- _storage = Object.create(null);
380
- get(e) {
381
- let t = this._storage[e];
382
- return t && (!t.expires || t.expires < Date.now()) ? t.value : "";
383
- }
384
- set(e, t, n) {
385
- this._storage[e] = {
386
- value: t,
387
- expires: n.expires ? n.expires * 1e3 + Date.now() : void 0
388
- };
389
- }
390
- remove(e) {
391
- delete this._storage[e];
392
- }
393
- }, Y = 100, X = {
394
- events: [],
395
- container: null,
396
- collection: null
397
- };
398
- function le(e, t) {
399
- X.container = e, X.collection = t, t.onLifecycle((e) => {
400
- X.events.push({
401
- ...e,
402
- timestamp: Date.now()
403
- }), X.events.length > Y && (X.events = X.events.slice(-Y));
404
- }), typeof window < "u" && (window.__EMAILMAKER_DEVTOOLS__ = Z());
405
- }
406
- function Z() {
407
- return {
408
- enabled: !0,
409
- plugins() {
410
- return X.collection ? X.collection.getStatus().map((e) => ({
411
- ...e,
412
- hasInit: !0,
413
- hasDispose: !0,
414
- hasAfterInit: !0
415
- })) : [];
416
- },
417
- registry() {
418
- if (!X.container) return [];
419
- try {
420
- return X.container.getInstance(e).keys().map(String);
421
- } catch {
422
- return [];
423
- }
424
- },
425
- events(e = 50) {
426
- return X.events.slice(-e);
427
- },
428
- clearEvents() {
429
- X.events = [];
430
- },
431
- getPlugin(e) {
432
- if (X.collection) try {
433
- return X.collection.use(e);
434
- } catch {
435
- `${e}`;
436
- return;
437
- }
438
- }
439
- };
440
- }
441
- //#endregion
442
- //#region src/plugin/engine/init.ts
443
- var ue = _([ae, se]);
444
- async function Q(e) {
445
- let t = new C.Disposable();
446
- async function r() {
447
- let r = F.DependencyResolver.createChild();
448
- if (e.standaloneKey) {
449
- r.inject(p, e.standaloneKey);
450
- let n = d(r, l.FILE_PROXY_EVENT_ID);
451
- t.addDisposable(n(async ({ url: e }) => (await fetch(e)).blob(), Number.MIN_VALUE));
452
- }
453
- r.inject(x, t), r.inject(n, new ce()), re(r);
454
- let i = ue(r), a = {
455
- ...i.instance,
456
- container: r
457
- };
458
- if (r.inject(o, a), await i.setOptions(e), e.devTools) try {
459
- let e = r.getInstance(f);
460
- e && le(r, e);
461
- } catch {}
462
- return u(r, m).fire(a), a;
463
- }
464
- return r();
465
- }
466
- //#endregion
467
- //#region src/plugin/parseAMP.ts
468
- async function $(e) {
469
- let t = /* @__PURE__ */ new Map();
470
- typeof e == "object" && (e = e.code);
471
- let n = await N(e, async (e) => {
472
- await j(e.document, (e) => P.getEscapedText(e) === e ? M(e) : e, t);
473
- for (let t of e.document.querySelectorAll(".em-amp-show-disabled")) t.remove();
474
- e.handleRender(async ({ contentDocument: e, managedNodeController: t }) => {
475
- await ie(e, {
476
- mappedTags: { script: "___script" },
477
- commit: () => t.commit()
478
- });
479
- });
480
- }, [800]), r = await N(e, async (e) => {
481
- await j(e.document, (e) => P.getEscapedText(e) === e ? M(e) : e, t);
482
- for (let t of e.document.querySelectorAll(".em-amp-show-only")) t.remove();
483
- await E(e.document, { mappedTags: { script: "___script" } });
484
- }, [800]);
485
- return {
486
- code: e,
487
- html: r,
488
- ampHtml: n
489
- };
490
- }
491
- //#endregion
492
- //#region src/plugin/entries/core.ts
493
- (function(e) {
494
- if (!(!e || typeof e != "object")) {
495
- var t = e.__emailmaker__ ||= {}, n = t.__compat ||= {};
496
- n.host = n.host || null, n.packages = n.packages || {}, n.warned = n.warned || {}, n.normalizeVersion ||= function(e) {
497
- return String(e || "").split("-")[0] || "0.0.0";
498
- }, n.parseVersion ||= function(e) {
499
- var t = n.normalizeVersion(e).split(".");
500
- return {
501
- major: parseInt(t[0] || "0", 10),
502
- minor: parseInt(t[1] || "0", 10),
503
- patch: parseInt(t[2] || "0", 10)
504
- };
505
- }, n.compareVersions ||= function(e, t) {
506
- var r = n.parseVersion(e), i = n.parseVersion(t);
507
- return r.major === i.major ? r.minor === i.minor ? r.patch - i.patch : r.minor - i.minor : r.major - i.major;
508
- }, n.satisfies ||= function(e, t) {
509
- if (!t || t === "*" || t === "latest") return !0;
510
- var r = n.normalizeVersion(e), i = String(t || "").trim();
511
- if (!i) return !0;
512
- if (i.charAt(0) === "^") {
513
- var a = n.parseVersion(i.slice(1)), o = n.parseVersion(r);
514
- return n.compareVersions(r, i.slice(1)) < 0 ? !1 : a.major > 0 ? o.major === a.major : a.minor > 0 ? o.major === 0 && o.minor === a.minor : o.major === 0 && o.minor === 0 && o.patch === a.patch;
515
- }
516
- return n.normalizeVersion(r) === n.normalizeVersion(i);
517
- }, n.warnOnce ||= function(e, t, r) {
518
- n.warned[e] || (n.warned[e] = !0);
519
- }, n.validateAll ||= function() {
520
- var e = n.host, t = n.packages || {};
521
- e && e.supports && Object.keys(t).forEach(function(r) {
522
- var i = t[r], a = e.supports[r];
523
- a && !n.satisfies(i.version, a) && n.warnOnce("host:" + r + ":" + i.version + ":" + a, "Host supports a different package version range.", {
524
- packageId: r,
525
- packageVersion: i.version,
526
- supportedRange: a,
527
- hostVersion: e.version
528
- });
529
- }), Object.keys(t).forEach(function(r) {
530
- var i = t[r], a = i.requires || {};
531
- Object.keys(a).forEach(function(o) {
532
- var s = a[o], c = o === "host" ? e && e.version : t[o] && t[o].version;
533
- c && (n.satisfies(c, s) || n.warnOnce(r + ":" + o + ":" + c + ":" + s, "Loaded package is outside the declared compatibility range.", {
534
- packageId: r,
535
- packageVersion: i.version,
536
- targetId: o,
537
- targetVersion: c,
538
- requiredRange: s
539
- }));
540
- });
541
- });
542
- }, n.registerHost ||= function(e) {
543
- n.host = e, n.validateAll();
544
- }, n.registerPackage ||= function(e) {
545
- n.packages[e.id] = e, n.validateAll();
546
- }, t.__compat.registerHost({
547
- version: "1.0.107-dev.3",
548
- supports: {
549
- "ui-kit": "^0.1.0",
550
- "extensions-api": "^0.9.0",
551
- "extensions-react": "^0.9.0",
552
- "extensions-sandbox": "^0.9.0"
553
- }
554
- });
555
- }
556
- })(typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : void 0);
557
- var de = "1.0.107-dev.3";
558
- if (typeof window < "u") {
559
- let e = window.__emailmaker__ !== void 0 && window.__emailmaker__ || {}, t = Array.isArray(e.chunks) ? e.chunks : [];
560
- e.chunks = t, t.push({
561
- id: "core",
562
- module: {
563
- init: Q,
564
- parseAMP: $
565
- }
566
- });
567
- }
568
- //#endregion
569
- export { Q as init, $ as parseAMP, de as version };
@@ -1 +0,0 @@
1
- import{n as e,r as t}from"../chunks/app-core-DphKKh8f.js";export{t as PluginCollection,e as PluginRegistry};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-oqAt0Dze.js";import{t}from"./defineProperty-BGJFuFMq.js";var n=Function(`url`,`return import(url)`);function r(e){if(typeof e!=`function`)return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function i(e){return typeof e==`object`&&!!e&&`type`in e&&`url`in e}function a(e){return e}var o=class{constructor(e,n){this._context=e,this._pluginRegistry=n,t(this,`_map`,new Map),t(this,`_optionsMap`,new Map),t(this,`_readyMap`,new Map),t(this,`_resolveMap`,new Map),t(this,`_initializingPlugins`,new Map),t(this,`_creatingPlugins`,new Set),t(this,`_initializedPlugins`,new Set),t(this,`_creationOrder`,[]),t(this,`_lifecycleListeners`,new Set),t(this,`_activated`,!1)}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(let t of Array.from(this._lifecycleListeners))try{t(e)}catch(e){console.warn(`Lifecycle listener threw an error:`,e)}}async _resolveEntry(e){if(typeof e==`string`||typeof e==`symbol`){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e==`function`)return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){let[t,n]=e;if(typeof t==`function`)return{ctor:t,options:n};let r=await this._pluginRegistry.getAsync(t);if(!r)throw Error(`Plugin "${String(t)}" not registered.`);return{ctor:r,options:n}}if(i(e))return this._resolveDescriptor(e);throw Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){let t=e.resolve??(e.type===`umd`?`window`:`module`);if(e.type===`esm`){let r=await n(e.url);if(t===`module`)return{ctor:r.default??r};if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:t}}}if(e.type===`umd`){if(await this._loadScript(e.url),t===`window`&&e.name){let t=globalThis[e.name];if(!t)throw Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:t}}if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:t}}}throw Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??`none`}`)}_loadScript(e){return new Promise((t,n)=>{if(typeof document>`u`){n(Error(`Cannot load UMD script in non-browser environment`));return}let r=document.createElement(`script`);r.src=e,r.onload=()=>t(),r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}initSync(e){let t=[];for(let n of e){let e=this._getOrCreate(n,void 0);t.push(e)}this._activated=!0,this._startPluginsBatch(t)}async init(e){let t=[],n=new Set;for(let r of e){let{ctor:e,options:i}=await this._resolveEntry(r),a=this._getOrCreate(e,i);n.has(a)||(n.add(a),t.push(a))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){let t=new Set,n=[];for(let r of e){let e=await this._resolveEntry(r);t.add(e.ctor),n.push(e)}let r=[];this._map.forEach((e,n)=>{t.has(n)||r.push({key:n,plugin:e})});for(let e=r.length-1;e>=0;e--){let{key:t,plugin:n}=r[e];await this._initializingPlugins.get(n),await this._disposePlugin(n,n.constructor.name),this._map.delete(t),this._optionsMap.delete(t),this._readyMap.delete(n),this._resolveMap.delete(n),this._initializingPlugins.delete(n),this._initializedPlugins.delete(n);let i=this._creationOrder.indexOf(n);i>=0&&this._creationOrder.splice(i,1)}let i=[],a=new Set;for(let{ctor:e,options:t}of n){let n=this._getOrCreate(e,t);a.has(n)||(a.add(n),i.push(n))}this._activated=!0,await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);let{timeout:n}=t??{};return await new Promise((t,r)=>{let i,a=!1,o=()=>{a||(a=!0,i&&clearTimeout(i),this._pluginRegistry.off(e,o),t())};this._pluginRegistry.on(e,o),n!==void 0&&n>0&&(i=setTimeout(()=>{a||(a=!0,this._pluginRegistry.off(e,o),r(Error(`waitFor("${String(e)}") timed out after ${n}ms`)))},n))}),this.useByKeyAsync(e)}useByKey(e){let t=this._pluginRegistry.get(e);if(!t)throw Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);let n=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([n]),n}async useByKeyAsync(e){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);let n=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([n]),n}useByCtor(e,t){let n=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([n]),n}use(e){return typeof e==`function`?this.useByCtor(e):this.useByKey(e)}async useAsync(e){let{ctor:t,options:n}=await this._resolveEntry(e),r=this._getOrCreate(t,n);return this._activated&&await this._startPluginsBatch([r]),r}_getOrCreate(e,t){let n=e;if(!this._map.has(n)){t!==void 0&&this._optionsMap.set(n,t);let r=this._optionsMap.get(n),i=this._createPluginInstance(e,r),o=i.constructor.name;this._emitLifecycle({type:`created`,plugin:i,name:o}),a(i).required?.(),this._map.set(n,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(n)}_createPluginInstance(e,t){let n=e;if(this._creatingPlugins.has(n))throw Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(n);try{return r(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(n)}}_setupReadyPromise(e){let t=new Promise(t=>{this._resolveMap.set(e,t)});this._readyMap.set(e,t)}async _startPluginsBatch(e){let t=Array.from(new Set(e)),n=new Set,r=[];for(let e of t){if(this._initializedPlugins.has(e))continue;let t=this._initializingPlugins.get(e);if(t){n.add(t);continue}r.push(e)}if(r.length>0){let e=this._runBatchLifecycle(r);for(let t of r)this._initializingPlugins.set(t,e);n.add(e),e.finally(()=>{for(let t of r)this._initializingPlugins.get(t)===e&&this._initializingPlugins.delete(t)})}await Promise.all(n)}async _runBatchLifecycle(e){let t=[];for(let n of e){let e=n.constructor.name;this._emitLifecycle({type:`init:start`,plugin:n,name:e});try{await a(n).init?.(),this._emitLifecycle({type:`init:success`,plugin:n,name:e}),t.push(n)}catch(t){this._emitLifecycle({type:`init:error`,plugin:n,name:e,error:t}),console.error(`init() failed for ${e}:`,t)}}for(let e of t){let t=e.constructor.name;this._emitLifecycle({type:`afterInit:start`,plugin:e,name:t});try{await a(e).afterInit?.(),this._emitLifecycle({type:`afterInit:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`afterInit:error`,plugin:e,name:t,error:n}),console.error(`afterInit() failed for ${t}:`,n)}}for(let t of e)this._initializedPlugins.add(t),this._resolveMap.get(t)?.(),this._resolveMap.delete(t)}async _disposePlugin(e,t){this._emitLifecycle({type:`dispose:start`,plugin:e,name:t});try{await a(e).dispose?.(),this._emitLifecycle({type:`dispose:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`dispose:error`,plugin:e,name:t,error:n}),console.warn(`dispose() failed for ${t}:`,n)}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){let t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}},s=class{constructor(){t(this,`_plugins`,new Map),t(this,`_listeners`,new Map)}_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){let n=this._plugins.get(e);if(n?.overrides)for(let e of n.overrides)t=e(t)||t;return t}_notifyListeners(e,t){let n=this._listeners.get(e);if(!n||n.length===0)return;for(let r of n)try{r.callback(t)}catch(t){console.warn(`Plugin registration listener threw an error for "${String(e)}":`,t)}let r=n.filter(e=>!e.once);r.length>0?this._listeners.set(e,r):this._listeners.delete(e)}get(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){let n=await t.loading;return this._applyOverrides(e,n)}if(t?.factory){let n=Promise.resolve(t.factory()).then(n=>(t.ctor=n,t.loading=void 0,this._notifyListeners(e,n),n));t.loading=n;let r=await n;return this._applyOverrides(e,r)}return new Promise(t=>{this.on(e,n=>t(this._applyOverrides(e,n)))})}add(e,t){let n=this._getOrCreateEntry(e);n.ctor=t,this._notifyListeners(e,t)}addAll(e){for(let t of Object.keys(e)){let n=e[t];n!==void 0&&this.add(t,n)}}addAsync(e,t){let n=this._getOrCreateEntry(e);return n.factory=t,{dispose:()=>{n.ctor||(n.factory=void 0)}}}has(e){let t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){let n=this._getOrCreateEntry(e);return n.overrides.push(t),{dispose:()=>{let e=n.overrides.indexOf(t);e>=0&&n.overrides.splice(e,1)}}}on(e,t){let n=this.get(e);n&&t(n);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!1};return r.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){let n=this.get(e);if(n)return t(n),{dispose:()=>{}};let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!0};return r.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){let n=this._listeners.get(e);if(n){let r=n.findIndex(e=>e.callback===t);r>=0&&n.splice(r,1),n.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){let e=this;return{add(t,n){e.add(t,n)}}}},c=e({PluginCollection:()=>o,PluginRegistry:()=>s});export{s as n,o as r,c as t};
@@ -1 +0,0 @@
1
- var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-oqAt0Dze.js";import{t}from"./defineProperty-BGJFuFMq.js";import{t as n}from"./disposable-PhM3rJkj.js";import{t as r}from"./guid-D2-FTZQG.js";var i;function a(e){return`service_container_${e}`}var o=class e extends n{static get globalContainer(){return this._globalContainer}_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(n=e._globalContainer){super(),this._parent=n,t(this,`_injectCallbacks`,[]),t(this,`_injections`,Object.create(null)),t(this,`onInject`,e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}})),n&&this.addDisposable(n.onInject(e=>this._runCallbacks(e)))}inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,r=new n){return r.addDisposable(this.onInject(n=>{e===n&&(r.dispose(),t(this.getInstance(n)))})),this._parent&&r.addDisposable(this._parent._onInject(e,t,r)),this.addDisposable(r),r}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();{let n=t(this);return this.inject(e,n),n}}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let r=a(e);this.injectFactory(r,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let i=new n;return i.addDispose(()=>{this.injectFactory(r,(e,n=[])=>n.filter(e=>e!==t))}),i}addServiceFactory(e,t,r){let i=a(e),o;this.injectFactory(i,(e,n=[])=>(o=t(e,o),n.indexOf(o)<0?[...n,o]:n),r);let s=new n;return s.addDispose(()=>{this.injectFactory(i,(e,t=[])=>t.filter(e=>e!==o))}),s}getServices(e){let t=a(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};i=o,t(o,`_globalContainer`,new i(null));function s(e=r()){return e}var c=e({Container:()=>o,DependencyResolver:()=>l,createIdentifier:()=>s,getServiceContainerId:()=>a}),l=o.globalContainer;export{a,o as i,c as n,s as r,l as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-oqAt0Dze.js";import{t}from"./defineProperty-BGJFuFMq.js";var n=e({Disposable:()=>r}),r=class e{constructor(e=[]){this._inner=e,t(this,`_isDisposed`,!1)}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};export{n,r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-oqAt0Dze.js";import{t}from"./defineProperty-BGJFuFMq.js";var n=e({FileManagerApiError:()=>r,mapHttpStatusToErrorCode:()=>i}),r=class e extends Error{constructor(n,r,i,a){super(n),t(this,`code`,void 0),t(this,`httpStatus`,void 0),t(this,`details`,void 0),this.name=`FileManagerApiError`,this.code=r,this.httpStatus=i,this.details=a,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function i(e,t=`BackendError`){switch(e){case 400:return`ValidationError`;case 401:return`AuthenticationFailed`;case 403:return`AuthorizationFailed`;case 404:return`FileNotFound`;case 413:return`PayloadTooLarge`;case 415:return`UnsupportedMediaType`;case 429:return`RateLimitExceeded`;case 500:return`BackendError`;case 503:return`ServiceUnavailable`;case 504:return`Timeout`;default:return t}}export{n,i as r,r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-oqAt0Dze.js";var t=e({generateUUID:()=>n});function n(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}export{t as n,n as t};
@@ -1 +0,0 @@
1
- import{a as e,i as t,r as n,t as r}from"../chunks/di-BHUzE57z.js";export{t as Container,r as DependencyResolver,n as createIdentifier,e as getServiceContainerId};
@@ -1 +0,0 @@
1
- import{t as e}from"../chunks/disposable-PhM3rJkj.js";export{e as Disposable};
@@ -1 +0,0 @@
1
- import{r as e,t}from"../chunks/errors-runtime-VjCOXaQX.js";export{t as FileManagerApiError,e as mapHttpStatusToErrorCode};
@@ -1 +0,0 @@
1
- import{t as e}from"../chunks/guid-D2-FTZQG.js";export{e as generateUUID};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunks/disposable-PhM3rJkj.js";import{n as t}from"./chunks/di-BHUzE57z.js";import{n}from"./chunks/guid-D2-FTZQG.js";import{t as r}from"./chunks/app-core-DphKKh8f.js";import{n as i}from"./chunks/errors-runtime-VjCOXaQX.js";export{r as AppCore,t as Di,e as Disposable,i as ErrorsRuntime,n as Guid};
@@ -1,47 +0,0 @@
1
- /**
2
- * @param {string} environmentVariable
3
- * @param {string} rawPath
4
- * @returns {string}
5
- */
6
- function createNormalizedPublicPathAssignment(environmentVariable, rawPath) {
7
- const literal = JSON.stringify(String(rawPath || ''));
8
- return [
9
- `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = (function() {`,
10
- ` var rawPath = ${literal};`,
11
- " if (!rawPath) {",
12
- " rawPath = './';",
13
- " }",
14
- " try {",
15
- " var normalizedPath = String(rawPath);",
16
- " if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {",
17
- " return normalizedPath;",
18
- " }",
19
- " var baseUrl = typeof document !== 'undefined' && document.baseURI",
20
- " ? document.baseURI",
21
- " : (typeof window !== 'undefined' && window.location ? window.location.href : '');",
22
- " return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;",
23
- " } catch (_error) {",
24
- " return String(rawPath);",
25
- " }",
26
- "})();",
27
- ].join(' ');
28
- }
29
-
30
- /**
31
- * @param {string} environmentVariable
32
- * @param {string} publicPath
33
- * @param {string} startupPrefetchMode
34
- * @returns {string}
35
- */
36
- function createInitFragment(environmentVariable, publicPath, startupPrefetchMode) {
37
- return [
38
- `window.${environmentVariable} = window.${environmentVariable} || {};`,
39
- createNormalizedPublicPathAssignment(environmentVariable, publicPath),
40
- `if (!window.${environmentVariable}.startupPrefetchMode) window.${environmentVariable}.startupPrefetchMode = "${startupPrefetchMode}";`,
41
- ].join(' ');
42
- }
43
-
44
- module.exports = {
45
- createNormalizedPublicPathAssignment,
46
- createInitFragment,
47
- };