@maizzle/framework 6.1.4 → 6.1.6
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 +3 -4
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +1 -5
- package/dist/build.js.map +1 -1
- package/dist/components/Button.vue +1 -1
- package/dist/components/CodeBlock.vue +1 -1
- package/dist/components/CodeInline.vue +1 -1
- package/dist/components/Column.vue +1 -1
- package/dist/components/Container.vue +1 -1
- package/dist/components/Heading.vue +1 -1
- package/dist/components/Hr.vue +1 -1
- package/dist/components/Img.vue +1 -1
- package/dist/components/Layout.vue +1 -1
- package/dist/components/Link.vue +1 -1
- package/dist/components/QrCode.vue +1 -1
- package/dist/components/Row.vue +1 -1
- package/dist/components/Section.vue +1 -1
- package/dist/components/Text.vue +1 -1
- package/dist/components/utils.d.ts +10 -11
- package/dist/components/utils.d.ts.map +1 -1
- package/dist/composables/defineConfig.d.ts +1 -2
- package/dist/composables/defineConfig.d.ts.map +1 -1
- package/dist/composables/renderContext.d.ts +4 -5
- package/dist/composables/renderContext.d.ts.map +1 -1
- package/dist/composables/useBaseUrl.d.ts +1 -2
- package/dist/composables/useBaseUrl.d.ts.map +1 -1
- package/dist/composables/useConfig.d.ts +2 -3
- package/dist/composables/useConfig.d.ts.map +1 -1
- package/dist/composables/useCurrentTemplate.d.ts +2 -3
- package/dist/composables/useCurrentTemplate.d.ts.map +1 -1
- package/dist/composables/useDoctype.d.ts +1 -2
- package/dist/composables/useDoctype.d.ts.map +1 -1
- package/dist/composables/useEvent.d.ts +1 -2
- package/dist/composables/useEvent.d.ts.map +1 -1
- package/dist/composables/useFont.d.ts +3 -4
- package/dist/composables/useFont.d.ts.map +1 -1
- package/dist/composables/useOutlookFallback.d.ts +1 -2
- package/dist/composables/useOutlookFallback.d.ts.map +1 -1
- package/dist/composables/useOutputPath.d.ts +1 -2
- package/dist/composables/useOutputPath.d.ts.map +1 -1
- package/dist/composables/usePlaintext.d.ts +2 -3
- package/dist/composables/usePlaintext.d.ts.map +1 -1
- package/dist/composables/usePreheader.d.ts +2 -3
- package/dist/composables/usePreheader.d.ts.map +1 -1
- package/dist/composables/useTransformers.d.ts +1 -2
- package/dist/composables/useTransformers.d.ts.map +1 -1
- package/dist/composables/useUrlQuery.d.ts +1 -2
- package/dist/composables/useUrlQuery.d.ts.map +1 -1
- package/dist/config/defaults.d.ts +1 -2
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.d.ts.map +1 -1
- package/dist/events/index.d.ts +4 -5
- package/dist/events/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/plaintext.d.ts +1 -2
- package/dist/plaintext.d.ts.map +1 -1
- package/dist/plugin.d.ts +1 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugins/postcss/flattenGradients.d.ts +3 -3
- package/dist/plugins/postcss/flattenGradients.d.ts.map +1 -1
- package/dist/plugins/postcss/mergeMediaQueries.d.ts +1 -2
- package/dist/plugins/postcss/mergeMediaQueries.d.ts.map +1 -1
- package/dist/plugins/postcss/pruneVars.d.ts +2 -2
- package/dist/plugins/postcss/pruneVars.d.ts.map +1 -1
- package/dist/plugins/postcss/quoteFontFamilies.d.ts +2 -3
- package/dist/plugins/postcss/quoteFontFamilies.d.ts.map +1 -1
- package/dist/plugins/postcss/removeDeclarations.d.ts +4 -4
- package/dist/plugins/postcss/removeDeclarations.d.ts.map +1 -1
- package/dist/plugins/postcss/resolveMaizzleImports.d.ts +1 -2
- package/dist/plugins/postcss/resolveMaizzleImports.d.ts.map +1 -1
- package/dist/plugins/postcss/resolveProps.d.ts +2 -2
- package/dist/plugins/postcss/resolveProps.d.ts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.d.ts +1 -2
- package/dist/plugins/postcss/tailwindCleanup.d.ts.map +1 -1
- package/dist/prepare.d.ts +2 -3
- package/dist/prepare.d.ts.map +1 -1
- package/dist/render/active.d.ts +2 -3
- package/dist/render/active.d.ts.map +1 -1
- package/dist/render/buildTemplate.d.ts +5 -6
- package/dist/render/buildTemplate.d.ts.map +1 -1
- package/dist/render/createRenderer.d.ts +4 -5
- package/dist/render/createRenderer.d.ts.map +1 -1
- package/dist/render/index.d.ts +3 -3
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/injectFonts.d.ts +1 -2
- package/dist/render/injectFonts.d.ts.map +1 -1
- package/dist/render/parallel/buildWorker.d.ts +3 -4
- package/dist/render/parallel/buildWorker.d.ts.map +1 -1
- package/dist/render/plugins/codeBlockExtract.d.ts +1 -2
- package/dist/render/plugins/codeBlockExtract.d.ts.map +1 -1
- package/dist/render/plugins/markdownExtract.d.ts +1 -2
- package/dist/render/plugins/markdownExtract.d.ts.map +1 -1
- package/dist/render/plugins/rawExtract.d.ts +1 -2
- package/dist/render/plugins/rawExtract.d.ts.map +1 -1
- package/dist/render/plugins/rowSourceLocation.d.ts +1 -2
- package/dist/render/plugins/rowSourceLocation.d.ts.map +1 -1
- package/dist/serve.d.ts +3 -4
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +46 -3
- package/dist/serve.js.map +1 -1
- package/dist/server/compatibility.d.ts +2 -3
- package/dist/server/compatibility.d.ts.map +1 -1
- package/dist/server/email.d.ts +2 -3
- package/dist/server/email.d.ts.map +1 -1
- package/dist/server/linter.d.ts +3 -4
- package/dist/server/linter.d.ts.map +1 -1
- package/dist/server/sfc-utils.d.ts +6 -7
- package/dist/server/sfc-utils.d.ts.map +1 -1
- package/dist/server/static.d.ts +10 -0
- package/dist/server/static.d.ts.map +1 -0
- package/dist/server/static.js +71 -0
- package/dist/server/static.js.map +1 -0
- package/dist/server/ui/.vite/deps/@lucide_vue.js +1 -1
- package/dist/server/ui/.vite/deps/@vueuse_core.js +1 -1
- package/dist/server/ui/.vite/deps/@vueuse_shared.js +1 -1
- package/dist/server/ui/.vite/deps/_metadata.json +15 -15
- package/dist/server/ui/.vite/deps/reka-ui.js +1 -2
- package/dist/server/ui/.vite/deps/reka-ui.js.map +1 -1
- package/dist/server/ui/.vite/deps/vue-router.js +1 -1
- package/dist/server/ui/.vite/deps/vue.js +1 -1
- package/dist/server/ui/.vite/deps/{vue.runtime.esm-bundler-S54atuNJ.js → vue.runtime.esm-bundler-Dq07uCLt.js} +174 -53
- package/dist/server/ui/.vite/deps/vue.runtime.esm-bundler-Dq07uCLt.js.map +1 -0
- package/dist/server/ui/pages/Preview.vue +2 -2
- package/dist/tests/render/_helpers.d.ts +2 -3
- package/dist/tests/render/_helpers.d.ts.map +1 -1
- package/dist/transformers/addAttributes.d.ts +2 -3
- package/dist/transformers/addAttributes.d.ts.map +1 -1
- package/dist/transformers/attributeToStyle.d.ts +2 -3
- package/dist/transformers/attributeToStyle.d.ts.map +1 -1
- package/dist/transformers/base.d.ts +3 -4
- package/dist/transformers/base.d.ts.map +1 -1
- package/dist/transformers/columnWidth.d.ts +1 -2
- package/dist/transformers/columnWidth.d.ts.map +1 -1
- package/dist/transformers/entities.d.ts +3 -4
- package/dist/transformers/entities.d.ts.map +1 -1
- package/dist/transformers/filters/defaults.d.ts +2 -3
- package/dist/transformers/filters/defaults.d.ts.map +1 -1
- package/dist/transformers/filters/index.d.ts +4 -4
- package/dist/transformers/filters/index.d.ts.map +1 -1
- package/dist/transformers/format.d.ts +2 -2
- package/dist/transformers/format.d.ts.map +1 -1
- package/dist/transformers/imgWidth.d.ts +1 -2
- package/dist/transformers/imgWidth.d.ts.map +1 -1
- package/dist/transformers/index.d.ts +1 -2
- package/dist/transformers/index.d.ts.map +1 -1
- package/dist/transformers/inlineCss.d.ts +3 -4
- package/dist/transformers/inlineCss.d.ts.map +1 -1
- package/dist/transformers/inlineLink.d.ts +2 -3
- package/dist/transformers/inlineLink.d.ts.map +1 -1
- package/dist/transformers/minify.d.ts +2 -2
- package/dist/transformers/minify.d.ts.map +1 -1
- package/dist/transformers/minifyCodeInline.d.ts +1 -2
- package/dist/transformers/minifyCodeInline.d.ts.map +1 -1
- package/dist/transformers/msoConditionals.d.ts +1 -2
- package/dist/transformers/msoConditionals.d.ts.map +1 -1
- package/dist/transformers/msoPlaceholders.d.ts +1 -2
- package/dist/transformers/msoPlaceholders.d.ts.map +1 -1
- package/dist/transformers/purgeCss.d.ts +3 -4
- package/dist/transformers/purgeCss.d.ts.map +1 -1
- package/dist/transformers/removeAttributes.d.ts +4 -5
- package/dist/transformers/removeAttributes.d.ts.map +1 -1
- package/dist/transformers/replaceStrings.d.ts +1 -2
- package/dist/transformers/replaceStrings.d.ts.map +1 -1
- package/dist/transformers/safeSelectors.d.ts +2 -3
- package/dist/transformers/safeSelectors.d.ts.map +1 -1
- package/dist/transformers/shorthandCss.d.ts +3 -4
- package/dist/transformers/shorthandCss.d.ts.map +1 -1
- package/dist/transformers/sixHex.d.ts +2 -3
- package/dist/transformers/sixHex.d.ts.map +1 -1
- package/dist/transformers/tailwindComponent.d.ts +1 -2
- package/dist/transformers/tailwindComponent.d.ts.map +1 -1
- package/dist/transformers/tailwindcss.d.ts +2 -3
- package/dist/transformers/tailwindcss.d.ts.map +1 -1
- package/dist/transformers/urlQuery.d.ts +2 -3
- package/dist/transformers/urlQuery.d.ts.map +1 -1
- package/dist/types/config.d.ts +18 -19
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/ast/parser.d.ts +1 -2
- package/dist/utils/ast/parser.d.ts.map +1 -1
- package/dist/utils/ast/serializer.d.ts +1 -2
- package/dist/utils/ast/serializer.d.ts.map +1 -1
- package/dist/utils/ast/walker.d.ts +1 -2
- package/dist/utils/ast/walker.d.ts.map +1 -1
- package/dist/utils/cloneConfig.d.ts +1 -2
- package/dist/utils/cloneConfig.d.ts.map +1 -1
- package/dist/utils/compileTailwindCss.d.ts +4 -5
- package/dist/utils/compileTailwindCss.d.ts.map +1 -1
- package/dist/utils/componentSources.d.ts +4 -5
- package/dist/utils/componentSources.d.ts.map +1 -1
- package/dist/utils/cssBox.d.ts +6 -7
- package/dist/utils/cssBox.d.ts.map +1 -1
- package/dist/utils/decodeStyleEntities.d.ts +1 -2
- package/dist/utils/decodeStyleEntities.d.ts.map +1 -1
- package/dist/utils/detect.d.ts +1 -2
- package/dist/utils/detect.d.ts.map +1 -1
- package/dist/utils/output-markers.d.ts +4 -5
- package/dist/utils/output-markers.d.ts.map +1 -1
- package/dist/utils/staticPaths.d.ts +5 -0
- package/dist/utils/staticPaths.d.ts.map +1 -0
- package/dist/utils/staticPaths.js +11 -0
- package/dist/utils/staticPaths.js.map +1 -0
- package/dist/utils/twMerge.d.ts +4 -0
- package/dist/utils/twMerge.d.ts.map +1 -0
- package/dist/utils/twMerge.js +109 -0
- package/dist/utils/twMerge.js.map +1 -0
- package/dist/utils/url.d.ts +4 -5
- package/dist/utils/url.d.ts.map +1 -1
- package/dist/utils/watchPaths.d.ts +2 -3
- package/dist/utils/watchPaths.d.ts.map +1 -1
- package/node_modules/tinyexec/dist/main.d.mts +5 -3
- package/node_modules/tinyexec/dist/main.mjs +256 -232
- package/node_modules/tinyexec/package.json +9 -9
- package/package.json +5 -5
- package/dist/server/ui/.vite/deps/vue.runtime.esm-bundler-S54atuNJ.js.map +0 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { defaults } from "./defaults.js";
|
|
|
9
9
|
* Always loads from the config file on disk (maizzle.config.{ts,js}),
|
|
10
10
|
* then merges the programmatic config on top, then fills in defaults.
|
|
11
11
|
*/
|
|
12
|
-
declare function resolveConfig(config?: Partial<MaizzleConfig> | string, cwd?: string): Promise<MaizzleConfig>;
|
|
12
|
+
export declare function resolveConfig(config?: Partial<MaizzleConfig> | string, cwd?: string): Promise<MaizzleConfig>;
|
|
13
13
|
/**
|
|
14
14
|
* Resolve config from a programmatic object only — never touches disk.
|
|
15
15
|
*
|
|
@@ -18,7 +18,7 @@ declare function resolveConfig(config?: Partial<MaizzleConfig> | string, cwd?: s
|
|
|
18
18
|
* over defaults. Callers who want the project's file config load it
|
|
19
19
|
* explicitly via {@link resolveConfig} and pass the result in.
|
|
20
20
|
*/
|
|
21
|
-
declare function resolveConfigObject(config?: Partial<MaizzleConfig>, cwd?: string): MaizzleConfig;
|
|
21
|
+
export declare function resolveConfigObject(config?: Partial<MaizzleConfig>, cwd?: string): MaizzleConfig;
|
|
22
22
|
/**
|
|
23
23
|
* Whether Node can natively `import()` this file as ESM — true for `.mjs`
|
|
24
24
|
* and for `.js` whose nearest package.json declares `"type": "module"`.
|
|
@@ -27,7 +27,7 @@ declare function resolveConfigObject(config?: Partial<MaizzleConfig>, cwd?: stri
|
|
|
27
27
|
* query instead. Everything else (CJS, TS) goes through jiti, which already
|
|
28
28
|
* re-evaluates per instance.
|
|
29
29
|
*/
|
|
30
|
-
declare function isNativeESM(absolutePath: string): boolean;
|
|
30
|
+
export declare function isNativeESM(absolutePath: string): boolean;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { defaults, defineConfig
|
|
32
|
+
export { defaults, defineConfig };
|
|
33
33
|
//# 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/events/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { MaizzleConfig } from "../types/config.js";
|
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { ParsedPath } from "node:path";
|
|
4
4
|
//#region src/events/index.d.ts
|
|
5
|
-
type EventName = 'beforeCreate' | 'beforeRender' | 'afterRender' | 'afterTransform' | 'afterBuild';
|
|
5
|
+
export type EventName = 'beforeCreate' | 'beforeRender' | 'afterRender' | 'afterTransform' | 'afterBuild';
|
|
6
6
|
/**
|
|
7
7
|
* Info about the template currently being processed, passed to per-template
|
|
8
8
|
* event handlers. `source` is the SFC file contents; `path` is the result of
|
|
9
9
|
* `path.parse(absolutePath)` — `{ root, dir, base, ext, name }`.
|
|
10
10
|
*/
|
|
11
|
-
interface TemplateInfo {
|
|
11
|
+
export interface TemplateInfo {
|
|
12
12
|
source: string;
|
|
13
13
|
path: ParsedPath;
|
|
14
14
|
}
|
|
15
|
-
interface EventMap {
|
|
15
|
+
export interface EventMap {
|
|
16
16
|
beforeCreate: (params: {
|
|
17
17
|
config: MaizzleConfig;
|
|
18
18
|
}) => void | Promise<void>;
|
|
@@ -42,7 +42,7 @@ interface EventMap {
|
|
|
42
42
|
* For events that return a value (beforeRender, afterRender, afterTransform),
|
|
43
43
|
* the returned value replaces the corresponding input for the next handler.
|
|
44
44
|
*/
|
|
45
|
-
declare class EventManager {
|
|
45
|
+
export declare class EventManager {
|
|
46
46
|
private handlers;
|
|
47
47
|
/**
|
|
48
48
|
* Snapshot of config-handler counts per event, captured at registerConfig().
|
|
@@ -110,5 +110,4 @@ declare class EventManager {
|
|
|
110
110
|
clear(): void;
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
|
-
export { EventManager, EventMap, EventName, TemplateInfo };
|
|
114
113
|
//# 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/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { RenderResult, render } from "./render/index.js";
|
|
|
22
22
|
import { serve } from "./serve.js";
|
|
23
23
|
import { PrepareOptions, prepare } from "./prepare.js";
|
|
24
24
|
import { createPlaintext } from "./plaintext.js";
|
|
25
|
+
import { twMerge } from "./utils/twMerge.js";
|
|
25
26
|
import { inlineLink } from "./transformers/inlineLink.js";
|
|
26
27
|
import { urlQuery } from "./transformers/urlQuery.js";
|
|
27
28
|
import { BaseUrlOptions, base } from "./transformers/base.js";
|
|
@@ -39,4 +40,4 @@ import { replaceStrings } from "./transformers/replaceStrings.js";
|
|
|
39
40
|
import { FormatConfig, format } from "./transformers/format.js";
|
|
40
41
|
import { MinifyOptions, minify } from "./transformers/minify.js";
|
|
41
42
|
import { useHead } from "@unhead/vue";
|
|
42
|
-
export { type AttributesConfig, type BaseUrlOptions, type ComponentSource, type CreateRendererOptions, type CssConfig, type EntitiesConfig, type FilterFunction, type FiltersConfig, type FormatConfig, type HtmlConfig, type InlineCssOptions, type MaizzleConfig, type MinifyOptions, type NormalizedComponentSource, type PlaintextConfig, type PrepareOptions, type PurgeCssOptions, type RemoveAttributeOption, type RemoveAttributeRule, type RenderResult, type RenderedTemplate, type Renderer, type ShorthandCssOptions, type UrlConfig, type UrlQuery, type UrlQueryOptions, addAttributes, attributeToStyle, base, build, createPlaintext, createRenderer, defineConfig, entities, filters, format, inlineCss, inlineLink, maizzle, minify, normalizeComponentSources, prepare, purgeCss, removeAttributes, render, replaceStrings, resolveConfig, safeSelectors, serve, shorthandCss, sixHex, urlQuery, useBaseUrl, useConfig, useCurrentTemplate, useDoctype, useEvent, useFont, useHead, useOutlookFallback, useOutputPath, usePlaintext, usePreheader, useTransformers, useUrlQuery };
|
|
43
|
+
export { type AttributesConfig, type BaseUrlOptions, type ComponentSource, type CreateRendererOptions, type CssConfig, type EntitiesConfig, type FilterFunction, type FiltersConfig, type FormatConfig, type HtmlConfig, type InlineCssOptions, type MaizzleConfig, type MinifyOptions, type NormalizedComponentSource, type PlaintextConfig, type PrepareOptions, type PurgeCssOptions, type RemoveAttributeOption, type RemoveAttributeRule, type RenderResult, type RenderedTemplate, type Renderer, type ShorthandCssOptions, type UrlConfig, type UrlQuery, type UrlQueryOptions, addAttributes, attributeToStyle, base, build, createPlaintext, createRenderer, defineConfig, entities, filters, format, inlineCss, inlineLink, maizzle, minify, normalizeComponentSources, prepare, purgeCss, removeAttributes, render, replaceStrings, resolveConfig, safeSelectors, serve, shorthandCss, sixHex, twMerge, urlQuery, useBaseUrl, useConfig, useCurrentTemplate, useDoctype, useEvent, useFont, useHead, useOutlookFallback, useOutputPath, usePlaintext, usePreheader, useTransformers, useUrlQuery };
|
package/dist/index.js
CHANGED
|
@@ -36,5 +36,6 @@ import { usePreheader } from "./composables/usePreheader.js";
|
|
|
36
36
|
import { useTransformers } from "./composables/useTransformers.js";
|
|
37
37
|
import { useBaseUrl } from "./composables/useBaseUrl.js";
|
|
38
38
|
import { useUrlQuery } from "./composables/useUrlQuery.js";
|
|
39
|
+
import { twMerge } from "./utils/twMerge.js";
|
|
39
40
|
import { useHead } from "@unhead/vue";
|
|
40
|
-
export { addAttributes, attributeToStyle, base, build, createPlaintext, createRenderer, defineConfig, entities, filters, format, inlineCss, inlineLink, maizzle, minify, normalizeComponentSources, prepare, purgeCss, removeAttributes, render, replaceStrings, resolveConfig, safeSelectors, serve, shorthandCss, sixHex, urlQuery, useBaseUrl, useConfig, useCurrentTemplate, useDoctype, useEvent, useFont, useHead, useOutlookFallback, useOutputPath, usePlaintext, usePreheader, useTransformers, useUrlQuery };
|
|
41
|
+
export { addAttributes, attributeToStyle, base, build, createPlaintext, createRenderer, defineConfig, entities, filters, format, inlineCss, inlineLink, maizzle, minify, normalizeComponentSources, prepare, purgeCss, removeAttributes, render, replaceStrings, resolveConfig, safeSelectors, serve, shorthandCss, sixHex, twMerge, urlQuery, useBaseUrl, useConfig, useCurrentTemplate, useDoctype, useEvent, useFont, useHead, useOutlookFallback, useOutputPath, usePlaintext, usePreheader, useTransformers, useUrlQuery };
|
package/dist/plaintext.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/plaintext.d.ts
|
|
2
|
-
declare function createPlaintext(html: string, options?: Record<string, unknown>): string;
|
|
2
|
+
export declare function createPlaintext(html: string, options?: Record<string, unknown>): string;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { createPlaintext };
|
|
5
4
|
//# sourceMappingURL=plaintext.d.ts.map
|
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":";wBAUgB,gBAAgB,cAAc,UAAU"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { Plugin } from "vite";
|
|
|
11
11
|
* Does NOT inject Vue, Tailwind, or any other plugins into the host's pipeline.
|
|
12
12
|
* The host app manages its own stack. Maizzle runs in its own process.
|
|
13
13
|
*/
|
|
14
|
-
declare function maizzle(configInput?: Partial<MaizzleConfig>): Plugin[];
|
|
14
|
+
export declare function maizzle(configInput?: Partial<MaizzleConfig>): Plugin[];
|
|
15
15
|
//#endregion
|
|
16
|
-
export { maizzle };
|
|
17
16
|
//# 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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
2
|
//#region src/plugins/postcss/flattenGradients.d.ts
|
|
3
3
|
/** A gradient combo found on a DOM element. */
|
|
4
|
-
interface GradientCombo {
|
|
4
|
+
export interface GradientCombo {
|
|
5
5
|
/** Generated class name to emit the flat rule for. */
|
|
6
6
|
className: string;
|
|
7
7
|
/** The gradient utility class tokens present on the element. */
|
|
8
8
|
classes: string[];
|
|
9
9
|
}
|
|
10
10
|
declare const _default: (combos?: GradientCombo[]) => Plugin;
|
|
11
|
-
declare const postcss = true;
|
|
11
|
+
export declare const postcss = true;
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { _default as default };
|
|
14
14
|
//# 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"}
|
|
@@ -11,7 +11,6 @@ import postcss from "postcss";
|
|
|
11
11
|
* css: { media: { sort: 'desktop-first' } } // merge, desktop-first sort
|
|
12
12
|
* css: { media: false } // disabled
|
|
13
13
|
*/
|
|
14
|
-
declare function mergeMediaQueries(config: MaizzleConfig): postcss.Plugin | null;
|
|
14
|
+
export declare function mergeMediaQueries(config: MaizzleConfig): postcss.Plugin | null;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { mergeMediaQueries };
|
|
17
16
|
//# 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,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
2
|
//#region src/plugins/postcss/pruneVars.d.ts
|
|
3
3
|
declare const _default: () => Plugin;
|
|
4
|
-
declare const postcss = true;
|
|
4
|
+
export declare const postcss = true;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { _default as default
|
|
6
|
+
export { _default as default };
|
|
7
7
|
//# sourceMappingURL=pruneVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruneVars.d.ts","names":[],"sources":["../../../src/plugins/postcss/pruneVars.ts"],"mappings":";;cAiBmB,gBAAA;
|
|
1
|
+
{"version":3,"file":"pruneVars.d.ts","names":[],"sources":["../../../src/plugins/postcss/pruneVars.ts"],"mappings":";;cAiBmB,gBAAA;qBA2DN"}
|
|
@@ -5,8 +5,7 @@ import { Plugin } from "postcss";
|
|
|
5
5
|
* by removing quotes. CSS allows space-separated identifiers as a family
|
|
6
6
|
* name, but Google Fonts (and most style guides) prescribe quoted form.
|
|
7
7
|
*/
|
|
8
|
-
declare function quoteFontFamilies(): Plugin;
|
|
9
|
-
declare const postcss = true;
|
|
8
|
+
export declare function quoteFontFamilies(): Plugin;
|
|
9
|
+
export declare const postcss = true;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { postcss, quoteFontFamilies };
|
|
12
11
|
//# 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,11 +1,11 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
2
|
//#region src/plugins/postcss/removeDeclarations.d.ts
|
|
3
|
-
type RemoveValue = '*' | string | string[] | Record<string, string>;
|
|
4
|
-
interface RemoveDeclarationsOptions {
|
|
3
|
+
export type RemoveValue = '*' | string | string[] | Record<string, string>;
|
|
4
|
+
export interface RemoveDeclarationsOptions {
|
|
5
5
|
remove: Record<string, RemoveValue>;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: (options: RemoveDeclarationsOptions) => Plugin;
|
|
8
|
-
declare const postcss = true;
|
|
8
|
+
export declare const postcss = true;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { _default as default };
|
|
11
11
|
//# 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"}
|
|
@@ -9,7 +9,6 @@ import { Plugin } from "postcss";
|
|
|
9
9
|
* Resolution order: prefer the user's project copy (so explicit installs
|
|
10
10
|
* win), then fall back to the copy bundled with the framework.
|
|
11
11
|
*/
|
|
12
|
-
declare function resolveMaizzleImports(userRoot?: string): Plugin;
|
|
12
|
+
export declare function resolveMaizzleImports(userRoot?: string): Plugin;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { resolveMaizzleImports };
|
|
15
14
|
//# 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,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from "postcss";
|
|
2
2
|
//#region src/plugins/postcss/resolveProps.d.ts
|
|
3
3
|
declare const _default: () => Plugin;
|
|
4
|
-
declare const postcss = true;
|
|
4
|
+
export declare const postcss = true;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { _default as default
|
|
6
|
+
export { _default as default };
|
|
7
7
|
//# sourceMappingURL=resolveProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveProps.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveProps.ts"],"mappings":";;cAgHmB,gBAAA;
|
|
1
|
+
{"version":3,"file":"resolveProps.d.ts","names":[],"sources":["../../../src/plugins/postcss/resolveProps.ts"],"mappings":";;cAgHmB,gBAAA;qBA+IN"}
|
|
@@ -11,7 +11,6 @@ import postcss from "postcss";
|
|
|
11
11
|
* Intended to clean up Tailwind's compiled output after lightningcss has
|
|
12
12
|
* flattened all modern CSS syntax.
|
|
13
13
|
*/
|
|
14
|
-
declare function tailwindCleanup(config: MaizzleConfig): postcss.Plugin[];
|
|
14
|
+
export declare function tailwindCleanup(config: MaizzleConfig): postcss.Plugin[];
|
|
15
15
|
//#endregion
|
|
16
|
-
export { tailwindCleanup };
|
|
17
16
|
//# 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"}
|
package/dist/prepare.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/prepare.d.ts
|
|
2
|
-
interface PrepareOptions {
|
|
2
|
+
export interface PrepareOptions {
|
|
3
3
|
/** Path to a Maizzle config file. */
|
|
4
4
|
config?: string;
|
|
5
5
|
}
|
|
@@ -11,7 +11,6 @@ interface PrepareOptions {
|
|
|
11
11
|
* user runs `dev` or `build`. Spins up the renderer with `dts: true`, runs
|
|
12
12
|
* a trivial render to trigger the unplugin scans, then shuts down.
|
|
13
13
|
*/
|
|
14
|
-
declare function prepare(options?: PrepareOptions): Promise<void>;
|
|
14
|
+
export declare function prepare(options?: PrepareOptions): Promise<void>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { PrepareOptions, prepare };
|
|
17
16
|
//# 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":";iBAOiB;;EAEf;;;;;;;;;;wBAWoB,QAAQ,UAAS,iBAAsB"}
|
package/dist/render/active.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Renderer } from "./createRenderer.js";
|
|
2
2
|
//#region src/render/active.d.ts
|
|
3
|
-
declare function setActiveRenderer(renderer: Renderer | null): void;
|
|
4
|
-
declare function getActiveRenderer(): Renderer | null;
|
|
3
|
+
export declare function setActiveRenderer(renderer: Renderer | null): void;
|
|
4
|
+
export declare function getActiveRenderer(): Renderer | null;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { getActiveRenderer, setActiveRenderer };
|
|
7
6
|
//# 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"}
|
|
@@ -3,7 +3,7 @@ import { MaizzleConfig } from "../types/config.js";
|
|
|
3
3
|
import "../types/index.js";
|
|
4
4
|
import { Renderer } from "./createRenderer.js";
|
|
5
5
|
//#region src/render/buildTemplate.d.ts
|
|
6
|
-
interface BuildTemplateContext {
|
|
6
|
+
export interface BuildTemplateContext {
|
|
7
7
|
config: MaizzleConfig;
|
|
8
8
|
renderer: Renderer;
|
|
9
9
|
events: EventManager;
|
|
@@ -11,7 +11,7 @@ interface BuildTemplateContext {
|
|
|
11
11
|
outputExtension: string;
|
|
12
12
|
contentBase: string;
|
|
13
13
|
}
|
|
14
|
-
interface BuildTemplateResult {
|
|
14
|
+
export interface BuildTemplateResult {
|
|
15
15
|
/** Output files written for this template (html + optional plaintext). */
|
|
16
16
|
files: string[];
|
|
17
17
|
/**
|
|
@@ -30,7 +30,7 @@ interface BuildTemplateResult {
|
|
|
30
30
|
* registered here from the render). The caller owns build-scoped events
|
|
31
31
|
* (`beforeCreate`/`afterBuild`).
|
|
32
32
|
*/
|
|
33
|
-
declare function buildTemplate(templatePath: string, ctx: BuildTemplateContext): Promise<BuildTemplateResult>;
|
|
33
|
+
export declare function buildTemplate(templatePath: string, ctx: BuildTemplateContext): Promise<BuildTemplateResult>;
|
|
34
34
|
/**
|
|
35
35
|
* Extract the static (non-glob) prefix from content patterns.
|
|
36
36
|
*
|
|
@@ -42,8 +42,7 @@ declare function buildTemplate(templatePath: string, ctx: BuildTemplateContext):
|
|
|
42
42
|
* With multiple positive patterns (multi-root setups), returns their common
|
|
43
43
|
* ancestor directory so templates from every root keep a clean relative path.
|
|
44
44
|
*/
|
|
45
|
-
declare function computeContentBase(patterns: string[]): string;
|
|
46
|
-
declare function resolveOutputPath(templatePath: string, outputDir: string, extension: string, contentBase: string): string;
|
|
45
|
+
export declare function computeContentBase(patterns: string[]): string;
|
|
46
|
+
export declare function resolveOutputPath(templatePath: string, outputDir: string, extension: string, contentBase: string): string;
|
|
47
47
|
//#endregion
|
|
48
|
-
export { BuildTemplateContext, BuildTemplateResult, buildTemplate, computeContentBase, resolveOutputPath };
|
|
49
48
|
//# 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"}
|
|
@@ -5,7 +5,7 @@ import { NormalizedComponentSource } from "../utils/componentSources.js";
|
|
|
5
5
|
import { Component } from "vue";
|
|
6
6
|
import { InlineConfig } from "vite";
|
|
7
7
|
//#region src/render/createRenderer.d.ts
|
|
8
|
-
interface RenderedTemplate {
|
|
8
|
+
export interface RenderedTemplate {
|
|
9
9
|
html: string;
|
|
10
10
|
doctype?: string;
|
|
11
11
|
templateConfig: MaizzleConfig;
|
|
@@ -21,7 +21,7 @@ interface RenderedTemplate {
|
|
|
21
21
|
*/
|
|
22
22
|
sourceFiles?: string[];
|
|
23
23
|
}
|
|
24
|
-
interface Renderer {
|
|
24
|
+
export interface Renderer {
|
|
25
25
|
render(input: string | Component, config: MaizzleConfig, opts?: {
|
|
26
26
|
source?: string;
|
|
27
27
|
props?: Record<string, any>;
|
|
@@ -30,7 +30,7 @@ interface Renderer {
|
|
|
30
30
|
invalidateAll(): Promise<void>;
|
|
31
31
|
close(): Promise<void>;
|
|
32
32
|
}
|
|
33
|
-
interface CreateRendererOptions {
|
|
33
|
+
export interface CreateRendererOptions {
|
|
34
34
|
/** Generate .d.ts files for auto-imports and components (default: false) */
|
|
35
35
|
dts?: boolean;
|
|
36
36
|
/** Options passed to unplugin-vue-markdown */
|
|
@@ -56,7 +56,6 @@ interface CreateRendererOptions {
|
|
|
56
56
|
* Uses only Vue + unplugin for component/auto-import resolution.
|
|
57
57
|
* Tailwind CSS compilation is handled by the transformer pipeline.
|
|
58
58
|
*/
|
|
59
|
-
declare function createRenderer(options?: CreateRendererOptions): Promise<Renderer>;
|
|
59
|
+
export declare function createRenderer(options?: CreateRendererOptions): Promise<Renderer>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { CreateRendererOptions, RenderedTemplate, Renderer, createRenderer };
|
|
62
61
|
//# 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":";;;;;;;iBAmCiB;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"}
|
package/dist/render/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types/index.js";
|
|
|
3
3
|
import { CreateRendererOptions, RenderedTemplate, Renderer, createRenderer } from "./createRenderer.js";
|
|
4
4
|
import { Component } from "vue";
|
|
5
5
|
//#region src/render/index.d.ts
|
|
6
|
-
interface RenderResult {
|
|
6
|
+
export interface RenderResult {
|
|
7
7
|
html: string;
|
|
8
8
|
config: MaizzleConfig;
|
|
9
9
|
plaintext?: string;
|
|
@@ -12,7 +12,7 @@ interface RenderResult {
|
|
|
12
12
|
* Render a Vue SFC email template to a fully-transformed HTML string.
|
|
13
13
|
* Accepts a file path or a raw SFC source string.
|
|
14
14
|
*/
|
|
15
|
-
declare function render(template: string | Component, config?: Partial<MaizzleConfig>): Promise<RenderResult>;
|
|
15
|
+
export declare function render(template: string | Component, config?: Partial<MaizzleConfig>): Promise<RenderResult>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { type CreateRendererOptions,
|
|
17
|
+
export { type CreateRendererOptions, type RenderedTemplate, type Renderer, createRenderer };
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/render/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/render/index.ts"],"mappings":";;;;;iBAeiB;EACf;EACA,QAAQ;EACR;;;;;;wBAOoB,OACpB,mBAAmB,WACnB,SAAS,QAAQ,iBAChB,QAAQ"}
|
|
@@ -8,7 +8,6 @@ import { ChildNode } from "domhandler";
|
|
|
8
8
|
* as the Tailwind import). Without a Tailwind import, emits plain
|
|
9
9
|
* `.font-{slug}` class rules so the utility still works.
|
|
10
10
|
*/
|
|
11
|
-
declare function injectFonts(dom: ChildNode[], fonts: FontRegistration[], parseDom: (html: string) => ChildNode[], walk: (ast: ChildNode[], cb: (n: ChildNode) => void) => void): void;
|
|
11
|
+
export declare function injectFonts(dom: ChildNode[], fonts: FontRegistration[], parseDom: (html: string) => ChildNode[], walk: (ast: ChildNode[], cb: (n: ChildNode) => void) => void): void;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { injectFonts };
|
|
14
13
|
//# sourceMappingURL=injectFonts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectFonts.d.ts","names":[],"sources":["../../src/render/injectFonts.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"injectFonts.d.ts","names":[],"sources":["../../src/render/injectFonts.ts"],"mappings":";;;;;;;;;;wBAoBgB,YACd,KAAK,aACL,OAAO,oBACP,WAAW,iBAAiB,aAC5B,OAAO,KAAK,aAAa,KAAK,GAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaizzleConfig } from "../../types/config.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
//#region src/render/parallel/buildWorker.d.ts
|
|
4
|
-
interface BuildWorkerData {
|
|
4
|
+
export interface BuildWorkerData {
|
|
5
5
|
/** Template paths (glob-relative, as produced on the main thread) for this batch. */
|
|
6
6
|
templatePaths: string[];
|
|
7
7
|
/** Config file path to reload (undefined → load maizzle.config from cwd). */
|
|
@@ -12,7 +12,7 @@ interface BuildWorkerData {
|
|
|
12
12
|
outputExtension: string;
|
|
13
13
|
contentBase: string;
|
|
14
14
|
}
|
|
15
|
-
interface BuildWorkerResult {
|
|
15
|
+
export interface BuildWorkerResult {
|
|
16
16
|
files: string[];
|
|
17
17
|
sfcAfterBuildCount: number;
|
|
18
18
|
}
|
|
@@ -26,7 +26,6 @@ interface BuildWorkerResult {
|
|
|
26
26
|
* backfills the lost functions. beforeCreate/afterBuild are owned by the main
|
|
27
27
|
* thread and never run here.
|
|
28
28
|
*/
|
|
29
|
-
declare function run(data: BuildWorkerData): Promise<BuildWorkerResult>;
|
|
29
|
+
export declare function run(data: BuildWorkerData): Promise<BuildWorkerResult>;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { BuildWorkerData, BuildWorkerResult, run };
|
|
32
31
|
//# sourceMappingURL=buildWorker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildWorker.d.ts","names":[],"sources":["../../../src/render/parallel/buildWorker.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"buildWorker.d.ts","names":[],"sources":["../../../src/render/parallel/buildWorker.ts"],"mappings":";;;iBAQiB;;EAEf;;EAEA;;EAEA,YAAY,QAAQ;EACpB;EACA;EACA;;iBAGe;EACf;EACA;;;;;;;;;;;;wBAyBoB,IAAI,MAAM,kBAAkB,QAAQ"}
|
|
@@ -7,7 +7,6 @@ import { Plugin } from "vite";
|
|
|
7
7
|
* This lets users write HTML naturally inside CodeBlock slots without
|
|
8
8
|
* Vue attempting to compile it as template syntax.
|
|
9
9
|
*/
|
|
10
|
-
declare function codeBlockExtract(): Plugin;
|
|
10
|
+
export declare function codeBlockExtract(): Plugin;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { codeBlockExtract };
|
|
13
12
|
//# sourceMappingURL=codeBlockExtract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeBlockExtract.d.ts","names":[],"sources":["../../../src/render/plugins/codeBlockExtract.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"codeBlockExtract.d.ts","names":[],"sources":["../../../src/render/plugins/codeBlockExtract.ts"],"mappings":";;;;;;;;;wBASgB,oBAAoB"}
|
|
@@ -5,7 +5,6 @@ import { Plugin } from "vite";
|
|
|
5
5
|
* - Extracts slot content, dedents it, and passes as :content prop
|
|
6
6
|
* - Resolves `src` prop to read file contents at build time
|
|
7
7
|
*/
|
|
8
|
-
declare function markdownExtract(): Plugin;
|
|
8
|
+
export declare function markdownExtract(): Plugin;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { markdownExtract };
|
|
11
10
|
//# sourceMappingURL=markdownExtract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownExtract.d.ts","names":[],"sources":["../../../src/render/plugins/markdownExtract.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"markdownExtract.d.ts","names":[],"sources":["../../../src/render/plugins/markdownExtract.ts"],"mappings":";;;;;;;wBASgB,mBAAmB"}
|
|
@@ -7,7 +7,6 @@ import { Plugin } from "vite";
|
|
|
7
7
|
* Lets users write content (including `{{ }}` interpolation syntax used
|
|
8
8
|
* by ESPs / Handlebars / Liquid) inside <Raw> without Vue parsing it.
|
|
9
9
|
*/
|
|
10
|
-
declare function rawExtract(): Plugin;
|
|
10
|
+
export declare function rawExtract(): Plugin;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { rawExtract };
|
|
13
12
|
//# sourceMappingURL=rawExtract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawExtract.d.ts","names":[],"sources":["../../../src/render/plugins/rawExtract.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rawExtract.d.ts","names":[],"sources":["../../../src/render/plugins/rawExtract.ts"],"mappings":";;;;;;;;;wBASgB,cAAc"}
|
|
@@ -11,7 +11,6 @@ import { Plugin } from "vite";
|
|
|
11
11
|
* for `.md` templates) so `<Row>` mentions in `<script>` blocks (e.g. in
|
|
12
12
|
* string literals or comments) are left untouched.
|
|
13
13
|
*/
|
|
14
|
-
declare function rowSourceLocation(): Plugin;
|
|
14
|
+
export declare function rowSourceLocation(): Plugin;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { rowSourceLocation };
|
|
17
16
|
//# sourceMappingURL=rowSourceLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rowSourceLocation.d.ts","names":[],"sources":["../../../src/render/plugins/rowSourceLocation.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rowSourceLocation.d.ts","names":[],"sources":["../../../src/render/plugins/rowSourceLocation.ts"],"mappings":";;;;;;;;;;;;;wBAagB,qBAAqB"}
|
package/dist/serve.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { MaizzleConfig } from "./types/config.js";
|
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { ViteDevServer } from "vite";
|
|
4
4
|
//#region src/serve.d.ts
|
|
5
|
-
interface ServeOptions {
|
|
5
|
+
export interface ServeOptions {
|
|
6
6
|
config?: Partial<MaizzleConfig> | string;
|
|
7
7
|
/** Override the dev server port (takes precedence over config.server.port) */
|
|
8
8
|
port?: number;
|
|
@@ -20,8 +20,7 @@ interface ServeOptions {
|
|
|
20
20
|
*
|
|
21
21
|
* Template rendering goes through the Renderer, not the Vite dev server.
|
|
22
22
|
*/
|
|
23
|
-
declare function serve(options?: ServeOptions): Promise<ViteDevServer>;
|
|
24
|
-
declare function printBanner(server: ViteDevServer, startupTime?: number): void;
|
|
23
|
+
export declare function serve(options?: ServeOptions): Promise<ViteDevServer>;
|
|
24
|
+
export declare function printBanner(server: ViteDevServer, startupTime?: number): void;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { ServeOptions, printBanner, serve };
|
|
27
26
|
//# sourceMappingURL=serve.d.ts.map
|
package/dist/serve.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","names":[],"sources":["../src/serve.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"serve.d.ts","names":[],"sources":["../src/serve.ts"],"mappings":";;;;iBA4DiB;EACf,SAAS,QAAQ;;EAEjB;;EAEA;;EAEA;;;;;;;;;;;wBAYoB,MAAM,UAAS,eAAiB,QAAA;wBA+vBtC,YAAY,QAAQ,eAAe"}
|