@maizzle/framework 6.0.0-rc.2 → 6.0.0-rc.20

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.
Files changed (542) hide show
  1. package/README.md +3 -3
  2. package/bin/maizzle.mjs +1 -1
  3. package/dist/build.d.ts +20 -0
  4. package/dist/build.d.ts.map +1 -0
  5. package/dist/{build.mjs → build.js} +33 -19
  6. package/dist/build.js.map +1 -0
  7. package/dist/components/Body.vue +128 -0
  8. package/dist/components/Button.vue +148 -52
  9. package/dist/components/CodeBlock.vue +69 -0
  10. package/dist/components/CodeInline.vue +49 -0
  11. package/dist/components/Column.vue +108 -0
  12. package/dist/components/Container.vue +123 -0
  13. package/dist/components/Font.vue +96 -0
  14. package/dist/components/Head.vue +30 -0
  15. package/dist/components/Heading.vue +28 -0
  16. package/dist/components/Hr.vue +33 -0
  17. package/dist/components/Html.vue +137 -0
  18. package/dist/components/Img.vue +70 -0
  19. package/dist/components/Layout.vue +143 -0
  20. package/dist/components/Link.vue +26 -0
  21. package/dist/components/Markdown.vue +89 -0
  22. package/dist/components/MarkdownLayout.vue +39 -0
  23. package/dist/components/NotPlaintext.vue +14 -0
  24. package/dist/components/Outlook.vue +74 -11
  25. package/dist/components/OutlookBg.vue +241 -0
  26. package/dist/components/Overlap.vue +156 -0
  27. package/dist/components/Plaintext.vue +14 -0
  28. package/dist/components/Preheader.vue +15 -0
  29. package/dist/components/QrCode.vue +157 -0
  30. package/dist/components/Raw.vue +28 -0
  31. package/dist/components/Row.vue +184 -0
  32. package/dist/components/Section.vue +124 -0
  33. package/dist/components/Spacer.vue +70 -21
  34. package/dist/components/Tailwind.vue +43 -0
  35. package/dist/components/Text.vue +29 -0
  36. package/dist/components/utils.d.ts +28 -0
  37. package/dist/components/utils.d.ts.map +1 -0
  38. package/dist/components/utils.js +50 -0
  39. package/dist/components/utils.js.map +1 -0
  40. package/dist/components/utils.ts +51 -0
  41. package/dist/composables/{defineConfig.d.mts → defineConfig.d.ts} +2 -2
  42. package/dist/composables/defineConfig.d.ts.map +1 -0
  43. package/dist/composables/{defineConfig.mjs → defineConfig.js} +4 -5
  44. package/dist/composables/defineConfig.js.map +1 -0
  45. package/dist/composables/renderContext.d.ts +37 -0
  46. package/dist/composables/renderContext.d.ts.map +1 -0
  47. package/dist/composables/{renderContext.mjs → renderContext.js} +2 -2
  48. package/dist/composables/renderContext.js.map +1 -0
  49. package/dist/composables/useBaseUrl.d.ts +19 -0
  50. package/dist/composables/useBaseUrl.d.ts.map +1 -0
  51. package/dist/composables/useBaseUrl.js +26 -0
  52. package/dist/composables/useBaseUrl.js.map +1 -0
  53. package/dist/composables/{useConfig.d.mts → useConfig.d.ts} +2 -2
  54. package/dist/composables/useConfig.d.ts.map +1 -0
  55. package/dist/composables/{useConfig.mjs → useConfig.js} +2 -3
  56. package/dist/composables/useConfig.js.map +1 -0
  57. package/dist/composables/{useDoctype.d.mts → useDoctype.d.ts} +1 -1
  58. package/dist/composables/useDoctype.d.ts.map +1 -0
  59. package/dist/composables/{useDoctype.mjs → useDoctype.js} +3 -4
  60. package/dist/composables/useDoctype.js.map +1 -0
  61. package/dist/composables/{useEvent.d.mts → useEvent.d.ts} +2 -2
  62. package/dist/composables/useEvent.d.ts.map +1 -0
  63. package/dist/composables/{useEvent.mjs → useEvent.js} +3 -4
  64. package/dist/composables/useEvent.js.map +1 -0
  65. package/dist/composables/useFont.d.ts +50 -0
  66. package/dist/composables/useFont.d.ts.map +1 -0
  67. package/dist/composables/useFont.js +92 -0
  68. package/dist/composables/useFont.js.map +1 -0
  69. package/dist/composables/useOutlookFallback.d.ts +21 -0
  70. package/dist/composables/useOutlookFallback.d.ts.map +1 -0
  71. package/dist/composables/useOutlookFallback.js +29 -0
  72. package/dist/composables/useOutlookFallback.js.map +1 -0
  73. package/dist/composables/{usePlaintext.d.mts → usePlaintext.d.ts} +3 -1
  74. package/dist/composables/usePlaintext.d.ts.map +1 -0
  75. package/dist/composables/{usePlaintext.mjs → usePlaintext.js} +4 -4
  76. package/dist/composables/usePlaintext.js.map +1 -0
  77. package/dist/composables/usePreheader.d.ts +24 -0
  78. package/dist/composables/usePreheader.d.ts.map +1 -0
  79. package/dist/composables/usePreheader.js +28 -0
  80. package/dist/composables/usePreheader.js.map +1 -0
  81. package/dist/composables/useTransformers.d.ts +34 -0
  82. package/dist/composables/useTransformers.d.ts.map +1 -0
  83. package/dist/composables/useTransformers.js +48 -0
  84. package/dist/composables/useTransformers.js.map +1 -0
  85. package/dist/composables/useUrlQuery.d.ts +19 -0
  86. package/dist/composables/useUrlQuery.d.ts.map +1 -0
  87. package/dist/composables/useUrlQuery.js +26 -0
  88. package/dist/composables/useUrlQuery.js.map +1 -0
  89. package/dist/config/{defaults.d.mts → defaults.d.ts} +2 -2
  90. package/dist/config/defaults.d.ts.map +1 -0
  91. package/dist/config/{defaults.mjs → defaults.js} +10 -6
  92. package/dist/config/defaults.js.map +1 -0
  93. package/dist/config/{index.d.mts → index.d.ts} +4 -4
  94. package/dist/config/index.d.ts.map +1 -0
  95. package/dist/config/{index.mjs → index.js} +12 -10
  96. package/dist/config/index.js.map +1 -0
  97. package/dist/events/{index.d.mts → index.d.ts} +10 -4
  98. package/dist/events/index.d.ts.map +1 -0
  99. package/dist/events/{index.mjs → index.js} +21 -5
  100. package/dist/events/index.js.map +1 -0
  101. package/dist/index.d.ts +38 -0
  102. package/dist/index.js +37 -0
  103. package/dist/{plaintext.d.mts → plaintext.d.ts} +1 -1
  104. package/dist/plaintext.d.ts.map +1 -0
  105. package/dist/{plaintext.mjs → plaintext.js} +4 -5
  106. package/dist/plaintext.js.map +1 -0
  107. package/dist/{plugin.d.mts → plugin.d.ts} +2 -2
  108. package/dist/plugin.d.ts.map +1 -0
  109. package/dist/plugin.js +57 -0
  110. package/dist/plugin.js.map +1 -0
  111. package/dist/plugins/postcss/{mergeMediaQueries.d.mts → mergeMediaQueries.d.ts} +2 -2
  112. package/dist/plugins/postcss/mergeMediaQueries.d.ts.map +1 -0
  113. package/dist/plugins/postcss/{mergeMediaQueries.mjs → mergeMediaQueries.js} +2 -3
  114. package/dist/plugins/postcss/mergeMediaQueries.js.map +1 -0
  115. package/dist/plugins/postcss/{pruneVars.d.mts → pruneVars.d.ts} +1 -1
  116. package/dist/plugins/postcss/pruneVars.d.ts.map +1 -0
  117. package/dist/plugins/postcss/{pruneVars.mjs → pruneVars.js} +2 -2
  118. package/dist/plugins/postcss/pruneVars.js.map +1 -0
  119. package/dist/plugins/postcss/quoteFontFamilies.d.ts +13 -0
  120. package/dist/plugins/postcss/quoteFontFamilies.d.ts.map +1 -0
  121. package/dist/plugins/postcss/quoteFontFamilies.js +84 -0
  122. package/dist/plugins/postcss/quoteFontFamilies.js.map +1 -0
  123. package/dist/plugins/postcss/{removeDeclarations.d.mts → removeDeclarations.d.ts} +1 -1
  124. package/dist/plugins/postcss/removeDeclarations.d.ts.map +1 -0
  125. package/dist/plugins/postcss/{removeDeclarations.mjs → removeDeclarations.js} +2 -2
  126. package/dist/plugins/postcss/removeDeclarations.js.map +1 -0
  127. package/dist/plugins/postcss/resolveMaizzleImports.d.ts +16 -0
  128. package/dist/plugins/postcss/resolveMaizzleImports.d.ts.map +1 -0
  129. package/dist/plugins/postcss/resolveMaizzleImports.js +39 -0
  130. package/dist/plugins/postcss/resolveMaizzleImports.js.map +1 -0
  131. package/dist/plugins/postcss/resolveProps.d.ts +8 -0
  132. package/dist/plugins/postcss/resolveProps.d.ts.map +1 -0
  133. package/dist/plugins/postcss/resolveProps.js +144 -0
  134. package/dist/plugins/postcss/resolveProps.js.map +1 -0
  135. package/dist/plugins/postcss/{tailwindCleanup.d.mts → tailwindCleanup.d.ts} +2 -2
  136. package/dist/plugins/postcss/tailwindCleanup.d.ts.map +1 -0
  137. package/dist/plugins/postcss/tailwindCleanup.js +68 -0
  138. package/dist/plugins/postcss/tailwindCleanup.js.map +1 -0
  139. package/dist/prepare.d.ts +17 -0
  140. package/dist/prepare.d.ts.map +1 -0
  141. package/dist/prepare.js +44 -0
  142. package/dist/prepare.js.map +1 -0
  143. package/dist/render/active.d.ts +8 -0
  144. package/dist/render/active.d.ts.map +1 -0
  145. package/dist/render/active.js +12 -0
  146. package/dist/render/active.js.map +1 -0
  147. package/dist/render/{createRenderer.d.mts → createRenderer.d.ts} +15 -7
  148. package/dist/render/createRenderer.d.ts.map +1 -0
  149. package/dist/render/createRenderer.js +319 -0
  150. package/dist/render/createRenderer.js.map +1 -0
  151. package/dist/render/index.d.ts +18 -0
  152. package/dist/render/index.d.ts.map +1 -0
  153. package/dist/render/index.js +53 -0
  154. package/dist/render/index.js.map +1 -0
  155. package/dist/render/injectFonts.d.ts +15 -0
  156. package/dist/render/injectFonts.d.ts.map +1 -0
  157. package/dist/render/injectFonts.js +45 -0
  158. package/dist/render/injectFonts.js.map +1 -0
  159. package/dist/render/plugins/codeBlockExtract.d.ts +14 -0
  160. package/dist/render/plugins/codeBlockExtract.d.ts.map +1 -0
  161. package/dist/render/plugins/codeBlockExtract.js +34 -0
  162. package/dist/render/plugins/codeBlockExtract.js.map +1 -0
  163. package/dist/render/plugins/markdownExtract.d.ts +12 -0
  164. package/dist/render/plugins/markdownExtract.d.ts.map +1 -0
  165. package/dist/render/plugins/markdownExtract.js +49 -0
  166. package/dist/render/plugins/markdownExtract.js.map +1 -0
  167. package/dist/render/plugins/rawExtract.d.ts +14 -0
  168. package/dist/render/plugins/rawExtract.d.ts.map +1 -0
  169. package/dist/render/plugins/rawExtract.js +34 -0
  170. package/dist/render/plugins/rawExtract.js.map +1 -0
  171. package/dist/render/plugins/rowSourceLocation.d.ts +18 -0
  172. package/dist/render/plugins/rowSourceLocation.d.ts.map +1 -0
  173. package/dist/render/plugins/rowSourceLocation.js +45 -0
  174. package/dist/render/plugins/rowSourceLocation.js.map +1 -0
  175. package/dist/{serve.d.mts → serve.d.ts} +4 -2
  176. package/dist/serve.d.ts.map +1 -0
  177. package/dist/{serve.mjs → serve.js} +203 -79
  178. package/dist/serve.js.map +1 -0
  179. package/dist/server/compatibility.d.ts +59 -0
  180. package/dist/server/compatibility.d.ts.map +1 -0
  181. package/dist/server/compatibility.js +911 -0
  182. package/dist/server/compatibility.js.map +1 -0
  183. package/dist/server/email.d.ts +17 -0
  184. package/dist/server/email.d.ts.map +1 -0
  185. package/dist/server/email.js +40 -0
  186. package/dist/server/email.js.map +1 -0
  187. package/dist/server/linter.d.ts +20 -0
  188. package/dist/server/linter.d.ts.map +1 -0
  189. package/dist/server/linter.js +339 -0
  190. package/dist/server/linter.js.map +1 -0
  191. package/dist/server/sfc-utils.d.ts +21 -0
  192. package/dist/server/sfc-utils.d.ts.map +1 -0
  193. package/dist/server/sfc-utils.js +198 -0
  194. package/dist/server/sfc-utils.js.map +1 -0
  195. package/dist/server/ui/App.vue +253 -77
  196. package/dist/server/ui/components/SidebarClose.vue +12 -0
  197. package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
  198. package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
  199. package/dist/server/ui/components/ui/command/Command.vue +5 -1
  200. package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
  201. package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
  202. package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
  203. package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
  204. package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
  205. package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
  206. package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
  207. package/dist/server/ui/components/ui/input/Input.vue +1 -1
  208. package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
  209. package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
  210. package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
  211. package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
  212. package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
  213. package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
  214. package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
  215. package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
  216. package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
  217. package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
  218. package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
  219. package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
  220. package/dist/server/ui/components/ui/toggle/index.ts +3 -3
  221. package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
  222. package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
  223. package/dist/server/ui/lib/emulated-dark-mode.ts +131 -0
  224. package/dist/server/ui/main.css +20 -20
  225. package/dist/server/ui/pages/Home.vue +12 -5
  226. package/dist/server/ui/pages/Preview.vue +716 -276
  227. package/dist/tests/render/_helpers.d.ts +6 -0
  228. package/dist/tests/render/_helpers.d.ts.map +1 -0
  229. package/dist/tests/render/_helpers.js +16 -0
  230. package/dist/tests/render/_helpers.js.map +1 -0
  231. package/dist/transformers/{addAttributes.d.mts → addAttributes.d.ts} +2 -2
  232. package/dist/transformers/addAttributes.d.ts.map +1 -0
  233. package/dist/transformers/{addAttributes.mjs → addAttributes.js} +16 -13
  234. package/dist/transformers/addAttributes.js.map +1 -0
  235. package/dist/transformers/attributeToStyle.d.ts +38 -0
  236. package/dist/transformers/attributeToStyle.d.ts.map +1 -0
  237. package/dist/transformers/attributeToStyle.js +94 -0
  238. package/dist/transformers/attributeToStyle.js.map +1 -0
  239. package/dist/transformers/base.d.ts +71 -0
  240. package/dist/transformers/base.d.ts.map +1 -0
  241. package/dist/transformers/{base.mjs → base.js} +56 -30
  242. package/dist/transformers/base.js.map +1 -0
  243. package/dist/transformers/columnWidth.d.ts +31 -0
  244. package/dist/transformers/columnWidth.d.ts.map +1 -0
  245. package/dist/transformers/columnWidth.js +546 -0
  246. package/dist/transformers/columnWidth.js.map +1 -0
  247. package/dist/transformers/entities.d.ts +37 -0
  248. package/dist/transformers/entities.d.ts.map +1 -0
  249. package/dist/transformers/entities.js +73 -0
  250. package/dist/transformers/entities.js.map +1 -0
  251. package/dist/transformers/filters/defaults.d.ts +6 -0
  252. package/dist/transformers/filters/defaults.d.ts.map +1 -0
  253. package/dist/transformers/filters/defaults.js +78 -0
  254. package/dist/transformers/filters/defaults.js.map +1 -0
  255. package/dist/transformers/filters/index.d.ts +43 -0
  256. package/dist/transformers/filters/index.d.ts.map +1 -0
  257. package/dist/transformers/filters/index.js +89 -0
  258. package/dist/transformers/filters/index.js.map +1 -0
  259. package/dist/transformers/format.d.ts +22 -0
  260. package/dist/transformers/format.d.ts.map +1 -0
  261. package/dist/transformers/format.js +30 -0
  262. package/dist/transformers/format.js.map +1 -0
  263. package/dist/transformers/{index.d.mts → index.d.ts} +14 -11
  264. package/dist/transformers/index.d.ts.map +1 -0
  265. package/dist/transformers/index.js +133 -0
  266. package/dist/transformers/index.js.map +1 -0
  267. package/dist/transformers/inlineCss.d.ts +84 -0
  268. package/dist/transformers/inlineCss.d.ts.map +1 -0
  269. package/dist/transformers/inlineCss.js +91 -0
  270. package/dist/transformers/inlineCss.js.map +1 -0
  271. package/dist/transformers/inlineLink.d.ts +35 -0
  272. package/dist/transformers/inlineLink.d.ts.map +1 -0
  273. package/dist/transformers/{inlineLink.mjs → inlineLink.js} +34 -10
  274. package/dist/transformers/inlineLink.js.map +1 -0
  275. package/dist/transformers/minify.d.ts +21 -0
  276. package/dist/transformers/minify.d.ts.map +1 -0
  277. package/dist/transformers/minify.js +25 -0
  278. package/dist/transformers/minify.js.map +1 -0
  279. package/dist/transformers/msoPlaceholders.d.ts +28 -0
  280. package/dist/transformers/msoPlaceholders.d.ts.map +1 -0
  281. package/dist/transformers/msoPlaceholders.js +88 -0
  282. package/dist/transformers/msoPlaceholders.js.map +1 -0
  283. package/dist/transformers/purgeCss.d.ts +43 -0
  284. package/dist/transformers/purgeCss.d.ts.map +1 -0
  285. package/dist/transformers/purgeCss.js +181 -0
  286. package/dist/transformers/purgeCss.js.map +1 -0
  287. package/dist/transformers/removeAttributes.d.ts +54 -0
  288. package/dist/transformers/removeAttributes.d.ts.map +1 -0
  289. package/dist/transformers/removeAttributes.js +70 -0
  290. package/dist/transformers/removeAttributes.js.map +1 -0
  291. package/dist/transformers/{replaceStrings.d.mts → replaceStrings.d.ts} +2 -2
  292. package/dist/transformers/replaceStrings.d.ts.map +1 -0
  293. package/dist/transformers/{replaceStrings.mjs → replaceStrings.js} +2 -2
  294. package/dist/transformers/replaceStrings.js.map +1 -0
  295. package/dist/transformers/{safeClassNames.d.mts → safeClassNames.d.ts} +2 -2
  296. package/dist/transformers/safeClassNames.d.ts.map +1 -0
  297. package/dist/transformers/{safeClassNames.mjs → safeClassNames.js} +4 -5
  298. package/dist/transformers/safeClassNames.js.map +1 -0
  299. package/dist/transformers/shorthandCss.d.ts +47 -0
  300. package/dist/transformers/shorthandCss.d.ts.map +1 -0
  301. package/dist/transformers/shorthandCss.js +61 -0
  302. package/dist/transformers/shorthandCss.js.map +1 -0
  303. package/dist/transformers/sixHex.d.ts +25 -0
  304. package/dist/transformers/sixHex.d.ts.map +1 -0
  305. package/dist/transformers/sixHex.js +42 -0
  306. package/dist/transformers/sixHex.js.map +1 -0
  307. package/dist/transformers/tailwindComponent.d.ts +16 -0
  308. package/dist/transformers/tailwindComponent.d.ts.map +1 -0
  309. package/dist/transformers/tailwindComponent.js +92 -0
  310. package/dist/transformers/tailwindComponent.js.map +1 -0
  311. package/dist/transformers/{tailwindcss.d.mts → tailwindcss.d.ts} +8 -4
  312. package/dist/transformers/tailwindcss.d.ts.map +1 -0
  313. package/dist/transformers/tailwindcss.js +97 -0
  314. package/dist/transformers/tailwindcss.js.map +1 -0
  315. package/dist/transformers/urlQuery.d.ts +36 -0
  316. package/dist/transformers/urlQuery.d.ts.map +1 -0
  317. package/dist/transformers/urlQuery.js +77 -0
  318. package/dist/transformers/urlQuery.js.map +1 -0
  319. package/dist/types/config.d.ts +727 -0
  320. package/dist/types/config.d.ts.map +1 -0
  321. package/dist/types/config.js +1 -0
  322. package/dist/types/index.d.ts +2 -0
  323. package/dist/types/index.js +1 -0
  324. package/dist/utils/ast/index.d.ts +4 -0
  325. package/dist/utils/ast/index.js +4 -0
  326. package/dist/utils/ast/{parser.d.mts → parser.d.ts} +1 -1
  327. package/dist/utils/ast/parser.d.ts.map +1 -0
  328. package/dist/utils/ast/{parser.mjs → parser.js} +2 -3
  329. package/dist/utils/ast/parser.js.map +1 -0
  330. package/dist/utils/ast/serializer.d.ts +8 -0
  331. package/dist/utils/ast/serializer.d.ts.map +1 -0
  332. package/dist/utils/ast/serializer.js +36 -0
  333. package/dist/utils/ast/serializer.js.map +1 -0
  334. package/dist/utils/ast/{walker.d.mts → walker.d.ts} +1 -1
  335. package/dist/utils/ast/walker.d.ts.map +1 -0
  336. package/dist/utils/ast/{walker.mjs → walker.js} +2 -2
  337. package/dist/utils/ast/walker.js.map +1 -0
  338. package/dist/utils/compileTailwindCss.d.ts +16 -0
  339. package/dist/utils/compileTailwindCss.d.ts.map +1 -0
  340. package/dist/utils/compileTailwindCss.js +54 -0
  341. package/dist/utils/compileTailwindCss.js.map +1 -0
  342. package/dist/utils/componentSources.d.ts +50 -0
  343. package/dist/utils/componentSources.d.ts.map +1 -0
  344. package/dist/utils/componentSources.js +50 -0
  345. package/dist/utils/componentSources.js.map +1 -0
  346. package/dist/utils/decodeStyleEntities.d.ts +15 -0
  347. package/dist/utils/decodeStyleEntities.d.ts.map +1 -0
  348. package/dist/utils/decodeStyleEntities.js +18 -0
  349. package/dist/utils/decodeStyleEntities.js.map +1 -0
  350. package/dist/utils/detect.d.ts +5 -0
  351. package/dist/utils/detect.d.ts.map +1 -0
  352. package/dist/utils/detect.js +10 -0
  353. package/dist/utils/detect.js.map +1 -0
  354. package/dist/utils/output-markers.d.ts +29 -0
  355. package/dist/utils/output-markers.d.ts.map +1 -0
  356. package/dist/utils/output-markers.js +68 -0
  357. package/dist/utils/output-markers.js.map +1 -0
  358. package/dist/utils/{url.d.mts → url.d.ts} +1 -1
  359. package/dist/utils/url.d.ts.map +1 -0
  360. package/dist/utils/{url.mjs → url.js} +2 -3
  361. package/dist/utils/url.js.map +1 -0
  362. package/node_modules/@clack/core/CHANGELOG.md +8 -0
  363. package/node_modules/@clack/core/dist/index.d.mts +18 -4
  364. package/node_modules/@clack/core/dist/index.mjs +16 -10
  365. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  366. package/node_modules/@clack/core/package.json +5 -2
  367. package/node_modules/@clack/prompts/CHANGELOG.md +15 -0
  368. package/node_modules/@clack/prompts/README.md +107 -2
  369. package/node_modules/@clack/prompts/dist/index.d.mts +16 -11
  370. package/node_modules/@clack/prompts/dist/index.mjs +114 -107
  371. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  372. package/node_modules/@clack/prompts/package.json +7 -4
  373. package/node_modules/fast-string-truncated-width/dist/index.js +36 -96
  374. package/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -3
  375. package/node_modules/fast-string-truncated-width/dist/utils.d.ts +3 -3
  376. package/node_modules/fast-string-truncated-width/dist/utils.js +14 -9
  377. package/node_modules/fast-string-truncated-width/package.json +1 -1
  378. package/node_modules/fast-string-truncated-width/readme.md +2 -3
  379. package/node_modules/fast-string-width/package.json +2 -2
  380. package/node_modules/fast-string-width/readme.md +0 -3
  381. package/node_modules/fast-wrap-ansi/lib/main.js +4 -1
  382. package/node_modules/fast-wrap-ansi/lib/main.js.map +1 -1
  383. package/node_modules/fast-wrap-ansi/package.json +2 -2
  384. package/node_modules/maizzle/README.md +24 -0
  385. package/node_modules/maizzle/dist/commands/make/component.mjs +1 -1
  386. package/node_modules/maizzle/dist/commands/make/config.mjs +1 -1
  387. package/node_modules/maizzle/dist/commands/make/layout.mjs +3 -3
  388. package/node_modules/maizzle/dist/commands/make/scaffold.mjs +1 -1
  389. package/node_modules/maizzle/dist/commands/make/stubs/Layout.vue +146 -0
  390. package/node_modules/maizzle/dist/commands/make/stubs/component.vue +2 -4
  391. package/node_modules/maizzle/dist/commands/make/stubs/config.ts +1 -5
  392. package/node_modules/maizzle/dist/commands/make/template.mjs +1 -1
  393. package/node_modules/maizzle/dist/commands/new.mjs +32 -52
  394. package/node_modules/maizzle/dist/index.d.mts +1 -0
  395. package/node_modules/maizzle/dist/index.mjs +30 -7
  396. package/node_modules/maizzle/package.json +4 -3
  397. package/node_modules/nypm/dist/cli.mjs +28 -5
  398. package/node_modules/nypm/dist/index.d.mts +0 -8
  399. package/node_modules/nypm/dist/index.mjs +27 -4
  400. package/node_modules/nypm/package.json +12 -12
  401. package/node_modules/tinyexec/README.md +1 -1
  402. package/node_modules/tinyexec/dist/main.d.mts +6 -6
  403. package/node_modules/tinyexec/dist/main.mjs +126 -134
  404. package/node_modules/tinyexec/package.json +9 -9
  405. package/package.json +31 -21
  406. package/dist/build.d.mts +0 -19
  407. package/dist/build.d.mts.map +0 -1
  408. package/dist/build.mjs.map +0 -1
  409. package/dist/components/Divider.vue +0 -105
  410. package/dist/components/Vml.vue +0 -89
  411. package/dist/components/utils.d.mts +0 -5
  412. package/dist/components/utils.d.mts.map +0 -1
  413. package/dist/components/utils.mjs +0 -9
  414. package/dist/components/utils.mjs.map +0 -1
  415. package/dist/composables/defineConfig.d.mts.map +0 -1
  416. package/dist/composables/defineConfig.mjs.map +0 -1
  417. package/dist/composables/renderContext.d.mts +0 -19
  418. package/dist/composables/renderContext.d.mts.map +0 -1
  419. package/dist/composables/renderContext.mjs.map +0 -1
  420. package/dist/composables/useConfig.d.mts.map +0 -1
  421. package/dist/composables/useConfig.mjs.map +0 -1
  422. package/dist/composables/useDoctype.d.mts.map +0 -1
  423. package/dist/composables/useDoctype.mjs.map +0 -1
  424. package/dist/composables/useEvent.d.mts.map +0 -1
  425. package/dist/composables/useEvent.mjs.map +0 -1
  426. package/dist/composables/usePlaintext.d.mts.map +0 -1
  427. package/dist/composables/usePlaintext.mjs.map +0 -1
  428. package/dist/config/defaults.d.mts.map +0 -1
  429. package/dist/config/defaults.mjs.map +0 -1
  430. package/dist/config/index.d.mts.map +0 -1
  431. package/dist/config/index.mjs.map +0 -1
  432. package/dist/events/index.d.mts.map +0 -1
  433. package/dist/events/index.mjs.map +0 -1
  434. package/dist/index.d.mts +0 -29
  435. package/dist/index.mjs +0 -29
  436. package/dist/plaintext.d.mts.map +0 -1
  437. package/dist/plaintext.mjs.map +0 -1
  438. package/dist/plugin.d.mts.map +0 -1
  439. package/dist/plugin.mjs +0 -41
  440. package/dist/plugin.mjs.map +0 -1
  441. package/dist/plugins/postcss/mergeMediaQueries.d.mts.map +0 -1
  442. package/dist/plugins/postcss/mergeMediaQueries.mjs.map +0 -1
  443. package/dist/plugins/postcss/pruneVars.d.mts.map +0 -1
  444. package/dist/plugins/postcss/pruneVars.mjs.map +0 -1
  445. package/dist/plugins/postcss/removeDeclarations.d.mts.map +0 -1
  446. package/dist/plugins/postcss/removeDeclarations.mjs.map +0 -1
  447. package/dist/plugins/postcss/tailwindCleanup.d.mts.map +0 -1
  448. package/dist/plugins/postcss/tailwindCleanup.mjs +0 -35
  449. package/dist/plugins/postcss/tailwindCleanup.mjs.map +0 -1
  450. package/dist/render/createRenderer.d.mts.map +0 -1
  451. package/dist/render/createRenderer.mjs +0 -155
  452. package/dist/render/createRenderer.mjs.map +0 -1
  453. package/dist/render/index.d.mts +0 -26
  454. package/dist/render/index.d.mts.map +0 -1
  455. package/dist/render/index.mjs +0 -44
  456. package/dist/render/index.mjs.map +0 -1
  457. package/dist/serve.d.mts.map +0 -1
  458. package/dist/serve.mjs.map +0 -1
  459. package/dist/server/compatibility.d.mts +0 -6
  460. package/dist/server/compatibility.d.mts.map +0 -1
  461. package/dist/server/compatibility.mjs +0 -83
  462. package/dist/server/compatibility.mjs.map +0 -1
  463. package/dist/server/linter.d.mts +0 -6
  464. package/dist/server/linter.d.mts.map +0 -1
  465. package/dist/server/linter.mjs +0 -200
  466. package/dist/server/linter.mjs.map +0 -1
  467. package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
  468. package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
  469. package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
  470. package/dist/server/ui/components/ui/resizable/index.ts +0 -3
  471. package/dist/transformers/addAttributes.d.mts.map +0 -1
  472. package/dist/transformers/addAttributes.mjs.map +0 -1
  473. package/dist/transformers/attributeToStyle.d.mts +0 -25
  474. package/dist/transformers/attributeToStyle.d.mts.map +0 -1
  475. package/dist/transformers/attributeToStyle.mjs +0 -80
  476. package/dist/transformers/attributeToStyle.mjs.map +0 -1
  477. package/dist/transformers/base.d.mts +0 -8
  478. package/dist/transformers/base.d.mts.map +0 -1
  479. package/dist/transformers/base.mjs.map +0 -1
  480. package/dist/transformers/entities.d.mts +0 -8
  481. package/dist/transformers/entities.d.mts.map +0 -1
  482. package/dist/transformers/entities.mjs +0 -38
  483. package/dist/transformers/entities.mjs.map +0 -1
  484. package/dist/transformers/format.d.mts +0 -15
  485. package/dist/transformers/format.d.mts.map +0 -1
  486. package/dist/transformers/format.mjs +0 -26
  487. package/dist/transformers/format.mjs.map +0 -1
  488. package/dist/transformers/index.d.mts.map +0 -1
  489. package/dist/transformers/index.mjs +0 -73
  490. package/dist/transformers/index.mjs.map +0 -1
  491. package/dist/transformers/inlineCSS.d.mts +0 -30
  492. package/dist/transformers/inlineCSS.d.mts.map +0 -1
  493. package/dist/transformers/inlineCSS.mjs +0 -79
  494. package/dist/transformers/inlineCSS.mjs.map +0 -1
  495. package/dist/transformers/inlineLink.d.mts +0 -14
  496. package/dist/transformers/inlineLink.d.mts.map +0 -1
  497. package/dist/transformers/inlineLink.mjs.map +0 -1
  498. package/dist/transformers/minify.d.mts +0 -17
  499. package/dist/transformers/minify.d.mts.map +0 -1
  500. package/dist/transformers/minify.mjs +0 -24
  501. package/dist/transformers/minify.mjs.map +0 -1
  502. package/dist/transformers/purgeCSS.d.mts +0 -23
  503. package/dist/transformers/purgeCSS.d.mts.map +0 -1
  504. package/dist/transformers/purgeCSS.mjs +0 -66
  505. package/dist/transformers/purgeCSS.mjs.map +0 -1
  506. package/dist/transformers/removeAttributes.d.mts +0 -31
  507. package/dist/transformers/removeAttributes.d.mts.map +0 -1
  508. package/dist/transformers/removeAttributes.mjs +0 -63
  509. package/dist/transformers/removeAttributes.mjs.map +0 -1
  510. package/dist/transformers/replaceStrings.d.mts.map +0 -1
  511. package/dist/transformers/replaceStrings.mjs.map +0 -1
  512. package/dist/transformers/safeClassNames.d.mts.map +0 -1
  513. package/dist/transformers/safeClassNames.mjs.map +0 -1
  514. package/dist/transformers/shorthandCSS.d.mts +0 -24
  515. package/dist/transformers/shorthandCSS.d.mts.map +0 -1
  516. package/dist/transformers/shorthandCSS.mjs +0 -48
  517. package/dist/transformers/shorthandCSS.mjs.map +0 -1
  518. package/dist/transformers/tailwindcss.d.mts.map +0 -1
  519. package/dist/transformers/tailwindcss.mjs +0 -136
  520. package/dist/transformers/tailwindcss.mjs.map +0 -1
  521. package/dist/transformers/urlQuery.d.mts +0 -24
  522. package/dist/transformers/urlQuery.d.mts.map +0 -1
  523. package/dist/transformers/urlQuery.mjs +0 -65
  524. package/dist/transformers/urlQuery.mjs.map +0 -1
  525. package/dist/types/config.d.mts +0 -149
  526. package/dist/types/config.d.mts.map +0 -1
  527. package/dist/types/config.mjs +0 -1
  528. package/dist/types/index.d.mts +0 -2
  529. package/dist/types/index.mjs +0 -1
  530. package/dist/utils/ast/index.d.mts +0 -4
  531. package/dist/utils/ast/index.mjs +0 -5
  532. package/dist/utils/ast/parser.d.mts.map +0 -1
  533. package/dist/utils/ast/parser.mjs.map +0 -1
  534. package/dist/utils/ast/serializer.d.mts +0 -7
  535. package/dist/utils/ast/serializer.d.mts.map +0 -1
  536. package/dist/utils/ast/serializer.mjs +0 -13
  537. package/dist/utils/ast/serializer.mjs.map +0 -1
  538. package/dist/utils/ast/walker.d.mts.map +0 -1
  539. package/dist/utils/ast/walker.mjs.map +0 -1
  540. package/dist/utils/url.d.mts.map +0 -1
  541. package/dist/utils/url.mjs.map +0 -1
  542. package/node_modules/maizzle/dist/commands/make/stubs/layout.vue +0 -39
@@ -0,0 +1,727 @@
1
+ import { RemoveValue } from "../plugins/postcss/removeDeclarations.js";
2
+ import { Directive, Plugin } from "vue";
3
+ import { Options } from "juice";
4
+ import * as _$oxfmt from "oxfmt";
5
+ import * as _$html_crush0 from "html-crush";
6
+ import { InlineConfig } from "vite";
7
+ import * as _$string_strip_html0 from "string-strip-html";
8
+ import * as _$shiki from "shiki";
9
+ import { Options as Options$1 } from "unplugin-vue-markdown/types";
10
+
11
+ //#region src/types/config.d.ts
12
+ interface UrlQueryOptions {
13
+ /**
14
+ * CSS selectors for elements to process.
15
+ *
16
+ * @default ['a']
17
+ */
18
+ tags?: string[];
19
+ /**
20
+ * HTML attributes containing URLs to append query params to.
21
+ *
22
+ * @default ['src', 'href', 'poster', 'srcset', 'background']
23
+ */
24
+ attributes?: string[];
25
+ /**
26
+ * When `true`, only appends query params to absolute URLs.
27
+ *
28
+ * @default true
29
+ */
30
+ strict?: boolean;
31
+ /**
32
+ * Options forwarded to the `query-string` library for controlling serialization.
33
+ *
34
+ * @default { encode: false }
35
+ */
36
+ qs?: Record<string, unknown>;
37
+ }
38
+ type UrlQuery = Record<string, unknown> & {
39
+ _options?: UrlQueryOptions;
40
+ };
41
+ interface UrlConfig {
42
+ /**
43
+ * Append query parameters to URLs in your HTML.
44
+ *
45
+ * @example
46
+ * url: {
47
+ * query: {
48
+ * utm_source: 'maizzle',
49
+ * utm_medium: 'email',
50
+ * }
51
+ * }
52
+ */
53
+ query?: UrlQuery;
54
+ /**
55
+ * Prepend a base URL to relative paths.
56
+ *
57
+ * Pass a string to prepend to all tags, or an object for fine-grained control.
58
+ *
59
+ * @example
60
+ * url: {
61
+ * base: 'https://cdn.example.com/emails/',
62
+ * }
63
+ */
64
+ base?: string | {
65
+ /** The base URL to prepend. */url?: string; /** Tags or tag-attribute map to process. */
66
+ tags?: string[] | Record<string, Record<string, string | boolean>>; /** Attributes to process. */
67
+ attributes?: Record<string, string>; /** Also apply to URLs in `<style>` tags. */
68
+ styleTag?: boolean; /** Also apply to URLs in inline `style` attributes. */
69
+ inlineCss?: boolean;
70
+ };
71
+ }
72
+ interface CssConfig {
73
+ /**
74
+ * Base directory for Tailwind CSS `@source` resolution.
75
+ *
76
+ * Automatically set to `root` when `root` is configured.
77
+ */
78
+ base?: string;
79
+ /**
80
+ * Remove unused CSS.
81
+ *
82
+ * Set to `true` to enable with defaults, or pass an options object.
83
+ *
84
+ * @default false
85
+ */
86
+ purge?: boolean | Record<string, unknown>;
87
+ /**
88
+ * Inline CSS from `<style>` tags into matching HTML elements.
89
+ *
90
+ * Set to `true` to enable with defaults, or pass an options object for fine-grained control.
91
+ *
92
+ * @example
93
+ * css: {
94
+ * inline: {
95
+ * removeStyleTags: true,
96
+ * applyWidthAttributes: true,
97
+ * }
98
+ * }
99
+ */
100
+ inline?: boolean | Options & {
101
+ /**
102
+ * Convert HTML attributes like `width`, `height`, `bgcolor`, and `valign`
103
+ * to inline CSS styles. Set to `true` for all, or pass an array of attribute names.
104
+ *
105
+ * @default false
106
+ */
107
+ attributeToStyle?: boolean | string[];
108
+ /**
109
+ * Convert `0px`, `0em` etc. to `0` in inline styles.
110
+ *
111
+ * @default true
112
+ */
113
+ preferUnitlessValues?: boolean;
114
+ /**
115
+ * CSS selectors to preserve in `<style>` tags, even after inlining.
116
+ * Mapped to Juice's `preservedSelectors` option.
117
+ *
118
+ * @default []
119
+ */
120
+ safelist?: string[];
121
+ /**
122
+ * Duplicate CSS properties to HTML attributes.
123
+ * Mapped to Juice's static `styleToAttribute` property.
124
+ *
125
+ * @default {}
126
+ *
127
+ * @example
128
+ * styleToAttribute: {
129
+ * 'background-color': 'bgcolor',
130
+ * }
131
+ */
132
+ styleToAttribute?: Record<string, string>;
133
+ /**
134
+ * Elements that can receive `width` HTML attributes.
135
+ * Mapped to Juice's static `widthElements` property.
136
+ *
137
+ * @default ['img', 'video']
138
+ */
139
+ widthElements?: string[];
140
+ /**
141
+ * Elements that can receive `height` HTML attributes.
142
+ * Mapped to Juice's static `heightElements` property.
143
+ *
144
+ * @default ['img', 'video']
145
+ */
146
+ heightElements?: string[];
147
+ /**
148
+ * CSS properties to exclude from inlining.
149
+ * Mapped to Juice's static `excludedProperties` property.
150
+ *
151
+ * @default []
152
+ */
153
+ excludedProperties?: string[];
154
+ /**
155
+ * Template language code blocks to preserve during inlining.
156
+ * Mapped to Juice's static `codeBlocks` property.
157
+ *
158
+ * @default { EJS: { start: '<%', end: '%>' }, HBS: { start: '\{\{', end: '}}' } }
159
+ */
160
+ codeBlocks?: Record<string, {
161
+ start: string;
162
+ end: string;
163
+ }>;
164
+ /**
165
+ * Additional CSS string to inline alongside `<style>` tag contents.
166
+ * Mapped to Juice's `extraCss` option.
167
+ */
168
+ customCSS?: string;
169
+ };
170
+ /**
171
+ * Merge duplicate `@media` queries and sort them.
172
+ *
173
+ * Enabled by default. Set to `false` to disable, or pass an object to control sort order.
174
+ *
175
+ * @default true
176
+ *
177
+ * @example
178
+ * css: {
179
+ * media: { sort: 'desktop-first' },
180
+ * }
181
+ */
182
+ media?: boolean | {
183
+ /**
184
+ * Sort order for media queries.
185
+ *
186
+ * @default 'mobile-first'
187
+ */
188
+ sort?: 'mobile-first' | 'desktop-first' | ((a: string, b: string) => number);
189
+ };
190
+ /**
191
+ * Strip units from zero values in inlined styles.
192
+ *
193
+ * For example, `padding: 0px 16px` becomes `padding: 0 16px`.
194
+ *
195
+ * @default true
196
+ */
197
+ preferUnitless?: boolean;
198
+ /**
199
+ * Replace unsafe CSS class names with email-safe equivalents.
200
+ *
201
+ * @default true
202
+ */
203
+ safe?: boolean | Record<string, string>;
204
+ /**
205
+ * Rewrite longhand CSS to shorthand where possible.
206
+ *
207
+ * For example, `padding: 10px 20px 10px 20px` becomes `padding: 10px 20px`.
208
+ *
209
+ * @default false
210
+ */
211
+ shorthand?: boolean | {
212
+ tags?: string[];
213
+ };
214
+ /**
215
+ * Convert 3-digit HEX colors to 6-digit in `bgcolor` and `color` attributes.
216
+ *
217
+ * Some email clients don't support shorthand HEX like `#fff`.
218
+ *
219
+ * @default true
220
+ */
221
+ sixHex?: boolean;
222
+ /**
223
+ * Remove specific CSS declarations by selector.
224
+ *
225
+ * @example
226
+ * css: {
227
+ * removeDeclarations: {
228
+ * ':root': '*',
229
+ * }
230
+ * }
231
+ */
232
+ removeDeclarations?: Record<string, RemoveValue>;
233
+ /**
234
+ * Glob patterns or paths excluded from Tailwind's `@source` scanner.
235
+ *
236
+ * Tailwind won't generate utilities for classes used in these files.
237
+ * Useful for ignoring AMP variants or any templates whose classes
238
+ * shouldn't end up in the output CSS.
239
+ *
240
+ * @example
241
+ * css: {
242
+ * exclude: ['emails/amp/**'],
243
+ * }
244
+ */
245
+ exclude?: string[];
246
+ }
247
+ interface AttributesConfig {
248
+ /**
249
+ * Add attributes to HTML elements.
250
+ *
251
+ * Set the whole map to `false` to disable auto-add. Set a selector
252
+ * entry to `false` to skip that selector. Set an individual attribute
253
+ * to `false` to skip just that attribute while keeping the rest.
254
+ *
255
+ * @example
256
+ * html: {
257
+ * attributes: {
258
+ * add: {
259
+ * table: { cellpadding: 0, cellspacing: 0, role: 'none' },
260
+ * img: { alt: '' },
261
+ * }
262
+ * }
263
+ * }
264
+ */
265
+ add?: false | Record<string, false | Record<string, false | string | boolean | number>>;
266
+ /**
267
+ * Remove attributes from HTML elements.
268
+ *
269
+ * Empty `style` and `class` attributes are always stripped, regardless
270
+ * of config. Entries added here are appended to those defaults.
271
+ *
272
+ * - String — remove when the attribute's value is empty.
273
+ * - `{ name, value: 'literal' }` — remove when the value matches exactly.
274
+ * - `{ name, value: /regex/ }` — remove when the value matches the regex.
275
+ *
276
+ * @example
277
+ * html: {
278
+ * attributes: {
279
+ * remove: [
280
+ * 'data-foo',
281
+ * { name: 'role', value: 'none' },
282
+ * { name: 'class', value: /^js-/ },
283
+ * ],
284
+ * }
285
+ * }
286
+ */
287
+ remove?: Array<string | {
288
+ name: string;
289
+ value?: string | RegExp;
290
+ }>;
291
+ }
292
+ type EntitiesConfig = boolean | Record<string, string>;
293
+ /**
294
+ * caniemail.com client family slugs. Maintained manually from
295
+ * https://www.caniemail.com/api/data.json — update this list when caniemail
296
+ * adds new clients.
297
+ */
298
+ type CaniemailClient = 'gmail' | 'outlook' | 'yahoo' | 'apple-mail' | 'aol' | 'thunderbird' | 'microsoft' | 'samsung-email' | 'sfr' | 'orange' | 'protonmail' | 'hey' | 'mail-ru' | 'fastmail' | 'laposte' | 't-online-de' | 'free-fr' | 'gmx' | 'web-de' | 'ionos-1and1' | 'rainloop' | 'wp-pl';
299
+ interface ChecksConfig {
300
+ /**
301
+ * Client families to check against. Defaults to the four majors:
302
+ * Gmail, Apple Mail, Outlook, Yahoo. Pass `'all'` to check every client
303
+ * in the caniemail dataset.
304
+ */
305
+ clients?: CaniemailClient[] | 'all';
306
+ /**
307
+ * Filter which severities are reported. Omit to show everything.
308
+ *
309
+ * - `'error'` — only errors (unsupported features, hard lint errors)
310
+ * - `'warning'` — only warnings (partial / unknown support, lint warnings)
311
+ * - `'lint'` — only lint items (both severities, no compat items)
312
+ */
313
+ level?: 'error' | 'warning' | 'lint';
314
+ }
315
+ interface PostcssConfig {
316
+ /**
317
+ * Selector prefixes to strip from compiled CSS.
318
+ *
319
+ * @default [':host', ':lang']
320
+ *
321
+ * @example
322
+ * postcss: {
323
+ * removeSelectors: [':host', ':lang', ':root'],
324
+ * }
325
+ */
326
+ removeSelectors?: string[];
327
+ /**
328
+ * At-rule names to strip from compiled CSS.
329
+ *
330
+ * @default ['layer', 'property']
331
+ *
332
+ * @example
333
+ * postcss: {
334
+ * removeAtRules: ['layer', 'property', 'charset'],
335
+ * }
336
+ */
337
+ removeAtRules?: string[];
338
+ }
339
+ interface HtmlConfig {
340
+ /** Configure HTML attribute transformations. */
341
+ attributes?: AttributesConfig;
342
+ /**
343
+ * Decode HTML entities.
344
+ *
345
+ * Set to `true` to decode all, or pass a map of entities to decode.
346
+ *
347
+ * @default true
348
+ */
349
+ decodeEntities?: EntitiesConfig;
350
+ /**
351
+ * Pretty-print the HTML output.
352
+ *
353
+ * Set to `true` to enable with defaults, or pass options.
354
+ */
355
+ format?: boolean | _$oxfmt.FormatOptions;
356
+ /**
357
+ * Minify the HTML output.
358
+ *
359
+ * Set to `true` to enable with defaults, or pass `html-crush`
360
+ * options to customize.
361
+ *
362
+ * @see https://codsen.com/os/html-crush
363
+ */
364
+ minify?: boolean | Partial<_$html_crush0.Opts>;
365
+ }
366
+ type FilterFunction = (str: string, value: string) => string;
367
+ type FiltersConfig = false | Record<string, FilterFunction>;
368
+ interface MarkdownConfig extends Options$1 {
369
+ /**
370
+ * The shiki theme to use for syntax highlighting in Markdown fenced code blocks.
371
+ *
372
+ * @default 'github-light'
373
+ */
374
+ shikiTheme?: _$shiki.BundledTheme;
375
+ }
376
+ interface VueConfig {
377
+ /** Vue plugins to register on the app instance before rendering. */
378
+ plugins?: Plugin[];
379
+ /** Custom Vue directives to register globally. */
380
+ directives?: Record<string, Directive>;
381
+ /** Properties added to `app.config.globalProperties`, available in all templates. */
382
+ globalProperties?: Record<string, unknown>;
383
+ }
384
+ /**
385
+ * Per-transformer toggle map for `useTransformers`.
386
+ *
387
+ * - `false` skips the listed transformer.
388
+ * - `true` force-enables it for this run (only meaningful for boolean-driven
389
+ * transformers: inlineCss, purgeCss, prettify, minify, shorthandCss,
390
+ * sixHex, safeClassNames, entities). Layers on the matching
391
+ * `css.*` / `html.*` config slice.
392
+ * - missing keys keep their default behavior.
393
+ *
394
+ * Data-driven transformers (filters, baseURL, urlQuery, addAttributes,
395
+ * removeAttributes, replaceStrings, attributeToStyle) require actual
396
+ * config values — a bare `true` is a no-op for them.
397
+ *
398
+ * Transformers without a toggle (Tailwind, MSO placeholder resolution,
399
+ * column width math, link inlining) always run; they're driven by markup
400
+ * or framework state, not user opt-in.
401
+ */
402
+ interface TransformerToggles {
403
+ safeClassNames?: boolean;
404
+ attributeToStyle?: boolean;
405
+ inlineCss?: boolean;
406
+ removeAttributes?: boolean;
407
+ shorthandCss?: boolean;
408
+ sixHex?: boolean;
409
+ addAttributes?: boolean;
410
+ filters?: boolean;
411
+ baseURL?: boolean;
412
+ urlQuery?: boolean;
413
+ purgeCss?: boolean;
414
+ entities?: boolean;
415
+ replaceStrings?: boolean;
416
+ prettify?: boolean;
417
+ minify?: boolean;
418
+ }
419
+ /**
420
+ * Plaintext generation options.
421
+ *
422
+ * Control where plaintext files are written, what extension they use,
423
+ * and the options forwarded to `string-strip-html`.
424
+ */
425
+ interface PlaintextConfig {
426
+ /**
427
+ * Output directory for plaintext files. When omitted, files are written
428
+ * next to their HTML counterpart in `build.output.path`.
429
+ */
430
+ destination?: string;
431
+ /**
432
+ * File extension for plaintext files (without the leading dot).
433
+ *
434
+ * @default 'txt'
435
+ */
436
+ extension?: string;
437
+ /**
438
+ * Options forwarded to `string-strip-html`.
439
+ *
440
+ * @see https://codsen.com/os/string-strip-html
441
+ */
442
+ options?: Partial<_$string_strip_html0.Opts>;
443
+ }
444
+ /**
445
+ * Source directory entry for component auto-import.
446
+ *
447
+ * String → folder name becomes a namespace prefix automatically
448
+ * (e.g. `widgets/Button.vue` → `<WidgetsButton />`).
449
+ *
450
+ * Object → custom prefix overrides the folder-derived name. With
451
+ * `pathPrefix: false`, intermediate subfolders are dropped from the
452
+ * resolved name (useful for icon sets organized by category).
453
+ */
454
+ type ComponentSource = string | {
455
+ /** Directory to scan, resolved relative to `cwd`. */path: string;
456
+ /**
457
+ * Custom prefix prepended to every resolved component name.
458
+ * Empty string disables the auto folder-name prefix.
459
+ */
460
+ prefix?: string;
461
+ /**
462
+ * Include intermediate subfolder names in the resolved component
463
+ * name. Defaults to `true`.
464
+ *
465
+ * @example
466
+ * // pathPrefix: true → icons/social/twitter.vue → <IconSocialTwitter />
467
+ * // pathPrefix: false → icons/social/twitter.vue → <IconTwitter />
468
+ */
469
+ pathPrefix?: boolean;
470
+ };
471
+ interface MaizzleConfig {
472
+ /**
473
+ * Root directory for the Maizzle email project.
474
+ *
475
+ * When set, relative paths for `content`, `static.source`,
476
+ * and `css.base` are all resolved relative to this directory.
477
+ *
478
+ * Defaults to `process.cwd()`.
479
+ *
480
+ * @example
481
+ * maizzle({
482
+ * root: 'resources/js/emails',
483
+ * content: ['./**\/*.vue'],
484
+ * })
485
+ */
486
+ root?: string;
487
+ /** Options for Markdown template support, extending `unplugin-vue-markdown`. */
488
+ markdown?: MarkdownConfig;
489
+ /**
490
+ * Glob patterns for email template files to process.
491
+ *
492
+ * Resolved relative to `root`.
493
+ *
494
+ * @default ['emails/**\/*.{vue,md}']
495
+ */
496
+ content?: string[];
497
+ /** Output configuration for built email templates. */
498
+ output?: {
499
+ /**
500
+ * Directory to write compiled HTML files to.
501
+ *
502
+ * @default 'dist'
503
+ */
504
+ path?: string;
505
+ /**
506
+ * File extension for compiled templates.
507
+ *
508
+ * @default 'html'
509
+ *
510
+ * @example
511
+ * output: {
512
+ * extension: 'blade.php',
513
+ * }
514
+ */
515
+ extension?: string;
516
+ };
517
+ /** Static file copying configuration. */
518
+ static?: {
519
+ /**
520
+ * Glob patterns for static files to copy to the output directory.
521
+ *
522
+ * @default ['public/**\/*.*']
523
+ */
524
+ source?: string[];
525
+ /**
526
+ * Subdirectory in the output folder where static files are placed.
527
+ *
528
+ * @default 'public'
529
+ */
530
+ destination?: string;
531
+ };
532
+ /** Component auto-import configuration. */
533
+ components?: {
534
+ /**
535
+ * Additional directories to scan for auto-imported Vue components.
536
+ *
537
+ * Resolved relative to `cwd` (not `root`), so paths outside the
538
+ * email root directory work as expected.
539
+ *
540
+ * String entries use the folder name as a namespace prefix
541
+ * automatically (e.g. `widgets/Button.vue` → `<WidgetsButton />`).
542
+ * Object entries override that with a custom prefix.
543
+ *
544
+ * @example
545
+ * components: {
546
+ * source: [
547
+ * 'resources/js/components/email',
548
+ * { path: 'src/widgets', prefix: 'W' },
549
+ * { path: 'src/icons', prefix: 'Icon', pathPrefix: false },
550
+ * ],
551
+ * }
552
+ */
553
+ source?: ComponentSource | ComponentSource[];
554
+ };
555
+ /** Dev server configuration. */
556
+ server?: {
557
+ /**
558
+ * Port for the dev server.
559
+ *
560
+ * @default 3000
561
+ */
562
+ port?: number;
563
+ /**
564
+ * Additional file paths to watch for changes.
565
+ *
566
+ * @default []
567
+ *
568
+ * @example
569
+ * server: {
570
+ * watch: ['./tailwind.config.ts'],
571
+ * }
572
+ */
573
+ watch?: string[];
574
+ /**
575
+ * Email sending configuration for the "Send test" feature in the dev UI.
576
+ *
577
+ * When not configured, falls back to Ethereal (free fake SMTP — emails
578
+ * are captured and viewable via a URL, never actually delivered).
579
+ *
580
+ * @example
581
+ * server: {
582
+ * email: {
583
+ * to: ['test@example.com'],
584
+ * from: 'dev@maizzle.test',
585
+ * transport: {
586
+ * host: 'smtp.mailtrap.io',
587
+ * port: 587,
588
+ * auth: { user: '...', pass: '...' },
589
+ * },
590
+ * },
591
+ * }
592
+ */
593
+ email?: {
594
+ /** Default recipient(s). */to?: string | string[]; /** Sender address. @default 'Maizzle <maizzle@ethereal.email>' */
595
+ from?: string; /** Default subject line. */
596
+ subject?: string; /** Nodemailer transport options (SMTP, SES, etc.). Omit to use Ethereal. */
597
+ transport?: Record<string, unknown>;
598
+ };
599
+ /**
600
+ * Configure or disable the Checks tab in the dev UI.
601
+ *
602
+ * Set to `false` to disable checks entirely (the tab is hidden).
603
+ *
604
+ * @example
605
+ * server: {
606
+ * checks: {
607
+ * clients: ['gmail', 'outlook', 'apple-mail'],
608
+ * level: 'error',
609
+ * }
610
+ * }
611
+ */
612
+ checks?: false | ChecksConfig;
613
+ };
614
+ /** Tailwind CSS and email CSS optimization settings. */
615
+ css?: CssConfig;
616
+ /**
617
+ * Generate a plaintext version of the email.
618
+ *
619
+ * Set to `true` to enable with defaults, or pass an object to configure
620
+ * destination directory, file extension, and `string-strip-html` options.
621
+ *
622
+ * @default false
623
+ * @example
624
+ * plaintext: {
625
+ * destination: 'build_production/plaintext',
626
+ * extension: 'txt',
627
+ * options: { ignoreTags: ['br'] },
628
+ * }
629
+ */
630
+ plaintext?: boolean | PlaintextConfig;
631
+ /** PostCSS processing options. */
632
+ postcss?: PostcssConfig;
633
+ /**
634
+ * Enable the transformer pipeline (CSS inlining, purging, shorthand, etc).
635
+ *
636
+ * Pass `false` to skip the entire pipeline. Pass an object to opt out of
637
+ * specific transformers while keeping the rest active — only keys set
638
+ * to `false` are skipped.
639
+ *
640
+ * @default true
641
+ * @example
642
+ * useTransformers: { inlineCss: false, minify: false }
643
+ */
644
+ useTransformers?: boolean | TransformerToggles;
645
+ /**
646
+ * Replace strings in the final HTML output.
647
+ *
648
+ * @example
649
+ * replaceStrings: {
650
+ * '{{ year }}': new Date().getFullYear().toString(),
651
+ * }
652
+ */
653
+ replaceStrings?: Record<string, string>;
654
+ /**
655
+ * Content filters that transform text inside HTML elements using custom attributes.
656
+ *
657
+ * Set to `false` to disable all filters. Pass an object to add custom filters
658
+ * (merged with built-in defaults).
659
+ *
660
+ * @example
661
+ * filters: {
662
+ * uppercase: str => str.toUpperCase(),
663
+ * }
664
+ */
665
+ filters?: FiltersConfig;
666
+ /** URL transformation settings (base URL, query string appending). */
667
+ url?: UrlConfig;
668
+ /** HTML post-processing settings (attributes, formatting, minification). */
669
+ html?: HtmlConfig;
670
+ /**
671
+ * Vite configuration options passed to the internal Vite SSR server.
672
+ *
673
+ * Use this to add custom Vite plugins or other Vite options.
674
+ * If a `vite.config.{ts,js}` file exists in the project root, it takes
675
+ * precedence and this option is used as a fallback.
676
+ *
677
+ * @example
678
+ * vite: {
679
+ * plugins: [myPlugin()],
680
+ * }
681
+ */
682
+ vite?: InlineConfig;
683
+ /**
684
+ * Vue app customization options.
685
+ *
686
+ * Register plugins, directives, or global properties on the
687
+ * internal Vue app instance used for SSR rendering.
688
+ *
689
+ * @example
690
+ * vue: {
691
+ * plugins: [createI18n({ locale: 'en', messages })],
692
+ * directives: { focus: vFocus },
693
+ * globalProperties: { $format: dateFormat },
694
+ * }
695
+ */
696
+ vue?: VueConfig;
697
+ /** Called before any templates are processed. */
698
+ beforeCreate?: (params: {
699
+ config: MaizzleConfig;
700
+ }) => void | Promise<void>;
701
+ /** Called before each template is rendered. Return a string to replace the template source. */
702
+ beforeRender?: (params: {
703
+ config: MaizzleConfig;
704
+ template: string;
705
+ }) => string | void | Promise<string | void>;
706
+ /** Called after each template is rendered but before transformers run. Return a string to replace the output HTML. */
707
+ afterRender?: (params: {
708
+ config: MaizzleConfig;
709
+ template: string;
710
+ html: string;
711
+ }) => string | void | Promise<string | void>;
712
+ /** Called after transformers have run on each template. Return a string to replace the output HTML. */
713
+ afterTransform?: (params: {
714
+ config: MaizzleConfig;
715
+ template: string;
716
+ html: string;
717
+ }) => string | void | Promise<string | void>;
718
+ /** Called after all templates have been built. */
719
+ afterBuild?: (params: {
720
+ files: string[];
721
+ config: MaizzleConfig;
722
+ }) => void | Promise<void>;
723
+ [key: string]: any;
724
+ }
725
+ //#endregion
726
+ export { AttributesConfig, CaniemailClient, ChecksConfig, ComponentSource, CssConfig, EntitiesConfig, FilterFunction, FiltersConfig, HtmlConfig, MaizzleConfig, MarkdownConfig, PlaintextConfig, PostcssConfig, TransformerToggles, UrlConfig, UrlQuery, UrlQueryOptions, VueConfig };
727
+ //# sourceMappingURL=config.d.ts.map