@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.5
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.
- package/README.md +1 -1
- package/cli/dist/lib/cli/project.js +2 -16
- package/cli/dist/lib/config.js +20 -29
- package/cli/dist/lib/local-test.js +3 -19
- package/cli/dist/lib/paths.js +11 -0
- package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
- package/cli/dist/lib/resolveNpmSpawn.js +71 -0
- package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
- package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
- package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
- package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
- package/cli/dist/lib/templates/shared/i18n.js +2 -2
- package/cli/dist/lib/templates/shared/paths.js +3 -4
- package/cli/dist/lib/types/package-config.d.ts +1 -0
- package/cli/lib/cli/project.ts +2 -18
- package/cli/lib/config.ts +19 -30
- package/cli/lib/local-test.ts +3 -22
- package/cli/lib/paths.ts +15 -0
- package/cli/lib/resolveNpmSpawn.ts +72 -0
- package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
- package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
- package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
- package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
- package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
- package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
- package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
- package/cli/lib/templates/shared/i18n.ts +2 -2
- package/cli/lib/templates/shared/paths.ts +3 -4
- package/cli/lib/types/package-config.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
- package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
- package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
- package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
- package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
- package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
- package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
- package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
- package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
- package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
- package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
- package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
- package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
- package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
- package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
- package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
- package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
- package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
- package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
- package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
- package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
- package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
- package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
- package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
- package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
- package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
- package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
- package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
- package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
- package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
- package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
- package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
- package/cli/scripts/cli-matrix-smoke.ts +19 -10
- package/cli/scripts/verify-global-cli.ts +1 -1
- package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
- package/cli/tsconfig.json +2 -2
- package/emailmaker-core.ed344c04.js +1 -0
- package/emailmaker-esm.js +788 -153
- package/emailmaker.d.ts +32 -0
- package/emailmaker.js +4 -4
- package/iframe/js/amp.BGJMqoms.js +1 -1
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
- package/images/integrations/activecampaign.svg +4 -0
- package/images/integrations/bento.svg +9 -0
- package/images/integrations/brevo.svg +7 -0
- package/images/integrations/campaign_monitor.svg +10 -0
- package/images/integrations/constant_contact.svg +24 -0
- package/images/integrations/dotdigital.svg +144 -0
- package/images/integrations/getresponse.svg +23 -0
- package/images/integrations/hubspot.svg +3 -0
- package/images/integrations/klaviyo.svg +10 -0
- package/images/integrations/mailchimp.svg +9 -0
- package/images/integrations/salesforce.svg +20 -0
- package/js/browser-image-compression.js +9 -0
- package/package.json +2 -5
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +1 -1
- package/runtime/@ant-design/pro-layout/index.js +1 -1
- package/runtime/README.md +13 -13
- package/runtime/antd/index.js +1 -1
- package/runtime/app-core/index.js +1 -2
- package/runtime/classnames/index.js +1 -1
- package/runtime/core/index.js +6 -6
- package/runtime/dayjs/index.js +1 -1
- package/runtime/di/index.js +1 -2
- package/runtime/disposable/index.js +1 -2
- package/runtime/errors-runtime/index.js +1 -2
- package/runtime/guid/index.js +1 -2
- package/runtime/index.js +2 -4
- package/runtime/package.json +2 -3
- package/runtime/prop-types/index.js +1 -1
- package/runtime/react/index.js +1 -1
- package/runtime/react/jsx-dev-runtime/index.js +1 -1
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +1 -1
- package/runtime/react-dom/index.js +1 -1
- package/runtime/react-router-dom/index.js +1 -1
- package/runtime/uuid/index.js +1 -1
- package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
- package/static/core/192ec827.js +1 -0
- package/static/core/22c1de2e2.js +1 -0
- package/static/core/24faedf0.js +1 -0
- package/static/core/29231645.js +1 -0
- package/static/core/2a3177fc2.js +1 -0
- package/static/core/346aabd2.js +3 -0
- package/static/core/3b800ed6.js +1 -0
- package/static/core/3e840e90.js +1 -0
- package/static/core/40cc9fd7.js +1 -0
- package/static/core/421bdec22.js +1 -0
- package/static/core/50ff48bc.js +4 -0
- package/static/core/5282795d2.js +6 -0
- package/static/core/555e2e2f2.js +903 -0
- package/static/core/563a283d.js +1 -0
- package/static/core/5d47e095.js +47 -0
- package/static/core/5f574386.js +1 -0
- package/static/core/67a41193.js +1 -0
- package/static/core/698dace4.js +7 -0
- package/static/core/6b648e2d.js +1 -0
- package/static/core/7629adfd.js +1 -0
- package/static/core/7717f2932.js +3 -0
- package/static/core/776cb34a.js +1 -0
- package/static/core/78a1e31e.js +1 -0
- package/static/core/7d56d643.js +1 -0
- package/static/core/841752212.js +40 -0
- package/static/core/8477e97e.js +1 -0
- package/static/core/8756d562.js +1 -0
- package/static/core/91d328d8.js +1 -0
- package/static/core/9270dbb6.js +6 -0
- package/static/core/96371334.js +566 -0
- package/static/core/9b9ddaef2.js +168 -0
- package/static/core/af1da4b4.js +1 -0
- package/static/core/b5096b152.js +471 -0
- package/static/core/bde6775a.js +1 -0
- package/static/core/bf1b888c.js +4 -0
- package/static/core/c3747df72.js +598 -0
- package/static/core/cec8d739.js +11 -0
- package/static/core/cfac3d32.js +1 -0
- package/static/core/d21c95cf2.js +1 -0
- package/static/core/dbd9ca52.js +1 -0
- package/static/core/dc590181.js +1 -0
- package/static/core/e0039d55.js +1 -0
- package/static/core/e4071c1a.js +4 -0
- package/static/core/ef87b75c.js +41 -0
- package/static/core/f47701f32.js +20 -0
- package/static/core/f83d7ac42.js +3 -0
- package/static/core/fcc67e6b.js +1 -0
- package/static/core/fd40d85c.js +1 -0
- package/static/core/fe638847.js +1 -0
- package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
- package/static/esm/4b679053.js +27 -0
- package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
- package/static/runtime/disposable-CD74igiJ.js +1 -0
- package/static/runtime/guid-C0wuVR8v.js +1 -0
- package/vite/index.d.ts +17 -6
- package/vite/index.js +315 -270
- package/vite/pluginDev/index.d.ts +10 -19
- package/vite/pluginDev/index.js +251 -204
- package/webpack/index.d.ts +24 -5
- package/webpack/index.js +168 -144
- package/webpack/pluginDev/index.d.ts +21 -22
- package/webpack/pluginDev/index.js +242 -177
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
- package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
- package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
- package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
- package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
- package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
- package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
- package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
- package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
- package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
- package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
- package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
- package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
- package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
- package/emailmaker-core.80d62b88.js +0 -569
- package/runtime/_core/app-core/index.js +0 -1
- package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
- package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
- package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
- package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
- package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
- package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
- package/runtime/_core/di/index.js +0 -1
- package/runtime/_core/disposable/index.js +0 -1
- package/runtime/_core/errors-runtime/index.js +0 -1
- package/runtime/_core/guid/index.js +0 -1
- package/runtime/_core/index.js +0 -1
- package/shared/hostBootstrap.js +0 -47
- package/shared/pluginDevOptions.js +0 -31
- package/shared/runtimeManifest.js +0 -72
- package/shared/stringCase.js +0 -16
- package/static/core/2360f32a.js +0 -3
- package/static/core/2687db56.js +0 -3
- package/static/core/2b250af6.js +0 -1261
- package/static/core/3469930c.js +0 -302
- package/static/core/34ce9042.js +0 -201
- package/static/core/4091ba5b.js +0 -25
- package/static/core/41ce3a6a.js +0 -173
- package/static/core/4ac4908c.js +0 -2213
- package/static/core/519096c1.js +0 -2597
- package/static/core/5fa1772b.js +0 -116550
- package/static/core/61312909.js +0 -3
- package/static/core/62a98c07.js +0 -75301
- package/static/core/6309c0f2.js +0 -3
- package/static/core/68d9f440.js +0 -3
- package/static/core/73b645ab.js +0 -2
- package/static/core/81019351.js +0 -280
- package/static/core/835b37ef.js +0 -591
- package/static/core/91242fb3.js +0 -3
- package/static/core/972b15b0.js +0 -92399
- package/static/core/974ef468.js +0 -493
- package/static/core/a17614422.js +0 -38078
- package/static/core/a2fa7b5b.js +0 -4232
- package/static/core/a513adfd.js +0 -89857
- package/static/core/a7c73a9b.js +0 -3813
- package/static/core/b64c7c90.js +0 -228
- package/static/core/cdc9ba92.js +0 -4711
- package/static/core/d1db685d.js +0 -2193
- package/static/core/d661febc.js +0 -3
- package/static/core/d6d2d2d0.js +0 -23
- package/static/core/df1a1225.js +0 -607
- package/static/core/e5bff179.js +0 -1302
- package/static/core/e5d602f5.js +0 -2
- package/static/core/eb029366.js +0 -1532
- package/static/core/f46c035a.js +0 -2
- package/static/core/f8b9d89a.js +0 -461
- package/static/core/fd897ad7.js +0 -3
- package/static/core/fdd890c7.js +0 -6168
- package/static/esm/29eb18ff.js +0 -164
- package/vite/mime-types.js +0 -179
- package/vite/utils.js +0 -44
- /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
- /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
- /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
- /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.ed344c04.html} +0 -0
- /package/iframe/{iframe.80d62b88.html → iframe.ed344c04.html} +0 -0
- /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
- /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
- /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
- /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
- /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
- /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
- /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
- /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
- /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
- /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
- /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
- /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
package/static/core/6309c0f2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "./a513adfd.js";
|
|
2
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./fdd890c7.js";
|
|
3
|
-
export { v as Adapter, p as CodeActionAdaptor, g as DefinitionAdapter, u as DiagnosticsAdapter, r as FormatAdapter, m as FormatHelper, _ as FormatOnTypeAdapter, a as InlayHintsAdapter, d as Kind, y as LibFiles, o as OccurrencesAdapter, s as OutlineAdapter, h as QuickInfoAdapter, f as ReferenceAdapter, l as RenameAdapter, c as SignatureHelpAdapter, n as SuggestAdapter, b as WorkerManager, S as flattenDiagnosticMessageText, i as getJavaScriptWorker, x as getTypeScriptWorker, t as setupJavaScript, e as setupTypeScript };
|
package/static/core/68d9f440.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "./a513adfd.js";
|
|
2
|
-
import { At as e, Ct as t, Dt as n, Et as r, Ft as i, It as a, Lt as o, Mt as s, Nt as c, Ot as l, Pt as u, Rt as d, St as f, Tt as p, bt as m, jt as h, kt as g, vt as _, wt as v, xt as y, yt as b, zt as x } from "./fdd890c7.js";
|
|
3
|
-
export { _ as CloseTagAdapter, b as CompletionAdapter, m as DefinitionAdapter, y as DiagnosticsAdapter, f as DocumentColorAdapter, t as DocumentFormattingEditProvider, v as DocumentHighlightAdapter, p as DocumentLinkAdapter, r as DocumentRangeFormattingEditProvider, n as DocumentSymbolAdapter, l as FoldingRangeAdapter, g as HoverAdapter, e as ReferenceAdapter, h as RenameAdapter, s as SelectionRangeAdapter, c as SignatureHelpAdapter, u as WorkerManager, i as fromPosition, a as fromRange, o as setupMode, d as toRange, x as toTextEdit };
|
package/static/core/73b645ab.js
DELETED
package/static/core/81019351.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`.blocks-app .user-list{z-index:10;background:#fff0;padding:1px;display:flex;position:absolute;bottom:10px;left:10px}.blocks-app .user{text-align:center;align-items:center;width:0;height:35px;margin-left:20px;transition:all .4s cubic-bezier(.645,.045,.355,1);display:flex;position:relative}.blocks-app .user:first-child{margin-left:0}.blocks-app .user-list.open .user:not(:first-child){margin-left:38px}.blocks-app .user:before{content:"";background:var(--user-color,white);border:1.5px solid var(--border-color,white);border-radius:50%;width:34px;height:34px;transition:all .2s cubic-bezier(.645,.045,.355,1);display:block;position:absolute}.blocks-app .user div{width:34px;color:var(--text-color,white);cursor:default;border-radius:50%;font-weight:600;line-height:40px;text-decoration:none;position:absolute}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { s as e } from "./d6d2d2d0.js";
|
|
2
|
-
import { Bt as t, I as n } from "./cdc9ba92.js";
|
|
3
|
-
import { Ht as r, vt as i } from "./4ac4908c.js";
|
|
4
|
-
import { _ as a, g as o, h as s, m as c, o as l } from "./a513adfd.js";
|
|
5
|
-
import { l as u, m as d } from "./a2fa7b5b.js";
|
|
6
|
-
import { d as f, l as p, u as m } from "./972b15b0.js";
|
|
7
|
-
import { _t as h, t as g } from "./df1a1225.js";
|
|
8
|
-
//#region src/helpers/monaco/prepareWorkerUrl.ts
|
|
9
|
-
var _ = "emailmaker".replace(/-/g, "") + "emailmakerMonacoEnvironment", v = "__monaco_worker_url_initialized__";
|
|
10
|
-
function y() {
|
|
11
|
-
if (window[v]) return;
|
|
12
|
-
let e = "monacoeditorwork/", t = ".bundle.js", n = {
|
|
13
|
-
editorWorkerService: `${e}editor.worker${t}`,
|
|
14
|
-
html: `${e}html.worker${t}`,
|
|
15
|
-
css: `${e}css.worker${t}`,
|
|
16
|
-
typescript: `${e}ts.worker${t}`,
|
|
17
|
-
json: `${e}json.worker${t}`,
|
|
18
|
-
javascript: `${e}ts.worker${t}`,
|
|
19
|
-
less: `${e}css.worker${t}`,
|
|
20
|
-
scss: `${e}css.worker${t}`,
|
|
21
|
-
handlebars: `${e}html.worker${t}`,
|
|
22
|
-
razor: `${e}html.worker${t}`
|
|
23
|
-
};
|
|
24
|
-
function r(e) {
|
|
25
|
-
return e.replace(/\/$/, "");
|
|
26
|
-
}
|
|
27
|
-
function i(e, t) {
|
|
28
|
-
/^(\/\/)/.test(e) && (e = window.location.protocol + e);
|
|
29
|
-
let n = "/*" + t + "*/importScripts(\"" + e + "\");", r = new Blob([n], { type: "application/javascript" });
|
|
30
|
-
return URL.createObjectURL(r);
|
|
31
|
-
}
|
|
32
|
-
let a = (e, t) => {
|
|
33
|
-
let a = g(), o = n[t];
|
|
34
|
-
o || `${t}`;
|
|
35
|
-
let s = (a ? r(a) + "/" : "") + (o || n.editorWorkerService);
|
|
36
|
-
`${t}${s}`;
|
|
37
|
-
let c = new URL(s, window.location.origin), l = c.protocol;
|
|
38
|
-
if (l === "http:" || l === "https:") {
|
|
39
|
-
if (c.protocol !== window.location.protocol || c.hostname !== window.location.hostname || c.hostname === "localhost" && (c.port || "80") !== (window.location.port || "80")) return i(s, t);
|
|
40
|
-
} else if (l === "file:") return i(s, t);
|
|
41
|
-
return s;
|
|
42
|
-
}, o = window[_] || window.emailmakerMonacoEnvironment;
|
|
43
|
-
o || (o = {}, window.emailmakerMonacoEnvironment = o), o.getWorkerUrl = a, window[v] = !0;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/helpers/monaco/setupMonacoEnvironment.ts
|
|
47
|
-
y();
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/helpers/monaco/monacoInstance.ts
|
|
50
|
-
var b = l, x = r({
|
|
51
|
-
invalidateBlockId: null,
|
|
52
|
-
isCodeMode: !1,
|
|
53
|
-
codeModeDirection: "right",
|
|
54
|
-
editorThemeColor: "light",
|
|
55
|
-
isSettingsDisabled: !1,
|
|
56
|
-
settings: { width: "" },
|
|
57
|
-
elementSettings: {},
|
|
58
|
-
searchFilters: {},
|
|
59
|
-
block: {
|
|
60
|
-
id: void 0,
|
|
61
|
-
isNew: !1,
|
|
62
|
-
subject: "",
|
|
63
|
-
description: "",
|
|
64
|
-
html: "",
|
|
65
|
-
project: void 0,
|
|
66
|
-
project_title: "",
|
|
67
|
-
project_author: void 0,
|
|
68
|
-
tags: [],
|
|
69
|
-
type: "Other",
|
|
70
|
-
title: null,
|
|
71
|
-
isAmp: !1
|
|
72
|
-
},
|
|
73
|
-
monacoDidMount: !1
|
|
74
|
-
}), S = "blockSlice", C = d({
|
|
75
|
-
name: S,
|
|
76
|
-
initialState: x,
|
|
77
|
-
reducers: {
|
|
78
|
-
switchCodeMode: (e) => {
|
|
79
|
-
e.isCodeMode = !e.isCodeMode;
|
|
80
|
-
},
|
|
81
|
-
setEditorThemeColor: (e, t) => {
|
|
82
|
-
e.editorThemeColor = t.payload;
|
|
83
|
-
},
|
|
84
|
-
setBlockSettings: (e, t) => {
|
|
85
|
-
Object.assign(e, {
|
|
86
|
-
...e,
|
|
87
|
-
settings: t.payload,
|
|
88
|
-
isSettingsDisabled: !1
|
|
89
|
-
});
|
|
90
|
-
},
|
|
91
|
-
setBlockSettingsDisable: (e, t) => {
|
|
92
|
-
e.isSettingsDisabled = t.payload;
|
|
93
|
-
},
|
|
94
|
-
setElementSettings: (e, t) => {
|
|
95
|
-
e.elementSettings = t.payload;
|
|
96
|
-
},
|
|
97
|
-
setSearchFilters: (e, t) => {
|
|
98
|
-
e.searchFilters = t.payload;
|
|
99
|
-
},
|
|
100
|
-
setBlockHtml: (e, t) => {
|
|
101
|
-
e.block.html = t.payload;
|
|
102
|
-
},
|
|
103
|
-
resetBlockSlice: () => x,
|
|
104
|
-
setBlockIsAmp: (e, t) => {
|
|
105
|
-
e.block.isAmp = t.payload;
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
extraReducers: (e) => {
|
|
109
|
-
e.addMatcher((e) => e.type === "blocksApi/queries/queryResultPatched", (e, t) => {
|
|
110
|
-
let n = t.payload.queryCacheKey.match(/\(([0-9]+)\)/), r = t.payload?.patches[0];
|
|
111
|
-
if (r?.path?.[0] && (e.block[r?.path[0]] = r.value), n?.[1] && (e.invalidateBlockId = n[1]), t.payload.queryCacheKey.startsWith("getBlock")) {
|
|
112
|
-
let n = t.payload?.patches[0];
|
|
113
|
-
n?.path?.[0] && (e.block[n?.path[0]] = n.value);
|
|
114
|
-
}
|
|
115
|
-
}), e.addMatcher((e) => e.type === "blocksApi/invalidateTags", (e, t) => {
|
|
116
|
-
if (t.payload[0].id === +e.invalidateBlockId) return {
|
|
117
|
-
...x,
|
|
118
|
-
isCodeMode: e?.isCodeMode,
|
|
119
|
-
codeModeDirection: e.codeModeDirection
|
|
120
|
-
};
|
|
121
|
-
}), e.addMatcher(i.endpoints.editBlock.matchFulfilled, (e, { payload: t }) => {
|
|
122
|
-
e.invalidateBlockId = null, e.block = {
|
|
123
|
-
...e.block,
|
|
124
|
-
...t,
|
|
125
|
-
renderGuid: e.block.renderGuid
|
|
126
|
-
};
|
|
127
|
-
}), e.addMatcher(i.endpoints.autoSaveBlock.matchFulfilled, (e, t) => {
|
|
128
|
-
e?.block.id?.toString() === t.payload.id?.toString() && (e.block.html = t.payload.html);
|
|
129
|
-
}), e.addMatcher(i.endpoints.getBlock.matchFulfilled, (e, { payload: t }) => {
|
|
130
|
-
e.block = {
|
|
131
|
-
...x.block,
|
|
132
|
-
...t
|
|
133
|
-
};
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}), { switchCodeMode: ee, setEditorThemeColor: te, setBlockSettings: ne, setElementSettings: re, setBlockSettingsDisable: w, setSearchFilters: T, setBlockHtml: ie, resetBlockSlice: E, setBlockIsAmp: ae } = C.actions, D = (e) => e[S].block, O = (e) => e[S].isCodeMode, k = (e) => e[S].settings, A = (e) => e[S].searchFilters, j = (e) => e[S].elementSettings, M = (e) => e[S].editorThemeColor, N = (e) => e[S].isSettingsDisabled, P = r({
|
|
137
|
-
isCollapsed: !0,
|
|
138
|
-
isMonacoFocusing: !1
|
|
139
|
-
}), F = "defaultModePanesSlice", I = d({
|
|
140
|
-
name: F,
|
|
141
|
-
initialState: P,
|
|
142
|
-
reducers: {
|
|
143
|
-
setMonacoFocusing: (e, t) => {
|
|
144
|
-
e.isMonacoFocusing = t.payload;
|
|
145
|
-
},
|
|
146
|
-
resetPanes: () => P
|
|
147
|
-
}
|
|
148
|
-
}), { resetPanes: L, setMonacoFocusing: R } = I.actions, z = (e) => e[F].isMonacoFocusing, B = /* @__PURE__ */ e(t());
|
|
149
|
-
function V(e, t) {
|
|
150
|
-
let n = h();
|
|
151
|
-
(0, B.useEffect)(() => {
|
|
152
|
-
let r = n.addListener(e, t);
|
|
153
|
-
return () => {
|
|
154
|
-
r.dispose();
|
|
155
|
-
};
|
|
156
|
-
}, [
|
|
157
|
-
n,
|
|
158
|
-
e,
|
|
159
|
-
t
|
|
160
|
-
]);
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
//#region src/helpers/monaco/services.ts
|
|
164
|
-
function H() {
|
|
165
|
-
return c.get(o);
|
|
166
|
-
}
|
|
167
|
-
function oe() {
|
|
168
|
-
return c.get(s);
|
|
169
|
-
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/helpers/monaco/createModel.js
|
|
172
|
-
function U(e, t, n) {
|
|
173
|
-
return b.editor.createModel(e || "", t, n);
|
|
174
|
-
}
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region src/helpers/monaco/monacoHelpers.ts
|
|
177
|
-
function W() {
|
|
178
|
-
oe()._updateThemeOrColorMap();
|
|
179
|
-
}
|
|
180
|
-
function G(e) {
|
|
181
|
-
let t = H(), [n, r] = (0, B.useState)({
|
|
182
|
-
canUndo: t.canUndo(e.uri),
|
|
183
|
-
canRedo: t.canRedo(e.uri)
|
|
184
|
-
});
|
|
185
|
-
return (0, B.useEffect)(() => {
|
|
186
|
-
let n = e.onDidChangeContent(() => {
|
|
187
|
-
setTimeout(() => r({
|
|
188
|
-
canUndo: t.canUndo(e.uri),
|
|
189
|
-
canRedo: t.canRedo(e.uri)
|
|
190
|
-
}));
|
|
191
|
-
});
|
|
192
|
-
return () => {
|
|
193
|
-
n.dispose();
|
|
194
|
-
};
|
|
195
|
-
}, [e, t]), n;
|
|
196
|
-
}
|
|
197
|
-
function K(e) {
|
|
198
|
-
let t = e?.actual?._data || new a();
|
|
199
|
-
return t instanceof a ? t : a.deserialize(t);
|
|
200
|
-
}
|
|
201
|
-
function q(e) {
|
|
202
|
-
let t = H();
|
|
203
|
-
return {
|
|
204
|
-
undo: () => t.undo(e.uri),
|
|
205
|
-
redo: () => t.redo(e.uri),
|
|
206
|
-
clear: () => t.removeElements(e.uri),
|
|
207
|
-
getPast: () => t._editStacks.get(e.uri.toString())?._past?.map(K) || [],
|
|
208
|
-
getFuture: () => t._editStacks.get(e.uri.toString())?._future?.map(K) || [],
|
|
209
|
-
canUndo: () => t.canUndo(e.uri),
|
|
210
|
-
canRedo: () => t.canRedo(e.uri),
|
|
211
|
-
createSnapshot: () => t.createSnapshot(e.uri),
|
|
212
|
-
restoreSnapshot: (e) => t.restoreSnapshot(e)
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function J(e) {
|
|
216
|
-
return (0, B.useMemo)(() => q(e), [e]);
|
|
217
|
-
}
|
|
218
|
-
function se(e = "") {
|
|
219
|
-
let t = U(e, "html");
|
|
220
|
-
return t.setEOL(0), t;
|
|
221
|
-
}
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/helpers/monaco/index.ts
|
|
224
|
-
var Y = (0, B.createContext)(null);
|
|
225
|
-
function ce() {
|
|
226
|
-
return (0, B.useContext)(Y);
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
|
-
//#region src/modules/components/CollaborateEditor/constants.ts
|
|
230
|
-
var le = "wss://yjs.emailmaker.ru", X = 5e3, ue = 2e4, de = "3769995", fe = "Not available for collaborative editing", pe = "Problem with internet connection", Z = /* @__PURE__ */ e(f()), Q = p(), me = ({ users: e, isEditor: t, isPlugin: r, token: i }) => {
|
|
231
|
-
let [a, o] = (0, B.useState)(!1), s = window.localStorage.getItem(n.em_color_scheme), c = (e) => {
|
|
232
|
-
let { first_name: t, last_name: n, email: r } = e.user.name;
|
|
233
|
-
return t ? `${t.split("")[0]}${n ? `${n.split("")[0]}` : ""}` : r?.split("")[0].toUpperCase() || " ";
|
|
234
|
-
}, l = (e) => {
|
|
235
|
-
let { first_name: t, last_name: n, email: r } = e.user.name;
|
|
236
|
-
return t && n ? `${t} ${n}` : t || r;
|
|
237
|
-
}, u = (e) => /* @__PURE__ */ (0, Q.jsx)("span", { children: l(e) });
|
|
238
|
-
return /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: e.length > 0 && t && /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
239
|
-
className: `user-list ${a ? "open" : ""}`,
|
|
240
|
-
style: r ? {
|
|
241
|
-
left: "60px",
|
|
242
|
-
bottom: "10px"
|
|
243
|
-
} : {},
|
|
244
|
-
onMouseOver: () => o(!0),
|
|
245
|
-
onMouseOut: () => o(!1),
|
|
246
|
-
children: e.map((e) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
247
|
-
className: "user",
|
|
248
|
-
style: {
|
|
249
|
-
"--user-color": e.user.color,
|
|
250
|
-
"--border-color": i?.colorBgContainer,
|
|
251
|
-
"--text-color": s === "dark" ? i?.colorIconHover : i?.colorWhite
|
|
252
|
-
},
|
|
253
|
-
children: /* @__PURE__ */ (0, Q.jsx)(Z.Tooltip, {
|
|
254
|
-
title: u(e),
|
|
255
|
-
placement: "topLeft",
|
|
256
|
-
trigger: "hover",
|
|
257
|
-
color: i?.colorBgSpotlight,
|
|
258
|
-
children: /* @__PURE__ */ (0, Q.jsx)("div", { children: c(e) })
|
|
259
|
-
})
|
|
260
|
-
}, e.user.color))
|
|
261
|
-
}) });
|
|
262
|
-
}, he = /* @__PURE__ */ e(u()), ge = /* @__PURE__ */ e(m()), $ = ({ small: e = !1, style: t = {}, wrap: n = !1 }) => /* @__PURE__ */ (0, Q.jsx)(Z.Space, {
|
|
263
|
-
size: "large",
|
|
264
|
-
style: {
|
|
265
|
-
width: e ? "100%" : "100vw",
|
|
266
|
-
height: "80vh",
|
|
267
|
-
display: "flex",
|
|
268
|
-
justifyContent: "center",
|
|
269
|
-
alignItems: "center",
|
|
270
|
-
...t
|
|
271
|
-
},
|
|
272
|
-
wrap: n,
|
|
273
|
-
children: /* @__PURE__ */ (0, Q.jsx)(Z.Spin, { indicator: /* @__PURE__ */ (0, Q.jsx)(ge.LoadingOutlined, {
|
|
274
|
-
style: { fontSize: 48 },
|
|
275
|
-
spin: !0
|
|
276
|
-
}) })
|
|
277
|
-
});
|
|
278
|
-
$.propTypes = { style: he.default.any };
|
|
279
|
-
//#endregion
|
|
280
|
-
export { N as A, E as C, M as D, k as E, T as F, b as I, w as M, te as N, j as O, re as P, C as S, A as T, V as _, pe as a, z as b, le as c, se as d, W as f, H as g, G as h, fe as i, ne as j, O as k, Y as l, J as m, me as n, de as o, q as p, X as r, ue as s, $ as t, ce as u, I as v, D as w, R as x, L as y };
|