@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,512 +0,0 @@
1
- const LogLevels = {
2
- silent: Number.NEGATIVE_INFINITY,
3
- fatal: 0,
4
- error: 0,
5
- warn: 1,
6
- log: 2,
7
- info: 3,
8
- success: 3,
9
- fail: 3,
10
- ready: 3,
11
- start: 3,
12
- box: 3,
13
- debug: 4,
14
- trace: 5,
15
- verbose: Number.POSITIVE_INFINITY
16
- };
17
- const LogTypes = {
18
- // Silent
19
- silent: {
20
- level: -1
21
- },
22
- // Level 0
23
- fatal: {
24
- level: LogLevels.fatal
25
- },
26
- error: {
27
- level: LogLevels.error
28
- },
29
- // Level 1
30
- warn: {
31
- level: LogLevels.warn
32
- },
33
- // Level 2
34
- log: {
35
- level: LogLevels.log
36
- },
37
- // Level 3
38
- info: {
39
- level: LogLevels.info
40
- },
41
- success: {
42
- level: LogLevels.success
43
- },
44
- fail: {
45
- level: LogLevels.fail
46
- },
47
- ready: {
48
- level: LogLevels.info
49
- },
50
- start: {
51
- level: LogLevels.info
52
- },
53
- box: {
54
- level: LogLevels.info
55
- },
56
- // Level 4
57
- debug: {
58
- level: LogLevels.debug
59
- },
60
- // Level 5
61
- trace: {
62
- level: LogLevels.trace
63
- },
64
- // Verbose
65
- verbose: {
66
- level: LogLevels.verbose
67
- }
68
- };
69
-
70
- function isPlainObject$1(value) {
71
- if (value === null || typeof value !== "object") {
72
- return false;
73
- }
74
- const prototype = Object.getPrototypeOf(value);
75
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
76
- return false;
77
- }
78
- if (Symbol.iterator in value) {
79
- return false;
80
- }
81
- if (Symbol.toStringTag in value) {
82
- return Object.prototype.toString.call(value) === "[object Module]";
83
- }
84
- return true;
85
- }
86
-
87
- function _defu(baseObject, defaults, namespace = ".", merger) {
88
- if (!isPlainObject$1(defaults)) {
89
- return _defu(baseObject, {}, namespace, merger);
90
- }
91
- const object = Object.assign({}, defaults);
92
- for (const key in baseObject) {
93
- if (key === "__proto__" || key === "constructor") {
94
- continue;
95
- }
96
- const value = baseObject[key];
97
- if (value === null || value === void 0) {
98
- continue;
99
- }
100
- if (merger && merger(object, key, value, namespace)) {
101
- continue;
102
- }
103
- if (Array.isArray(value) && Array.isArray(object[key])) {
104
- object[key] = [...value, ...object[key]];
105
- } else if (isPlainObject$1(value) && isPlainObject$1(object[key])) {
106
- object[key] = _defu(
107
- value,
108
- object[key],
109
- (namespace ? `${namespace}.` : "") + key.toString(),
110
- merger
111
- );
112
- } else {
113
- object[key] = value;
114
- }
115
- }
116
- return object;
117
- }
118
- function createDefu(merger) {
119
- return (...arguments_) => (
120
- // eslint-disable-next-line unicorn/no-array-reduce
121
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
122
- );
123
- }
124
- const defu = createDefu();
125
-
126
- function isPlainObject(obj) {
127
- return Object.prototype.toString.call(obj) === "[object Object]";
128
- }
129
- function isLogObj(arg) {
130
- if (!isPlainObject(arg)) {
131
- return false;
132
- }
133
- if (!arg.message && !arg.args) {
134
- return false;
135
- }
136
- if (arg.stack) {
137
- return false;
138
- }
139
- return true;
140
- }
141
-
142
- let paused = false;
143
- const queue = [];
144
- class Consola {
145
- options;
146
- _lastLog;
147
- _mockFn;
148
- /**
149
- * Creates an instance of Consola with specified options or defaults.
150
- *
151
- * @param {Partial<ConsolaOptions>} [options={}] - Configuration options for the Consola instance.
152
- */
153
- constructor(options = {}) {
154
- const types = options.types || LogTypes;
155
- this.options = defu(
156
- {
157
- ...options,
158
- defaults: { ...options.defaults },
159
- level: _normalizeLogLevel(options.level, types),
160
- reporters: [...options.reporters || []]
161
- },
162
- {
163
- types: LogTypes,
164
- throttle: 1e3,
165
- throttleMin: 5,
166
- formatOptions: {
167
- date: true,
168
- colors: false,
169
- compact: true
170
- }
171
- }
172
- );
173
- for (const type in types) {
174
- const defaults = {
175
- type,
176
- ...this.options.defaults,
177
- ...types[type]
178
- };
179
- this[type] = this._wrapLogFn(defaults);
180
- this[type].raw = this._wrapLogFn(
181
- defaults,
182
- true
183
- );
184
- }
185
- if (this.options.mockFn) {
186
- this.mockTypes();
187
- }
188
- this._lastLog = {};
189
- }
190
- /**
191
- * Gets the current log level of the Consola instance.
192
- *
193
- * @returns {number} The current log level.
194
- */
195
- get level() {
196
- return this.options.level;
197
- }
198
- /**
199
- * Sets the minimum log level that will be output by the instance.
200
- *
201
- * @param {number} level - The new log level to set.
202
- */
203
- set level(level) {
204
- this.options.level = _normalizeLogLevel(
205
- level,
206
- this.options.types,
207
- this.options.level
208
- );
209
- }
210
- /**
211
- * Displays a prompt to the user and returns the response.
212
- * Throw an error if `prompt` is not supported by the current configuration.
213
- *
214
- * @template T
215
- * @param {string} message - The message to display in the prompt.
216
- * @param {T} [opts] - Optional options for the prompt. See {@link PromptOptions}.
217
- * @returns {promise<T>} A promise that infer with the prompt options. See {@link PromptOptions}.
218
- */
219
- prompt(message, opts) {
220
- if (!this.options.prompt) {
221
- throw new Error("prompt is not supported!");
222
- }
223
- return this.options.prompt(message, opts);
224
- }
225
- /**
226
- * Creates a new instance of Consola, inheriting options from the current instance, with possible overrides.
227
- *
228
- * @param {Partial<ConsolaOptions>} options - Optional overrides for the new instance. See {@link ConsolaOptions}.
229
- * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
230
- */
231
- create(options) {
232
- const instance = new Consola({
233
- ...this.options,
234
- ...options
235
- });
236
- if (this._mockFn) {
237
- instance.mockTypes(this._mockFn);
238
- }
239
- return instance;
240
- }
241
- /**
242
- * Creates a new Consola instance with the specified default log object properties.
243
- *
244
- * @param {InputLogObject} defaults - Default properties to include in any log from the new instance. See {@link InputLogObject}.
245
- * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
246
- */
247
- withDefaults(defaults) {
248
- return this.create({
249
- ...this.options,
250
- defaults: {
251
- ...this.options.defaults,
252
- ...defaults
253
- }
254
- });
255
- }
256
- /**
257
- * Creates a new Consola instance with a specified tag, which will be included in every log.
258
- *
259
- * @param {string} tag - The tag to include in each log of the new instance.
260
- * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
261
- */
262
- withTag(tag) {
263
- return this.withDefaults({
264
- tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
265
- });
266
- }
267
- /**
268
- * Adds a custom reporter to the Consola instance.
269
- * Reporters will be called for each log message, depending on their implementation and log level.
270
- *
271
- * @param {ConsolaReporter} reporter - The reporter to add. See {@link ConsolaReporter}.
272
- * @returns {Consola} The current Consola instance.
273
- */
274
- addReporter(reporter) {
275
- this.options.reporters.push(reporter);
276
- return this;
277
- }
278
- /**
279
- * Removes a custom reporter from the Consola instance.
280
- * If no reporter is specified, all reporters will be removed.
281
- *
282
- * @param {ConsolaReporter} reporter - The reporter to remove. See {@link ConsolaReporter}.
283
- * @returns {Consola} The current Consola instance.
284
- */
285
- removeReporter(reporter) {
286
- if (reporter) {
287
- const i = this.options.reporters.indexOf(reporter);
288
- if (i !== -1) {
289
- return this.options.reporters.splice(i, 1);
290
- }
291
- } else {
292
- this.options.reporters.splice(0);
293
- }
294
- return this;
295
- }
296
- /**
297
- * Replaces all reporters of the Consola instance with the specified array of reporters.
298
- *
299
- * @param {ConsolaReporter[]} reporters - The new reporters to set. See {@link ConsolaReporter}.
300
- * @returns {Consola} The current Consola instance.
301
- */
302
- setReporters(reporters) {
303
- this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
304
- return this;
305
- }
306
- wrapAll() {
307
- this.wrapConsole();
308
- this.wrapStd();
309
- }
310
- restoreAll() {
311
- this.restoreConsole();
312
- this.restoreStd();
313
- }
314
- /**
315
- * Overrides console methods with Consola logging methods for consistent logging.
316
- */
317
- wrapConsole() {
318
- for (const type in this.options.types) {
319
- if (!console["__" + type]) {
320
- console["__" + type] = console[type];
321
- }
322
- console[type] = this[type].raw;
323
- }
324
- }
325
- /**
326
- * Restores the original console methods, removing Consola overrides.
327
- */
328
- restoreConsole() {
329
- for (const type in this.options.types) {
330
- if (console["__" + type]) {
331
- console[type] = console["__" + type];
332
- delete console["__" + type];
333
- }
334
- }
335
- }
336
- /**
337
- * Overrides standard output and error streams to redirect them through Consola.
338
- */
339
- wrapStd() {
340
- this._wrapStream(this.options.stdout, "log");
341
- this._wrapStream(this.options.stderr, "log");
342
- }
343
- _wrapStream(stream, type) {
344
- if (!stream) {
345
- return;
346
- }
347
- if (!stream.__write) {
348
- stream.__write = stream.write;
349
- }
350
- stream.write = (data) => {
351
- this[type].raw(String(data).trim());
352
- };
353
- }
354
- /**
355
- * Restores the original standard output and error streams, removing the Consola redirection.
356
- */
357
- restoreStd() {
358
- this._restoreStream(this.options.stdout);
359
- this._restoreStream(this.options.stderr);
360
- }
361
- _restoreStream(stream) {
362
- if (!stream) {
363
- return;
364
- }
365
- if (stream.__write) {
366
- stream.write = stream.__write;
367
- delete stream.__write;
368
- }
369
- }
370
- /**
371
- * Pauses logging, queues incoming logs until resumed.
372
- */
373
- pauseLogs() {
374
- paused = true;
375
- }
376
- /**
377
- * Resumes logging, processing any queued logs.
378
- */
379
- resumeLogs() {
380
- paused = false;
381
- const _queue = queue.splice(0);
382
- for (const item of _queue) {
383
- item[0]._logFn(item[1], item[2]);
384
- }
385
- }
386
- /**
387
- * Replaces logging methods with mocks if a mock function is provided.
388
- *
389
- * @param {ConsolaOptions["mockFn"]} mockFn - The function to use for mocking logging methods. See {@link ConsolaOptions["mockFn"]}.
390
- */
391
- mockTypes(mockFn) {
392
- const _mockFn = mockFn || this.options.mockFn;
393
- this._mockFn = _mockFn;
394
- if (typeof _mockFn !== "function") {
395
- return;
396
- }
397
- for (const type in this.options.types) {
398
- this[type] = _mockFn(type, this.options.types[type]) || this[type];
399
- this[type].raw = this[type];
400
- }
401
- }
402
- _wrapLogFn(defaults, isRaw) {
403
- return (...args) => {
404
- if (paused) {
405
- queue.push([this, defaults, args, isRaw]);
406
- return;
407
- }
408
- return this._logFn(defaults, args, isRaw);
409
- };
410
- }
411
- _logFn(defaults, args, isRaw) {
412
- if ((defaults.level || 0) > this.level) {
413
- return false;
414
- }
415
- const logObj = {
416
- date: /* @__PURE__ */ new Date(),
417
- args: [],
418
- ...defaults,
419
- level: _normalizeLogLevel(defaults.level, this.options.types)
420
- };
421
- if (!isRaw && args.length === 1 && isLogObj(args[0])) {
422
- Object.assign(logObj, args[0]);
423
- } else {
424
- logObj.args = [...args];
425
- }
426
- if (logObj.message) {
427
- logObj.args.unshift(logObj.message);
428
- delete logObj.message;
429
- }
430
- if (logObj.additional) {
431
- if (!Array.isArray(logObj.additional)) {
432
- logObj.additional = logObj.additional.split("\n");
433
- }
434
- logObj.args.push("\n" + logObj.additional.join("\n"));
435
- delete logObj.additional;
436
- }
437
- logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
438
- logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
439
- const resolveLog = (newLog = false) => {
440
- const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
441
- if (this._lastLog.object && repeated > 0) {
442
- const args2 = [...this._lastLog.object.args];
443
- if (repeated > 1) {
444
- args2.push(`(repeated ${repeated} times)`);
445
- }
446
- this._log({ ...this._lastLog.object, args: args2 });
447
- this._lastLog.count = 1;
448
- }
449
- if (newLog) {
450
- this._lastLog.object = logObj;
451
- this._log(logObj);
452
- }
453
- };
454
- clearTimeout(this._lastLog.timeout);
455
- const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
456
- this._lastLog.time = logObj.date;
457
- if (diffTime < this.options.throttle) {
458
- try {
459
- const serializedLog = JSON.stringify([
460
- logObj.type,
461
- logObj.tag,
462
- logObj.args
463
- ]);
464
- const isSameLog = this._lastLog.serialized === serializedLog;
465
- this._lastLog.serialized = serializedLog;
466
- if (isSameLog) {
467
- this._lastLog.count = (this._lastLog.count || 0) + 1;
468
- if (this._lastLog.count > this.options.throttleMin) {
469
- this._lastLog.timeout = setTimeout(
470
- resolveLog,
471
- this.options.throttle
472
- );
473
- return;
474
- }
475
- }
476
- } catch {
477
- }
478
- }
479
- resolveLog(true);
480
- }
481
- _log(logObj) {
482
- for (const reporter of this.options.reporters) {
483
- reporter.log(logObj, {
484
- options: this.options
485
- });
486
- }
487
- }
488
- }
489
- function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
490
- if (input === void 0) {
491
- return defaultLevel;
492
- }
493
- if (typeof input === "number") {
494
- return input;
495
- }
496
- if (types[input] && types[input].level !== void 0) {
497
- return types[input].level;
498
- }
499
- return defaultLevel;
500
- }
501
- Consola.prototype.add = Consola.prototype.addReporter;
502
- Consola.prototype.remove = Consola.prototype.removeReporter;
503
- Consola.prototype.clear = Consola.prototype.removeReporter;
504
- Consola.prototype.withScope = Consola.prototype.withTag;
505
- Consola.prototype.mock = Consola.prototype.mockTypes;
506
- Consola.prototype.pause = Consola.prototype.pauseLogs;
507
- Consola.prototype.resume = Consola.prototype.resumeLogs;
508
- function createConsola(options = {}) {
509
- return new Consola(options);
510
- }
511
-
512
- export { Consola, LogLevels, LogTypes, createConsola };