@maizzle/framework 6.3.0 → 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/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 +0 -2
- package/dist/prepare.d.ts.map +1 -1
- package/dist/prepare.js +1 -2
- 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 +1 -2
- 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/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 +1 -2
- 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 +1 -2
- 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 +2 -2
- package/dist/server/ui/.vite/deps/vue.runtime.esm-bundler-Dq07uCLt.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChildNode } from "domhandler";
|
|
2
|
-
//#region src/transformers/removeAttributes.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Single attribute-removal rule.
|
|
5
4
|
*/
|
|
@@ -48,5 +47,4 @@ export declare function removeAttributes(html: string, attributes?: RemoveAttrib
|
|
|
48
47
|
* serialize/parse round-trips when chained with other transformers.
|
|
49
48
|
*/
|
|
50
49
|
export declare function removeAttributesDom(dom: ChildNode[], attributes?: RemoveAttributeOption[]): ChildNode[];
|
|
51
|
-
//#endregion
|
|
52
50
|
//# sourceMappingURL=removeAttributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeAttributes.d.ts","names":[],"sources":["../../src/transformers/removeAttributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeAttributes.d.ts","names":[],"sources":["../../src/transformers/removeAttributes.ts"],"mappings":";;;;iBAMiB;;EAEf;;;;;;;EAOA,iBAAiB;;;;;;YAOP,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;wBAwB7B,iBAAiB,cAAc,aAAY;;;;;;wBAS3C,oBAAoB,KAAK,aAAa,aAAY,0BAA+B"}
|
|
@@ -2,7 +2,7 @@ import { parse } from "../utils/ast/parser.js";
|
|
|
2
2
|
import { walk } from "../utils/ast/walker.js";
|
|
3
3
|
import { serialize } from "../utils/ast/serializer.js";
|
|
4
4
|
import "../utils/ast/index.js";
|
|
5
|
-
|
|
5
|
+
// src/transformers/removeAttributes.ts
|
|
6
6
|
/**
|
|
7
7
|
* Remove HTML attributes from elements.
|
|
8
8
|
*
|
|
@@ -66,7 +66,6 @@ function removeAttributesDom(dom, attributes = []) {
|
|
|
66
66
|
});
|
|
67
67
|
return dom;
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { removeAttributes, removeAttributesDom };
|
|
71
70
|
|
|
72
71
|
//# sourceMappingURL=removeAttributes.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
|
-
//#region src/transformers/replaceStrings.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Replace strings transformer.
|
|
5
4
|
*
|
|
@@ -10,5 +9,4 @@ import { MaizzleConfig } from "../types/config.js";
|
|
|
10
9
|
* Character classes must be escaped in keys, e.g. `\\s` for `\s`.
|
|
11
10
|
*/
|
|
12
11
|
export declare function replaceStrings(html: string, config?: MaizzleConfig): string;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=replaceStrings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceStrings.d.ts","names":[],"sources":["../../src/transformers/replaceStrings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"replaceStrings.d.ts","names":[],"sources":["../../src/transformers/replaceStrings.ts"],"mappings":";;;;;;;;;;wBAWgB,eAAe,cAAc,SAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/transformers/replaceStrings.ts
|
|
2
2
|
/**
|
|
3
3
|
* Replace strings transformer.
|
|
4
4
|
*
|
|
@@ -13,7 +13,6 @@ function replaceStrings(html, config = {}) {
|
|
|
13
13
|
if (!replacements || Object.keys(replacements).length === 0) return html;
|
|
14
14
|
return Object.entries(replacements).reduce((result, [pattern, replacement]) => result.replace(new RegExp(pattern, "gi"), replacement), html);
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { replaceStrings };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=replaceStrings.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CssConfig } from "../types/config.js";
|
|
2
2
|
import { ChildNode } from "domhandler";
|
|
3
|
-
//#region src/transformers/safeSelectors.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Safe selectors transformer.
|
|
6
5
|
*
|
|
@@ -31,5 +30,4 @@ export declare function safeSelectors(html: string, config?: CssConfig): string;
|
|
|
31
30
|
* serialize/parse round-trips when chained with other transformers.
|
|
32
31
|
*/
|
|
33
32
|
export declare function safeSelectorsDom(dom: ChildNode[], config?: CssConfig): ChildNode[];
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=safeSelectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeSelectors.d.ts","names":[],"sources":["../../src/transformers/safeSelectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"safeSelectors.d.ts","names":[],"sources":["../../src/transformers/safeSelectors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;wBA2HgB,cAAc,cAAc,SAAQ;;;;;;wBASpC,iBAAiB,KAAK,aAAa,SAAQ,YAAiB"}
|
|
@@ -4,7 +4,7 @@ import { serialize } from "../utils/ast/serializer.js";
|
|
|
4
4
|
import "../utils/ast/index.js";
|
|
5
5
|
import postcss from "postcss";
|
|
6
6
|
import safeParser from "postcss-safe-parser";
|
|
7
|
-
|
|
7
|
+
// src/transformers/safeSelectors.ts
|
|
8
8
|
const DEFAULT_REPLACEMENTS = {
|
|
9
9
|
":": "-",
|
|
10
10
|
"/": "-",
|
|
@@ -127,7 +127,6 @@ function safeSelectorsDom(dom, config = {}) {
|
|
|
127
127
|
});
|
|
128
128
|
return dom;
|
|
129
129
|
}
|
|
130
|
-
//#endregion
|
|
131
130
|
export { safeSelectors, safeSelectorsDom };
|
|
132
131
|
|
|
133
132
|
//# sourceMappingURL=safeSelectors.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChildNode } from "domhandler";
|
|
2
|
-
//#region src/transformers/shorthandCss.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Options for the `shorthandCss` transformer.
|
|
5
4
|
*/
|
|
@@ -19,5 +18,4 @@ export declare function shorthandCss(html: string, options?: ShorthandCssOptions
|
|
|
19
18
|
* serialize/parse round-trips when chained with other transformers.
|
|
20
19
|
*/
|
|
21
20
|
export declare function shorthandCssDom(dom: ChildNode[], options?: ShorthandCssOptions): ChildNode[];
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=shorthandCss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorthandCss.d.ts","names":[],"sources":["../../src/transformers/shorthandCss.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"shorthandCss.d.ts","names":[],"sources":["../../src/transformers/shorthandCss.ts"],"mappings":";;;;iBASiB;;;;;;;EAOf;;wBAwEc,aAAa,cAAc,UAAS;;;;;;wBASpC,gBAAgB,KAAK,aAAa,UAAS,sBAA2B"}
|
|
@@ -5,7 +5,7 @@ import "../utils/ast/index.js";
|
|
|
5
5
|
import postcss, { list } from "postcss";
|
|
6
6
|
import safeParser from "postcss-safe-parser";
|
|
7
7
|
import mergeLonghand from "postcss-merge-longhand";
|
|
8
|
-
|
|
8
|
+
// src/transformers/shorthandCss.ts
|
|
9
9
|
/**
|
|
10
10
|
* Rewrite longhand CSS inside inline `style` attributes with shorthand
|
|
11
11
|
* syntax. Works with margin, padding, and border when all sides are
|
|
@@ -126,7 +126,6 @@ function shorthandCssDom(dom, options = {}) {
|
|
|
126
126
|
});
|
|
127
127
|
return dom;
|
|
128
128
|
}
|
|
129
|
-
//#endregion
|
|
130
129
|
export { shorthandCss, shorthandCssDom };
|
|
131
130
|
|
|
132
131
|
//# sourceMappingURL=shorthandCss.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChildNode } from "domhandler";
|
|
2
|
-
//#region src/transformers/sixHex.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Convert 3-digit HEX color codes to 6-digit in `bgcolor` and `color`
|
|
5
4
|
* attributes, for better email client compatibility.
|
|
@@ -19,5 +18,4 @@ export declare function sixHex(html: string): string;
|
|
|
19
18
|
* serialize/parse round-trips when chained with other transformers.
|
|
20
19
|
*/
|
|
21
20
|
export declare function sixHexDom(dom: ChildNode[]): ChildNode[];
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=sixHex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixHex.d.ts","names":[],"sources":["../../src/transformers/sixHex.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sixHex.d.ts","names":[],"sources":["../../src/transformers/sixHex.ts"],"mappings":";;;;;;;;;;;;;wBAkBgB,OAAO;;;;;;wBASP,UAAU,KAAK,cAAc"}
|
|
@@ -3,7 +3,7 @@ import { walk } from "../utils/ast/walker.js";
|
|
|
3
3
|
import { serialize } from "../utils/ast/serializer.js";
|
|
4
4
|
import "../utils/ast/index.js";
|
|
5
5
|
import { conv } from "color-shorthand-hex-to-six-digit";
|
|
6
|
-
|
|
6
|
+
// src/transformers/sixHex.ts
|
|
7
7
|
const targets = /* @__PURE__ */ new Set(["bgcolor", "color"]);
|
|
8
8
|
/**
|
|
9
9
|
* Convert 3-digit HEX color codes to 6-digit in `bgcolor` and `color`
|
|
@@ -36,7 +36,6 @@ function sixHexDom(dom) {
|
|
|
36
36
|
});
|
|
37
37
|
return dom;
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { sixHex, sixHexDom };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=sixHex.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import { TailwindBlock } from "../composables/renderContext.js";
|
|
3
3
|
import { ChildNode } from "domhandler";
|
|
4
|
-
//#region src/transformers/tailwindComponent.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Compile Tailwind CSS for each top-level <Tailwind> block in the render
|
|
7
6
|
* context. Nested <Tailwind> instances are flattened: their classes flow
|
|
@@ -10,5 +9,4 @@ import { ChildNode } from "domhandler";
|
|
|
10
9
|
* are stripped after.
|
|
11
10
|
*/
|
|
12
11
|
export declare function tailwindComponent(dom: ChildNode[], blocks: TailwindBlock[], config: MaizzleConfig, filePath?: string, sourceFiles?: string[]): Promise<ChildNode[]>;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=tailwindComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindComponent.d.ts","names":[],"sources":["../../src/transformers/tailwindComponent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindComponent.d.ts","names":[],"sources":["../../src/transformers/tailwindComponent.ts"],"mappings":";;;;;;;;;;wBA2BsB,kBACpB,KAAK,aACL,QAAQ,iBACR,QAAQ,eACR,mBACA,yBACC,QAAQ"}
|
|
@@ -3,7 +3,7 @@ import "../utils/ast/index.js";
|
|
|
3
3
|
import { compileTailwindCss } from "../utils/compileTailwindCss.js";
|
|
4
4
|
import { rewriteImportsSourceNone } from "./tailwindcss.js";
|
|
5
5
|
import { dirname, relative, resolve } from "pathe";
|
|
6
|
-
|
|
6
|
+
// src/transformers/tailwindComponent.ts
|
|
7
7
|
const DEFAULT_SEED = "@import \"@maizzle/tailwindcss\" source(none);";
|
|
8
8
|
const OPEN_RE = /^mz-tw:(\S+)$/;
|
|
9
9
|
const CLOSE_RE = /^\/mz-tw:(\S+)$/;
|
|
@@ -114,7 +114,6 @@ function buildCssInput(configCss, classes, scope) {
|
|
|
114
114
|
}
|
|
115
115
|
return parts.length ? `${seed}\n${parts.join("\n")}` : seed;
|
|
116
116
|
}
|
|
117
|
-
//#endregion
|
|
118
117
|
export { tailwindComponent };
|
|
119
118
|
|
|
120
119
|
//# sourceMappingURL=tailwindComponent.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import { ChildNode } from "domhandler";
|
|
3
|
-
//#region src/transformers/tailwindcss.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Append ` source(none)` to Tailwind imports so auto source detection
|
|
6
5
|
* is off and only our explicit `@source` directives apply. Skips
|
|
@@ -25,5 +24,4 @@ export declare function rewriteImportsSourceNone(css: string): string;
|
|
|
25
24
|
* transformers (inliner, purge, etc.) work with fully compiled CSS.
|
|
26
25
|
*/
|
|
27
26
|
export declare function tailwindcss(dom: ChildNode[], config: MaizzleConfig, filePath?: string, sourceFiles?: string[]): Promise<ChildNode[]>;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=tailwindcss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindcss.d.ts","names":[],"sources":["../../src/transformers/tailwindcss.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindcss.d.ts","names":[],"sources":["../../src/transformers/tailwindcss.ts"],"mappings":";;;;;;;wBAgKgB,yBAAyB;;;;;;;;;;;;;;;;;;wBAwBnB,YAAY,KAAK,aAAa,QAAQ,eAAe,mBAAmB,yBAAyB,QAAQ"}
|
|
@@ -3,7 +3,7 @@ import "../utils/ast/index.js";
|
|
|
3
3
|
import { decodeStyleEntities } from "../utils/decodeStyleEntities.js";
|
|
4
4
|
import { compileTailwindCss } from "../utils/compileTailwindCss.js";
|
|
5
5
|
import { dirname, relative, resolve } from "pathe";
|
|
6
|
-
|
|
6
|
+
// src/transformers/tailwindcss.ts
|
|
7
7
|
/**
|
|
8
8
|
* Check if CSS content uses Tailwind features that require source scanning.
|
|
9
9
|
*
|
|
@@ -203,7 +203,6 @@ async function tailwindcss(dom, config, filePath, sourceFiles) {
|
|
|
203
203
|
}
|
|
204
204
|
return dom;
|
|
205
205
|
}
|
|
206
|
-
//#endregion
|
|
207
206
|
export { rewriteImportsSourceNone, tailwindcss };
|
|
208
207
|
|
|
209
208
|
//# sourceMappingURL=tailwindcss.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UrlQueryOptions } from "../types/config.js";
|
|
2
2
|
import { ChildNode } from "domhandler";
|
|
3
|
-
//#region src/transformers/urlQuery.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Append query parameters to URLs found in matching attributes/elements.
|
|
6
5
|
*
|
|
@@ -30,5 +29,4 @@ export declare function urlQuery(html: string, params?: Record<string, unknown>,
|
|
|
30
29
|
* serialize/parse round-trips when chained with other transformers.
|
|
31
30
|
*/
|
|
32
31
|
export declare function urlQueryDom(dom: ChildNode[], params?: Record<string, unknown>, options?: UrlQueryOptions): ChildNode[];
|
|
33
|
-
//#endregion
|
|
34
32
|
//# sourceMappingURL=urlQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlQuery.d.ts","names":[],"sources":["../../src/transformers/urlQuery.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"urlQuery.d.ts","names":[],"sources":["../../src/transformers/urlQuery.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBAiDgB,SACd,cACA,SAAQ,yBACR,UAAS;;;;;;wBAUK,YACd,KAAK,aACL,SAAQ,yBACR,UAAS,kBACR"}
|
|
@@ -4,7 +4,7 @@ import "../utils/ast/index.js";
|
|
|
4
4
|
import { isAbsoluteUrl } from "../utils/url.js";
|
|
5
5
|
import queryString from "query-string";
|
|
6
6
|
import { selectAll } from "css-select";
|
|
7
|
-
|
|
7
|
+
// src/transformers/urlQuery.ts
|
|
8
8
|
const DEFAULT_ATTRIBUTES = [
|
|
9
9
|
"src",
|
|
10
10
|
"href",
|
|
@@ -72,7 +72,6 @@ function urlQueryDom(dom, params = {}, options = {}) {
|
|
|
72
72
|
}
|
|
73
73
|
return dom;
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { urlQuery, urlQueryDom };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=urlQuery.js.map
|
package/dist/types/config.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Directive, Plugin } from "vue";
|
|
|
4
4
|
import { InlineConfig } from "vite";
|
|
5
5
|
import juice from "juice";
|
|
6
6
|
import { Options } from "unplugin-vue-markdown/types";
|
|
7
|
-
//#region src/types/config.d.ts
|
|
8
7
|
type JuiceOptions = NonNullable<Parameters<typeof juice>[1]>;
|
|
9
8
|
export interface UrlQueryOptions {
|
|
10
9
|
/**
|
|
@@ -821,5 +820,4 @@ export interface MaizzleConfig {
|
|
|
821
820
|
}) => void | Promise<void>;
|
|
822
821
|
[key: string]: any;
|
|
823
822
|
}
|
|
824
|
-
//#endregion
|
|
825
823
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","names":["_$___plugins_postcss_removeDeclarations_ts0.RemoveValue","MarkdownPluginOptions"],"sources":["../../src/types/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","names":["_$___plugins_postcss_removeDeclarations_ts0.RemoveValue","MarkdownPluginOptions"],"sources":["../../src/types/config.ts"],"mappings":";;;;;;KAKK,eAAe,YAAY,kBAAkB;iBAGjC;;;;;;EAMf;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA,KAAK;;YAGK,WAAW;EACrB,WAAW;;iBAGI;;;;;;;;;;;;EAYf,QAAQ;;;;;;;;;;;EAWR;;IAEE;;IAEA,kBAAkB,eAAe;;IAEjC,aAAa;;IAEb;;IAEA;;;iBAIa;;;;;;EAMf;;;;;;;;;;;EAWA;;;;;;;;EAQA,kBAAkB;;;;;;;;;;;;;;EAclB,mBAAmB;;;;;;;IAOjB;;;;;;IAMA;;;;;;;IAOA;;;;;;;;;;;;IAYA,mBAAmB;;;;;;;IAOnB;;;;;;;IAOA;;;;;;;IAOA;;;;;;;IAOA,aAAa;MAAiB;MAAe;;;;;;IAK7C;;;;;;;;;;;;;;EAcF;;;;;;IAME,4CAA4C,WAAW;;;;;;;;;EASzD;;;;;;EAMA,iBAAiB;;;;;;;;EAQjB;IAAwB;;;;;;;;;EAQxB;;;;;;;;;;;EAWA,qBAAqB,eA3BJA;;;;;;;;;;;;;EAwCjB;;iBAGe;;;;;;;;;;;;;;;;;;EAkBf,cAAc,uBAAuB;;;;;;;;;;;;;;;;;;;;;;EAsBrC,SAAS;IAAiB;IAAc,iBAAiB;;;YAG/C,2BAA2B;;;;;;YAO3B;iBAOK;;;;;;EAMf,UAAU;;;;;;;;EAQV;;iBAGe;;;;;;;;;;;EAWf;;;;;;;;;;;EAWA;;iBAGe;;EAEf,aAAa;;;;;;;;EAQb,iBAAiB;;;;;;EAMjB,mCAAmC;;;;;;;;;EASnC,mBAAmB,6BAA6B;;YAGtC,kBAAkB,aAAa;YAC/B,wBAAwB,eAAe;iBAElC,uBAAuBC;;;;;;EAMtC,6BAA6B;;iBAGd;;;;;;;;;EASf,UAAU,kBAAkB;;EAE5B,aAAa,eAAe;;EAE5B,mBAAmB;;;;;;;;;;;;;;;EAenB,0BAA0B,mBAAmB,cAAc;;;;;;;;;;;;;;;;;;;;iBAqB5C;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;iBASe;;;;;EAKf;;;;;;EAMA;;;;;;EAMA,UAAU,oCAAoC;;;;;;;;;;;;YAapC;;EAIR;;;;;EAKA;;;;;;;;;EASA;;iBAGa;;;;;;;;;;;;;;;EAef;;EAEA,WAAW;;;;;;;;EAQX;;EAEA;;;;;;IAME;;;;;;;;;;;IAWA;;;;;;;;;;;;;;;;;;;EAmBF;IAAuB;IAAkB;;;EAEzC;;;;;;IAME;;;;;;IAMA;;;EAGF;;;;;;;;;;;;;;;;;;;;IAoBE,SAAS,kBAAkB;;;EAG7B;;;;;;IAME;;;;;;;;;;;;;;;IAeA;;;;;;;;;;;IAWA;;;;;;;;;;;;;;;;;;;;IAoBA;;MAEE;;MAEA;;MAEA;;MAEA,YAAY;;;;;;;;;;;;;;;IAed,iBAAiB;;;EAGnB,MAAM;;;;;;;;;;;;;;;EAeN,sBAAsB;;EAEtB,UAAU;;;;;;;;;;;;EAYV,4BAA4B;;;;;;;;;EAS5B,iBAAiB;;;;;;;;;;;;EAYjB,UAAU;;EAEV,MAAM;;EAEN,OAAO;;;;;;;;;;;;;;;;;;;;;;EAsBP,OAAO;;;;;;;;;;;;;;;;EAgBP,MAAM;;;;;;;;;;;;EAYN,QAAQ;;EAKR,gBAAgB;IAAU,QAAQ;eAA2B;;EAE7D,gBAAgB;IAAU,QAAQ;IAAe,UAAU;wBAAmC;;EAE9F,eAAe;IAAU,QAAQ;IAAe,UAAU;IAAc;wBAAmC;;EAE3G,kBAAkB;IAAU,QAAQ;IAAe,UAAU;IAAc;wBAAmC;;EAE9G,cAAc;IAAU;IAAiB,QAAQ;eAA2B;GAG3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","names":[],"sources":["../../../src/utils/ast/parser.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"parser.d.ts","names":[],"sources":["../../../src/utils/ast/parser.ts"],"mappings":";wBAIgB,MAAM,cAAc,UAAS,oBAAyB"}
|
package/dist/utils/ast/parser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Parser } from "htmlparser2";
|
|
2
2
|
import { DomHandler } from "domhandler";
|
|
3
|
-
|
|
3
|
+
// src/utils/ast/parser.ts
|
|
4
4
|
function parse(html, options = {}) {
|
|
5
5
|
const handler = new DomHandler();
|
|
6
6
|
const parser = new Parser(handler, options);
|
|
@@ -8,7 +8,6 @@ function parse(html, options = {}) {
|
|
|
8
8
|
parser.end();
|
|
9
9
|
return handler.dom;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { parse };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=parser.js.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ChildNode } from "domhandler";
|
|
2
2
|
import { DomSerializerOptions } from "dom-serializer";
|
|
3
|
-
//#region src/utils/ast/serializer.d.ts
|
|
4
3
|
export declare function serialize(dom: ChildNode[], options?: DomSerializerOptions): string;
|
|
5
|
-
//#endregion
|
|
6
4
|
//# sourceMappingURL=serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"serializer.d.ts","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"mappings":";;wBA0CgB,UAAU,KAAK,aAAa,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import render from "dom-serializer";
|
|
2
|
-
|
|
2
|
+
// src/utils/ast/serializer.ts
|
|
3
3
|
const RAW_TEXT_ELEMENTS = /* @__PURE__ */ new Set(["script", "style"]);
|
|
4
4
|
/**
|
|
5
5
|
* Re-encode `<` and `>` in text nodes before serialization.
|
|
@@ -40,7 +40,6 @@ function serialize(dom, options) {
|
|
|
40
40
|
...options
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { serialize };
|
|
45
44
|
|
|
46
45
|
//# sourceMappingURL=serializer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walker.d.ts","names":[],"sources":["../../../src/utils/ast/walker.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"walker.d.ts","names":[],"sources":["../../../src/utils/ast/walker.ts"],"mappings":";wBAEgB,KAAK,KAAK,aAAa,WAAW,MAAM"}
|
package/dist/utils/ast/walker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/ast/walker.ts
|
|
2
2
|
function walk(ast, callback) {
|
|
3
3
|
function traverse(node) {
|
|
4
4
|
callback(node);
|
|
@@ -6,7 +6,6 @@ function walk(ast, callback) {
|
|
|
6
6
|
}
|
|
7
7
|
for (const node of ast) traverse(node);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { walk };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=walker.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/cloneConfig.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Deep-clone plain objects so per-template config mutations stay isolated.
|
|
4
3
|
*
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* touch. Sharing arrays by reference matches the parallel worker's merge.
|
|
9
8
|
*/
|
|
10
9
|
export declare function cloneConfig<T>(value: T): T;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=cloneConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneConfig.d.ts","names":[],"sources":["../../src/utils/cloneConfig.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cloneConfig.d.ts","names":[],"sources":["../../src/utils/cloneConfig.ts"],"mappings":";;;;;;;;wBAQgB,YAAY,GAAG,OAAO,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/cloneConfig.ts
|
|
2
2
|
/**
|
|
3
3
|
* Deep-clone plain objects so per-template config mutations stay isolated.
|
|
4
4
|
*
|
|
@@ -15,7 +15,6 @@ function cloneConfig(value) {
|
|
|
15
15
|
for (const key of Object.keys(value)) out[key] = cloneConfig(value[key]);
|
|
16
16
|
return out;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { cloneConfig };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=cloneConfig.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import { GradientCombo } from "../plugins/postcss/flattenGradients.js";
|
|
3
3
|
import postcss from "postcss";
|
|
4
|
-
//#region src/utils/compileTailwindCss.d.ts
|
|
5
4
|
export declare function createTailwindProcessor(config: MaizzleConfig, gradientCombos?: GradientCombo[]): postcss.Processor;
|
|
6
5
|
export declare function lowerCssSyntax(css: string): string;
|
|
7
6
|
export declare function optimizeTailwindCss(css: string, config: MaizzleConfig): Promise<string>;
|
|
@@ -11,5 +10,4 @@ export declare function optimizeTailwindCss(css: string, config: MaizzleConfig):
|
|
|
11
10
|
* then applies cleanup + media-query merging.
|
|
12
11
|
*/
|
|
13
12
|
export declare function compileTailwindCss(cssInput: string, config: MaizzleConfig, from: string, gradientCombos?: GradientCombo[]): Promise<string>;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=compileTailwindCss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileTailwindCss.d.ts","names":[],"sources":["../../src/utils/compileTailwindCss.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compileTailwindCss.d.ts","names":[],"sources":["../../src/utils/compileTailwindCss.ts"],"mappings":";;;wBAcgB,wBAAwB,QAAQ,eAAe,iBAAgB,kBAAoB,QAAA;wBAkBnF,eAAe;wBAWT,oBAAoB,aAAa,QAAQ,gBAAgB;;;;;;wBAgBzD,mBACpB,kBACA,QAAQ,eACR,cACA,iBAAgB,kBACf"}
|
|
@@ -10,7 +10,7 @@ import tailwindcssPostcss from "@tailwindcss/postcss";
|
|
|
10
10
|
import postcssCalc from "postcss-calc";
|
|
11
11
|
import safeParser from "postcss-safe-parser";
|
|
12
12
|
import { transform } from "lightningcss";
|
|
13
|
-
|
|
13
|
+
// src/utils/compileTailwindCss.ts
|
|
14
14
|
function createTailwindProcessor(config, gradientCombos = []) {
|
|
15
15
|
return postcss([
|
|
16
16
|
resolveMaizzleImports(config.root),
|
|
@@ -51,7 +51,6 @@ async function compileTailwindCss(cssInput, config, from, gradientCombos = []) {
|
|
|
51
51
|
parser: safeParser
|
|
52
52
|
})).css), config);
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { compileTailwindCss, createTailwindProcessor, lowerCssSyntax, optimizeTailwindCss };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=compileTailwindCss.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentSource } from "../types/config.js";
|
|
2
|
-
//#region src/utils/componentSources.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Internal representation of a component source after defaults are
|
|
5
4
|
* resolved and `path` is made absolute. Always carries the same shape
|
|
@@ -44,5 +43,4 @@ export interface ComponentNameOptions {
|
|
|
44
43
|
* time (so the linter can follow component graph correctly).
|
|
45
44
|
*/
|
|
46
45
|
export declare function componentNameFromPath(opts: ComponentNameOptions): string;
|
|
47
|
-
//#endregion
|
|
48
46
|
//# sourceMappingURL=componentSources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentSources.d.ts","names":[],"sources":["../../src/utils/componentSources.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"componentSources.d.ts","names":[],"sources":["../../src/utils/componentSources.ts"],"mappings":";;;;;;iBAQiB;;EAEf;;;;;;;;EAQA;;EAEA;;;;;;wBAOc,0BACd,SAAS,kBAAkB,+BAC3B,cACC;iBAqBc;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;;;;;wBAYc,sBAAsB,MAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { relative, resolve } from "pathe";
|
|
2
|
-
|
|
2
|
+
// src/utils/componentSources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Normalize a user-supplied `components.source` value into an array
|
|
5
5
|
* of absolute, fully-defaulted entries.
|
|
@@ -44,7 +44,6 @@ function componentNameFromPath(opts) {
|
|
|
44
44
|
if (folderPart && fileName.startsWith(folderPart)) return fileName;
|
|
45
45
|
return folderPart + fileName;
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { componentNameFromPath, normalizeComponentSources };
|
|
49
48
|
|
|
50
49
|
//# sourceMappingURL=componentSources.js.map
|
package/dist/utils/cssBox.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Root } from "postcss";
|
|
2
|
-
//#region src/utils/cssBox.d.ts
|
|
3
2
|
export declare const NO_BORDER_STYLES: Set<string>;
|
|
4
3
|
/**
|
|
5
4
|
* Parse a length token into px. Handles `Npx`, `Nrem`, `Nem`, `Npt`, and
|
|
@@ -36,5 +35,4 @@ export declare function shorthandBorderWidthPx(value: string): number | null;
|
|
|
36
35
|
* contribution. Returns total px or 0 when nothing resolves.
|
|
37
36
|
*/
|
|
38
37
|
export declare function horizontalBorderPx(root: Root): number;
|
|
39
|
-
//#endregion
|
|
40
38
|
//# sourceMappingURL=cssBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssBox.d.ts","names":[],"sources":["../../src/utils/cssBox.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cssBox.d.ts","names":[],"sources":["../../src/utils/cssBox.ts"],"mappings":";qBAEa,kBAAgB;;;;;;wBAOb,WAAW;;;;;;;;wBAeX,eAAe;EAAkB;EAAe;;;;;;wBAehD,oBAAoB,MAAM;;;;;;;wBA8B1B,uBAAuB;;;;;;wBAevB,mBAAmB,MAAM"}
|
package/dist/utils/cssBox.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/cssBox.ts
|
|
2
2
|
const NO_BORDER_STYLES = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
3
3
|
/**
|
|
4
4
|
* Parse a length token into px. Handles `Npx`, `Nrem`, `Nem`, `Npt`, and
|
|
@@ -141,7 +141,6 @@ function horizontalBorderPx(root) {
|
|
|
141
141
|
});
|
|
142
142
|
return (leftNone ? 0 : left ?? 0) + (rightNone ? 0 : right ?? 0);
|
|
143
143
|
}
|
|
144
|
-
//#endregion
|
|
145
144
|
export { NO_BORDER_STYLES, horizontalBorderPx, horizontalPaddingPx, lengthToPx, shorthandBorderWidthPx, shorthandSides };
|
|
146
145
|
|
|
147
146
|
//# sourceMappingURL=cssBox.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/decodeStyleEntities.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Decode HTML entities that Vue SSR encodes inside `<style>` tags.
|
|
4
3
|
*
|
|
@@ -10,5 +9,4 @@
|
|
|
10
9
|
* re-processed.
|
|
11
10
|
*/
|
|
12
11
|
export declare function decodeStyleEntities(s: string): string;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=decodeStyleEntities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeStyleEntities.d.ts","names":[],"sources":["../../src/utils/decodeStyleEntities.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"decodeStyleEntities.d.ts","names":[],"sources":["../../src/utils/decodeStyleEntities.ts"],"mappings":";;;;;;;;;;wBAUgB,oBAAoB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/decodeStyleEntities.ts
|
|
2
2
|
/**
|
|
3
3
|
* Decode HTML entities that Vue SSR encodes inside `<style>` tags.
|
|
4
4
|
*
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
function decodeStyleEntities(s) {
|
|
13
13
|
return s.replace(/"/g, "\"").replace(/'/g, "'").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { decodeStyleEntities };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=decodeStyleEntities.js.map
|
package/dist/utils/detect.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../src/utils/detect.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../src/utils/detect.ts"],"mappings":"A,wBAGgB,UAAU"}
|
package/dist/utils/detect.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
|
-
|
|
3
|
+
// src/utils/detect.ts
|
|
4
4
|
function isLaravel(cwd = process.cwd()) {
|
|
5
5
|
return existsSync(resolve(cwd, "artisan"));
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { isLaravel };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=detect.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/output-markers.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Sentinel attributes the `<Plaintext>` and `<NotPlaintext>`
|
|
4
3
|
* components stamp on their wrapper `<div>` so the build step
|
|
@@ -24,5 +23,4 @@ export declare function stripForHtml(html: string): string;
|
|
|
24
23
|
* remaining tags via `string-strip-html`.
|
|
25
24
|
*/
|
|
26
25
|
export declare function stripForPlaintext(html: string): string;
|
|
27
|
-
//#endregion
|
|
28
26
|
//# sourceMappingURL=output-markers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-markers.d.ts","names":[],"sources":["../../src/utils/output-markers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"output-markers.d.ts","names":[],"sources":["../../src/utils/output-markers.ts"],"mappings":";;;;;;qBASa;qBACA;;;;;;;;;wBA+CG,aAAa;;;;;;;;wBAgBb,kBAAkB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parse } from "./ast/parser.js";
|
|
2
2
|
import { serialize } from "./ast/serializer.js";
|
|
3
3
|
import "./ast/index.js";
|
|
4
|
-
|
|
4
|
+
// src/utils/output-markers.ts
|
|
5
5
|
/**
|
|
6
6
|
* Sentinel attributes the `<Plaintext>` and `<NotPlaintext>`
|
|
7
7
|
* components stamp on their wrapper `<div>` so the build step
|
|
@@ -62,7 +62,6 @@ function stripForPlaintext(html) {
|
|
|
62
62
|
if (!hasMarkers(html)) return html;
|
|
63
63
|
return serialize(applyRules(parse(html), [[HTML_ONLY_ATTR, "drop"], [PLAINTEXT_ONLY_ATTR, "unwrap"]]));
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { HTML_ONLY_ATTR, PLAINTEXT_ONLY_ATTR, stripForHtml, stripForPlaintext };
|
|
67
66
|
|
|
68
67
|
//# sourceMappingURL=output-markers.js.map
|