@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,352 +0,0 @@
1
- # 🐨 Consola
2
-
3
- > Elegant Console Wrapper
4
-
5
- [![npm version][npm-version-src]][npm-version-href]
6
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
7
- [![bundle][bundle-src]][bundle-href]
8
-
9
- <!-- [![Codecov][codecov-src]][codecov-href] -->
10
-
11
- ## Why Consola?
12
-
13
- 👌&nbsp; Easy to use<br>
14
- 💅&nbsp; Fancy output with fallback for minimal environments<br>
15
- 🔌&nbsp; Pluggable reporters<br>
16
- 💻&nbsp; Consistent command line interface (CLI) experience<br>
17
- 🏷&nbsp; Tag support<br>
18
- 🚏&nbsp; Redirect `console` and `stdout/stderr` to consola and easily restore redirect.<br>
19
- 🌐&nbsp; Browser support<br>
20
- ⏯&nbsp; Pause/Resume support<br>
21
- 👻&nbsp; Mocking support<br>
22
- 👮‍♂️&nbsp; Spam prevention by throttling logs<br>
23
- ❯&nbsp; Interactive prompt support powered by [`clack`](https://github.com/natemoo-re/clack)<br>
24
-
25
- ## Installation
26
-
27
- Using npm:
28
-
29
- ```bash
30
- npm i consola
31
- ```
32
-
33
- Using yarn:
34
-
35
- ```bash
36
- yarn add consola
37
- ```
38
-
39
- Using pnpm:
40
-
41
- ```bash
42
- pnpm i consola
43
- ```
44
-
45
- ## Getting Started
46
-
47
- ```js
48
- // ESM
49
- import { consola, createConsola } from "consola";
50
-
51
- // CommonJS
52
- const { consola, createConsola } = require("consola");
53
-
54
- consola.info("Using consola 3.0.0");
55
- consola.start("Building project...");
56
- consola.warn("A new version of consola is available: 3.0.1");
57
- consola.success("Project built!");
58
- consola.error(new Error("This is an example error. Everything is fine!"));
59
- consola.box("I am a simple box");
60
- await consola.prompt("Deploy to the production?", {
61
- type: "confirm",
62
- });
63
- ```
64
-
65
- Will display in the terminal:
66
-
67
- ![consola-screenshot](https://github.com/unjs/consola/assets/904724/0e511ee6-2543-43ab-9eda-152f07134d94)
68
-
69
- You can use smaller core builds without fancy reporter to save 80% of the bundle size:
70
-
71
- ```ts
72
- import { consola, createConsola } from "consola/basic";
73
- import { consola, createConsola } from "consola/browser";
74
- import { createConsola } from "consola/core";
75
- ```
76
-
77
- ## Consola Methods
78
-
79
- #### `<type>(logObject)` `<type>(args...)`
80
-
81
- Log to all reporters.
82
-
83
- Example: `consola.info('Message')`
84
-
85
- #### `await prompt(message, { type, cancel })`
86
-
87
- Show an input prompt. Type can either of `text`, `confirm`, `select` or `multiselect`.
88
-
89
- If prompt is canceled by user (with Ctrol+C), default value will be resolved by default. This strategy can be configured by setting `{ cancel: "..." }` option:
90
-
91
- - `"default"` - Resolve the promise with the `default` value or `initial` value.
92
- - `"undefined`" - Resolve the promise with `undefined`.
93
- - `"null"` - Resolve the promise with `null`.
94
- - `"symbol"` - Resolve the promise with a symbol `Symbol.for("cancel")`.
95
- - `"reject"` - Reject the promise with an error.
96
-
97
- See [examples/prompt.ts](./examples/prompt.ts) for usage examples.
98
-
99
- #### `addReporter(reporter)`
100
-
101
- - Aliases: `add`
102
-
103
- Register a custom reporter instance.
104
-
105
- #### `removeReporter(reporter?)`
106
-
107
- - Aliases: `remove`, `clear`
108
-
109
- Remove a registered reporter.
110
-
111
- If no arguments are passed all reporters will be removed.
112
-
113
- #### `setReporters(reporter|reporter[])`
114
-
115
- Replace all reporters.
116
-
117
- #### `create(options)`
118
-
119
- Create a new `Consola` instance and inherit all parent options for defaults.
120
-
121
- #### `withDefaults(defaults)`
122
-
123
- Create a new `Consola` instance with provided defaults
124
-
125
- #### `withTag(tag)`
126
-
127
- - Aliases: `withScope`
128
-
129
- Create a new `Consola` instance with that tag.
130
-
131
- #### `wrapConsole()` `restoreConsole()`
132
-
133
- Globally redirect all `console.log`, etc calls to consola handlers.
134
-
135
- #### `wrapStd()` `restoreStd()`
136
-
137
- Globally redirect all stdout/stderr outputs to consola.
138
-
139
- #### `wrapAll()` `restoreAll()`
140
-
141
- Wrap both, std and console.
142
-
143
- console uses std in the underlying so calling `wrapStd` redirects console too.
144
- Benefit of this function is that things like `console.info` will be correctly redirected to the corresponding type.
145
-
146
- #### `pauseLogs()` `resumeLogs()`
147
-
148
- - Aliases: `pause`/`resume`
149
-
150
- **Globally** pause and resume logs.
151
-
152
- Consola will enqueue all logs when paused and then sends them to the reported when resumed.
153
-
154
- #### `mockTypes`
155
-
156
- - Aliases: `mock`
157
-
158
- Mock all types. Useful for using with tests.
159
-
160
- The first argument passed to `mockTypes` should be a callback function accepting `(typeName, type)` and returning the mocked value:
161
-
162
- ```js
163
- // Jest
164
- consola.mockTypes((typeName, type) => jest.fn());
165
- // Vitest
166
- consola.mockTypes((typeName, type) => vi.fn());
167
- ```
168
-
169
- Please note that with the example above, everything is mocked independently for each type. If you need one mocked fn create it outside:
170
-
171
- ```js
172
- // Jest
173
- const fn = jest.fn();
174
- // Vitest
175
- const fn = vi.fn();
176
- consola.mockTypes(() => fn);
177
- ```
178
-
179
- If callback function returns a _falsy_ value, that type won't be mocked.
180
-
181
- For example if you just need to mock `consola.fatal`:
182
-
183
- ```js
184
- // Jest
185
- consola.mockTypes((typeName) => typeName === "fatal" && jest.fn());
186
- // Vitest
187
- consola.mockTypes((typeName) => typeName === "fatal" && vi.fn());
188
- ```
189
-
190
- **NOTE:** Any instance of consola that inherits the mocked instance, will apply provided callback again.
191
- This way, mocking works for `withTag` scoped loggers without need to extra efforts.
192
-
193
- ## Custom Reporters
194
-
195
- Consola ships with 3 built-in reporters out of the box. A fancy colored reporter by default and fallsback to a basic reporter if running in a testing or CI environment detected using [unjs/std-env](https://github.com/unjs/std-env) and a basic browser reporter.
196
-
197
- You can create a new reporter object that implements `{ log(logObject): () => { } }` interface.
198
-
199
- **Example:** Simple JSON reporter
200
-
201
- ```ts
202
- import { createConsola } from "consola";
203
-
204
- const consola = createConsola({
205
- reporters: [
206
- {
207
- log: (logObj) => {
208
- console.log(JSON.stringify(logObj));
209
- },
210
- },
211
- ],
212
- });
213
-
214
- // Prints {"date":"2023-04-18T12:43:38.693Z","args":["foo bar"],"type":"log","level":2,"tag":""}
215
- consola.log("foo bar");
216
- ```
217
-
218
- ## Log Level
219
-
220
- Consola only shows logs with configured log level or below. (Default is `3`)
221
-
222
- Available log levels:
223
-
224
- - `0`: Fatal and Error
225
- - `1`: Warnings
226
- - `2`: Normal logs
227
- - `3`: Informational logs, success, fail, ready, start, ...
228
- - `4`: Debug logs
229
- - `5`: Trace logs
230
- - `-999`: Silent
231
- - `+999`: Verbose logs
232
-
233
- You can set the log level by either:
234
-
235
- - Passing `level` option to `createConsola`
236
- - Setting `consola.level` on instance
237
- - Using the `CONSOLA_LEVEL` environment variable (not supported for browser and core builds).
238
-
239
- ## Log Types
240
-
241
- Log types are exposed as `consola.[type](...)` and each is a preset of styles and log level.
242
-
243
- A list of all available built-in types is [available here](./src/constants.ts).
244
-
245
- ## Creating a new instance
246
-
247
- Consola has a global instance and is recommended to use everywhere.
248
- In case more control is needed, create a new instance.
249
-
250
- ```js
251
- import { createConsola } from "consola";
252
-
253
- const logger = createConsola({
254
- // level: 4,
255
- // fancy: true | false
256
- // formatOptions: {
257
- // columns: 80,
258
- // colors: false,
259
- // compact: false,
260
- // date: false,
261
- // },
262
- });
263
- ```
264
-
265
- ## Integrations
266
-
267
- ### With jest or vitest
268
-
269
- ```js
270
- describe("your-consola-mock-test", () => {
271
- beforeAll(() => {
272
- // Redirect std and console to consola too
273
- // Calling this once is sufficient
274
- consola.wrapAll();
275
- });
276
-
277
- beforeEach(() => {
278
- // Re-mock consola before each test call to remove
279
- // calls from before
280
- // Jest
281
- consola.mockTypes(() => jest.fn());
282
- // Vitest
283
- consola.mockTypes(() => vi.fn());
284
- });
285
-
286
- test("your test", async () => {
287
- // Some code here
288
-
289
- // Let's retrieve all messages of `consola.log`
290
- // Get the mock and map all calls to their first argument
291
- const consolaMessages = consola.log.mock.calls.map((c) => c[0]);
292
- expect(consolaMessages).toContain("your message");
293
- });
294
- });
295
- ```
296
-
297
- ### With jsdom
298
-
299
- ```js
300
- {
301
- new jsdom.VirtualConsole().sendTo(consola);
302
- }
303
- ```
304
-
305
- ## Console Utils
306
-
307
- ```ts
308
- // ESM
309
- import {
310
- stripAnsi,
311
- centerAlign,
312
- rightAlign,
313
- leftAlign,
314
- align,
315
- box,
316
- colors,
317
- getColor,
318
- colorize,
319
- } from "consola/utils";
320
-
321
- // CommonJS
322
- const { stripAnsi } = require("consola/utils");
323
- ```
324
-
325
- ## Raw logging methods
326
-
327
- Objects sent to the reporter could lead to unexpected output when object is close to internal object structure containing either `message` or `args` props. To enforce the object to be interpreted as pure object, you can use the `raw` method chained to any log type.
328
-
329
- **Example:**
330
-
331
- ```js
332
- // Prints "hello"
333
- consola.log({ message: "hello" });
334
-
335
- // Prints "{ message: 'hello' }"
336
- consola.log.raw({ message: "hello" });
337
- ```
338
-
339
- ## License
340
-
341
- MIT
342
-
343
- <!-- Badges -->
344
-
345
- [npm-version-src]: https://img.shields.io/npm/v/consola?style=flat&colorA=18181B&colorB=F0DB4F
346
- [npm-version-href]: https://npmjs.com/package/consola
347
- [npm-downloads-src]: https://img.shields.io/npm/dm/consola?style=flat&colorA=18181B&colorB=F0DB4F
348
- [npm-downloads-href]: https://npmjs.com/package/consola
349
- [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/consola/main?style=flat&colorA=18181B&colorB=F0DB4F
350
- [codecov-href]: https://codecov.io/gh/unjs/consola
351
- [bundle-src]: https://img.shields.io/bundlephobia/min/consola?style=flat&colorA=18181B&colorB=F0DB4F
352
- [bundle-href]: https://bundlephobia.com/result?p=consola
@@ -1 +0,0 @@
1
- export * from "./dist/basic";
@@ -1 +0,0 @@
1
- export * from "./dist/browser";
@@ -1 +0,0 @@
1
- export * from "./dist/core";
@@ -1,32 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const core = require('./core.cjs');
6
- const basic = require('./shared/consola.DCGIlDNP.cjs');
7
- require('node:util');
8
- require('node:path');
9
-
10
- function createConsola(options = {}) {
11
- let level = core.LogLevels.info;
12
- if (process.env.CONSOLA_LEVEL) {
13
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
14
- }
15
- const consola2 = core.createConsola({
16
- level,
17
- defaults: { level },
18
- stdout: process.stdout,
19
- stderr: process.stderr,
20
- reporters: options.reporters || [new basic.BasicReporter()],
21
- ...options
22
- });
23
- return consola2;
24
- }
25
- const consola = createConsola();
26
-
27
- exports.Consola = core.Consola;
28
- exports.LogLevels = core.LogLevels;
29
- exports.LogTypes = core.LogTypes;
30
- exports.consola = consola;
31
- exports.createConsola = createConsola;
32
- exports.default = consola;
@@ -1,23 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.cjs';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.cjs';
3
-
4
- /**
5
- * Factory function to create a new Consola instance
6
- *
7
- * @param {Partial<ConsolaOptions & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link ConsolaOptions}.
8
- * @returns {ConsolaInstance} A new Consola instance configured with the given options.
9
- */
10
- declare function createConsola(options?: Partial<ConsolaOptions & {
11
- fancy: boolean;
12
- }>): ConsolaInstance;
13
- /**
14
- * Creates and exports a standard instance of Consola with the default configuration.
15
- * This instance can be used directly for logging throughout the application.
16
- *
17
- * @type {ConsolaInstance} consola - The default instance of Consola.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- // @ts-ignore
22
- export = consola;
23
- export { ConsolaInstance, ConsolaOptions, consola, createConsola };
@@ -1,21 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.mjs';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.mjs';
3
-
4
- /**
5
- * Factory function to create a new Consola instance
6
- *
7
- * @param {Partial<ConsolaOptions & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link ConsolaOptions}.
8
- * @returns {ConsolaInstance} A new Consola instance configured with the given options.
9
- */
10
- declare function createConsola(options?: Partial<ConsolaOptions & {
11
- fancy: boolean;
12
- }>): ConsolaInstance;
13
- /**
14
- * Creates and exports a standard instance of Consola with the default configuration.
15
- * This instance can be used directly for logging throughout the application.
16
- *
17
- * @type {ConsolaInstance} consola - The default instance of Consola.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- export { ConsolaInstance, ConsolaOptions, consola, createConsola, consola as default };
@@ -1,23 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.js';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.js';
3
-
4
- /**
5
- * Factory function to create a new Consola instance
6
- *
7
- * @param {Partial<ConsolaOptions & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link ConsolaOptions}.
8
- * @returns {ConsolaInstance} A new Consola instance configured with the given options.
9
- */
10
- declare function createConsola(options?: Partial<ConsolaOptions & {
11
- fancy: boolean;
12
- }>): ConsolaInstance;
13
- /**
14
- * Creates and exports a standard instance of Consola with the default configuration.
15
- * This instance can be used directly for logging throughout the application.
16
- *
17
- * @type {ConsolaInstance} consola - The default instance of Consola.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- // @ts-ignore
22
- export = consola;
23
- export { ConsolaInstance, ConsolaOptions, consola, createConsola };
@@ -1,24 +0,0 @@
1
- import { LogLevels, createConsola as createConsola$1 } from './core.mjs';
2
- export { Consola, LogTypes } from './core.mjs';
3
- import { B as BasicReporter } from './shared/consola.DRwqZj3T.mjs';
4
- import 'node:util';
5
- import 'node:path';
6
-
7
- function createConsola(options = {}) {
8
- let level = LogLevels.info;
9
- if (process.env.CONSOLA_LEVEL) {
10
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
11
- }
12
- const consola2 = createConsola$1({
13
- level,
14
- defaults: { level },
15
- stdout: process.stdout,
16
- stderr: process.stderr,
17
- reporters: options.reporters || [new BasicReporter()],
18
- ...options
19
- });
20
- return consola2;
21
- }
22
- const consola = createConsola();
23
-
24
- export { LogLevels, consola, createConsola, consola as default };
@@ -1,84 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const core = require('./core.cjs');
6
-
7
- class BrowserReporter {
8
- options;
9
- defaultColor;
10
- levelColorMap;
11
- typeColorMap;
12
- constructor(options) {
13
- this.options = { ...options };
14
- this.defaultColor = "#7f8c8d";
15
- this.levelColorMap = {
16
- 0: "#c0392b",
17
- // Red
18
- 1: "#f39c12",
19
- // Yellow
20
- 3: "#00BCD4"
21
- // Cyan
22
- };
23
- this.typeColorMap = {
24
- success: "#2ecc71"
25
- // Green
26
- };
27
- }
28
- _getLogFn(level) {
29
- if (level < 1) {
30
- return console.__error || console.error;
31
- }
32
- if (level === 1) {
33
- return console.__warn || console.warn;
34
- }
35
- return console.__log || console.log;
36
- }
37
- log(logObj) {
38
- const consoleLogFn = this._getLogFn(logObj.level);
39
- const type = logObj.type === "log" ? "" : logObj.type;
40
- const tag = logObj.tag || "";
41
- const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor;
42
- const style = `
43
- background: ${color};
44
- border-radius: 0.5em;
45
- color: white;
46
- font-weight: bold;
47
- padding: 2px 0.5em;
48
- `;
49
- const badge = `%c${[tag, type].filter(Boolean).join(":")}`;
50
- if (typeof logObj.args[0] === "string") {
51
- consoleLogFn(
52
- `${badge}%c ${logObj.args[0]}`,
53
- style,
54
- // Empty string as style resets to default console style
55
- "",
56
- ...logObj.args.slice(1)
57
- );
58
- } else {
59
- consoleLogFn(badge, style, ...logObj.args);
60
- }
61
- }
62
- }
63
-
64
- function createConsola(options = {}) {
65
- const consola2 = core.createConsola({
66
- reporters: options.reporters || [new BrowserReporter({})],
67
- prompt(message, options2 = {}) {
68
- if (options2.type === "confirm") {
69
- return Promise.resolve(confirm(message));
70
- }
71
- return Promise.resolve(prompt(message));
72
- },
73
- ...options
74
- });
75
- return consola2;
76
- }
77
- const consola = createConsola();
78
-
79
- exports.Consola = core.Consola;
80
- exports.LogLevels = core.LogLevels;
81
- exports.LogTypes = core.LogTypes;
82
- exports.consola = consola;
83
- exports.createConsola = createConsola;
84
- exports.default = consola;
@@ -1,23 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.cjs';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.cjs';
3
-
4
- /**
5
- * Creates a new Consola instance configured specifically for browser environments.
6
- * This function sets up default reporters and a prompt method tailored to the browser's dialogue APIs.
7
- *
8
- * @param {Partial<ConsolaOptions>} [options={}] - Optional configuration options.
9
- * The options can override the default reporter and prompt behaviour. See {@link ConsolaOptions}.
10
- * @returns {ConsolaInstance} A new Consola instance optimised for use in browser environments.
11
- */
12
- declare function createConsola(options?: Partial<ConsolaOptions>): ConsolaInstance;
13
- /**
14
- * A standard Consola instance created with browser-specific configurations.
15
- * This instance can be used throughout a browser-based project.
16
- *
17
- * @type {ConsolaInstance} consola - The default browser-configured Consola instance.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- // @ts-ignore
22
- export = consola;
23
- export { ConsolaInstance, ConsolaOptions, consola, createConsola };
@@ -1,21 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.mjs';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.mjs';
3
-
4
- /**
5
- * Creates a new Consola instance configured specifically for browser environments.
6
- * This function sets up default reporters and a prompt method tailored to the browser's dialogue APIs.
7
- *
8
- * @param {Partial<ConsolaOptions>} [options={}] - Optional configuration options.
9
- * The options can override the default reporter and prompt behaviour. See {@link ConsolaOptions}.
10
- * @returns {ConsolaInstance} A new Consola instance optimised for use in browser environments.
11
- */
12
- declare function createConsola(options?: Partial<ConsolaOptions>): ConsolaInstance;
13
- /**
14
- * A standard Consola instance created with browser-specific configurations.
15
- * This instance can be used throughout a browser-based project.
16
- *
17
- * @type {ConsolaInstance} consola - The default browser-configured Consola instance.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- export { ConsolaInstance, ConsolaOptions, consola, createConsola, consola as default };
@@ -1,23 +0,0 @@
1
- import { ConsolaInstance, ConsolaOptions } from './core.js';
2
- export { ConfirmPromptOptions, Consola, ConsolaReporter, FormatOptions, InputLogObject, LogLevel, LogLevels, LogObject, LogType, LogTypes, MultiSelectOptions, PromptOptions, SelectPromptOptions, TextPromptOptions } from './core.js';
3
-
4
- /**
5
- * Creates a new Consola instance configured specifically for browser environments.
6
- * This function sets up default reporters and a prompt method tailored to the browser's dialogue APIs.
7
- *
8
- * @param {Partial<ConsolaOptions>} [options={}] - Optional configuration options.
9
- * The options can override the default reporter and prompt behaviour. See {@link ConsolaOptions}.
10
- * @returns {ConsolaInstance} A new Consola instance optimised for use in browser environments.
11
- */
12
- declare function createConsola(options?: Partial<ConsolaOptions>): ConsolaInstance;
13
- /**
14
- * A standard Consola instance created with browser-specific configurations.
15
- * This instance can be used throughout a browser-based project.
16
- *
17
- * @type {ConsolaInstance} consola - The default browser-configured Consola instance.
18
- */
19
- declare const consola: ConsolaInstance;
20
-
21
- // @ts-ignore
22
- export = consola;
23
- export { ConsolaInstance, ConsolaOptions, consola, createConsola };