@dcloudio/uni-cli-shared 3.0.0-4080720251210001 → 3.0.0-5000320260312001

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 (145) hide show
  1. package/dist/constants.d.ts +3 -0
  2. package/dist/constants.js +6 -1
  3. package/dist/deps.js +6 -1
  4. package/dist/dom2/index.d.ts +1 -0
  5. package/dist/dom2/index.js +17 -0
  6. package/dist/dom2/sharedData.d.ts +2 -0
  7. package/dist/dom2/sharedData.js +19 -0
  8. package/dist/easycom.js +34 -5
  9. package/dist/env/define.d.ts +3 -0
  10. package/dist/env/define.js +12 -0
  11. package/dist/hbx/alias.js +15 -17
  12. package/dist/hbx/index.d.ts +1 -1
  13. package/dist/hbx/index.js +4 -2
  14. package/dist/hbx/log.d.ts +5 -0
  15. package/dist/hbx/log.js +44 -1
  16. package/dist/i18n.js +4 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +1 -0
  19. package/dist/json/app/manifest/index.d.ts +1 -0
  20. package/dist/json/app/manifest/index.js +3 -1
  21. package/dist/json/mp/pages.js +0 -5
  22. package/dist/json/pages.d.ts +2 -2
  23. package/dist/json/pages.js +4 -1
  24. package/dist/json/uni-x/index.d.ts +1 -1
  25. package/dist/json/utils.js +31 -22
  26. package/dist/logs/console.js +1 -1
  27. package/dist/logs/index.d.ts +11 -0
  28. package/dist/logs/index.js +34 -1
  29. package/dist/messages/en.d.ts +6 -3
  30. package/dist/messages/en.js +6 -3
  31. package/dist/messages/index.d.ts +11 -5
  32. package/dist/messages/zh_CN.d.ts +5 -2
  33. package/dist/messages/zh_CN.js +5 -2
  34. package/dist/mp/assets.d.ts +1 -0
  35. package/dist/mp/assets.js +27 -1
  36. package/dist/mp/externalClasses.d.ts +38 -2
  37. package/dist/mp/externalClasses.js +90 -4
  38. package/dist/mp/index.d.ts +4 -3
  39. package/dist/mp/index.js +11 -1
  40. package/dist/mp/plugin.d.ts +1 -0
  41. package/dist/mp/plugin.js +14 -1
  42. package/dist/mp/style.d.ts +1 -0
  43. package/dist/mp/style.js +8 -1
  44. package/dist/mp/usingComponents.d.ts +1 -0
  45. package/dist/mp/usingComponents.js +17 -1
  46. package/dist/postcss/index.d.ts +2 -0
  47. package/dist/postcss/index.js +3 -1
  48. package/dist/postcss/plugins/stylePluginExternal.d.ts +17 -0
  49. package/dist/postcss/plugins/stylePluginExternal.js +127 -0
  50. package/dist/postcss/plugins/stylePluginScoped.js +30 -0
  51. package/dist/preprocess/context.js +2 -0
  52. package/dist/preprocess/index.d.ts +9 -6
  53. package/dist/preprocess/index.js +33 -8
  54. package/dist/resolve.js +5 -1
  55. package/dist/uni_modules.js +20 -4
  56. package/dist/utils.d.ts +2 -2
  57. package/dist/utils.js +9 -6
  58. package/dist/utsUtils.d.ts +1 -0
  59. package/dist/utsUtils.js +2 -1
  60. package/dist/vite/autoImport.js +91 -6
  61. package/dist/vite/plugins/console.js +1 -1
  62. package/dist/vite/plugins/cssScoped.js +2 -1
  63. package/dist/vite/plugins/easycom.js +7 -0
  64. package/dist/vite/plugins/json.js +69 -2
  65. package/dist/vite/plugins/pre.js +4 -2
  66. package/dist/vite/plugins/sfc.js +1 -1
  67. package/dist/vite/plugins/stats.js +32 -0
  68. package/dist/vite/plugins/uts/ext-api.js +1 -1
  69. package/dist/vite/plugins/uts/uni_modules.js +12 -0
  70. package/dist/vite/plugins/uts/uvue.js +7 -2
  71. package/dist/vite/plugins/vitejs/plugins/asset.d.ts +1 -0
  72. package/dist/vite/plugins/vitejs/plugins/asset.js +19 -1
  73. package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -1
  74. package/dist/vite/plugins/vitejs/plugins/css.js +27 -10
  75. package/dist/vite/utils/ast.d.ts +2 -1
  76. package/dist/vite/utils/ast.js +5 -1
  77. package/dist/vue/parse.d.ts +2 -0
  78. package/dist/vue/parse.js +3 -1
  79. package/dist/vue/transforms/index.d.ts +1 -0
  80. package/dist/vue/transforms/index.js +1 -0
  81. package/dist/vue/transforms/transformLineBreak.d.ts +2 -0
  82. package/dist/vue/transforms/transformLineBreak.js +15 -0
  83. package/dist/vue/transforms/transformTag.d.ts +1 -1
  84. package/dist/vue/transforms/transformTag.js +5 -0
  85. package/dist/vue/transforms/x/transformMPBuiltInTag.js +2 -2
  86. package/dist/vue/utils.js +8 -1
  87. package/lib/@vue/compiler-core/dist/compiler-core.cjs.js +42 -23
  88. package/lib/@vue/compiler-core/dist/compiler-core.cjs.prod.js +42 -23
  89. package/lib/@vue/compiler-core/dist/compiler-core.esm-bundler.js +39 -19
  90. package/lib/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +4635 -1024
  91. package/lib/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +8762 -7849
  92. package/lib/dom2/app/@vitejs/plugin-vue/LICENSE +21 -0
  93. package/lib/dom2/app/@vitejs/plugin-vue/README.md +278 -0
  94. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +3353 -0
  95. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.cts +113 -0
  96. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.mts +111 -0
  97. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.ts +113 -0
  98. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +3338 -0
  99. package/lib/dom2/app/@vitejs/plugin-vue/package.json +50 -0
  100. package/lib/dom2/app/@vue/compiler-core/LICENSE +21 -0
  101. package/lib/dom2/app/@vue/compiler-core/README.md +1 -0
  102. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +5492 -0
  103. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +5436 -0
  104. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +1187 -0
  105. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +4335 -0
  106. package/lib/dom2/app/@vue/compiler-core/index.js +7 -0
  107. package/lib/dom2/app/@vue/compiler-core/package.json +58 -0
  108. package/lib/dom2/app/@vue/compiler-dom/LICENSE +21 -0
  109. package/lib/dom2/app/@vue/compiler-dom/README.md +1 -0
  110. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +762 -0
  111. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +736 -0
  112. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.d.ts +73 -0
  113. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +5051 -0
  114. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +11 -0
  115. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +557 -0
  116. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +5234 -0
  117. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +11 -0
  118. package/lib/dom2/app/@vue/compiler-dom/index.js +7 -0
  119. package/lib/dom2/app/@vue/compiler-dom/package.json +57 -0
  120. package/lib/dom2/app/@vue/compiler-sfc/LICENSE +21 -0
  121. package/lib/dom2/app/@vue/compiler-sfc/README.md +80 -0
  122. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +15528 -0
  123. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11595 -0
  124. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +41525 -0
  125. package/lib/dom2/app/@vue/compiler-sfc/package.json +68 -0
  126. package/lib/dom2/app/@vue/compiler-vapor/LICENSE +21 -0
  127. package/lib/dom2/app/@vue/compiler-vapor/README.md +1 -0
  128. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +3584 -0
  129. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +22858 -0
  130. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +22438 -0
  131. package/lib/dom2/app/@vue/compiler-vapor/package.json +51 -0
  132. package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -0
  133. package/lib/dom2/app/@vue/compiler-vapor-dom2/package.json +56 -0
  134. package/lib/dom2/app/@vue/shared/LICENSE +21 -0
  135. package/lib/dom2/app/@vue/shared/README.md +3 -0
  136. package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +773 -0
  137. package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +773 -0
  138. package/lib/dom2/app/@vue/shared/dist/shared.d.ts +412 -0
  139. package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +688 -0
  140. package/lib/dom2/app/@vue/shared/index.js +7 -0
  141. package/lib/dom2/app/@vue/shared/package.json +47 -0
  142. package/lib/preprocess/lib/preprocess.js +9 -3
  143. package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.js +1 -1
  144. package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.prod.js +1 -1
  145. package/package.json +8 -6
@@ -0,0 +1,412 @@
1
+ //#region temp/packages/shared/src/makeMap.d.ts
2
+ /**
3
+ * Make a map and return a function for checking if a key
4
+ * is in that map.
5
+ * IMPORTANT: all calls of this function must be prefixed with
6
+ * \/\*#\_\_PURE\_\_\*\/
7
+ * So that they can be tree-shaken if necessary.
8
+ */
9
+ export declare function makeMap(str: string): (key: string) => boolean;
10
+ //#endregion
11
+ //#region temp/packages/shared/src/general.d.ts
12
+ export declare const EMPTY_OBJ: {
13
+ readonly [key: string]: any;
14
+ };
15
+ export declare const EMPTY_ARR: readonly never[];
16
+ export declare const NOOP: () => void;
17
+ /**
18
+ * Always return true.
19
+ */
20
+ export declare const YES: () => boolean;
21
+ /**
22
+ * Always return false.
23
+ */
24
+ export declare const NO: () => boolean;
25
+ export declare const isOn: (key: string) => boolean;
26
+ export declare const isNativeOn: (key: string) => boolean;
27
+ export declare const isModelListener: (key: string) => boolean;
28
+ export declare const extend: typeof Object.assign;
29
+ export declare const remove: <T>(arr: T[], el: T) => void;
30
+ export declare const hasOwn: (val: object, key: string | symbol) => key is keyof typeof val;
31
+ export declare const isArray: typeof Array.isArray;
32
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
33
+ export declare const isSet: (val: unknown) => val is Set<any>;
34
+ export declare const isDate: (val: unknown) => val is Date;
35
+ export declare const isRegExp: (val: unknown) => val is RegExp;
36
+ export declare const isFunction: (val: unknown) => val is Function;
37
+ export declare const isString: (val: unknown) => val is string;
38
+ export declare const isSymbol: (val: unknown) => val is symbol;
39
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
40
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
41
+ export declare const objectToString: typeof Object.prototype.toString;
42
+ export declare const toTypeString: (value: unknown) => string;
43
+ export declare const toRawType: (value: unknown) => string;
44
+ export declare const isPlainObject: (val: unknown) => val is object;
45
+ export declare const isIntegerKey: (key: unknown) => boolean;
46
+ export declare const isReservedProp: (key: string) => boolean;
47
+ export declare const isBuiltInTag: (key: string) => boolean;
48
+ export declare const isBuiltInDirective: (key: string) => boolean;
49
+ /**
50
+ * @private
51
+ */
52
+ export declare const camelize: (str: string) => string;
53
+ /**
54
+ * @private
55
+ */
56
+ export declare const hyphenate: (str: string) => string;
57
+ /**
58
+ * @private
59
+ */
60
+ export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
61
+ /**
62
+ * @private
63
+ */
64
+ export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
65
+ /**
66
+ * #13070 When v-model and v-model:model directives are used together,
67
+ * they will generate the same modelModifiers prop,
68
+ * so a `$` suffix is added to avoid conflicts.
69
+ * @private
70
+ */
71
+ export declare const getModifierPropName: (name: string) => string;
72
+ export declare const hasChanged: (value: any, oldValue: any) => boolean;
73
+ export declare const invokeArrayFns: (fns: Function[], ...arg: any[]) => void;
74
+ export declare const def: (obj: object, key: string | symbol, value: any, writable?: boolean) => void;
75
+ /**
76
+ * "123-foo" will be parsed to 123
77
+ * This is used for the .number modifier in v-model
78
+ */
79
+ export declare const looseToNumber: (val: any) => any;
80
+ /**
81
+ * Only concerns number-like strings
82
+ * "123-foo" will be returned as-is
83
+ */
84
+ export declare const toNumber: (val: any) => any;
85
+ export declare const getGlobalThis: () => any;
86
+ export declare function genPropsAccessExp(name: string): string;
87
+ export declare function genCacheKey(source: string, options: any): string;
88
+ export declare function canSetValueDirectly(tagName: string): boolean;
89
+ //#endregion
90
+ //#region temp/packages/shared/src/patchFlags.d.ts
91
+ /**
92
+ * Patch flags are optimization hints generated by the compiler.
93
+ * when a block with dynamicChildren is encountered during diff, the algorithm
94
+ * enters "optimized mode". In this mode, we know that the vdom is produced by
95
+ * a render function generated by the compiler, so the algorithm only needs to
96
+ * handle updates explicitly marked by these patch flags.
97
+ *
98
+ * Patch flags can be combined using the | bitwise operator and can be checked
99
+ * using the & operator, e.g.
100
+ *
101
+ * ```js
102
+ * const flag = TEXT | CLASS
103
+ * if (flag & TEXT) { ... }
104
+ * ```
105
+ *
106
+ * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
107
+ * flags are handled during diff.
108
+ */
109
+ export declare enum PatchFlags {
110
+ /**
111
+ * Indicates an element with dynamic textContent (children fast path)
112
+ */
113
+ TEXT = 1,
114
+ /**
115
+ * Indicates an element with dynamic class binding.
116
+ */
117
+ CLASS = 2,
118
+ /**
119
+ * Indicates an element with dynamic style
120
+ * The compiler pre-compiles static string styles into static objects
121
+ * + detects and hoists inline static objects
122
+ * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
123
+ * as:
124
+ * ```js
125
+ * const style = { color: 'red' }
126
+ * render() { return e('div', { style }) }
127
+ * ```
128
+ */
129
+ STYLE = 4,
130
+ /**
131
+ * Indicates an element that has non-class/style dynamic props.
132
+ * Can also be on a component that has any dynamic props (includes
133
+ * class/style). when this flag is present, the vnode also has a dynamicProps
134
+ * array that contains the keys of the props that may change so the runtime
135
+ * can diff them faster (without having to worry about removed props)
136
+ */
137
+ PROPS = 8,
138
+ /**
139
+ * Indicates an element with props with dynamic keys. When keys change, a full
140
+ * diff is always needed to remove the old key. This flag is mutually
141
+ * exclusive with CLASS, STYLE and PROPS.
142
+ */
143
+ FULL_PROPS = 16,
144
+ /**
145
+ * Indicates an element that requires props hydration
146
+ * (but not necessarily patching)
147
+ * e.g. event listeners & v-bind with prop modifier
148
+ */
149
+ NEED_HYDRATION = 32,
150
+ /**
151
+ * Indicates a fragment whose children order doesn't change.
152
+ */
153
+ STABLE_FRAGMENT = 64,
154
+ /**
155
+ * Indicates a fragment with keyed or partially keyed children
156
+ */
157
+ KEYED_FRAGMENT = 128,
158
+ /**
159
+ * Indicates a fragment with unkeyed children.
160
+ */
161
+ UNKEYED_FRAGMENT = 256,
162
+ /**
163
+ * Indicates an element that only needs non-props patching, e.g. ref or
164
+ * directives (onVnodeXXX hooks). since every patched vnode checks for refs
165
+ * and onVnodeXXX hooks, it simply marks the vnode so that a parent block
166
+ * will track it.
167
+ */
168
+ NEED_PATCH = 512,
169
+ /**
170
+ * Indicates a component with dynamic slots (e.g. slot that references a v-for
171
+ * iterated value, or dynamic slot names).
172
+ * Components with this flag are always force updated.
173
+ */
174
+ DYNAMIC_SLOTS = 1024,
175
+ /**
176
+ * Indicates a fragment that was created only because the user has placed
177
+ * comments at the root level of a template. This is a dev-only flag since
178
+ * comments are stripped in production.
179
+ */
180
+ DEV_ROOT_FRAGMENT = 2048,
181
+ /**
182
+ * SPECIAL FLAGS -------------------------------------------------------------
183
+ * Special flags are negative integers. They are never matched against using
184
+ * bitwise operators (bitwise matching should only happen in branches where
185
+ * patchFlag > 0), and are mutually exclusive. When checking for a special
186
+ * flag, simply check patchFlag === FLAG.
187
+ */
188
+ /**
189
+ * Indicates a cached static vnode. This is also a hint for hydration to skip
190
+ * the entire sub tree since static content never needs to be updated.
191
+ */
192
+ CACHED = -1,
193
+ /**
194
+ * A special flag that indicates that the diffing algorithm should bail out
195
+ * of optimized mode. For example, on block fragments created by renderSlot()
196
+ * when encountering non-compiler generated slots (i.e. manually written
197
+ * render functions, which should always be fully diffed)
198
+ * OR manually cloneVNodes
199
+ */
200
+ BAIL = -2
201
+ }
202
+ /**
203
+ * dev only flag -> name mapping
204
+ */
205
+ export declare const PatchFlagNames: Record<PatchFlags, string>;
206
+ //#endregion
207
+ //#region temp/packages/shared/src/shapeFlags.d.ts
208
+ export declare enum ShapeFlags {
209
+ ELEMENT = 1,
210
+ FUNCTIONAL_COMPONENT = 2,
211
+ STATEFUL_COMPONENT = 4,
212
+ TEXT_CHILDREN = 8,
213
+ ARRAY_CHILDREN = 16,
214
+ SLOTS_CHILDREN = 32,
215
+ TELEPORT = 64,
216
+ SUSPENSE = 128,
217
+ COMPONENT_SHOULD_KEEP_ALIVE = 256,
218
+ COMPONENT_KEPT_ALIVE = 512,
219
+ COMPONENT = 6
220
+ }
221
+ //#endregion
222
+ //#region temp/packages/shared/src/slotFlags.d.ts
223
+ export declare enum SlotFlags {
224
+ /**
225
+ * Stable slots that only reference slot props or context state. The slot
226
+ * can fully capture its own dependencies so when passed down the parent won't
227
+ * need to force the child to update.
228
+ */
229
+ STABLE = 1,
230
+ /**
231
+ * Slots that reference scope variables (v-for or an outer slot prop), or
232
+ * has conditional structure (v-if, v-for). The parent will need to force
233
+ * the child to update because the slot does not fully capture its dependencies.
234
+ */
235
+ DYNAMIC = 2,
236
+ /**
237
+ * `<slot/>` being forwarded into a child component. Whether the parent needs
238
+ * to update the child is dependent on what kind of slots the parent itself
239
+ * received. This has to be refined at runtime, when the child's vnode
240
+ * is being created (in `normalizeChildren`)
241
+ */
242
+ FORWARDED = 3
243
+ }
244
+ /**
245
+ * Dev only
246
+ */
247
+ export declare const slotFlagsText: Record<SlotFlags, string>;
248
+ //#endregion
249
+ //#region temp/packages/shared/src/globalsAllowList.d.ts
250
+ export declare const isGloballyAllowed: (key: string) => boolean;
251
+ /** @deprecated use `isGloballyAllowed` instead */
252
+ export declare const isGloballyWhitelisted: (key: string) => boolean;
253
+ //#endregion
254
+ //#region temp/packages/shared/src/codeframe.d.ts
255
+ export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
256
+ //#endregion
257
+ //#region temp/packages/shared/src/normalizeProp.d.ts
258
+ export type NormalizedStyle = Record<string, unknown>;
259
+ export declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
260
+ export declare function parseStringStyle(cssText: string): NormalizedStyle;
261
+ export declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
262
+ export declare function normalizeClass(value: unknown): string;
263
+ export declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
264
+ //#endregion
265
+ //#region temp/packages/shared/src/domTagConfig.d.ts
266
+ /**
267
+ * Compiler only.
268
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
269
+ */
270
+ export declare const isHTMLTag: (key: string) => boolean;
271
+ /**
272
+ * Compiler only.
273
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
274
+ */
275
+ export declare const isSVGTag: (key: string) => boolean;
276
+ /**
277
+ * Compiler only.
278
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
279
+ */
280
+ export declare const isMathMLTag: (key: string) => boolean;
281
+ /**
282
+ * Compiler only.
283
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
284
+ */
285
+ export declare const isVoidTag: (key: string) => boolean;
286
+ /**
287
+ * Compiler only.
288
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
289
+ */
290
+ export declare const isFormattingTag: (key: string) => boolean;
291
+ /**
292
+ * Compiler only.
293
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
294
+ */
295
+ export declare const isAlwaysCloseTag: (key: string) => boolean;
296
+ /**
297
+ * Compiler only.
298
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
299
+ */
300
+ export declare const isInlineTag: (key: string) => boolean;
301
+ /**
302
+ * Compiler only.
303
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
304
+ */
305
+ export declare const isBlockTag: (key: string) => boolean;
306
+ //#endregion
307
+ //#region temp/packages/shared/src/domAttrConfig.d.ts
308
+ export declare const isSpecialBooleanAttr: (key: string) => boolean;
309
+ /**
310
+ * The full list is needed during SSR to produce the correct initial markup.
311
+ */
312
+ export declare const isBooleanAttr: (key: string) => boolean;
313
+ /**
314
+ * Boolean attributes should be included if the value is truthy or ''.
315
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
316
+ */
317
+ export declare function includeBooleanAttr(value: unknown): boolean;
318
+ export declare function isSSRSafeAttrName(name: string): boolean;
319
+ export declare const propsToAttrMap: Record<string, string | undefined>;
320
+ /**
321
+ * Known attributes, this is used for stringification of runtime static nodes
322
+ * so that we don't stringify bindings that cannot be set from HTML.
323
+ * Don't also forget to allow `data-*` and `aria-*`!
324
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
325
+ */
326
+ export declare const isKnownHtmlAttr: (key: string) => boolean;
327
+ /**
328
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
329
+ */
330
+ export declare const isKnownSvgAttr: (key: string) => boolean;
331
+ /**
332
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute
333
+ */
334
+ export declare const isKnownMathMLAttr: (key: string) => boolean;
335
+ /**
336
+ * Shared between server-renderer and runtime-core hydration logic
337
+ */
338
+ export declare function isRenderableAttrValue(value: unknown): boolean;
339
+ export declare function shouldSetAsAttr(tagName: string, key: string): boolean;
340
+ //#endregion
341
+ //#region temp/packages/shared/src/domNamespace.d.ts
342
+ export type Namespace = number;
343
+ export declare enum Namespaces {
344
+ HTML = 0,
345
+ SVG = 1,
346
+ MATH_ML = 2
347
+ }
348
+ //#endregion
349
+ //#region temp/packages/shared/src/escapeHtml.d.ts
350
+ export declare function escapeHtml(string: unknown): string;
351
+ export declare function escapeHtmlComment(src: string): string;
352
+ export declare const cssVarNameEscapeSymbolsRE: RegExp;
353
+ export declare function getEscapedCssVarName(key: string, doubleEscape: boolean): string;
354
+ //#endregion
355
+ //#region temp/packages/shared/src/looseEqual.d.ts
356
+ export declare function looseEqual(a: any, b: any): boolean;
357
+ export declare function looseIndexOf(arr: any[], val: any): number;
358
+ //#endregion
359
+ //#region temp/packages/shared/src/toDisplayString.d.ts
360
+ /**
361
+ * For converting {{ interpolation }} values to displayed strings.
362
+ * @private
363
+ */
364
+ export declare const toDisplayString: (val: unknown) => string;
365
+ //#endregion
366
+ //#region temp/packages/shared/src/typeUtils.d.ts
367
+ export type Prettify<T> = { [K in keyof T]: T[K] } & {};
368
+ export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
369
+ export type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] };
370
+ export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
371
+ export type IsKeyValues<T, K = string> = IfAny<T, false, T extends object ? (keyof T extends K ? true : false) : false>;
372
+ /**
373
+ * Utility for extracting the parameters from a function overload (for typed emits)
374
+ * https://github.com/microsoft/TypeScript/issues/32164#issuecomment-1146737709
375
+ */
376
+ export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>;
377
+ type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
378
+ type OverloadUnionRecursive<TOverload, TPartialOverload = unknown> = TOverload extends ((...args: infer TArgs) => infer TReturn) ? TPartialOverload extends TOverload ? never : OverloadUnionRecursive<TPartialOverload & TOverload, TPartialOverload & ((...args: TArgs) => TReturn) & OverloadProps<TOverload>> | ((...args: TArgs) => TReturn) : never;
379
+ type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<OverloadUnionRecursive<(() => never) & TOverload>, TOverload extends (() => never) ? never : () => never>;
380
+ //#endregion
381
+ //#region temp/packages/shared/src/subSequence.d.ts
382
+ export declare function getSequence(arr: number[]): number[];
383
+ //#endregion
384
+ //#region temp/packages/shared/src/cssVars.d.ts
385
+ /**
386
+ * Normalize CSS var value created by `v-bind` in `<style>` block
387
+ * See https://github.com/vuejs/core/pull/12461#issuecomment-2495804664
388
+ */
389
+ export declare function normalizeCssVarValue(value: unknown): string;
390
+ //#endregion
391
+ //#region temp/packages/shared/src/vaporFlags.d.ts
392
+ /**
393
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
394
+ * compiler and the runtime
395
+ */
396
+ export declare enum VaporVForFlags {
397
+ /**
398
+ * v-for is the only child of a parent container, so it can take the fast
399
+ * path with textContent = '' when the whole list is emptied
400
+ */
401
+ FAST_REMOVE = 1,
402
+ /**
403
+ * v-for used on component - we can skip creating child scopes for each block
404
+ * because the component itself already has a scope.
405
+ */
406
+ IS_COMPONENT = 2,
407
+ /**
408
+ * v-for inside v-once
409
+ */
410
+ ONCE = 4
411
+ }
412
+ //#endregion