@maizzle/framework 6.2.2 → 6.3.1
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/dist/build.d.ts +0 -2
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +1 -2
- package/dist/components/WithUrl.vue +19 -3
- package/dist/components/utils.d.ts +0 -2
- package/dist/components/utils.d.ts.map +1 -1
- package/dist/components/utils.js +1 -2
- package/dist/composables/defineConfig.d.ts +0 -2
- package/dist/composables/defineConfig.d.ts.map +1 -1
- package/dist/composables/defineConfig.js +1 -2
- package/dist/composables/definePreviewProps.d.ts +0 -2
- package/dist/composables/definePreviewProps.d.ts.map +1 -1
- package/dist/composables/definePreviewProps.js +1 -2
- package/dist/composables/renderContext.d.ts +0 -2
- package/dist/composables/renderContext.d.ts.map +1 -1
- package/dist/composables/renderContext.js +1 -2
- package/dist/composables/useBaseUrl.d.ts +0 -2
- package/dist/composables/useBaseUrl.d.ts.map +1 -1
- package/dist/composables/useBaseUrl.js +1 -2
- package/dist/composables/useConfig.d.ts +0 -2
- package/dist/composables/useConfig.d.ts.map +1 -1
- package/dist/composables/useConfig.js +1 -2
- package/dist/composables/useCurrentTemplate.d.ts +0 -2
- package/dist/composables/useCurrentTemplate.d.ts.map +1 -1
- package/dist/composables/useCurrentTemplate.js +1 -2
- package/dist/composables/useDoctype.d.ts +0 -2
- package/dist/composables/useDoctype.d.ts.map +1 -1
- package/dist/composables/useDoctype.js +1 -2
- package/dist/composables/useEvent.d.ts +0 -2
- package/dist/composables/useEvent.d.ts.map +1 -1
- package/dist/composables/useEvent.js +1 -2
- package/dist/composables/useFont.d.ts +0 -2
- package/dist/composables/useFont.d.ts.map +1 -1
- package/dist/composables/useFont.js +1 -2
- package/dist/composables/useOutlookFallback.d.ts +0 -2
- package/dist/composables/useOutlookFallback.d.ts.map +1 -1
- package/dist/composables/useOutlookFallback.js +1 -2
- package/dist/composables/useOutputPath.d.ts +0 -2
- package/dist/composables/useOutputPath.d.ts.map +1 -1
- package/dist/composables/useOutputPath.js +1 -2
- package/dist/composables/usePlaintext.d.ts +0 -2
- package/dist/composables/usePlaintext.d.ts.map +1 -1
- package/dist/composables/usePlaintext.js +1 -2
- package/dist/composables/usePreheader.d.ts +0 -2
- package/dist/composables/usePreheader.d.ts.map +1 -1
- package/dist/composables/usePreheader.js +1 -2
- package/dist/composables/useTransformers.d.ts +0 -2
- package/dist/composables/useTransformers.d.ts.map +1 -1
- package/dist/composables/useTransformers.js +1 -2
- package/dist/composables/useUrlQuery.d.ts +0 -2
- package/dist/composables/useUrlQuery.d.ts.map +1 -1
- package/dist/composables/useUrlQuery.js +1 -2
- package/dist/config/defaults.d.ts +0 -2
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +1 -2
- package/dist/config/index.d.ts +0 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -2
- package/dist/events/index.d.ts +0 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +1 -2
- package/dist/plaintext.d.ts +0 -2
- package/dist/plaintext.d.ts.map +1 -1
- package/dist/plaintext.js +1 -2
- package/dist/plugin.d.ts +0 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -2
- package/dist/plugins/postcss/flattenGradients.d.ts +0 -2
- package/dist/plugins/postcss/flattenGradients.d.ts.map +1 -1
- package/dist/plugins/postcss/flattenGradients.js +1 -2
- package/dist/plugins/postcss/mergeMediaQueries.d.ts +0 -2
- package/dist/plugins/postcss/mergeMediaQueries.d.ts.map +1 -1
- package/dist/plugins/postcss/mergeMediaQueries.js +1 -2
- package/dist/plugins/postcss/pruneVars.d.ts +0 -2
- package/dist/plugins/postcss/pruneVars.d.ts.map +1 -1
- package/dist/plugins/postcss/pruneVars.js +1 -2
- package/dist/plugins/postcss/quoteFontFamilies.d.ts +0 -2
- package/dist/plugins/postcss/quoteFontFamilies.d.ts.map +1 -1
- package/dist/plugins/postcss/quoteFontFamilies.js +1 -2
- package/dist/plugins/postcss/removeDeclarations.d.ts +0 -2
- package/dist/plugins/postcss/removeDeclarations.d.ts.map +1 -1
- package/dist/plugins/postcss/removeDeclarations.js +1 -2
- package/dist/plugins/postcss/resolveMaizzleImports.d.ts +0 -2
- package/dist/plugins/postcss/resolveMaizzleImports.d.ts.map +1 -1
- package/dist/plugins/postcss/resolveMaizzleImports.js +1 -2
- package/dist/plugins/postcss/resolveProps.d.ts +0 -2
- package/dist/plugins/postcss/resolveProps.d.ts.map +1 -1
- package/dist/plugins/postcss/resolveProps.js +1 -2
- package/dist/plugins/postcss/tailwindCleanup.d.ts +0 -2
- package/dist/plugins/postcss/tailwindCleanup.d.ts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.js +1 -2
- package/dist/prepare.d.ts +1 -3
- package/dist/prepare.d.ts.map +1 -1
- package/dist/prepare.js +2 -3
- package/dist/prepare.js.map +1 -1
- package/dist/render/active.d.ts +0 -2
- package/dist/render/active.d.ts.map +1 -1
- package/dist/render/active.js +1 -2
- package/dist/render/buildTemplate.d.ts +0 -2
- package/dist/render/buildTemplate.d.ts.map +1 -1
- package/dist/render/buildTemplate.js +1 -2
- package/dist/render/createRenderer.d.ts +0 -2
- package/dist/render/createRenderer.d.ts.map +1 -1
- package/dist/render/createRenderer.js +9 -2
- package/dist/render/createRenderer.js.map +1 -1
- package/dist/render/index.d.ts +0 -2
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -2
- package/dist/render/injectFonts.d.ts +0 -2
- package/dist/render/injectFonts.d.ts.map +1 -1
- package/dist/render/injectFonts.js +1 -2
- package/dist/render/parallel/buildWorker.d.ts +0 -2
- package/dist/render/parallel/buildWorker.d.ts.map +1 -1
- package/dist/render/parallel/buildWorker.js +1 -2
- package/dist/render/plugins/codeBlockExtract.d.ts +0 -2
- package/dist/render/plugins/codeBlockExtract.d.ts.map +1 -1
- package/dist/render/plugins/codeBlockExtract.js +1 -2
- package/dist/render/plugins/markdownExtract.d.ts +0 -2
- package/dist/render/plugins/markdownExtract.d.ts.map +1 -1
- package/dist/render/plugins/markdownExtract.js +1 -2
- package/dist/render/plugins/previewProps.d.ts +0 -2
- package/dist/render/plugins/previewProps.d.ts.map +1 -1
- package/dist/render/plugins/previewProps.js +1 -2
- package/dist/render/plugins/rawExtract.d.ts +0 -2
- package/dist/render/plugins/rawExtract.d.ts.map +1 -1
- package/dist/render/plugins/rawExtract.js +1 -2
- package/dist/render/plugins/rowSourceLocation.d.ts +0 -2
- package/dist/render/plugins/rowSourceLocation.d.ts.map +1 -1
- package/dist/render/plugins/rowSourceLocation.js +1 -2
- package/dist/render/withPreviewProps.d.ts +0 -2
- package/dist/render/withPreviewProps.d.ts.map +1 -1
- package/dist/render/withPreviewProps.js +1 -2
- package/dist/serve.d.ts +0 -2
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +1 -2
- package/dist/server/compatibility.d.ts +0 -2
- package/dist/server/compatibility.d.ts.map +1 -1
- package/dist/server/compatibility.js +1 -2
- package/dist/server/email.d.ts +0 -2
- package/dist/server/email.d.ts.map +1 -1
- package/dist/server/email.js +1 -2
- package/dist/server/linter.d.ts +0 -2
- package/dist/server/linter.d.ts.map +1 -1
- package/dist/server/linter.js +1 -2
- package/dist/server/sfc-utils.d.ts +0 -2
- package/dist/server/sfc-utils.d.ts.map +1 -1
- package/dist/server/sfc-utils.js +1 -2
- package/dist/server/static.d.ts +0 -2
- package/dist/server/static.d.ts.map +1 -1
- package/dist/server/static.js +1 -2
- package/dist/server/ui/.vite/deps/@lucide_vue.js +13 -24
- package/dist/server/ui/.vite/deps/@lucide_vue.js.map +1 -1
- package/dist/server/ui/.vite/deps/@vueuse_core.js +2 -3
- package/dist/server/ui/.vite/deps/@vueuse_shared.js +2 -3
- package/dist/server/ui/.vite/deps/_metadata.json +17 -17
- package/dist/server/ui/.vite/deps/class-variance-authority.js +1 -2
- package/dist/server/ui/.vite/deps/clsx.js +1 -2
- package/dist/server/ui/.vite/deps/culori.js +150 -303
- package/dist/server/ui/.vite/deps/culori.js.map +1 -1
- package/dist/server/ui/.vite/deps/reka-ui.js +612 -1220
- package/dist/server/ui/.vite/deps/reka-ui.js.map +1 -1
- package/dist/server/ui/.vite/deps/{rolldown-runtime-EAsCxrDo.js → rolldown-runtime-C-UrYobY.js} +2 -3
- package/dist/server/ui/.vite/deps/tailwind-merge.js +2 -3
- package/dist/server/ui/.vite/deps/vue-router.js +9 -17
- package/dist/server/ui/.vite/deps/vue-router.js.map +1 -1
- package/dist/server/ui/.vite/deps/vue.js +1 -2
- package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-Dq07uCLt.js → vue.runtime.esm-bundler-Bjgap8Ka.js} +261 -115
- package/dist/server/ui/.vite/deps/vue.runtime.esm-bundler-Bjgap8Ka.js.map +1 -0
- package/dist/server/ui/App.vue +39 -9
- package/dist/tests/render/_helpers.d.ts +0 -2
- package/dist/tests/render/_helpers.d.ts.map +1 -1
- package/dist/tests/render/_helpers.js +1 -2
- package/dist/transformers/addAttributes.d.ts +0 -2
- package/dist/transformers/addAttributes.d.ts.map +1 -1
- package/dist/transformers/addAttributes.js +1 -2
- package/dist/transformers/attributeToStyle.d.ts +0 -2
- package/dist/transformers/attributeToStyle.d.ts.map +1 -1
- package/dist/transformers/attributeToStyle.js +1 -2
- package/dist/transformers/base.d.ts +0 -2
- package/dist/transformers/base.d.ts.map +1 -1
- package/dist/transformers/base.js +58 -16
- package/dist/transformers/base.js.map +1 -1
- package/dist/transformers/columnWidth.d.ts +0 -2
- package/dist/transformers/columnWidth.d.ts.map +1 -1
- package/dist/transformers/columnWidth.js +1 -2
- package/dist/transformers/entities.d.ts +0 -2
- package/dist/transformers/entities.d.ts.map +1 -1
- package/dist/transformers/entities.js +1 -2
- package/dist/transformers/filters/defaults.d.ts +0 -2
- package/dist/transformers/filters/defaults.d.ts.map +1 -1
- package/dist/transformers/filters/defaults.js +1 -2
- package/dist/transformers/filters/index.d.ts +0 -2
- package/dist/transformers/filters/index.d.ts.map +1 -1
- package/dist/transformers/filters/index.js +1 -2
- package/dist/transformers/format.d.ts +0 -2
- package/dist/transformers/format.d.ts.map +1 -1
- package/dist/transformers/format.js +1 -2
- package/dist/transformers/imgWidth.d.ts +0 -2
- package/dist/transformers/imgWidth.d.ts.map +1 -1
- package/dist/transformers/imgWidth.js +1 -2
- package/dist/transformers/index.d.ts +0 -2
- package/dist/transformers/index.d.ts.map +1 -1
- package/dist/transformers/index.js +2 -3
- package/dist/transformers/index.js.map +1 -1
- package/dist/transformers/inlineCss.d.ts +0 -2
- package/dist/transformers/inlineCss.d.ts.map +1 -1
- package/dist/transformers/inlineCss.js +1 -2
- package/dist/transformers/inlineLink.d.ts +0 -2
- package/dist/transformers/inlineLink.d.ts.map +1 -1
- package/dist/transformers/inlineLink.js +1 -2
- package/dist/transformers/minify.d.ts +0 -2
- package/dist/transformers/minify.d.ts.map +1 -1
- package/dist/transformers/minify.js +1 -2
- package/dist/transformers/minifyCodeInline.d.ts +0 -2
- package/dist/transformers/minifyCodeInline.d.ts.map +1 -1
- package/dist/transformers/minifyCodeInline.js +1 -2
- package/dist/transformers/msoConditionals.d.ts +0 -2
- package/dist/transformers/msoConditionals.d.ts.map +1 -1
- package/dist/transformers/msoConditionals.js +1 -2
- package/dist/transformers/msoPlaceholders.d.ts +0 -2
- package/dist/transformers/msoPlaceholders.d.ts.map +1 -1
- package/dist/transformers/msoPlaceholders.js +1 -2
- package/dist/transformers/purgeCss.d.ts +0 -2
- package/dist/transformers/purgeCss.d.ts.map +1 -1
- package/dist/transformers/purgeCss.js +1 -2
- package/dist/transformers/removeAttributes.d.ts +0 -2
- package/dist/transformers/removeAttributes.d.ts.map +1 -1
- package/dist/transformers/removeAttributes.js +1 -2
- package/dist/transformers/replaceStrings.d.ts +0 -2
- package/dist/transformers/replaceStrings.d.ts.map +1 -1
- package/dist/transformers/replaceStrings.js +1 -2
- package/dist/transformers/safeSelectors.d.ts +0 -2
- package/dist/transformers/safeSelectors.d.ts.map +1 -1
- package/dist/transformers/safeSelectors.js +1 -2
- package/dist/transformers/shorthandCss.d.ts +0 -2
- package/dist/transformers/shorthandCss.d.ts.map +1 -1
- package/dist/transformers/shorthandCss.js +1 -2
- package/dist/transformers/sixHex.d.ts +0 -2
- package/dist/transformers/sixHex.d.ts.map +1 -1
- package/dist/transformers/sixHex.js +1 -2
- package/dist/transformers/tailwindComponent.d.ts +0 -2
- package/dist/transformers/tailwindComponent.d.ts.map +1 -1
- package/dist/transformers/tailwindComponent.js +1 -2
- package/dist/transformers/tailwindcss.d.ts +0 -2
- package/dist/transformers/tailwindcss.d.ts.map +1 -1
- package/dist/transformers/tailwindcss.js +1 -2
- package/dist/transformers/urlQuery.d.ts +0 -2
- package/dist/transformers/urlQuery.d.ts.map +1 -1
- package/dist/transformers/urlQuery.js +1 -2
- package/dist/types/config.d.ts +0 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/ast/parser.d.ts +0 -2
- package/dist/utils/ast/parser.d.ts.map +1 -1
- package/dist/utils/ast/parser.js +1 -2
- package/dist/utils/ast/serializer.d.ts +0 -2
- package/dist/utils/ast/serializer.d.ts.map +1 -1
- package/dist/utils/ast/serializer.js +1 -2
- package/dist/utils/ast/walker.d.ts +0 -2
- package/dist/utils/ast/walker.d.ts.map +1 -1
- package/dist/utils/ast/walker.js +1 -2
- package/dist/utils/cloneConfig.d.ts +0 -2
- package/dist/utils/cloneConfig.d.ts.map +1 -1
- package/dist/utils/cloneConfig.js +1 -2
- package/dist/utils/compileTailwindCss.d.ts +0 -2
- package/dist/utils/compileTailwindCss.d.ts.map +1 -1
- package/dist/utils/compileTailwindCss.js +1 -2
- package/dist/utils/componentSources.d.ts +0 -2
- package/dist/utils/componentSources.d.ts.map +1 -1
- package/dist/utils/componentSources.js +1 -2
- package/dist/utils/cssBox.d.ts +0 -2
- package/dist/utils/cssBox.d.ts.map +1 -1
- package/dist/utils/cssBox.js +1 -2
- package/dist/utils/decodeStyleEntities.d.ts +0 -2
- package/dist/utils/decodeStyleEntities.d.ts.map +1 -1
- package/dist/utils/decodeStyleEntities.js +1 -2
- package/dist/utils/detect.d.ts +0 -2
- package/dist/utils/detect.d.ts.map +1 -1
- package/dist/utils/detect.js +1 -2
- package/dist/utils/output-markers.d.ts +0 -2
- package/dist/utils/output-markers.d.ts.map +1 -1
- package/dist/utils/output-markers.js +1 -2
- package/dist/utils/staticPaths.d.ts +0 -2
- package/dist/utils/staticPaths.d.ts.map +1 -1
- package/dist/utils/staticPaths.js +1 -2
- package/dist/utils/twMerge.d.ts +0 -2
- package/dist/utils/twMerge.d.ts.map +1 -1
- package/dist/utils/twMerge.js +1 -2
- package/dist/utils/url.d.ts +0 -2
- package/dist/utils/url.d.ts.map +1 -1
- package/dist/utils/url.js +1 -2
- package/dist/utils/watchPaths.d.ts +0 -2
- package/dist/utils/watchPaths.d.ts.map +1 -1
- package/dist/utils/watchPaths.js +1 -2
- package/package.json +4 -4
- package/dist/server/ui/.vite/deps/vue.runtime.esm-bundler-Dq07uCLt.js.map +0 -1
package/dist/build.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MaizzleConfig } from "./types/config.js";
|
|
2
2
|
import "./types/index.js";
|
|
3
|
-
//#region src/build.d.ts
|
|
4
3
|
export interface BuildResult {
|
|
5
4
|
files: string[];
|
|
6
5
|
config: MaizzleConfig;
|
|
@@ -34,5 +33,4 @@ export declare function resolveParallel(config: MaizzleConfig, count: number, co
|
|
|
34
33
|
enabled: boolean;
|
|
35
34
|
workers: number;
|
|
36
35
|
};
|
|
37
|
-
//#endregion
|
|
38
36
|
//# sourceMappingURL=build.d.ts.map
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../src/build.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../src/build.ts"],"mappings":";;iBAciB;EACf;EACA,QAAQ;;;;;;;;;;;;wBAaY,MAAM,cAAc,QAAQ,0BAA0B,QAAQ;;;;;;;;;;;;;;;wBA0HpE,gBACd,QAAQ,eACR,eACA,aAAa,QAAQ;EAClB;EAAkB"}
|
package/dist/build.js
CHANGED
|
@@ -10,7 +10,7 @@ import { fileURLToPath } from "node:url";
|
|
|
10
10
|
import { availableParallelism } from "node:os";
|
|
11
11
|
import { glob } from "tinyglobby";
|
|
12
12
|
import ora from "ora";
|
|
13
|
-
|
|
13
|
+
// src/build.ts
|
|
14
14
|
/**
|
|
15
15
|
* Build all SFC email templates to HTML files.
|
|
16
16
|
*
|
|
@@ -226,7 +226,6 @@ async function copyStatic(config, outputPath) {
|
|
|
226
226
|
cpSync(file, destPath);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
//#endregion
|
|
230
229
|
export { build, resolveParallel };
|
|
231
230
|
|
|
232
231
|
//# sourceMappingURL=build.js.map
|
|
@@ -25,6 +25,14 @@ function isAbsoluteUrl(url: string): boolean {
|
|
|
25
25
|
return url.startsWith('//') || url.startsWith('#') || url.startsWith('?') || isUrl(url)
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Values that start with a template language tag (Twig, Liquid, Blade,
|
|
30
|
+
* ERB etc.) are resolved later by that language, so leave them alone.
|
|
31
|
+
*/
|
|
32
|
+
function isTemplateExpression(url: string): boolean {
|
|
33
|
+
return /^\s*(?:\{\{|\{%|<%)/.test(url)
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
function processSrcset(srcset: string, baseUrl: string): string {
|
|
29
37
|
return srcset.split(',').map(entry => {
|
|
30
38
|
const parts = entry.trim().split(/\s+/)
|
|
@@ -61,7 +69,7 @@ function applyBaseUrl(attrs: string[], props: Record<string, any> | null, baseUr
|
|
|
61
69
|
for (const attr of attrs) {
|
|
62
70
|
const value = props[attr]
|
|
63
71
|
|
|
64
|
-
if (typeof value !== 'string' || isAbsoluteUrl(value)) continue
|
|
72
|
+
if (typeof value !== 'string' || isAbsoluteUrl(value) || isTemplateExpression(value)) continue
|
|
65
73
|
|
|
66
74
|
if (!newProps) newProps = { ...props }
|
|
67
75
|
|
|
@@ -73,6 +81,14 @@ function applyBaseUrl(attrs: string[], props: Record<string, any> | null, baseUr
|
|
|
73
81
|
return newProps ?? props
|
|
74
82
|
}
|
|
75
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Elements marked with `no-base-url` keep their URLs as authored. The
|
|
86
|
+
* attribute is left in place for the `base` transformer to remove.
|
|
87
|
+
*/
|
|
88
|
+
function hasNoBaseUrl(props: Record<string, any> | null): boolean {
|
|
89
|
+
return !!props && 'no-base-url' in props
|
|
90
|
+
}
|
|
91
|
+
|
|
76
92
|
// ─── Query parameter helpers ──────────────────────────────────────────────────
|
|
77
93
|
|
|
78
94
|
function applyQueryParams(attrs: string[], props: Record<string, any> | null, params: Record<string, unknown>): Record<string, any> | null {
|
|
@@ -120,7 +136,7 @@ function processVNode(vnode: any, baseUrl: string | undefined, params: Record<st
|
|
|
120
136
|
let newProps = vnode.props
|
|
121
137
|
|
|
122
138
|
if (attrs) {
|
|
123
|
-
if (baseUrl) newProps = applyBaseUrl(attrs, newProps, baseUrl)
|
|
139
|
+
if (baseUrl && !hasNoBaseUrl(newProps)) newProps = applyBaseUrl(attrs, newProps, baseUrl)
|
|
124
140
|
if (params) newProps = applyQueryParams(attrs, newProps, params)
|
|
125
141
|
}
|
|
126
142
|
|
|
@@ -135,7 +151,7 @@ function processVNode(vnode: any, baseUrl: string | undefined, params: Record<st
|
|
|
135
151
|
if (typeof vnode.type === 'object' || typeof vnode.type === 'function') {
|
|
136
152
|
let newProps = vnode.props
|
|
137
153
|
|
|
138
|
-
if (baseUrl) newProps = applyBaseUrl(urlAttributes, newProps, baseUrl)
|
|
154
|
+
if (baseUrl && !hasNoBaseUrl(newProps)) newProps = applyBaseUrl(urlAttributes, newProps, baseUrl)
|
|
139
155
|
if (params) newProps = applyQueryParams(urlAttributes, newProps, params)
|
|
140
156
|
|
|
141
157
|
return h(vnode.type, newProps, vnode.children)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/utils.d.ts
|
|
2
1
|
export declare function normalizeToPixels(value: string | number): string;
|
|
3
2
|
/**
|
|
4
3
|
* Module-scoped sequential ID generator. Used by components to mint
|
|
@@ -48,5 +47,4 @@ export declare function buildCodeBlock(codeContent: string, bg: string, options?
|
|
|
48
47
|
* HTML. Falls back to a white background for unhighlighted blocks.
|
|
49
48
|
*/
|
|
50
49
|
export declare function shikiToCodeBlock(highlighted: string): string;
|
|
51
|
-
//#endregion
|
|
52
50
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/components/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/components/utils.ts"],"mappings":"A,wBAAgB,kBAAkB;;;;;;;;;wBAiBlB,OAAO;wBAKP,gBAAgB;wBAQhB,gBAAgB;wBAIhB,iBAAiB;wBAQjB,iBAAiB;;;;;;;qBAUpB;;;;;;;;;;wBAWG,kBAAkB;;;;;;;;wBAWlB,eACd,qBACA,YACA;EAAW;EAAmB;EAAkB;;;;;;;wBAiBlC,iBAAiB"}
|
package/dist/components/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/utils.ts
|
|
2
2
|
function normalizeToPixels(value) {
|
|
3
3
|
if (typeof value === "number" || Number.isFinite(Number(value))) return `${value}px`;
|
|
4
4
|
return value;
|
|
@@ -74,7 +74,6 @@ function shikiToCodeBlock(highlighted) {
|
|
|
74
74
|
const bg = (trimmed.match(/^<pre[^>]*>/)?.[0] ?? "").match(/background-color:\s*(#[0-9a-fA-F]+)/)?.[1] ?? "#fff";
|
|
75
75
|
return buildCodeBlock(trimmed.replace(/^<pre[^>]*><code[^>]*>/, "").replace(/<\/code><\/pre>$/, ""), bg);
|
|
76
76
|
}
|
|
77
|
-
//#endregion
|
|
78
77
|
export { buildCodeBlock, codeBlockPreClass, hasHeightInStyle, hasHeightUtility, hasWidthInStyle, hasWidthUtility, nextId, normalizeToPixels, outlookFallbackProp, shikiToCodeBlock };
|
|
79
78
|
|
|
80
79
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
//#region src/composables/defineConfig.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Define Maizzle config.
|
|
6
5
|
*
|
|
@@ -9,5 +8,4 @@ import "../types/index.js";
|
|
|
9
8
|
* the result to child components via `useConfig()`
|
|
10
9
|
*/
|
|
11
10
|
export declare function defineConfig(data?: Partial<MaizzleConfig>): MaizzleConfig;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=defineConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineConfig.d.ts","names":[],"sources":["../../src/composables/defineConfig.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"defineConfig.d.ts","names":[],"sources":["../../src/composables/defineConfig.ts"],"mappings":";;;;;;;;;wBAoBgB,aAAa,OAAM,QAAQ,iBAAsB"}
|
|
@@ -2,7 +2,7 @@ import { MaizzleConfigKey } from "./useConfig.js";
|
|
|
2
2
|
import { RenderContextKey } from "./renderContext.js";
|
|
3
3
|
import { createDefu } from "defu";
|
|
4
4
|
import { getCurrentInstance, inject, provide } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/composables/defineConfig.ts
|
|
6
6
|
const merge = createDefu((obj, key, value) => {
|
|
7
7
|
if (Array.isArray(obj[key])) {
|
|
8
8
|
obj[key] = value;
|
|
@@ -27,7 +27,6 @@ function defineConfig(data = {}) {
|
|
|
27
27
|
}
|
|
28
28
|
return data;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { defineConfig };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=defineConfig.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/definePreviewProps.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Define sample props for previewing the template in the dev server.
|
|
4
3
|
*
|
|
@@ -17,5 +16,4 @@
|
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
18
|
export declare function definePreviewProps<T extends Record<string, any>>(_props: Partial<T>): void;
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=definePreviewProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definePreviewProps.d.ts","names":[],"sources":["../../src/composables/definePreviewProps.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"definePreviewProps.d.ts","names":[],"sources":["../../src/composables/definePreviewProps.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAiBgB,mBAAmB,UAAU,qBAAqB,QAAQ,QAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/composables/definePreviewProps.ts
|
|
2
2
|
/**
|
|
3
3
|
* Define sample props for previewing the template in the dev server.
|
|
4
4
|
*
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
function definePreviewProps(_props) {}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { definePreviewProps };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=definePreviewProps.js.map
|
|
@@ -3,7 +3,6 @@ import { MaizzleConfig } from "../types/config.js";
|
|
|
3
3
|
import "../types/index.js";
|
|
4
4
|
import { UsePlaintextOptions } from "./usePlaintext.js";
|
|
5
5
|
import { InjectionKey } from "vue";
|
|
6
|
-
//#region src/composables/renderContext.d.ts
|
|
7
6
|
export interface FontRegistration {
|
|
8
7
|
family: string;
|
|
9
8
|
slug: string;
|
|
@@ -32,5 +31,4 @@ export interface RenderContext {
|
|
|
32
31
|
tailwindBlocks?: TailwindBlock[];
|
|
33
32
|
}
|
|
34
33
|
export declare const RenderContextKey: InjectionKey<RenderContext>;
|
|
35
|
-
//#endregion
|
|
36
34
|
//# sourceMappingURL=renderContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderContext.d.ts","names":[],"sources":["../../src/composables/renderContext.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderContext.d.ts","names":[],"sources":["../../src/composables/renderContext.ts"],"mappings":";;;;;iBAKiB;EACf;EACA;EACA;EACA;;iBAGe;EACf;;EAEA;;iBAGe;EACf;EACA;IAAc;IAAc;;EAC5B,YAAY;EACZ,kBAAkB;IAAQ,MAAM;IAAW,SAAS,SAAS;;EAC7D,YAAY;EACZ;EACA,QAAQ;EACR,iBAAiB;;qBAIN,kBAAkB,aAAa"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UrlConfig } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
//#region src/composables/useBaseUrl.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Set the base URL for the current email template — same as
|
|
6
5
|
* `config.url.base`, scoped to one SFC.
|
|
@@ -15,5 +14,4 @@ import "../types/index.js";
|
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
16
|
export declare function useBaseUrl(value: UrlConfig['base']): void;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=useBaseUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBaseUrl.d.ts","names":[],"sources":["../../src/composables/useBaseUrl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBaseUrl.d.ts","names":[],"sources":["../../src/composables/useBaseUrl.ts"],"mappings":";;;;;;;;;;;;;;;wBAkBgB,WAAW,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { defu as defu$1 } from "defu";
|
|
3
3
|
import { inject } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/useBaseUrl.ts
|
|
5
5
|
/**
|
|
6
6
|
* Set the base URL for the current email template — same as
|
|
7
7
|
* `config.url.base`, scoped to one SFC.
|
|
@@ -20,7 +20,6 @@ function useBaseUrl(value) {
|
|
|
20
20
|
if (!ctx) return;
|
|
21
21
|
ctx.sfcConfig = defu$1({ url: { base: value } }, ctx.sfcConfig ?? {});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { useBaseUrl };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=useBaseUrl.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { InjectionKey } from "vue";
|
|
4
|
-
//#region src/composables/useConfig.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Use the global symbol registry so the key is identical across every
|
|
7
6
|
* module instance. In dev, `render()` (Node) and the SFC's auto-imported
|
|
@@ -11,5 +10,4 @@ import { InjectionKey } from "vue";
|
|
|
11
10
|
*/
|
|
12
11
|
export declare const MaizzleConfigKey: InjectionKey<MaizzleConfig>;
|
|
13
12
|
export declare function useConfig(): MaizzleConfig;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=useConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfig.d.ts","names":[],"sources":["../../src/composables/useConfig.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useConfig.d.ts","names":[],"sources":["../../src/composables/useConfig.ts"],"mappings":";;;;;;;;;;qBAWa,kBAAkB,aAAa;wBAE5B,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/useConfig.ts
|
|
3
3
|
/**
|
|
4
4
|
* Use the global symbol registry so the key is identical across every
|
|
5
5
|
* module instance. In dev, `render()` (Node) and the SFC's auto-imported
|
|
@@ -13,7 +13,6 @@ function useConfig() {
|
|
|
13
13
|
if (!config) throw new Error("useConfig() requires the Maizzle plugin to provide config. Make sure you are using it inside a Maizzle template.");
|
|
14
14
|
return config;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { MaizzleConfigKey, useConfig };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=useConfig.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ParsedPath } from "node:path";
|
|
2
|
-
//#region src/composables/useCurrentTemplate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Internal — set by the build loop before each template iteration and
|
|
5
4
|
* cleared in `finally`. Not exported from the package entrypoint.
|
|
@@ -25,5 +24,4 @@ export declare function _setCurrentTemplate(parsed: ParsedPath | undefined): voi
|
|
|
25
24
|
* ```
|
|
26
25
|
*/
|
|
27
26
|
export declare function useCurrentTemplate(): ParsedPath | undefined;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=useCurrentTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrentTemplate.d.ts","names":[],"sources":["../../src/composables/useCurrentTemplate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCurrentTemplate.d.ts","names":[],"sources":["../../src/composables/useCurrentTemplate.ts"],"mappings":";;;;;wBAmBgB,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;;;wBAuB5B,sBAAsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/composables/useCurrentTemplate.ts
|
|
2
2
|
/**
|
|
3
3
|
* Stored on globalThis so the Vite SSR module graph (which loads this file
|
|
4
4
|
* when a user SFC auto-imports useCurrentTemplate) and the Node import
|
|
@@ -36,7 +36,6 @@ function _setCurrentTemplate(parsed) {
|
|
|
36
36
|
function useCurrentTemplate() {
|
|
37
37
|
return globalThis[KEY];
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { _setCurrentTemplate, useCurrentTemplate };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=useCurrentTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDoctype.d.ts","names":[],"sources":["../../src/composables/useDoctype.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDoctype.d.ts","names":[],"sources":["../../src/composables/useDoctype.ts"],"mappings":";;;;;;;;wBAWgB,WAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/useDoctype.ts
|
|
4
4
|
/**
|
|
5
5
|
* Set the doctype for the current email template.
|
|
6
6
|
*
|
|
@@ -13,7 +13,6 @@ function useDoctype(doctype) {
|
|
|
13
13
|
const ctx = inject(RenderContextKey);
|
|
14
14
|
if (ctx) ctx.doctype = doctype;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useDoctype };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=useDoctype.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventMap, EventName } from "../events/index.js";
|
|
2
|
-
//#region src/composables/useEvent.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Register an event handler from within an SFC's <script setup>.
|
|
5
4
|
*
|
|
@@ -11,5 +10,4 @@ import { EventMap, EventName } from "../events/index.js";
|
|
|
11
10
|
* ```
|
|
12
11
|
*/
|
|
13
12
|
export declare function useEvent<K extends EventName>(name: K, handler: EventMap[K]): void;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=useEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEvent.d.ts","names":[],"sources":["../../src/composables/useEvent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useEvent.d.ts","names":[],"sources":["../../src/composables/useEvent.ts"],"mappings":";;;;;;;;;;;wBAcgB,SAAS,UAAU,WAAW,MAAM,GAAG,SAAS,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/useEvent.ts
|
|
4
4
|
/**
|
|
5
5
|
* Register an event handler from within an SFC's <script setup>.
|
|
6
6
|
*
|
|
@@ -18,7 +18,6 @@ function useEvent(name, handler) {
|
|
|
18
18
|
handler
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { useEvent };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=useEvent.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/useFont.d.ts
|
|
2
1
|
export type FontProvider = 'google' | 'bunny';
|
|
3
2
|
export interface UseFontOptions {
|
|
4
3
|
/**
|
|
@@ -45,5 +44,4 @@ export interface UseFontOptions {
|
|
|
45
44
|
* ```
|
|
46
45
|
*/
|
|
47
46
|
export declare function useFont(options: UseFontOptions): void;
|
|
48
|
-
//#endregion
|
|
49
47
|
//# sourceMappingURL=useFont.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFont.d.ts","names":[],"sources":["../../src/composables/useFont.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFont.d.ts","names":[],"sources":["../../src/composables/useFont.ts"],"mappings":"A,YA8CY;iBAEK;;;;;;;EAOf;;EAEA;;;;;;EAMA,WAAW;;;;;;EAMX;;EAEA;;EAEA;;EAEA,SAAS;;;;;;;;;;;;;;;;;wBA+CK,QAAQ,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/useFont.ts
|
|
4
4
|
const FAMILY_CATEGORIES = {
|
|
5
5
|
"Roboto": "sans",
|
|
6
6
|
"Open Sans": "sans",
|
|
@@ -86,7 +86,6 @@ function useFont(options) {
|
|
|
86
86
|
url
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { useFont };
|
|
91
90
|
|
|
92
91
|
//# sourceMappingURL=useFont.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/useOutlookFallback.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Toggle whether descendants emit Outlook (MSO) and VML fallback markup.
|
|
4
3
|
*
|
|
@@ -16,5 +15,4 @@
|
|
|
16
15
|
* @returns The resolved boolean for the current component.
|
|
17
16
|
*/
|
|
18
17
|
export declare function useOutlookFallback(value?: boolean | null): boolean;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=useOutlookFallback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOutlookFallback.d.ts","names":[],"sources":["../../src/composables/useOutlookFallback.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOutlookFallback.d.ts","names":[],"sources":["../../src/composables/useOutlookFallback.ts"],"mappings":";;;;;;;;;;;;;;;;wBAoBgB,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/useOutlookFallback.ts
|
|
3
3
|
const OutlookFallbackKey = Symbol("OutlookFallback");
|
|
4
4
|
/**
|
|
5
5
|
* Toggle whether descendants emit Outlook (MSO) and VML fallback markup.
|
|
@@ -23,7 +23,6 @@ function useOutlookFallback(value) {
|
|
|
23
23
|
provide(OutlookFallbackKey, enabled);
|
|
24
24
|
return enabled;
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { useOutlookFallback };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=useOutlookFallback.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/useOutputPath.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Override the output file path for the current template.
|
|
4
3
|
*
|
|
@@ -12,5 +11,4 @@
|
|
|
12
11
|
* ```
|
|
13
12
|
*/
|
|
14
13
|
export declare function useOutputPath(path: string): void;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=useOutputPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOutputPath.d.ts","names":[],"sources":["../../src/composables/useOutputPath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOutputPath.d.ts","names":[],"sources":["../../src/composables/useOutputPath.ts"],"mappings":";;;;;;;;;;;;wBAegB,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/useOutputPath.ts
|
|
4
4
|
/**
|
|
5
5
|
* Override the output file path for the current template.
|
|
6
6
|
*
|
|
@@ -17,7 +17,6 @@ function useOutputPath(path) {
|
|
|
17
17
|
const ctx = inject(RenderContextKey);
|
|
18
18
|
if (ctx) ctx.outputPath = path;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { useOutputPath };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=useOutputPath.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/usePlaintext.d.ts
|
|
2
1
|
export interface UsePlaintextOptions {
|
|
3
2
|
extension?: string;
|
|
4
3
|
destination?: string;
|
|
@@ -16,5 +15,4 @@ export interface UsePlaintextOptions {
|
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
18
17
|
export declare function usePlaintext(options?: UsePlaintextOptions): void;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=usePlaintext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePlaintext.d.ts","names":[],"sources":["../../src/composables/usePlaintext.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePlaintext.d.ts","names":[],"sources":["../../src/composables/usePlaintext.ts"],"mappings":"A,iBAGiB;EACf;EACA;EACA,UAAU;;;;;;;;;;;;;wBAcI,aAAa,UAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/usePlaintext.ts
|
|
4
4
|
/**
|
|
5
5
|
* Enable plaintext generation for the current email template.
|
|
6
6
|
*
|
|
@@ -16,7 +16,6 @@ function usePlaintext(options) {
|
|
|
16
16
|
const ctx = inject(RenderContextKey);
|
|
17
17
|
if (ctx) ctx.plaintext = options ?? {};
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { usePlaintext };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=usePlaintext.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/composables/usePreheader.d.ts
|
|
2
1
|
export interface UsePreheaderOptions {
|
|
3
2
|
/**
|
|
4
3
|
* Explicit number of filler sequences to render. When omitted, the count
|
|
@@ -20,5 +19,4 @@ export interface UsePreheaderOptions {
|
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
export declare function usePreheader(text: string, options?: UsePreheaderOptions): void;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=usePreheader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePreheader.d.ts","names":[],"sources":["../../src/composables/usePreheader.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePreheader.d.ts","names":[],"sources":["../../src/composables/usePreheader.ts"],"mappings":"A,iBAKiB;;;;;EAKf;;;;;;;;;;;;;;;wBAgBc,aAAa,cAAc,UAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { inject } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/usePreheader.ts
|
|
4
4
|
const PREVIEW_LENGTH = 200;
|
|
5
5
|
/**
|
|
6
6
|
* Set the preheader text for the current email template.
|
|
@@ -22,7 +22,6 @@ function usePreheader(text, options) {
|
|
|
22
22
|
fillerCount: options?.spaces !== void 0 ? Math.max(0, options.spaces) : Math.max(0, PREVIEW_LENGTH - text.length)
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { usePreheader };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=usePreheader.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TransformerToggles } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
//#region src/composables/useTransformers.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Toggle the transformer pipeline for the current template.
|
|
6
5
|
*
|
|
@@ -30,5 +29,4 @@ import "../types/index.js";
|
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
31
|
export declare function useTransformers(value?: boolean | TransformerToggles): void;
|
|
33
|
-
//#endregion
|
|
34
32
|
//# sourceMappingURL=useTransformers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransformers.d.ts","names":[],"sources":["../../src/composables/useTransformers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTransformers.d.ts","names":[],"sources":["../../src/composables/useTransformers.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiCgB,gBAAgB,kBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaizzleConfigKey } from "./useConfig.js";
|
|
2
2
|
import { RenderContextKey } from "./renderContext.js";
|
|
3
3
|
import { getCurrentInstance, inject, provide } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/useTransformers.ts
|
|
5
5
|
/**
|
|
6
6
|
* Toggle the transformer pipeline for the current template.
|
|
7
7
|
*
|
|
@@ -42,7 +42,6 @@ function useTransformers(value = true) {
|
|
|
42
42
|
ctx.sfcConfig = merged;
|
|
43
43
|
provide(MaizzleConfigKey, merged);
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { useTransformers };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=useTransformers.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UrlQuery } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
|
-
//#region src/composables/useUrlQuery.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Append query parameters to URLs in the current email template — same
|
|
6
5
|
* as `config.url.query`, scoped to one SFC. Common use: per-template
|
|
@@ -15,5 +14,4 @@ import "../types/index.js";
|
|
|
15
14
|
* receive them (see `UrlQueryOptions`).
|
|
16
15
|
*/
|
|
17
16
|
export declare function useUrlQuery(value: UrlQuery): void;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=useUrlQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUrlQuery.d.ts","names":[],"sources":["../../src/composables/useUrlQuery.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUrlQuery.d.ts","names":[],"sources":["../../src/composables/useUrlQuery.ts"],"mappings":";;;;;;;;;;;;;;;wBAkBgB,YAAY,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderContextKey } from "./renderContext.js";
|
|
2
2
|
import { defu as defu$1 } from "defu";
|
|
3
3
|
import { inject } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/useUrlQuery.ts
|
|
5
5
|
/**
|
|
6
6
|
* Append query parameters to URLs in the current email template — same
|
|
7
7
|
* as `config.url.query`, scoped to one SFC. Common use: per-template
|
|
@@ -20,7 +20,6 @@ function useUrlQuery(value) {
|
|
|
20
20
|
if (!ctx) return;
|
|
21
21
|
ctx.sfcConfig = defu$1({ url: { query: value } }, ctx.sfcConfig ?? {});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { useUrlQuery };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=useUrlQuery.js.map
|