@maizzle/framework 6.0.0-rc.1 → 6.0.0-rc.11
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 +6 -3
- 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 +78 -0
- package/dist/components/Container.vue +53 -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/Img.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 +84 -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/usePreheader.d.mts +24 -0
- package/dist/composables/usePreheader.d.mts.map +1 -0
- package/dist/composables/usePreheader.mjs +29 -0
- package/dist/composables/usePreheader.mjs.map +1 -0
- package/dist/config/defaults.mjs +1 -3
- package/dist/config/defaults.mjs.map +1 -1
- package/dist/config/index.mjs +7 -0
- 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/resolveProps.d.mts +8 -0
- package/dist/plugins/postcss/resolveProps.d.mts.map +1 -0
- package/dist/plugins/postcss/resolveProps.mjs +144 -0
- package/dist/plugins/postcss/resolveProps.mjs.map +1 -0
- package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.mjs +46 -13
- package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
- package/dist/render/createRenderer.d.mts +8 -3
- package/dist/render/createRenderer.d.mts.map +1 -1
- package/dist/render/createRenderer.mjs +146 -10
- package/dist/render/createRenderer.mjs.map +1 -1
- package/dist/render/index.mjs +6 -3
- package/dist/render/index.mjs.map +1 -1
- package/dist/serve.d.mts.map +1 -1
- package/dist/serve.mjs +157 -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 +206 -70
- 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 +32 -36
- 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 +54 -30
- package/dist/transformers/tailwindcss.mjs.map +1 -1
- package/dist/types/config.d.mts +436 -23
- 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 +253 -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 +14 -12
- 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 +17 -13
- 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,76 +1,75 @@
|
|
|
1
1
|
import { createRequire as e } from "node:module";
|
|
2
|
-
import { spawn as t } from "node:child_process";
|
|
3
|
-
import { delimiter as
|
|
4
|
-
import { cwd as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { spawn as t, spawnSync as n } from "node:child_process";
|
|
3
|
+
import { delimiter as r, dirname as i, normalize as a, resolve as o } from "node:path";
|
|
4
|
+
import { cwd as s } from "node:process";
|
|
5
|
+
import { pipeline as c } from "node:stream/promises";
|
|
6
|
+
import { PassThrough as l } from "node:stream";
|
|
7
|
+
import u from "node:readline";
|
|
7
8
|
//#region \0rolldown/runtime.js
|
|
8
|
-
var
|
|
9
|
-
var
|
|
9
|
+
var d = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
10
|
+
var f = /* @__PURE__ */ e(import.meta.url);
|
|
10
11
|
//#endregion
|
|
11
12
|
//#region src/env.ts
|
|
12
|
-
const
|
|
13
|
-
const
|
|
13
|
+
const p = /^path$/i;
|
|
14
|
+
const m = {
|
|
14
15
|
key: "PATH",
|
|
15
16
|
value: ""
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function h(e) {
|
|
18
19
|
for (const t in e) {
|
|
19
|
-
if (!Object.prototype.hasOwnProperty.call(e, t) || !
|
|
20
|
+
if (!Object.prototype.hasOwnProperty.call(e, t) || !p.test(t)) continue;
|
|
20
21
|
const n = e[t];
|
|
21
|
-
if (!n) return
|
|
22
|
+
if (!n) return m;
|
|
22
23
|
return {
|
|
23
24
|
key: t,
|
|
24
25
|
value: n
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
return
|
|
28
|
+
return m;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
function g(e, t) {
|
|
31
|
+
const n = t.value.split(r);
|
|
32
|
+
const a = [];
|
|
32
33
|
let s = e;
|
|
33
34
|
let c;
|
|
34
35
|
do {
|
|
35
|
-
|
|
36
|
+
a.push(o(s, "node_modules", ".bin"));
|
|
36
37
|
c = s;
|
|
37
|
-
s =
|
|
38
|
+
s = i(s);
|
|
38
39
|
} while (s !== c);
|
|
39
|
-
|
|
40
|
+
a.push(i(process.execPath));
|
|
41
|
+
const l = a.concat(n).join(r);
|
|
40
42
|
return {
|
|
41
43
|
key: t.key,
|
|
42
44
|
value: l
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
function
|
|
47
|
+
function _(e, t) {
|
|
46
48
|
const n = {
|
|
47
49
|
...process.env,
|
|
48
50
|
...t
|
|
49
51
|
};
|
|
50
|
-
const r =
|
|
52
|
+
const r = g(e, h(n));
|
|
51
53
|
n[r.key] = r.value;
|
|
52
54
|
return n;
|
|
53
55
|
}
|
|
54
56
|
//#endregion
|
|
55
57
|
//#region src/stream.ts
|
|
56
|
-
const
|
|
58
|
+
const v = (e) => {
|
|
57
59
|
let t = e.length;
|
|
58
|
-
const n = new
|
|
60
|
+
const n = new l();
|
|
59
61
|
const r = () => {
|
|
60
|
-
if (--t === 0) n.
|
|
62
|
+
if (--t === 0) n.end();
|
|
61
63
|
};
|
|
62
|
-
for (const t of e) {
|
|
63
|
-
t.pipe(n, { end: false });
|
|
64
|
-
t.on("end", r);
|
|
65
|
-
}
|
|
64
|
+
for (const t of e) c(t, n, { end: false }).then(r).catch(r);
|
|
66
65
|
return n;
|
|
67
66
|
};
|
|
68
67
|
//#endregion
|
|
69
68
|
//#region node_modules/isexe/windows.js
|
|
70
|
-
var
|
|
69
|
+
var y = /* @__PURE__ */ d(((e, t) => {
|
|
71
70
|
t.exports = a;
|
|
72
71
|
a.sync = o;
|
|
73
|
-
var n =
|
|
72
|
+
var n = f("fs");
|
|
74
73
|
function r(e, t) {
|
|
75
74
|
var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
|
|
76
75
|
if (!n) return true;
|
|
@@ -97,10 +96,10 @@ var _ = /* @__PURE__ */ l(((e, t) => {
|
|
|
97
96
|
}));
|
|
98
97
|
//#endregion
|
|
99
98
|
//#region node_modules/isexe/mode.js
|
|
100
|
-
var
|
|
99
|
+
var b = /* @__PURE__ */ d(((e, t) => {
|
|
101
100
|
t.exports = r;
|
|
102
101
|
r.sync = i;
|
|
103
|
-
var n =
|
|
102
|
+
var n = f("fs");
|
|
104
103
|
function r(e, t, r) {
|
|
105
104
|
n.stat(e, function(e, n) {
|
|
106
105
|
r(e, e ? false : a(n, t));
|
|
@@ -127,11 +126,11 @@ var v = /* @__PURE__ */ l(((e, t) => {
|
|
|
127
126
|
}));
|
|
128
127
|
//#endregion
|
|
129
128
|
//#region node_modules/isexe/index.js
|
|
130
|
-
var
|
|
131
|
-
|
|
129
|
+
var x = /* @__PURE__ */ d(((e, t) => {
|
|
130
|
+
f("fs");
|
|
132
131
|
var n;
|
|
133
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) n =
|
|
134
|
-
else n =
|
|
132
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) n = y();
|
|
133
|
+
else n = b();
|
|
135
134
|
t.exports = r;
|
|
136
135
|
r.sync = i;
|
|
137
136
|
function r(e, t, i) {
|
|
@@ -169,11 +168,11 @@ var y = /* @__PURE__ */ l(((e, t) => {
|
|
|
169
168
|
}));
|
|
170
169
|
//#endregion
|
|
171
170
|
//#region node_modules/which/which.js
|
|
172
|
-
var
|
|
171
|
+
var S = /* @__PURE__ */ d(((e, t) => {
|
|
173
172
|
const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
174
|
-
const r =
|
|
173
|
+
const r = f("path");
|
|
175
174
|
const i = n ? ";" : ":";
|
|
176
|
-
const a =
|
|
175
|
+
const a = x();
|
|
177
176
|
const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
|
|
178
177
|
const s = (e, t) => {
|
|
179
178
|
const r = t.colon || i;
|
|
@@ -241,7 +240,7 @@ var b = /* @__PURE__ */ l(((e, t) => {
|
|
|
241
240
|
}));
|
|
242
241
|
//#endregion
|
|
243
242
|
//#region node_modules/path-key/index.js
|
|
244
|
-
var
|
|
243
|
+
var C = /* @__PURE__ */ d(((e, t) => {
|
|
245
244
|
const n = (e = {}) => {
|
|
246
245
|
const t = e.env || process.env;
|
|
247
246
|
if ((e.platform || process.platform) !== "win32") return "PATH";
|
|
@@ -252,10 +251,10 @@ var x = /* @__PURE__ */ l(((e, t) => {
|
|
|
252
251
|
}));
|
|
253
252
|
//#endregion
|
|
254
253
|
//#region node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
255
|
-
var
|
|
256
|
-
const n =
|
|
257
|
-
const r =
|
|
258
|
-
const i =
|
|
254
|
+
var w = /* @__PURE__ */ d(((e, t) => {
|
|
255
|
+
const n = f("path");
|
|
256
|
+
const r = S();
|
|
257
|
+
const i = C();
|
|
259
258
|
function a(e, t) {
|
|
260
259
|
const a = e.options.env || process.env;
|
|
261
260
|
const o = process.cwd();
|
|
@@ -283,7 +282,7 @@ var S = /* @__PURE__ */ l(((e, t) => {
|
|
|
283
282
|
}));
|
|
284
283
|
//#endregion
|
|
285
284
|
//#region node_modules/cross-spawn/lib/util/escape.js
|
|
286
|
-
var
|
|
285
|
+
var T = /* @__PURE__ */ d(((e, t) => {
|
|
287
286
|
const n = /([()\][%!^"`<>&|;, *?])/g;
|
|
288
287
|
function r(e) {
|
|
289
288
|
e = e.replace(n, "^$1");
|
|
@@ -303,13 +302,13 @@ var C = /* @__PURE__ */ l(((e, t) => {
|
|
|
303
302
|
}));
|
|
304
303
|
//#endregion
|
|
305
304
|
//#region node_modules/shebang-regex/index.js
|
|
306
|
-
var
|
|
305
|
+
var E = /* @__PURE__ */ d(((e, t) => {
|
|
307
306
|
t.exports = /^#!(.*)/;
|
|
308
307
|
}));
|
|
309
308
|
//#endregion
|
|
310
309
|
//#region node_modules/shebang-command/index.js
|
|
311
|
-
var
|
|
312
|
-
const n =
|
|
310
|
+
var D = /* @__PURE__ */ d(((e, t) => {
|
|
311
|
+
const n = E();
|
|
313
312
|
t.exports = (e = "") => {
|
|
314
313
|
const t = e.match(n);
|
|
315
314
|
if (!t) return null;
|
|
@@ -321,9 +320,9 @@ var T = /* @__PURE__ */ l(((e, t) => {
|
|
|
321
320
|
}));
|
|
322
321
|
//#endregion
|
|
323
322
|
//#region node_modules/cross-spawn/lib/util/readShebang.js
|
|
324
|
-
var
|
|
325
|
-
const n =
|
|
326
|
-
const r =
|
|
323
|
+
var O = /* @__PURE__ */ d(((e, t) => {
|
|
324
|
+
const n = f("fs");
|
|
325
|
+
const r = D();
|
|
327
326
|
function i(e) {
|
|
328
327
|
const t = 150;
|
|
329
328
|
const i = Buffer.alloc(t);
|
|
@@ -339,11 +338,11 @@ var E = /* @__PURE__ */ l(((e, t) => {
|
|
|
339
338
|
}));
|
|
340
339
|
//#endregion
|
|
341
340
|
//#region node_modules/cross-spawn/lib/parse.js
|
|
342
|
-
var
|
|
343
|
-
const n =
|
|
344
|
-
const r =
|
|
345
|
-
const i =
|
|
346
|
-
const a =
|
|
341
|
+
var k = /* @__PURE__ */ d(((e, t) => {
|
|
342
|
+
const n = f("path");
|
|
343
|
+
const r = w();
|
|
344
|
+
const i = T();
|
|
345
|
+
const a = O();
|
|
347
346
|
const o = process.platform === "win32";
|
|
348
347
|
const s = /\.(?:com|exe)$/i;
|
|
349
348
|
const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
@@ -357,7 +356,7 @@ var D = /* @__PURE__ */ l(((e, t) => {
|
|
|
357
356
|
}
|
|
358
357
|
return e.file;
|
|
359
358
|
}
|
|
360
|
-
function
|
|
359
|
+
function u(e) {
|
|
361
360
|
if (!o) return e;
|
|
362
361
|
const t = l(e);
|
|
363
362
|
const r = !s.test(t);
|
|
@@ -377,7 +376,7 @@ var D = /* @__PURE__ */ l(((e, t) => {
|
|
|
377
376
|
}
|
|
378
377
|
return e;
|
|
379
378
|
}
|
|
380
|
-
function
|
|
379
|
+
function d(e, t, n) {
|
|
381
380
|
if (t && !Array.isArray(t)) {
|
|
382
381
|
n = t;
|
|
383
382
|
t = null;
|
|
@@ -394,13 +393,13 @@ var D = /* @__PURE__ */ l(((e, t) => {
|
|
|
394
393
|
args: t
|
|
395
394
|
}
|
|
396
395
|
};
|
|
397
|
-
return n.shell ? r :
|
|
396
|
+
return n.shell ? r : u(r);
|
|
398
397
|
}
|
|
399
|
-
t.exports =
|
|
398
|
+
t.exports = d;
|
|
400
399
|
}));
|
|
401
400
|
//#endregion
|
|
402
401
|
//#region node_modules/cross-spawn/lib/enoent.js
|
|
403
|
-
var
|
|
402
|
+
var A = /* @__PURE__ */ d(((e, t) => {
|
|
404
403
|
const n = process.platform === "win32";
|
|
405
404
|
function r(e, t) {
|
|
406
405
|
return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
|
|
@@ -439,10 +438,10 @@ var O = /* @__PURE__ */ l(((e, t) => {
|
|
|
439
438
|
}));
|
|
440
439
|
//#endregion
|
|
441
440
|
//#region node_modules/cross-spawn/index.js
|
|
442
|
-
var
|
|
443
|
-
const n =
|
|
444
|
-
const r =
|
|
445
|
-
const i =
|
|
441
|
+
var j = /* @__PURE__ */ d(((e, t) => {
|
|
442
|
+
const n = f("child_process");
|
|
443
|
+
const r = k();
|
|
444
|
+
const i = A();
|
|
446
445
|
function a(e, t, a) {
|
|
447
446
|
const o = r(e, t, a);
|
|
448
447
|
const s = n.spawn(o.command, o.args, o.options);
|
|
@@ -463,10 +462,8 @@ var k = /* @__PURE__ */ l(((e, t) => {
|
|
|
463
462
|
}));
|
|
464
463
|
//#endregion
|
|
465
464
|
//#region src/non-zero-exit-error.ts
|
|
466
|
-
var
|
|
467
|
-
var
|
|
468
|
-
result;
|
|
469
|
-
output;
|
|
465
|
+
var M = j();
|
|
466
|
+
var N = class extends Error {
|
|
470
467
|
get exitCode() {
|
|
471
468
|
if (this.result.exitCode !== null) return this.result.exitCode;
|
|
472
469
|
}
|
|
@@ -478,18 +475,20 @@ var j = class extends Error {
|
|
|
478
475
|
};
|
|
479
476
|
//#endregion
|
|
480
477
|
//#region src/main.ts
|
|
481
|
-
const
|
|
478
|
+
const P = /\r?\n/;
|
|
479
|
+
const F = {
|
|
482
480
|
timeout: void 0,
|
|
483
481
|
persist: false
|
|
484
482
|
};
|
|
485
|
-
const
|
|
486
|
-
|
|
483
|
+
const I = { timeout: void 0 };
|
|
484
|
+
const L = { windowsHide: true };
|
|
485
|
+
function R(e, t) {
|
|
487
486
|
return {
|
|
488
|
-
command:
|
|
487
|
+
command: a(e),
|
|
489
488
|
args: t ?? []
|
|
490
489
|
};
|
|
491
490
|
}
|
|
492
|
-
function
|
|
491
|
+
function z(e) {
|
|
493
492
|
const t = new AbortController();
|
|
494
493
|
for (const n of e) {
|
|
495
494
|
if (n.aborted) {
|
|
@@ -503,12 +502,14 @@ function F(e) {
|
|
|
503
502
|
}
|
|
504
503
|
return t.signal;
|
|
505
504
|
}
|
|
506
|
-
async function
|
|
505
|
+
async function B(e) {
|
|
507
506
|
let t = "";
|
|
508
|
-
|
|
507
|
+
try {
|
|
508
|
+
for await (const n of e) t += n.toString();
|
|
509
|
+
} catch {}
|
|
509
510
|
return t;
|
|
510
511
|
}
|
|
511
|
-
var
|
|
512
|
+
var V = class {
|
|
512
513
|
_process;
|
|
513
514
|
_aborted = false;
|
|
514
515
|
_options;
|
|
@@ -528,7 +529,7 @@ var L = class {
|
|
|
528
529
|
}
|
|
529
530
|
constructor(e, t, n) {
|
|
530
531
|
this._options = {
|
|
531
|
-
...
|
|
532
|
+
...F,
|
|
532
533
|
...n
|
|
533
534
|
};
|
|
534
535
|
this._command = e;
|
|
@@ -547,7 +548,7 @@ var L = class {
|
|
|
547
548
|
return this._process?.killed === true;
|
|
548
549
|
}
|
|
549
550
|
pipe(e, t, n) {
|
|
550
|
-
return
|
|
551
|
+
return W(e, t, {
|
|
551
552
|
...n,
|
|
552
553
|
stdin: this
|
|
553
554
|
});
|
|
@@ -558,29 +559,30 @@ var L = class {
|
|
|
558
559
|
const t = [];
|
|
559
560
|
if (this._streamErr) t.push(this._streamErr);
|
|
560
561
|
if (this._streamOut) t.push(this._streamOut);
|
|
561
|
-
const n =
|
|
562
|
-
const r =
|
|
562
|
+
const n = v(t);
|
|
563
|
+
const r = u.createInterface({ input: n });
|
|
563
564
|
for await (const e of r) yield e.toString();
|
|
564
565
|
await this._processClosed;
|
|
565
566
|
e.removeAllListeners();
|
|
566
567
|
if (this._thrownError) throw this._thrownError;
|
|
567
|
-
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
568
|
+
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new N(this);
|
|
568
569
|
}
|
|
569
570
|
async _waitForOutput() {
|
|
570
571
|
const e = this._process;
|
|
571
572
|
if (!e) throw new Error("No process was started");
|
|
572
|
-
const [t, n] = await Promise.all([this._streamOut ?
|
|
573
|
+
const [t, n] = await Promise.all([this._streamOut ? B(this._streamOut) : "", this._streamErr ? B(this._streamErr) : ""]);
|
|
573
574
|
await this._processClosed;
|
|
574
|
-
|
|
575
|
+
const { stdin: r } = this._options;
|
|
576
|
+
if (r && typeof r !== "string") await r;
|
|
575
577
|
e.removeAllListeners();
|
|
576
578
|
if (this._thrownError) throw this._thrownError;
|
|
577
|
-
const
|
|
579
|
+
const i = {
|
|
578
580
|
stderr: n,
|
|
579
581
|
stdout: t,
|
|
580
582
|
exitCode: this.exitCode
|
|
581
583
|
};
|
|
582
|
-
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
583
|
-
return
|
|
584
|
+
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new N(this, i);
|
|
585
|
+
return i;
|
|
584
586
|
}
|
|
585
587
|
then(e, t) {
|
|
586
588
|
return this._waitForOutput().then(e, t);
|
|
@@ -588,10 +590,10 @@ var L = class {
|
|
|
588
590
|
_streamOut;
|
|
589
591
|
_streamErr;
|
|
590
592
|
spawn() {
|
|
591
|
-
const e =
|
|
593
|
+
const e = s();
|
|
592
594
|
const n = this._options;
|
|
593
595
|
const r = {
|
|
594
|
-
...
|
|
596
|
+
...L,
|
|
595
597
|
...n.nodeOptions
|
|
596
598
|
};
|
|
597
599
|
const i = [];
|
|
@@ -599,19 +601,20 @@ var L = class {
|
|
|
599
601
|
if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
|
|
600
602
|
if (n.signal !== void 0) i.push(n.signal);
|
|
601
603
|
if (n.persist === true) r.detached = true;
|
|
602
|
-
if (i.length > 0) r.signal =
|
|
603
|
-
r.env =
|
|
604
|
-
const { command: a, args:
|
|
605
|
-
const c = (0,
|
|
604
|
+
if (i.length > 0) r.signal = z(i);
|
|
605
|
+
r.env = _(e, r.env);
|
|
606
|
+
const { command: a, args: o } = R(this._command, this._args);
|
|
607
|
+
const c = (0, M._parse)(a, o, r);
|
|
606
608
|
const l = t(c.command, c.args, c.options);
|
|
607
609
|
if (l.stderr) this._streamErr = l.stderr;
|
|
608
610
|
if (l.stdout) this._streamOut = l.stdout;
|
|
609
611
|
this._process = l;
|
|
610
612
|
l.once("error", this._onError);
|
|
611
613
|
l.once("close", this._onClose);
|
|
612
|
-
if (
|
|
613
|
-
const {
|
|
614
|
-
if (e)
|
|
614
|
+
if (l.stdin) {
|
|
615
|
+
const { stdin: e } = n;
|
|
616
|
+
if (typeof e === "string") l.stdin.end(e);
|
|
617
|
+
else e?.process?.stdout?.pipe(l.stdin);
|
|
615
618
|
}
|
|
616
619
|
}
|
|
617
620
|
_resetState() {
|
|
@@ -632,11 +635,56 @@ var L = class {
|
|
|
632
635
|
if (this._resolveClose) this._resolveClose();
|
|
633
636
|
};
|
|
634
637
|
};
|
|
635
|
-
|
|
636
|
-
const
|
|
638
|
+
function H(e, t, r) {
|
|
639
|
+
const i = {
|
|
640
|
+
...I,
|
|
641
|
+
...r
|
|
642
|
+
};
|
|
643
|
+
const a = s();
|
|
644
|
+
const o = {
|
|
645
|
+
windowsHide: true,
|
|
646
|
+
...i.nodeOptions
|
|
647
|
+
};
|
|
648
|
+
if (i.timeout !== void 0) o.timeout = i.timeout;
|
|
649
|
+
o.env = _(a, o.env);
|
|
650
|
+
const { command: c, args: l } = R(e, t);
|
|
651
|
+
const u = (0, M._parse)(c, l, o);
|
|
652
|
+
const d = n(u.command, u.args, u.options);
|
|
653
|
+
if (d.error) throw d.error;
|
|
654
|
+
const f = d.stdout?.toString() ?? "";
|
|
655
|
+
const p = d.stderr?.toString() ?? "";
|
|
656
|
+
const m = d.status ?? void 0;
|
|
657
|
+
const h = d.signal != null;
|
|
658
|
+
const g = {
|
|
659
|
+
stdout: f,
|
|
660
|
+
stderr: p,
|
|
661
|
+
get exitCode() {
|
|
662
|
+
return m;
|
|
663
|
+
},
|
|
664
|
+
get pid() {
|
|
665
|
+
return d.pid;
|
|
666
|
+
},
|
|
667
|
+
get killed() {
|
|
668
|
+
return h;
|
|
669
|
+
},
|
|
670
|
+
*[Symbol.iterator]() {
|
|
671
|
+
for (const e of [f, p]) {
|
|
672
|
+
if (!e) continue;
|
|
673
|
+
const t = e.split(P);
|
|
674
|
+
if (t[t.length - 1] === "") t.pop();
|
|
675
|
+
yield* t;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
if (i.throwOnError && m !== 0 && m !== void 0) throw new N(g, g);
|
|
680
|
+
return g;
|
|
681
|
+
}
|
|
682
|
+
const U = (e, t, n) => {
|
|
683
|
+
const r = new V(e, t, n);
|
|
637
684
|
r.spawn();
|
|
638
685
|
return r;
|
|
639
686
|
};
|
|
640
|
-
const
|
|
687
|
+
const W = U;
|
|
688
|
+
const G = H;
|
|
641
689
|
//#endregion
|
|
642
|
-
export {
|
|
690
|
+
export { V as ExecProcess, N as NonZeroExitError, W as exec, G as execSync, U as x, H as xSync };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinyexec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A minimal library for executing processes in Node",
|
|
6
6
|
"main": "./dist/main.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dev": "tsdown --watch",
|
|
17
17
|
"format": "prettier --write src",
|
|
18
18
|
"format:check": "prettier --check src",
|
|
19
|
-
"lint": "eslint src",
|
|
19
|
+
"lint": "eslint src && publint",
|
|
20
20
|
"prepare": "npm run build",
|
|
21
21
|
"test": "npm run build && vitest run"
|
|
22
22
|
},
|
|
@@ -40,15 +40,16 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@eslint/js": "^10.0.1",
|
|
42
42
|
"@types/cross-spawn": "^6.0.6",
|
|
43
|
-
"@types/node": "^25.
|
|
44
|
-
"@vitest/coverage-v8": "^4.
|
|
43
|
+
"@types/node": "^25.5.2",
|
|
44
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
45
45
|
"cross-spawn": "^7.0.6",
|
|
46
|
-
"eslint": "^10.0
|
|
46
|
+
"eslint": "^10.2.0",
|
|
47
47
|
"prettier": "^3.8.1",
|
|
48
|
+
"publint": "^0.3.18",
|
|
48
49
|
"rollup-plugin-license": "^3.7.0",
|
|
49
|
-
"tsdown": "^0.21.
|
|
50
|
-
"typescript": "^
|
|
51
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"tsdown": "^0.21.7",
|
|
51
|
+
"typescript": "^6.0.2",
|
|
52
|
+
"typescript-eslint": "^8.58.0",
|
|
52
53
|
"vitest": "^4.0.7"
|
|
53
54
|
},
|
|
54
55
|
"exports": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maizzle/framework",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.11",
|
|
4
4
|
"description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,38 +30,41 @@
|
|
|
30
30
|
"release": "npm run build && npx np"
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": [
|
|
33
|
-
"
|
|
33
|
+
"maizzle"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@tailwindcss/
|
|
38
|
-
"@
|
|
39
|
-
"@unhead/vue": "^2.1.4",
|
|
36
|
+
"@tailwindcss/postcss": "^4.2.2",
|
|
37
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
38
|
+
"@unhead/vue": "^3.0.4",
|
|
40
39
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
41
40
|
"@vitest/coverage-v8": "^4.0.18",
|
|
42
41
|
"@vueuse/core": "^14.2.1",
|
|
43
42
|
"caniemail": "^1.0.5",
|
|
44
43
|
"class-variance-authority": "^0.7.1",
|
|
45
44
|
"clsx": "^2.1.1",
|
|
46
|
-
"
|
|
45
|
+
"color-shorthand-hex-to-six-digit": "^5.1.3",
|
|
46
|
+
"css-select": "^7.0.0",
|
|
47
47
|
"defu": "^6.1.4",
|
|
48
|
-
"dom-serializer": "^
|
|
49
|
-
"domhandler": "^
|
|
48
|
+
"dom-serializer": "^3.0.0",
|
|
49
|
+
"domhandler": "^6.0.1",
|
|
50
50
|
"email-comb": "^7.1.3",
|
|
51
51
|
"html-crush": "^6.1.3",
|
|
52
|
-
"
|
|
52
|
+
"html-to-image": "^1.11.13",
|
|
53
|
+
"htmlparser2": "^12.0.0",
|
|
53
54
|
"is-url-superb": "^6.1.0",
|
|
54
55
|
"jiti": "^2.6.1",
|
|
55
56
|
"juice": "^11.1.1",
|
|
56
57
|
"lucide-vue-next": "^1.0.0",
|
|
58
|
+
"maizzle": "latest",
|
|
59
|
+
"markdown-exit": "^1.0.0-beta.9",
|
|
60
|
+
"nodemailer": "^8.0.5",
|
|
57
61
|
"ora": "^9.3.0",
|
|
58
62
|
"oxfmt": "^0.35.0",
|
|
59
63
|
"postcss": "^8.5.6",
|
|
60
64
|
"postcss-calc": "^10.1.1",
|
|
61
|
-
"postcss-custom-properties": "^15.0.0",
|
|
62
65
|
"postcss-merge-longhand": "^7.0.5",
|
|
63
66
|
"postcss-safe-parser": "^7.0.1",
|
|
64
|
-
"postcss-sort-media-queries": "^5.
|
|
67
|
+
"postcss-sort-media-queries": "^6.5.0",
|
|
65
68
|
"postcss-value-parser": "^4.2.0",
|
|
66
69
|
"query-string": "^9.3.1",
|
|
67
70
|
"reka-ui": "^2.9.3",
|
|
@@ -73,7 +76,7 @@
|
|
|
73
76
|
"typescript": "^5.9.3",
|
|
74
77
|
"unplugin-auto-import": "^21.0.0",
|
|
75
78
|
"unplugin-vue-components": "^31.0.0",
|
|
76
|
-
"unplugin-vue-markdown": "^
|
|
79
|
+
"unplugin-vue-markdown": "^30.0.0",
|
|
77
80
|
"vite": "^7.3.1",
|
|
78
81
|
"vue": "^3.5.28",
|
|
79
82
|
"vue-router": "^5.0.2"
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
"devDependencies": {
|
|
82
85
|
"@types/js-beautify": "^1.14.3",
|
|
83
86
|
"@types/node": "^25.2.3",
|
|
87
|
+
"@types/nodemailer": "^8.0.0",
|
|
84
88
|
"@types/postcss-safe-parser": "^5.0.4",
|
|
85
89
|
"@vue/test-utils": "^2.4.6",
|
|
86
90
|
"happy-dom": "^20.6.3",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { SplitterResizeHandleEmits, SplitterResizeHandleProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { GripVertical } from "lucide-vue-next"
|
|
6
|
-
import { SplitterResizeHandle, useForwardPropsEmits } from "reka-ui"
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const props = defineProps<SplitterResizeHandleProps & { class?: HTMLAttributes["class"], withHandle?: boolean }>()
|
|
10
|
-
const emits = defineEmits<SplitterResizeHandleEmits>()
|
|
11
|
-
|
|
12
|
-
const delegatedProps = reactiveOmit(props, "class", "withHandle")
|
|
13
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<SplitterResizeHandle
|
|
18
|
-
data-slot="resizable-handle"
|
|
19
|
-
v-bind="forwarded"
|
|
20
|
-
:class="cn('bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90', props.class)"
|
|
21
|
-
>
|
|
22
|
-
<template v-if="props.withHandle">
|
|
23
|
-
<div class="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
|
|
24
|
-
<slot>
|
|
25
|
-
<GripVertical class="size-2.5" />
|
|
26
|
-
</slot>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
</SplitterResizeHandle>
|
|
30
|
-
</template>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { SplitterPanelEmits, SplitterPanelProps } from "reka-ui"
|
|
3
|
-
import { SplitterPanel, useForwardExpose, useForwardPropsEmits } from "reka-ui"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<SplitterPanelProps>()
|
|
6
|
-
const emits = defineEmits<SplitterPanelEmits>()
|
|
7
|
-
|
|
8
|
-
const forwarded = useForwardPropsEmits(props, emits)
|
|
9
|
-
const { forwardRef } = useForwardExpose()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<SplitterPanel
|
|
14
|
-
:ref="forwardRef"
|
|
15
|
-
v-slot="slotProps"
|
|
16
|
-
data-slot="resizable-panel"
|
|
17
|
-
v-bind="forwarded"
|
|
18
|
-
>
|
|
19
|
-
<slot v-bind="slotProps" />
|
|
20
|
-
</SplitterPanel>
|
|
21
|
-
</template>
|