@maizzle/framework 6.0.0-rc.1 → 6.0.0-rc.11

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 (347) hide show
  1. package/bin/maizzle.mjs +1 -1
  2. package/dist/_virtual/_rolldown/runtime.mjs +32 -0
  3. package/dist/build.mjs +6 -3
  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 +78 -0
  10. package/dist/components/Container.vue +53 -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/Img.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 +84 -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/usePreheader.d.mts +24 -0
  31. package/dist/composables/usePreheader.d.mts.map +1 -0
  32. package/dist/composables/usePreheader.mjs +29 -0
  33. package/dist/composables/usePreheader.mjs.map +1 -0
  34. package/dist/config/defaults.mjs +1 -3
  35. package/dist/config/defaults.mjs.map +1 -1
  36. package/dist/config/index.mjs +7 -0
  37. package/dist/config/index.mjs.map +1 -1
  38. package/dist/index.d.mts +4 -2
  39. package/dist/index.mjs +3 -1
  40. package/dist/node_modules/picomatch/index.mjs +13 -0
  41. package/dist/node_modules/picomatch/index.mjs.map +1 -0
  42. package/dist/node_modules/picomatch/lib/constants.mjs +174 -0
  43. package/dist/node_modules/picomatch/lib/constants.mjs.map +1 -0
  44. package/dist/node_modules/picomatch/lib/parse.mjs +1067 -0
  45. package/dist/node_modules/picomatch/lib/parse.mjs.map +1 -0
  46. package/dist/node_modules/picomatch/lib/picomatch.mjs +304 -0
  47. package/dist/node_modules/picomatch/lib/picomatch.mjs.map +1 -0
  48. package/dist/node_modules/picomatch/lib/scan.mjs +296 -0
  49. package/dist/node_modules/picomatch/lib/scan.mjs.map +1 -0
  50. package/dist/node_modules/picomatch/lib/utils.mjs +53 -0
  51. package/dist/node_modules/picomatch/lib/utils.mjs.map +1 -0
  52. package/dist/plugin.d.mts.map +1 -1
  53. package/dist/plugin.mjs +24 -7
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/plugins/postcss/resolveProps.d.mts +8 -0
  56. package/dist/plugins/postcss/resolveProps.d.mts.map +1 -0
  57. package/dist/plugins/postcss/resolveProps.mjs +144 -0
  58. package/dist/plugins/postcss/resolveProps.mjs.map +1 -0
  59. package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
  60. package/dist/plugins/postcss/tailwindCleanup.mjs +46 -13
  61. package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
  62. package/dist/render/createRenderer.d.mts +8 -3
  63. package/dist/render/createRenderer.d.mts.map +1 -1
  64. package/dist/render/createRenderer.mjs +146 -10
  65. package/dist/render/createRenderer.mjs.map +1 -1
  66. package/dist/render/index.mjs +6 -3
  67. package/dist/render/index.mjs.map +1 -1
  68. package/dist/serve.d.mts.map +1 -1
  69. package/dist/serve.mjs +157 -63
  70. package/dist/serve.mjs.map +1 -1
  71. package/dist/server/compatibility.d.mts +1 -2
  72. package/dist/server/compatibility.d.mts.map +1 -1
  73. package/dist/server/compatibility.mjs +30 -16
  74. package/dist/server/compatibility.mjs.map +1 -1
  75. package/dist/server/email.d.mts +17 -0
  76. package/dist/server/email.d.mts.map +1 -0
  77. package/dist/server/email.mjs +41 -0
  78. package/dist/server/email.mjs.map +1 -0
  79. package/dist/server/linter.d.mts +1 -2
  80. package/dist/server/linter.d.mts.map +1 -1
  81. package/dist/server/linter.mjs +60 -71
  82. package/dist/server/linter.mjs.map +1 -1
  83. package/dist/server/ui/App.vue +206 -70
  84. package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
  85. package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
  86. package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
  87. package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
  88. package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
  89. package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
  90. package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
  91. package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
  92. package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
  93. package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
  94. package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
  95. package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
  96. package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
  97. package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
  98. package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
  99. package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
  100. package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
  101. package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
  102. package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
  103. package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
  104. package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
  105. package/dist/server/ui/components/ui/toggle/index.ts +3 -3
  106. package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
  107. package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
  108. package/dist/server/ui/main.css +20 -20
  109. package/dist/server/ui/pages/Home.vue +12 -5
  110. package/dist/server/ui/pages/Preview.vue +506 -216
  111. package/dist/transformers/entities.d.mts.map +1 -1
  112. package/dist/transformers/entities.mjs +3 -0
  113. package/dist/transformers/entities.mjs.map +1 -1
  114. package/dist/transformers/filters/defaults.d.mts +6 -0
  115. package/dist/transformers/filters/defaults.d.mts.map +1 -0
  116. package/dist/transformers/filters/defaults.mjs +78 -0
  117. package/dist/transformers/filters/defaults.mjs.map +1 -0
  118. package/dist/transformers/filters/index.d.mts +22 -0
  119. package/dist/transformers/filters/index.d.mts.map +1 -0
  120. package/dist/transformers/filters/index.mjs +67 -0
  121. package/dist/transformers/filters/index.mjs.map +1 -0
  122. package/dist/transformers/index.d.mts +11 -9
  123. package/dist/transformers/index.d.mts.map +1 -1
  124. package/dist/transformers/index.mjs +19 -11
  125. package/dist/transformers/index.mjs.map +1 -1
  126. package/dist/transformers/inlineCSS.d.mts +1 -14
  127. package/dist/transformers/inlineCSS.d.mts.map +1 -1
  128. package/dist/transformers/inlineCSS.mjs +32 -36
  129. package/dist/transformers/inlineCSS.mjs.map +1 -1
  130. package/dist/transformers/purgeCSS.d.mts.map +1 -1
  131. package/dist/transformers/purgeCSS.mjs +67 -1
  132. package/dist/transformers/purgeCSS.mjs.map +1 -1
  133. package/dist/transformers/sixHex.d.mts +16 -0
  134. package/dist/transformers/sixHex.d.mts.map +1 -0
  135. package/dist/transformers/sixHex.mjs +30 -0
  136. package/dist/transformers/sixHex.mjs.map +1 -0
  137. package/dist/transformers/tailwindcss.d.mts +6 -2
  138. package/dist/transformers/tailwindcss.d.mts.map +1 -1
  139. package/dist/transformers/tailwindcss.mjs +54 -30
  140. package/dist/transformers/tailwindcss.mjs.map +1 -1
  141. package/dist/types/config.d.mts +436 -23
  142. package/dist/types/config.d.mts.map +1 -1
  143. package/dist/types/index.d.mts +2 -2
  144. package/dist/utils/ast/serializer.d.mts +3 -2
  145. package/dist/utils/ast/serializer.d.mts.map +1 -1
  146. package/dist/utils/ast/serializer.mjs +24 -0
  147. package/dist/utils/ast/serializer.mjs.map +1 -1
  148. package/dist/utils/detect.d.mts +5 -0
  149. package/dist/utils/detect.d.mts.map +1 -0
  150. package/dist/utils/detect.mjs +11 -0
  151. package/dist/utils/detect.mjs.map +1 -0
  152. package/node_modules/@clack/core/CHANGELOG.md +87 -4
  153. package/node_modules/@clack/core/README.md +1 -1
  154. package/node_modules/@clack/core/dist/index.d.mts +186 -48
  155. package/node_modules/@clack/core/dist/index.mjs +10 -14
  156. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  157. package/node_modules/@clack/core/package.json +7 -9
  158. package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
  159. package/node_modules/@clack/prompts/README.md +66 -3
  160. package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
  161. package/node_modules/@clack/prompts/dist/index.mjs +134 -84
  162. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  163. package/node_modules/@clack/prompts/package.json +14 -10
  164. package/node_modules/citty/LICENSE +0 -15
  165. package/node_modules/citty/README.md +166 -69
  166. package/node_modules/citty/dist/index.d.mts +88 -56
  167. package/node_modules/citty/dist/index.mjs +399 -437
  168. package/node_modules/citty/package.json +28 -35
  169. package/node_modules/giget/README.md +59 -11
  170. package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
  171. package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
  172. package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
  173. package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
  174. package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
  175. package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
  176. package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
  177. package/node_modules/giget/dist/cli.d.mts +1 -0
  178. package/node_modules/giget/dist/cli.mjs +89 -111
  179. package/node_modules/giget/dist/index.d.mts +46 -35
  180. package/node_modules/giget/dist/index.mjs +2 -22
  181. package/node_modules/giget/package.json +32 -45
  182. package/node_modules/maizzle/README.md +140 -0
  183. package/node_modules/maizzle/bin/maizzle.mjs +5 -0
  184. package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
  185. package/node_modules/maizzle/dist/commands/new.mjs +253 -0
  186. package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
  187. package/node_modules/maizzle/dist/index.mjs +44 -0
  188. package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
  189. package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
  190. package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
  191. package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
  192. package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
  193. package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
  194. package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
  195. package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
  196. package/node_modules/{@maizzle/cli → maizzle}/package.json +14 -12
  197. package/node_modules/tinyexec/README.md +49 -3
  198. package/node_modules/tinyexec/dist/main.d.mts +25 -14
  199. package/node_modules/tinyexec/dist/main.mjs +148 -100
  200. package/node_modules/tinyexec/package.json +9 -8
  201. package/package.json +17 -13
  202. package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
  203. package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
  204. package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
  205. package/dist/server/ui/components/ui/resizable/index.ts +0 -3
  206. package/node_modules/@clack/core/dist/index.cjs +0 -15
  207. package/node_modules/@clack/core/dist/index.cjs.map +0 -1
  208. package/node_modules/@clack/core/dist/index.d.cts +0 -211
  209. package/node_modules/@clack/core/dist/index.d.ts +0 -211
  210. package/node_modules/@clack/prompts/dist/index.cjs +0 -87
  211. package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
  212. package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
  213. package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
  214. package/node_modules/@maizzle/cli/README.md +0 -58
  215. package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
  216. package/node_modules/citty/dist/index.cjs +0 -475
  217. package/node_modules/citty/dist/index.d.cts +0 -80
  218. package/node_modules/citty/dist/index.d.ts +0 -80
  219. package/node_modules/consola/LICENSE +0 -47
  220. package/node_modules/consola/README.md +0 -352
  221. package/node_modules/consola/basic.d.ts +0 -1
  222. package/node_modules/consola/browser.d.ts +0 -1
  223. package/node_modules/consola/core.d.ts +0 -1
  224. package/node_modules/consola/dist/basic.cjs +0 -32
  225. package/node_modules/consola/dist/basic.d.cts +0 -23
  226. package/node_modules/consola/dist/basic.d.mts +0 -21
  227. package/node_modules/consola/dist/basic.d.ts +0 -23
  228. package/node_modules/consola/dist/basic.mjs +0 -24
  229. package/node_modules/consola/dist/browser.cjs +0 -84
  230. package/node_modules/consola/dist/browser.d.cts +0 -23
  231. package/node_modules/consola/dist/browser.d.mts +0 -21
  232. package/node_modules/consola/dist/browser.d.ts +0 -23
  233. package/node_modules/consola/dist/browser.mjs +0 -76
  234. package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  235. package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  236. package/node_modules/consola/dist/core.cjs +0 -517
  237. package/node_modules/consola/dist/core.d.cts +0 -459
  238. package/node_modules/consola/dist/core.d.mts +0 -459
  239. package/node_modules/consola/dist/core.d.ts +0 -459
  240. package/node_modules/consola/dist/core.mjs +0 -512
  241. package/node_modules/consola/dist/index.cjs +0 -663
  242. package/node_modules/consola/dist/index.d.cts +0 -24
  243. package/node_modules/consola/dist/index.d.mts +0 -22
  244. package/node_modules/consola/dist/index.d.ts +0 -24
  245. package/node_modules/consola/dist/index.mjs +0 -651
  246. package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  247. package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  248. package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  249. package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  250. package/node_modules/consola/dist/utils.cjs +0 -64
  251. package/node_modules/consola/dist/utils.d.cts +0 -286
  252. package/node_modules/consola/dist/utils.d.mts +0 -286
  253. package/node_modules/consola/dist/utils.d.ts +0 -286
  254. package/node_modules/consola/dist/utils.mjs +0 -54
  255. package/node_modules/consola/lib/index.cjs +0 -10
  256. package/node_modules/consola/package.json +0 -136
  257. package/node_modules/consola/utils.d.ts +0 -1
  258. package/node_modules/create-maizzle/README.md +0 -86
  259. package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
  260. package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
  261. package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
  262. package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
  263. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
  264. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
  265. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
  266. package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
  267. package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
  268. package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
  269. package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
  270. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
  271. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
  272. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
  273. package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
  274. package/node_modules/create-maizzle/package.json +0 -47
  275. package/node_modules/create-maizzle/src/index.js +0 -242
  276. package/node_modules/defu/LICENSE +0 -21
  277. package/node_modules/defu/README.md +0 -171
  278. package/node_modules/defu/dist/defu.cjs +0 -77
  279. package/node_modules/defu/dist/defu.d.cts +0 -31
  280. package/node_modules/defu/dist/defu.d.mts +0 -29
  281. package/node_modules/defu/dist/defu.d.ts +0 -31
  282. package/node_modules/defu/dist/defu.mjs +0 -69
  283. package/node_modules/defu/lib/defu.cjs +0 -10
  284. package/node_modules/defu/lib/defu.d.cts +0 -12
  285. package/node_modules/defu/package.json +0 -48
  286. package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
  287. package/node_modules/node-fetch-native/LICENSE +0 -114
  288. package/node_modules/node-fetch-native/README.md +0 -225
  289. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
  290. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
  291. package/node_modules/node-fetch-native/dist/index.cjs +0 -1
  292. package/node_modules/node-fetch-native/dist/index.mjs +0 -1
  293. package/node_modules/node-fetch-native/dist/native.cjs +0 -1
  294. package/node_modules/node-fetch-native/dist/native.mjs +0 -1
  295. package/node_modules/node-fetch-native/dist/node.cjs +0 -19
  296. package/node_modules/node-fetch-native/dist/node.mjs +0 -19
  297. package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
  298. package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
  299. package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
  300. package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
  301. package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
  302. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
  303. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
  304. package/node_modules/node-fetch-native/index.d.ts +0 -1
  305. package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
  306. package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
  307. package/node_modules/node-fetch-native/lib/index.cjs +0 -11
  308. package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
  309. package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
  310. package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
  311. package/node_modules/node-fetch-native/lib/native.cjs +0 -11
  312. package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
  313. package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
  314. package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
  315. package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
  316. package/node_modules/node-fetch-native/node.d.ts +0 -1
  317. package/node_modules/node-fetch-native/package.json +0 -138
  318. package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
  319. package/node_modules/node-fetch-native/proxy.d.ts +0 -1
  320. package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
  321. package/node_modules/nypm/node_modules/citty/README.md +0 -231
  322. package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
  323. package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
  324. package/node_modules/nypm/node_modules/citty/package.json +0 -42
  325. /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
  326. /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
  327. /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
  328. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
  329. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
  330. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
  331. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
  332. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
  333. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
  334. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
  335. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
  336. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
  337. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
  338. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
  339. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
  340. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
  341. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
  342. /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
  343. /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
  344. /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
  345. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
  346. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
  347. /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
@@ -1,12 +1,95 @@
1
1
  # @clack/core
2
2
 
3
- ## 0.4.2
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9786226: Externalize `fast-string-width` and `fast-wrap-ansi` to avoid double dependencies
8
+ - 090902c: Adds `date` prompt with `format` support (YMD, MDY, DMY)
9
+
10
+ ### Patch Changes
11
+
12
+ - bdf89a5: Adds `placeholder` option to `autocomplete`. When the placeholder is set and the input is empty, pressing `tab` will set the value to `placeholder`.
13
+ - 417b451: Only apply autocomplete default filter if it has been explicitly set or if options is not a getter.
14
+
15
+ ## 1.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - e3333fb: Replaces `picocolors` with Node.js built-in `styleText`.
20
+
21
+ ## 1.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - 6404dc1: Disallows selection of `disabled` options in autocomplete.
26
+ - 2533180: Updates the documentation to mention `userInputWithCursor` when using the `TextPrompt` primitive.
27
+
28
+ ## 1.0.0
29
+
30
+ ### Major Changes
31
+
32
+ - c713fd5: The package is now distributed as ESM-only. In `v0` releases, the package was dual-published as CJS and ESM.
33
+
34
+ For existing CJS projects using Node v20+, please see Node's guide on [Loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
35
+
36
+ ### Minor Changes
37
+
38
+ - 7bc3301: Prompts now have a `userInput` stored separately from their `value`.
39
+ - 2837845: Adds suggestion and path prompts
40
+ - 729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the `updateSettings` function to support multilingual CLIs.
41
+
42
+ This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
43
+
44
+ ```ts
45
+ // Per-instance customization
46
+ const spinner = prompts.spinner({
47
+ cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
48
+ errorMessage: "Se produjo un error", // "An error occurred" in Spanish
49
+ });
50
+
51
+ // Global customization via updateSettings
52
+ prompts.updateSettings({
53
+ messages: {
54
+ cancel: "Operación cancelada", // "Operation cancelled" in Spanish
55
+ error: "Se produjo un error", // "An error occurred" in Spanish
56
+ },
57
+ });
58
+
59
+ // Settings can now be accessed directly
60
+ console.log(prompts.settings.messages.cancel); // "Operación cancelada"
61
+
62
+ // Direct options take priority over global settings
63
+ const spinner = prompts.spinner({
64
+ cancelMessage: "Cancelled", // This will be used instead of the global setting
65
+ });
66
+ ```
67
+
68
+ - 55645c2: Support wrapping autocomplete and select prompts.
69
+ - f2c2b89: Adds `AutocompletePrompt` to core with comprehensive tests and implement both `autocomplete` and `autocomplete-multiselect` components in prompts package.
70
+ - df4eea1: Remove `suggestion` prompt and change `path` prompt to be an autocomplete prompt.
71
+ - 1604f97: Add `clearOnError` option to password prompt to automatically clear input when validation fails
4
72
 
5
73
  ### Patch Changes
6
74
 
7
- - 30aa7ed: Adds a new `selectableGroups` boolean to the group multi-select prompt. Using `selectableGroups: false` will disable the ability to select a top-level group, but still allow every child to be selected individually.
8
- - 5dfce8a: Fixes an edge case for placeholder values. Previously, when pressing `enter` on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
9
- - f574297: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.
75
+ - 0718b07: fix: export `*Options` types for prompts.
76
+ - bfe0dd3: Prevents placeholder from being used as input value in text prompts
77
+ - 6868c1c: Adds a new `selectableGroups` boolean to the group multi-select prompt. Using `selectableGroups: false` will disable the ability to select a top-level group, but still allow every child to be selected individually.
78
+ - 7df841d: Removed all trailing space in prompt output and fixed various padding rendering bugs.
79
+ - a4f5034: Fixes an edge case for placeholder values. Previously, when pressing `enter` on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
80
+ - b103ad3: Allow disabled options in multi-select and select prompts.
81
+ - 71b5029: Add missing nullish checks around values.
82
+ - a36292b: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.
83
+ - 1a45f93: Switched from wrap-ansi to fast-wrap-ansi
84
+ - 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
85
+ - 34f52fe: Validates initial values immediately when using text prompts with initialValue and validate props.
86
+ - 94fee2a: Changes `placeholder` to be a visual hint rather than a tabbable value.
87
+ - 4f6b3c2: Set initial values of auto complete prompt to first option when multiple is false.
88
+ - 8ead5d3: Avoid passing initial values to core when using auto complete prompt
89
+ - acc4c3a: Add a new `withGuide` option to all prompts to disable the default clack border
90
+ - 68dbf9b: select-key: Fixed wrapping and added new `caseSensitive` option
91
+ - 2310b43: Allow custom writables as output stream.
92
+ - d98e033: add invert selection for multiselect prompt
10
93
 
11
94
  ## 0.4.1
12
95
 
@@ -11,7 +11,7 @@ import { TextPrompt, isCancel } from '@clack/core';
11
11
 
12
12
  const p = new TextPrompt({
13
13
  render() {
14
- return `What's your name?\n${this.valueWithCursor}`;
14
+ return `What's your name?\n${this.userInputWithCursor}`;
15
15
  },
16
16
  });
17
17
 
@@ -1,7 +1,29 @@
1
+ import { Key } from 'node:readline';
1
2
  import { Readable, Writable } from 'node:stream';
2
3
 
3
4
  declare const actions: readonly ["up", "down", "left", "right", "space", "enter", "cancel"];
4
5
  type Action = (typeof actions)[number];
6
+ /** Global settings for Clack programs, stored in memory */
7
+ interface InternalClackSettings {
8
+ actions: Set<Action>;
9
+ aliases: Map<string, Action>;
10
+ messages: {
11
+ cancel: string;
12
+ error: string;
13
+ };
14
+ withGuide: boolean;
15
+ date: {
16
+ monthNames: string[];
17
+ messages: {
18
+ invalidMonth: string;
19
+ required: string;
20
+ invalidDay: (days: number, month: string) => string;
21
+ afterMin: (min: Date) => string;
22
+ beforeMax: (max: Date) => string;
23
+ };
24
+ };
25
+ }
26
+ declare const settings: InternalClackSettings;
5
27
  interface ClackSettings {
6
28
  /**
7
29
  * Set custom global aliases for the default actions.
@@ -10,7 +32,42 @@ interface ClackSettings {
10
32
  * @param aliases - An object that maps aliases to actions
11
33
  * @default { k: 'up', j: 'down', h: 'left', l: 'right', '\x03': 'cancel', 'escape': 'cancel' }
12
34
  */
13
- aliases: Record<string, Action>;
35
+ aliases?: Record<string, Action>;
36
+ /**
37
+ * Custom messages for prompts
38
+ */
39
+ messages?: {
40
+ /**
41
+ * Custom message to display when a spinner is cancelled
42
+ * @default "Canceled"
43
+ */
44
+ cancel?: string;
45
+ /**
46
+ * Custom message to display when a spinner encounters an error
47
+ * @default "Something went wrong"
48
+ */
49
+ error?: string;
50
+ };
51
+ withGuide?: boolean;
52
+ /**
53
+ * Date prompt localization
54
+ */
55
+ date?: {
56
+ /** Month names for validation messages (January, February, ...) */
57
+ monthNames?: string[];
58
+ messages?: {
59
+ /** Shown when date is missing */
60
+ required?: string;
61
+ /** Shown when month > 12 */
62
+ invalidMonth?: string;
63
+ /** (days, monthName) => message for invalid day */
64
+ invalidDay?: (days: number, month: string) => string;
65
+ /** (min) => message when date is before minDate */
66
+ afterMin?: (min: Date) => string;
67
+ /** (max) => message when date is after maxDate */
68
+ beforeMax?: (max: Date) => string;
69
+ };
70
+ };
14
71
  }
15
72
  declare function updateSettings(updates: ClackSettings): void;
16
73
 
@@ -21,30 +78,32 @@ type ClackState = 'initial' | 'active' | 'cancel' | 'submit' | 'error';
21
78
  /**
22
79
  * Typed event emitter for clack
23
80
  */
24
- interface ClackEvents {
81
+ interface ClackEvents<TValue> {
25
82
  initial: (value?: any) => void;
26
83
  active: (value?: any) => void;
27
84
  cancel: (value?: any) => void;
28
85
  submit: (value?: any) => void;
29
86
  error: (value?: any) => void;
30
87
  cursor: (key?: Action) => void;
31
- key: (key?: string) => void;
32
- value: (value?: string) => void;
88
+ key: (key: string | undefined, info: Key) => void;
89
+ value: (value?: TValue) => void;
90
+ userInput: (value: string) => void;
33
91
  confirm: (value?: boolean) => void;
34
92
  finalize: () => void;
93
+ beforePrompt: () => void;
35
94
  }
36
95
 
37
- interface PromptOptions<Self extends Prompt> {
96
+ interface PromptOptions<TValue, Self extends Prompt<TValue>> {
38
97
  render(this: Omit<Self, 'prompt'>): string | undefined;
39
- placeholder?: string;
40
98
  initialValue?: any;
41
- validate?: ((value: any) => string | Error | undefined) | undefined;
99
+ initialUserInput?: string;
100
+ validate?: ((value: TValue | undefined) => string | Error | undefined) | undefined;
42
101
  input?: Readable;
43
102
  output?: Writable;
44
103
  debug?: boolean;
45
104
  signal?: AbortSignal;
46
105
  }
47
- declare class Prompt {
106
+ declare class Prompt<TValue> {
48
107
  protected input: Readable;
49
108
  protected output: Writable;
50
109
  private _abortSignal?;
@@ -57,8 +116,9 @@ declare class Prompt {
57
116
  protected _cursor: number;
58
117
  state: ClackState;
59
118
  error: string;
60
- value: any;
61
- constructor(options: PromptOptions<Prompt>, trackValue?: boolean);
119
+ value: TValue | undefined;
120
+ userInput: string;
121
+ constructor(options: PromptOptions<TValue, Prompt<TValue>>, trackValue?: boolean);
62
122
  /**
63
123
  * Unsubscribe all listeners
64
124
  */
@@ -73,40 +133,111 @@ declare class Prompt {
73
133
  * @param event - The event name
74
134
  * @param cb - The callback
75
135
  */
76
- on<T extends keyof ClackEvents>(event: T, cb: ClackEvents[T]): void;
136
+ on<T extends keyof ClackEvents<TValue>>(event: T, cb: ClackEvents<TValue>[T]): void;
77
137
  /**
78
138
  * Subscribe to an event once
79
139
  * @param event - The event name
80
140
  * @param cb - The callback
81
141
  */
82
- once<T extends keyof ClackEvents>(event: T, cb: ClackEvents[T]): void;
142
+ once<T extends keyof ClackEvents<TValue>>(event: T, cb: ClackEvents<TValue>[T]): void;
83
143
  /**
84
144
  * Emit an event with data
85
145
  * @param event - The event name
86
146
  * @param data - The data to pass to the callback
87
147
  */
88
- emit<T extends keyof ClackEvents>(event: T, ...data: Parameters<ClackEvents[T]>): void;
89
- prompt(): Promise<string | symbol>;
148
+ emit<T extends keyof ClackEvents<TValue>>(event: T, ...data: Parameters<ClackEvents<TValue>[T]>): void;
149
+ prompt(): Promise<symbol | TValue | undefined>;
150
+ protected _isActionKey(char: string | undefined, _key: Key): boolean;
151
+ protected _setValue(value: TValue | undefined): void;
152
+ protected _setUserInput(value: string | undefined, write?: boolean): void;
153
+ protected _clearUserInput(): void;
90
154
  private onKeypress;
91
155
  protected close(): void;
92
156
  private restoreCursor;
93
157
  private render;
94
158
  }
95
159
 
96
- interface ConfirmOptions extends PromptOptions<ConfirmPrompt> {
160
+ interface OptionLike$1 {
161
+ value: unknown;
162
+ label?: string;
163
+ disabled?: boolean;
164
+ }
165
+ type FilterFunction<T extends OptionLike$1> = (search: string, opt: T) => boolean;
166
+ interface AutocompleteOptions<T extends OptionLike$1> extends PromptOptions<T['value'] | T['value'][], AutocompletePrompt<T>> {
167
+ options: T[] | ((this: AutocompletePrompt<T>) => T[]);
168
+ filter?: FilterFunction<T>;
169
+ multiple?: boolean;
170
+ /**
171
+ * When set (non-empty), pressing Tab with no input fills the field with this value
172
+ * and runs the normal filter/selection logic so the user can confirm with Enter.
173
+ * Tab only fills the input when the placeholder matches at least one option under
174
+ * the prompt's filter (so the value remains selectable).
175
+ */
176
+ placeholder?: string;
177
+ }
178
+ declare class AutocompletePrompt<T extends OptionLike$1> extends Prompt<T['value'] | T['value'][]> {
179
+ #private;
180
+ filteredOptions: T[];
181
+ multiple: boolean;
182
+ isNavigating: boolean;
183
+ selectedValues: Array<T['value']>;
184
+ focusedValue: T['value'] | undefined;
185
+ get cursor(): number;
186
+ get userInputWithCursor(): string;
187
+ get options(): T[];
188
+ constructor(opts: AutocompleteOptions<T>);
189
+ protected _isActionKey(char: string | undefined, key: Key): boolean;
190
+ deselectAll(): void;
191
+ toggleSelected(value: T['value']): void;
192
+ }
193
+
194
+ interface ConfirmOptions extends PromptOptions<boolean, ConfirmPrompt> {
97
195
  active: string;
98
196
  inactive: string;
99
197
  initialValue?: boolean;
100
198
  }
101
- declare class ConfirmPrompt extends Prompt {
199
+ declare class ConfirmPrompt extends Prompt<boolean> {
102
200
  get cursor(): 0 | 1;
103
201
  private get _value();
104
202
  constructor(opts: ConfirmOptions);
105
203
  }
106
204
 
205
+ interface SegmentConfig {
206
+ type: 'year' | 'month' | 'day';
207
+ len: number;
208
+ }
209
+ interface DateParts {
210
+ year: string;
211
+ month: string;
212
+ day: string;
213
+ }
214
+ type DateFormat = 'YMD' | 'MDY' | 'DMY';
215
+ interface DateOptions extends PromptOptions<Date, DatePrompt> {
216
+ format?: DateFormat;
217
+ locale?: string;
218
+ separator?: string;
219
+ defaultValue?: Date;
220
+ initialValue?: Date;
221
+ minDate?: Date;
222
+ maxDate?: Date;
223
+ }
224
+ declare class DatePrompt extends Prompt<Date> {
225
+ #private;
226
+ inlineError: string;
227
+ get segmentCursor(): {
228
+ segmentIndex: number;
229
+ positionInSegment: number;
230
+ };
231
+ get segmentValues(): DateParts;
232
+ get segments(): readonly SegmentConfig[];
233
+ get separator(): string;
234
+ get formattedValue(): string;
235
+ constructor(opts: DateOptions);
236
+ }
237
+
107
238
  interface GroupMultiSelectOptions<T extends {
108
239
  value: any;
109
- }> extends PromptOptions<GroupMultiSelectPrompt<T>> {
240
+ }> extends PromptOptions<T['value'][], GroupMultiSelectPrompt<T>> {
110
241
  options: Record<string, T[]>;
111
242
  initialValues?: T['value'][];
112
243
  required?: boolean;
@@ -115,7 +246,7 @@ interface GroupMultiSelectOptions<T extends {
115
246
  }
116
247
  declare class GroupMultiSelectPrompt<T extends {
117
248
  value: any;
118
- }> extends Prompt {
249
+ }> extends Prompt<T['value'][]> {
119
250
  #private;
120
251
  options: (T & {
121
252
  group: string | boolean;
@@ -127,85 +258,92 @@ declare class GroupMultiSelectPrompt<T extends {
127
258
  constructor(opts: GroupMultiSelectOptions<T>);
128
259
  }
129
260
 
130
- interface MultiSelectOptions<T extends {
261
+ interface OptionLike {
131
262
  value: any;
132
- }> extends PromptOptions<MultiSelectPrompt<T>> {
263
+ disabled?: boolean;
264
+ }
265
+ interface MultiSelectOptions<T extends OptionLike> extends PromptOptions<T['value'][], MultiSelectPrompt<T>> {
133
266
  options: T[];
134
267
  initialValues?: T['value'][];
135
268
  required?: boolean;
136
269
  cursorAt?: T['value'];
137
270
  }
138
- declare class MultiSelectPrompt<T extends {
139
- value: any;
140
- }> extends Prompt {
271
+ declare class MultiSelectPrompt<T extends OptionLike> extends Prompt<T['value'][]> {
141
272
  options: T[];
142
273
  cursor: number;
143
274
  private get _value();
275
+ private get _enabledOptions();
144
276
  private toggleAll;
277
+ private toggleInvert;
145
278
  private toggleValue;
146
279
  constructor(opts: MultiSelectOptions<T>);
147
280
  }
148
281
 
149
- interface PasswordOptions extends PromptOptions<PasswordPrompt> {
282
+ interface PasswordOptions extends PromptOptions<string, PasswordPrompt> {
150
283
  mask?: string;
151
284
  }
152
- declare class PasswordPrompt extends Prompt {
153
- valueWithCursor: string;
285
+ declare class PasswordPrompt extends Prompt<string> {
154
286
  private _mask;
155
287
  get cursor(): number;
156
- get masked(): any;
288
+ get masked(): string;
289
+ get userInputWithCursor(): string;
290
+ clear(): void;
157
291
  constructor({ mask, ...opts }: PasswordOptions);
158
292
  }
159
293
 
160
294
  interface SelectOptions<T extends {
161
295
  value: any;
162
- }> extends PromptOptions<SelectPrompt<T>> {
296
+ disabled?: boolean;
297
+ }> extends PromptOptions<T['value'], SelectPrompt<T>> {
163
298
  options: T[];
164
299
  initialValue?: T['value'];
165
300
  }
166
301
  declare class SelectPrompt<T extends {
167
302
  value: any;
168
- }> extends Prompt {
303
+ disabled?: boolean;
304
+ }> extends Prompt<T['value']> {
169
305
  options: T[];
170
306
  cursor: number;
171
- private get _value();
307
+ private get _selectedValue();
172
308
  private changeValue;
173
309
  constructor(opts: SelectOptions<T>);
174
310
  }
175
311
 
176
312
  interface SelectKeyOptions<T extends {
177
- value: any;
178
- }> extends PromptOptions<SelectKeyPrompt<T>> {
313
+ value: string;
314
+ }> extends PromptOptions<T['value'], SelectKeyPrompt<T>> {
179
315
  options: T[];
316
+ caseSensitive?: boolean;
180
317
  }
181
318
  declare class SelectKeyPrompt<T extends {
182
- value: any;
183
- }> extends Prompt {
319
+ value: string;
320
+ }> extends Prompt<T['value']> {
184
321
  options: T[];
185
322
  cursor: number;
186
323
  constructor(opts: SelectKeyOptions<T>);
187
324
  }
188
325
 
189
- interface TextOptions extends PromptOptions<TextPrompt> {
326
+ interface TextOptions extends PromptOptions<string, TextPrompt> {
190
327
  placeholder?: string;
191
328
  defaultValue?: string;
192
329
  }
193
- declare class TextPrompt extends Prompt {
194
- get valueWithCursor(): any;
330
+ declare class TextPrompt extends Prompt<string> {
331
+ get userInputWithCursor(): string;
195
332
  get cursor(): number;
196
333
  constructor(opts: TextOptions);
197
334
  }
198
335
 
199
336
  declare function isCancel(value: unknown): value is symbol;
200
- declare function block({ input, output, overwrite, hideCursor, }?: {
201
- input?: (NodeJS.ReadStream & {
202
- fd: 0;
203
- }) | undefined;
204
- output?: (NodeJS.WriteStream & {
205
- fd: 1;
206
- }) | undefined;
207
- overwrite?: boolean | undefined;
208
- hideCursor?: boolean | undefined;
209
- }): () => void;
337
+ interface BlockOptions {
338
+ input?: Readable;
339
+ output?: Writable;
340
+ overwrite?: boolean;
341
+ hideCursor?: boolean;
342
+ }
343
+ declare function block({ input, output, overwrite, hideCursor, }?: BlockOptions): () => void;
344
+ declare const getColumns: (output: Writable) => number;
345
+ declare const getRows: (output: Writable) => number;
346
+ declare function wrapTextWithPrefix(output: Writable | undefined, text: string, prefix: string, startPrefix?: string): string;
210
347
 
211
- export { type ClackSettings, ConfirmPrompt, GroupMultiSelectPrompt, MultiSelectPrompt, PasswordPrompt, Prompt, SelectKeyPrompt, SelectPrompt, type ClackState as State, TextPrompt, block, isCancel, updateSettings };
348
+ export { AutocompletePrompt, ConfirmPrompt, DatePrompt, GroupMultiSelectPrompt, MultiSelectPrompt, PasswordPrompt, Prompt, SelectKeyPrompt, SelectPrompt, TextPrompt, block, getColumns, getRows, isCancel, settings, updateSettings, wrapTextWithPrefix };
349
+ export type { AutocompleteOptions, ClackSettings, ConfirmOptions, DateFormat, DateOptions, DateParts, GroupMultiSelectOptions, MultiSelectOptions, PasswordOptions, PromptOptions, SelectKeyOptions, SelectOptions, ClackState as State, TextOptions };