@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,164 +0,0 @@
1
- import { n as e, t } from "./3239c2b2.js";
2
- import { i as n } from "./b273a6c2.js";
3
- import { a as r, o as i, r as a } from "./e8401d17.js";
4
- import * as o from "@emailmaker/runtime/react";
5
- import s, { useCallback as c, useEffect as l, useState as u } from "@emailmaker/runtime/react";
6
- import * as d from "@emailmaker/runtime/react-dom";
7
- import * as f from "@emailmaker/runtime/react-dom/client";
8
- import * as p from "@emailmaker/runtime/react/jsx-runtime";
9
- import { Fragment as m, jsx as h, jsxs as g } from "@emailmaker/runtime/react/jsx-runtime";
10
- import * as _ from "@emailmaker/runtime/react/jsx-dev-runtime";
11
- import * as v from "@emailmaker/runtime/prop-types";
12
- import y from "@emailmaker/runtime/prop-types";
13
- import * as b from "@emailmaker/runtime/react-router-dom";
14
- import * as x from "@emailmaker/runtime/antd";
15
- import { Carousel as S, Checkbox as C, InputNumber as ee, Space as te, Spin as w, Tag as T, theme as E } from "@emailmaker/runtime/antd";
16
- import * as D from "@emailmaker/runtime/@ant-design/icons";
17
- import { LoadingOutlined as O } from "@emailmaker/runtime/@ant-design/icons";
18
- import * as k from "@emailmaker/runtime/@ant-design/cssinjs";
19
- import * as A from "@emailmaker/runtime/@ant-design/pro-layout";
20
- import * as j from "@emailmaker/runtime/classnames";
21
- import * as M from "@emailmaker/runtime/dayjs";
22
- import * as N from "@emailmaker/runtime/uuid";
23
- //#region src/extensions/ui-kit/src/di.ts
24
- var P = (0, r.createIdentifier)("UiKit.ColorPickerInput"), F = (0, r.createIdentifier)("UiKit.EmIcons"), I = (0, r.createIdentifier)("UiKit.LimitsCounter"), L = (0, r.createIdentifier)("UiKit.ControlFontFamily"), R = s.forwardRef((e, t) => /* @__PURE__ */ h(r.DependencyResolver.getInstance(P), { ...e }));
25
- R.displayName = "ColorPicker";
26
- //#endregion
27
- //#region src/extensions/ui-kit/src/EmIcons/index.tsx
28
- var z = (e) => /* @__PURE__ */ h(r.DependencyResolver.getInstance(F), { ...e }), B = (e) => /* @__PURE__ */ h(r.DependencyResolver.getInstance(I), { ...e }), V = (e) => /* @__PURE__ */ h(r.DependencyResolver.getInstance(L), { ...e }), H = ({ ...e }) => /* @__PURE__ */ h(C, {
29
- ...e,
30
- children: "Checkbox"
31
- }), U = E.useToken, W = {}, G = {
32
- width: 1012,
33
- color: "#fff",
34
- textAlign: "center",
35
- height: "100%"
36
- }, K = /* @__PURE__ */ function(e) {
37
- return e.fade = "fade", e.scrollx = "scrollx", e;
38
- }(K || {}), q = ({ data: e = [], sliderStyle: t = W, coruselStyle: n = G, customDots: r = !1, carouselRef: i, effect: a = K.fade, header: o = !1, ...s }) => {
39
- let { token: c } = U();
40
- return /* @__PURE__ */ g(m, { children: [r && /* @__PURE__ */ h("div", {
41
- className: "custom-dot",
42
- children: e.length
43
- }), /* @__PURE__ */ h(S, {
44
- style: n,
45
- ref: i,
46
- effect: a,
47
- ...s,
48
- children: e.map((e) => /* @__PURE__ */ g("div", {
49
- style: n,
50
- className: "slide",
51
- children: [o && /* @__PURE__ */ h("div", {
52
- className: "slide-title",
53
- style: {
54
- color: c.colorText,
55
- fontWeight: 700,
56
- lineHeight: "1.2",
57
- textAlign: "center",
58
- marginTop: 10,
59
- marginBottom: 20,
60
- marginLeft: "auto",
61
- marginRight: "auto"
62
- },
63
- children: e?.textHeader
64
- }), e?.content]
65
- }, e.id))
66
- })] });
67
- }, J = (e) => /* @__PURE__ */ h(q, { ...e }), Y = ({ className: e, style: t, color: n, text: r, bordered: i, ...a }) => {
68
- let o = r || "";
69
- return /* @__PURE__ */ h(T, {
70
- style: t,
71
- color: n,
72
- bordered: i,
73
- className: e,
74
- ...a,
75
- children: o
76
- });
77
- }, X = s.forwardRef((e, t) => {
78
- let [n, r] = u(!1), [i, a] = u(0), [o, s] = u(e.value ?? e.defaultValue ?? null), [d, f] = u(e.value ?? e.defaultValue ?? null), p = (e) => {
79
- e.target?.className?.toString().includes("ant-input-number-affix-wrapper") && (r(!0), a(e.clientX), s(d));
80
- }, m = () => r(!1), _ = c((t) => {
81
- if (n) {
82
- let n = t.clientX - i, r = e.dragspeed ?? 1, a = (o ?? 0) + n * r;
83
- a = Math.max(0, Math.round(a)), e.max !== void 0 && (a = Math.min(a, e.max)), e.min !== void 0 && (a = Math.max(a, e.min)), f(a), e.onChange?.(a);
84
- }
85
- }, [
86
- n,
87
- e.dragspeed,
88
- e.max,
89
- e.min,
90
- e.onChange,
91
- o,
92
- i
93
- ]);
94
- return l(() => {
95
- e.value === void 0 ? e.defaultValue === void 0 ? f(null) : f(e.defaultValue) : f(e.value);
96
- }, [e.value, e.defaultValue]), l(() => (document.addEventListener("mouseup", m), document.addEventListener("mousemove", _), () => {
97
- document.removeEventListener("mouseup", m), document.removeEventListener("mousemove", _);
98
- }), [
99
- n,
100
- i,
101
- o,
102
- _
103
- ]), /* @__PURE__ */ g("div", {
104
- onMouseDown: p,
105
- children: [/* @__PURE__ */ h(ee, {
106
- ...e,
107
- ref: t,
108
- value: d,
109
- className: "input-draggable"
110
- }), n && /* @__PURE__ */ h("div", {
111
- style: {
112
- position: "fixed",
113
- top: 0,
114
- left: 0,
115
- width: "100%",
116
- height: "100%",
117
- cursor: "ew-resize"
118
- },
119
- onMouseUp: m
120
- })]
121
- });
122
- });
123
- X.defaultProps = { dragspeed: 1 };
124
- //#endregion
125
- //#region src/modules/components/PageLoader/index.jsx
126
- var Z = ({ small: e = !1, style: t = {}, wrap: n = !1 }) => /* @__PURE__ */ h(te, {
127
- size: "large",
128
- style: {
129
- width: e ? "100%" : "100vw",
130
- height: "80vh",
131
- display: "flex",
132
- justifyContent: "center",
133
- alignItems: "center",
134
- ...t
135
- },
136
- wrap: n,
137
- children: /* @__PURE__ */ h(w, { indicator: /* @__PURE__ */ h(O, {
138
- style: { fontSize: 48 },
139
- spin: !0
140
- }) })
141
- });
142
- Z.propTypes = { style: y.any };
143
- //#endregion
144
- //#region src/extensions/ui-kit/src/index.ts
145
- var ne = /* @__PURE__ */ t({
146
- Carousel: () => J,
147
- Checkbox: () => H,
148
- ColorPicker: () => R,
149
- ControlFontFamily: () => V,
150
- DraggableInputNumber: () => X,
151
- EmIcons: () => z,
152
- LimitsCounter: () => B,
153
- PageLoader: () => Z,
154
- Slider: () => J,
155
- Tag: () => Y
156
- }), Q = /* @__PURE__ */ t({});
157
- import * as re from "@emailmaker/runtime/guid";
158
- e(Q, re);
159
- //#endregion
160
- //#region \0virtual:shared-core
161
- var $ = /* @__PURE__ */ t({});
162
- e($, r), e($, n), e($, Q), e($, i), e($, a);
163
- //#endregion
164
- export { k as AntDesignCssinjs, D as AntDesignIcons, A as AntDesignProLayout, x as Antd, j as Classnames, $ as Core, M as Dayjs, ne as EmailmakerUiKit, v as PropTypes, o as React, d as ReactDom, f as ReactDomClient, _ as ReactJsxDevRuntime, p as ReactJsxRuntime, b as ReactRouterDom, N as Uuid };
@@ -1,179 +0,0 @@
1
- module.exports = {
2
- // File Extension MIME Type
3
- abs: 'audio/x-mpeg',
4
- ai: 'application/postscript',
5
- aif: 'audio/x-aiff',
6
- aifc: 'audio/x-aiff',
7
- aiff: 'audio/x-aiff',
8
- aim: 'application/x-aim',
9
- art: 'image/x-jg',
10
- asf: 'video/x-ms-asf',
11
- asx: 'video/x-ms-asf',
12
- au: 'audio/basic',
13
- avi: 'video/x-msvideo',
14
- avx: 'video/x-rad-screenplay',
15
- bcpio: 'application/x-bcpio',
16
- bin: 'application/octet-stream',
17
- bmp: 'image/bmp',
18
- body: 'text/html',
19
- cdf: 'application/x-cdf',
20
- cer: 'application/pkix-cert',
21
- class: 'application/java',
22
- cpio: 'application/x-cpio',
23
- csh: 'application/x-csh',
24
- css: 'text/css',
25
- dib: 'image/bmp',
26
- doc: 'application/msword',
27
- dtd: 'application/xml-dtd',
28
- dv: 'video/x-dv',
29
- dvi: 'application/x-dvi',
30
- eot: 'application/vnd.ms-fontobject',
31
- eps: 'application/postscript',
32
- etx: 'text/x-setext',
33
- exe: 'application/octet-stream',
34
- gif: 'image/gif',
35
- gtar: 'application/x-gtar',
36
- gz: 'application/x-gzip',
37
- hdf: 'application/x-hdf',
38
- hqx: 'application/mac-binhex40',
39
- htc: 'text/x-component',
40
- htm: 'text/html',
41
- html: 'text/html',
42
- ief: 'image/ief',
43
- jad: 'text/vnd.sun.j2me.app-descriptor',
44
- jar: 'application/java-archive',
45
- java: 'text/x-java-source',
46
- jnlp: 'application/x-java-jnlp-file',
47
- jpe: 'image/jpeg',
48
- jpeg: 'image/jpeg',
49
- jpg: 'image/jpeg',
50
- js: 'application/javascript',
51
- jsf: 'text/plain',
52
- json: 'application/json',
53
- jspf: 'text/plain',
54
- kar: 'audio/midi',
55
- latex: 'application/x-latex',
56
- m3u: 'audio/x-mpegurl',
57
- mac: 'image/x-macpaint',
58
- man: 'text/troff',
59
- mathml: 'application/mathml+xml',
60
- me: 'text/troff',
61
- mid: 'audio/midi',
62
- midi: 'audio/midi',
63
- mif: 'application/x-mif',
64
- mov: 'video/quicktime',
65
- movie: 'video/x-sgi-movie',
66
- mp1: 'audio/mpeg',
67
- mp2: 'audio/mpeg',
68
- mp3: 'audio/mpeg',
69
- mp4: 'video/mp4',
70
- mpa: 'audio/mpeg',
71
- mpe: 'video/mpeg',
72
- mpeg: 'video/mpeg',
73
- mpega: 'audio/x-mpeg',
74
- mpg: 'video/mpeg',
75
- mpv2: 'video/mpeg2',
76
- ms: 'application/x-wais-source',
77
- nc: 'application/x-netcdf',
78
- oda: 'application/oda',
79
- odb: 'application/vnd.oasis.opendocument.database',
80
- odc: 'application/vnd.oasis.opendocument.chart',
81
- odf: 'application/vnd.oasis.opendocument.formula',
82
- odg: 'application/vnd.oasis.opendocument.graphics',
83
- odi: 'application/vnd.oasis.opendocument.image',
84
- odm: 'application/vnd.oasis.opendocument.text-master',
85
- odp: 'application/vnd.oasis.opendocument.presentation',
86
- ods: 'application/vnd.oasis.opendocument.spreadsheet',
87
- odt: 'application/vnd.oasis.opendocument.text',
88
- otg: 'application/vnd.oasis.opendocument.graphics-template',
89
- oth: 'application/vnd.oasis.opendocument.text-web',
90
- otp: 'application/vnd.oasis.opendocument.presentation-template',
91
- ots: 'application/vnd.oasis.opendocument.spreadsheet-template',
92
- ott: 'application/vnd.oasis.opendocument.text-template',
93
- ogx: 'application/ogg',
94
- ogv: 'video/ogg',
95
- oga: 'audio/ogg',
96
- ogg: 'audio/ogg',
97
- otf: 'application/x-font-opentype',
98
- spx: 'audio/ogg',
99
- flac: 'audio/flac',
100
- anx: 'application/annodex',
101
- axa: 'audio/annodex',
102
- axv: 'video/annodex',
103
- xspf: 'application/xspf+xml',
104
- pbm: 'image/x-portable-bitmap',
105
- pct: 'image/pict',
106
- pdf: 'application/pdf',
107
- pgm: 'image/x-portable-graymap',
108
- pic: 'image/pict',
109
- pict: 'image/pict',
110
- pls: 'audio/x-scpls',
111
- png: 'image/png',
112
- pnm: 'image/x-portable-anymap',
113
- pnt: 'image/x-macpaint',
114
- ppm: 'image/x-portable-pixmap',
115
- ppt: 'application/vnd.ms-powerpoint',
116
- pps: 'application/vnd.ms-powerpoint',
117
- ps: 'application/postscript',
118
- psd: 'image/vnd.adobe.photoshop',
119
- qt: 'video/quicktime',
120
- qti: 'image/x-quicktime',
121
- qtif: 'image/x-quicktime',
122
- ras: 'image/x-cmu-raster',
123
- rdf: 'application/rdf+xml',
124
- rgb: 'image/x-rgb',
125
- rm: 'application/vnd.rn-realmedia',
126
- roff: 'text/troff',
127
- rtf: 'application/rtf',
128
- rtx: 'text/richtext',
129
- sfnt: 'application/font-sfnt',
130
- sh: 'application/x-sh',
131
- shar: 'application/x-shar',
132
- sit: 'application/x-stuffit',
133
- snd: 'audio/basic',
134
- src: 'application/x-wais-source',
135
- sv4cpio: 'application/x-sv4cpio',
136
- sv4crc: 'application/x-sv4crc',
137
- svg: 'image/svg+xml',
138
- svgz: 'image/svg+xml',
139
- swf: 'application/x-shockwave-flash',
140
- t: 'text/troff',
141
- tar: 'application/x-tar',
142
- tcl: 'application/x-tcl',
143
- tex: 'application/x-tex',
144
- texi: 'application/x-texinfo',
145
- texinfo: 'application/x-texinfo',
146
- tif: 'image/tiff',
147
- tiff: 'image/tiff',
148
- tr: 'text/troff',
149
- tsv: 'text/tab-separated-values',
150
- ttf: 'application/x-font-ttf',
151
- txt: 'text/plain',
152
- ulw: 'audio/basic',
153
- ustar: 'application/x-ustar',
154
- vxml: 'application/voicexml+xml',
155
- xbm: 'image/x-xbitmap',
156
- xht: 'application/xhtml+xml',
157
- xhtml: 'application/xhtml+xml',
158
- xls: 'application/vnd.ms-excel',
159
- xml: 'application/xml',
160
- xpm: 'image/x-xpixmap',
161
- xsl: 'application/xml',
162
- xslt: 'application/xslt+xml',
163
- xul: 'application/vnd.mozilla.xul+xml',
164
- xwd: 'image/x-xwindowdump',
165
- vsd: 'application/vnd.visio',
166
- wav: 'audio/x-wav',
167
- wbmp: 'image/vnd.wap.wbmp',
168
- wml: 'text/vnd.wap.wml',
169
- wmlc: 'application/vnd.wap.wmlc',
170
- wmls: 'text/vnd.wap.wmlsc',
171
- wmlscriptc: 'application/vnd.wap.wmlscriptc',
172
- wmv: 'video/x-ms-wmv',
173
- woff: 'application/font-woff',
174
- woff2: 'application/font-woff2',
175
- wrl: 'model/vrml',
176
- wspolicy: 'application/wspolicy+xml',
177
- z: 'application/x-compress',
178
- zip: 'application/zip',
179
- };
package/vite/utils.js DELETED
@@ -1,44 +0,0 @@
1
- const path = require('path');
2
- const os = require('os');
3
-
4
- const { mkdir, readdir, copyFile, stat } = require('fs').promises;
5
- const { toPascalCase } = require('../shared/stringCase');
6
-
7
- function slash(p) {
8
- return p.replace(/\\/g, '/');
9
- }
10
-
11
- const cleanUrl = (url) => {
12
- const QUERY_RE = /\?.*$/s;
13
- const HASH_RE = /#.*$/s;
14
- return url.replace(HASH_RE, '').replace(QUERY_RE, '');
15
- };
16
-
17
- function normalizePath(id) {
18
- const isWindows = os.platform() === 'win32';
19
- return path.posix.normalize(isWindows ? slash(id) : id);
20
- }
21
-
22
- const fileExists = async (path) => !!(await stat(path).catch((e) => false));
23
-
24
- async function copyFolder(src, dest, filter) {
25
- if (!(await fileExists(dest))) {
26
- await mkdir(dest);
27
- }
28
- const entries = await readdir(src);
29
- return Promise.all(
30
- entries.map(async (entry) => {
31
- const srcPath = path.join(src, entry);
32
- if (filter(srcPath)) {
33
- const destPath = path.join(dest, entry);
34
- const _stat = await stat(srcPath);
35
- if (_stat.isFile()) {
36
- copyFile(srcPath, destPath);
37
- } else if (_stat.isDirectory()) {
38
- copyFolder(srcPath, destPath, filter);
39
- }
40
- }
41
- }),
42
- );
43
- }
44
- module.exports = { toPascalCase, cleanUrl, normalizePath, copyFolder };