@maizzle/framework 6.0.0-rc.1 → 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 +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 +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 +7 -0
  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 +8 -3
  57. package/dist/render/createRenderer.d.mts.map +1 -1
  58. package/dist/render/createRenderer.mjs +146 -10
  59. package/dist/render/createRenderer.mjs.map +1 -1
  60. package/dist/render/index.mjs +6 -3
  61. package/dist/render/index.mjs.map +1 -1
  62. package/dist/serve.d.mts.map +1 -1
  63. package/dist/serve.mjs +157 -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 +446 -21
  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,15 +1,179 @@
1
1
  # @clack/prompts
2
2
 
3
- ## 0.10.1
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)
4
9
 
5
10
  ### Patch Changes
6
11
 
7
- - 11a5dc1: Fixes multiselect only shows hints on the first item in the options list. Now correctly shows hints for all selected options with hint property.
8
- - 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.
9
- - Updated dependencies [30aa7ed]
10
- - Updated dependencies [5dfce8a]
11
- - Updated dependencies [f574297]
12
- - @clack/core@0.4.2
12
+ - 134a1a1: Fix the `path` prompt so `directory: true` correctly enforces directory-only selection while still allowing directory navigation, and add regression tests for both directory and default file selection behavior.
13
+ - bdf89a5: Adds `placeholder` option to `autocomplete`. When the placeholder is set and the input is empty, pressing `tab` will set the value to `placeholder`.
14
+ - 336495a: Apply guide to wrapped multi-line messages in confirm prompt.
15
+ - 9fe8de6: Respect `withGuide: false` in autocomplete and multiselect prompts.
16
+ - 29a50cb: Fix `path` directory mode so pressing Enter with an existing directory `initialValue` submits that current directory instead of the first child option, and add regression coverage for immediate submit and child-directory navigation.
17
+ - Updated dependencies [9786226]
18
+ - Updated dependencies [bdf89a5]
19
+ - Updated dependencies [417b451]
20
+ - Updated dependencies [090902c]
21
+ - @clack/core@1.2.0
22
+
23
+ ## 1.1.0
24
+
25
+ ### Minor Changes
26
+
27
+ - e3333fb: Replaces `picocolors` with Node.js built-in `styleText`.
28
+
29
+ ### Patch Changes
30
+
31
+ - c3666e2: destruct `limitOption` param for better code readability, tweak types definitions
32
+ - ba3df8e: Fixes withGuide support in intro, outro, and cancel messages.
33
+ - Updated dependencies [e3333fb]
34
+ - @clack/core@1.1.0
35
+
36
+ ## 1.0.1
37
+
38
+ ### Patch Changes
39
+
40
+ - 6404dc1: Disallows selection of `disabled` options in autocomplete.
41
+ - 86e36d8: Adds `withGuide` support to select prompt.
42
+ - c697439: Fixes line wrapping behavior in autocomplete.
43
+ - 0ded19c: Simplifies `withGuide` option checks.
44
+ - 0e4ddc9: Fixes `withGuide` support in password and path prompts.
45
+ - 76550d6: Adds `withGuide` support to selectKey prompt.
46
+ - f9b9953: Adds `withGuide` support to password prompt.
47
+ - 0e93ccb: Adds `vertical` arrangement option to `confirm` prompt.
48
+ - 4e9ae13: Adds `withGuide` support to confirm prompt.
49
+ - 0256238: Adds `withGuide` support to spinner prompt.
50
+ - Updated dependencies [6404dc1]
51
+ - Updated dependencies [2533180]
52
+ - @clack/core@1.0.1
53
+
54
+ ## 1.0.0
55
+
56
+ ### Major Changes
57
+
58
+ - c713fd5: The package is now distributed as ESM-only. In `v0` releases, the package was dual-published as CJS and ESM.
59
+
60
+ 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).
61
+
62
+ ### Minor Changes
63
+
64
+ - 415410b: This adds a custom filter function to autocompleteMultiselect. It could be used, for example, to support fuzzy searching logic.
65
+ - 7bc3301: Prompts now have a `userInput` stored separately from their `value`.
66
+ - 8409f2c: feat: add styleFrame option for spinner
67
+ - 2837845: Adds suggestion and path prompts
68
+ - 99c3530: Adds `format` option to the note prompt to allow formatting of individual lines
69
+ - 0aaee4c: Added new `taskLog` prompt for log output which is cleared on success
70
+ - 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.
71
+
72
+ This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
73
+
74
+ ```ts
75
+ // Per-instance customization
76
+ const spinner = prompts.spinner({
77
+ cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
78
+ errorMessage: "Se produjo un error", // "An error occurred" in Spanish
79
+ });
80
+
81
+ // Global customization via updateSettings
82
+ prompts.updateSettings({
83
+ messages: {
84
+ cancel: "Operación cancelada", // "Operation cancelled" in Spanish
85
+ error: "Se produjo un error", // "An error occurred" in Spanish
86
+ },
87
+ });
88
+
89
+ // Settings can now be accessed directly
90
+ console.log(prompts.settings.messages.cancel); // "Operación cancelada"
91
+
92
+ // Direct options take priority over global settings
93
+ const spinner = prompts.spinner({
94
+ cancelMessage: "Cancelled", // This will be used instead of the global setting
95
+ });
96
+ ```
97
+
98
+ - 44df9af: Adds a new `groupSpacing` option to grouped multi-select prompts. If set to an integer greater than 0, it will add that number of new lines between each group.
99
+ - 55645c2: Support wrapping autocomplete and select prompts.
100
+ - 9e5bc6c: Add support for signals in prompts, allowing them to be aborted.
101
+ - f2c2b89: Adds `AutocompletePrompt` to core with comprehensive tests and implement both `autocomplete` and `autocomplete-multiselect` components in prompts package.
102
+ - 38019c7: Updates the API for stopping spinners and progress bars to be clearer
103
+
104
+ Previously, both the spinner and progress bar components used a single `stop` method that accepted a code to indicate success, cancellation, or error. This update separates these into distinct methods: `stop()`, `cancel()`, and `error()`:
105
+
106
+ ```diff
107
+ const spinner = prompts.spinner();
108
+ spinner.start();
109
+
110
+ // Cancelling a spinner
111
+ - spinner.stop(undefined, 1);
112
+ + spinner.cancel();
113
+
114
+ // Stopping with an error
115
+ - spinner.stop(undefined, 2);
116
+ + spinner.error();
117
+ ```
118
+
119
+ As before, you can pass a message to each method to customize the output displayed:
120
+
121
+ ```js
122
+ spinner.cancel("Operation cancelled by user");
123
+ progressBar.error("An error occurred during processing");
124
+ ```
125
+
126
+ - c45b9fb: Adds support for detecting spinner cancellation via CTRL+C. This allows for graceful handling of user interruptions during long-running operations.
127
+ - f10071e: Using the `group` method, task logs can now have groups which themselves can have scrolling windows of logs.
128
+ - df4eea1: Remove `suggestion` prompt and change `path` prompt to be an autocomplete prompt.
129
+ - 76fd17f: Added new `box` prompt for rendering boxed text, similar a note.
130
+ - 9a09318: Adds new `progress` prompt to display a progess-bar
131
+ - 1604f97: Add `clearOnError` option to password prompt to automatically clear input when validation fails
132
+ - 9bd8072: Add a `required` option to autocomplete multiselect.
133
+ - 19558b9: Added support for custom frames in spinner prompt
134
+
135
+ ### Patch Changes
136
+
137
+ - 46dc0a4: Fixes multiselect only shows hints on the first item in the options list. Now correctly shows hints for all selected options with hint property.
138
+ - aea4573: Clamp scrolling windows to 5 rows.
139
+ - bfe0dd3: Prevents placeholder from being used as input value in text prompts
140
+ - 55eb280: Fix placeholder rendering when using autocomplete.
141
+ - 4d1d83b: Fixes rendering of multi-line messages and options in select prompt.
142
+ - 6176ced: Add withGuide support to note prompt
143
+ - 7b009df: Fix spinner clearing too many lines upwards when non-wrapping.
144
+ - 43aed55: Change styling of disabled multi-select options to have strikethrough.
145
+ - 17342d2: Exposes a new `SpinnerResult` type to describe the return type of `spinner`
146
+ - 282b39e: Wrap spinner output to allow for multi-line/wrapped messages.
147
+ - 2feaebb: Fix duplicated logs when scrolling through options with multiline messages by calculating `rowPadding` dynamically based on actual rendered lines instead of using a hardcoded value.
148
+ - 69681ea: Strip destructive ANSI codes from task log messages.
149
+ - b0fa7d8: Add support for wrapped messages in multi line prompts
150
+ - 9999adf: fix note component overflow bug
151
+ - 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.
152
+ - 7df841d: Removed all trailing space in prompt output and fixed various padding rendering bugs.
153
+ - 2839c66: fix(note): hard wrap text to column limit
154
+ - 7a556ad: Updates all prompts to accept a custom `output` and `input` stream
155
+ - 17d3650: Use a default import for picocolors to avoid run time errors in some environments.
156
+ - 7cc8a55: Messages passed to the `stop` method of a spinner no longer have dots stripped.
157
+ - b103ad3: Allow disabled options in multi-select and select prompts.
158
+ - 71b5029: Add missing nullish checks around values.
159
+ - 1a45f93: Switched from wrap-ansi to fast-wrap-ansi
160
+ - f952592: Fixes missing guide when rendering empty log lines.
161
+ - 372b526: Add `clear` method to spinner for stopping and clearing.
162
+ - d25f6d0: fix(note, box): handle CJK correctly
163
+ - 94fee2a: Changes `placeholder` to be a visual hint rather than a tabbable value.
164
+ - 7530af0: Fixes wrapping of cancelled and success messages of select prompt
165
+ - 4c89dd7: chore: use more accurate type to replace any in group select
166
+ - 0b852e1: Handle `stop` calls on spinners which have not yet been started.
167
+ - 42adff8: fix: add missing guide line in autocomplete-multiselect
168
+ - 8e2e30a: fix: fix autocomplete bar color when validate
169
+ - 2048eb1: Fix spinner's dots behavior with custom frames
170
+ - acc4c3a: Add a new `withGuide` option to all prompts to disable the default clack border
171
+ - 9b92161: Show symbol when withGuide is true for log messages
172
+ - 68dbf9b: select-key: Fixed wrapping and added new `caseSensitive` option
173
+ - 09e596c: refactor(progress): remove unnecessary return statement in start function
174
+ - 2310b43: Allow custom writables as output stream.
175
+ - ae84dd0: Update key binding text to show tab/space when navigating, and tab otherwise.
176
+ - Updated dependency on `@clack/core` to `1.0.0`
13
177
 
14
178
  ## 0.10.0
15
179
 
@@ -86,7 +86,7 @@ const projectType = await select({
86
86
  message: 'Pick a project type.',
87
87
  options: [
88
88
  { value: 'ts', label: 'TypeScript' },
89
- { value: 'js', label: 'JavaScript' },
89
+ { value: 'js', label: 'JavaScript', disabled: true },
90
90
  { value: 'coffee', label: 'CoffeeScript', hint: 'oh no' },
91
91
  ],
92
92
  });
@@ -103,13 +103,35 @@ const additionalTools = await multiselect({
103
103
  message: 'Select additional tools.',
104
104
  options: [
105
105
  { value: 'eslint', label: 'ESLint', hint: 'recommended' },
106
- { value: 'prettier', label: 'Prettier' },
106
+ { value: 'prettier', label: 'Prettier', disabled: true },
107
107
  { value: 'gh-action', label: 'GitHub Action' },
108
108
  ],
109
109
  required: false,
110
110
  });
111
111
  ```
112
112
 
113
+ It is also possible to select multiple items arranged into hierarchy by using `groupMultiselect`:
114
+
115
+ ```js
116
+ import { groupMultiselect } from '@clack/prompts';
117
+
118
+ const basket = await groupMultiselect({
119
+ message: 'Select your favorite fruits and vegetables:',
120
+ options: {
121
+ fruits: [
122
+ { value: 'apple', label: 'apple' },
123
+ { value: 'banana', label: 'banana' },
124
+ { value: 'cherry', label: 'cherry' },
125
+ ],
126
+ vegetables: [
127
+ { value: 'carrot', label: 'carrot' },
128
+ { value: 'spinach', label: 'spinach' },
129
+ { value: 'potato', label: 'potato' },
130
+ ]
131
+ }
132
+ });
133
+ ```
134
+
113
135
  ### Spinner
114
136
 
115
137
  The spinner component surfaces a pending action, such as a long-running download or dependency installation.
@@ -123,6 +145,23 @@ s.start('Installing via npm');
123
145
  s.stop('Installed via npm');
124
146
  ```
125
147
 
148
+ ### Progress
149
+
150
+ The progress component extends the spinner component to add a progress bar to visualize the progression of an action.
151
+
152
+ ```js
153
+ import { progress } from '@clack/prompts';
154
+
155
+ const p = progress({ max: 10 });
156
+ p.start('Downloading archive');
157
+ // Do download here
158
+ p.advance(3, 'Downloading (30%)');
159
+ // ...
160
+ p.advance(8, 'Downloading (80%)');
161
+ // ...
162
+ p.stop('Archive downloaded');
163
+ ```
164
+
126
165
  ## Utilities
127
166
 
128
167
  ### Grouping
@@ -164,7 +203,9 @@ console.log(group.name, group.age, group.color);
164
203
  Execute multiple tasks in spinners.
165
204
 
166
205
  ```js
167
- await p.tasks([
206
+ import { tasks } from '@clack/prompts';
207
+
208
+ await tasks([
168
209
  {
169
210
  title: 'Installing via npm',
170
211
  task: async (message) => {
@@ -205,3 +246,25 @@ stream.message((function *() { yield 'Hello'; yield ", World" })(), { symbol: co
205
246
  ```
206
247
 
207
248
  ![clack-log-prompts](https://github.com/bombshell-dev/clack/blob/main/.github/assets/clack-logs.png)
249
+
250
+ ### Task Log
251
+
252
+ When executing a sub-process or a similar sub-task, `taskLog` can be used to render the output continuously and clear it at the end if it was successful.
253
+
254
+ ```js
255
+ import { taskLog } from '@clack/prompts';
256
+
257
+ const log = taskLog({
258
+ title: 'Running npm install'
259
+ });
260
+
261
+ for await (const line of npmInstall()) {
262
+ log.message(line);
263
+ }
264
+
265
+ if (success) {
266
+ log.success('Done!');
267
+ } else {
268
+ log.error('Failed!');
269
+ }
270
+ ```