@maizzle/framework 6.0.0-rc.24 → 6.0.0-rc.25

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 (122) hide show
  1. package/dist/build.js.map +1 -1
  2. package/dist/components/Body.vue +12 -0
  3. package/dist/components/Button.vue +16 -29
  4. package/dist/components/CodeBlock.vue +5 -4
  5. package/dist/components/CodeInline.vue +9 -8
  6. package/dist/components/Column.vue +17 -4
  7. package/dist/components/Container.vue +7 -11
  8. package/dist/components/Hr.vue +1 -1
  9. package/dist/components/Img.vue +39 -22
  10. package/dist/components/Layout.vue +1 -1
  11. package/dist/components/Markdown.vue +9 -14
  12. package/dist/components/QrCode.vue +2 -2
  13. package/dist/components/Section.vue +9 -6
  14. package/dist/components/Text.vue +2 -2
  15. package/dist/components/utils.d.ts +25 -1
  16. package/dist/components/utils.d.ts.map +1 -1
  17. package/dist/components/utils.js +29 -1
  18. package/dist/components/utils.js.map +1 -1
  19. package/dist/components/utils.ts +46 -0
  20. package/dist/composables/useConfig.d.ts.map +1 -1
  21. package/dist/composables/useCurrentTemplate.d.ts.map +1 -1
  22. package/dist/composables/useEvent.d.ts.map +1 -1
  23. package/dist/composables/useFont.js.map +1 -1
  24. package/dist/config/index.js.map +1 -1
  25. package/dist/events/index.d.ts.map +1 -1
  26. package/dist/events/index.js.map +1 -1
  27. package/dist/plaintext.js.map +1 -1
  28. package/dist/plugins/postcss/mergeMediaQueries.js.map +1 -1
  29. package/dist/plugins/postcss/pruneVars.js.map +1 -1
  30. package/dist/plugins/postcss/quoteFontFamilies.d.ts.map +1 -1
  31. package/dist/plugins/postcss/quoteFontFamilies.js.map +1 -1
  32. package/dist/plugins/postcss/removeDeclarations.js.map +1 -1
  33. package/dist/plugins/postcss/resolveProps.d.ts.map +1 -1
  34. package/dist/plugins/postcss/resolveProps.js +0 -3
  35. package/dist/plugins/postcss/resolveProps.js.map +1 -1
  36. package/dist/plugins/postcss/tailwindCleanup.js.map +1 -1
  37. package/dist/prepare.js +1 -1
  38. package/dist/prepare.js.map +1 -1
  39. package/dist/render/active.d.ts.map +1 -1
  40. package/dist/render/createRenderer.d.ts.map +1 -1
  41. package/dist/render/createRenderer.js +3 -7
  42. package/dist/render/createRenderer.js.map +1 -1
  43. package/dist/render/index.js.map +1 -1
  44. package/dist/render/injectFonts.js.map +1 -1
  45. package/dist/render/plugins/codeBlockExtract.d.ts.map +1 -1
  46. package/dist/render/plugins/codeBlockExtract.js.map +1 -1
  47. package/dist/render/plugins/markdownExtract.d.ts.map +1 -1
  48. package/dist/render/plugins/markdownExtract.js.map +1 -1
  49. package/dist/render/plugins/rawExtract.d.ts.map +1 -1
  50. package/dist/render/plugins/rawExtract.js.map +1 -1
  51. package/dist/render/plugins/rowSourceLocation.d.ts.map +1 -1
  52. package/dist/render/plugins/rowSourceLocation.js.map +1 -1
  53. package/dist/serve.js.map +1 -1
  54. package/dist/server/compatibility.d.ts.map +1 -1
  55. package/dist/server/compatibility.js.map +1 -1
  56. package/dist/server/linter.js.map +1 -1
  57. package/dist/server/sfc-utils.js.map +1 -1
  58. package/dist/tests/render/_helpers.d.ts.map +1 -1
  59. package/dist/tests/render/_helpers.js.map +1 -1
  60. package/dist/transformers/addAttributes.js +2 -3
  61. package/dist/transformers/addAttributes.js.map +1 -1
  62. package/dist/transformers/base.d.ts +1 -1
  63. package/dist/transformers/base.d.ts.map +1 -1
  64. package/dist/transformers/base.js +5 -10
  65. package/dist/transformers/base.js.map +1 -1
  66. package/dist/transformers/columnWidth.d.ts.map +1 -1
  67. package/dist/transformers/columnWidth.js +2 -7
  68. package/dist/transformers/columnWidth.js.map +1 -1
  69. package/dist/transformers/entities.js.map +1 -1
  70. package/dist/transformers/filters/defaults.js.map +1 -1
  71. package/dist/transformers/filters/index.js.map +1 -1
  72. package/dist/transformers/format.js.map +1 -1
  73. package/dist/transformers/imgWidth.d.ts +20 -0
  74. package/dist/transformers/imgWidth.d.ts.map +1 -0
  75. package/dist/transformers/imgWidth.js +76 -0
  76. package/dist/transformers/imgWidth.js.map +1 -0
  77. package/dist/transformers/index.d.ts.map +1 -1
  78. package/dist/transformers/index.js +2 -0
  79. package/dist/transformers/index.js.map +1 -1
  80. package/dist/transformers/inlineCss.d.ts +3 -2
  81. package/dist/transformers/inlineCss.d.ts.map +1 -1
  82. package/dist/transformers/inlineCss.js.map +1 -1
  83. package/dist/transformers/inlineLink.js +1 -1
  84. package/dist/transformers/inlineLink.js.map +1 -1
  85. package/dist/transformers/minify.js.map +1 -1
  86. package/dist/transformers/minifyCodeInline.js.map +1 -1
  87. package/dist/transformers/msoPlaceholders.d.ts.map +1 -1
  88. package/dist/transformers/msoPlaceholders.js +2 -7
  89. package/dist/transformers/msoPlaceholders.js.map +1 -1
  90. package/dist/transformers/purgeCss.js.map +1 -1
  91. package/dist/transformers/replaceStrings.js.map +1 -1
  92. package/dist/transformers/safeSelectors.js.map +1 -1
  93. package/dist/transformers/shorthandCss.js.map +1 -1
  94. package/dist/transformers/tailwindComponent.js.map +1 -1
  95. package/dist/transformers/tailwindcss.js +1 -1
  96. package/dist/transformers/tailwindcss.js.map +1 -1
  97. package/dist/transformers/urlQuery.js.map +1 -1
  98. package/dist/types/config.d.ts +5 -4
  99. package/dist/types/config.d.ts.map +1 -1
  100. package/dist/utils/ast/serializer.js.map +1 -1
  101. package/dist/utils/compileTailwindCss.js.map +1 -1
  102. package/dist/utils/componentSources.js.map +1 -1
  103. package/dist/utils/cssBox.d.ts.map +1 -1
  104. package/dist/utils/cssBox.js +2 -7
  105. package/dist/utils/cssBox.js.map +1 -1
  106. package/dist/utils/decodeStyleEntities.js.map +1 -1
  107. package/dist/utils/url.js.map +1 -1
  108. package/dist/utils/watchPaths.js.map +1 -1
  109. package/node_modules/@clack/core/CHANGELOG.md +30 -0
  110. package/node_modules/@clack/core/dist/index.d.mts +109 -3
  111. package/node_modules/@clack/core/dist/index.mjs +972 -17
  112. package/node_modules/@clack/core/package.json +2 -1
  113. package/node_modules/@clack/prompts/CHANGELOG.md +42 -0
  114. package/node_modules/@clack/prompts/README.md +30 -9
  115. package/node_modules/@clack/prompts/dist/index.d.mts +458 -27
  116. package/node_modules/@clack/prompts/dist/index.mjs +1378 -141
  117. package/node_modules/@clack/prompts/package.json +2 -2
  118. package/node_modules/tinyexec/package.json +4 -4
  119. package/package.json +8 -7
  120. package/dist/components/Overlap.vue +0 -156
  121. package/node_modules/@clack/core/dist/index.mjs.map +0 -1
  122. package/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clack/core",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -54,6 +54,7 @@
54
54
  "sisteransi": "^1.0.5"
55
55
  },
56
56
  "devDependencies": {
57
+ "arktype": "^2.2.0",
57
58
  "vitest": "^3.2.4"
58
59
  },
59
60
  "scripts": {
@@ -1,5 +1,47 @@
1
1
  # @clack/prompts
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#548](https://github.com/bombshell-dev/clack/pull/548) [`2356e97`](https://github.com/bombshell-dev/clack/commit/2356e97c1f46007ead55133c3a26910404ef1cfb) Thanks [@43081j](https://github.com/43081j)! - Remove sourcemaps and enable pretty-ish build output.
8
+
9
+ - [#546](https://github.com/bombshell-dev/clack/pull/546) [`56e9d67`](https://github.com/bombshell-dev/clack/commit/56e9d6707715bc858d9c2dbc444230b02813e809) Thanks [@ghostdevv](https://github.com/ghostdevv)! - docs: add jsdoc for `date`, `limit-options`, and `messages`
10
+
11
+ - Updated dependencies [[`2356e97`](https://github.com/bombshell-dev/clack/commit/2356e97c1f46007ead55133c3a26910404ef1cfb)]:
12
+ - @clack/core@1.4.1
13
+
14
+ ## 1.5.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#543](https://github.com/bombshell-dev/clack/pull/543) [`83428ac`](https://github.com/bombshell-dev/clack/commit/83428ac6d8bc5eda87615cc7b1f14e0c8b16e1b6) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds support for Standard Schema validation
19
+
20
+ Prompts accept an optional `validate()` function to validate user input. While a function provides more flexibility and customization over your validation, it can be a bit verbose. To help solve this, there are libraries that provide schema-based validation to make shorthand and type-strict validation substantially easier.
21
+
22
+ Libraries following the [Standard Schema specification](https://github.com/standard-schema/standard-schema) are now natively supported. For example, using [Arktype](https://arktype.io/):
23
+
24
+ ```diff
25
+ import { text } from '@clack/prompts';
26
+ import { type } from 'arktype';
27
+
28
+ const name = await text({
29
+ message: 'Enter your email',
30
+ + validate: type('string.email').describe('Invalid email'),
31
+ });
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - [#542](https://github.com/bombshell-dev/clack/pull/542) [`adb6af9`](https://github.com/bombshell-dev/clack/commit/adb6af9f5fb39408934323a7415beb46b63ecd9a) Thanks [@ghostdevv](https://github.com/ghostdevv)! - docs: add jsdoc for `box`, `group`, and `group-multi-select`
37
+
38
+ - [#534](https://github.com/bombshell-dev/clack/pull/534) [`3dcb31a`](https://github.com/bombshell-dev/clack/commit/3dcb31a7d63827d95a5a52ac630cbd48e3a68364) Thanks [@MattStypa](https://github.com/MattStypa)! - Fixed spaces and uppercase characters in multiline prompt
39
+
40
+ - [#540](https://github.com/bombshell-dev/clack/pull/540) [`3170ed9`](https://github.com/bombshell-dev/clack/commit/3170ed94dc2a6ed7973228d46c664fb7461969ad) Thanks [@ghostdevv](https://github.com/ghostdevv)! - docs: add jsdoc for `autocomplete`, `confirm`, and `path` prompts
41
+
42
+ - Updated dependencies [[`83428ac`](https://github.com/bombshell-dev/clack/commit/83428ac6d8bc5eda87615cc7b1f14e0c8b16e1b6), [`3dcb31a`](https://github.com/bombshell-dev/clack/commit/3dcb31a7d63827d95a5a52ac630cbd48e3a68364)]:
43
+ - @clack/core@1.4.0
44
+
3
45
  ## 1.4.0
4
46
 
5
47
  ### Minor Changes
@@ -81,7 +81,7 @@ const secret = await password({
81
81
 
82
82
  ### Confirm
83
83
 
84
- The confirm component accepts a yes or no answer. The result is a boolean value of `true` or `false`.
84
+ The `confirm` prompt accepts a yes or no choice, returning a boolean value corresponding to the user's selection.
85
85
 
86
86
  ```js
87
87
  import { confirm } from '@clack/prompts';
@@ -93,16 +93,16 @@ const shouldContinue = await confirm({
93
93
 
94
94
  ### Date
95
95
 
96
- The date component accepts a calendar date and returns a `Date` value.
96
+ The `date` prompt provides an interactive date picker, allowing users to navigate between year, month, and day segments and increment/decrement values using keyboard controls.
97
97
 
98
98
  ```js
99
99
  import { date } from '@clack/prompts';
100
100
 
101
- const dueDate = await date({
102
- message: 'Pick a due date.',
103
- format: 'YMD',
104
- minDate: new Date(Date.UTC(2026, 0, 1)),
105
- maxDate: new Date(Date.UTC(2026, 11, 31)),
101
+ const birthday = await date({
102
+ message: 'Pick your birthday',
103
+ minDate: new Date('1900-01-01'),
104
+ initialValue: new Date(),
105
+ maxDate: new Date(),
106
106
  });
107
107
  ```
108
108
 
@@ -125,7 +125,7 @@ const projectType = await select({
125
125
 
126
126
  ### Autocomplete
127
127
 
128
- The autocomplete component lets a user filter a list by typing, then choose one option from the matching results. By default, matching uses each option's `label`, `hint`, and `value`. The result is the selected option's `value`.
128
+ The `autocomplete` prompt combines text input with a searchable list of options. It's perfect for when you have a large list of options and want to help users find what they're looking for quickly.
129
129
 
130
130
  ```js
131
131
  import { autocomplete } from '@clack/prompts';
@@ -142,6 +142,27 @@ const framework = await autocomplete({
142
142
  });
143
143
  ```
144
144
 
145
+ ### Autocomplete Multi-Select
146
+
147
+ The `autocompleteMultiselect` prompt combines the search functionality of [autocomplete](#autocomplete) with the ability to select multiple options.
148
+
149
+ ```js
150
+ import { autocomplete } from '@clack/prompts';
151
+
152
+ const framework = await autocomplete({
153
+ message: 'Search for a framework',
154
+ options: [
155
+ { value: 'next', label: 'Next.js', hint: 'React framework' },
156
+ { value: 'astro', label: 'Astro', hint: 'Content-focused' },
157
+ { value: 'svelte', label: 'SvelteKit', hint: 'Compile-time framework' },
158
+ { value: 'remix', label: 'Remix', hint: 'Full stack framework' },
159
+ { value: 'nuxt', label: 'Nuxt', hint: 'Vue framework' },
160
+ ],
161
+ placeholder: 'Type to search...',
162
+ maxItems: 5,
163
+ });
164
+ ```
165
+
145
166
  ### Select Key
146
167
 
147
168
  The `selectKey` component lets a user choose an option by pressing its single-character string `value` key directly.
@@ -226,7 +247,7 @@ const bio = await multiline({
226
247
 
227
248
  ### Path
228
249
 
229
- The path component offers filesystem path suggestions and returns the selected path as a string. When `directory: true` is set, only directories can be selected.
250
+ The `path` prompt extends [`autocomplete`](#autocomplete) to provide file and directory suggestions.
230
251
 
231
252
  ```js
232
253
  import { path } from '@clack/prompts';