@nuxt/nitro-server 3.20.2 → 3.21.1

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 (91) hide show
  1. package/README.md +5 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3826 -0
  3. package/dist/_chunks/libs/@babel/parser.d.mts +1536 -0
  4. package/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts +82 -0
  5. package/dist/_chunks/libs/@types/estree.d.mts +525 -0
  6. package/dist/_chunks/libs/@types/pug.d.mts +123 -0
  7. package/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts +17996 -0
  8. package/dist/_chunks/libs/@vitejs/plugin-vue.d.mts +83 -0
  9. package/dist/_chunks/libs/@volar/language-core.d.mts +56 -0
  10. package/dist/_chunks/libs/@volar/source-map.d.mts +10 -0
  11. package/dist/_chunks/libs/@vue/compiler-dom.d.mts +45 -0
  12. package/dist/_chunks/libs/@vue/language-core.d.mts +194 -0
  13. package/dist/_chunks/libs/autoprefixer.d.mts +83 -0
  14. package/dist/_chunks/libs/c12.d.mts +146 -0
  15. package/dist/_chunks/libs/compatx.d.mts +47 -0
  16. package/dist/_chunks/libs/css-minimizer-webpack-plugin.d.mts +9 -0
  17. package/dist/_chunks/libs/esbuild-loader.d.mts +16 -0
  18. package/dist/_chunks/libs/mini-css-extract-plugin.d.mts +1 -0
  19. package/dist/_chunks/libs/mlly.d.mts +57 -0
  20. package/dist/_chunks/libs/ofetch.d.mts +870 -0
  21. package/dist/_chunks/libs/open.d.mts +1 -0
  22. package/dist/_chunks/libs/oxc-transform.d.mts +422 -0
  23. package/dist/_chunks/libs/rollup-plugin-visualizer.d.mts +90 -0
  24. package/dist/_chunks/libs/scule.d.mts +15 -0
  25. package/dist/_chunks/libs/unimport.d.mts +386 -0
  26. package/dist/_chunks/libs/untyped.d.mts +44 -0
  27. package/dist/_chunks/libs/vue-loader.d.mts +31 -0
  28. package/dist/_chunks/libs/vue-router.d.mts +1413 -0
  29. package/dist/_chunks/libs/webpack-dev-middleware.d.mts +2 -0
  30. package/dist/_chunks/rolldown-runtime.mjs +12 -0
  31. package/dist/index.d.mts +3418 -43
  32. package/dist/index.mjs +677 -742
  33. package/dist/runtime/handlers/{error.d.ts → error.d.mts} +1 -1
  34. package/dist/runtime/handlers/error.mjs +78 -0
  35. package/dist/runtime/handlers/island.d.mts +2 -0
  36. package/dist/runtime/handlers/island.mjs +123 -0
  37. package/dist/runtime/handlers/renderer.d.mts +2 -0
  38. package/dist/runtime/handlers/renderer.mjs +306 -0
  39. package/dist/runtime/middleware/no-ssr.d.mts +2 -0
  40. package/dist/runtime/middleware/no-ssr.mjs +7 -0
  41. package/dist/runtime/plugins/dev-server-logs.d.mts +2 -0
  42. package/dist/runtime/plugins/dev-server-logs.mjs +94 -0
  43. package/dist/runtime/templates/{error-500.d.ts → error-500.d.mts} +1 -1
  44. package/dist/runtime/templates/error-500.mjs +15 -0
  45. package/dist/runtime/utils/cache.d.mts +5 -0
  46. package/dist/runtime/utils/cache.mjs +20 -0
  47. package/dist/runtime/utils/config.d.mts +1 -0
  48. package/dist/runtime/utils/{dev.d.ts → dev.d.mts} +1 -1
  49. package/dist/runtime/utils/dev.mjs +985 -0
  50. package/dist/runtime/utils/error.d.mts +6 -0
  51. package/dist/runtime/utils/error.mjs +15 -0
  52. package/dist/runtime/utils/paths.mjs +19 -0
  53. package/dist/runtime/utils/renderer/{app.d.ts → app.d.mts} +4 -4
  54. package/dist/runtime/utils/renderer/app.mjs +38 -0
  55. package/dist/runtime/utils/renderer/build-files.d.mts +16 -0
  56. package/dist/runtime/utils/renderer/build-files.mjs +100 -0
  57. package/dist/runtime/utils/renderer/{inline-styles.d.ts → inline-styles.d.mts} +1 -1
  58. package/dist/runtime/utils/renderer/inline-styles.mjs +13 -0
  59. package/dist/runtime/utils/renderer/{islands.d.ts → islands.d.mts} +5 -5
  60. package/dist/runtime/utils/renderer/islands.mjs +87 -0
  61. package/dist/runtime/utils/renderer/payload.d.mts +24 -0
  62. package/dist/runtime/utils/renderer/payload.mjs +64 -0
  63. package/package.json +20 -18
  64. package/dist/index.d.ts +0 -47
  65. package/dist/runtime/handlers/error.js +0 -64
  66. package/dist/runtime/handlers/island.d.ts +0 -4
  67. package/dist/runtime/handlers/island.js +0 -102
  68. package/dist/runtime/handlers/renderer.d.ts +0 -8
  69. package/dist/runtime/handlers/renderer.js +0 -238
  70. package/dist/runtime/middleware/no-ssr.d.ts +0 -2
  71. package/dist/runtime/middleware/no-ssr.js +0 -7
  72. package/dist/runtime/plugins/dev-server-logs.d.ts +0 -3
  73. package/dist/runtime/plugins/dev-server-logs.js +0 -82
  74. package/dist/runtime/templates/error-500.js +0 -6
  75. package/dist/runtime/utils/cache-driver.d.ts +0 -6
  76. package/dist/runtime/utils/cache.d.ts +0 -8
  77. package/dist/runtime/utils/cache.js +0 -19
  78. package/dist/runtime/utils/config.d.ts +0 -1
  79. package/dist/runtime/utils/dev.js +0 -334
  80. package/dist/runtime/utils/error.d.ts +0 -6
  81. package/dist/runtime/utils/error.js +0 -11
  82. package/dist/runtime/utils/paths.js +0 -16
  83. package/dist/runtime/utils/renderer/app.js +0 -33
  84. package/dist/runtime/utils/renderer/build-files.d.ts +0 -22
  85. package/dist/runtime/utils/renderer/build-files.js +0 -85
  86. package/dist/runtime/utils/renderer/inline-styles.js +0 -13
  87. package/dist/runtime/utils/renderer/islands.js +0 -82
  88. package/dist/runtime/utils/renderer/payload.d.ts +0 -37
  89. package/dist/runtime/utils/renderer/payload.js +0 -67
  90. /package/dist/runtime/utils/{config.js → config.mjs} +0 -0
  91. /package/dist/runtime/utils/{paths.d.ts → paths.d.mts} +0 -0
@@ -0,0 +1,83 @@
1
+ import * as _compiler from "vue/compiler-sfc";
2
+ import { SFCScriptCompileOptions, SFCStyleCompileOptions, SFCTemplateCompileOptions } from "vue/compiler-sfc";
3
+
4
+ //#region ../../node_modules/.pnpm/@vitejs+plugin-vue@6.0.4_vite@7.3.1_@types+node@24.10.11_jiti@2.6.1_terser@5.44.1_yaml@_ac9e2a922bb63677ceeba3834af69115/node_modules/@vitejs/plugin-vue/dist/index.d.mts
5
+ //#endregion
6
+ //#region src/index.d.ts
7
+ interface Options {
8
+ include?: string | RegExp | (string | RegExp)[];
9
+ exclude?: string | RegExp | (string | RegExp)[];
10
+ /**
11
+ * In Vite, this option follows Vite's config.
12
+ */
13
+ isProduction?: boolean;
14
+ script?: Partial<Omit<SFCScriptCompileOptions, 'id' | 'isProd' | 'inlineTemplate' | 'templateOptions' | 'sourceMap' | 'genDefaultAs' | 'customElement' | 'defineModel' | 'propsDestructure'>> & {
15
+ /**
16
+ * @deprecated defineModel is now a stable feature and always enabled if
17
+ * using Vue 3.4 or above.
18
+ */
19
+ defineModel?: boolean;
20
+ /**
21
+ * @deprecated moved to `features.propsDestructure`.
22
+ */
23
+ propsDestructure?: boolean;
24
+ };
25
+ template?: Partial<Omit<SFCTemplateCompileOptions, 'id' | 'source' | 'ast' | 'filename' | 'scoped' | 'slotted' | 'isProd' | 'inMap' | 'ssr' | 'ssrCssVars' | 'preprocessLang'>>;
26
+ style?: Partial<Omit<SFCStyleCompileOptions, 'filename' | 'id' | 'isProd' | 'source' | 'scoped' | 'cssDevSourcemap' | 'postcssOptions' | 'map' | 'postcssPlugins' | 'preprocessCustomRequire' | 'preprocessLang' | 'preprocessOptions'>>;
27
+ /**
28
+ * Use custom compiler-sfc instance. Can be used to force a specific version.
29
+ */
30
+ compiler?: typeof _compiler;
31
+ /**
32
+ * Requires @vitejs/plugin-vue@^5.1.0
33
+ */
34
+ features?: {
35
+ /**
36
+ * Enable reactive destructure for `defineProps`.
37
+ * - Available in Vue 3.4 and later.
38
+ * - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
39
+ */
40
+ propsDestructure?: boolean;
41
+ /**
42
+ * Transform Vue SFCs into custom elements.
43
+ * - `true`: all `*.vue` imports are converted into custom elements
44
+ * - `string | RegExp`: matched files are converted into custom elements
45
+ * - **default:** /\.ce\.vue$/
46
+ */
47
+ customElement?: boolean | string | RegExp | (string | RegExp)[];
48
+ /**
49
+ * Set to `false` to disable Options API support and allow related code in
50
+ * Vue core to be dropped via dead-code elimination in production builds,
51
+ * resulting in smaller bundles.
52
+ * - **default:** `true`
53
+ */
54
+ optionsAPI?: boolean;
55
+ /**
56
+ * Set to `true` to enable devtools support in production builds.
57
+ * Results in slightly larger bundles.
58
+ * - **default:** `false`
59
+ */
60
+ prodDevtools?: boolean;
61
+ /**
62
+ * Set to `true` to enable detailed information for hydration mismatch
63
+ * errors in production builds. Results in slightly larger bundles.
64
+ * - **default:** `false`
65
+ */
66
+ prodHydrationMismatchDetails?: boolean;
67
+ /**
68
+ * Customize the component ID generation strategy.
69
+ * - `'filepath'`: hash the file path (relative to the project root)
70
+ * - `'filepath-source'`: hash the file path and the source code
71
+ * - `function`: custom function that takes the file path, source code,
72
+ * whether in production mode, and the default hash function as arguments
73
+ * - **default:** `'filepath'` in development, `'filepath-source'` in production
74
+ */
75
+ componentIdGenerator?: 'filepath' | 'filepath-source' | ((filepath: string, source: string, isProduction: boolean | undefined, getHash: (text: string) => string) => string);
76
+ };
77
+ /**
78
+ * @deprecated moved to `features.customElement`.
79
+ */
80
+ customElement?: boolean | string | RegExp | (string | RegExp)[];
81
+ }
82
+ //#endregion
83
+ export { Options as t };
@@ -0,0 +1,56 @@
1
+ //#region ../../node_modules/.pnpm/@volar+language-core@2.4.27/node_modules/@volar/language-core/lib/types.d.ts
2
+ /**
3
+ * CodeInformation is a configuration object attached to each CodeMapping (between source code and generated code,
4
+ * e.g. between the template code in a .vue file and the type-checkable TS code generated from it) that
5
+ * determines what code/language features are expected to be available for the mapping.
6
+ *
7
+ * Due to the dynamic nature of code generation and the fact that, for example, things like Code Actions
8
+ * and auto-complete shouldn't be triggerable on certain "in-between" regions of generated code, we need
9
+ * a way to shut off certain features in certain regions, while leaving them enabled in others.
10
+ */
11
+ interface CodeInformation {
12
+ /** virtual code is expected to support verification, where verification includes:
13
+ *
14
+ * - diagnostics (syntactic, semantic, and others, such as those generated by the TypeScript language service on generated TS code)
15
+ * - code actions (refactorings, quick fixes,etc.)
16
+ */
17
+ verification?: boolean | {
18
+ /**
19
+ * when present, `shouldReport` callback is invoked to determine whether a diagnostic
20
+ * raised in the generated code should be propagated back to the original source code.
21
+ * Note that when this callback is present, diagnostic processing (e.g. typechecking) will
22
+ * still be performed, but the results will not be reported back to the original source code. */
23
+ shouldReport?(source: string | undefined, code: string | number | undefined): boolean;
24
+ };
25
+ /** virtual code is expected to support assisted completion */
26
+ completion?: boolean | {
27
+ isAdditional?: boolean;
28
+ onlyImport?: boolean;
29
+ };
30
+ /** virtual code is expected correctly reflect semantic of the source code. Specifically this controls the following langauge features:
31
+ *
32
+ * - hover
33
+ * - inlay hints
34
+ * - code lens
35
+ * - semantic tokens
36
+ * - others
37
+ *
38
+ * Note that semantic diagnostics (e.g. TS type-checking) are covered by the `verification` property above.
39
+ */
40
+ semantic?: boolean | {
41
+ shouldHighlight?(): boolean;
42
+ };
43
+ /** virtual code is expected correctly reflect reference relationships of the source code */
44
+ navigation?: boolean | {
45
+ shouldHighlight?(): boolean;
46
+ shouldRename?(): boolean;
47
+ resolveRenameNewName?(newName: string): string;
48
+ resolveRenameEditText?(newText: string): string;
49
+ };
50
+ /** virtual code is expected correctly reflect the structural information of the source code */
51
+ structure?: boolean;
52
+ /** virtual code is expected correctly reflect the format information of the source code */
53
+ format?: boolean;
54
+ }
55
+ //#endregion
56
+ export { CodeInformation as t };
@@ -0,0 +1,10 @@
1
+ //#region ../../node_modules/.pnpm/@volar+source-map@2.4.27/node_modules/@volar/source-map/lib/sourceMap.d.ts
2
+ interface Mapping<Data = unknown> {
3
+ sourceOffsets: number[];
4
+ generatedOffsets: number[];
5
+ lengths: number[];
6
+ generatedLengths?: number[];
7
+ data: Data;
8
+ }
9
+ //#endregion
10
+ export { Mapping as t };
@@ -0,0 +1,45 @@
1
+ import { $ as FRAGMENT, $n as createSequenceExpression, $r as stringifyExpression, $t as SimpleExpressionNode, A as CodegenSourceMapGenerator, An as baseCompile, Ar as isMemberExpression, At as ObjectExpression, B as CoreCompilerError, Bn as createCacheExpression, Br as isTemplateNode, Bt as RENDER_SLOT, C as CREATE_TEXT, Cn as VNodeCall, Cr as isCoreComponent, Ct as NORMALIZE_STYLE, D as CodegenContext, Dn as advancePositionWithClone, Dr as isFunctionType, Dt as NodeTransform, E as CallExpression, En as WITH_MEMO, Er as isFnExpressionNode, Et as Node, F as ComponentNode, Fn as checkCompatEnabled, Fr as isSlotOutlet, Ft as PlainElementNode, G as DynamicSlotEntries, Gn as createForLoopParams, Gr as locStub, Gt as RawSourceMap, H as DirectiveArguments, Hn as createCompilerError, Hr as isVPre, Ht as RESOLVE_DIRECTIVE, I as CompoundExpressionNode, In as convertToBlock, Ir as isStaticArgOf, It as Position, J as DynamicSlotsExpression, Jn as createInterpolation, Jr as processFor, Jt as RootNode, K as DynamicSlotFnProperty, Kn as createFunctionExpression, Kr as noopDirectiveTransform, Kt as RenderSlotCall, L as ConditionalDynamicSlotNode, Ln as createArrayExpression, Lr as isStaticExp, Lt as Property, M as CompilerDeprecationTypes, Mn as buildDirectiveArgs, Mr as isMemberExpressionNode, Mt as PUSH_SCOPE_ID, N as CompilerError, Nn as buildProps, Nr as isReferencedIdentifier, Nt as ParentNode, O as CodegenOptions, On as advancePositionWithMutation, Or as isInDestructureAssignment, Ot as NodeTypes, P as CompilerOptions, Pn as buildSlots, Pr as isSimpleIdentifier, Pt as ParserOptions, Q as ExpressionNode, Qn as createRoot, Qr as resolveComponentType, Qt as SequenceExpression, R as ConditionalExpression, Rn as createAssignmentExpression, Rr as isStaticProperty, Rt as PropsExpression, S as CREATE_STATIC, Sn as UNREF, Sr as isCommentOrWhitespace, St as NORMALIZE_PROPS, T as CacheExpression, Tn as WITH_DIRECTIVES, Tr as isFnExpressionBrowser, Tt as Namespaces, U as DirectiveNode, Un as createCompoundExpression, Ur as isVSlot, Ut as RESOLVE_DYNAMIC_COMPONENT, V as DirectiveArgumentNode, Vn as createCallExpression, Vr as isText, Vt as RESOLVE_COMPONENT, W as DirectiveTransform, Wn as createConditionalExpression, Wr as isWhitespaceText, Wt as RESOLVE_FILTER, X as ElementTypes, Xn as createObjectProperty, Xr as processSlotOutlet, Xt as SSRCodegenNode, Y as ElementNode, Yn as createObjectExpression, Yr as processIf, Yt as SET_BLOCK_TRACKING, Z as ErrorCodes, Zn as createReturnStatement, Zr as registerRuntimeHelpers, Zt as SUSPENSE, _ as CREATE_BLOCK, _n as TextCallNode, _r as hasDynamicKeyVBind, _t as ListDynamicSlotIterator, ai as transformElement, an as SlotsObjectProperty, ar as errorMessages, at as FunctionExpression, b as CREATE_ELEMENT_VNODE, bn as TransformOptions, br as injectProp, bt as MemoExpression, c as AttributeNode, ci as transformOn, cn as TELEPORT, cr as findProp, ct as IS_MEMO_SAME, d as BindingMetadata, di as unwrapTSNode, dn as TO_HANDLER_KEY, dr as generateCodeFrame, dt as IfConditionalExpression, ei as toValidAssetId, en as SlotFnBuilder, er as createSimpleExpression, et as ForCodegenNode, f as BindingTypes, fi as validFirstIdentCharRE, fn as TS_NODE_TYPES, fr as getBaseTransformPreset, ft as IfNode, g as CAPITALIZE, gi as warnDeprecation, gn as TemplateTextChildNode, gr as getVNodeHelper, gt as KEEP_ALIVE, h as CAMELIZE, hi as walkIdentifiers, hn as TemplateNode, hr as getVNodeBlockHelper, ht as JSChildNode, ii as transformBind, in as SlotsObjectExpression, ir as createVNodeCall, it as ForRenderListExpression, j as CommentNode, jn as baseParse, jr as isMemberExpressionBrowser, jt as POP_SCOPE_ID, k as CodegenResult, kn as assert, kr as isInNewExpression, kt as OPEN_BLOCK, l as BASE_TRANSITION, li as transformVBindShorthand, ln as TO_DISPLAY_STRING, lr as forAliasRE, lt as IS_REF, m as BlockStatement, mi as walkFunctionParams, mn as TemplateLiteral, mr as getMemoedVNodeCall, mt as InterpolationNode, ni as trackVForSlotScopes, nn as SlotOutletNode, nr as createTemplateLiteral, nt as ForNode, o as ArrayExpression, oi as transformExpression, on as SourceLocation, or as extractIdentifiers, ot as GUARD_REACTIVE_PROPS, p as BlockCodegenNode, pi as walkBlockDeclarations, pn as TemplateChildNode, pr as getConstantType, pt as IfStatement, q as DynamicSlotNode, qn as createIfStatement, qr as processExpression, qt as ReturnStatement, ri as transform, rn as SlotsExpression, rr as createTransformContext, rt as ForParseResult, s as AssignmentExpression, si as transformModel, sn as StructuralDirectiveTransform, sr as findDir, st as HoistTransform, ti as trackSlotScopes, tn as SlotFunctionExpression, tr as createStructuralDirectiveTransform, tt as ForIteratorExpression, u as BaseElementNode, ui as traverseNode, un as TO_HANDLERS, ur as generate, ut as IfBranchNode, v as CREATE_COMMENT, vn as TextNode, vr as hasScopeRef, vt as ListDynamicSlotNode, w as CREATE_VNODE, wn as WITH_CTX, wr as isFnExpression, wt as Namespace, x as CREATE_SLOTS, xn as TransformPreset, xr as isAllWhitespace, xt as NORMALIZE_CLASS, y as CREATE_ELEMENT_BLOCK, yn as TransformContext, yr as helperNameMap, yt as MERGE_PROPS, z as ConstantTypes, zn as createBlockStatement, zr as isStaticPropertyKey, zt as RENDER_LIST } from "../@vitejs/plugin-vue-jsx.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.27/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts
4
+ declare namespace compiler_dom_d_exports {
5
+ export { ArrayExpression, AssignmentExpression, AttributeNode, BASE_TRANSITION, BaseElementNode, BindingMetadata, BindingTypes, BlockCodegenNode, BlockStatement, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, CacheExpression, CallExpression, CodegenContext, CodegenOptions, CodegenResult, CodegenSourceMapGenerator, CommentNode, CompilerDeprecationTypes, CompilerError, CompilerOptions, ComponentNode, CompoundExpressionNode, ConditionalDynamicSlotNode, ConditionalExpression, ConstantTypes, CoreCompilerError, DOMDirectiveTransforms, DOMErrorCodes, DOMErrorMessages, DOMNodeTransforms, DirectiveArgumentNode, DirectiveArguments, DirectiveNode, DirectiveTransform, DynamicSlotEntries, DynamicSlotFnProperty, DynamicSlotNode, DynamicSlotsExpression, ElementNode, ElementTypes, ErrorCodes, ExpressionNode, FRAGMENT, ForCodegenNode, ForIteratorExpression, ForNode, ForParseResult, ForRenderListExpression, FunctionExpression, GUARD_REACTIVE_PROPS, HoistTransform, IS_MEMO_SAME, IS_REF, IfBranchNode, IfConditionalExpression, IfNode, IfStatement, InterpolationNode, JSChildNode, KEEP_ALIVE, ListDynamicSlotIterator, ListDynamicSlotNode, MERGE_PROPS, MemoExpression, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, Namespace, Namespaces, Node, NodeTransform, NodeTypes, OPEN_BLOCK, ObjectExpression, POP_SCOPE_ID, PUSH_SCOPE_ID, ParentNode, ParserOptions, PlainElementNode, Position, Property, PropsExpression, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, RawSourceMap, RenderSlotCall, ReturnStatement, RootNode, SET_BLOCK_TRACKING, SSRCodegenNode, SUSPENSE, SequenceExpression, SimpleExpressionNode, SlotFnBuilder, SlotFunctionExpression, SlotOutletNode, SlotsExpression, SlotsObjectExpression, SlotsObjectProperty, SourceLocation, StructuralDirectiveTransform, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, TRANSITION, TRANSITION_GROUP, TS_NODE_TYPES, TemplateChildNode, TemplateLiteral, TemplateNode, TemplateTextChildNode, TextCallNode, TextNode, TransformContext, TransformOptions, TransformPreset, UNREF, VNodeCall, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, compile, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createDOMCompilerError, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isAllWhitespace, isCommentOrWhitespace, isCoreComponent, isFnExpression, isFnExpressionBrowser, isFnExpressionNode, isFunctionType, isInDestructureAssignment, isInNewExpression, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVPre, isVSlot, isWhitespaceText, locStub, noopDirectiveTransform, parse, parserOptions, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, transformStyle, transformVBindShorthand, traverseNode, unwrapTSNode, validFirstIdentCharRE, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
6
+ }
7
+ declare const parserOptions: ParserOptions;
8
+ declare const V_MODEL_RADIO: unique symbol;
9
+ declare const V_MODEL_CHECKBOX: unique symbol;
10
+ declare const V_MODEL_TEXT: unique symbol;
11
+ declare const V_MODEL_SELECT: unique symbol;
12
+ declare const V_MODEL_DYNAMIC: unique symbol;
13
+ declare const V_ON_WITH_MODIFIERS: unique symbol;
14
+ declare const V_ON_WITH_KEYS: unique symbol;
15
+ declare const V_SHOW: unique symbol;
16
+ declare const TRANSITION: unique symbol;
17
+ declare const TRANSITION_GROUP: unique symbol;
18
+ declare const transformStyle: NodeTransform;
19
+ interface DOMCompilerError extends CompilerError {
20
+ code: DOMErrorCodes;
21
+ }
22
+ declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
23
+ declare enum DOMErrorCodes {
24
+ X_V_HTML_NO_EXPRESSION = 54,
25
+ X_V_HTML_WITH_CHILDREN = 55,
26
+ X_V_TEXT_NO_EXPRESSION = 56,
27
+ X_V_TEXT_WITH_CHILDREN = 57,
28
+ X_V_MODEL_ON_INVALID_ELEMENT = 58,
29
+ X_V_MODEL_ARG_ON_ELEMENT = 59,
30
+ X_V_MODEL_ON_FILE_INPUT_ELEMENT = 60,
31
+ X_V_MODEL_UNNECESSARY_VALUE = 61,
32
+ X_V_SHOW_NO_EXPRESSION = 62,
33
+ X_TRANSITION_INVALID_CHILDREN = 63,
34
+ X_IGNORED_SIDE_EFFECT_TAG = 64,
35
+ __EXTEND_POINT__ = 65
36
+ }
37
+ declare const DOMErrorMessages: {
38
+ [code: number]: string;
39
+ };
40
+ declare const DOMNodeTransforms: NodeTransform[];
41
+ declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
42
+ declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
43
+ declare function parse(template: string, options?: ParserOptions): RootNode;
44
+ //#endregion
45
+ export { compiler_dom_d_exports as t };
@@ -0,0 +1,194 @@
1
+ import { Jt as RootNode, N as CompilerError, P as CompilerOptions, i as typescript_d_exports, k as CodegenResult, r as SFCParseResult } from "../@vitejs/plugin-vue-jsx.mjs";
2
+ import { t as compiler_dom_d_exports } from "./compiler-dom.mjs";
3
+ import { t as Mapping } from "../@volar/source-map.mjs";
4
+ import { t as CodeInformation } from "../@volar/language-core.mjs";
5
+ import "@vue/shared";
6
+
7
+ //#region ../../node_modules/.pnpm/muggle-string@0.4.1/node_modules/muggle-string/out/types.d.ts
8
+ declare const NO_DATA_SYMBOL: unique symbol;
9
+ type Segment<T = typeof NO_DATA_SYMBOL> = string | (T extends typeof NO_DATA_SYMBOL ? [text: string, source: string | undefined, sourceOffset: number] : [text: string, source: string | undefined, sourceOffset: number, data: T]);
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/virtualCode/embeddedCodes.d.ts
12
+ declare class VueEmbeddedCode {
13
+ id: string;
14
+ lang: string;
15
+ content: Code[];
16
+ parentCodeId?: string;
17
+ linkedCodeMappings: Mapping[];
18
+ embeddedCodes: VueEmbeddedCode[];
19
+ constructor(id: string, lang: string, content: Code[]);
20
+ }
21
+ //#endregion
22
+ //#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/types.d.ts
23
+ type RawVueCompilerOptions = Partial<Omit<VueCompilerOptions, 'target' | 'plugins'>> & {
24
+ strictTemplates?: boolean;
25
+ target?: 'auto' | 3 | 3.3 | 3.5 | 3.6 | 99 | number;
26
+ plugins?: RawPlugin[];
27
+ };
28
+ type RawPlugin = string | (Record<string, any> & {
29
+ name: string;
30
+ });
31
+ interface VueCodeInformation extends CodeInformation {
32
+ __importCompletion?: boolean;
33
+ __shorthandExpression?: 'html' | 'js';
34
+ __combineToken?: symbol;
35
+ __linkedToken?: symbol;
36
+ }
37
+ type Code = Segment<VueCodeInformation>;
38
+ interface VueCompilerOptions {
39
+ target: number;
40
+ lib: string;
41
+ typesRoot: string;
42
+ extensions: string[];
43
+ vitePressExtensions: string[];
44
+ petiteVueExtensions: string[];
45
+ jsxSlots: boolean;
46
+ strictVModel: boolean;
47
+ strictCssModules: boolean;
48
+ checkUnknownProps: boolean;
49
+ checkUnknownEvents: boolean;
50
+ checkUnknownDirectives: boolean;
51
+ checkUnknownComponents: boolean;
52
+ inferComponentDollarEl: boolean;
53
+ inferComponentDollarRefs: boolean;
54
+ inferTemplateDollarAttrs: boolean;
55
+ inferTemplateDollarEl: boolean;
56
+ inferTemplateDollarRefs: boolean;
57
+ inferTemplateDollarSlots: boolean;
58
+ skipTemplateCodegen: boolean;
59
+ fallthroughAttributes: boolean;
60
+ resolveStyleImports: boolean;
61
+ resolveStyleClassNames: boolean | 'scoped';
62
+ fallthroughComponentNames: string[];
63
+ dataAttributes: string[];
64
+ htmlAttributes: string[];
65
+ optionsWrapper: [string, string] | [];
66
+ macros: {
67
+ defineProps: string[];
68
+ defineSlots: string[];
69
+ defineEmits: string[];
70
+ defineExpose: string[];
71
+ defineModel: string[];
72
+ defineOptions: string[];
73
+ withDefaults: string[];
74
+ };
75
+ composables: {
76
+ useAttrs: string[];
77
+ useCssModule: string[];
78
+ useSlots: string[];
79
+ useTemplateRef: string[];
80
+ };
81
+ plugins: VueLanguagePlugin[];
82
+ experimentalModelPropName: Record<string, Record<string, boolean | Record<string, string> | Record<string, string>[]>>;
83
+ }
84
+ declare const validVersions: readonly [2, 2.1, 2.2];
85
+ interface VueLanguagePluginReturn {
86
+ version: typeof validVersions[number];
87
+ name?: string;
88
+ order?: number;
89
+ requiredCompilerOptions?: string[];
90
+ getLanguageId?(fileName: string): string | undefined;
91
+ isValidFile?(fileName: string, languageId: string): boolean;
92
+ parseSFC?(fileName: string, content: string): SFCParseResult | undefined;
93
+ parseSFC2?(fileName: string, languageId: string, content: string): SFCParseResult | undefined;
94
+ updateSFC?(oldResult: SFCParseResult, textChange: {
95
+ start: number;
96
+ end: number;
97
+ newText: string;
98
+ }): SFCParseResult | undefined;
99
+ resolveTemplateCompilerOptions?(options: CompilerOptions): CompilerOptions;
100
+ compileSFCScript?(lang: string, script: string): undefined | undefined;
101
+ compileSFCTemplate?(lang: string, template: string, options: CompilerOptions): CodegenResult | undefined;
102
+ compileSFCStyle?(lang: string, style: string): Pick<Sfc['styles'][number], 'imports' | 'bindings' | 'classNames'> | undefined;
103
+ updateSFCTemplate?(oldResult: CodegenResult, textChange: {
104
+ start: number;
105
+ end: number;
106
+ newText: string;
107
+ }): CodegenResult | undefined;
108
+ getEmbeddedCodes?(fileName: string, sfc: Sfc): {
109
+ id: string;
110
+ lang: string;
111
+ }[];
112
+ resolveEmbeddedCode?(fileName: string, sfc: Sfc, embeddedFile: VueEmbeddedCode): void;
113
+ }
114
+ type VueLanguagePlugin<T extends Record<string, any> = {}> = (ctx: {
115
+ modules: {
116
+ typescript: typeof typescript_d_exports;
117
+ '@vue/compiler-dom': typeof compiler_dom_d_exports;
118
+ };
119
+ compilerOptions: undefined;
120
+ vueCompilerOptions: VueCompilerOptions;
121
+ config: T;
122
+ }) => VueLanguagePluginReturn | VueLanguagePluginReturn[];
123
+ interface SfcBlock {
124
+ name: string;
125
+ start: number;
126
+ end: number;
127
+ startTagEnd: number;
128
+ endTagStart: number;
129
+ lang: string;
130
+ content: string;
131
+ attrs: Record<string, string | true>;
132
+ }
133
+ type SfcBlockAttr = true | {
134
+ text: string;
135
+ offset: number;
136
+ quotes: boolean;
137
+ };
138
+ interface Sfc {
139
+ content: string;
140
+ comments: string[];
141
+ template: (SfcBlock & {
142
+ ast: RootNode | undefined;
143
+ errors: CompilerError[];
144
+ warnings: CompilerError[];
145
+ }) | undefined;
146
+ script: (SfcBlock & {
147
+ src: SfcBlockAttr | undefined;
148
+ ast: undefined;
149
+ }) | undefined;
150
+ scriptSetup: (SfcBlock & {
151
+ generic: SfcBlockAttr | undefined;
152
+ ast: undefined;
153
+ }) | undefined;
154
+ styles: readonly (SfcBlock & {
155
+ src: SfcBlockAttr | undefined;
156
+ module: SfcBlockAttr | undefined;
157
+ scoped: boolean;
158
+ imports: {
159
+ text: string;
160
+ offset: number;
161
+ }[];
162
+ bindings: {
163
+ text: string;
164
+ offset: number;
165
+ }[];
166
+ classNames: {
167
+ text: string;
168
+ offset: number;
169
+ }[];
170
+ })[];
171
+ customBlocks: readonly (SfcBlock & {
172
+ type: string;
173
+ })[];
174
+ }
175
+ declare module '@vue/compiler-sfc' {
176
+ interface SFCBlock {
177
+ __src?: SfcBlockAttr;
178
+ }
179
+ interface SFCScriptBlock {
180
+ __generic?: SfcBlockAttr;
181
+ }
182
+ interface SFCStyleBlock {
183
+ __module?: SfcBlockAttr;
184
+ }
185
+ }
186
+ //#endregion
187
+ //#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/utils/parseSfc.d.ts
188
+ declare module '@vue/compiler-sfc' {
189
+ interface SFCDescriptor {
190
+ comments: string[];
191
+ }
192
+ }
193
+ //#endregion
194
+ export { RawVueCompilerOptions as t };
@@ -0,0 +1,83 @@
1
+ //#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.d.ts
2
+ declare global {
3
+ namespace NodeJS {
4
+ interface ProcessEnv {
5
+ BROWSERSLIST?: string;
6
+ BROWSERSLIST_CONFIG?: string;
7
+ BROWSERSLIST_DANGEROUS_EXTEND?: string;
8
+ BROWSERSLIST_DISABLE_CACHE?: string;
9
+ BROWSERSLIST_ENV?: string;
10
+ BROWSERSLIST_IGNORE_OLD_DATA?: string;
11
+ BROWSERSLIST_STATS?: string;
12
+ BROWSERSLIST_ROOT_PATH?: string;
13
+ }
14
+ }
15
+ }
16
+ //#endregion
17
+ //#region ../../node_modules/.pnpm/autoprefixer@10.4.24_postcss@8.5.6/node_modules/autoprefixer/lib/autoprefixer.d.ts
18
+ declare function autoprefixer<T extends string[]>(...args: [...T, autoprefixer.Options]): Plugin & autoprefixer.ExportedAPI;
19
+ declare function autoprefixer(browsers: string[], options?: autoprefixer.Options): Plugin & autoprefixer.ExportedAPI;
20
+ declare function autoprefixer(options?: autoprefixer.Options): Plugin & autoprefixer.ExportedAPI;
21
+ declare namespace autoprefixer {
22
+ type GridValue = 'autoplace' | 'no-autoplace';
23
+ interface Options {
24
+ /** environment for `Browserslist` */
25
+ env?: string;
26
+ /** should Autoprefixer use Visual Cascade, if CSS is uncompressed */
27
+ cascade?: boolean;
28
+ /** should Autoprefixer add prefixes. */
29
+ add?: boolean;
30
+ /** should Autoprefixer [remove outdated] prefixes */
31
+ remove?: boolean;
32
+ /** should Autoprefixer add prefixes for @supports parameters. */
33
+ supports?: boolean;
34
+ /** should Autoprefixer add prefixes for flexbox properties */
35
+ flexbox?: boolean | 'no-2009';
36
+ /** should Autoprefixer add IE 10-11 prefixes for Grid Layout properties */
37
+ grid?: boolean | GridValue;
38
+ /** custom usage statistics for > 10% in my stats browsers query */
39
+ stats?: Stats$1;
40
+ /**
41
+ * list of queries for target browsers.
42
+ * Try to not use it.
43
+ * The best practice is to use `.browserslistrc` config or `browserslist` key in `package.json`
44
+ * to share target browsers with Babel, ESLint and Stylelint
45
+ */
46
+ overrideBrowserslist?: string | string[];
47
+ /** do not raise error on unknown browser version in `Browserslist` config. */
48
+ ignoreUnknownVersions?: boolean;
49
+ }
50
+ interface ExportedAPI {
51
+ /** Autoprefixer data */
52
+ data: {
53
+ browsers: {
54
+ [browser: string]: object | undefined;
55
+ };
56
+ prefixes: {
57
+ [prefixName: string]: object | undefined;
58
+ };
59
+ };
60
+ /** Autoprefixer default browsers */
61
+ defaults: string[];
62
+ /** Inspect with default Autoprefixer */
63
+ info(options?: {
64
+ from?: string;
65
+ }): string;
66
+ options: Options;
67
+ browsers: string | string[];
68
+ }
69
+ /** Autoprefixer data */
70
+ let data: ExportedAPI['data'];
71
+ /** Autoprefixer default browsers */
72
+ let defaults: ExportedAPI['defaults'];
73
+ /** Inspect with default Autoprefixer */
74
+ let info: ExportedAPI['info'];
75
+ let postcss: true;
76
+ }
77
+ declare global {
78
+ namespace NodeJS {
79
+ interface ProcessEnv {
80
+ AUTOPREFIXER_GRID?: autoprefixer.GridValue;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,146 @@
1
+ import { Stats } from "node:fs";
2
+ import { EventEmitter } from "node:events";
3
+ import { Readable } from "node:stream";
4
+ import "ohash/utils";
5
+
6
+ //#region ../../node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.ts
7
+ type AWF = {
8
+ stabilityThreshold: number;
9
+ pollInterval: number;
10
+ };
11
+ type BasicOpts = {
12
+ persistent: boolean;
13
+ ignoreInitial: boolean;
14
+ followSymlinks: boolean;
15
+ cwd?: string;
16
+ usePolling: boolean;
17
+ interval: number;
18
+ binaryInterval: number;
19
+ alwaysStat?: boolean;
20
+ depth?: number;
21
+ ignorePermissionErrors: boolean;
22
+ atomic: boolean | number;
23
+ };
24
+ type ChokidarOptions = Partial<BasicOpts & {
25
+ ignored: Matcher | Matcher[];
26
+ awaitWriteFinish: boolean | Partial<AWF>;
27
+ }>;
28
+ type MatchFunction = (val: string, stats?: Stats) => boolean;
29
+ interface MatcherObject {
30
+ path: string;
31
+ recursive?: boolean;
32
+ }
33
+ type Matcher = string | RegExp | MatchFunction | MatcherObject;
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.d.mts
36
+ interface TemplateInfo {
37
+ name: string;
38
+ tar: string;
39
+ version?: string;
40
+ subdir?: string;
41
+ url?: string;
42
+ defaultDir?: string;
43
+ headers?: Record<string, string | undefined>;
44
+ source?: never;
45
+ dir?: never;
46
+ [key: string]: any;
47
+ }
48
+ type TemplateProvider = (input: string, options: {
49
+ auth?: string;
50
+ }) => TemplateInfo | Promise<TemplateInfo> | null;
51
+ interface DownloadTemplateOptions {
52
+ provider?: string;
53
+ force?: boolean;
54
+ forceClean?: boolean;
55
+ offline?: boolean;
56
+ preferOffline?: boolean;
57
+ providers?: Record<string, TemplateProvider>;
58
+ dir?: string;
59
+ registry?: false | string;
60
+ cwd?: string;
61
+ auth?: string;
62
+ install?: boolean;
63
+ silent?: boolean;
64
+ }
65
+ //#endregion
66
+ //#region ../../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.d.mts
67
+ //#region src/dotenv.d.ts
68
+ interface DotenvOptions {
69
+ /**
70
+ * The project root directory (either absolute or relative to the current working directory).
71
+ *
72
+ * Defaults to `options.cwd` in `loadConfig` context, or `process.cwd()` when used as standalone.
73
+ */
74
+ cwd?: string;
75
+ /**
76
+ * What file or files to look in for environment variables (either absolute or relative
77
+ * to the current working directory). For example, `.env`.
78
+ * With the array type, the order enforce the env loading priority (last one overrides).
79
+ */
80
+ fileName?: string | string[];
81
+ /**
82
+ * Whether to interpolate variables within .env.
83
+ *
84
+ * @example
85
+ * ```env
86
+ * BASE_DIR="/test"
87
+ * # resolves to "/test/further"
88
+ * ANOTHER_DIR="${BASE_DIR}/further"
89
+ * ```
90
+ */
91
+ interpolate?: boolean;
92
+ /**
93
+ * An object describing environment variables (key, value pairs).
94
+ */
95
+ env?: NodeJS.ProcessEnv;
96
+ }
97
+ declare global {
98
+ var __c12_dotenv_vars__: Map<Record<string, any>, Set<string>>;
99
+ } //#endregion
100
+ //#region src/types.d.ts
101
+ interface ConfigLayerMeta {
102
+ name?: string;
103
+ [key: string]: any;
104
+ }
105
+ type UserInputConfig = Record<string, any>;
106
+ interface SourceOptions<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
107
+ /** Custom meta for layer */
108
+ meta?: MT;
109
+ /** Layer config overrides */
110
+ overrides?: T;
111
+ [key: string]: any;
112
+ /**
113
+ * Options for cloning remote sources
114
+ *
115
+ * @see https://giget.unjs.io
116
+ */
117
+ giget?: DownloadTemplateOptions;
118
+ /**
119
+ * Install dependencies after cloning
120
+ *
121
+ * @see https://nypm.unjs.io
122
+ */
123
+ install?: boolean;
124
+ /**
125
+ * Token for cloning private sources
126
+ *
127
+ * @see https://giget.unjs.io#providing-token-for-private-repositories
128
+ */
129
+ auth?: string;
130
+ }
131
+ interface ConfigLayer<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
132
+ config: T | null;
133
+ source?: string;
134
+ sourceOptions?: SourceOptions<T, MT>;
135
+ meta?: MT;
136
+ cwd?: string;
137
+ configFile?: string;
138
+ }
139
+ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> extends ConfigLayer<T, MT> {
140
+ config: T;
141
+ layers?: ConfigLayer<T, MT>[];
142
+ cwd?: string;
143
+ _configFile?: string;
144
+ }
145
+ //#endregion
146
+ export { ChokidarOptions as i, ResolvedConfig as n, SourceOptions as r, DotenvOptions as t };
@@ -0,0 +1,47 @@
1
+ //#region ../../node_modules/.pnpm/compatx@0.2.0/node_modules/compatx/dist/index.d.mts
2
+ /**
3
+ * Known platform names
4
+ */
5
+ declare const platforms: readonly ["aws", "azure", "cloudflare", "deno", "firebase", "netlify", "vercel"];
6
+ /**
7
+ * Known platform name
8
+ */
9
+ type PlatformName = (typeof platforms)[number] | (string & {});
10
+ /**
11
+ * Normalize the compatibility dates from input config and defaults.
12
+ */
13
+ type Year = `${number}${number}${number}${number}`;
14
+ type Month = `${"0" | "1"}${number}`;
15
+ type Day = `${"0" | "1" | "2" | "3"}${number}`;
16
+ /**
17
+ * Typed date string in `YYYY-MM-DD` format
18
+ *
19
+ * Empty string is used to represent an "unspecified" date.
20
+ *
21
+ * "latest" is used to represent the latest date available (date of today).
22
+ */
23
+ type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
24
+ /**
25
+ * Last known compatibility dates for platforms
26
+ *
27
+ * @example
28
+ * {
29
+ * "default": "2024-01-01",
30
+ * "cloudflare": "2024-03-01",
31
+ * }
32
+ */
33
+ type CompatibilityDates = {
34
+ /**
35
+ * Default compatibility date for all unspecified platforms (required)
36
+ */
37
+ default: DateString;
38
+ } & Partial<Record<PlatformName, DateString>>;
39
+ /**
40
+ * Last known compatibility date for the used platform
41
+ */
42
+ type CompatibilityDateSpec = DateString | Partial<CompatibilityDates>;
43
+ /**
44
+ * Get compatibility updates applicable for the user given platform and date range.
45
+ */
46
+ //#endregion
47
+ export { CompatibilityDateSpec as t };