@vue/shared 3.6.0-rc.5 → 3.6.0-rc.7

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/dist/shared.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  //#region temp/packages/shared/src/makeMap.d.ts
2
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
- */
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
9
  export declare function makeMap(str: string): (key: string) => boolean;
10
10
  //#endregion
11
11
  //#region temp/packages/shared/src/general.d.ts
@@ -15,12 +15,12 @@ export declare const EMPTY_OBJ: {
15
15
  export declare const EMPTY_ARR: readonly never[];
16
16
  export declare const NOOP: () => void;
17
17
  /**
18
- * Always return true.
19
- */
18
+ * Always return true.
19
+ */
20
20
  export declare const YES: () => boolean;
21
21
  /**
22
- * Always return false.
23
- */
22
+ * Always return false.
23
+ */
24
24
  export declare const NO: () => boolean;
25
25
  export declare const isOn: (key: string) => boolean;
26
26
  export declare const isNativeOn: (key: string) => boolean;
@@ -47,40 +47,40 @@ export declare const isReservedProp: (key: string) => boolean;
47
47
  export declare const isBuiltInTag: (key: string) => boolean;
48
48
  export declare const isBuiltInDirective: (key: string) => boolean;
49
49
  /**
50
- * @private
51
- */
50
+ * @private
51
+ */
52
52
  export declare const camelize: (str: string) => string;
53
53
  /**
54
- * @private
55
- */
54
+ * @private
55
+ */
56
56
  export declare const hyphenate: (str: string) => string;
57
57
  /**
58
- * @private
59
- */
58
+ * @private
59
+ */
60
60
  export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
61
61
  /**
62
- * @private
63
- */
62
+ * @private
63
+ */
64
64
  export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
65
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
- */
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
71
  export declare const getModifierPropName: (name: string) => string;
72
72
  export declare const hasChanged: (value: any, oldValue: any) => boolean;
73
73
  export declare const invokeArrayFns: (fns: Function[], ...arg: any[]) => void;
74
74
  export declare const def: (obj: object, key: string | symbol, value: any, writable?: boolean) => void;
75
75
  /**
76
- * "123-foo" will be parsed to 123
77
- * This is used for the .number modifier in v-model
78
- */
76
+ * "123-foo" will be parsed to 123
77
+ * This is used for the .number modifier in v-model
78
+ */
79
79
  export declare const looseToNumber: (val: any) => any;
80
80
  /**
81
- * Only concerns number-like strings
82
- * "123-foo" will be returned as-is
83
- */
81
+ * Only concerns number-like strings
82
+ * "123-foo" will be returned as-is
83
+ */
84
84
  export declare const toNumber: (val: any) => any;
85
85
  export declare const getGlobalThis: () => any;
86
86
  export declare function genPropsAccessExp(name: string): string;
@@ -89,119 +89,119 @@ export declare function canSetValueDirectly(tagName: string): boolean;
89
89
  //#endregion
90
90
  //#region temp/packages/shared/src/patchFlags.d.ts
91
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
- */
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
109
  export declare enum PatchFlags {
110
110
  /**
111
- * Indicates an element with dynamic textContent (children fast path)
112
- */
111
+ * Indicates an element with dynamic textContent (children fast path)
112
+ */
113
113
  TEXT = 1,
114
114
  /**
115
- * Indicates an element with dynamic class binding.
116
- */
115
+ * Indicates an element with dynamic class binding.
116
+ */
117
117
  CLASS = 2,
118
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
- */
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
129
  STYLE = 4,
130
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
- */
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
137
  PROPS = 8,
138
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
- */
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
143
  FULL_PROPS = 16,
144
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
- */
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
149
  NEED_HYDRATION = 32,
150
150
  /**
151
- * Indicates a fragment whose children order doesn't change.
152
- */
151
+ * Indicates a fragment whose children order doesn't change.
152
+ */
153
153
  STABLE_FRAGMENT = 64,
154
154
  /**
155
- * Indicates a fragment with keyed or partially keyed children
156
- */
155
+ * Indicates a fragment with keyed or partially keyed children
156
+ */
157
157
  KEYED_FRAGMENT = 128,
158
158
  /**
159
- * Indicates a fragment with unkeyed children.
160
- */
159
+ * Indicates a fragment with unkeyed children.
160
+ */
161
161
  UNKEYED_FRAGMENT = 256,
162
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
- */
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
168
  NEED_PATCH = 512,
169
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
- */
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
174
  DYNAMIC_SLOTS = 1024,
175
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
- */
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
180
  DEV_ROOT_FRAGMENT = 2048,
181
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
- */
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
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
- */
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
192
  CACHED = -1,
193
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
- */
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
200
  BAIL = -2
201
201
  }
202
202
  /**
203
- * dev only flag -> name mapping
204
- */
203
+ * dev only flag -> name mapping
204
+ */
205
205
  export declare const PatchFlagNames: Record<PatchFlags, string>;
206
206
  //#endregion
207
207
  //#region temp/packages/shared/src/shapeFlags.d.ts
@@ -222,28 +222,28 @@ export declare enum ShapeFlags {
222
222
  //#region temp/packages/shared/src/slotFlags.d.ts
223
223
  export declare enum SlotFlags {
224
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
- */
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
229
  STABLE = 1,
230
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
- */
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
235
  DYNAMIC = 2,
236
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
- */
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
242
  FORWARDED = 3
243
243
  }
244
244
  /**
245
- * Dev only
246
- */
245
+ * Dev only
246
+ */
247
247
  export declare const slotFlagsText: Record<SlotFlags, string>;
248
248
  //#endregion
249
249
  //#region temp/packages/shared/src/globalsAllowList.d.ts
@@ -264,77 +264,77 @@ export declare function normalizeProps(props: Record<string, any> | null): Recor
264
264
  //#endregion
265
265
  //#region temp/packages/shared/src/domTagConfig.d.ts
266
266
  /**
267
- * Compiler only.
268
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
269
- */
267
+ * Compiler only.
268
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
269
+ */
270
270
  export declare const isHTMLTag: (key: string) => boolean;
271
271
  /**
272
- * Compiler only.
273
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
274
- */
272
+ * Compiler only.
273
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
274
+ */
275
275
  export declare const isSVGTag: (key: string) => boolean;
276
276
  /**
277
- * Compiler only.
278
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
279
- */
277
+ * Compiler only.
278
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
279
+ */
280
280
  export declare const isMathMLTag: (key: string) => boolean;
281
281
  /**
282
- * Compiler only.
283
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
284
- */
282
+ * Compiler only.
283
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
284
+ */
285
285
  export declare const isVoidTag: (key: string) => boolean;
286
286
  /**
287
- * Compiler only.
288
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
289
- */
287
+ * Compiler only.
288
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
289
+ */
290
290
  export declare const isFormattingTag: (key: string) => boolean;
291
291
  /**
292
- * Compiler only.
293
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
294
- */
292
+ * Compiler only.
293
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
294
+ */
295
295
  export declare const isAlwaysCloseTag: (key: string) => boolean;
296
296
  /**
297
- * Compiler only.
298
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
299
- */
297
+ * Compiler only.
298
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
299
+ */
300
300
  export declare const isInlineTag: (key: string) => boolean;
301
301
  /**
302
- * Compiler only.
303
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
304
- */
302
+ * Compiler only.
303
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
304
+ */
305
305
  export declare const isBlockTag: (key: string) => boolean;
306
306
  //#endregion
307
307
  //#region temp/packages/shared/src/domAttrConfig.d.ts
308
308
  export declare const isSpecialBooleanAttr: (key: string) => boolean;
309
309
  /**
310
- * The full list is needed during SSR to produce the correct initial markup.
311
- */
310
+ * The full list is needed during SSR to produce the correct initial markup.
311
+ */
312
312
  export declare const isBooleanAttr: (key: string) => boolean;
313
313
  /**
314
- * Boolean attributes should be included if the value is truthy or ''.
315
- * e.g. `<select multiple>` compiles to `{ multiple: '' }`
316
- */
314
+ * Boolean attributes should be included if the value is truthy or ''.
315
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
316
+ */
317
317
  export declare function includeBooleanAttr(value: unknown): boolean;
318
318
  export declare function isSSRSafeAttrName(name: string): boolean;
319
319
  export declare const propsToAttrMap: Record<string, string | undefined>;
320
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
- */
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
326
  export declare const isKnownHtmlAttr: (key: string) => boolean;
327
327
  /**
328
- * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
329
- */
328
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
329
+ */
330
330
  export declare const isKnownSvgAttr: (key: string) => boolean;
331
331
  /**
332
- * Generated from https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute
333
- */
332
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute
333
+ */
334
334
  export declare const isKnownMathMLAttr: (key: string) => boolean;
335
335
  /**
336
- * Shared between server-renderer and runtime-core hydration logic
337
- */
336
+ * Shared between server-renderer and runtime-core hydration logic
337
+ */
338
338
  export declare function isRenderableAttrValue(value: unknown): boolean;
339
339
  export declare function shouldSetAsAttr(tagName: string, key: string): boolean;
340
340
  //#endregion
@@ -358,21 +358,21 @@ export declare function looseIndexOf(arr: any[], val: any): number;
358
358
  //#endregion
359
359
  //#region temp/packages/shared/src/toDisplayString.d.ts
360
360
  /**
361
- * For converting {{ interpolation }} values to displayed strings.
362
- * @private
363
- */
361
+ * For converting {{ interpolation }} values to displayed strings.
362
+ * @private
363
+ */
364
364
  export declare const toDisplayString: (val: unknown) => string;
365
365
  //#endregion
366
366
  //#region temp/packages/shared/src/typeUtils.d.ts
367
- export type Prettify<T> = { [K in keyof T]: T[K] } & {};
367
+ export type Prettify<T> = { [K in keyof T]: T[K]; } & {};
368
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] };
369
+ export type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P]; };
370
370
  export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
371
371
  export type IsKeyValues<T, K = string> = IfAny<T, false, T extends object ? (keyof T extends K ? true : false) : false>;
372
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
- */
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
376
  export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>;
377
377
  type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
378
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;
@@ -383,47 +383,55 @@ export declare function getSequence(arr: number[]): number[];
383
383
  //#endregion
384
384
  //#region temp/packages/shared/src/cssVars.d.ts
385
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
- */
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
389
  export declare function normalizeCssVarValue(value: unknown): string;
390
390
  //#endregion
391
391
  //#region temp/packages/shared/src/vaporFlags.d.ts
392
392
  /**
393
- * Flags to optimize vapor `createFor` runtime behavior, shared between the
394
- * compiler and the runtime
395
- */
393
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
394
+ * compiler and the runtime
395
+ */
396
396
  export declare enum VaporVForFlags {
397
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
- */
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
401
  FAST_REMOVE = 1,
402
402
  /**
403
- * v-for used on a component-shaped item. Component items require structural
404
- * removal before item scope cleanup and cannot use the fast-clear path. This
405
- * does not guarantee the item block is a VaporComponentInstance: component
406
- * fallback paths may still return a DOM Node.
407
- */
403
+ * v-for used on a component-shaped item. Component items require structural
404
+ * removal before item scope cleanup and cannot use the fast-clear path. This
405
+ * does not guarantee the item block is a VaporComponentInstance: component
406
+ * fallback paths may still return a DOM Node.
407
+ */
408
408
  IS_COMPONENT = 2,
409
409
  /**
410
- * v-for inside v-once
411
- */
410
+ * v-for inside v-once
411
+ */
412
412
  ONCE = 4,
413
413
  /**
414
- * v-for item block is a single DOM Node.
415
- */
414
+ * v-for item block is a single DOM Node.
415
+ */
416
416
  IS_SINGLE_NODE = 8,
417
417
  /**
418
- * v-for item block is known to be a VaporFragment, so runtime can use
419
- * fragment-specific insert/remove helpers.
420
- */
418
+ * v-for item block is known to be a VaporFragment, so runtime can use
419
+ * fragment-specific insert/remove helpers.
420
+ */
421
421
  IS_FRAGMENT = 16,
422
422
  /**
423
- * v-for sits on a slot content/fallback root chain and can change slot
424
- * validity.
425
- */
426
- SLOT_ROOT = 32
423
+ * v-for sits on a slot content/fallback root chain and can change slot
424
+ * validity.
425
+ */
426
+ SLOT_ROOT = 32,
427
+ /**
428
+ * The server wraps every row in `<!--[-->...<!--]-->`: the row template is
429
+ * not a single element and the list is not a direct child of a Transition
430
+ * or TransitionGroup (compiler-ssr `needFragmentWrapper`). Hydration then
431
+ * treats a leading `<!--[-->` as the row wrapper rather than as the row
432
+ * content's own marker.
433
+ */
434
+ WRAPPED_ROWS = 64
427
435
  }
428
436
  export declare enum VaporBlockShape {
429
437
  EMPTY = 0,
@@ -431,74 +439,81 @@ export declare enum VaporBlockShape {
431
439
  MULTI_ROOT = 2
432
440
  }
433
441
  /**
434
- * Bit layout for vapor `createIf` flags.
435
- *
436
- * - bits 0-1: true branch VaporBlockShape
437
- * - bits 2-3: false branch VaporBlockShape
438
- * - bit 4: v-once
439
- * - bit 5: true branch is static and can skip branch-owned EffectScope
440
- * - bit 6: false branch is static and can skip branch-owned EffectScope
441
- * - bit 7: v-if sits on a slot content/fallback root chain
442
- * - bits 8+: branch index + 1 for keyed dynamic fragments
443
- *
444
- * Examples:
445
- * - v-once, true single-root, no false branch: 1 | ONCE = 17
446
- * - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
447
- */
442
+ * Bit layout for vapor `createIf` flags.
443
+ *
444
+ * - bits 0-1: true branch VaporBlockShape
445
+ * - bits 2-3: false branch VaporBlockShape
446
+ * - bit 4: v-once
447
+ * - bit 5: true branch is static and can skip branch-owned EffectScope
448
+ * - bit 6: false branch is static and can skip branch-owned EffectScope
449
+ * - bit 7: v-if sits on a slot content/fallback root chain
450
+ * - bits 8+: branch index + 1 for keyed dynamic fragments
451
+ *
452
+ * Examples:
453
+ * - v-once, true single-root, no false branch: 1 | ONCE = 17
454
+ * - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
455
+ */
448
456
  export declare enum VaporIfFlags {
449
457
  /**
450
- * Documents the packed true/false branch shape bits. Runtime decode shifts
451
- * to the selected branch first, then masks with 0b11 for one VaporBlockShape.
452
- */
458
+ * Documents the packed true/false branch shape bits. Runtime decode shifts
459
+ * to the selected branch first, then masks with 0b11 for one VaporBlockShape.
460
+ */
453
461
  BLOCK_SHAPE = 15,
454
462
  /**
455
- * Marks a branch that is created once and never updated.
456
- */
463
+ * Marks a branch that is created once and never updated.
464
+ */
457
465
  ONCE = 16,
458
466
  /**
459
- * The compiler proved that the true branch only returns static template nodes,
460
- * so runtime can skip creating a branch-owned EffectScope.
461
- */
467
+ * The compiler proved that the true branch only returns static template nodes,
468
+ * so runtime can skip creating a branch-owned EffectScope.
469
+ */
462
470
  TRUE_NO_SCOPE = 32,
463
471
  /**
464
- * The compiler proved that the false branch only returns static template
465
- * nodes, so runtime can skip creating a branch-owned EffectScope.
466
- */
472
+ * The compiler proved that the false branch only returns static template
473
+ * nodes, so runtime can skip creating a branch-owned EffectScope.
474
+ */
467
475
  FALSE_NO_SCOPE = 64,
468
476
  /**
469
- * v-if sits on a slot content/fallback root chain and can change slot
470
- * validity.
471
- */
477
+ * v-if sits on a slot content/fallback root chain and can change slot
478
+ * validity.
479
+ */
472
480
  SLOT_ROOT = 128,
473
481
  /**
474
- * Shift for keyed branch index. The encoded value is index + 1, so decoded
475
- * zero means "not keyed" and source index 0 still round-trips.
476
- */
482
+ * Shift for keyed branch index. The encoded value is index + 1, so decoded
483
+ * zero means "not keyed" and source index 0 still round-trips.
484
+ */
477
485
  INDEX_SHIFT = 8
478
486
  }
479
487
  /**
480
- * Flags used by vapor template factories, shared between the compiler and the
481
- * runtime.
482
- */
488
+ * Flags used by vapor template factories, shared between the compiler and the
489
+ * runtime.
490
+ */
483
491
  export declare enum TemplateFlags {
484
492
  ROOT = 1,
485
493
  STATIC = 2
486
494
  }
487
495
  /**
488
- * Flags used by vapor slot outlets, shared between the compiler and the
489
- * runtime.
490
- */
496
+ * Flags used by vapor slot outlets, shared between the compiler and the
497
+ * runtime.
498
+ */
491
499
  export declare enum VaporSlotFlags {
492
500
  NO_SLOTTED = 1,
493
501
  ONCE = 2,
494
- SLOT_ROOT = 4,
495
- NON_STABLE = 8,
496
- SHARED_FALLBACK = 16,
497
- INHERIT_FALLBACK = 32
502
+ FORWARDED = 4,
503
+ SHARED_FALLBACK = 8
504
+ }
505
+ export declare function isForwardedSlot(flags: number): boolean;
506
+ export declare function slotInheritsFallback(flags: number): boolean;
507
+ export declare function slotNotifiesBoundary(flags: number): boolean;
508
+ /**
509
+ * Per-slot-function metadata attached by the compiler as `fn._`.
510
+ */
511
+ export declare enum VaporSlotStability {
512
+ NON_STABLE = 1
498
513
  }
499
514
  export declare enum VaporDynamicComponentFlags {
500
515
  SINGLE_ROOT = 1,
501
516
  ONCE = 2,
502
517
  SLOT_ROOT = 4
503
518
  }
504
- //#endregion
519
+ //#endregion