@maizzle/framework 6.0.0-rc.0 → 6.0.0-rc.10

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 (341) hide show
  1. package/bin/maizzle.mjs +1 -1
  2. package/dist/_virtual/_rolldown/runtime.mjs +32 -0
  3. package/dist/build.mjs +29 -9
  4. package/dist/build.mjs.map +1 -1
  5. package/dist/components/Body.vue +111 -0
  6. package/dist/components/Button.vue +68 -14
  7. package/dist/components/CodeBlock.vue +68 -0
  8. package/dist/components/CodeInline.vue +49 -0
  9. package/dist/components/Column.vue +86 -0
  10. package/dist/components/Container.vue +48 -0
  11. package/dist/components/Divider.vue +28 -0
  12. package/dist/components/Head.vue +30 -0
  13. package/dist/components/Heading.vue +28 -0
  14. package/dist/components/Html.vue +104 -0
  15. package/dist/components/Image.vue +70 -0
  16. package/dist/components/Layout.vue +93 -0
  17. package/dist/components/Link.vue +26 -0
  18. package/dist/components/Markdown.vue +89 -0
  19. package/dist/components/Outlook.vue +36 -0
  20. package/dist/components/Overlap.vue +80 -0
  21. package/dist/components/Preheader.vue +20 -0
  22. package/dist/components/Row.vue +91 -0
  23. package/dist/components/Section.vue +83 -0
  24. package/dist/components/Spacer.vue +50 -7
  25. package/dist/components/Text.vue +29 -0
  26. package/dist/components/Vml.vue +165 -13
  27. package/dist/composables/renderContext.d.mts +5 -0
  28. package/dist/composables/renderContext.d.mts.map +1 -1
  29. package/dist/composables/renderContext.mjs.map +1 -1
  30. package/dist/composables/usePreviewText.d.mts +24 -0
  31. package/dist/composables/usePreviewText.d.mts.map +1 -0
  32. package/dist/composables/usePreviewText.mjs +29 -0
  33. package/dist/composables/usePreviewText.mjs.map +1 -0
  34. package/dist/config/index.mjs +25 -1
  35. package/dist/config/index.mjs.map +1 -1
  36. package/dist/index.d.mts +4 -2
  37. package/dist/index.mjs +3 -1
  38. package/dist/node_modules/picomatch/index.mjs +13 -0
  39. package/dist/node_modules/picomatch/index.mjs.map +1 -0
  40. package/dist/node_modules/picomatch/lib/constants.mjs +174 -0
  41. package/dist/node_modules/picomatch/lib/constants.mjs.map +1 -0
  42. package/dist/node_modules/picomatch/lib/parse.mjs +1067 -0
  43. package/dist/node_modules/picomatch/lib/parse.mjs.map +1 -0
  44. package/dist/node_modules/picomatch/lib/picomatch.mjs +304 -0
  45. package/dist/node_modules/picomatch/lib/picomatch.mjs.map +1 -0
  46. package/dist/node_modules/picomatch/lib/scan.mjs +296 -0
  47. package/dist/node_modules/picomatch/lib/scan.mjs.map +1 -0
  48. package/dist/node_modules/picomatch/lib/utils.mjs +53 -0
  49. package/dist/node_modules/picomatch/lib/utils.mjs.map +1 -0
  50. package/dist/plugin.d.mts.map +1 -1
  51. package/dist/plugin.mjs +24 -7
  52. package/dist/plugin.mjs.map +1 -1
  53. package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
  54. package/dist/plugins/postcss/tailwindCleanup.mjs +44 -13
  55. package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
  56. package/dist/render/createRenderer.d.mts +10 -3
  57. package/dist/render/createRenderer.d.mts.map +1 -1
  58. package/dist/render/createRenderer.mjs +147 -10
  59. package/dist/render/createRenderer.mjs.map +1 -1
  60. package/dist/render/index.mjs +9 -3
  61. package/dist/render/index.mjs.map +1 -1
  62. package/dist/serve.d.mts.map +1 -1
  63. package/dist/serve.mjs +159 -63
  64. package/dist/serve.mjs.map +1 -1
  65. package/dist/server/compatibility.d.mts +1 -2
  66. package/dist/server/compatibility.d.mts.map +1 -1
  67. package/dist/server/compatibility.mjs +30 -16
  68. package/dist/server/compatibility.mjs.map +1 -1
  69. package/dist/server/email.d.mts +17 -0
  70. package/dist/server/email.d.mts.map +1 -0
  71. package/dist/server/email.mjs +41 -0
  72. package/dist/server/email.mjs.map +1 -0
  73. package/dist/server/linter.d.mts +1 -2
  74. package/dist/server/linter.d.mts.map +1 -1
  75. package/dist/server/linter.mjs +60 -71
  76. package/dist/server/linter.mjs.map +1 -1
  77. package/dist/server/ui/App.vue +205 -69
  78. package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
  79. package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
  80. package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
  81. package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
  82. package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
  83. package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
  84. package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
  85. package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
  86. package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
  87. package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
  88. package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
  89. package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
  90. package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
  91. package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
  92. package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
  93. package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
  94. package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
  95. package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
  96. package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
  97. package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
  98. package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
  99. package/dist/server/ui/components/ui/toggle/index.ts +3 -3
  100. package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
  101. package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
  102. package/dist/server/ui/main.css +20 -20
  103. package/dist/server/ui/pages/Home.vue +12 -5
  104. package/dist/server/ui/pages/Preview.vue +506 -216
  105. package/dist/transformers/entities.d.mts.map +1 -1
  106. package/dist/transformers/entities.mjs +3 -0
  107. package/dist/transformers/entities.mjs.map +1 -1
  108. package/dist/transformers/filters/defaults.d.mts +6 -0
  109. package/dist/transformers/filters/defaults.d.mts.map +1 -0
  110. package/dist/transformers/filters/defaults.mjs +78 -0
  111. package/dist/transformers/filters/defaults.mjs.map +1 -0
  112. package/dist/transformers/filters/index.d.mts +22 -0
  113. package/dist/transformers/filters/index.d.mts.map +1 -0
  114. package/dist/transformers/filters/index.mjs +67 -0
  115. package/dist/transformers/filters/index.mjs.map +1 -0
  116. package/dist/transformers/index.d.mts +11 -9
  117. package/dist/transformers/index.d.mts.map +1 -1
  118. package/dist/transformers/index.mjs +19 -11
  119. package/dist/transformers/index.mjs.map +1 -1
  120. package/dist/transformers/inlineCSS.d.mts +1 -14
  121. package/dist/transformers/inlineCSS.d.mts.map +1 -1
  122. package/dist/transformers/inlineCSS.mjs +25 -34
  123. package/dist/transformers/inlineCSS.mjs.map +1 -1
  124. package/dist/transformers/purgeCSS.d.mts.map +1 -1
  125. package/dist/transformers/purgeCSS.mjs +67 -1
  126. package/dist/transformers/purgeCSS.mjs.map +1 -1
  127. package/dist/transformers/sixHex.d.mts +16 -0
  128. package/dist/transformers/sixHex.d.mts.map +1 -0
  129. package/dist/transformers/sixHex.mjs +30 -0
  130. package/dist/transformers/sixHex.mjs.map +1 -0
  131. package/dist/transformers/tailwindcss.d.mts +6 -2
  132. package/dist/transformers/tailwindcss.d.mts.map +1 -1
  133. package/dist/transformers/tailwindcss.mjs +52 -28
  134. package/dist/transformers/tailwindcss.mjs.map +1 -1
  135. package/dist/types/config.d.mts +459 -17
  136. package/dist/types/config.d.mts.map +1 -1
  137. package/dist/types/index.d.mts +2 -2
  138. package/dist/utils/ast/serializer.d.mts +3 -2
  139. package/dist/utils/ast/serializer.d.mts.map +1 -1
  140. package/dist/utils/ast/serializer.mjs +24 -0
  141. package/dist/utils/ast/serializer.mjs.map +1 -1
  142. package/dist/utils/detect.d.mts +5 -0
  143. package/dist/utils/detect.d.mts.map +1 -0
  144. package/dist/utils/detect.mjs +11 -0
  145. package/dist/utils/detect.mjs.map +1 -0
  146. package/node_modules/@clack/core/CHANGELOG.md +87 -4
  147. package/node_modules/@clack/core/README.md +1 -1
  148. package/node_modules/@clack/core/dist/index.d.mts +186 -48
  149. package/node_modules/@clack/core/dist/index.mjs +10 -14
  150. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  151. package/node_modules/@clack/core/package.json +7 -9
  152. package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
  153. package/node_modules/@clack/prompts/README.md +66 -3
  154. package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
  155. package/node_modules/@clack/prompts/dist/index.mjs +134 -84
  156. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  157. package/node_modules/@clack/prompts/package.json +14 -10
  158. package/node_modules/citty/LICENSE +0 -15
  159. package/node_modules/citty/README.md +166 -69
  160. package/node_modules/citty/dist/index.d.mts +88 -56
  161. package/node_modules/citty/dist/index.mjs +399 -437
  162. package/node_modules/citty/package.json +28 -35
  163. package/node_modules/giget/README.md +59 -11
  164. package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
  165. package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
  166. package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
  167. package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
  168. package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
  169. package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
  170. package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
  171. package/node_modules/giget/dist/cli.d.mts +1 -0
  172. package/node_modules/giget/dist/cli.mjs +89 -111
  173. package/node_modules/giget/dist/index.d.mts +46 -35
  174. package/node_modules/giget/dist/index.mjs +2 -22
  175. package/node_modules/giget/package.json +32 -45
  176. package/node_modules/maizzle/README.md +140 -0
  177. package/node_modules/maizzle/bin/maizzle.mjs +5 -0
  178. package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
  179. package/node_modules/maizzle/dist/commands/new.mjs +278 -0
  180. package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
  181. package/node_modules/maizzle/dist/index.mjs +44 -0
  182. package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
  183. package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
  184. package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
  185. package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
  186. package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
  187. package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
  188. package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
  189. package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
  190. package/node_modules/{@maizzle/cli → maizzle}/package.json +13 -11
  191. package/node_modules/tinyexec/README.md +49 -3
  192. package/node_modules/tinyexec/dist/main.d.mts +25 -14
  193. package/node_modules/tinyexec/dist/main.mjs +148 -100
  194. package/node_modules/tinyexec/package.json +9 -8
  195. package/package.json +9 -4
  196. package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
  197. package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
  198. package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
  199. package/dist/server/ui/components/ui/resizable/index.ts +0 -3
  200. package/node_modules/@clack/core/dist/index.cjs +0 -15
  201. package/node_modules/@clack/core/dist/index.cjs.map +0 -1
  202. package/node_modules/@clack/core/dist/index.d.cts +0 -211
  203. package/node_modules/@clack/core/dist/index.d.ts +0 -211
  204. package/node_modules/@clack/prompts/dist/index.cjs +0 -87
  205. package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
  206. package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
  207. package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
  208. package/node_modules/@maizzle/cli/README.md +0 -58
  209. package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
  210. package/node_modules/citty/dist/index.cjs +0 -475
  211. package/node_modules/citty/dist/index.d.cts +0 -80
  212. package/node_modules/citty/dist/index.d.ts +0 -80
  213. package/node_modules/consola/LICENSE +0 -47
  214. package/node_modules/consola/README.md +0 -352
  215. package/node_modules/consola/basic.d.ts +0 -1
  216. package/node_modules/consola/browser.d.ts +0 -1
  217. package/node_modules/consola/core.d.ts +0 -1
  218. package/node_modules/consola/dist/basic.cjs +0 -32
  219. package/node_modules/consola/dist/basic.d.cts +0 -23
  220. package/node_modules/consola/dist/basic.d.mts +0 -21
  221. package/node_modules/consola/dist/basic.d.ts +0 -23
  222. package/node_modules/consola/dist/basic.mjs +0 -24
  223. package/node_modules/consola/dist/browser.cjs +0 -84
  224. package/node_modules/consola/dist/browser.d.cts +0 -23
  225. package/node_modules/consola/dist/browser.d.mts +0 -21
  226. package/node_modules/consola/dist/browser.d.ts +0 -23
  227. package/node_modules/consola/dist/browser.mjs +0 -76
  228. package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  229. package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  230. package/node_modules/consola/dist/core.cjs +0 -517
  231. package/node_modules/consola/dist/core.d.cts +0 -459
  232. package/node_modules/consola/dist/core.d.mts +0 -459
  233. package/node_modules/consola/dist/core.d.ts +0 -459
  234. package/node_modules/consola/dist/core.mjs +0 -512
  235. package/node_modules/consola/dist/index.cjs +0 -663
  236. package/node_modules/consola/dist/index.d.cts +0 -24
  237. package/node_modules/consola/dist/index.d.mts +0 -22
  238. package/node_modules/consola/dist/index.d.ts +0 -24
  239. package/node_modules/consola/dist/index.mjs +0 -651
  240. package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  241. package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  242. package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  243. package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  244. package/node_modules/consola/dist/utils.cjs +0 -64
  245. package/node_modules/consola/dist/utils.d.cts +0 -286
  246. package/node_modules/consola/dist/utils.d.mts +0 -286
  247. package/node_modules/consola/dist/utils.d.ts +0 -286
  248. package/node_modules/consola/dist/utils.mjs +0 -54
  249. package/node_modules/consola/lib/index.cjs +0 -10
  250. package/node_modules/consola/package.json +0 -136
  251. package/node_modules/consola/utils.d.ts +0 -1
  252. package/node_modules/create-maizzle/README.md +0 -86
  253. package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
  254. package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
  255. package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
  256. package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
  257. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
  258. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
  259. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
  260. package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
  261. package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
  262. package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
  263. package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
  264. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
  265. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
  266. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
  267. package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
  268. package/node_modules/create-maizzle/package.json +0 -47
  269. package/node_modules/create-maizzle/src/index.js +0 -242
  270. package/node_modules/defu/LICENSE +0 -21
  271. package/node_modules/defu/README.md +0 -171
  272. package/node_modules/defu/dist/defu.cjs +0 -77
  273. package/node_modules/defu/dist/defu.d.cts +0 -31
  274. package/node_modules/defu/dist/defu.d.mts +0 -29
  275. package/node_modules/defu/dist/defu.d.ts +0 -31
  276. package/node_modules/defu/dist/defu.mjs +0 -69
  277. package/node_modules/defu/lib/defu.cjs +0 -10
  278. package/node_modules/defu/lib/defu.d.cts +0 -12
  279. package/node_modules/defu/package.json +0 -48
  280. package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
  281. package/node_modules/node-fetch-native/LICENSE +0 -114
  282. package/node_modules/node-fetch-native/README.md +0 -225
  283. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
  284. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
  285. package/node_modules/node-fetch-native/dist/index.cjs +0 -1
  286. package/node_modules/node-fetch-native/dist/index.mjs +0 -1
  287. package/node_modules/node-fetch-native/dist/native.cjs +0 -1
  288. package/node_modules/node-fetch-native/dist/native.mjs +0 -1
  289. package/node_modules/node-fetch-native/dist/node.cjs +0 -19
  290. package/node_modules/node-fetch-native/dist/node.mjs +0 -19
  291. package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
  292. package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
  293. package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
  294. package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
  295. package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
  296. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
  297. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
  298. package/node_modules/node-fetch-native/index.d.ts +0 -1
  299. package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
  300. package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
  301. package/node_modules/node-fetch-native/lib/index.cjs +0 -11
  302. package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
  303. package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
  304. package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
  305. package/node_modules/node-fetch-native/lib/native.cjs +0 -11
  306. package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
  307. package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
  308. package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
  309. package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
  310. package/node_modules/node-fetch-native/node.d.ts +0 -1
  311. package/node_modules/node-fetch-native/package.json +0 -138
  312. package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
  313. package/node_modules/node-fetch-native/proxy.d.ts +0 -1
  314. package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
  315. package/node_modules/nypm/node_modules/citty/README.md +0 -231
  316. package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
  317. package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
  318. package/node_modules/nypm/node_modules/citty/package.json +0 -42
  319. /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
  320. /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
  321. /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
  322. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
  323. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
  324. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
  325. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
  326. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
  327. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
  328. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
  329. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
  330. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
  331. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
  332. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
  333. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
  334. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
  335. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
  336. /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
  337. /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
  338. /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
  339. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
  340. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
  341. /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
@@ -1,65 +1,280 @@
1
1
  import { RemoveValue } from "../plugins/postcss/removeDeclarations.mjs";
2
+ import { Directive, Plugin } from "vue";
3
+ import { Options } from "juice";
2
4
  import * as oxfmt from "oxfmt";
3
- import * as unplugin_vue_markdown_types0 from "unplugin-vue-markdown/types";
5
+ import { InlineConfig } from "vite";
6
+ import * as shiki from "shiki";
7
+ import { Options as Options$1 } from "unplugin-vue-markdown/types";
4
8
 
5
9
  //#region src/types/config.d.ts
6
10
  interface UrlQueryOptions {
11
+ /**
12
+ * CSS selectors for elements to process.
13
+ *
14
+ * @default ['a']
15
+ */
7
16
  tags?: string[];
17
+ /**
18
+ * HTML attributes containing URLs to append query params to.
19
+ *
20
+ * @default ['src', 'href', 'poster', 'srcset', 'background']
21
+ */
8
22
  attributes?: string[];
23
+ /**
24
+ * When `true`, only appends query params to absolute URLs.
25
+ *
26
+ * @default true
27
+ */
9
28
  strict?: boolean;
29
+ /**
30
+ * Options forwarded to the `query-string` library for controlling serialization.
31
+ *
32
+ * @default { encode: false }
33
+ */
10
34
  qs?: Record<string, unknown>;
11
35
  }
12
36
  type UrlQuery = Record<string, unknown> & {
13
37
  _options?: UrlQueryOptions;
14
38
  };
15
39
  interface UrlConfig {
40
+ /**
41
+ * Append query parameters to URLs in your HTML.
42
+ *
43
+ * @example
44
+ * url: {
45
+ * query: {
46
+ * utm_source: 'maizzle',
47
+ * utm_medium: 'email',
48
+ * }
49
+ * }
50
+ */
16
51
  query?: UrlQuery;
52
+ /**
53
+ * Prepend a base URL to relative paths.
54
+ *
55
+ * Pass a string to prepend to all tags, or an object for fine-grained control.
56
+ *
57
+ * @example
58
+ * url: {
59
+ * base: 'https://cdn.example.com/emails/',
60
+ * }
61
+ */
17
62
  base?: string | {
18
- url?: string;
19
- tags?: string[] | Record<string, Record<string, string | boolean>>;
20
- attributes?: Record<string, string>;
21
- styleTag?: boolean;
63
+ /** The base URL to prepend. */url?: string; /** Tags or tag-attribute map to process. */
64
+ tags?: string[] | Record<string, Record<string, string | boolean>>; /** Attributes to process. */
65
+ attributes?: Record<string, string>; /** Also apply to URLs in `<style>` tags. */
66
+ styleTag?: boolean; /** Also apply to URLs in inline `style` attributes. */
22
67
  inlineCss?: boolean;
23
68
  };
24
69
  }
25
70
  interface CssConfig {
71
+ /**
72
+ * Base directory for Tailwind CSS `@source` resolution.
73
+ *
74
+ * Automatically set to `root` when `root` is configured.
75
+ */
26
76
  base?: string;
77
+ /**
78
+ * Remove unused CSS.
79
+ *
80
+ * Set to `true` to enable with defaults, or pass an options object.
81
+ *
82
+ * @default false
83
+ */
27
84
  purge?: boolean | Record<string, unknown>;
28
- inline?: boolean | {
85
+ /**
86
+ * Inline CSS from `<style>` tags into matching HTML elements.
87
+ *
88
+ * Set to `true` to enable with defaults, or pass an options object for fine-grained control.
89
+ *
90
+ * @example
91
+ * css: {
92
+ * inline: {
93
+ * removeStyleTags: true,
94
+ * applyWidthAttributes: true,
95
+ * }
96
+ * }
97
+ */
98
+ inline?: boolean | Options & {
99
+ /**
100
+ * Convert HTML attributes like `width`, `height`, `bgcolor`, and `valign`
101
+ * to inline CSS styles. Set to `true` for all, or pass an array of attribute names.
102
+ *
103
+ * @default false
104
+ */
29
105
  attributeToStyle?: boolean | string[];
30
- removeStyleTags?: boolean;
31
- removeInlinedSelectors?: boolean;
106
+ /**
107
+ * Convert `0px`, `0em` etc. to `0` in inline styles.
108
+ *
109
+ * @default true
110
+ */
32
111
  preferUnitlessValues?: boolean;
112
+ /**
113
+ * CSS selectors to preserve in `<style>` tags, even after inlining.
114
+ * Mapped to Juice's `preservedSelectors` option.
115
+ *
116
+ * @default []
117
+ */
33
118
  safelist?: string[];
119
+ /**
120
+ * Duplicate CSS properties to HTML attributes.
121
+ * Mapped to Juice's static `styleToAttribute` property.
122
+ *
123
+ * @default {}
124
+ *
125
+ * @example
126
+ * styleToAttribute: {
127
+ * 'background-color': 'bgcolor',
128
+ * }
129
+ */
34
130
  styleToAttribute?: Record<string, string>;
35
- applyWidthAttributes?: boolean;
36
- applyHeightAttributes?: boolean;
131
+ /**
132
+ * Elements that can receive `width` HTML attributes.
133
+ * Mapped to Juice's static `widthElements` property.
134
+ *
135
+ * @default ['img', 'video']
136
+ */
37
137
  widthElements?: string[];
138
+ /**
139
+ * Elements that can receive `height` HTML attributes.
140
+ * Mapped to Juice's static `heightElements` property.
141
+ *
142
+ * @default ['img', 'video']
143
+ */
38
144
  heightElements?: string[];
145
+ /**
146
+ * CSS properties to exclude from inlining.
147
+ * Mapped to Juice's static `excludedProperties` property.
148
+ *
149
+ * @default []
150
+ */
39
151
  excludedProperties?: string[];
152
+ /**
153
+ * Template language code blocks to preserve during inlining.
154
+ * Mapped to Juice's static `codeBlocks` property.
155
+ *
156
+ * @default { EJS: { start: '<%', end: '%>' }, HBS: { start: '\{\{', end: '}}' } }
157
+ */
40
158
  codeBlocks?: Record<string, {
41
159
  start: string;
42
160
  end: string;
43
161
  }>;
162
+ /**
163
+ * Additional CSS string to inline alongside `<style>` tag contents.
164
+ * Mapped to Juice's `extraCss` option.
165
+ */
44
166
  customCSS?: string;
45
- [key: string]: unknown;
46
167
  };
168
+ /**
169
+ * Merge duplicate `@media` queries and sort them.
170
+ *
171
+ * Enabled by default. Set to `false` to disable, or pass an object to control sort order.
172
+ *
173
+ * @default true
174
+ *
175
+ * @example
176
+ * css: {
177
+ * media: { sort: 'desktop-first' },
178
+ * }
179
+ */
47
180
  media?: boolean | {
181
+ /**
182
+ * Sort order for media queries.
183
+ *
184
+ * @default 'mobile-first'
185
+ */
48
186
  sort?: 'mobile-first' | 'desktop-first' | ((a: string, b: string) => number);
49
187
  };
188
+ /**
189
+ * Convert unitless CSS values to their unitless equivalents.
190
+ *
191
+ * For example, `line-height: 24px` with a `16px` font becomes `line-height: 1.5`.
192
+ *
193
+ * @default true
194
+ */
50
195
  preferUnitless?: boolean;
196
+ /**
197
+ * Resolve CSS `calc()` expressions to static values where possible.
198
+ *
199
+ * @default true
200
+ */
51
201
  resolveCalc?: boolean;
202
+ /**
203
+ * Resolve CSS custom properties (`var()`) to their computed values.
204
+ *
205
+ * @default true
206
+ */
52
207
  resolveProps?: boolean;
208
+ /**
209
+ * Replace unsafe CSS class names with email-safe equivalents.
210
+ *
211
+ * @default true
212
+ */
53
213
  safe?: boolean | Record<string, string>;
54
- sixHex?: boolean;
214
+ /**
215
+ * Rewrite longhand CSS to shorthand where possible.
216
+ *
217
+ * For example, `padding: 10px 20px 10px 20px` becomes `padding: 10px 20px`.
218
+ *
219
+ * @default false
220
+ */
55
221
  shorthand?: boolean | {
56
222
  tags?: string[];
57
223
  };
224
+ /**
225
+ * Convert 3-digit HEX colors to 6-digit in `bgcolor` and `color` attributes.
226
+ *
227
+ * Some email clients don't support shorthand HEX like `#fff`.
228
+ *
229
+ * @default true
230
+ */
231
+ sixHex?: boolean;
232
+ /**
233
+ * Remove specific CSS declarations by selector.
234
+ *
235
+ * @example
236
+ * css: {
237
+ * removeDeclarations: {
238
+ * ':root': '*',
239
+ * }
240
+ * }
241
+ */
58
242
  removeDeclarations?: Record<string, RemoveValue>;
243
+ /**
244
+ * File paths to exclude from CSS processing.
245
+ *
246
+ * @example
247
+ * css: {
248
+ * exclude: ['emails/amp/**'],
249
+ * }
250
+ */
59
251
  exclude?: string[];
60
252
  }
61
253
  interface AttributesConfig {
254
+ /**
255
+ * Add attributes to HTML elements.
256
+ *
257
+ * @example
258
+ * html: {
259
+ * attributes: {
260
+ * add: {
261
+ * table: { cellpadding: 0, cellspacing: 0, role: 'none' },
262
+ * img: { alt: '' },
263
+ * }
264
+ * }
265
+ * }
266
+ */
62
267
  add?: false | Record<string, Record<string, string | boolean | number>>;
268
+ /**
269
+ * Remove attributes from HTML elements by name or name-value pair.
270
+ *
271
+ * @example
272
+ * html: {
273
+ * attributes: {
274
+ * remove: ['data-test', { name: 'class', value: /^js-/ }],
275
+ * }
276
+ * }
277
+ */
63
278
  remove?: Array<string | {
64
279
  name: string;
65
280
  value?: string | RegExp;
@@ -67,57 +282,284 @@ interface AttributesConfig {
67
282
  }
68
283
  type EntitiesConfig = boolean | Record<string, string>;
69
284
  interface PostcssConfig {
70
- /** Selector prefixes to strip from compiled CSS (e.g. ':host', ':lang'). */
285
+ /**
286
+ * Selector prefixes to strip from compiled CSS.
287
+ *
288
+ * @default [':host', ':lang']
289
+ *
290
+ * @example
291
+ * postcss: {
292
+ * removeSelectors: [':host', ':lang', ':root'],
293
+ * }
294
+ */
71
295
  removeSelectors?: string[];
72
- /** At-rule names to strip from compiled CSS (e.g. '@layer', '@property'). */
296
+ /**
297
+ * At-rule names to strip from compiled CSS.
298
+ *
299
+ * @default ['layer', 'property']
300
+ *
301
+ * @example
302
+ * postcss: {
303
+ * removeAtRules: ['layer', 'property', 'charset'],
304
+ * }
305
+ */
73
306
  removeAtRules?: string[];
74
- [key: string]: unknown;
75
307
  }
76
308
  interface HtmlConfig {
309
+ /** Configure HTML attribute transformations. */
77
310
  attributes?: AttributesConfig;
311
+ /**
312
+ * Decode HTML entities.
313
+ *
314
+ * Set to `true` to decode all, or pass a map of entities to decode.
315
+ *
316
+ * @default true
317
+ */
78
318
  decodeEntities?: EntitiesConfig;
319
+ /**
320
+ * Pretty-print the HTML output.
321
+ *
322
+ * Set to `true` to enable with defaults, or pass options.
323
+ */
79
324
  format?: boolean | oxfmt.FormatOptions;
325
+ /**
326
+ * Minify the HTML output.
327
+ *
328
+ * Set to `true` to enable with defaults, or pass options.
329
+ */
80
330
  minify?: boolean | Record<string, unknown>;
81
331
  }
332
+ type FilterFunction = (str: string, value: string) => string;
333
+ type FiltersConfig = false | Record<string, FilterFunction>;
334
+ interface MarkdownConfig extends Options$1 {
335
+ /**
336
+ * The shiki theme to use for syntax highlighting in Markdown fenced code blocks.
337
+ *
338
+ * @default 'github-light'
339
+ */
340
+ shikiTheme?: shiki.BundledTheme;
341
+ }
342
+ interface VueConfig {
343
+ /** Vue plugins to register on the app instance before rendering. */
344
+ plugins?: Plugin[];
345
+ /** Custom Vue directives to register globally. */
346
+ directives?: Record<string, Directive>;
347
+ /** Properties added to `app.config.globalProperties`, available in all templates. */
348
+ globalProperties?: Record<string, unknown>;
349
+ }
82
350
  interface MaizzleConfig {
83
- markdown?: unplugin_vue_markdown_types0.Options;
351
+ /**
352
+ * Root directory for the Maizzle email project.
353
+ *
354
+ * When set, relative paths for `content`, `static.source`,
355
+ * and `css.base` are all resolved relative to this directory.
356
+ *
357
+ * Defaults to `process.cwd()`.
358
+ *
359
+ * @example
360
+ * maizzle({
361
+ * root: 'resources/js/emails',
362
+ * content: ['./**\/*.vue'],
363
+ * })
364
+ */
365
+ root?: string;
366
+ /** Options for Markdown template support, extending `unplugin-vue-markdown`. */
367
+ markdown?: MarkdownConfig;
368
+ /**
369
+ * Glob patterns for email template files to process.
370
+ *
371
+ * Resolved relative to `root`.
372
+ *
373
+ * @default ['emails/**\/*.{vue,md}']
374
+ */
84
375
  content?: string[];
376
+ /** Output configuration for built email templates. */
85
377
  output?: {
378
+ /**
379
+ * Directory to write compiled HTML files to.
380
+ *
381
+ * @default 'dist'
382
+ */
86
383
  path?: string;
384
+ /**
385
+ * File extension for compiled templates.
386
+ *
387
+ * @default 'html'
388
+ *
389
+ * @example
390
+ * output: {
391
+ * extension: 'blade.php',
392
+ * }
393
+ */
87
394
  extension?: string;
88
395
  };
396
+ /** Static file copying configuration. */
89
397
  static?: {
398
+ /**
399
+ * Glob patterns for static files to copy to the output directory.
400
+ *
401
+ * @default ['public/**\/*.*']
402
+ */
90
403
  source?: string[];
404
+ /**
405
+ * Subdirectory in the output folder where static files are placed.
406
+ *
407
+ * @default 'public'
408
+ */
91
409
  destination?: string;
92
410
  };
411
+ /** Component auto-import configuration. */
412
+ components?: {
413
+ /**
414
+ * Additional directories to scan for auto-imported Vue components.
415
+ *
416
+ * Resolved relative to `cwd` (not `root`), so paths outside the
417
+ * email root directory work as expected.
418
+ *
419
+ * @example
420
+ * components: {
421
+ * source: ['resources/js/components/email'],
422
+ * }
423
+ */
424
+ source?: string | string[];
425
+ };
426
+ /** Dev server configuration. */
93
427
  server?: {
428
+ /**
429
+ * Port for the dev server.
430
+ *
431
+ * @default 3000
432
+ */
94
433
  port?: number;
434
+ /**
435
+ * Additional file paths to watch for changes.
436
+ *
437
+ * @default []
438
+ *
439
+ * @example
440
+ * server: {
441
+ * watch: ['./tailwind.config.ts'],
442
+ * }
443
+ */
95
444
  watch?: string[];
445
+ /**
446
+ * Email sending configuration for the "Send test" feature in the dev UI.
447
+ *
448
+ * When not configured, falls back to Ethereal (free fake SMTP — emails
449
+ * are captured and viewable via a URL, never actually delivered).
450
+ *
451
+ * @example
452
+ * server: {
453
+ * email: {
454
+ * to: ['test@example.com'],
455
+ * from: 'dev@maizzle.test',
456
+ * transport: {
457
+ * host: 'smtp.mailtrap.io',
458
+ * port: 587,
459
+ * auth: { user: '...', pass: '...' },
460
+ * },
461
+ * },
462
+ * }
463
+ */
464
+ email?: {
465
+ /** Default recipient(s). */to?: string | string[]; /** Sender address. @default 'Maizzle <maizzle@ethereal.email>' */
466
+ from?: string; /** Default subject line. */
467
+ subject?: string; /** Nodemailer transport options (SMTP, SES, etc.). Omit to use Ethereal. */
468
+ transport?: Record<string, unknown>;
469
+ };
96
470
  };
471
+ /** Tailwind CSS and email CSS optimization settings. */
97
472
  css?: CssConfig;
473
+ /**
474
+ * Generate a plaintext version of the email.
475
+ *
476
+ * Set to `true` to enable, or pass a string path or options object.
477
+ *
478
+ * @default false
479
+ */
98
480
  plaintext?: boolean | string | Record<string, unknown>;
481
+ /** PostCSS processing options. */
99
482
  postcss?: PostcssConfig;
483
+ /**
484
+ * Enable the transformer pipeline (CSS inlining, purging, shorthand, etc).
485
+ *
486
+ * @default true
487
+ */
100
488
  useTransformers?: boolean;
489
+ /**
490
+ * Replace strings in the final HTML output.
491
+ *
492
+ * @example
493
+ * replaceStrings: {
494
+ * '{{ year }}': new Date().getFullYear().toString(),
495
+ * }
496
+ */
101
497
  replaceStrings?: Record<string, string>;
498
+ /**
499
+ * Content filters that transform text inside HTML elements using custom attributes.
500
+ *
501
+ * Set to `false` to disable all filters. Pass an object to add custom filters
502
+ * (merged with built-in defaults).
503
+ *
504
+ * @example
505
+ * filters: {
506
+ * uppercase: str => str.toUpperCase(),
507
+ * }
508
+ */
509
+ filters?: FiltersConfig;
510
+ /** URL transformation settings (base URL, query string appending). */
102
511
  url?: UrlConfig;
512
+ /** HTML post-processing settings (attributes, formatting, minification). */
103
513
  html?: HtmlConfig;
514
+ /**
515
+ * Vite configuration options passed to the internal Vite SSR server.
516
+ *
517
+ * Use this to add custom Vite plugins or other Vite options.
518
+ * If a `vite.config.{ts,js}` file exists in the project root, it takes
519
+ * precedence and this option is used as a fallback.
520
+ *
521
+ * @example
522
+ * vite: {
523
+ * plugins: [myPlugin()],
524
+ * }
525
+ */
526
+ vite?: InlineConfig;
527
+ /**
528
+ * Vue app customization options.
529
+ *
530
+ * Register plugins, directives, or global properties on the
531
+ * internal Vue app instance used for SSR rendering.
532
+ *
533
+ * @example
534
+ * vue: {
535
+ * plugins: [createI18n({ locale: 'en', messages })],
536
+ * directives: { focus: vFocus },
537
+ * globalProperties: { $format: dateFormat },
538
+ * }
539
+ */
540
+ vue?: VueConfig;
541
+ /** Called before any templates are processed. */
104
542
  beforeCreate?: (params: {
105
543
  config: MaizzleConfig;
106
544
  }) => void | Promise<void>;
545
+ /** Called before each template is rendered. Return a string to replace the template source. */
107
546
  beforeRender?: (params: {
108
547
  config: MaizzleConfig;
109
548
  template: string;
110
549
  }) => string | void | Promise<string | void>;
550
+ /** Called after each template is rendered but before transformers run. Return a string to replace the output HTML. */
111
551
  afterRender?: (params: {
112
552
  config: MaizzleConfig;
113
553
  template: string;
114
554
  html: string;
115
555
  }) => string | void | Promise<string | void>;
556
+ /** Called after transformers have run on each template. Return a string to replace the output HTML. */
116
557
  afterTransform?: (params: {
117
558
  config: MaizzleConfig;
118
559
  template: string;
119
560
  html: string;
120
561
  }) => string | void | Promise<string | void>;
562
+ /** Called after all templates have been built. */
121
563
  afterBuild?: (params: {
122
564
  files: string[];
123
565
  config: MaizzleConfig;
@@ -125,5 +567,5 @@ interface MaizzleConfig {
125
567
  [key: string]: any;
126
568
  }
127
569
  //#endregion
128
- export { AttributesConfig, CssConfig, EntitiesConfig, HtmlConfig, MaizzleConfig, PostcssConfig, UrlConfig, UrlQuery, UrlQueryOptions };
570
+ export { AttributesConfig, CssConfig, EntitiesConfig, FilterFunction, FiltersConfig, HtmlConfig, MaizzleConfig, MarkdownConfig, PostcssConfig, UrlConfig, UrlQuery, UrlQueryOptions, VueConfig };
129
571
  //# sourceMappingURL=config.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;UAAiB,eAAA;EACf,IAAA;EACA,UAAA;EACA,MAAA;EACA,EAAA,GAAK,MAAA;AAAA;AAAA,KAGK,QAAA,GAAW,MAAA;EACrB,QAAA,GAAW,eAAA;AAAA;AAAA,U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AAA,IAAkB,MAAA;IAAU,MAAA,EAAQ,aAAA;IAAe,QAAA;IAAkB,IAAA;EAAA,sBAAmC,OAAA;;EAExG,UAAA,IAAc,MAAA;IAAU,KAAA;IAAiB,MAAA,EAAQ,aAAA;EAAA,aAA2B,OAAA;EAAA,CAG3E,GAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- import { AttributesConfig, CssConfig, EntitiesConfig, HtmlConfig, MaizzleConfig, PostcssConfig, UrlConfig, UrlQuery, UrlQueryOptions } from "./config.mjs";
2
- export { type AttributesConfig, type CssConfig, type EntitiesConfig, type HtmlConfig, type MaizzleConfig, type PostcssConfig, type UrlConfig, type UrlQuery, type UrlQueryOptions };
1
+ import { AttributesConfig, CssConfig, EntitiesConfig, FilterFunction, FiltersConfig, HtmlConfig, MaizzleConfig, MarkdownConfig, PostcssConfig, UrlConfig, UrlQuery, UrlQueryOptions } from "./config.mjs";
2
+ export { type AttributesConfig, type CssConfig, type EntitiesConfig, type FilterFunction, type FiltersConfig, type HtmlConfig, type MaizzleConfig, type MarkdownConfig, type PostcssConfig, type UrlConfig, type UrlQuery, type UrlQueryOptions };
@@ -1,7 +1,8 @@
1
- import { ChildNode, DomHandlerOptions } from "domhandler";
1
+ import { ChildNode } from "domhandler";
2
+ import { DomSerializerOptions } from "dom-serializer";
2
3
 
3
4
  //#region src/utils/ast/serializer.d.ts
4
- declare function serialize(dom: ChildNode[], options?: DomHandlerOptions): string;
5
+ declare function serialize(dom: ChildNode[], options?: DomSerializerOptions): string;
5
6
  //#endregion
6
7
  export { serialize };
7
8
  //# sourceMappingURL=serializer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.mts","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"mappings":";;;iBAGgB,SAAA,CAAU,GAAA,EAAK,SAAA,IAAa,OAAA,GAAU,iBAAA"}
1
+ {"version":3,"file":"serializer.d.mts","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"mappings":";;;;iBA6BgB,SAAA,CAAU,GAAA,EAAK,SAAA,IAAa,OAAA,GAAU,oBAAA"}
@@ -1,7 +1,31 @@
1
+ import { walk } from "./walker.mjs";
1
2
  import render from "dom-serializer";
2
3
 
3
4
  //#region src/utils/ast/serializer.ts
5
+ /**
6
+ * Re-encode < and > as entities in text nodes inside <code> elements.
7
+ *
8
+ * The DOM parser decodes entities like &#x3C; into raw < in text nodes.
9
+ * With encodeEntities: false the serializer outputs them as-is, which
10
+ * creates broken HTML (e.g. </a> inside a code block closes the real tag).
11
+ *
12
+ * We selectively fix this for <code> contents only, so the rest of the
13
+ * document (where encodeEntities: false is needed) is unaffected.
14
+ */
15
+ function encodeCodeTextNodes(dom) {
16
+ walk(dom, (node) => {
17
+ const el = node;
18
+ if (el.name !== "code") return;
19
+ walk(el.children ?? [], (child) => {
20
+ if (child.type === "text") {
21
+ const text = child;
22
+ text.data = text.data.replace(/</g, "&lt;").replace(/>/g, "&gt;");
23
+ }
24
+ });
25
+ });
26
+ }
4
27
  function serialize(dom, options) {
28
+ encodeCodeTextNodes(dom);
5
29
  return render(dom, {
6
30
  encodeEntities: false,
7
31
  ...options
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.mjs","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"sourcesContent":["import render from 'dom-serializer'\nimport type { ChildNode, DomHandlerOptions } from 'domhandler'\n\nexport function serialize(dom: ChildNode[], options?: DomHandlerOptions): string {\n return render(dom, { encodeEntities: false, ...options })\n}\n"],"mappings":";;;AAGA,SAAgB,UAAU,KAAkB,SAAqC;AAC/E,QAAO,OAAO,KAAK;EAAE,gBAAgB;EAAO,GAAG;EAAS,CAAC"}
1
+ {"version":3,"file":"serializer.mjs","names":[],"sources":["../../../src/utils/ast/serializer.ts"],"sourcesContent":["import render from 'dom-serializer'\nimport type { ChildNode } from 'domhandler'\nimport type { DomSerializerOptions } from 'dom-serializer'\nimport { walk } from './walker.ts'\n\n/**\n * Re-encode < and > as entities in text nodes inside <code> elements.\n *\n * The DOM parser decodes entities like &#x3C; into raw < in text nodes.\n * With encodeEntities: false the serializer outputs them as-is, which\n * creates broken HTML (e.g. </a> inside a code block closes the real tag).\n *\n * We selectively fix this for <code> contents only, so the rest of the\n * document (where encodeEntities: false is needed) is unaffected.\n */\nfunction encodeCodeTextNodes(dom: ChildNode[]): void {\n walk(dom, (node) => {\n const el = node as import('domhandler').Element\n if (el.name !== 'code') return\n\n walk(el.children ?? [], (child) => {\n if (child.type === 'text') {\n const text = child as import('domhandler').Text\n text.data = text.data.replace(/</g, '&lt;').replace(/>/g, '&gt;')\n }\n })\n })\n}\n\nexport function serialize(dom: ChildNode[], options?: DomSerializerOptions): string {\n encodeCodeTextNodes(dom)\n return render(dom, { encodeEntities: false, ...options })\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAS,oBAAoB,KAAwB;AACnD,MAAK,MAAM,SAAS;EAClB,MAAM,KAAK;AACX,MAAI,GAAG,SAAS,OAAQ;AAExB,OAAK,GAAG,YAAY,EAAE,GAAG,UAAU;AACjC,OAAI,MAAM,SAAS,QAAQ;IACzB,MAAM,OAAO;AACb,SAAK,OAAO,KAAK,KAAK,QAAQ,MAAM,OAAO,CAAC,QAAQ,MAAM,OAAO;;IAEnE;GACF;;AAGJ,SAAgB,UAAU,KAAkB,SAAwC;AAClF,qBAAoB,IAAI;AACxB,QAAO,OAAO,KAAK;EAAE,gBAAgB;EAAO,GAAG;EAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ //#region src/utils/detect.d.ts
2
+ declare function isLaravel(cwd?: string): boolean;
3
+ //#endregion
4
+ export { isLaravel };
5
+ //# sourceMappingURL=detect.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect.d.mts","names":[],"sources":["../../src/utils/detect.ts"],"mappings":";iBAGgB,SAAA,CAAU,GAAA"}
@@ -0,0 +1,11 @@
1
+ import { existsSync } from "node:fs";
2
+ import { resolve } from "node:path";
3
+
4
+ //#region src/utils/detect.ts
5
+ function isLaravel(cwd = process.cwd()) {
6
+ return existsSync(resolve(cwd, "artisan"));
7
+ }
8
+
9
+ //#endregion
10
+ export { isLaravel };
11
+ //# sourceMappingURL=detect.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect.mjs","names":[],"sources":["../../src/utils/detect.ts"],"sourcesContent":["import { existsSync } from 'node:fs'\nimport { resolve } from 'node:path'\n\nexport function isLaravel(cwd: string = process.cwd()): boolean {\n return existsSync(resolve(cwd, 'artisan'))\n}\n"],"mappings":";;;;AAGA,SAAgB,UAAU,MAAc,QAAQ,KAAK,EAAW;AAC9D,QAAO,WAAW,QAAQ,KAAK,UAAU,CAAC"}