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

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 (214) hide show
  1. package/bin/maizzle.mjs +1 -1
  2. package/dist/build.mjs +2 -1
  3. package/dist/build.mjs.map +1 -1
  4. package/dist/config/index.mjs +7 -0
  5. package/dist/config/index.mjs.map +1 -1
  6. package/dist/plugin.d.mts.map +1 -1
  7. package/dist/plugin.mjs +13 -0
  8. package/dist/plugin.mjs.map +1 -1
  9. package/dist/render/createRenderer.d.mts +2 -0
  10. package/dist/render/createRenderer.d.mts.map +1 -1
  11. package/dist/render/createRenderer.mjs +11 -4
  12. package/dist/render/createRenderer.mjs.map +1 -1
  13. package/dist/render/index.mjs +2 -1
  14. package/dist/render/index.mjs.map +1 -1
  15. package/dist/serve.mjs +2 -1
  16. package/dist/serve.mjs.map +1 -1
  17. package/dist/types/config.d.mts +3 -0
  18. package/dist/types/config.d.mts.map +1 -1
  19. package/dist/utils/detect.d.mts +5 -0
  20. package/dist/utils/detect.d.mts.map +1 -0
  21. package/dist/utils/detect.mjs +11 -0
  22. package/dist/utils/detect.mjs.map +1 -0
  23. package/node_modules/@clack/core/CHANGELOG.md +87 -4
  24. package/node_modules/@clack/core/README.md +1 -1
  25. package/node_modules/@clack/core/dist/index.d.mts +186 -48
  26. package/node_modules/@clack/core/dist/index.mjs +10 -14
  27. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  28. package/node_modules/@clack/core/package.json +7 -9
  29. package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
  30. package/node_modules/@clack/prompts/README.md +66 -3
  31. package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
  32. package/node_modules/@clack/prompts/dist/index.mjs +134 -84
  33. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  34. package/node_modules/@clack/prompts/package.json +14 -10
  35. package/node_modules/citty/LICENSE +0 -15
  36. package/node_modules/citty/README.md +166 -69
  37. package/node_modules/citty/dist/index.d.mts +88 -56
  38. package/node_modules/citty/dist/index.mjs +399 -437
  39. package/node_modules/citty/package.json +28 -35
  40. package/node_modules/giget/README.md +59 -11
  41. package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
  42. package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
  43. package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
  44. package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
  45. package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
  46. package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
  47. package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
  48. package/node_modules/giget/dist/cli.d.mts +1 -0
  49. package/node_modules/giget/dist/cli.mjs +89 -111
  50. package/node_modules/giget/dist/index.d.mts +46 -35
  51. package/node_modules/giget/dist/index.mjs +2 -22
  52. package/node_modules/giget/package.json +32 -45
  53. package/node_modules/maizzle/README.md +140 -0
  54. package/node_modules/maizzle/bin/maizzle.mjs +5 -0
  55. package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
  56. package/node_modules/maizzle/dist/commands/new.mjs +278 -0
  57. package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
  58. package/node_modules/maizzle/dist/index.mjs +44 -0
  59. package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
  60. package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
  61. package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
  62. package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
  63. package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
  64. package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
  65. package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
  66. package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
  67. package/node_modules/{@maizzle/cli → maizzle}/package.json +13 -11
  68. package/node_modules/tinyexec/README.md +49 -3
  69. package/node_modules/tinyexec/dist/main.d.mts +25 -14
  70. package/node_modules/tinyexec/dist/main.mjs +148 -100
  71. package/node_modules/tinyexec/package.json +9 -8
  72. package/package.json +3 -3
  73. package/node_modules/@clack/core/dist/index.cjs +0 -15
  74. package/node_modules/@clack/core/dist/index.cjs.map +0 -1
  75. package/node_modules/@clack/core/dist/index.d.cts +0 -211
  76. package/node_modules/@clack/core/dist/index.d.ts +0 -211
  77. package/node_modules/@clack/prompts/dist/index.cjs +0 -87
  78. package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
  79. package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
  80. package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
  81. package/node_modules/@maizzle/cli/README.md +0 -58
  82. package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
  83. package/node_modules/citty/dist/index.cjs +0 -475
  84. package/node_modules/citty/dist/index.d.cts +0 -80
  85. package/node_modules/citty/dist/index.d.ts +0 -80
  86. package/node_modules/consola/LICENSE +0 -47
  87. package/node_modules/consola/README.md +0 -352
  88. package/node_modules/consola/basic.d.ts +0 -1
  89. package/node_modules/consola/browser.d.ts +0 -1
  90. package/node_modules/consola/core.d.ts +0 -1
  91. package/node_modules/consola/dist/basic.cjs +0 -32
  92. package/node_modules/consola/dist/basic.d.cts +0 -23
  93. package/node_modules/consola/dist/basic.d.mts +0 -21
  94. package/node_modules/consola/dist/basic.d.ts +0 -23
  95. package/node_modules/consola/dist/basic.mjs +0 -24
  96. package/node_modules/consola/dist/browser.cjs +0 -84
  97. package/node_modules/consola/dist/browser.d.cts +0 -23
  98. package/node_modules/consola/dist/browser.d.mts +0 -21
  99. package/node_modules/consola/dist/browser.d.ts +0 -23
  100. package/node_modules/consola/dist/browser.mjs +0 -76
  101. package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  102. package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  103. package/node_modules/consola/dist/core.cjs +0 -517
  104. package/node_modules/consola/dist/core.d.cts +0 -459
  105. package/node_modules/consola/dist/core.d.mts +0 -459
  106. package/node_modules/consola/dist/core.d.ts +0 -459
  107. package/node_modules/consola/dist/core.mjs +0 -512
  108. package/node_modules/consola/dist/index.cjs +0 -663
  109. package/node_modules/consola/dist/index.d.cts +0 -24
  110. package/node_modules/consola/dist/index.d.mts +0 -22
  111. package/node_modules/consola/dist/index.d.ts +0 -24
  112. package/node_modules/consola/dist/index.mjs +0 -651
  113. package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  114. package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  115. package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  116. package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  117. package/node_modules/consola/dist/utils.cjs +0 -64
  118. package/node_modules/consola/dist/utils.d.cts +0 -286
  119. package/node_modules/consola/dist/utils.d.mts +0 -286
  120. package/node_modules/consola/dist/utils.d.ts +0 -286
  121. package/node_modules/consola/dist/utils.mjs +0 -54
  122. package/node_modules/consola/lib/index.cjs +0 -10
  123. package/node_modules/consola/package.json +0 -136
  124. package/node_modules/consola/utils.d.ts +0 -1
  125. package/node_modules/create-maizzle/README.md +0 -86
  126. package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
  127. package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
  128. package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
  129. package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
  130. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
  131. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
  132. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
  133. package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
  134. package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
  135. package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
  136. package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
  137. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
  138. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
  139. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
  140. package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
  141. package/node_modules/create-maizzle/package.json +0 -47
  142. package/node_modules/create-maizzle/src/index.js +0 -242
  143. package/node_modules/defu/LICENSE +0 -21
  144. package/node_modules/defu/README.md +0 -171
  145. package/node_modules/defu/dist/defu.cjs +0 -77
  146. package/node_modules/defu/dist/defu.d.cts +0 -31
  147. package/node_modules/defu/dist/defu.d.mts +0 -29
  148. package/node_modules/defu/dist/defu.d.ts +0 -31
  149. package/node_modules/defu/dist/defu.mjs +0 -69
  150. package/node_modules/defu/lib/defu.cjs +0 -10
  151. package/node_modules/defu/lib/defu.d.cts +0 -12
  152. package/node_modules/defu/package.json +0 -48
  153. package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
  154. package/node_modules/node-fetch-native/LICENSE +0 -114
  155. package/node_modules/node-fetch-native/README.md +0 -225
  156. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
  157. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
  158. package/node_modules/node-fetch-native/dist/index.cjs +0 -1
  159. package/node_modules/node-fetch-native/dist/index.mjs +0 -1
  160. package/node_modules/node-fetch-native/dist/native.cjs +0 -1
  161. package/node_modules/node-fetch-native/dist/native.mjs +0 -1
  162. package/node_modules/node-fetch-native/dist/node.cjs +0 -19
  163. package/node_modules/node-fetch-native/dist/node.mjs +0 -19
  164. package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
  165. package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
  166. package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
  167. package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
  168. package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
  169. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
  170. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
  171. package/node_modules/node-fetch-native/index.d.ts +0 -1
  172. package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
  173. package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
  174. package/node_modules/node-fetch-native/lib/index.cjs +0 -11
  175. package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
  176. package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
  177. package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
  178. package/node_modules/node-fetch-native/lib/native.cjs +0 -11
  179. package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
  180. package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
  181. package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
  182. package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
  183. package/node_modules/node-fetch-native/node.d.ts +0 -1
  184. package/node_modules/node-fetch-native/package.json +0 -138
  185. package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
  186. package/node_modules/node-fetch-native/proxy.d.ts +0 -1
  187. package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
  188. package/node_modules/nypm/node_modules/citty/README.md +0 -231
  189. package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
  190. package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
  191. package/node_modules/nypm/node_modules/citty/package.json +0 -42
  192. /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
  193. /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
  194. /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
  195. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
  196. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
  197. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
  198. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
  199. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
  200. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
  201. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
  202. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
  203. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
  204. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
  205. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
  206. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
  207. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
  208. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
  209. /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
  210. /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
  211. /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
  212. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
  213. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
  214. /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
@@ -1,136 +0,0 @@
1
- {
2
- "name": "consola",
3
- "version": "3.4.2",
4
- "description": "Elegant Console Wrapper",
5
- "keywords": [
6
- "console",
7
- "logger",
8
- "reporter",
9
- "elegant",
10
- "cli",
11
- "universal",
12
- "unified",
13
- "prompt",
14
- "clack",
15
- "format",
16
- "error",
17
- "stacktrace"
18
- ],
19
- "repository": "unjs/consola",
20
- "license": "MIT",
21
- "type": "module",
22
- "exports": {
23
- ".": {
24
- "node": {
25
- "import": {
26
- "types": "./dist/index.d.mts",
27
- "default": "./dist/index.mjs"
28
- },
29
- "require": {
30
- "types": "./dist/index.d.cts",
31
- "default": "./lib/index.cjs"
32
- }
33
- },
34
- "default": {
35
- "import": {
36
- "types": "./dist/browser.d.mts",
37
- "default": "./dist/browser.mjs"
38
- },
39
- "require": {
40
- "types": "./dist/browser.d.cts",
41
- "default": "./dist/browser.cjs"
42
- }
43
- }
44
- },
45
- "./browser": {
46
- "import": {
47
- "types": "./dist/browser.d.mts",
48
- "default": "./dist/browser.mjs"
49
- },
50
- "require": {
51
- "types": "./dist/browser.d.cts",
52
- "default": "./dist/browser.cjs"
53
- }
54
- },
55
- "./basic": {
56
- "node": {
57
- "import": {
58
- "types": "./dist/basic.d.mts",
59
- "default": "./dist/basic.mjs"
60
- },
61
- "require": {
62
- "types": "./dist/basic.d.cts",
63
- "default": "./dist/basic.cjs"
64
- }
65
- },
66
- "default": {
67
- "import": {
68
- "types": "./dist/browser.d.mts",
69
- "default": "./dist/browser.mjs"
70
- },
71
- "require": {
72
- "types": "./dist/browser.d.cts",
73
- "default": "./dist/browser.cjs"
74
- }
75
- }
76
- },
77
- "./core": {
78
- "import": {
79
- "types": "./dist/core.d.mts",
80
- "default": "./dist/core.mjs"
81
- },
82
- "require": {
83
- "types": "./dist/core.d.cts",
84
- "default": "./dist/core.cjs"
85
- }
86
- },
87
- "./utils": {
88
- "import": {
89
- "types": "./dist/utils.d.mts",
90
- "default": "./dist/utils.mjs"
91
- },
92
- "require": {
93
- "types": "./dist/utils.d.cts",
94
- "default": "./dist/utils.cjs"
95
- }
96
- }
97
- },
98
- "main": "./lib/index.cjs",
99
- "module": "./dist/index.mjs",
100
- "browser": "./dist/browser.mjs",
101
- "types": "./dist/index.d.ts",
102
- "files": [
103
- "dist",
104
- "lib",
105
- "*.d.ts"
106
- ],
107
- "scripts": {
108
- "build": "unbuild",
109
- "dev": "vitest",
110
- "lint": "eslint . && prettier -c src examples test",
111
- "lint:fix": "eslint . --fix && prettier -w src examples test",
112
- "release": "pnpm test && pnpm build && changelogen --release --push && npm publish",
113
- "test": "pnpm lint && pnpm vitest run --coverage"
114
- },
115
- "devDependencies": {
116
- "@clack/prompts": "^0.10.0",
117
- "@types/node": "^22.13.10",
118
- "@vitest/coverage-v8": "^3.0.9",
119
- "changelogen": "^0.6.1",
120
- "defu": "^6.1.4",
121
- "eslint": "^9.22.0",
122
- "eslint-config-unjs": "^0.4.2",
123
- "is-unicode-supported": "^2.1.0",
124
- "prettier": "^3.5.3",
125
- "sentencer": "^0.2.1",
126
- "std-env": "^3.8.1",
127
- "string-width": "^7.2.0",
128
- "typescript": "^5.8.2",
129
- "unbuild": "^3.5.0",
130
- "vitest": "^3.0.9"
131
- },
132
- "engines": {
133
- "node": "^14.18.0 || >=16.10.0"
134
- },
135
- "packageManager": "pnpm@10.6.3"
136
- }
@@ -1 +0,0 @@
1
- export * from "./dist/utils";
@@ -1,86 +0,0 @@
1
- <div align="center">
2
- <p>
3
- <a href="https://maizzle.com" target="_blank">
4
- <picture>
5
- <source media="(prefers-color-scheme: dark)" srcset="https://github.com/maizzle/create-maizzle/raw/master/.github/cli-mark-dark.svg">
6
- <img alt="Maizzle" src="https://github.com/maizzle/create-maizzle/raw/master/.github/cli-mark-light.svg" width="300" height="225" style="max-width: 100%;">
7
- </picture>
8
- </a>
9
- </p>
10
- <p>Quickly scaffold a Maizzle project</p>
11
- <div>
12
-
13
- [![Version][npm-version-shield]][npm]
14
- [![Build][github-ci-shield]][github-ci]
15
- [![Downloads][npm-stats-shield]][npm-stats]
16
- [![License][license-shield]][license]
17
-
18
- </div>
19
- </div>
20
-
21
- ## About
22
-
23
- CLI tool to help you quickly start a new Maizzle project.
24
-
25
- ## Usage
26
-
27
- ### Interactive mode
28
-
29
- ```bash
30
- npx create-maizzle
31
- ```
32
-
33
- ### Scaffold a project immediately
34
-
35
- ```bash
36
- npx create-maizzle maizzle/maizzle # user/repo#ref
37
- ```
38
-
39
- ### Specify a target directory
40
-
41
- ```bash
42
- npx create-maizzle maizzle/maizzle my-project
43
- ```
44
-
45
- ### Automatically install dependencies
46
-
47
- ```bash
48
- npx create-maizzle maizzle/maizzle my-project --install # or -i
49
- ```
50
-
51
- ### Use a specific package manager
52
-
53
- ```bash
54
- npx create-maizzle maizzle/maizzle my-project --install --pm bun # or pnpm, yarn
55
- ```
56
-
57
- ## Installation
58
-
59
- You may also install the tool locally:
60
-
61
- ```bash
62
- npm install -g create-maizzle
63
- ```
64
-
65
- This will make the command available globally on your machine:
66
-
67
- ```bash
68
- create-maizzle
69
- ```
70
-
71
- ## Documentation
72
-
73
- Maizzle documentation is available at https://maizzle.com
74
-
75
- ## License
76
-
77
- The Maizzle framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
78
-
79
- [npm]: https://www.npmjs.com/package/create-maizzle
80
- [npm-stats]: https://npm-stat.com/charts.html?package=create-maizzle&from=2024-02-15
81
- [npm-version-shield]: https://img.shields.io/npm/v/create-maizzle.svg
82
- [npm-stats-shield]: https://img.shields.io/npm/dt/create-maizzle.svg?color=4f46e5
83
- [github-ci]: https://github.com/maizzle/create-maizzle/actions
84
- [github-ci-shield]: https://github.com/maizzle/create-maizzle/actions/workflows/nodejs.yml/badge.svg
85
- [license]: ./LICENSE
86
- [license-shield]: https://img.shields.io/npm/l/create-maizzle.svg?color=0e9f6e
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import { main } from '../src/index.js'
3
-
4
- main().catch(console.error)
@@ -1,340 +0,0 @@
1
- # @clack/core
2
-
3
- ## 1.2.0
4
-
5
- ### Minor Changes
6
-
7
- - 9786226: Externalize `fast-string-width` and `fast-wrap-ansi` to avoid double dependencies
8
- - 090902c: Adds `date` prompt with `format` support (YMD, MDY, DMY)
9
-
10
- ### Patch Changes
11
-
12
- - bdf89a5: Adds `placeholder` option to `autocomplete`. When the placeholder is set and the input is empty, pressing `tab` will set the value to `placeholder`.
13
- - 417b451: Only apply autocomplete default filter if it has been explicitly set or if options is not a getter.
14
-
15
- ## 1.1.0
16
-
17
- ### Minor Changes
18
-
19
- - e3333fb: Replaces `picocolors` with Node.js built-in `styleText`.
20
-
21
- ## 1.0.1
22
-
23
- ### Patch Changes
24
-
25
- - 6404dc1: Disallows selection of `disabled` options in autocomplete.
26
- - 2533180: Updates the documentation to mention `userInputWithCursor` when using the `TextPrompt` primitive.
27
-
28
- ## 1.0.0
29
-
30
- ### Major Changes
31
-
32
- - c713fd5: The package is now distributed as ESM-only. In `v0` releases, the package was dual-published as CJS and ESM.
33
-
34
- For existing CJS projects using Node v20+, please see Node's guide on [Loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
35
-
36
- ### Minor Changes
37
-
38
- - 7bc3301: Prompts now have a `userInput` stored separately from their `value`.
39
- - 2837845: Adds suggestion and path prompts
40
- - 729bbb6: Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the `updateSettings` function to support multilingual CLIs.
41
-
42
- This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
43
-
44
- ```ts
45
- // Per-instance customization
46
- const spinner = prompts.spinner({
47
- cancelMessage: "Operación cancelada", // "Operation cancelled" in Spanish
48
- errorMessage: "Se produjo un error", // "An error occurred" in Spanish
49
- });
50
-
51
- // Global customization via updateSettings
52
- prompts.updateSettings({
53
- messages: {
54
- cancel: "Operación cancelada", // "Operation cancelled" in Spanish
55
- error: "Se produjo un error", // "An error occurred" in Spanish
56
- },
57
- });
58
-
59
- // Settings can now be accessed directly
60
- console.log(prompts.settings.messages.cancel); // "Operación cancelada"
61
-
62
- // Direct options take priority over global settings
63
- const spinner = prompts.spinner({
64
- cancelMessage: "Cancelled", // This will be used instead of the global setting
65
- });
66
- ```
67
-
68
- - 55645c2: Support wrapping autocomplete and select prompts.
69
- - f2c2b89: Adds `AutocompletePrompt` to core with comprehensive tests and implement both `autocomplete` and `autocomplete-multiselect` components in prompts package.
70
- - df4eea1: Remove `suggestion` prompt and change `path` prompt to be an autocomplete prompt.
71
- - 1604f97: Add `clearOnError` option to password prompt to automatically clear input when validation fails
72
-
73
- ### Patch Changes
74
-
75
- - 0718b07: fix: export `*Options` types for prompts.
76
- - bfe0dd3: Prevents placeholder from being used as input value in text prompts
77
- - 6868c1c: Adds a new `selectableGroups` boolean to the group multi-select prompt. Using `selectableGroups: false` will disable the ability to select a top-level group, but still allow every child to be selected individually.
78
- - 7df841d: Removed all trailing space in prompt output and fixed various padding rendering bugs.
79
- - a4f5034: Fixes an edge case for placeholder values. Previously, when pressing `enter` on an empty prompt, placeholder values would be ignored. Now, placeholder values are treated as the prompt value.
80
- - b103ad3: Allow disabled options in multi-select and select prompts.
81
- - 71b5029: Add missing nullish checks around values.
82
- - a36292b: Fix "TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)" error happening on Windows for non-tty terminals.
83
- - 1a45f93: Switched from wrap-ansi to fast-wrap-ansi
84
- - 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
85
- - 34f52fe: Validates initial values immediately when using text prompts with initialValue and validate props.
86
- - 94fee2a: Changes `placeholder` to be a visual hint rather than a tabbable value.
87
- - 4f6b3c2: Set initial values of auto complete prompt to first option when multiple is false.
88
- - 8ead5d3: Avoid passing initial values to core when using auto complete prompt
89
- - acc4c3a: Add a new `withGuide` option to all prompts to disable the default clack border
90
- - 68dbf9b: select-key: Fixed wrapping and added new `caseSensitive` option
91
- - 2310b43: Allow custom writables as output stream.
92
- - d98e033: add invert selection for multiselect prompt
93
-
94
- ## 0.4.1
95
-
96
- ### Patch Changes
97
-
98
- - 8093f3c: Adds `Error` support to the `validate` function
99
- - e5ba09a: Fixes a cursor display bug in terminals that do not support the "hidden" escape sequence. See [Issue #127](https://github.com/bombshell-dev/clack/issues/127).
100
- - 8cba8e3: Fixes a rendering bug with cursor positions for `TextPrompt`
101
-
102
- ## 0.4.0
103
-
104
- ### Minor Changes
105
-
106
- - a83d2f8: Adds a new `updateSettings()` function to support new global keybindings.
107
-
108
- `updateSettings()` accepts an `aliases` object that maps custom keys to an action (`up | down | left | right | space | enter | cancel`).
109
-
110
- ```ts
111
- import { updateSettings } from "@clack/core";
112
-
113
- // Support custom keybindings
114
- updateSettings({
115
- aliases: {
116
- w: "up",
117
- a: "left",
118
- s: "down",
119
- d: "right",
120
- },
121
- });
122
- ```
123
-
124
- > [!WARNING]
125
- > In order to enforce consistent, user-friendly defaults across the ecosystem, `updateSettings` does not support disabling Clack's default keybindings.
126
-
127
- - 801246b: Adds a new `signal` option to support programmatic prompt cancellation with an [abort controller](https://kettanaito.com/blog/dont-sleep-on-abort-controller).
128
-
129
- - a83d2f8: Updates default keybindings to support Vim motion shortcuts and map the `escape` key to cancel (`ctrl+c`).
130
-
131
- | alias | action |
132
- | ----- | ------ |
133
- | `k` | up |
134
- | `l` | right |
135
- | `j` | down |
136
- | `h` | left |
137
- | `esc` | cancel |
138
-
139
- ### Patch Changes
140
-
141
- - 51e12bc: Improves types for events and interaction states.
142
-
143
- ## 0.3.5
144
-
145
- ### Patch Changes
146
-
147
- - 4845f4f: Fixes a bug which kept the terminal cursor hidden after a prompt is cancelled
148
- - d7b2fb9: Adds missing `LICENSE` file. Since the `package.json` file has always included `"license": "MIT"`, please consider this a licensing clarification rather than a licensing change.
149
-
150
- ## 0.3.4
151
-
152
- ### Patch Changes
153
-
154
- - a04e418: fix(@clack/core): keyboard input not working after await in spinner
155
- - 4f6fcf5: feat(@clack/core): allow tab completion for placeholders
156
-
157
- ## 0.3.3
158
-
159
- ### Patch Changes
160
-
161
- - cd79076: fix: restore raw mode on unblock
162
-
163
- ## 0.3.2
164
-
165
- ### Patch Changes
166
-
167
- - c96eda5: Enable hard line-wrapping behavior for long words without spaces
168
-
169
- ## 0.3.1
170
-
171
- ### Patch Changes
172
-
173
- - 58a1df1: Fix line duplication bug by automatically wrapping prompts to `process.stdout.columns`
174
-
175
- ## 0.3.0
176
-
177
- ### Minor Changes
178
-
179
- - 8a4a12f: Add `GroupMultiSelect` prompt
180
-
181
- ### Patch Changes
182
-
183
- - 8a4a12f: add `groupMultiselect` prompt
184
-
185
- ## 0.2.1
186
-
187
- ### Patch Changes
188
-
189
- - ec812b6: fix `readline` hang on Windows
190
-
191
- ## 0.2.0
192
-
193
- ### Minor Changes
194
-
195
- - d74dd05: Adds a `selectKey` prompt type
196
- - 54c1bc3: **Breaking Change** `multiselect` has renamed `initialValue` to `initialValues`
197
-
198
- ## 0.1.9
199
-
200
- ### Patch Changes
201
-
202
- - 1251132: Multiselect: return `Value[]` instead of `Option[]`.
203
- - 8994382: Add a password prompt to `@clack/prompts`
204
-
205
- ## 0.1.8
206
-
207
- ### Patch Changes
208
-
209
- - d96071c: Don't mutate `initialValue` in `multiselect`, fix parameter type for `validate()`.
210
-
211
- Credits to @banjo for the bug report and initial PR!
212
-
213
- ## 0.1.7
214
-
215
- ### Patch Changes
216
-
217
- - 6d9e675: Add support for neovim cursor motion (`hjkl`)
218
-
219
- Thanks [@esau-morais](https://github.com/esau-morais) for the assist!
220
-
221
- ## 0.1.6
222
-
223
- ### Patch Changes
224
-
225
- - 7fb5375: Adds a new `defaultValue` option to the text prompt, removes automatic usage of the placeholder value.
226
-
227
- ## 0.1.5
228
-
229
- ### Patch Changes
230
-
231
- - de1314e: Support `required` option for multi-select
232
-
233
- ## 0.1.4
234
-
235
- ### Patch Changes
236
-
237
- - ca77da1: Fix multiselect initial value logic
238
- - 8aed606: Fix `MaxListenersExceededWarning` by detaching `stdin` listeners on close
239
-
240
- ## 0.1.3
241
-
242
- ### Patch Changes
243
-
244
- - a99c458: Support `initialValue` option for text prompt
245
-
246
- ## 0.1.2
247
-
248
- ### Patch Changes
249
-
250
- - Allow isCancel to type guard any unknown value
251
- - 7dcad8f: Allow placeholder to be passed to TextPrompt
252
- - 2242f13: Fix multiselect returning undefined
253
- - b1341d6: Improved placeholder handling
254
-
255
- ## 0.1.1
256
-
257
- ### Patch Changes
258
-
259
- - 4be7dbf: Ensure raw mode is unset on submit
260
- - b480679: Preserve value if validation fails
261
-
262
- ## 0.1.0
263
-
264
- ### Minor Changes
265
-
266
- - 7015ec9: Create new prompt: multi-select
267
-
268
- ## 0.0.12
269
-
270
- ### Patch Changes
271
-
272
- - 9d371c3: Fix rendering bug when using y/n to confirm
273
-
274
- ## 0.0.11
275
-
276
- ### Patch Changes
277
-
278
- - 441d5b7: fix select return undefined
279
- - d20ef2a: Update keywords, URLs
280
- - fe13c2f: fix cursor missing after submit
281
-
282
- ## 0.0.10
283
-
284
- ### Patch Changes
285
-
286
- - a0cb382: Add `main` entrypoint
287
-
288
- ## 0.0.9
289
-
290
- ### Patch Changes
291
-
292
- - Fix node@16 issue (cannot read "createInterface" of undefined)
293
-
294
- ## 0.0.8
295
-
296
- ### Patch Changes
297
-
298
- - a4b5e13: Bug fixes, exposes `block` utility
299
-
300
- ## 0.0.7
301
-
302
- ### Patch Changes
303
-
304
- - Fix cursor bug
305
-
306
- ## 0.0.6
307
-
308
- ### Patch Changes
309
-
310
- - Fix error with character check
311
-
312
- ## 0.0.5
313
-
314
- ### Patch Changes
315
-
316
- - 491f9e0: update readme
317
-
318
- ## 0.0.4
319
-
320
- ### Patch Changes
321
-
322
- - 7372d5c: Fix bug with line deletion
323
-
324
- ## 0.0.3
325
-
326
- ### Patch Changes
327
-
328
- - 5605d28: Do not bundle dependencies (take II)
329
-
330
- ## 0.0.2
331
-
332
- ### Patch Changes
333
-
334
- - 2ee67cb: don't bundle deps
335
-
336
- ## 0.0.1
337
-
338
- ### Patch Changes
339
-
340
- - 306598e: Initial publish, still WIP
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Nate Moore
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,22 +0,0 @@
1
- # `@clack/core`
2
-
3
- Clack contains low-level primitives for implementing your own command-line applications.
4
-
5
- Currently, `TextPrompt`, `SelectPrompt`, and `ConfirmPrompt` are exposed as well as the base `Prompt` class.
6
-
7
- Each `Prompt` accepts a `render` function.
8
-
9
- ```js
10
- import { TextPrompt, isCancel } from '@clack/core';
11
-
12
- const p = new TextPrompt({
13
- render() {
14
- return `What's your name?\n${this.userInputWithCursor}`;
15
- },
16
- });
17
-
18
- const name = await p.prompt();
19
- if (isCancel(name)) {
20
- process.exit(0);
21
- }
22
- ```