@maizzle/framework 6.0.0-rc.0 → 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.
- package/bin/maizzle.mjs +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +32 -0
- package/dist/build.mjs +29 -9
- package/dist/build.mjs.map +1 -1
- package/dist/components/Body.vue +111 -0
- package/dist/components/Button.vue +68 -14
- package/dist/components/CodeBlock.vue +68 -0
- package/dist/components/CodeInline.vue +49 -0
- package/dist/components/Column.vue +86 -0
- package/dist/components/Container.vue +48 -0
- package/dist/components/Divider.vue +28 -0
- package/dist/components/Head.vue +30 -0
- package/dist/components/Heading.vue +28 -0
- package/dist/components/Html.vue +104 -0
- package/dist/components/Image.vue +70 -0
- package/dist/components/Layout.vue +93 -0
- package/dist/components/Link.vue +26 -0
- package/dist/components/Markdown.vue +89 -0
- package/dist/components/Outlook.vue +36 -0
- package/dist/components/Overlap.vue +80 -0
- package/dist/components/Preheader.vue +20 -0
- package/dist/components/Row.vue +91 -0
- package/dist/components/Section.vue +83 -0
- package/dist/components/Spacer.vue +50 -7
- package/dist/components/Text.vue +29 -0
- package/dist/components/Vml.vue +165 -13
- package/dist/composables/renderContext.d.mts +5 -0
- package/dist/composables/renderContext.d.mts.map +1 -1
- package/dist/composables/renderContext.mjs.map +1 -1
- package/dist/composables/usePreviewText.d.mts +24 -0
- package/dist/composables/usePreviewText.d.mts.map +1 -0
- package/dist/composables/usePreviewText.mjs +29 -0
- package/dist/composables/usePreviewText.mjs.map +1 -0
- package/dist/config/index.mjs +25 -1
- package/dist/config/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.mjs +3 -1
- package/dist/node_modules/picomatch/index.mjs +13 -0
- package/dist/node_modules/picomatch/index.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/constants.mjs +174 -0
- package/dist/node_modules/picomatch/lib/constants.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/parse.mjs +1067 -0
- package/dist/node_modules/picomatch/lib/parse.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/picomatch.mjs +304 -0
- package/dist/node_modules/picomatch/lib/picomatch.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/scan.mjs +296 -0
- package/dist/node_modules/picomatch/lib/scan.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/utils.mjs +53 -0
- package/dist/node_modules/picomatch/lib/utils.mjs.map +1 -0
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +24 -7
- package/dist/plugin.mjs.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.mjs +44 -13
- package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
- package/dist/render/createRenderer.d.mts +10 -3
- package/dist/render/createRenderer.d.mts.map +1 -1
- package/dist/render/createRenderer.mjs +147 -10
- package/dist/render/createRenderer.mjs.map +1 -1
- package/dist/render/index.mjs +9 -3
- package/dist/render/index.mjs.map +1 -1
- package/dist/serve.d.mts.map +1 -1
- package/dist/serve.mjs +159 -63
- package/dist/serve.mjs.map +1 -1
- package/dist/server/compatibility.d.mts +1 -2
- package/dist/server/compatibility.d.mts.map +1 -1
- package/dist/server/compatibility.mjs +30 -16
- package/dist/server/compatibility.mjs.map +1 -1
- package/dist/server/email.d.mts +17 -0
- package/dist/server/email.d.mts.map +1 -0
- package/dist/server/email.mjs +41 -0
- package/dist/server/email.mjs.map +1 -0
- package/dist/server/linter.d.mts +1 -2
- package/dist/server/linter.d.mts.map +1 -1
- package/dist/server/linter.mjs +60 -71
- package/dist/server/linter.mjs.map +1 -1
- package/dist/server/ui/App.vue +205 -69
- package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
- package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
- package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
- package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
- package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
- package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
- package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
- package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
- package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
- package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
- package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
- package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
- package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
- package/dist/server/ui/components/ui/toggle/index.ts +3 -3
- package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
- package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
- package/dist/server/ui/main.css +20 -20
- package/dist/server/ui/pages/Home.vue +12 -5
- package/dist/server/ui/pages/Preview.vue +506 -216
- package/dist/transformers/entities.d.mts.map +1 -1
- package/dist/transformers/entities.mjs +3 -0
- package/dist/transformers/entities.mjs.map +1 -1
- package/dist/transformers/filters/defaults.d.mts +6 -0
- package/dist/transformers/filters/defaults.d.mts.map +1 -0
- package/dist/transformers/filters/defaults.mjs +78 -0
- package/dist/transformers/filters/defaults.mjs.map +1 -0
- package/dist/transformers/filters/index.d.mts +22 -0
- package/dist/transformers/filters/index.d.mts.map +1 -0
- package/dist/transformers/filters/index.mjs +67 -0
- package/dist/transformers/filters/index.mjs.map +1 -0
- package/dist/transformers/index.d.mts +11 -9
- package/dist/transformers/index.d.mts.map +1 -1
- package/dist/transformers/index.mjs +19 -11
- package/dist/transformers/index.mjs.map +1 -1
- package/dist/transformers/inlineCSS.d.mts +1 -14
- package/dist/transformers/inlineCSS.d.mts.map +1 -1
- package/dist/transformers/inlineCSS.mjs +25 -34
- package/dist/transformers/inlineCSS.mjs.map +1 -1
- package/dist/transformers/purgeCSS.d.mts.map +1 -1
- package/dist/transformers/purgeCSS.mjs +67 -1
- package/dist/transformers/purgeCSS.mjs.map +1 -1
- package/dist/transformers/sixHex.d.mts +16 -0
- package/dist/transformers/sixHex.d.mts.map +1 -0
- package/dist/transformers/sixHex.mjs +30 -0
- package/dist/transformers/sixHex.mjs.map +1 -0
- package/dist/transformers/tailwindcss.d.mts +6 -2
- package/dist/transformers/tailwindcss.d.mts.map +1 -1
- package/dist/transformers/tailwindcss.mjs +52 -28
- package/dist/transformers/tailwindcss.mjs.map +1 -1
- package/dist/types/config.d.mts +459 -17
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/utils/ast/serializer.d.mts +3 -2
- package/dist/utils/ast/serializer.d.mts.map +1 -1
- package/dist/utils/ast/serializer.mjs +24 -0
- package/dist/utils/ast/serializer.mjs.map +1 -1
- package/dist/utils/detect.d.mts +5 -0
- package/dist/utils/detect.d.mts.map +1 -0
- package/dist/utils/detect.mjs +11 -0
- package/dist/utils/detect.mjs.map +1 -0
- package/node_modules/@clack/core/CHANGELOG.md +87 -4
- package/node_modules/@clack/core/README.md +1 -1
- package/node_modules/@clack/core/dist/index.d.mts +186 -48
- package/node_modules/@clack/core/dist/index.mjs +10 -14
- package/node_modules/@clack/core/dist/index.mjs.map +1 -1
- package/node_modules/@clack/core/package.json +7 -9
- package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
- package/node_modules/@clack/prompts/README.md +66 -3
- package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
- package/node_modules/@clack/prompts/dist/index.mjs +134 -84
- package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
- package/node_modules/@clack/prompts/package.json +14 -10
- package/node_modules/citty/LICENSE +0 -15
- package/node_modules/citty/README.md +166 -69
- package/node_modules/citty/dist/index.d.mts +88 -56
- package/node_modules/citty/dist/index.mjs +399 -437
- package/node_modules/citty/package.json +28 -35
- package/node_modules/giget/README.md +59 -11
- package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
- package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
- package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
- package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
- package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
- package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
- package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
- package/node_modules/giget/dist/cli.d.mts +1 -0
- package/node_modules/giget/dist/cli.mjs +89 -111
- package/node_modules/giget/dist/index.d.mts +46 -35
- package/node_modules/giget/dist/index.mjs +2 -22
- package/node_modules/giget/package.json +32 -45
- package/node_modules/maizzle/README.md +140 -0
- package/node_modules/maizzle/bin/maizzle.mjs +5 -0
- package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
- package/node_modules/maizzle/dist/commands/new.mjs +278 -0
- package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
- package/node_modules/maizzle/dist/index.mjs +44 -0
- package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
- package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
- package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
- package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
- package/node_modules/{@maizzle/cli → maizzle}/package.json +13 -11
- package/node_modules/tinyexec/README.md +49 -3
- package/node_modules/tinyexec/dist/main.d.mts +25 -14
- package/node_modules/tinyexec/dist/main.mjs +148 -100
- package/node_modules/tinyexec/package.json +9 -8
- package/package.json +9 -4
- package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
- package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
- package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
- package/dist/server/ui/components/ui/resizable/index.ts +0 -3
- package/node_modules/@clack/core/dist/index.cjs +0 -15
- package/node_modules/@clack/core/dist/index.cjs.map +0 -1
- package/node_modules/@clack/core/dist/index.d.cts +0 -211
- package/node_modules/@clack/core/dist/index.d.ts +0 -211
- package/node_modules/@clack/prompts/dist/index.cjs +0 -87
- package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
- package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
- package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
- package/node_modules/@maizzle/cli/README.md +0 -58
- package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
- package/node_modules/citty/dist/index.cjs +0 -475
- package/node_modules/citty/dist/index.d.cts +0 -80
- package/node_modules/citty/dist/index.d.ts +0 -80
- package/node_modules/consola/LICENSE +0 -47
- package/node_modules/consola/README.md +0 -352
- package/node_modules/consola/basic.d.ts +0 -1
- package/node_modules/consola/browser.d.ts +0 -1
- package/node_modules/consola/core.d.ts +0 -1
- package/node_modules/consola/dist/basic.cjs +0 -32
- package/node_modules/consola/dist/basic.d.cts +0 -23
- package/node_modules/consola/dist/basic.d.mts +0 -21
- package/node_modules/consola/dist/basic.d.ts +0 -23
- package/node_modules/consola/dist/basic.mjs +0 -24
- package/node_modules/consola/dist/browser.cjs +0 -84
- package/node_modules/consola/dist/browser.d.cts +0 -23
- package/node_modules/consola/dist/browser.d.mts +0 -21
- package/node_modules/consola/dist/browser.d.ts +0 -23
- package/node_modules/consola/dist/browser.mjs +0 -76
- package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
- package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
- package/node_modules/consola/dist/core.cjs +0 -517
- package/node_modules/consola/dist/core.d.cts +0 -459
- package/node_modules/consola/dist/core.d.mts +0 -459
- package/node_modules/consola/dist/core.d.ts +0 -459
- package/node_modules/consola/dist/core.mjs +0 -512
- package/node_modules/consola/dist/index.cjs +0 -663
- package/node_modules/consola/dist/index.d.cts +0 -24
- package/node_modules/consola/dist/index.d.mts +0 -22
- package/node_modules/consola/dist/index.d.ts +0 -24
- package/node_modules/consola/dist/index.mjs +0 -651
- package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
- package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
- package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
- package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
- package/node_modules/consola/dist/utils.cjs +0 -64
- package/node_modules/consola/dist/utils.d.cts +0 -286
- package/node_modules/consola/dist/utils.d.mts +0 -286
- package/node_modules/consola/dist/utils.d.ts +0 -286
- package/node_modules/consola/dist/utils.mjs +0 -54
- package/node_modules/consola/lib/index.cjs +0 -10
- package/node_modules/consola/package.json +0 -136
- package/node_modules/consola/utils.d.ts +0 -1
- package/node_modules/create-maizzle/README.md +0 -86
- package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
- package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
- package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
- package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
- package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
- package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
- package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
- package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
- package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
- package/node_modules/create-maizzle/package.json +0 -47
- package/node_modules/create-maizzle/src/index.js +0 -242
- package/node_modules/defu/LICENSE +0 -21
- package/node_modules/defu/README.md +0 -171
- package/node_modules/defu/dist/defu.cjs +0 -77
- package/node_modules/defu/dist/defu.d.cts +0 -31
- package/node_modules/defu/dist/defu.d.mts +0 -29
- package/node_modules/defu/dist/defu.d.ts +0 -31
- package/node_modules/defu/dist/defu.mjs +0 -69
- package/node_modules/defu/lib/defu.cjs +0 -10
- package/node_modules/defu/lib/defu.d.cts +0 -12
- package/node_modules/defu/package.json +0 -48
- package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
- package/node_modules/node-fetch-native/LICENSE +0 -114
- package/node_modules/node-fetch-native/README.md +0 -225
- package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
- package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
- package/node_modules/node-fetch-native/dist/index.cjs +0 -1
- package/node_modules/node-fetch-native/dist/index.mjs +0 -1
- package/node_modules/node-fetch-native/dist/native.cjs +0 -1
- package/node_modules/node-fetch-native/dist/native.mjs +0 -1
- package/node_modules/node-fetch-native/dist/node.cjs +0 -19
- package/node_modules/node-fetch-native/dist/node.mjs +0 -19
- package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
- package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
- package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
- package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
- package/node_modules/node-fetch-native/index.d.ts +0 -1
- package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
- package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
- package/node_modules/node-fetch-native/lib/index.cjs +0 -11
- package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
- package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
- package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
- package/node_modules/node-fetch-native/lib/native.cjs +0 -11
- package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
- package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
- package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
- package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
- package/node_modules/node-fetch-native/node.d.ts +0 -1
- package/node_modules/node-fetch-native/package.json +0 -138
- package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
- package/node_modules/node-fetch-native/proxy.d.ts +0 -1
- package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
- package/node_modules/nypm/node_modules/citty/README.md +0 -231
- package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
- package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
- package/node_modules/nypm/node_modules/citty/package.json +0 -42
- /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
- /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
|
@@ -1,12 +1,95 @@
|
|
|
1
1
|
# @clack/core
|
|
2
2
|
|
|
3
|
-
##
|
|
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
|
|
4
72
|
|
|
5
73
|
### Patch Changes
|
|
6
74
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
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
|
|
10
93
|
|
|
11
94
|
## 0.4.1
|
|
12
95
|
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
import { Key } from 'node:readline';
|
|
1
2
|
import { Readable, Writable } from 'node:stream';
|
|
2
3
|
|
|
3
4
|
declare const actions: readonly ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
4
5
|
type Action = (typeof actions)[number];
|
|
6
|
+
/** Global settings for Clack programs, stored in memory */
|
|
7
|
+
interface InternalClackSettings {
|
|
8
|
+
actions: Set<Action>;
|
|
9
|
+
aliases: Map<string, Action>;
|
|
10
|
+
messages: {
|
|
11
|
+
cancel: string;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
14
|
+
withGuide: boolean;
|
|
15
|
+
date: {
|
|
16
|
+
monthNames: string[];
|
|
17
|
+
messages: {
|
|
18
|
+
invalidMonth: string;
|
|
19
|
+
required: string;
|
|
20
|
+
invalidDay: (days: number, month: string) => string;
|
|
21
|
+
afterMin: (min: Date) => string;
|
|
22
|
+
beforeMax: (max: Date) => string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
declare const settings: InternalClackSettings;
|
|
5
27
|
interface ClackSettings {
|
|
6
28
|
/**
|
|
7
29
|
* Set custom global aliases for the default actions.
|
|
@@ -10,7 +32,42 @@ interface ClackSettings {
|
|
|
10
32
|
* @param aliases - An object that maps aliases to actions
|
|
11
33
|
* @default { k: 'up', j: 'down', h: 'left', l: 'right', '\x03': 'cancel', 'escape': 'cancel' }
|
|
12
34
|
*/
|
|
13
|
-
aliases
|
|
35
|
+
aliases?: Record<string, Action>;
|
|
36
|
+
/**
|
|
37
|
+
* Custom messages for prompts
|
|
38
|
+
*/
|
|
39
|
+
messages?: {
|
|
40
|
+
/**
|
|
41
|
+
* Custom message to display when a spinner is cancelled
|
|
42
|
+
* @default "Canceled"
|
|
43
|
+
*/
|
|
44
|
+
cancel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Custom message to display when a spinner encounters an error
|
|
47
|
+
* @default "Something went wrong"
|
|
48
|
+
*/
|
|
49
|
+
error?: string;
|
|
50
|
+
};
|
|
51
|
+
withGuide?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Date prompt localization
|
|
54
|
+
*/
|
|
55
|
+
date?: {
|
|
56
|
+
/** Month names for validation messages (January, February, ...) */
|
|
57
|
+
monthNames?: string[];
|
|
58
|
+
messages?: {
|
|
59
|
+
/** Shown when date is missing */
|
|
60
|
+
required?: string;
|
|
61
|
+
/** Shown when month > 12 */
|
|
62
|
+
invalidMonth?: string;
|
|
63
|
+
/** (days, monthName) => message for invalid day */
|
|
64
|
+
invalidDay?: (days: number, month: string) => string;
|
|
65
|
+
/** (min) => message when date is before minDate */
|
|
66
|
+
afterMin?: (min: Date) => string;
|
|
67
|
+
/** (max) => message when date is after maxDate */
|
|
68
|
+
beforeMax?: (max: Date) => string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
14
71
|
}
|
|
15
72
|
declare function updateSettings(updates: ClackSettings): void;
|
|
16
73
|
|
|
@@ -21,30 +78,32 @@ type ClackState = 'initial' | 'active' | 'cancel' | 'submit' | 'error';
|
|
|
21
78
|
/**
|
|
22
79
|
* Typed event emitter for clack
|
|
23
80
|
*/
|
|
24
|
-
interface ClackEvents {
|
|
81
|
+
interface ClackEvents<TValue> {
|
|
25
82
|
initial: (value?: any) => void;
|
|
26
83
|
active: (value?: any) => void;
|
|
27
84
|
cancel: (value?: any) => void;
|
|
28
85
|
submit: (value?: any) => void;
|
|
29
86
|
error: (value?: any) => void;
|
|
30
87
|
cursor: (key?: Action) => void;
|
|
31
|
-
key: (key
|
|
32
|
-
value: (value?:
|
|
88
|
+
key: (key: string | undefined, info: Key) => void;
|
|
89
|
+
value: (value?: TValue) => void;
|
|
90
|
+
userInput: (value: string) => void;
|
|
33
91
|
confirm: (value?: boolean) => void;
|
|
34
92
|
finalize: () => void;
|
|
93
|
+
beforePrompt: () => void;
|
|
35
94
|
}
|
|
36
95
|
|
|
37
|
-
interface PromptOptions<Self extends Prompt
|
|
96
|
+
interface PromptOptions<TValue, Self extends Prompt<TValue>> {
|
|
38
97
|
render(this: Omit<Self, 'prompt'>): string | undefined;
|
|
39
|
-
placeholder?: string;
|
|
40
98
|
initialValue?: any;
|
|
41
|
-
|
|
99
|
+
initialUserInput?: string;
|
|
100
|
+
validate?: ((value: TValue | undefined) => string | Error | undefined) | undefined;
|
|
42
101
|
input?: Readable;
|
|
43
102
|
output?: Writable;
|
|
44
103
|
debug?: boolean;
|
|
45
104
|
signal?: AbortSignal;
|
|
46
105
|
}
|
|
47
|
-
declare class Prompt {
|
|
106
|
+
declare class Prompt<TValue> {
|
|
48
107
|
protected input: Readable;
|
|
49
108
|
protected output: Writable;
|
|
50
109
|
private _abortSignal?;
|
|
@@ -57,8 +116,9 @@ declare class Prompt {
|
|
|
57
116
|
protected _cursor: number;
|
|
58
117
|
state: ClackState;
|
|
59
118
|
error: string;
|
|
60
|
-
value:
|
|
61
|
-
|
|
119
|
+
value: TValue | undefined;
|
|
120
|
+
userInput: string;
|
|
121
|
+
constructor(options: PromptOptions<TValue, Prompt<TValue>>, trackValue?: boolean);
|
|
62
122
|
/**
|
|
63
123
|
* Unsubscribe all listeners
|
|
64
124
|
*/
|
|
@@ -73,40 +133,111 @@ declare class Prompt {
|
|
|
73
133
|
* @param event - The event name
|
|
74
134
|
* @param cb - The callback
|
|
75
135
|
*/
|
|
76
|
-
on<T extends keyof ClackEvents
|
|
136
|
+
on<T extends keyof ClackEvents<TValue>>(event: T, cb: ClackEvents<TValue>[T]): void;
|
|
77
137
|
/**
|
|
78
138
|
* Subscribe to an event once
|
|
79
139
|
* @param event - The event name
|
|
80
140
|
* @param cb - The callback
|
|
81
141
|
*/
|
|
82
|
-
once<T extends keyof ClackEvents
|
|
142
|
+
once<T extends keyof ClackEvents<TValue>>(event: T, cb: ClackEvents<TValue>[T]): void;
|
|
83
143
|
/**
|
|
84
144
|
* Emit an event with data
|
|
85
145
|
* @param event - The event name
|
|
86
146
|
* @param data - The data to pass to the callback
|
|
87
147
|
*/
|
|
88
|
-
emit<T extends keyof ClackEvents
|
|
89
|
-
prompt(): Promise<
|
|
148
|
+
emit<T extends keyof ClackEvents<TValue>>(event: T, ...data: Parameters<ClackEvents<TValue>[T]>): void;
|
|
149
|
+
prompt(): Promise<symbol | TValue | undefined>;
|
|
150
|
+
protected _isActionKey(char: string | undefined, _key: Key): boolean;
|
|
151
|
+
protected _setValue(value: TValue | undefined): void;
|
|
152
|
+
protected _setUserInput(value: string | undefined, write?: boolean): void;
|
|
153
|
+
protected _clearUserInput(): void;
|
|
90
154
|
private onKeypress;
|
|
91
155
|
protected close(): void;
|
|
92
156
|
private restoreCursor;
|
|
93
157
|
private render;
|
|
94
158
|
}
|
|
95
159
|
|
|
96
|
-
interface
|
|
160
|
+
interface OptionLike$1 {
|
|
161
|
+
value: unknown;
|
|
162
|
+
label?: string;
|
|
163
|
+
disabled?: boolean;
|
|
164
|
+
}
|
|
165
|
+
type FilterFunction<T extends OptionLike$1> = (search: string, opt: T) => boolean;
|
|
166
|
+
interface AutocompleteOptions<T extends OptionLike$1> extends PromptOptions<T['value'] | T['value'][], AutocompletePrompt<T>> {
|
|
167
|
+
options: T[] | ((this: AutocompletePrompt<T>) => T[]);
|
|
168
|
+
filter?: FilterFunction<T>;
|
|
169
|
+
multiple?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* When set (non-empty), pressing Tab with no input fills the field with this value
|
|
172
|
+
* and runs the normal filter/selection logic so the user can confirm with Enter.
|
|
173
|
+
* Tab only fills the input when the placeholder matches at least one option under
|
|
174
|
+
* the prompt's filter (so the value remains selectable).
|
|
175
|
+
*/
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
}
|
|
178
|
+
declare class AutocompletePrompt<T extends OptionLike$1> extends Prompt<T['value'] | T['value'][]> {
|
|
179
|
+
#private;
|
|
180
|
+
filteredOptions: T[];
|
|
181
|
+
multiple: boolean;
|
|
182
|
+
isNavigating: boolean;
|
|
183
|
+
selectedValues: Array<T['value']>;
|
|
184
|
+
focusedValue: T['value'] | undefined;
|
|
185
|
+
get cursor(): number;
|
|
186
|
+
get userInputWithCursor(): string;
|
|
187
|
+
get options(): T[];
|
|
188
|
+
constructor(opts: AutocompleteOptions<T>);
|
|
189
|
+
protected _isActionKey(char: string | undefined, key: Key): boolean;
|
|
190
|
+
deselectAll(): void;
|
|
191
|
+
toggleSelected(value: T['value']): void;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
interface ConfirmOptions extends PromptOptions<boolean, ConfirmPrompt> {
|
|
97
195
|
active: string;
|
|
98
196
|
inactive: string;
|
|
99
197
|
initialValue?: boolean;
|
|
100
198
|
}
|
|
101
|
-
declare class ConfirmPrompt extends Prompt {
|
|
199
|
+
declare class ConfirmPrompt extends Prompt<boolean> {
|
|
102
200
|
get cursor(): 0 | 1;
|
|
103
201
|
private get _value();
|
|
104
202
|
constructor(opts: ConfirmOptions);
|
|
105
203
|
}
|
|
106
204
|
|
|
205
|
+
interface SegmentConfig {
|
|
206
|
+
type: 'year' | 'month' | 'day';
|
|
207
|
+
len: number;
|
|
208
|
+
}
|
|
209
|
+
interface DateParts {
|
|
210
|
+
year: string;
|
|
211
|
+
month: string;
|
|
212
|
+
day: string;
|
|
213
|
+
}
|
|
214
|
+
type DateFormat = 'YMD' | 'MDY' | 'DMY';
|
|
215
|
+
interface DateOptions extends PromptOptions<Date, DatePrompt> {
|
|
216
|
+
format?: DateFormat;
|
|
217
|
+
locale?: string;
|
|
218
|
+
separator?: string;
|
|
219
|
+
defaultValue?: Date;
|
|
220
|
+
initialValue?: Date;
|
|
221
|
+
minDate?: Date;
|
|
222
|
+
maxDate?: Date;
|
|
223
|
+
}
|
|
224
|
+
declare class DatePrompt extends Prompt<Date> {
|
|
225
|
+
#private;
|
|
226
|
+
inlineError: string;
|
|
227
|
+
get segmentCursor(): {
|
|
228
|
+
segmentIndex: number;
|
|
229
|
+
positionInSegment: number;
|
|
230
|
+
};
|
|
231
|
+
get segmentValues(): DateParts;
|
|
232
|
+
get segments(): readonly SegmentConfig[];
|
|
233
|
+
get separator(): string;
|
|
234
|
+
get formattedValue(): string;
|
|
235
|
+
constructor(opts: DateOptions);
|
|
236
|
+
}
|
|
237
|
+
|
|
107
238
|
interface GroupMultiSelectOptions<T extends {
|
|
108
239
|
value: any;
|
|
109
|
-
}> extends PromptOptions<GroupMultiSelectPrompt<T>> {
|
|
240
|
+
}> extends PromptOptions<T['value'][], GroupMultiSelectPrompt<T>> {
|
|
110
241
|
options: Record<string, T[]>;
|
|
111
242
|
initialValues?: T['value'][];
|
|
112
243
|
required?: boolean;
|
|
@@ -115,7 +246,7 @@ interface GroupMultiSelectOptions<T extends {
|
|
|
115
246
|
}
|
|
116
247
|
declare class GroupMultiSelectPrompt<T extends {
|
|
117
248
|
value: any;
|
|
118
|
-
}> extends Prompt {
|
|
249
|
+
}> extends Prompt<T['value'][]> {
|
|
119
250
|
#private;
|
|
120
251
|
options: (T & {
|
|
121
252
|
group: string | boolean;
|
|
@@ -127,85 +258,92 @@ declare class GroupMultiSelectPrompt<T extends {
|
|
|
127
258
|
constructor(opts: GroupMultiSelectOptions<T>);
|
|
128
259
|
}
|
|
129
260
|
|
|
130
|
-
interface
|
|
261
|
+
interface OptionLike {
|
|
131
262
|
value: any;
|
|
132
|
-
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
}
|
|
265
|
+
interface MultiSelectOptions<T extends OptionLike> extends PromptOptions<T['value'][], MultiSelectPrompt<T>> {
|
|
133
266
|
options: T[];
|
|
134
267
|
initialValues?: T['value'][];
|
|
135
268
|
required?: boolean;
|
|
136
269
|
cursorAt?: T['value'];
|
|
137
270
|
}
|
|
138
|
-
declare class MultiSelectPrompt<T extends {
|
|
139
|
-
value: any;
|
|
140
|
-
}> extends Prompt {
|
|
271
|
+
declare class MultiSelectPrompt<T extends OptionLike> extends Prompt<T['value'][]> {
|
|
141
272
|
options: T[];
|
|
142
273
|
cursor: number;
|
|
143
274
|
private get _value();
|
|
275
|
+
private get _enabledOptions();
|
|
144
276
|
private toggleAll;
|
|
277
|
+
private toggleInvert;
|
|
145
278
|
private toggleValue;
|
|
146
279
|
constructor(opts: MultiSelectOptions<T>);
|
|
147
280
|
}
|
|
148
281
|
|
|
149
|
-
interface PasswordOptions extends PromptOptions<PasswordPrompt> {
|
|
282
|
+
interface PasswordOptions extends PromptOptions<string, PasswordPrompt> {
|
|
150
283
|
mask?: string;
|
|
151
284
|
}
|
|
152
|
-
declare class PasswordPrompt extends Prompt {
|
|
153
|
-
valueWithCursor: string;
|
|
285
|
+
declare class PasswordPrompt extends Prompt<string> {
|
|
154
286
|
private _mask;
|
|
155
287
|
get cursor(): number;
|
|
156
|
-
get masked():
|
|
288
|
+
get masked(): string;
|
|
289
|
+
get userInputWithCursor(): string;
|
|
290
|
+
clear(): void;
|
|
157
291
|
constructor({ mask, ...opts }: PasswordOptions);
|
|
158
292
|
}
|
|
159
293
|
|
|
160
294
|
interface SelectOptions<T extends {
|
|
161
295
|
value: any;
|
|
162
|
-
|
|
296
|
+
disabled?: boolean;
|
|
297
|
+
}> extends PromptOptions<T['value'], SelectPrompt<T>> {
|
|
163
298
|
options: T[];
|
|
164
299
|
initialValue?: T['value'];
|
|
165
300
|
}
|
|
166
301
|
declare class SelectPrompt<T extends {
|
|
167
302
|
value: any;
|
|
168
|
-
|
|
303
|
+
disabled?: boolean;
|
|
304
|
+
}> extends Prompt<T['value']> {
|
|
169
305
|
options: T[];
|
|
170
306
|
cursor: number;
|
|
171
|
-
private get
|
|
307
|
+
private get _selectedValue();
|
|
172
308
|
private changeValue;
|
|
173
309
|
constructor(opts: SelectOptions<T>);
|
|
174
310
|
}
|
|
175
311
|
|
|
176
312
|
interface SelectKeyOptions<T extends {
|
|
177
|
-
value:
|
|
178
|
-
}> extends PromptOptions<SelectKeyPrompt<T>> {
|
|
313
|
+
value: string;
|
|
314
|
+
}> extends PromptOptions<T['value'], SelectKeyPrompt<T>> {
|
|
179
315
|
options: T[];
|
|
316
|
+
caseSensitive?: boolean;
|
|
180
317
|
}
|
|
181
318
|
declare class SelectKeyPrompt<T extends {
|
|
182
|
-
value:
|
|
183
|
-
}> extends Prompt {
|
|
319
|
+
value: string;
|
|
320
|
+
}> extends Prompt<T['value']> {
|
|
184
321
|
options: T[];
|
|
185
322
|
cursor: number;
|
|
186
323
|
constructor(opts: SelectKeyOptions<T>);
|
|
187
324
|
}
|
|
188
325
|
|
|
189
|
-
interface TextOptions extends PromptOptions<TextPrompt> {
|
|
326
|
+
interface TextOptions extends PromptOptions<string, TextPrompt> {
|
|
190
327
|
placeholder?: string;
|
|
191
328
|
defaultValue?: string;
|
|
192
329
|
}
|
|
193
|
-
declare class TextPrompt extends Prompt {
|
|
194
|
-
get
|
|
330
|
+
declare class TextPrompt extends Prompt<string> {
|
|
331
|
+
get userInputWithCursor(): string;
|
|
195
332
|
get cursor(): number;
|
|
196
333
|
constructor(opts: TextOptions);
|
|
197
334
|
}
|
|
198
335
|
|
|
199
336
|
declare function isCancel(value: unknown): value is symbol;
|
|
200
|
-
|
|
201
|
-
input?:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
337
|
+
interface BlockOptions {
|
|
338
|
+
input?: Readable;
|
|
339
|
+
output?: Writable;
|
|
340
|
+
overwrite?: boolean;
|
|
341
|
+
hideCursor?: boolean;
|
|
342
|
+
}
|
|
343
|
+
declare function block({ input, output, overwrite, hideCursor, }?: BlockOptions): () => void;
|
|
344
|
+
declare const getColumns: (output: Writable) => number;
|
|
345
|
+
declare const getRows: (output: Writable) => number;
|
|
346
|
+
declare function wrapTextWithPrefix(output: Writable | undefined, text: string, prefix: string, startPrefix?: string): string;
|
|
210
347
|
|
|
211
|
-
export {
|
|
348
|
+
export { AutocompletePrompt, ConfirmPrompt, DatePrompt, GroupMultiSelectPrompt, MultiSelectPrompt, PasswordPrompt, Prompt, SelectKeyPrompt, SelectPrompt, TextPrompt, block, getColumns, getRows, isCancel, settings, updateSettings, wrapTextWithPrefix };
|
|
349
|
+
export type { AutocompleteOptions, ClackSettings, ConfirmOptions, DateFormat, DateOptions, DateParts, GroupMultiSelectOptions, MultiSelectOptions, PasswordOptions, PromptOptions, SelectKeyOptions, SelectOptions, ClackState as State, TextOptions };
|