@vue/runtime-core 3.6.0-beta.9 → 3.6.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { ComputedGetter, ComputedGetter as ComputedGetter$1, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEvent as DebuggerEvent$1, DebuggerEventExtraInfo, DebuggerOptions, DebuggerOptions as DebuggerOptions$1, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, OnCleanup, Raw, Reactive, ReactiveEffect, ReactiveEffect as ReactiveEffect$1, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, ReactiveMarker, Ref, Ref as Ref$1, ShallowReactive, ShallowRef, ShallowRef as ShallowRef$1, ShallowUnwrapRef, ShallowUnwrapRef as ShallowUnwrapRef$1, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapNestedRefs as UnwrapNestedRefs$1, UnwrapRef, WatchCallback, WatchCallback as WatchCallback$1, WatchEffect, WatchEffect as WatchEffect$1, WatchErrorCodes, WatchHandle, WatchHandle as WatchHandle$1, WatchSource, WatchSource as WatchSource$1, WatchStopHandle, WritableComputedOptions, WritableComputedOptions as WritableComputedOptions$1, WritableComputedRef, computed as computed$1, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, reactive as reactive$1, readonly, ref as ref$1, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from "@vue/reactivity";
2
2
  import { IfAny, IsKeyValues, LooseRequired, OverloadParameters, Prettify, UnionToIntersection, camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from "@vue/shared";
3
-
4
3
  //#region temp/packages/runtime-core/src/apiComputed.d.ts
5
4
  export declare const computed: typeof computed$1;
6
5
  //#endregion
@@ -15,7 +14,7 @@ export type SlotsType<T extends Record<string, any> = Record<string, any>> = {
15
14
  [SlotSymbol]?: T;
16
15
  };
17
16
  type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
18
- type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]> }>>;
17
+ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]>; }>>;
19
18
  type RawSlots = {
20
19
  [name: string]: unknown;
21
20
  $stable?: boolean;
@@ -25,34 +24,39 @@ type RawSlots = {
25
24
  declare enum SchedulerJobFlags {
26
25
  QUEUED = 1,
27
26
  /**
28
- * Indicates whether the effect is allowed to recursively trigger itself
29
- * when managed by the scheduler.
30
- *
31
- * By default, a job cannot trigger itself because some built-in method calls,
32
- * e.g. Array.prototype.push actually performs reads as well (#1740) which
33
- * can lead to confusing infinite loops.
34
- * The allowed cases are component update functions and watch callbacks.
35
- * Component update functions may update child component props, which in turn
36
- * trigger flush: "pre" watch callbacks that mutates state that the parent
37
- * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
38
- * triggers itself again, it's likely intentional and it is the user's
39
- * responsibility to perform recursive state mutation that eventually
40
- * stabilizes (#1727).
41
- */
27
+ * Indicates whether the effect is allowed to recursively trigger itself
28
+ * when managed by the scheduler.
29
+ *
30
+ * By default, a job cannot trigger itself because some built-in method calls,
31
+ * e.g. Array.prototype.push actually performs reads as well (#1740) which
32
+ * can lead to confusing infinite loops.
33
+ * The allowed cases are component update functions and watch callbacks.
34
+ * Component update functions may update child component props, which in turn
35
+ * trigger flush: "pre" watch callbacks that mutates state that the parent
36
+ * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
37
+ * triggers itself again, it's likely intentional and it is the user's
38
+ * responsibility to perform recursive state mutation that eventually
39
+ * stabilizes (#1727).
40
+ */
42
41
  ALLOW_RECURSE = 2,
43
- DISPOSED = 4
42
+ DISPOSED = 4,
43
+ /**
44
+ * Requeue a Suspense effect if its pending branch is discarded.
45
+ * @internal
46
+ */
47
+ REQUEUE_ON_SUSPENSE_DISCARD = 8
44
48
  }
45
49
  export interface SchedulerJob extends Function {
46
50
  order?: number;
47
51
  /**
48
- * flags can technically be undefined, but it can still be used in bitwise
49
- * operations just like 0.
50
- */
52
+ * flags can technically be undefined, but it can still be used in bitwise
53
+ * operations just like 0.
54
+ */
51
55
  flags?: SchedulerJobFlags;
52
56
  /**
53
- * Attached by renderer.ts when setting up a component's render effect
54
- * Used to obtain component information when reporting max recursive updates.
55
- */
57
+ * Attached by renderer.ts when setting up a component's render effect
58
+ * Used to obtain component information when reporting max recursive updates.
59
+ */
56
60
  i?: GenericComponentInstance;
57
61
  }
58
62
  type SchedulerJobs = SchedulerJob | SchedulerJob[];
@@ -62,7 +66,7 @@ export declare function queuePostFlushCb(jobs: SchedulerJobs, id?: number): void
62
66
  //#endregion
63
67
  //#region temp/packages/runtime-core/src/componentProps.d.ts
64
68
  export type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
65
- export type ComponentObjectPropsOptions<P = Data> = { [K in keyof P]: Prop<P[K]> | null };
69
+ export type ComponentObjectPropsOptions<P = Data> = { [K in keyof P]: Prop<P[K]> | null; };
66
70
  export type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
67
71
  type DefaultFactory<T> = (props: Data) => T | null | undefined;
68
72
  interface PropOptions<T = any, D = T> {
@@ -77,11 +81,11 @@ type PropConstructor<T = any> = {
77
81
  } | {
78
82
  (): T;
79
83
  } | PropMethod<T>;
80
- type PropMethod<T, TConstructor = any> = [T] extends [((...args: any) => any) | undefined] ? {
84
+ type PropMethod<T, TConstructor = any> = {
81
85
  new (): TConstructor;
82
86
  (): T;
83
87
  readonly prototype: TConstructor;
84
- } : never;
88
+ };
85
89
  type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
86
90
  required: true;
87
91
  } | {
@@ -90,7 +94,7 @@ type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
90
94
  type: BooleanConstructor;
91
95
  } ? T[K] extends {
92
96
  default: undefined | (() => undefined);
93
- } ? never : K : never }[keyof T];
97
+ } ? never : K : never; }[keyof T];
94
98
  type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
95
99
  type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
96
100
  default: any;
@@ -99,7 +103,7 @@ type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
99
103
  } ? T[K] extends {
100
104
  type: BooleanConstructor;
101
105
  required: true;
102
- } ? never : K : never }[keyof T];
106
+ } ? never : K : never; }[keyof T];
103
107
  type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{
104
108
  type: null | true;
105
109
  }] ? any : [T] extends [ObjectConstructor | {
@@ -110,261 +114,263 @@ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends
110
114
  type: DateConstructor;
111
115
  }] ? Date : [T] extends [(infer U)[] | {
112
116
  type: (infer U)[];
113
- }] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, D> : V : V : T;
117
+ }] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, unknown extends D ? V : D> : V : V : T;
114
118
  /**
115
- * Extract prop types from a runtime props options object.
116
- * The extracted types are **internal** - i.e. the resolved props received by
117
- * the component.
118
- * - Boolean props are always present
119
- * - Props with default values are always present
120
- *
121
- * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}.
122
- */
119
+ * Extract prop types from a runtime props options object.
120
+ * The extracted types are **internal** - i.e. the resolved props received by
121
+ * the component.
122
+ * - Boolean props are always present
123
+ * - Props with default values are always present
124
+ *
125
+ * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}.
126
+ */
123
127
  export type ExtractPropTypes<O> = { [K in keyof Pick<O, RequiredKeys<O>>]: O[K] extends {
124
128
  default: any;
125
- } ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]> } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]> };
129
+ } ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]>; } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>; };
126
130
  type PublicRequiredKeys<T> = { [K in keyof T]: T[K] extends {
127
131
  required: true;
128
- } ? K : never }[keyof T];
132
+ } ? K : never; }[keyof T];
129
133
  type PublicOptionalKeys<T> = Exclude<keyof T, PublicRequiredKeys<T>>;
130
134
  /**
131
- * Extract prop types from a runtime props options object.
132
- * The extracted types are **public** - i.e. the expected props that can be
133
- * passed to component.
134
- */
135
- export type ExtractPublicPropTypes<O> = { [K in keyof Pick<O, PublicRequiredKeys<O>>]: InferPropType<O[K]> } & { [K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]> };
135
+ * Extract prop types from a runtime props options object.
136
+ * The extracted types are **public** - i.e. the expected props that can be
137
+ * passed to component.
138
+ */
139
+ export type ExtractPublicPropTypes<O> = { [K in keyof Pick<O, PublicRequiredKeys<O>>]: InferPropType<O[K]>; } & { [K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]>; };
136
140
  declare enum BooleanFlags {
137
141
  shouldCast = 0,
138
142
  shouldCastTrue = 1
139
143
  }
140
- export type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]> } : {};
144
+ export type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>; } : {};
141
145
  type NormalizedProp = PropOptions & {
142
146
  [BooleanFlags.shouldCast]?: boolean;
143
147
  [BooleanFlags.shouldCastTrue]?: boolean;
144
148
  };
145
149
  /**
146
- * normalized value is a tuple of the actual normalized options
147
- * and an array of prop keys that need value casting (booleans and defaults)
148
- */
150
+ * normalized value is a tuple of the actual normalized options
151
+ * and an array of prop keys that need value casting (booleans and defaults)
152
+ */
149
153
  type NormalizedProps = Record<string, NormalizedProp>;
150
154
  export type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
151
155
  //#endregion
152
156
  //#region temp/packages/runtime-core/src/apiSetupHelpers.d.ts
153
157
  /**
154
- * Vue `<script setup>` compiler macro for declaring component props. The
155
- * expected argument is the same as the component `props` option.
156
- *
157
- * Example runtime declaration:
158
- * ```js
159
- * // using Array syntax
160
- * const props = defineProps(['foo', 'bar'])
161
- * // using Object syntax
162
- * const props = defineProps({
163
- * foo: String,
164
- * bar: {
165
- * type: Number,
166
- * required: true
167
- * }
168
- * })
169
- * ```
170
- *
171
- * Equivalent type-based declaration:
172
- * ```ts
173
- * // will be compiled into equivalent runtime declarations
174
- * const props = defineProps<{
175
- * foo?: string
176
- * bar: number
177
- * }>()
178
- * ```
179
- *
180
- * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
181
- *
182
- * This is only usable inside `<script setup>`, is compiled away in the
183
- * output and should **not** be actually called at runtime.
184
- */
185
- export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any }>>;
158
+ * Vue `<script setup>` compiler macro for declaring component props. The
159
+ * expected argument is the same as the component `props` option.
160
+ *
161
+ * Example runtime declaration:
162
+ * ```js
163
+ * // using Array syntax
164
+ * const props = defineProps(['foo', 'bar'])
165
+ * // using Object syntax
166
+ * const props = defineProps({
167
+ * foo: String,
168
+ * bar: {
169
+ * type: Number,
170
+ * required: true
171
+ * }
172
+ * })
173
+ * ```
174
+ *
175
+ * Equivalent type-based declaration:
176
+ * ```ts
177
+ * // will be compiled into equivalent runtime declarations
178
+ * const props = defineProps<{
179
+ * foo?: string
180
+ * bar: number
181
+ * }>()
182
+ * ```
183
+ *
184
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
185
+ *
186
+ * This is only usable inside `<script setup>`, is compiled away in the
187
+ * output and should **not** be actually called at runtime.
188
+ */
189
+ export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any; }>>;
186
190
  export declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
187
191
  export declare function defineProps<TypeProps>(): DefineProps<LooseRequired<TypeProps>, BooleanKey<TypeProps>>;
188
- export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean };
192
+ export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean; };
189
193
  type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? T[K] extends boolean | undefined ? T[K] extends never | undefined ? never : K : never : never;
190
194
  /**
191
- * Vue `<script setup>` compiler macro for declaring a component's emitted
192
- * events. The expected argument is the same as the component `emits` option.
193
- *
194
- * Example runtime declaration:
195
- * ```js
196
- * const emit = defineEmits(['change', 'update'])
197
- * ```
198
- *
199
- * Example type-based declaration:
200
- * ```ts
201
- * const emit = defineEmits<{
202
- * // <eventName>: <expected arguments>
203
- * change: []
204
- * update: [value: number] // named tuple syntax
205
- * }>()
206
- *
207
- * emit('change')
208
- * emit('update', 1)
209
- * ```
210
- *
211
- * This is only usable inside `<script setup>`, is compiled away in the
212
- * output and should **not** be actually called at runtime.
213
- *
214
- * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
215
- */
195
+ * Vue `<script setup>` compiler macro for declaring a component's emitted
196
+ * events. The expected argument is the same as the component `emits` option.
197
+ *
198
+ * Example runtime declaration:
199
+ * ```js
200
+ * const emit = defineEmits(['change', 'update'])
201
+ * ```
202
+ *
203
+ * Example type-based declaration:
204
+ * ```ts
205
+ * const emit = defineEmits<{
206
+ * // <eventName>: <expected arguments>
207
+ * change: []
208
+ * update: [value: number] // named tuple syntax
209
+ * }>()
210
+ *
211
+ * emit('change')
212
+ * emit('update', 1)
213
+ * ```
214
+ *
215
+ * This is only usable inside `<script setup>`, is compiled away in the
216
+ * output and should **not** be actually called at runtime.
217
+ *
218
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
219
+ */
216
220
  export declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
217
221
  export declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
218
222
  export declare function defineEmits<T extends ComponentTypeEmits>(): T extends ((...args: any[]) => any) ? T : ShortEmits<T>;
219
223
  export type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
220
224
  type RecordToUnion<T extends Record<string, any>> = T[keyof T];
221
- type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void }>>;
225
+ type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void; }>>;
222
226
  /**
223
- * Vue `<script setup>` compiler macro for declaring a component's exposed
224
- * instance properties when it is accessed by a parent component via template
225
- * refs.
226
- *
227
- * `<script setup>` components are closed by default - i.e. variables inside
228
- * the `<script setup>` scope is not exposed to parent unless explicitly exposed
229
- * via `defineExpose`.
230
- *
231
- * This is only usable inside `<script setup>`, is compiled away in the
232
- * output and should **not** be actually called at runtime.
233
- *
234
- * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
235
- */
227
+ * Vue `<script setup>` compiler macro for declaring a component's exposed
228
+ * instance properties when it is accessed by a parent component via template
229
+ * refs.
230
+ *
231
+ * `<script setup>` components are closed by default - i.e. variables inside
232
+ * the `<script setup>` scope is not exposed to parent unless explicitly exposed
233
+ * via `defineExpose`.
234
+ *
235
+ * This is only usable inside `<script setup>`, is compiled away in the
236
+ * output and should **not** be actually called at runtime.
237
+ *
238
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
239
+ */
236
240
  export declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
237
241
  /**
238
- * Vue `<script setup>` compiler macro for declaring a component's additional
239
- * options. This should be used only for options that cannot be expressed via
240
- * Composition API - e.g. `inheritAttrs`.
241
- *
242
- * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
243
- */
242
+ * Vue `<script setup>` compiler macro for declaring a component's additional
243
+ * options. This should be used only for options that cannot be expressed via
244
+ * Composition API - e.g. `inheritAttrs`.
245
+ *
246
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
247
+ */
244
248
  export declare function defineOptions<RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin>(options?: ComponentOptionsBase<{}, RawBindings, D, C, M, Mixin, Extends, {}> & {
245
249
  /**
246
- * props should be defined via defineProps().
247
- */
250
+ * props should be defined via defineProps().
251
+ */
248
252
  props?: never;
249
253
  /**
250
- * emits should be defined via defineEmits().
251
- */
254
+ * emits should be defined via defineEmits().
255
+ */
252
256
  emits?: never;
253
257
  /**
254
- * expose should be defined via defineExpose().
255
- */
258
+ * expose should be defined via defineExpose().
259
+ */
256
260
  expose?: never;
257
261
  /**
258
- * slots should be defined via defineSlots().
259
- */
262
+ * slots should be defined via defineSlots().
263
+ */
260
264
  slots?: never;
261
265
  }): void;
262
266
  /**
263
- * Vue `<script setup>` compiler macro for providing type hints to IDEs for
264
- * slot name and slot props type checking.
265
- *
266
- * Example usage:
267
- * ```ts
268
- * const slots = defineSlots<{
269
- * default(props: { msg: string }): any
270
- * }>()
271
- * ```
272
- *
273
- * This is only usable inside `<script setup>`, is compiled away in the
274
- * output and should **not** be actually called at runtime.
275
- *
276
- * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
277
- */
267
+ * Vue `<script setup>` compiler macro for providing type hints to IDEs for
268
+ * slot name and slot props type checking.
269
+ *
270
+ * Example usage:
271
+ * ```ts
272
+ * const slots = defineSlots<{
273
+ * default(props: { msg: string }): any
274
+ * }>()
275
+ * ```
276
+ *
277
+ * This is only usable inside `<script setup>`, is compiled away in the
278
+ * output and should **not** be actually called at runtime.
279
+ *
280
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
281
+ */
278
282
  export declare function defineSlots<S extends Record<string, any> = Record<string, any>>(): StrictUnwrapSlotsType<SlotsType<S>>;
279
283
  export type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref$1<G, S> & [ModelRef<T, M, G, S>, Record<M, true | undefined>];
280
284
  type DefineModelOptions<T = any, G = T, S = T> = {
281
285
  get?: (v: T) => G;
282
286
  set?: (v: S) => any;
283
287
  };
288
+ type DefineModelRuntimeOptions<T, G, S> = Omit<PropOptions<T>, "default"> & DefineModelOptions<T, G, S>;
289
+ type DefineModelDefault<T> = InferDefault<Data, T>;
284
290
  /**
285
- * Vue `<script setup>` compiler macro for declaring a
286
- * two-way binding prop that can be consumed via `v-model` from the parent
287
- * component. This will declare a prop with the same name and a corresponding
288
- * `update:propName` event.
289
- *
290
- * If the first argument is a string, it will be used as the prop name;
291
- * Otherwise the prop name will default to "modelValue". In both cases, you
292
- * can also pass an additional object which will be used as the prop's options.
293
- *
294
- * The returned ref behaves differently depending on whether the parent
295
- * provided the corresponding v-model props or not:
296
- * - If yes, the returned ref's value will always be in sync with the parent
297
- * prop.
298
- * - If not, the returned ref will behave like a normal local ref.
299
- *
300
- * @example
301
- * ```ts
302
- * // default model (consumed via `v-model`)
303
- * const modelValue = defineModel<string>()
304
- * modelValue.value = "hello"
305
- *
306
- * // default model with options
307
- * const modelValue = defineModel<string>({ required: true })
308
- *
309
- * // with specified name (consumed via `v-model:count`)
310
- * const count = defineModel<number>('count')
311
- * count.value++
312
- *
313
- * // with specified name and default value
314
- * const count = defineModel<number>('count', { default: 0 })
315
- * ```
316
- */
317
- export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: ({
318
- default: any;
291
+ * Vue `<script setup>` compiler macro for declaring a
292
+ * two-way binding prop that can be consumed via `v-model` from the parent
293
+ * component. This will declare a prop with the same name and a corresponding
294
+ * `update:propName` event.
295
+ *
296
+ * If the first argument is a string, it will be used as the prop name;
297
+ * Otherwise the prop name will default to "modelValue". In both cases, you
298
+ * can also pass an additional object which will be used as the prop's options.
299
+ *
300
+ * The returned ref behaves differently depending on whether the parent
301
+ * provided the corresponding v-model props or not:
302
+ * - If yes, the returned ref's value will always be in sync with the parent
303
+ * prop.
304
+ * - If not, the returned ref will behave like a normal local ref.
305
+ *
306
+ * @example
307
+ * ```ts
308
+ * // default model (consumed via `v-model`)
309
+ * const modelValue = defineModel<string>()
310
+ * modelValue.value = "hello"
311
+ *
312
+ * // default model with options
313
+ * const modelValue = defineModel<string>({ required: true })
314
+ *
315
+ * // with specified name (consumed via `v-model:count`)
316
+ * const count = defineModel<number>('count')
317
+ * count.value++
318
+ *
319
+ * // with specified name and default value
320
+ * const count = defineModel<number>('count', { default: 0 })
321
+ * ```
322
+ */
323
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: DefineModelRuntimeOptions<T, G, S> & ({
324
+ default: DefineModelDefault<T>;
319
325
  } | {
320
326
  required: true;
321
- }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
322
- export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
323
- export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: ({
324
- default: any;
327
+ })): ModelRef<T, M, G, S>;
328
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
329
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: DefineModelRuntimeOptions<T, G, S> & ({
330
+ default: DefineModelDefault<T>;
325
331
  } | {
326
332
  required: true;
327
- }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
328
- export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
333
+ })): ModelRef<T, M, G, S>;
334
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: DefineModelRuntimeOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
329
335
  type NotUndefined<T> = T extends undefined ? never : T;
330
- type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P] };
331
- type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]> };
336
+ type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P]; };
337
+ type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]>; };
332
338
  type NativeType = null | undefined | number | string | boolean | symbol | Function;
333
339
  type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
334
- type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean } : never;
340
+ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never; } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean; } : never;
335
341
  /**
336
- * Vue `<script setup>` compiler macro for providing props default values when
337
- * using type-based `defineProps` declaration.
338
- *
339
- * Example usage:
340
- * ```ts
341
- * withDefaults(defineProps<{
342
- * size?: number
343
- * labels?: string[]
344
- * }>(), {
345
- * size: 3,
346
- * labels: () => ['default label']
347
- * })
348
- * ```
349
- *
350
- * This is only usable inside `<script setup>`, is compiled away in the output
351
- * and should **not** be actually called at runtime.
352
- *
353
- * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
354
- */
342
+ * Vue `<script setup>` compiler macro for providing props default values when
343
+ * using type-based `defineProps` declaration.
344
+ *
345
+ * Example usage:
346
+ * ```ts
347
+ * withDefaults(defineProps<{
348
+ * size?: number
349
+ * labels?: string[]
350
+ * }>(), {
351
+ * size: 3,
352
+ * labels: () => ['default label']
353
+ * })
354
+ * ```
355
+ *
356
+ * This is only usable inside `<script setup>`, is compiled away in the output
357
+ * and should **not** be actually called at runtime.
358
+ *
359
+ * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
360
+ */
355
361
  export declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
356
362
  export declare function useSlots(): SetupContext["slots"];
357
363
  export declare function useAttrs(): SetupContext["attrs"];
358
364
  //#endregion
359
365
  //#region temp/packages/runtime-core/src/componentEmits.d.ts
360
- export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
366
+ export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null | any[]>;
361
367
  export type EmitsOptions = ObjectEmitsOptions | string[];
362
- export type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : never) => any } : {};
363
- export type TypeEmitsToOptions<T extends ComponentTypeEmits> = { [K in keyof T & string]: T[K] extends [...args: infer Args] ? (...args: Args) => any : () => any } & (T extends ((...args: any[]) => any) ? ParametersToFns<OverloadParameters<T>> : {});
364
- type ParametersToFns<T extends any[]> = { [K in T[0]]: IsStringLiteral<K> extends true ? (...args: T extends [e: infer E, ...args: infer P] ? K extends E ? P : never : never) => any : never };
368
+ export type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any; } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : T[K] extends any[] ? T[K] : never) => any; } : {};
369
+ export type TypeEmitsToOptions<T extends ComponentTypeEmits> = { [K in keyof T & string]: T[K] extends [...args: infer Args] ? (...args: Args) => any : () => any; } & (T extends ((...args: any[]) => any) ? ParametersToFns<OverloadParameters<T>> : {});
370
+ type ParametersToFns<T extends any[]> = { [K in T[0]]: IsStringLiteral<K> extends true ? (...args: T extends [e: infer E, ...args: infer P] ? K extends E ? P : never : never) => any : never; };
365
371
  type IsStringLiteral<T> = T extends string ? string extends T ? false : true : false;
366
- export type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any } : E;
367
- export type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void }[Event]>;
372
+ export type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any; } : E;
373
+ export type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void; }[Event]>;
368
374
  //#endregion
369
375
  //#region temp/packages/runtime-core/src/directives.d.ts
370
376
  export interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg = any> {
@@ -393,36 +399,36 @@ export type Directive<HostElement = any, Value = any, Modifiers extends string =
393
399
  export type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
394
400
  export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, any] | [Directive | undefined, any, any, DirectiveModifiers]>;
395
401
  /**
396
- * Adds directives to a VNode.
397
- */
402
+ * Adds directives to a VNode.
403
+ */
398
404
  export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
399
405
  //#endregion
400
406
  //#region temp/packages/runtime-core/src/componentPublicInstance.d.ts
401
407
  /**
402
- * Custom properties added to component instances in any way and can be accessed through `this`
403
- *
404
- * @example
405
- * Here is an example of adding a property `$router` to every component instance:
406
- * ```ts
407
- * import { createApp } from 'vue'
408
- * import { Router, createRouter } from 'vue-router'
409
- *
410
- * declare module 'vue' {
411
- * interface ComponentCustomProperties {
412
- * $router: Router
413
- * }
414
- * }
415
- *
416
- * // effectively adding the router to every component instance
417
- * const app = createApp({})
418
- * const router = createRouter()
419
- * app.config.globalProperties.$router = router
420
- *
421
- * const vm = app.mount('#app')
422
- * // we can access the router from the instance
423
- * vm.$router.push('/')
424
- * ```
425
- */
408
+ * Custom properties added to component instances in any way and can be accessed through `this`
409
+ *
410
+ * @example
411
+ * Here is an example of adding a property `$router` to every component instance:
412
+ * ```ts
413
+ * import { createApp } from 'vue'
414
+ * import { Router, createRouter } from 'vue-router'
415
+ *
416
+ * declare module 'vue' {
417
+ * interface ComponentCustomProperties {
418
+ * $router: Router
419
+ * }
420
+ * }
421
+ *
422
+ * // effectively adding the router to every component instance
423
+ * const app = createApp({})
424
+ * const router = createRouter()
425
+ * app.config.globalProperties.$router = router
426
+ *
427
+ * const vm = app.mount('#app')
428
+ * // we can access the router from the instance
429
+ * vm.$router.push('/')
430
+ * ```
431
+ */
426
432
  export interface ComponentCustomProperties {}
427
433
  type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
428
434
  type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults, any, any, any, any, any, any, any> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
@@ -439,20 +445,20 @@ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props,
439
445
  new (...args: any[]): T;
440
446
  };
441
447
  /**
442
- * @deprecated This is no longer used internally, but exported and relied on by
443
- * existing library types generated by vue-tsc.
444
- */
448
+ * @deprecated This is no longer used internally, but exported and relied on by
449
+ * existing library types generated by vue-tsc.
450
+ */
445
451
  export type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, "P"> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, "B"> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, "D"> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, "C"> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, "M"> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, "Defaults"> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S>, I, S>;
446
452
  /**
447
- * This is the same as `CreateComponentPublicInstance` but adds local components,
448
- * global directives, exposed, and provide inference.
449
- * It changes the arguments order so that we don't need to repeat mixin
450
- * inference everywhere internally, but it has to be a new type to avoid
451
- * breaking types that relies on previous arguments order (#10842)
452
- */
453
- export type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, TypeEl extends Element = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, "P"> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, "B"> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, "D"> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, "C"> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, "M"> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, "Defaults"> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
453
+ * This is the same as `CreateComponentPublicInstance` but adds local components,
454
+ * global directives, exposed, and provide inference.
455
+ * It changes the arguments order so that we don't need to repeat mixin
456
+ * inference everywhere internally, but it has to be a new type to avoid
457
+ * breaking types that relies on previous arguments order (#10842)
458
+ */
459
+ export type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, TypeEl = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, "P"> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, "B"> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, "D"> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, "C"> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, "M"> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, "Defaults"> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
454
460
  type ExposedKeys<T, Exposed extends string & keyof T> = "" extends Exposed ? T : Pick<T, Exposed>;
455
- export type ComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = "", TypeRefs extends Data = {}, TypeEl extends Element = any> = {
461
+ export type ComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = "", TypeRefs extends Data = {}, TypeEl = any> = {
456
462
  $: ComponentInternalInstance;
457
463
  $data: D;
458
464
  $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
@@ -498,15 +504,15 @@ export interface SuspenseProps {
498
504
  onPending?: () => void;
499
505
  onFallback?: () => void;
500
506
  /**
501
- * Switch to fallback content if it takes longer than `timeout` milliseconds to render the new default content.
502
- * A `timeout` value of `0` will cause the fallback content to be displayed immediately when default content is replaced.
503
- */
507
+ * Switch to fallback content if it takes longer than `timeout` milliseconds to render the new default content.
508
+ * A `timeout` value of `0` will cause the fallback content to be displayed immediately when default content is replaced.
509
+ */
504
510
  timeout?: string | number;
505
511
  /**
506
- * Allow suspense to be captured by parent suspense
507
- *
508
- * @default false
509
- */
512
+ * Allow suspense to be captured by parent suspense
513
+ *
514
+ * @default false
515
+ */
510
516
  suspensible?: boolean;
511
517
  }
512
518
  declare const SuspenseImpl: {
@@ -618,10 +624,10 @@ export interface TransitionHooksContext {
618
624
  setLeavingNodeCache: (node: any) => void;
619
625
  unsetLeavingNodeCache: (node: any) => void;
620
626
  earlyRemove: () => void;
621
- cloneHooks: (node: any) => TransitionHooks;
627
+ cloneHooks?: (node: any) => TransitionHooks;
622
628
  }
623
629
  export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: GenericComponentInstance, postClone?: (hooks: TransitionHooks) => void): TransitionHooks;
624
- export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
630
+ export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): TransitionHooks;
625
631
  export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode["key"]): VNode[];
626
632
  //#endregion
627
633
  //#region temp/packages/runtime-core/src/renderer.d.ts
@@ -687,20 +693,20 @@ export declare enum MoveType {
687
693
  REORDER = 2
688
694
  }
689
695
  /**
690
- * The createRenderer function accepts two generic arguments:
691
- * HostNode and HostElement, corresponding to Node and Element types in the
692
- * host environment. For example, for runtime-dom, HostNode would be the DOM
693
- * `Node` interface and HostElement would be the DOM `Element` interface.
694
- *
695
- * Custom renderers can pass in the platform specific types like this:
696
- *
697
- * ``` js
698
- * const { render, createApp } = createRenderer<Node, Element>({
699
- * patchProp,
700
- * ...nodeOps
701
- * })
702
- * ```
703
- */
696
+ * The createRenderer function accepts two generic arguments:
697
+ * HostNode and HostElement, corresponding to Node and Element types in the
698
+ * host environment. For example, for runtime-dom, HostNode would be the DOM
699
+ * `Node` interface and HostElement would be the DOM `Element` interface.
700
+ *
701
+ * Custom renderers can pass in the platform specific types like this:
702
+ *
703
+ * ``` js
704
+ * const { render, createApp } = createRenderer<Node, Element>({
705
+ * patchProp,
706
+ * ...nodeOps
707
+ * })
708
+ * ```
709
+ */
704
710
  export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
705
711
  export declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
706
712
  //#endregion
@@ -797,23 +803,39 @@ declare function configureCompat(config: CompatConfig): void;
797
803
  //#endregion
798
804
  //#region temp/packages/runtime-core/src/componentOptions.d.ts
799
805
  /**
800
- * Interface for declaring custom options.
801
- *
802
- * @example
803
- * ```ts
804
- * declare module 'vue' {
805
- * interface ComponentCustomOptions {
806
- * beforeRouteUpdate?(
807
- * to: Route,
808
- * from: Route,
809
- * next: () => void
810
- * ): void
811
- * }
812
- * }
813
- * ```
814
- */
806
+ * Interface for declaring custom options.
807
+ *
808
+ * @example
809
+ * ```ts
810
+ * declare module 'vue' {
811
+ * interface ComponentCustomOptions {
812
+ * beforeRouteUpdate?(
813
+ * to: Route,
814
+ * from: Route,
815
+ * next: () => void
816
+ * ): void
817
+ * }
818
+ * }
819
+ * ```
820
+ */
815
821
  export interface ComponentCustomOptions {}
816
- export type RenderFunction = () => VNodeChild;
822
+ /**
823
+ * Registry for additional render result types.
824
+ *
825
+ * @example
826
+ * ```ts
827
+ * import type { VaporRenderResult } from 'vue'
828
+ *
829
+ * declare module 'vue' {
830
+ * interface RenderResultExtensions {
831
+ * vapor: VaporRenderResult
832
+ * }
833
+ * }
834
+ * ```
835
+ */
836
+ export interface RenderResultExtensions {}
837
+ type RenderResult = VNodeChild | RenderResultExtensions[keyof RenderResultExtensions] | RenderResult[];
838
+ export type RenderFunction = () => RenderResult;
817
839
  export interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II, Provide>, ComponentInternalOptions, AsyncComponentInternalOptions, ComponentCustomOptions {
818
840
  setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P">>>, ctx: SetupContext<E, S>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
819
841
  name?: string;
@@ -834,8 +856,8 @@ export interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedO
834
856
  __defaults?: Defaults;
835
857
  }
836
858
  /**
837
- * Subset of compiler options that makes sense for the runtime.
838
- */
859
+ * Subset of compiler options that makes sense for the runtime.
860
+ */
839
861
  export interface RuntimeCompilerOptions {
840
862
  isCustomElement?: (tag: string) => boolean;
841
863
  whitespace?: "preserve" | "condense";
@@ -850,7 +872,7 @@ export interface MethodOptions {
850
872
  }
851
873
  type ExtractComputedReturns<T extends any> = { [key in keyof T]: T[key] extends {
852
874
  get: (...args: any[]) => infer TReturn;
853
- } ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never };
875
+ } ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never; };
854
876
  type ObjectWatchOptionItem = {
855
877
  handler: WatchCallback | string;
856
878
  } & WatchOptions;
@@ -864,7 +886,7 @@ type ObjectInjectOptions = Record<string | symbol, string | symbol | {
864
886
  from?: string | symbol;
865
887
  default?: unknown;
866
888
  }>;
867
- type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown } : never;
889
+ type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown; } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown; } : never;
868
890
  interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string, Provide extends ComponentProvideOptions = ComponentProvideOptions> {
869
891
  compatConfig?: CompatConfig;
870
892
  [key: string]: any;
@@ -895,18 +917,18 @@ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOpt
895
917
  renderTriggered?: DebuggerHook;
896
918
  errorCaptured?: ErrorCapturedHook;
897
919
  /**
898
- * runtime compile only
899
- * @deprecated use `compilerOptions.delimiters` instead.
900
- */
920
+ * runtime compile only
921
+ * @deprecated use `compilerOptions.delimiters` instead.
922
+ */
901
923
  delimiters?: [string, string];
902
924
  /**
903
- * #3468
904
- *
905
- * type-only, used to assist Mixin's type inference,
906
- * TypeScript will try to simplify the inferred `Mixin` type,
907
- * with the `__differentiator`, TypeScript won't be able to combine different mixins,
908
- * because the `__differentiator` will be different
909
- */
925
+ * #3468
926
+ *
927
+ * type-only, used to assist Mixin's type inference,
928
+ * TypeScript will try to simplify the inferred `Mixin` type,
929
+ * with the `__differentiator`, TypeScript won't be able to combine different mixins,
930
+ * because the `__differentiator` will be different
931
+ */
910
932
  __differentiator?: keyof D | keyof C | keyof M;
911
933
  }
912
934
  type MergedHook<T = () => void> = T | T[];
@@ -918,9 +940,11 @@ type MergedComponentOptionsOverride = {
918
940
  beforeUpdate?: MergedHook;
919
941
  updated?: MergedHook;
920
942
  activated?: MergedHook;
921
- deactivated?: MergedHook; /** @deprecated use `beforeUnmount` instead */
943
+ deactivated?: MergedHook;
944
+ /** @deprecated use `beforeUnmount` instead */
922
945
  beforeDestroy?: MergedHook;
923
- beforeUnmount?: MergedHook; /** @deprecated use `unmounted` instead */
946
+ beforeUnmount?: MergedHook;
947
+ /** @deprecated use `unmounted` instead */
924
948
  destroyed?: MergedHook;
925
949
  unmounted?: MergedHook;
926
950
  renderTracked?: MergedHook<DebuggerHook>;
@@ -937,28 +961,28 @@ type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M e
937
961
  Defaults: Defaults;
938
962
  };
939
963
  /**
940
- * @deprecated
941
- */
942
- export type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, TE extends ComponentTypeEmits = {}, ResolvedEmits extends EmitsOptions = ({} extends E ? TypeEmitsToOptions<TE> : E), PE = Props & EmitsToProps<ResolvedEmits>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
964
+ * @deprecated
965
+ */
966
+ export type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, TE extends ComponentTypeEmits = {}, ResolvedEmits extends EmitsOptions = {} extends E ? TypeEmitsToOptions<TE> : E, PE = Props & EmitsToProps<ResolvedEmits>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
943
967
  props?: never;
944
968
  /**
945
- * @private for language-tools use only
946
- */
969
+ * @private for language-tools use only
970
+ */
947
971
  __typeProps?: Props;
948
972
  /**
949
- * @private for language-tools use only
950
- */
973
+ * @private for language-tools use only
974
+ */
951
975
  __typeEmits?: TE;
952
976
  } & ThisType<CreateComponentPublicInstanceWithMixins<PE, RawBindings, D, C, M, Mixin, Extends, ResolvedEmits, EE, {}, false, I, S, LC, Directives, string>>;
953
977
  /**
954
- * @deprecated
955
- */
956
- export type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, Props = Prettify<Readonly<{ [key in PropNames]?: any } & EmitsToProps<E>>>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
978
+ * @deprecated
979
+ */
980
+ export type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, Props = Prettify<Readonly<{ [key in PropNames]?: any; } & EmitsToProps<E>>>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
957
981
  props: PropNames[];
958
982
  } & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, {}, false, I, S, LC, Directives, string>>;
959
983
  /**
960
- * @deprecated
961
- */
984
+ * @deprecated
985
+ */
962
986
  export type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, Props = Prettify<Readonly<ExtractPropTypes<PropsOptions>> & Readonly<EmitsToProps<E>>>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S, LC, Directives, Exposed, Provide> & {
963
987
  props: PropsOptions & ThisType<void>;
964
988
  } & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false, I, S, LC, Directives>>;
@@ -971,16 +995,16 @@ export declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
971
995
  export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
972
996
  export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
973
997
  /**
974
- * Returns true if `inject()` can be used without warning about being called in the wrong place (e.g. outside of
975
- * setup()). This is used by libraries that want to use `inject()` internally without triggering a warning to the end
976
- * user. One example is `useRoute()` in `vue-router`.
977
- */
998
+ * Returns true if `inject()` can be used without warning about being called in the wrong place (e.g. outside of
999
+ * setup()). This is used by libraries that want to use `inject()` internally without triggering a warning to the end
1000
+ * user. One example is `useRoute()` in `vue-router`.
1001
+ */
978
1002
  export declare function hasInjectionContext(): boolean;
979
1003
  //#endregion
980
1004
  //#region temp/packages/runtime-core/src/apiDefineComponent.d.ts
981
1005
  export type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
982
1006
  type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
983
- export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
1007
+ export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
984
1008
  export type DefineSetupFnComponent<P extends Record<string, any>, E extends EmitsOptions = {}, S extends SlotsType = SlotsType, Props = P & EmitsToProps<E>, PP = PublicProps> = new (props: Props & PP) => CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, E, PP, {}, false, {}, S>;
985
1009
  type ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> & Readonly<EmitsToProps<Emits>>;
986
1010
  export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, "name" | "inheritAttrs"> & {
@@ -993,23 +1017,23 @@ export declare function defineComponent<Props extends Record<string, any>, E ext
993
1017
  emits?: E | EE[];
994
1018
  slots?: S;
995
1019
  }): DefineSetupFnComponent<Props, E, S>;
996
- export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = ({} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions), InferredProps = (IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any }), TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any>(options: {
1020
+ export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = {} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions, InferredProps = IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : { [key in RuntimePropsKeys]?: any; }, TypeRefs extends Record<string, unknown> = {}, TypeEl = any>(options: {
997
1021
  props?: (RuntimePropsOptions & ThisType<void>) | RuntimePropsKeys[];
998
1022
  /**
999
- * @private for language-tools use only
1000
- */
1023
+ * @private for language-tools use only
1024
+ */
1001
1025
  __typeProps?: TypeProps;
1002
1026
  /**
1003
- * @private for language-tools use only
1004
- */
1027
+ * @private for language-tools use only
1028
+ */
1005
1029
  __typeEmits?: TypeEmits;
1006
1030
  /**
1007
- * @private for language-tools use only
1008
- */
1031
+ * @private for language-tools use only
1032
+ */
1009
1033
  __typeRefs?: TypeRefs;
1010
1034
  /**
1011
- * @private for language-tools use only
1012
- */
1035
+ * @private for language-tools use only
1036
+ */
1013
1037
  __typeEl?: TypeEl;
1014
1038
  } & ComponentOptionsBase<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, RuntimeEmitsKeys, {}, InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, {}, {}, false, InjectOptions, Slots, LocalComponents, Directives, string>>): DefineComponent<InferredProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, RuntimeEmitsKeys, PublicProps, ToResolvedProps<InferredProps, ResolvedEmits>, ExtractDefaultPropTypes<RuntimePropsOptions>, Slots, LocalComponents, Directives, Exposed, Provide, unknown extends TypeProps ? true : false, TypeRefs, TypeEl>;
1015
1039
  //#endregion
@@ -1030,11 +1054,11 @@ export interface App<HostElement = any> {
1030
1054
  onUnmount(cb: () => void): void;
1031
1055
  provide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): this;
1032
1056
  /**
1033
- * Runs a function with the app as active instance. This allows using of `inject()` within the function to get access
1034
- * to variables provided via `app.provide()`.
1035
- *
1036
- * @param fn - function to run with the app as active instance
1037
- */
1057
+ * Runs a function with the app as active instance. This allows using of `inject()` within the function to get access
1058
+ * to variables provided via `app.provide()`.
1059
+ *
1060
+ * @param fn - function to run with the app as active instance
1061
+ */
1038
1062
  runWithContext<T>(fn: () => T): T;
1039
1063
  _uid: number;
1040
1064
  _component: GenericComponent;
@@ -1043,28 +1067,28 @@ export interface App<HostElement = any> {
1043
1067
  _context: AppContext;
1044
1068
  _instance: GenericComponentInstance | null;
1045
1069
  /**
1046
- * v2 compat only
1047
- */
1070
+ * v2 compat only
1071
+ */
1048
1072
  filter?(name: string): Function | undefined;
1049
1073
  filter?(name: string, filter: Function): this;
1050
1074
  }
1051
1075
  export type OptionMergeFunction = (to: unknown, from: unknown) => any;
1052
1076
  /**
1053
- * Shared app config between vdom and vapor
1054
- */
1077
+ * Shared app config between vdom and vapor
1078
+ */
1055
1079
  interface GenericAppConfig {
1056
1080
  performance?: boolean;
1057
1081
  errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
1058
1082
  warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
1059
1083
  /**
1060
- * Whether to throw unhandled errors in production.
1061
- * Default is `false` to avoid crashing on any error (and only logs it)
1062
- * But in some cases, e.g. SSR, throwing might be more desirable.
1063
- */
1084
+ * Whether to throw unhandled errors in production.
1085
+ * Default is `false` to avoid crashing on any error (and only logs it)
1086
+ * But in some cases, e.g. SSR, throwing might be more desirable.
1087
+ */
1064
1088
  throwUnhandledErrorInProduction?: boolean;
1065
1089
  /**
1066
- * Prefix for all useId() calls within this app
1067
- */
1090
+ * Prefix for all useId() calls within this app
1091
+ */
1068
1092
  idPrefix?: string;
1069
1093
  }
1070
1094
  export interface AppConfig extends GenericAppConfig {
@@ -1072,18 +1096,18 @@ export interface AppConfig extends GenericAppConfig {
1072
1096
  optionMergeStrategies: Record<string, OptionMergeFunction>;
1073
1097
  globalProperties: ComponentCustomProperties & Record<string, any>;
1074
1098
  /**
1075
- * Options to pass to `@vue/compiler-dom`.
1076
- * Only supported in runtime compiler build.
1077
- */
1099
+ * Options to pass to `@vue/compiler-dom`.
1100
+ * Only supported in runtime compiler build.
1101
+ */
1078
1102
  compilerOptions: RuntimeCompilerOptions;
1079
1103
  /**
1080
- * @deprecated use config.compilerOptions.isCustomElement
1081
- */
1104
+ * @deprecated use config.compilerOptions.isCustomElement
1105
+ */
1082
1106
  isCustomElement?: (tag: string) => boolean;
1083
1107
  }
1084
1108
  /**
1085
- * Minimal app context shared between vdom and vapor
1086
- */
1109
+ * Minimal app context shared between vdom and vapor
1110
+ */
1087
1111
  export interface GenericAppContext {
1088
1112
  app: App;
1089
1113
  config: GenericAppConfig;
@@ -1102,7 +1126,7 @@ export type ObjectPlugin<Options = any[]> = {
1102
1126
  install: PluginInstallFunction<Options>;
1103
1127
  };
1104
1128
  export type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
1105
- export type Plugin<Options = any[], P extends unknown[] = (Options extends unknown[] ? Options : [Options])> = FunctionPlugin<P> | ObjectPlugin<P>;
1129
+ export type Plugin<Options = any[], P extends unknown[] = Options extends unknown[] ? Options : [Options]> = FunctionPlugin<P> | ObjectPlugin<P>;
1106
1130
  export type CreateAppFunction<HostElement, Comp = Component> = (rootComponent: Comp, rootProps?: Data | null) => App<HostElement>;
1107
1131
  //#endregion
1108
1132
  //#region temp/packages/runtime-core/src/components/Teleport.d.ts
@@ -1116,12 +1140,7 @@ declare const TeleportImpl: {
1116
1140
  name: string;
1117
1141
  __isTeleport: boolean;
1118
1142
  process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
1119
- remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, {
1120
- um: unmount,
1121
- o: {
1122
- remove: hostRemove
1123
- }
1124
- }: RendererInternals, doRemove: boolean): void;
1143
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
1125
1144
  move: typeof moveTeleport;
1126
1145
  hydrate: typeof hydrateTeleport;
1127
1146
  };
@@ -1130,21 +1149,8 @@ declare enum TeleportMoveTypes {
1130
1149
  TOGGLE = 1,
1131
1150
  REORDER = 2
1132
1151
  }
1133
- declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, {
1134
- o: {
1135
- insert
1136
- },
1137
- m: move
1138
- }: RendererInternals, parentComponent: ComponentInternalInstance | null, moveType?: TeleportMoveTypes): void;
1139
- declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, {
1140
- o: {
1141
- nextSibling,
1142
- parentNode,
1143
- querySelector,
1144
- insert,
1145
- createText
1146
- }
1147
- }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
1152
+ declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, parentComponent: ComponentInternalInstance | null, moveType?: TeleportMoveTypes): void;
1153
+ declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector, insert, createText } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
1148
1154
  export declare const Teleport: {
1149
1155
  __isTeleport: true;
1150
1156
  new (): {
@@ -1157,17 +1163,17 @@ export declare const Teleport: {
1157
1163
  //#endregion
1158
1164
  //#region temp/packages/runtime-core/src/helpers/resolveAssets.d.ts
1159
1165
  /**
1160
- * @private
1161
- */
1166
+ * @private
1167
+ */
1162
1168
  export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
1163
1169
  export declare const NULL_DYNAMIC_COMPONENT: unique symbol;
1164
1170
  /**
1165
- * @private
1166
- */
1171
+ * @private
1172
+ */
1167
1173
  export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
1168
1174
  /**
1169
- * @private
1170
- */
1175
+ * @private
1176
+ */
1171
1177
  export declare function resolveDirective(name: string): Directive | undefined;
1172
1178
  //#endregion
1173
1179
  //#region temp/packages/runtime-core/src/vnode.d.ts
@@ -1185,20 +1191,20 @@ export type VNodeTypes = string | VNode | Component | typeof Text | typeof Stati
1185
1191
  export type VNodeRef = string | Ref$1 | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
1186
1192
  type VNodeNormalizedRefAtom = {
1187
1193
  /**
1188
- * component instance
1189
- */
1194
+ * component instance
1195
+ */
1190
1196
  i: ComponentInternalInstance;
1191
1197
  /**
1192
- * Actual ref
1193
- */
1198
+ * Actual ref
1199
+ */
1194
1200
  r: VNodeRef;
1195
1201
  /**
1196
- * setup ref key
1197
- */
1202
+ * setup ref key
1203
+ */
1198
1204
  k?: string;
1199
1205
  /**
1200
- * refInFor marker
1201
- */
1206
+ * refInFor marker
1207
+ */
1202
1208
  f?: boolean;
1203
1209
  };
1204
1210
  type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
@@ -1228,9 +1234,9 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
1228
1234
  key: PropertyKey | null;
1229
1235
  ref: VNodeNormalizedRef | null;
1230
1236
  /**
1231
- * SFC only. This is assigned on vnode creation using currentScopeId
1232
- * which is set alongside currentRenderingInstance.
1233
- */
1237
+ * SFC only. This is assigned on vnode creation using currentScopeId
1238
+ * which is set alongside currentRenderingInstance.
1239
+ */
1234
1240
  scopeId: string | null;
1235
1241
  children: VNodeNormalizedChildren;
1236
1242
  component: ComponentInternalInstance | null;
@@ -1248,59 +1254,59 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
1248
1254
  appContext: AppContext | null;
1249
1255
  }
1250
1256
  /**
1251
- * Open a block.
1252
- * This must be called before `createBlock`. It cannot be part of `createBlock`
1253
- * because the children of the block are evaluated before `createBlock` itself
1254
- * is called. The generated code typically looks like this:
1255
- *
1256
- * ```js
1257
- * function render() {
1258
- * return (openBlock(),createBlock('div', null, [...]))
1259
- * }
1260
- * ```
1261
- * disableTracking is true when creating a v-for fragment block, since a v-for
1262
- * fragment always diffs its children.
1263
- *
1264
- * @private
1265
- */
1257
+ * Open a block.
1258
+ * This must be called before `createBlock`. It cannot be part of `createBlock`
1259
+ * because the children of the block are evaluated before `createBlock` itself
1260
+ * is called. The generated code typically looks like this:
1261
+ *
1262
+ * ```js
1263
+ * function render() {
1264
+ * return (openBlock(),createBlock('div', null, [...]))
1265
+ * }
1266
+ * ```
1267
+ * disableTracking is true when creating a v-for fragment block, since a v-for
1268
+ * fragment always diffs its children.
1269
+ *
1270
+ * @private
1271
+ */
1266
1272
  export declare function openBlock(disableTracking?: boolean): void;
1267
1273
  /**
1268
- * Block tracking sometimes needs to be disabled, for example during the
1269
- * creation of a tree that needs to be cached by v-once. The compiler generates
1270
- * code like this:
1271
- *
1272
- * ``` js
1273
- * _cache[1] || (
1274
- * setBlockTracking(-1, true),
1275
- * _cache[1] = createVNode(...),
1276
- * setBlockTracking(1),
1277
- * _cache[1]
1278
- * )
1279
- * ```
1280
- *
1281
- * @private
1282
- */
1274
+ * Block tracking sometimes needs to be disabled, for example during the
1275
+ * creation of a tree that needs to be cached by v-once. The compiler generates
1276
+ * code like this:
1277
+ *
1278
+ * ``` js
1279
+ * _cache[1] || (
1280
+ * setBlockTracking(-1, true),
1281
+ * _cache[1] = createVNode(...),
1282
+ * setBlockTracking(1),
1283
+ * _cache[1]
1284
+ * )
1285
+ * ```
1286
+ *
1287
+ * @private
1288
+ */
1283
1289
  export declare function setBlockTracking(value: number, inVOnce?: boolean): void;
1284
1290
  /**
1285
- * @private
1286
- */
1291
+ * @private
1292
+ */
1287
1293
  export declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode;
1288
1294
  /**
1289
- * Create a block root vnode. Takes the same exact arguments as `createVNode`.
1290
- * A block root keeps track of dynamic nodes within the block in the
1291
- * `dynamicChildren` array.
1292
- *
1293
- * @private
1294
- */
1295
+ * Create a block root vnode. Takes the same exact arguments as `createVNode`.
1296
+ * A block root keeps track of dynamic nodes within the block in the
1297
+ * `dynamicChildren` array.
1298
+ *
1299
+ * @private
1300
+ */
1295
1301
  export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
1296
1302
  export declare function isVNode(value: any): value is VNode;
1297
1303
  declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
1298
1304
  /**
1299
- * Internal API for registering an arguments transform for createVNode
1300
- * used for creating stubs in the test-utils
1301
- * It is *internal* but needs to be exposed for test-utils to pick up proper
1302
- * typings
1303
- */
1305
+ * Internal API for registering an arguments transform for createVNode
1306
+ * used for creating stubs in the test-utils
1307
+ * It is *internal* but needs to be exposed for test-utils to pick up proper
1308
+ * typings
1309
+ */
1304
1310
  export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
1305
1311
  export declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode;
1306
1312
  export declare const createVNode: typeof _createVNode;
@@ -1308,16 +1314,16 @@ declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DY
1308
1314
  export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
1309
1315
  export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean, cloneTransition?: boolean): VNode<T, U>;
1310
1316
  /**
1311
- * @private
1312
- */
1317
+ * @private
1318
+ */
1313
1319
  export declare function createTextVNode(text?: string, flag?: number): VNode;
1314
1320
  /**
1315
- * @private
1316
- */
1321
+ * @private
1322
+ */
1317
1323
  export declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
1318
1324
  /**
1319
- * @private
1320
- */
1325
+ * @private
1326
+ */
1321
1327
  export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
1322
1328
  export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
1323
1329
  //#endregion
@@ -1327,62 +1333,62 @@ export declare const getCurrentInstance: () => ComponentInternalInstance | null;
1327
1333
  //#region temp/packages/runtime-core/src/component.d.ts
1328
1334
  type Data = Record<string, unknown>;
1329
1335
  /**
1330
- * For extending allowed non-declared attrs on components in TSX
1331
- */
1336
+ * For extending allowed non-declared attrs on components in TSX
1337
+ */
1332
1338
  export interface AllowedAttrs {}
1333
1339
  export type Attrs = Data & AllowedAttrs;
1334
1340
  /**
1335
- * Public utility type for extracting the instance type of a component.
1336
- * Works with all valid component definition types. This is intended to replace
1337
- * the usage of `InstanceType<typeof Comp>` which only works for
1338
- * constructor-based component definition types.
1339
- *
1340
- * @example
1341
- * ```ts
1342
- * const MyComp = { ... }
1343
- * declare const instance: ComponentInstance<typeof MyComp>
1344
- * ```
1345
- */
1341
+ * Public utility type for extracting the instance type of a component.
1342
+ * Works with all valid component definition types. This is intended to replace
1343
+ * the usage of `InstanceType<typeof Comp>` which only works for
1344
+ * constructor-based component definition types.
1345
+ *
1346
+ * @example
1347
+ * ```ts
1348
+ * const MyComp = { ... }
1349
+ * declare const instance: ComponentInstance<typeof MyComp>
1350
+ * ```
1351
+ */
1346
1352
  export type ComponentInstance<T> = T extends {
1347
1353
  new (): ComponentPublicInstance;
1348
1354
  } ? InstanceType<T> : T extends FunctionalComponent<infer Props, infer Emits> ? ComponentPublicInstance<Props, {}, {}, {}, {}, ShortEmitsToObject<Emits>> : T extends Component<infer PropsOrInstance, infer RawBindings, infer D, infer C, infer M> ? PropsOrInstance extends {
1349
1355
  $props: unknown;
1350
1356
  } ? PropsOrInstance : ComponentPublicInstance<unknown extends PropsOrInstance ? {} : PropsOrInstance, unknown extends RawBindings ? {} : RawBindings, unknown extends D ? {} : D, C, M> : never;
1351
1357
  /**
1352
- * For extending allowed non-declared props on components in TSX
1353
- */
1358
+ * For extending allowed non-declared props on components in TSX
1359
+ */
1354
1360
  export interface ComponentCustomProps {}
1355
1361
  /**
1356
- * For globally defined Directives
1357
- * Here is an example of adding a directive `VTooltip` as global directive:
1358
- *
1359
- * @example
1360
- * ```ts
1361
- * import VTooltip from 'v-tooltip'
1362
- *
1363
- * declare module '@vue/runtime-core' {
1364
- * interface GlobalDirectives {
1365
- * VTooltip
1366
- * }
1367
- * }
1368
- * ```
1369
- */
1362
+ * For globally defined Directives
1363
+ * Here is an example of adding a directive `VTooltip` as global directive:
1364
+ *
1365
+ * @example
1366
+ * ```ts
1367
+ * import VTooltip from 'v-tooltip'
1368
+ *
1369
+ * declare module '@vue/runtime-core' {
1370
+ * interface GlobalDirectives {
1371
+ * VTooltip
1372
+ * }
1373
+ * }
1374
+ * ```
1375
+ */
1370
1376
  export interface GlobalDirectives {}
1371
1377
  /**
1372
- * For globally defined Components
1373
- * Here is an example of adding a component `RouterView` as global component:
1374
- *
1375
- * @example
1376
- * ```ts
1377
- * import { RouterView } from 'vue-router'
1378
- *
1379
- * declare module '@vue/runtime-core' {
1380
- * interface GlobalComponents {
1381
- * RouterView
1382
- * }
1383
- * }
1384
- * ```
1385
- */
1378
+ * For globally defined Components
1379
+ * Here is an example of adding a component `RouterView` as global component:
1380
+ *
1381
+ * @example
1382
+ * ```ts
1383
+ * import { RouterView } from 'vue-router'
1384
+ *
1385
+ * declare module '@vue/runtime-core' {
1386
+ * interface GlobalComponents {
1387
+ * RouterView
1388
+ * }
1389
+ * }
1390
+ * ```
1391
+ */
1386
1392
  export interface GlobalComponents {
1387
1393
  Teleport: DefineComponent<TeleportProps>;
1388
1394
  Suspense: DefineComponent<SuspenseProps>;
@@ -1390,36 +1396,36 @@ export interface GlobalComponents {
1390
1396
  BaseTransition: DefineComponent<BaseTransitionProps>;
1391
1397
  }
1392
1398
  /**
1393
- * Default allowed non-declared props on component in TSX
1394
- */
1399
+ * Default allowed non-declared props on component in TSX
1400
+ */
1395
1401
  export interface AllowedComponentProps {
1396
1402
  class?: unknown;
1397
1403
  style?: unknown;
1398
1404
  }
1399
1405
  export interface ComponentInternalOptions {
1400
1406
  /**
1401
- * indicates vapor component
1402
- */
1407
+ * indicates vapor component
1408
+ */
1403
1409
  __vapor?: boolean;
1404
1410
  /**
1405
- * whether this vapor component has multiple root nodes
1406
- */
1411
+ * whether this vapor component has multiple root nodes
1412
+ */
1407
1413
  __multiRoot?: boolean;
1408
1414
  /**
1409
- * indicates keep-alive component
1410
- */
1415
+ * indicates keep-alive component
1416
+ */
1411
1417
  __isKeepAlive?: boolean;
1412
1418
  /**
1413
- * Compat build only, for bailing out of certain compatibility behavior
1414
- */
1419
+ * Compat build only, for bailing out of certain compatibility behavior
1420
+ */
1415
1421
  __isBuiltIn?: boolean;
1416
1422
  /**
1417
- * This one should be exposed so that devtools can make use of it
1418
- */
1423
+ * This one should be exposed so that devtools can make use of it
1424
+ */
1419
1425
  __file?: string;
1420
1426
  /**
1421
- * name inferred from filename
1422
- */
1427
+ * name inferred from filename
1428
+ */
1423
1429
  __name?: string;
1424
1430
  }
1425
1431
  export interface AsyncComponentInternalOptions<R = ConcreteComponent, I = ComponentInternalInstance> {}
@@ -1437,24 +1443,24 @@ interface ClassComponent {
1437
1443
  __vccOpts: ComponentOptions;
1438
1444
  }
1439
1445
  /**
1440
- * Type used where a function accepts both vdom and vapor components.
1441
- */
1446
+ * Type used where a function accepts both vdom and vapor components.
1447
+ */
1442
1448
  type GenericComponent = ({
1443
1449
  name?: string;
1444
1450
  } | ((() => any) & {
1445
1451
  displayName?: string;
1446
1452
  })) & ComponentInternalOptions;
1447
1453
  /**
1448
- * Concrete component type matches its actual value: it's either an options
1449
- * object, or a function. Use this where the code expects to work with actual
1450
- * values, e.g. checking if its a function or not. This is mostly for internal
1451
- * implementation code.
1452
- */
1454
+ * Concrete component type matches its actual value: it's either an options
1455
+ * object, or a function. Use this where the code expects to work with actual
1456
+ * values, e.g. checking if its a function or not. This is mostly for internal
1457
+ * implementation code.
1458
+ */
1453
1459
  export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, E, S>;
1454
1460
  /**
1455
- * A type used in public APIs where a component type is expected.
1456
- * The constructor type is an artificial type returned by defineComponent().
1457
- */
1461
+ * A type used in public APIs where a component type is expected.
1462
+ * The constructor type is an artificial type returned by defineComponent().
1463
+ */
1458
1464
  export type Component<PropsOrInstance = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ConcreteComponent<PropsOrInstance, RawBindings, D, C, M, E, S> | ComponentPublicInstanceConstructor<PropsOrInstance>;
1459
1465
  export type LifecycleHook<TFn = Function> = (TFn & SchedulerJob)[] | null;
1460
1466
  export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
@@ -1464,10 +1470,10 @@ export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends
1464
1470
  expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
1465
1471
  } : never;
1466
1472
  /**
1467
- * Base component instance interface that is shared between vdom mode and vapor
1468
- * mode, so that we can have a mixed instance tree and reuse core logic that
1469
- * operate on both.
1470
- */
1473
+ * Base component instance interface that is shared between vdom mode and vapor
1474
+ * mode, so that we can have a mixed instance tree and reuse core logic that
1475
+ * operate on both.
1476
+ */
1471
1477
  export interface GenericComponentInstance {
1472
1478
  vapor?: boolean;
1473
1479
  uid: number;
@@ -1476,8 +1482,8 @@ export interface GenericComponentInstance {
1476
1482
  parent: GenericComponentInstance | null;
1477
1483
  appContext: GenericAppContext;
1478
1484
  /**
1479
- * render function will have different types between vdom and vapor
1480
- */
1485
+ * render function will have different types between vdom and vapor
1486
+ */
1481
1487
  render?: Function | null;
1482
1488
  props: Data;
1483
1489
  attrs: Data;
@@ -1489,16 +1495,16 @@ export interface GenericComponentInstance {
1489
1495
  isUnmounted: boolean;
1490
1496
  isDeactivated: boolean;
1491
1497
  /**
1492
- * Public instance proxy, vdom only
1493
- */
1498
+ * Public instance proxy, vdom only
1499
+ */
1494
1500
  proxy?: any;
1495
1501
  vnode?: VNode;
1496
1502
  subTree?: VNode;
1497
1503
  }
1498
1504
  /**
1499
- * We expose a subset of properties on the internal instance as they are
1500
- * useful for advanced external libraries and tools.
1501
- */
1505
+ * We expose a subset of properties on the internal instance as they are
1506
+ * useful for advanced external libraries and tools.
1507
+ */
1502
1508
  export interface ComponentInternalInstance extends GenericComponentInstance {
1503
1509
  vapor?: never;
1504
1510
  uid: number;
@@ -1507,24 +1513,24 @@ export interface ComponentInternalInstance extends GenericComponentInstance {
1507
1513
  root: GenericComponentInstance;
1508
1514
  appContext: AppContext;
1509
1515
  /**
1510
- * Vnode representing this component in its parent's vdom tree
1511
- */
1516
+ * Vnode representing this component in its parent's vdom tree
1517
+ */
1512
1518
  vnode: VNode;
1513
1519
  /**
1514
- * Root vnode of this component's own vdom tree
1515
- */
1520
+ * Root vnode of this component's own vdom tree
1521
+ */
1516
1522
  subTree: VNode;
1517
1523
  /**
1518
- * Render effect instance
1519
- */
1524
+ * Render effect instance
1525
+ */
1520
1526
  effect: ReactiveEffect$1;
1521
1527
  /**
1522
- * Force update render effect
1523
- */
1528
+ * Force update render effect
1529
+ */
1524
1530
  update: () => void;
1525
1531
  /**
1526
- * Render effect job to be passed to scheduler (checks if dirty)
1527
- */
1532
+ * Render effect job to be passed to scheduler (checks if dirty)
1533
+ */
1528
1534
  job: SchedulerJob;
1529
1535
  proxy: ComponentPublicInstance | null;
1530
1536
  data: Data;
@@ -1533,16 +1539,16 @@ export interface ComponentInternalInstance extends GenericComponentInstance {
1533
1539
  exposeProxy: Record<string, any> | null;
1534
1540
  }
1535
1541
  /**
1536
- * For runtime-dom to register the compiler.
1537
- * Note the exported method uses any to avoid d.ts relying on the compiler types.
1538
- */
1542
+ * For runtime-dom to register the compiler.
1543
+ * Note the exported method uses any to avoid d.ts relying on the compiler types.
1544
+ */
1539
1545
  export declare function registerRuntimeCompiler(_compile: any): void;
1540
1546
  export declare const isRuntimeOnly: () => boolean;
1541
1547
  export interface ComponentCustomElementInterface {}
1542
1548
  //#endregion
1543
1549
  //#region temp/packages/runtime-core/src/apiWatch.d.ts
1544
1550
  type MaybeUndefined<T, I> = I extends true ? T | undefined : T;
1545
- type MapSources<T, Immediate> = { [K in keyof T]: T[K] extends WatchSource$1<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never };
1551
+ type MapSources<T, Immediate> = { [K in keyof T]: T[K] extends WatchSource$1<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never; };
1546
1552
  export interface WatchEffectOptions extends DebuggerOptions$1 {
1547
1553
  flush?: "pre" | "post" | "sync";
1548
1554
  }
@@ -1562,14 +1568,14 @@ export declare function watch<T extends object, Immediate extends Readonly<boole
1562
1568
  //#endregion
1563
1569
  //#region temp/packages/runtime-core/src/hydrationStrategies.d.ts
1564
1570
  /**
1565
- * A lazy hydration strategy for async components.
1566
- * @param hydrate - call this to perform the actual hydration.
1567
- * @param forEachElement - iterate through the root elements of the component's
1568
- * non-hydrated DOM, accounting for possible fragments.
1569
- * @returns a teardown function to be called if the async component is unmounted
1570
- * before it is hydrated. This can be used to e.g. remove DOM event
1571
- * listeners.
1572
- */
1571
+ * A lazy hydration strategy for async components.
1572
+ * @param hydrate - call this to perform the actual hydration.
1573
+ * @param forEachElement - iterate through the root elements of the component's
1574
+ * non-hydrated DOM, accounting for possible fragments.
1575
+ * @returns a teardown function to be called if the async component is unmounted
1576
+ * before it is hydrated. This can be used to e.g. remove DOM event
1577
+ * listeners.
1578
+ */
1573
1579
  export type HydrationStrategy = (hydrate: () => void, forEachElement: (cb: (el: Element) => any) => void) => (() => void) | void;
1574
1580
  export type HydrationStrategyFactory<Options> = (options?: Options) => HydrationStrategy;
1575
1581
  export declare const hydrateOnIdle: HydrationStrategyFactory<number>;
@@ -1620,7 +1626,7 @@ interface Constructor<P = any> {
1620
1626
  $props: P;
1621
1627
  };
1622
1628
  }
1623
- type HTMLElementEventHandler = { [K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (ev: HTMLElementEventMap[K]) => any };
1629
+ type HTMLElementEventHandler = { [K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (ev: HTMLElementEventMap[K]) => any; };
1624
1630
  export declare function h<K extends keyof HTMLElementTagNameMap>(type: K, children?: RawChildren): VNode;
1625
1631
  export declare function h<K extends keyof HTMLElementTagNameMap>(type: K, props?: (RawProps & HTMLElementEventHandler) | null, children?: RawChildren | RawSlots): VNode;
1626
1632
  export declare function h(type: string, children?: RawChildren): VNode;
@@ -1692,9 +1698,9 @@ interface DevtoolsHook {
1692
1698
  off: (event: string, handler: Function) => void;
1693
1699
  appRecords: AppRecord[];
1694
1700
  /**
1695
- * Added at https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9
1696
- * Returns whether the arg was buffered or not
1697
- */
1701
+ * Added at https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9
1702
+ * Returns whether the arg was buffered or not
1703
+ */
1698
1704
  cleanupBuffer?: (matchArg: unknown) => boolean;
1699
1705
  }
1700
1706
  declare function setDevtoolsHook$1(hook: DevtoolsHook, target: any): void;
@@ -1712,63 +1718,63 @@ declare function reload(id: string, newComp: HMRComponent): void;
1712
1718
  //#endregion
1713
1719
  //#region temp/packages/runtime-core/src/componentRenderContext.d.ts
1714
1720
  /**
1715
- * Set scope id when creating hoisted vnodes.
1716
- * @private compiler helper
1717
- */
1721
+ * Set scope id when creating hoisted vnodes.
1722
+ * @private compiler helper
1723
+ */
1718
1724
  export declare function pushScopeId(id: string | null): void;
1719
1725
  /**
1720
- * Technically we no longer need this after 3.0.8 but we need to keep the same
1721
- * API for backwards compat w/ code generated by compilers.
1722
- * @private
1723
- */
1726
+ * Technically we no longer need this after 3.0.8 but we need to keep the same
1727
+ * API for backwards compat w/ code generated by compilers.
1728
+ * @private
1729
+ */
1724
1730
  export declare function popScopeId(): void;
1725
1731
  /**
1726
- * Only for backwards compat
1727
- * @private
1728
- */
1732
+ * Only for backwards compat
1733
+ * @private
1734
+ */
1729
1735
  export declare const withScopeId: (_id: string) => typeof withCtx;
1730
1736
  /**
1731
- * Wrap a slot function to memoize current rendering instance
1732
- * @private compiler helper
1733
- */
1737
+ * Wrap a slot function to memoize current rendering instance
1738
+ * @private compiler helper
1739
+ */
1734
1740
  export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
1735
1741
  //#endregion
1736
1742
  //#region temp/packages/runtime-core/src/helpers/renderList.d.ts
1737
1743
  /**
1738
- * v-for string
1739
- * @private
1740
- */
1744
+ * v-for string
1745
+ * @private
1746
+ */
1741
1747
  export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
1742
1748
  /**
1743
- * v-for number
1744
- */
1749
+ * v-for number
1750
+ */
1745
1751
  export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
1746
1752
  /**
1747
- * v-for array
1748
- */
1753
+ * v-for array
1754
+ */
1749
1755
  export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
1750
1756
  /**
1751
- * v-for iterable
1752
- */
1757
+ * v-for iterable
1758
+ */
1753
1759
  export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
1754
1760
  /**
1755
- * v-for object
1756
- */
1761
+ * v-for object
1762
+ */
1757
1763
  export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: string, index: number) => VNodeChild): VNodeChild[];
1758
1764
  //#endregion
1759
1765
  //#region temp/packages/runtime-core/src/helpers/toHandlers.d.ts
1760
1766
  /**
1761
- * For prefixing keys in v-on="obj" with "on"
1762
- * @private
1763
- */
1767
+ * For prefixing keys in v-on="obj" with "on"
1768
+ * @private
1769
+ */
1764
1770
  export declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
1765
1771
  //#endregion
1766
1772
  //#region temp/packages/runtime-core/src/helpers/renderSlot.d.ts
1767
1773
  /**
1768
- * Compiler runtime helper for rendering `<slot/>`
1769
- * @private
1770
- */
1771
- export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
1774
+ * Compiler runtime helper for rendering `<slot/>`
1775
+ * @private
1776
+ */
1777
+ export declare function renderSlot(slots: Slots, name: string, props?: Data | null, fallback?: () => VNodeArrayChildren, noSlotted?: boolean, branchKey?: PropertyKey): VNode;
1772
1778
  //#endregion
1773
1779
  //#region temp/packages/runtime-core/src/helpers/createSlots.d.ts
1774
1780
  type SSRSlot = (...args: any[]) => VNode[] | undefined;
@@ -1778,9 +1784,9 @@ interface CompiledSlotDescriptor {
1778
1784
  key?: string;
1779
1785
  }
1780
1786
  /**
1781
- * Compiler runtime helper for creating dynamic slots object
1782
- * @private
1783
- */
1787
+ * Compiler runtime helper for creating dynamic slots object
1788
+ * @private
1789
+ */
1784
1790
  export declare function createSlots(slots: Record<string, SSRSlot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, SSRSlot>;
1785
1791
  //#endregion
1786
1792
  //#region temp/packages/runtime-core/src/helpers/withMemo.d.ts
@@ -1790,28 +1796,28 @@ export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
1790
1796
  //#region temp/packages/runtime-core/src/compat/globalConfig.d.ts
1791
1797
  export type LegacyConfig = {
1792
1798
  /**
1793
- * @deprecated `config.silent` option has been removed
1794
- */
1799
+ * @deprecated `config.silent` option has been removed
1800
+ */
1795
1801
  silent?: boolean;
1796
1802
  /**
1797
- * @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
1798
- * https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
1799
- */
1803
+ * @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
1804
+ * https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
1805
+ */
1800
1806
  devtools?: boolean;
1801
1807
  /**
1802
- * @deprecated use `config.isCustomElement` instead
1803
- * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-ignoredelements-is-now-config-iscustomelement
1804
- */
1808
+ * @deprecated use `config.isCustomElement` instead
1809
+ * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-ignoredelements-is-now-config-iscustomelement
1810
+ */
1805
1811
  ignoredElements?: (string | RegExp)[];
1806
1812
  /**
1807
- * @deprecated
1808
- * https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html
1809
- */
1813
+ * @deprecated
1814
+ * https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html
1815
+ */
1810
1816
  keyCodes?: Record<string, number | number[]>;
1811
1817
  /**
1812
- * @deprecated
1813
- * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-productiontip-removed
1814
- */
1818
+ * @deprecated
1819
+ * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-productiontip-removed
1820
+ */
1815
1821
  productionTip?: boolean;
1816
1822
  };
1817
1823
  //#endregion
@@ -1832,10 +1838,10 @@ interface LegacyPublicProperties {
1832
1838
  //#endregion
1833
1839
  //#region temp/packages/runtime-core/src/compat/global.d.ts
1834
1840
  /**
1835
- * @deprecated the default `Vue` export has been removed in Vue 3. The type for
1836
- * the default export is provided only for migration purposes. Please use
1837
- * named imports instead - e.g. `import { createApp } from 'vue'`.
1838
- */
1841
+ * @deprecated the default `Vue` export has been removed in Vue 3. The type for
1842
+ * the default export is provided only for migration purposes. Please use
1843
+ * named imports instead - e.g. `import { createApp } from 'vue'`.
1844
+ */
1839
1845
  export type CompatVue = Pick<App, "version" | "component" | "directive"> & {
1840
1846
  configureCompat: typeof configureCompat;
1841
1847
  new (options?: ComponentOptions): LegacyPublicInstance;
@@ -1851,24 +1857,24 @@ export type CompatVue = Pick<App, "version" | "component" | "directive"> & {
1851
1857
  directive<T = any, V = any>(name: string, directive: Directive<T, V>): CompatVue;
1852
1858
  compile(template: string): RenderFunction;
1853
1859
  /**
1854
- * @deprecated Vue 3 no longer supports extending constructors.
1855
- */
1860
+ * @deprecated Vue 3 no longer supports extending constructors.
1861
+ */
1856
1862
  extend: (options?: ComponentOptions) => CompatVue;
1857
1863
  /**
1858
- * @deprecated Vue 3 no longer needs set() for adding new properties.
1859
- */
1864
+ * @deprecated Vue 3 no longer needs set() for adding new properties.
1865
+ */
1860
1866
  set(target: any, key: PropertyKey, value: any): void;
1861
1867
  /**
1862
- * @deprecated Vue 3 no longer needs delete() for property deletions.
1863
- */
1868
+ * @deprecated Vue 3 no longer needs delete() for property deletions.
1869
+ */
1864
1870
  delete(target: any, key: PropertyKey): void;
1865
1871
  /**
1866
- * @deprecated use `reactive` instead.
1867
- */
1872
+ * @deprecated use `reactive` instead.
1873
+ */
1868
1874
  observable: typeof reactive$1;
1869
1875
  /**
1870
- * @deprecated filters have been removed from Vue 3.
1871
- */
1876
+ * @deprecated filters have been removed from Vue 3.
1877
+ */
1872
1878
  filter(name: string, arg?: any): null;
1873
1879
  };
1874
1880
  //#endregion
@@ -1886,7 +1892,7 @@ declare module "@vue/reactivity" {
1886
1892
  }
1887
1893
  export declare const DeprecationTypes: typeof DeprecationTypes$1;
1888
1894
  //#endregion
1889
- export { Comment$1 as Comment, type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type DebuggerEvent, type DebuggerEventExtraInfo, type DebuggerOptions, type DeepReadonly, type EffectScheduler, EffectScope, type MaybeRef, type MaybeRefOrGetter, type Raw, type Reactive, ReactiveEffect, type ReactiveEffectOptions, type ReactiveEffectRunner, type ReactiveFlags, type Ref, type ShallowReactive, type ShallowRef, type ShallowUnwrapRef, type ToRef, type ToRefs, TrackOpTypes, TriggerOpTypes, type UnwrapNestedRefs, type UnwrapRef, type WatchCallback, type WatchEffect, type WatchHandle, type WatchEffectOptions as WatchOptionsBase, type WatchSource, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, camelize, capitalize, createBaseVNode as createElementVNode, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, normalizeClass, normalizeProps, normalizeStyle, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref$1 as ref, shallowReactive, shallowReadonly, shallowRef, stop, toDisplayString, toHandlerKey, toRaw, toRef, toRefs, toValue, triggerRef, unref, };
1895
+ export { Comment$1 as Comment, type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type DebuggerEvent, type DebuggerEventExtraInfo, type DebuggerOptions, type DeepReadonly, type EffectScheduler, EffectScope, type MaybeRef, type MaybeRefOrGetter, type Raw, type Reactive, ReactiveEffect, type ReactiveEffectOptions, type ReactiveEffectRunner, type ReactiveFlags, type Ref, type ShallowReactive, type ShallowRef, type ShallowUnwrapRef, type ToRef, type ToRefs, TrackOpTypes, TriggerOpTypes, type UnwrapNestedRefs, type UnwrapRef, type WatchCallback, type WatchEffect, type WatchHandle, type WatchEffectOptions as WatchOptionsBase, type WatchSource, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, camelize, capitalize, createBaseVNode as createElementVNode, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, normalizeClass, normalizeProps, normalizeStyle, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref$1 as ref, shallowReactive, shallowReadonly, shallowRef, stop, toDisplayString, toHandlerKey, toRaw, toRef, toRefs, toValue, triggerRef, unref };
1890
1896
  // Note: this file is auto concatenated to the end of the bundled d.ts during
1891
1897
  // build.
1892
1898