@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","names":[],"sources":["../../src/config/defaults.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","names":[],"sources":["../../src/config/defaults.ts"],"mappings":";;qBAEa,UAAU"}
|
package/dist/config/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/config/defaults.ts
|
|
2
2
|
const defaults = {
|
|
3
3
|
content: ["emails/**/*.{vue,md}"],
|
|
4
4
|
output: {
|
|
@@ -23,7 +23,6 @@ const defaults = {
|
|
|
23
23
|
html: { decodeEntities: true },
|
|
24
24
|
useTransformers: true
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { defaults };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=defaults.js.map
|
package/dist/config/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { MaizzleConfig } from "../types/config.js";
|
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { defineConfig } from "../composables/defineConfig.js";
|
|
4
4
|
import { defaults } from "./defaults.js";
|
|
5
|
-
//#region src/config/index.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Resolve the Maizzle config.
|
|
8
7
|
*
|
|
@@ -28,6 +27,5 @@ export declare function resolveConfigObject(config?: Partial<MaizzleConfig>, cwd
|
|
|
28
27
|
* re-evaluates per instance.
|
|
29
28
|
*/
|
|
30
29
|
export declare function isNativeESM(absolutePath: string): boolean;
|
|
31
|
-
//#endregion
|
|
32
30
|
export { defaults, defineConfig };
|
|
33
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/config/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/config/index.ts"],"mappings":";;;;;;;;;;wBA8BsB,cACpB,SAAS,QAAQ,yBACjB,eACC,QAAQ;;;;;;;;;wBAqBK,oBACd,SAAS,QAAQ,gBACjB,eACC;;;;;;;;;wBAoFa,YAAY"}
|
package/dist/config/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
5
5
|
import { dirname, extname, join, resolve } from "pathe";
|
|
6
6
|
import { createJiti } from "jiti";
|
|
7
7
|
import { createDefu } from "defu";
|
|
8
|
-
|
|
8
|
+
// src/config/index.ts
|
|
9
9
|
const merge = createDefu((obj, key, value) => {
|
|
10
10
|
if (Array.isArray(obj[key])) {
|
|
11
11
|
obj[key] = value;
|
|
@@ -130,7 +130,6 @@ async function loadConfig(configPath, cwd = process.cwd()) {
|
|
|
130
130
|
}
|
|
131
131
|
return {};
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { defaults, defineConfig, isNativeESM, resolveConfig, resolveConfigObject };
|
|
135
134
|
|
|
136
135
|
//# sourceMappingURL=index.js.map
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../types/config.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { ParsedPath } from "node:path";
|
|
4
|
-
//#region src/events/index.d.ts
|
|
5
4
|
export type EventName = 'beforeCreate' | 'beforeRender' | 'afterRender' | 'afterTransform' | 'afterBuild';
|
|
6
5
|
/**
|
|
7
6
|
* Info about the template currently being processed, passed to per-template
|
|
@@ -109,5 +108,4 @@ export declare class EventManager {
|
|
|
109
108
|
*/
|
|
110
109
|
clear(): void;
|
|
111
110
|
}
|
|
112
|
-
//#endregion
|
|
113
111
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/events/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/events/index.ts"],"mappings":";;;YAGY;;;;;;iBAOK;EACf;EACA,MAAM;;iBAGS;EACf,eAAe;IAAU,QAAQ;eAA2B;EAC5D,eAAe;IAAU,QAAQ;IAAe,UAAU;wBAAmC;EAC7F,cAAc;IAAU,QAAQ;IAAe,UAAU;IAAc;wBAAmC;EAC1G,iBAAiB;IAAU,QAAQ;IAAe,UAAU;IAAc;wBAAmC;EAC7G,aAAa;IAAU;IAAiB,QAAQ;eAA2B;;;;;;;;;qBAUhE;UACH;;;;;;UAMA;;;;EAKR,eAAe,QAAQ;;;;EAevB,GAAG,UAAU,WAAW,MAAM,GAAG,SAAS,SAAS;;;;EAW7C,iBAAiB;IAAU,QAAQ;MAAe;;;;;EAYlD,iBAAiB;IAAU,QAAQ;IAAe,UAAU;MAAiB;;;;EAiB7E,gBAAgB;IAAU,QAAQ;IAAe,UAAU;IAAc;MAAiB;;;;EAmB1F,mBAAmB;IAAU,QAAQ;IAAe,UAAU;IAAc;MAAiB;;;;EAmB7F,eAAe;IAAU;IAAiB,QAAQ;MAAe;;;;;;;;;EAgBvE,iBAAiB,SAAQ;;;;EAczB"}
|
package/dist/events/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/events/index.ts
|
|
2
2
|
/**
|
|
3
3
|
* Central event manager that collects handlers from config and useEvent() calls.
|
|
4
4
|
*
|
|
@@ -122,7 +122,6 @@ var EventManager = class {
|
|
|
122
122
|
this.handlers.clear();
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
//#endregion
|
|
126
125
|
export { EventManager };
|
|
127
126
|
|
|
128
127
|
//# sourceMappingURL=index.js.map
|
package/dist/plaintext.d.ts
CHANGED
package/dist/plaintext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plaintext.d.ts","names":[],"sources":["../src/plaintext.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plaintext.d.ts","names":[],"sources":["../src/plaintext.ts"],"mappings":"A,wBAUgB,gBAAgB,cAAc,UAAU"}
|
package/dist/plaintext.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import defu from "defu";
|
|
2
2
|
import { stripHtml } from "string-strip-html";
|
|
3
|
-
|
|
3
|
+
// src/plaintext.ts
|
|
4
4
|
const defaults = { dumpLinkHrefsNearby: {
|
|
5
5
|
enabled: true,
|
|
6
6
|
putOnNewLine: true
|
|
@@ -8,7 +8,6 @@ const defaults = { dumpLinkHrefsNearby: {
|
|
|
8
8
|
function createPlaintext(html, options) {
|
|
9
9
|
return stripHtml(html, defu(options, defaults)).result;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { createPlaintext };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=plaintext.js.map
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaizzleConfig } from "./types/config.js";
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { Plugin } from "vite";
|
|
4
|
-
//#region src/plugin.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Maizzle Vite plugin for use inside an existing Vite project.
|
|
7
6
|
*
|
|
@@ -12,5 +11,4 @@ import { Plugin } from "vite";
|
|
|
12
11
|
* The host app manages its own stack. Maizzle runs in its own process.
|
|
13
12
|
*/
|
|
14
13
|
export declare function maizzle(configInput?: Partial<MaizzleConfig>): Plugin[];
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","names":[],"sources":["../src/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;;;;;wBAagB,QAAQ,cAAc,QAAQ,iBAAiB"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isLaravel } from "./utils/detect.js";
|
|
2
|
-
|
|
2
|
+
// src/plugin.ts
|
|
3
3
|
/**
|
|
4
4
|
* Maizzle Vite plugin for use inside an existing Vite project.
|
|
5
5
|
*
|
|
@@ -51,7 +51,6 @@ function maizzle(configInput) {
|
|
|
51
51
|
}
|
|
52
52
|
}];
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { maizzle };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=plugin.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
|
-
//#region src/plugins/postcss/flattenGradients.d.ts
|
|
3
2
|
/** A gradient combo found on a DOM element. */
|
|
4
3
|
export interface GradientCombo {
|
|
5
4
|
/** Generated class name to emit the flat rule for. */
|
|
@@ -9,6 +8,5 @@ export interface GradientCombo {
|
|
|
9
8
|
}
|
|
10
9
|
declare const _default: (combos?: GradientCombo[]) => Plugin;
|
|
11
10
|
export declare const postcss = true;
|
|
12
|
-
//#endregion
|
|
13
11
|
export { _default as default };
|
|
14
12
|
//# sourceMappingURL=flattenGradients.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flattenGradients.d.ts","names":[],"sources":["../../../src/plugins/postcss/flattenGradients.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"flattenGradients.d.ts","names":[],"sources":["../../../src/plugins/postcss/flattenGradients.ts"],"mappings":";;iBA6BiB;;EAEf;;EAEA;;cAuCc,WAAA,SAAQ,oBAAuB;qBA4HlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule } from "postcss";
|
|
2
|
-
|
|
2
|
+
// src/plugins/postcss/flattenGradients.ts
|
|
3
3
|
/**
|
|
4
4
|
* postcss-flatten-gradients
|
|
5
5
|
*
|
|
@@ -138,7 +138,6 @@ var flattenGradients_default = (combos = []) => {
|
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
const postcss = true;
|
|
141
|
-
//#endregion
|
|
142
141
|
export { flattenGradients_default as default, postcss };
|
|
143
142
|
|
|
144
143
|
//# sourceMappingURL=flattenGradients.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../../types/config.js";
|
|
2
2
|
import postcss from "postcss";
|
|
3
|
-
//#region src/plugins/postcss/mergeMediaQueries.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Sorts and merges CSS media queries using postcss-sort-media-queries.
|
|
6
5
|
*
|
|
@@ -12,5 +11,4 @@ import postcss from "postcss";
|
|
|
12
11
|
* css: { media: false } // disabled
|
|
13
12
|
*/
|
|
14
13
|
export declare function mergeMediaQueries(config: MaizzleConfig): postcss.Plugin | null;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=mergeMediaQueries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeMediaQueries.d.ts","names":[],"sources":["../../../src/plugins/postcss/mergeMediaQueries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mergeMediaQueries.d.ts","names":[],"sources":["../../../src/plugins/postcss/mergeMediaQueries.ts"],"mappings":";;;;;;;;;;;;wBAcgB,kBAAkB,QAAQ,gBAAgB,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sortMediaQueries from "postcss-sort-media-queries";
|
|
2
|
-
|
|
2
|
+
// src/plugins/postcss/mergeMediaQueries.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sorts and merges CSS media queries using postcss-sort-media-queries.
|
|
5
5
|
*
|
|
@@ -16,7 +16,6 @@ function mergeMediaQueries(config) {
|
|
|
16
16
|
const sort = (typeof media === "object" ? media : {}).sort ?? "mobile-first";
|
|
17
17
|
return sortMediaQueries({ sort });
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { mergeMediaQueries };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=mergeMediaQueries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruneVars.d.ts","names":[],"sources":["../../../src/plugins/postcss/pruneVars.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pruneVars.d.ts","names":[],"sources":["../../../src/plugins/postcss/pruneVars.ts"],"mappings":";cAiBmB,gBAAA;qBA2DN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/plugins/postcss/pruneVars.ts
|
|
2
2
|
const PLUGIN_NAME = "postcss-prune-var";
|
|
3
3
|
const VAR_RE = /var\(\s*(--[^ ,);]+)/g;
|
|
4
4
|
var pruneVars_default = () => {
|
|
@@ -43,7 +43,6 @@ var pruneVars_default = () => {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
const postcss = true;
|
|
46
|
-
//#endregion
|
|
47
46
|
export { pruneVars_default as default, postcss };
|
|
48
47
|
|
|
49
48
|
//# sourceMappingURL=pruneVars.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
|
-
//#region src/plugins/postcss/quoteFontFamilies.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Re-quote multi-word font-family identifiers that lightningcss "optimised"
|
|
5
4
|
* by removing quotes. CSS allows space-separated identifiers as a family
|
|
@@ -7,5 +6,4 @@ import { Plugin } from "postcss";
|
|
|
7
6
|
*/
|
|
8
7
|
export declare function quoteFontFamilies(): Plugin;
|
|
9
8
|
export declare const postcss = true;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=quoteFontFamilies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteFontFamilies.d.ts","names":[],"sources":["../../../src/plugins/postcss/quoteFontFamilies.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"quoteFontFamilies.d.ts","names":[],"sources":["../../../src/plugins/postcss/quoteFontFamilies.ts"],"mappings":";;;;;;wBA+CgB,qBAAqB;qBA6BxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/plugins/postcss/quoteFontFamilies.ts
|
|
2
2
|
const GENERIC_KEYWORDS = /* @__PURE__ */ new Set([
|
|
3
3
|
"serif",
|
|
4
4
|
"sans-serif",
|
|
@@ -78,7 +78,6 @@ function quoteFontFamilies() {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
const postcss = true;
|
|
81
|
-
//#endregion
|
|
82
81
|
export { postcss, quoteFontFamilies };
|
|
83
82
|
|
|
84
83
|
//# sourceMappingURL=quoteFontFamilies.js.map
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
|
-
//#region src/plugins/postcss/removeDeclarations.d.ts
|
|
3
2
|
export type RemoveValue = '*' | string | string[] | Record<string, string>;
|
|
4
3
|
export interface RemoveDeclarationsOptions {
|
|
5
4
|
remove: Record<string, RemoveValue>;
|
|
6
5
|
}
|
|
7
6
|
declare const _default: (options: RemoveDeclarationsOptions) => Plugin;
|
|
8
7
|
export declare const postcss = true;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { _default as default };
|
|
11
9
|
//# sourceMappingURL=removeDeclarations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeDeclarations.d.ts","names":[],"sources":["../../../src/plugins/postcss/removeDeclarations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeDeclarations.d.ts","names":[],"sources":["../../../src/plugins/postcss/removeDeclarations.ts"],"mappings":";YA0BY,wCAIR;iBAEa;EACf,QAAQ,eAAe;;cAST,WAAA,SAAS,8BAA4B;qBAyDxC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/plugins/postcss/removeDeclarations.ts
|
|
2
2
|
const IMPORTANT = "!important";
|
|
3
3
|
function normalizeSelector(selector) {
|
|
4
4
|
return selector.replace(/(\r\n|\n|\r)/gm, "");
|
|
@@ -39,7 +39,6 @@ var removeDeclarations_default = (options) => {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
const postcss = true;
|
|
42
|
-
//#endregion
|
|
43
42
|
export { removeDeclarations_default as default, postcss };
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=removeDeclarations.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
|
-
//#region src/plugins/postcss/resolveMaizzleImports.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Rewrite `@import "@maizzle/tailwindcss"` (and subpaths like
|
|
5
4
|
* `@maizzle/tailwindcss/mso`) to absolute file paths so postcss/Tailwind
|
|
@@ -10,5 +9,4 @@ import { Plugin } from "postcss";
|
|
|
10
9
|
* win), then fall back to the copy bundled with the framework.
|
|
11
10
|
*/
|
|
12
11
|
export declare function resolveMaizzleImports(userRoot?: string): Plugin;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=resolveMaizzleImports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveMaizzleImports.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveMaizzleImports.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveMaizzleImports.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveMaizzleImports.ts"],"mappings":";;;;;;;;;;wBAiBgB,sBAAsB,oBAAmC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
2
|
+
// src/plugins/postcss/resolveMaizzleImports.ts
|
|
3
3
|
const SUBPATH_RE = new RegExp(`^@maizzle/tailwindcss(?:/|$)`);
|
|
4
4
|
const requireFromFramework = createRequire(import.meta.url);
|
|
5
5
|
/**
|
|
@@ -40,7 +40,6 @@ function resolveMaizzleImports(userRoot = process.cwd()) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { resolveMaizzleImports };
|
|
45
44
|
|
|
46
45
|
//# sourceMappingURL=resolveMaizzleImports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveProps.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveProps.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveProps.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveProps.ts"],"mappings":";cAgHmB,gBAAA;qBA+IN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/plugins/postcss/resolveProps.ts
|
|
2
2
|
/** Check if a rule's selector includes :root */
|
|
3
3
|
function isRootRule(rule) {
|
|
4
4
|
const sel = rule.selector;
|
|
@@ -149,7 +149,6 @@ var resolveProps_default = () => {
|
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
const postcss = true;
|
|
152
|
-
//#endregion
|
|
153
152
|
export { resolveProps_default as default, postcss };
|
|
154
153
|
|
|
155
154
|
//# sourceMappingURL=resolveProps.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../../types/config.js";
|
|
2
2
|
import postcss from "postcss";
|
|
3
|
-
//#region src/plugins/postcss/tailwindCleanup.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Removes CSS rules whose every comma-separated selector part starts with
|
|
6
5
|
* one of the configured prefixes (e.g. ':host', ':lang'). Rules with mixed
|
|
@@ -12,5 +11,4 @@ import postcss from "postcss";
|
|
|
12
11
|
* flattened all modern CSS syntax.
|
|
13
12
|
*/
|
|
14
13
|
export declare function tailwindCleanup(config: MaizzleConfig): postcss.Plugin[];
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=tailwindCleanup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindCleanup.d.ts","names":[],"sources":["../../../src/plugins/postcss/tailwindCleanup.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindCleanup.d.ts","names":[],"sources":["../../../src/plugins/postcss/tailwindCleanup.ts"],"mappings":";;;;;;;;;;;;wBA0CgB,gBAAgB,QAAQ,gBAAgB,QAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/plugins/postcss/tailwindCleanup.ts
|
|
2
2
|
const DEFAULT_SELECTORS = [":host", ":lang"];
|
|
3
3
|
const DEFAULT_AT_RULES = ["layer", "property"];
|
|
4
4
|
/**
|
|
@@ -62,7 +62,6 @@ function tailwindCleanup(config) {
|
|
|
62
62
|
}
|
|
63
63
|
];
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { tailwindCleanup };
|
|
67
66
|
|
|
68
67
|
//# sourceMappingURL=tailwindCleanup.js.map
|
package/dist/prepare.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
//#region src/prepare.d.ts
|
|
2
1
|
export interface PrepareOptions {
|
|
3
2
|
/** Path to a Maizzle config file. */
|
|
4
3
|
config?: string;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
7
6
|
* Generate IDE type definitions in `.maizzle/`
|
|
8
|
-
* (`auto-imports.d.ts` and `
|
|
7
|
+
* (`auto-imports.d.ts`, `components.d.ts` and `attributes.d.ts`).
|
|
9
8
|
*
|
|
10
9
|
* Intended as a `postinstall` step so editors get autocompletion before the
|
|
11
10
|
* user runs `dev` or `build`. Spins up the renderer with `dts: true`, runs
|
|
12
11
|
* a trivial render to trigger the unplugin scans, then shuts down.
|
|
13
12
|
*/
|
|
14
13
|
export declare function prepare(options?: PrepareOptions): Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=prepare.d.ts.map
|
package/dist/prepare.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.d.ts","names":[],"sources":["../src/prepare.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare.d.ts","names":[],"sources":["../src/prepare.ts"],"mappings":"A,iBAOiB;;EAEf;;;;;;;;;;wBAWoB,QAAQ,UAAS,iBAAsB"}
|
package/dist/prepare.js
CHANGED
|
@@ -4,10 +4,10 @@ import { normalizeComponentSources } from "./utils/componentSources.js";
|
|
|
4
4
|
import { createRenderer } from "./render/createRenderer.js";
|
|
5
5
|
import { relative, resolve } from "node:path";
|
|
6
6
|
import ora from "ora";
|
|
7
|
-
|
|
7
|
+
// src/prepare.ts
|
|
8
8
|
/**
|
|
9
9
|
* Generate IDE type definitions in `.maizzle/`
|
|
10
|
-
* (`auto-imports.d.ts` and `
|
|
10
|
+
* (`auto-imports.d.ts`, `components.d.ts` and `attributes.d.ts`).
|
|
11
11
|
*
|
|
12
12
|
* Intended as a `postinstall` step so editors get autocompletion before the
|
|
13
13
|
* user runs `dev` or `build`. Spins up the renderer with `dts: true`, runs
|
|
@@ -39,7 +39,6 @@ async function prepare(options = {}) {
|
|
|
39
39
|
text: `Types generated in ${displayPath}`
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { prepare };
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=prepare.js.map
|
package/dist/prepare.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.js","names":[],"sources":["../src/prepare.ts"],"sourcesContent":["import { relative, resolve } from 'node:path'\nimport ora from 'ora'\nimport { resolveConfig } from './config/index.ts'\nimport { createRenderer } from './render/createRenderer.ts'\nimport { isLaravel } from './utils/detect.ts'\nimport { normalizeComponentSources } from './utils/componentSources.ts'\n\nexport interface PrepareOptions {\n /** Path to a Maizzle config file. */\n config?: string\n}\n\n/**\n * Generate IDE type definitions in `.maizzle/`\n * (`auto-imports.d.ts` and `
|
|
1
|
+
{"version":3,"file":"prepare.js","names":[],"sources":["../src/prepare.ts"],"sourcesContent":["import { relative, resolve } from 'node:path'\nimport ora from 'ora'\nimport { resolveConfig } from './config/index.ts'\nimport { createRenderer } from './render/createRenderer.ts'\nimport { isLaravel } from './utils/detect.ts'\nimport { normalizeComponentSources } from './utils/componentSources.ts'\n\nexport interface PrepareOptions {\n /** Path to a Maizzle config file. */\n config?: string\n}\n\n/**\n * Generate IDE type definitions in `.maizzle/`\n * (`auto-imports.d.ts`, `components.d.ts` and `attributes.d.ts`).\n *\n * Intended as a `postinstall` step so editors get autocompletion before the\n * user runs `dev` or `build`. Spins up the renderer with `dts: true`, runs\n * a trivial render to trigger the unplugin scans, then shuts down.\n */\nexport async function prepare(options: PrepareOptions = {}): Promise<void> {\n const spinner = ora({ text: 'Generating types...', spinner: 'circleHalves' }).start()\n\n const config = await resolveConfig(options.config)\n\n const renderer = await createRenderer({\n dts: true,\n markdown: config.markdown,\n root: config.root,\n componentDirs: normalizeComponentSources(config.components?.source, process.cwd()),\n vite: config.vite,\n customElements: config.vue?.customElements,\n })\n\n try {\n await renderer.render('<template><div></div></template>', config)\n } finally {\n await renderer.close()\n }\n\n const dtsDir = isLaravel()\n ? resolve(process.cwd(), 'resources/js/types/maizzle')\n : resolve(config.root ?? process.cwd(), '.maizzle')\n const displayPath = relative(process.cwd(), dtsDir) || dtsDir\n\n spinner.stopAndPersist({\n symbol: '✅',\n text: `Types generated in ${displayPath}`,\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;AAoBA,eAAsB,QAAQ,UAA0B,CAAC,GAAkB;CACzE,MAAM,UAAU,IAAI;EAAE,MAAM;EAAuB,SAAS;CAAe,CAAC,CAAC,CAAC,MAAM;CAEpF,MAAM,SAAS,MAAM,cAAc,QAAQ,MAAM;CAEjD,MAAM,WAAW,MAAM,eAAe;EACpC,KAAK;EACL,UAAU,OAAO;EACjB,MAAM,OAAO;EACb,eAAe,0BAA0B,OAAO,YAAY,QAAQ,QAAQ,IAAI,CAAC;EACjF,MAAM,OAAO;EACb,gBAAgB,OAAO,KAAK;CAC9B,CAAC;CAED,IAAI;EACF,MAAM,SAAS,OAAO,oCAAoC,MAAM;CAClE,UAAU;EACR,MAAM,SAAS,MAAM;CACvB;CAEA,MAAM,SAAS,UAAU,IACrB,QAAQ,QAAQ,IAAI,GAAG,4BAA4B,IACnD,QAAQ,OAAO,QAAQ,QAAQ,IAAI,GAAG,UAAU;CACpD,MAAM,cAAc,SAAS,QAAQ,IAAI,GAAG,MAAM,KAAK;CAEvD,QAAQ,eAAe;EACrB,QAAQ;EACR,MAAM,sBAAsB;CAC9B,CAAC;AACH"}
|
package/dist/render/active.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Renderer } from "./createRenderer.js";
|
|
2
|
-
//#region src/render/active.d.ts
|
|
3
2
|
export declare function setActiveRenderer(renderer: Renderer | null): void;
|
|
4
3
|
export declare function getActiveRenderer(): Renderer | null;
|
|
5
|
-
//#endregion
|
|
6
4
|
//# sourceMappingURL=active.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active.d.ts","names":[],"sources":["../../src/render/active.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"active.d.ts","names":[],"sources":["../../src/render/active.ts"],"mappings":";wBAIgB,kBAAkB,UAAU;wBAI5B,qBAAqB"}
|
package/dist/render/active.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/render/active.ts
|
|
2
2
|
let activeRenderer = null;
|
|
3
3
|
function setActiveRenderer(renderer) {
|
|
4
4
|
activeRenderer = renderer;
|
|
@@ -6,7 +6,6 @@ function setActiveRenderer(renderer) {
|
|
|
6
6
|
function getActiveRenderer() {
|
|
7
7
|
return activeRenderer;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { getActiveRenderer, setActiveRenderer };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=active.js.map
|
|
@@ -2,7 +2,6 @@ import { EventManager } from "../events/index.js";
|
|
|
2
2
|
import { MaizzleConfig } from "../types/config.js";
|
|
3
3
|
import "../types/index.js";
|
|
4
4
|
import { Renderer } from "./createRenderer.js";
|
|
5
|
-
//#region src/render/buildTemplate.d.ts
|
|
6
5
|
export interface BuildTemplateContext {
|
|
7
6
|
config: MaizzleConfig;
|
|
8
7
|
renderer: Renderer;
|
|
@@ -44,5 +43,4 @@ export declare function buildTemplate(templatePath: string, ctx: BuildTemplateCo
|
|
|
44
43
|
*/
|
|
45
44
|
export declare function computeContentBase(patterns: string[]): string;
|
|
46
45
|
export declare function resolveOutputPath(templatePath: string, outputDir: string, extension: string, contentBase: string): string;
|
|
47
|
-
//#endregion
|
|
48
46
|
//# sourceMappingURL=buildTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildTemplate.d.ts","names":[],"sources":["../../src/render/buildTemplate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildTemplate.d.ts","names":[],"sources":["../../src/render/buildTemplate.ts"],"mappings":";;;;iBAYiB;EACf,QAAQ;EACR,UAAU;EACV,QAAQ;EACR;EACA;EACA;;iBAGe;;EAEf;;;;;;EAMA;;;;;;;;;;;wBAYoB,cACpB,sBACA,KAAK,uBACJ,QAAQ;;;;;;;;;;;;wBA+GK,mBAAmB;wBA4BnB,kBAAkB,sBAAsB,mBAAmB,mBAAmB"}
|
|
@@ -6,7 +6,7 @@ import { cloneConfig } from "../utils/cloneConfig.js";
|
|
|
6
6
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join, parse, relative, resolve, sep } from "node:path";
|
|
8
8
|
import defu from "defu";
|
|
9
|
-
|
|
9
|
+
// src/render/buildTemplate.ts
|
|
10
10
|
/**
|
|
11
11
|
* Render a single template through the full pipeline and write its output.
|
|
12
12
|
*
|
|
@@ -137,7 +137,6 @@ function resolveOutputPath(templatePath, outputDir, extension, contentBase) {
|
|
|
137
137
|
const rel = relative(contentBase, dirname(absTemplate));
|
|
138
138
|
return join(outputDir, rel, `${name}.${extension}`);
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
export { buildTemplate, computeContentBase, resolveOutputPath };
|
|
142
141
|
|
|
143
142
|
//# sourceMappingURL=buildTemplate.js.map
|
|
@@ -4,7 +4,6 @@ import { RenderContext } from "../composables/renderContext.js";
|
|
|
4
4
|
import { NormalizedComponentSource } from "../utils/componentSources.js";
|
|
5
5
|
import { Component } from "vue";
|
|
6
6
|
import { InlineConfig } from "vite";
|
|
7
|
-
//#region src/render/createRenderer.d.ts
|
|
8
7
|
export interface RenderedTemplate {
|
|
9
8
|
html: string;
|
|
10
9
|
doctype?: string;
|
|
@@ -57,5 +56,4 @@ export interface CreateRendererOptions {
|
|
|
57
56
|
* Tailwind CSS compilation is handled by the transformer pipeline.
|
|
58
57
|
*/
|
|
59
58
|
export declare function createRenderer(options?: CreateRendererOptions): Promise<Renderer>;
|
|
60
|
-
//#endregion
|
|
61
59
|
//# sourceMappingURL=createRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRenderer.d.ts","names":[],"sources":["../../src/render/createRenderer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRenderer.d.ts","names":[],"sources":["../../src/render/createRenderer.ts"],"mappings":";;;;;;iBAoCiB;EACf;EACA;EACA,gBAAgB;EAChB,kBAAkB;EAClB,YAAY;EACZ,aAAa;EACb,iBAAiB;;;;;;;EAOjB;;iBAGe;EACf,OAAO,gBAAgB,WAAW,QAAQ,eAAe;IAAS;IAAiB,QAAQ;MAAwB,QAAQ;EAC3H,WAAW,mBAAmB;EAC9B,iBAAiB;EACjB,SAAS;;iBAGM;;EAEf;;EAEA,WAAW;;EAEX;;;;;EAKA,gBAAgB;;EAEhB,OAAO;;;;;EAKP,iBAAiB;;;;;;;;wBAsCG,eACpB,UAAS,wBACR,QAAQ"}
|
|
@@ -22,7 +22,7 @@ import Components from "unplugin-vue-components/vite";
|
|
|
22
22
|
import { unheadVueComposablesImports } from "@unhead/vue";
|
|
23
23
|
import { renderToString } from "vue/server-renderer";
|
|
24
24
|
import { createHead } from "@unhead/vue/server";
|
|
25
|
-
|
|
25
|
+
// src/render/createRenderer.ts
|
|
26
26
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
27
27
|
const vuePkgDir = dirname(fileURLToPath(import.meta.resolve("vue/package.json")));
|
|
28
28
|
const vueServerRendererPkgDir = dirname(fileURLToPath(import.meta.resolve("@vue/server-renderer/package.json")));
|
|
@@ -151,6 +151,14 @@ async function createRenderer(options = {}) {
|
|
|
151
151
|
}
|
|
152
152
|
writePrefixedDts();
|
|
153
153
|
/**
|
|
154
|
+
* Type Maizzle's custom HTML attributes, so editors can autocomplete
|
|
155
|
+
* them on HTML tags and on components that pass them through.
|
|
156
|
+
*/
|
|
157
|
+
if (dts) {
|
|
158
|
+
mkdirSync(dtsDir, { recursive: true });
|
|
159
|
+
writeFileSync(resolve(dtsDir, "attributes.d.ts"), `/* eslint-disable */\n// biome-ignore lint: disable\n// oxlint-disable\n// Generated by Maizzle for custom HTML attributes\n\nexport {}\n\n/* prettier-ignore */\ndeclare module 'vue' {\n interface HTMLAttributes {\n /** Keep this element's URLs as authored, without prepending \`url.base\`. */\n 'no-base-url'?: boolean\n }\n interface AllowedComponentProps {\n /** Keep this element's URLs as authored, without prepending \`url.base\`. */\n 'no-base-url'?: boolean\n }\n}\n`);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
154
162
|
* Watches prefixed source dirs and rebuilds {@link prefixedNameMap} when
|
|
155
163
|
* files are added/removed. Vite's watcher already covers `dirSources`
|
|
156
164
|
* via unplugin-vue-components' own filesystem hooks.
|
|
@@ -578,7 +586,6 @@ async function createRenderer(options = {}) {
|
|
|
578
586
|
}
|
|
579
587
|
};
|
|
580
588
|
}
|
|
581
|
-
//#endregion
|
|
582
589
|
export { createRenderer };
|
|
583
590
|
|
|
584
591
|
//# sourceMappingURL=createRenderer.js.map
|