@histoire/vendors 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/client/b-floating-vue.js +2 -7
  2. package/dist/client/b-pinia.js +1970 -1953
  3. package/dist/client/b-vue-router.js +3574 -3550
  4. package/dist/client/b-vue-use.js +426 -360
  5. package/dist/client/b-vue.js +1 -1
  6. package/dist/client/node_modules/@babel/parser/package.json +6 -6
  7. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +4 -2
  8. package/dist/client/node_modules/{sourcemap-codec → @jridgewell/sourcemap-codec}/dist/types/sourcemap-codec.d.ts +1 -0
  9. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +74 -0
  10. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +992 -1202
  11. package/dist/client/node_modules/@vue/compiler-core/package.json +6 -6
  12. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +42 -66
  13. package/dist/client/node_modules/@vue/compiler-dom/package.json +4 -4
  14. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +473 -317
  15. package/dist/client/node_modules/@vue/compiler-sfc/package.json +16 -15
  16. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -6
  17. package/dist/client/node_modules/@vue/compiler-ssr/package.json +4 -4
  18. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +676 -351
  19. package/dist/client/node_modules/@vue/reactivity/package.json +3 -3
  20. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +34 -44
  21. package/dist/client/node_modules/@vue/reactivity-transform/package.json +8 -8
  22. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1742 -2015
  23. package/dist/client/node_modules/@vue/runtime-core/package.json +4 -4
  24. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1168 -1427
  25. package/dist/client/node_modules/@vue/runtime-dom/package.json +5 -5
  26. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +71 -101
  27. package/dist/client/node_modules/@vue/server-renderer/package.json +5 -5
  28. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +308 -363
  29. package/dist/client/node_modules/@vue/shared/package.json +2 -2
  30. package/dist/client/node_modules/@vueuse/core/index.d.ts +28 -13
  31. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +3 -3
  32. package/dist/client/node_modules/@vueuse/core/package.json +3 -3
  33. package/dist/client/node_modules/@vueuse/metadata/package.json +1 -1
  34. package/dist/client/node_modules/@vueuse/shared/index.d.ts +18 -5
  35. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +3 -3
  36. package/dist/client/node_modules/@vueuse/shared/package.json +1 -1
  37. package/dist/client/node_modules/csstype/index.d.ts +5009 -21819
  38. package/dist/client/node_modules/csstype/package.json +35 -25
  39. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +0 -7
  40. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +0 -7
  41. package/dist/client/node_modules/floating-vue/dist/index.d.ts +0 -7
  42. package/dist/client/node_modules/floating-vue/package.json +3 -2
  43. package/dist/client/node_modules/magic-string/{index.d.ts → dist/magic-string.cjs.d.ts} +50 -7
  44. package/dist/client/node_modules/magic-string/package.json +34 -22
  45. package/dist/client/node_modules/pinia/dist/pinia.d.ts +17 -5
  46. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +3 -3
  47. package/dist/client/node_modules/pinia/package.json +7 -7
  48. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +58 -49
  49. package/dist/client/node_modules/postcss/lib/comment.d.ts +43 -32
  50. package/dist/client/node_modules/postcss/lib/container.d.ts +224 -214
  51. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +111 -102
  52. package/dist/client/node_modules/postcss/lib/declaration.d.ts +85 -61
  53. package/dist/client/node_modules/postcss/lib/document.d.ts +27 -16
  54. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +6 -2
  55. package/dist/client/node_modules/postcss/lib/input.d.ts +99 -90
  56. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +69 -55
  57. package/dist/client/node_modules/postcss/lib/list.d.ts +53 -47
  58. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +24 -15
  59. package/dist/client/node_modules/postcss/lib/node.d.ts +339 -281
  60. package/dist/client/node_modules/postcss/lib/parse.d.ts +6 -2
  61. package/dist/client/node_modules/postcss/lib/postcss.d.ts +288 -320
  62. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +23 -14
  63. package/dist/client/node_modules/postcss/lib/processor.d.ts +52 -39
  64. package/dist/client/node_modules/postcss/lib/result.d.ts +77 -67
  65. package/dist/client/node_modules/postcss/lib/root.d.ts +49 -36
  66. package/dist/client/node_modules/postcss/lib/rule.d.ts +54 -45
  67. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +31 -22
  68. package/dist/client/node_modules/postcss/lib/stringify.d.ts +6 -2
  69. package/dist/client/node_modules/postcss/lib/warning.d.ts +72 -63
  70. package/dist/client/node_modules/postcss/package.json +7 -4
  71. package/dist/client/node_modules/vue/compiler-sfc/package.json +2 -3
  72. package/dist/client/node_modules/vue/dist/vue.d.ts +11 -9
  73. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +29 -0
  74. package/dist/client/node_modules/vue/jsx-runtime/package.json +5 -0
  75. package/dist/client/node_modules/vue/jsx.d.ts +26 -0
  76. package/dist/client/node_modules/vue/package.json +41 -15
  77. package/dist/client/node_modules/vue/ref-macros.d.ts +1 -1
  78. package/dist/client/node_modules/vue/server-renderer/package.json +2 -3
  79. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +2 -1
  80. package/dist/client/node_modules/vue-router/package.json +38 -36
  81. package/dist/client/vue.runtime.esm-bundler.js +10048 -10684
  82. package/package.json +13 -13
  83. package/tsconfig.json +1 -2
  84. package/dist/client/node_modules/source-map/package.json +0 -73
  85. package/dist/client/node_modules/source-map/source-map.d.ts +0 -98
  86. package/dist/client/node_modules/sourcemap-codec/package.json +0 -53
@@ -1,363 +1,308 @@
1
- /**
2
- * @private
3
- */
4
- export declare const camelize: (str: string) => string;
5
-
6
- /**
7
- * @private
8
- */
9
- export declare const capitalize: (str: string) => string;
10
-
11
- export declare const def: (obj: object, key: string | symbol, value: any) => void;
12
-
13
- export declare const EMPTY_ARR: readonly never[];
14
-
15
- export declare const EMPTY_OBJ: {
16
- readonly [key: string]: any;
17
- };
18
-
19
- export declare function escapeHtml(string: unknown): string;
20
-
21
- export declare function escapeHtmlComment(src: string): string;
22
-
23
- export declare const extend: {
24
- <T extends {}, U>(target: T, source: U): T & U;
25
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
26
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
27
- (target: object, ...sources: any[]): any;
28
- };
29
-
30
- export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
31
-
32
- export declare function genPropsAccessExp(name: string): string;
33
-
34
- export declare const getGlobalThis: () => any;
35
-
36
- export declare const hasChanged: (value: any, oldValue: any) => boolean;
37
-
38
- export declare const hasOwn: (val: object, key: string | symbol) => key is never;
39
-
40
- /**
41
- * @private
42
- */
43
- export declare const hyphenate: (str: string) => string;
44
-
45
- export declare type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
46
-
47
- /**
48
- * Boolean attributes should be included if the value is truthy or ''.
49
- * e.g. `<select multiple>` compiles to `{ multiple: '' }`
50
- */
51
- export declare function includeBooleanAttr(value: unknown): boolean;
52
-
53
- export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
54
-
55
- export declare const isArray: (arg: any) => arg is any[];
56
-
57
- /**
58
- * The full list is needed during SSR to produce the correct initial markup.
59
- */
60
- export declare const isBooleanAttr: (key: string) => boolean;
61
-
62
- export declare const isBuiltInDirective: (key: string) => boolean;
63
-
64
- export declare const isDate: (val: unknown) => val is Date;
65
-
66
- export declare const isFunction: (val: unknown) => val is Function;
67
-
68
- export declare const isGloballyWhitelisted: (key: string) => boolean;
69
-
70
- /**
71
- * Compiler only.
72
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
73
- */
74
- export declare const isHTMLTag: (key: string) => boolean;
75
-
76
- export declare const isIntegerKey: (key: unknown) => boolean;
77
-
78
- /**
79
- * Known attributes, this is used for stringification of runtime static nodes
80
- * so that we don't stringify bindings that cannot be set from HTML.
81
- * Don't also forget to allow `data-*` and `aria-*`!
82
- * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
83
- */
84
- export declare const isKnownHtmlAttr: (key: string) => boolean;
85
-
86
- /**
87
- * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
88
- */
89
- export declare const isKnownSvgAttr: (key: string) => boolean;
90
-
91
- export declare const isMap: (val: unknown) => val is Map<any, any>;
92
-
93
- export declare const isModelListener: (key: string) => boolean;
94
-
95
- export declare const isObject: (val: unknown) => val is Record<any, any>;
96
-
97
- export declare const isOn: (key: string) => boolean;
98
-
99
- export declare const isPlainObject: (val: unknown) => val is object;
100
-
101
- export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
102
-
103
- export declare const isRegExp: (val: unknown) => val is RegExp;
104
-
105
- export declare const isReservedProp: (key: string) => boolean;
106
-
107
- export declare const isSet: (val: unknown) => val is Set<any>;
108
-
109
- export declare const isSpecialBooleanAttr: (key: string) => boolean;
110
-
111
- export declare function isSSRSafeAttrName(name: string): boolean;
112
-
113
- export declare const isString: (val: unknown) => val is string;
114
-
115
- /**
116
- * Compiler only.
117
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
118
- */
119
- export declare const isSVGTag: (key: string) => boolean;
120
-
121
- export declare const isSymbol: (val: unknown) => val is symbol;
122
-
123
- /**
124
- * Compiler only.
125
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
126
- */
127
- export declare const isVoidTag: (key: string) => boolean;
128
-
129
- export declare function looseEqual(a: any, b: any): boolean;
130
-
131
- export declare function looseIndexOf(arr: any[], val: any): number;
132
-
133
- export declare type LooseRequired<T> = {
134
- [P in keyof (T & Required<T>)]: T[P];
135
- };
136
-
137
- /**
138
- * "123-foo" will be parsed to 123
139
- * This is used for the .number modifier in v-model
140
- */
141
- export declare const looseToNumber: (val: any) => any;
142
-
143
- /**
144
- * Make a map and return a function for checking if a key
145
- * is in that map.
146
- * IMPORTANT: all calls of this function must be prefixed with
147
- * \/\*#\_\_PURE\_\_\*\/
148
- * So that rollup can tree-shake them if necessary.
149
- */
150
- export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
151
-
152
- /**
153
- * Always return false.
154
- */
155
- export declare const NO: () => boolean;
156
-
157
- export declare const NOOP: () => void;
158
-
159
- export declare function normalizeClass(value: unknown): string;
160
-
161
- export declare type NormalizedStyle = Record<string, string | number>;
162
-
163
- export declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
164
-
165
- export declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
166
-
167
- export declare const objectToString: () => string;
168
-
169
- export declare function parseStringStyle(cssText: string): NormalizedStyle;
170
-
171
- /**
172
- * dev only flag -> name mapping
173
- */
174
- export declare const PatchFlagNames: {
175
- [x: number]: string;
176
- };
177
-
178
- /**
179
- * Patch flags are optimization hints generated by the compiler.
180
- * when a block with dynamicChildren is encountered during diff, the algorithm
181
- * enters "optimized mode". In this mode, we know that the vdom is produced by
182
- * a render function generated by the compiler, so the algorithm only needs to
183
- * handle updates explicitly marked by these patch flags.
184
- *
185
- * Patch flags can be combined using the | bitwise operator and can be checked
186
- * using the & operator, e.g.
187
- *
188
- * ```js
189
- * const flag = TEXT | CLASS
190
- * if (flag & TEXT) { ... }
191
- * ```
192
- *
193
- * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
194
- * flags are handled during diff.
195
- */
196
- export declare const enum PatchFlags {
197
- /**
198
- * Indicates an element with dynamic textContent (children fast path)
199
- */
200
- TEXT = 1,
201
- /**
202
- * Indicates an element with dynamic class binding.
203
- */
204
- CLASS = 2,
205
- /**
206
- * Indicates an element with dynamic style
207
- * The compiler pre-compiles static string styles into static objects
208
- * + detects and hoists inline static objects
209
- * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
210
- * as:
211
- * ```js
212
- * const style = { color: 'red' }
213
- * render() { return e('div', { style }) }
214
- * ```
215
- */
216
- STYLE = 4,
217
- /**
218
- * Indicates an element that has non-class/style dynamic props.
219
- * Can also be on a component that has any dynamic props (includes
220
- * class/style). when this flag is present, the vnode also has a dynamicProps
221
- * array that contains the keys of the props that may change so the runtime
222
- * can diff them faster (without having to worry about removed props)
223
- */
224
- PROPS = 8,
225
- /**
226
- * Indicates an element with props with dynamic keys. When keys change, a full
227
- * diff is always needed to remove the old key. This flag is mutually
228
- * exclusive with CLASS, STYLE and PROPS.
229
- */
230
- FULL_PROPS = 16,
231
- /**
232
- * Indicates an element with event listeners (which need to be attached
233
- * during hydration)
234
- */
235
- HYDRATE_EVENTS = 32,
236
- /**
237
- * Indicates a fragment whose children order doesn't change.
238
- */
239
- STABLE_FRAGMENT = 64,
240
- /**
241
- * Indicates a fragment with keyed or partially keyed children
242
- */
243
- KEYED_FRAGMENT = 128,
244
- /**
245
- * Indicates a fragment with unkeyed children.
246
- */
247
- UNKEYED_FRAGMENT = 256,
248
- /**
249
- * Indicates an element that only needs non-props patching, e.g. ref or
250
- * directives (onVnodeXXX hooks). since every patched vnode checks for refs
251
- * and onVnodeXXX hooks, it simply marks the vnode so that a parent block
252
- * will track it.
253
- */
254
- NEED_PATCH = 512,
255
- /**
256
- * Indicates a component with dynamic slots (e.g. slot that references a v-for
257
- * iterated value, or dynamic slot names).
258
- * Components with this flag are always force updated.
259
- */
260
- DYNAMIC_SLOTS = 1024,
261
- /**
262
- * Indicates a fragment that was created only because the user has placed
263
- * comments at the root level of a template. This is a dev-only flag since
264
- * comments are stripped in production.
265
- */
266
- DEV_ROOT_FRAGMENT = 2048,
267
- /**
268
- * SPECIAL FLAGS -------------------------------------------------------------
269
- * Special flags are negative integers. They are never matched against using
270
- * bitwise operators (bitwise matching should only happen in branches where
271
- * patchFlag > 0), and are mutually exclusive. When checking for a special
272
- * flag, simply check patchFlag === FLAG.
273
- */
274
- /**
275
- * Indicates a hoisted static vnode. This is a hint for hydration to skip
276
- * the entire sub tree since static content never needs to be updated.
277
- */
278
- HOISTED = -1,
279
- /**
280
- * A special flag that indicates that the diffing algorithm should bail out
281
- * of optimized mode. For example, on block fragments created by renderSlot()
282
- * when encountering non-compiler generated slots (i.e. manually written
283
- * render functions, which should always be fully diffed)
284
- * OR manually cloneVNodes
285
- */
286
- BAIL = -2
287
- }
288
-
289
- export declare const propsToAttrMap: Record<string, string | undefined>;
290
-
291
- export declare const remove: <T>(arr: T[], el: T) => void;
292
-
293
- export declare const enum ShapeFlags {
294
- ELEMENT = 1,
295
- FUNCTIONAL_COMPONENT = 2,
296
- STATEFUL_COMPONENT = 4,
297
- TEXT_CHILDREN = 8,
298
- ARRAY_CHILDREN = 16,
299
- SLOTS_CHILDREN = 32,
300
- TELEPORT = 64,
301
- SUSPENSE = 128,
302
- COMPONENT_SHOULD_KEEP_ALIVE = 256,
303
- COMPONENT_KEPT_ALIVE = 512,
304
- COMPONENT = 6
305
- }
306
-
307
- export declare const enum SlotFlags {
308
- /**
309
- * Stable slots that only reference slot props or context state. The slot
310
- * can fully capture its own dependencies so when passed down the parent won't
311
- * need to force the child to update.
312
- */
313
- STABLE = 1,
314
- /**
315
- * Slots that reference scope variables (v-for or an outer slot prop), or
316
- * has conditional structure (v-if, v-for). The parent will need to force
317
- * the child to update because the slot does not fully capture its dependencies.
318
- */
319
- DYNAMIC = 2,
320
- /**
321
- * `<slot/>` being forwarded into a child component. Whether the parent needs
322
- * to update the child is dependent on what kind of slots the parent itself
323
- * received. This has to be refined at runtime, when the child's vnode
324
- * is being created (in `normalizeChildren`)
325
- */
326
- FORWARDED = 3
327
- }
328
-
329
- /**
330
- * Dev only
331
- */
332
- export declare const slotFlagsText: {
333
- 1: string;
334
- 2: string;
335
- 3: string;
336
- };
337
-
338
- export declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
339
-
340
- /**
341
- * For converting {{ interpolation }} values to displayed strings.
342
- * @private
343
- */
344
- export declare const toDisplayString: (val: unknown) => string;
345
-
346
- /**
347
- * @private
348
- */
349
- export declare const toHandlerKey: (str: string) => string;
350
-
351
- /**
352
- * Only conerces number-like strings
353
- * "123-foo" will be returned as-is
354
- */
355
- export declare const toNumber: (val: any) => any;
356
-
357
- export declare const toRawType: (value: unknown) => string;
358
-
359
- export declare const toTypeString: (value: unknown) => string;
360
-
361
- export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
362
-
363
- export { }
1
+ /**
2
+ * Make a map and return a function for checking if a key
3
+ * is in that map.
4
+ * IMPORTANT: all calls of this function must be prefixed with
5
+ * \/\*#\_\_PURE\_\_\*\/
6
+ * So that rollup can tree-shake them if necessary.
7
+ */
8
+ export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
9
+
10
+ export declare const EMPTY_OBJ: {
11
+ readonly [key: string]: any;
12
+ };
13
+ export declare const EMPTY_ARR: readonly never[];
14
+ export declare const NOOP: () => void;
15
+ /**
16
+ * Always return false.
17
+ */
18
+ export declare const NO: () => boolean;
19
+ export declare const isOn: (key: string) => boolean;
20
+ export declare const isModelListener: (key: string) => boolean;
21
+ export declare const extend: {
22
+ <T extends {}, U>(target: T, source: U): T & U;
23
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
24
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
25
+ (target: object, ...sources: any[]): any;
26
+ };
27
+ export declare const remove: <T>(arr: T[], el: T) => void;
28
+ export declare const hasOwn: (val: object, key: string | symbol) => key is never;
29
+ export declare const isArray: (arg: any) => arg is any[];
30
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
31
+ export declare const isSet: (val: unknown) => val is Set<any>;
32
+ export declare const isDate: (val: unknown) => val is Date;
33
+ export declare const isRegExp: (val: unknown) => val is RegExp;
34
+ export declare const isFunction: (val: unknown) => val is Function;
35
+ export declare const isString: (val: unknown) => val is string;
36
+ export declare const isSymbol: (val: unknown) => val is symbol;
37
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
38
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
39
+ export declare const objectToString: () => string;
40
+ export declare const toTypeString: (value: unknown) => string;
41
+ export declare const toRawType: (value: unknown) => string;
42
+ export declare const isPlainObject: (val: unknown) => val is object;
43
+ export declare const isIntegerKey: (key: unknown) => boolean;
44
+ export declare const isReservedProp: (key: string) => boolean;
45
+ export declare const isBuiltInDirective: (key: string) => boolean;
46
+ /**
47
+ * @private
48
+ */
49
+ export declare const camelize: (str: string) => string;
50
+ /**
51
+ * @private
52
+ */
53
+ export declare const hyphenate: (str: string) => string;
54
+ /**
55
+ * @private
56
+ */
57
+ export declare const capitalize: (str: string) => string;
58
+ /**
59
+ * @private
60
+ */
61
+ export declare const toHandlerKey: (str: string) => string;
62
+ export declare const hasChanged: (value: any, oldValue: any) => boolean;
63
+ export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
64
+ export declare const def: (obj: object, key: string | symbol, value: any) => void;
65
+ /**
66
+ * "123-foo" will be parsed to 123
67
+ * This is used for the .number modifier in v-model
68
+ */
69
+ export declare const looseToNumber: (val: any) => any;
70
+ /**
71
+ * Only conerces number-like strings
72
+ * "123-foo" will be returned as-is
73
+ */
74
+ export declare const toNumber: (val: any) => any;
75
+ export declare const getGlobalThis: () => any;
76
+ export declare function genPropsAccessExp(name: string): string;
77
+
78
+ /**
79
+ * Patch flags are optimization hints generated by the compiler.
80
+ * when a block with dynamicChildren is encountered during diff, the algorithm
81
+ * enters "optimized mode". In this mode, we know that the vdom is produced by
82
+ * a render function generated by the compiler, so the algorithm only needs to
83
+ * handle updates explicitly marked by these patch flags.
84
+ *
85
+ * Patch flags can be combined using the | bitwise operator and can be checked
86
+ * using the & operator, e.g.
87
+ *
88
+ * ```js
89
+ * const flag = TEXT | CLASS
90
+ * if (flag & TEXT) { ... }
91
+ * ```
92
+ *
93
+ * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
94
+ * flags are handled during diff.
95
+ */
96
+ export declare const enum PatchFlags {
97
+ /**
98
+ * Indicates an element with dynamic textContent (children fast path)
99
+ */
100
+ TEXT = 1,
101
+ /**
102
+ * Indicates an element with dynamic class binding.
103
+ */
104
+ CLASS = 2,
105
+ /**
106
+ * Indicates an element with dynamic style
107
+ * The compiler pre-compiles static string styles into static objects
108
+ * + detects and hoists inline static objects
109
+ * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
110
+ * as:
111
+ * ```js
112
+ * const style = { color: 'red' }
113
+ * render() { return e('div', { style }) }
114
+ * ```
115
+ */
116
+ STYLE = 4,
117
+ /**
118
+ * Indicates an element that has non-class/style dynamic props.
119
+ * Can also be on a component that has any dynamic props (includes
120
+ * class/style). when this flag is present, the vnode also has a dynamicProps
121
+ * array that contains the keys of the props that may change so the runtime
122
+ * can diff them faster (without having to worry about removed props)
123
+ */
124
+ PROPS = 8,
125
+ /**
126
+ * Indicates an element with props with dynamic keys. When keys change, a full
127
+ * diff is always needed to remove the old key. This flag is mutually
128
+ * exclusive with CLASS, STYLE and PROPS.
129
+ */
130
+ FULL_PROPS = 16,
131
+ /**
132
+ * Indicates an element with event listeners (which need to be attached
133
+ * during hydration)
134
+ */
135
+ HYDRATE_EVENTS = 32,
136
+ /**
137
+ * Indicates a fragment whose children order doesn't change.
138
+ */
139
+ STABLE_FRAGMENT = 64,
140
+ /**
141
+ * Indicates a fragment with keyed or partially keyed children
142
+ */
143
+ KEYED_FRAGMENT = 128,
144
+ /**
145
+ * Indicates a fragment with unkeyed children.
146
+ */
147
+ UNKEYED_FRAGMENT = 256,
148
+ /**
149
+ * Indicates an element that only needs non-props patching, e.g. ref or
150
+ * directives (onVnodeXXX hooks). since every patched vnode checks for refs
151
+ * and onVnodeXXX hooks, it simply marks the vnode so that a parent block
152
+ * will track it.
153
+ */
154
+ NEED_PATCH = 512,
155
+ /**
156
+ * Indicates a component with dynamic slots (e.g. slot that references a v-for
157
+ * iterated value, or dynamic slot names).
158
+ * Components with this flag are always force updated.
159
+ */
160
+ DYNAMIC_SLOTS = 1024,
161
+ /**
162
+ * Indicates a fragment that was created only because the user has placed
163
+ * comments at the root level of a template. This is a dev-only flag since
164
+ * comments are stripped in production.
165
+ */
166
+ DEV_ROOT_FRAGMENT = 2048,
167
+ /**
168
+ * SPECIAL FLAGS -------------------------------------------------------------
169
+ * Special flags are negative integers. They are never matched against using
170
+ * bitwise operators (bitwise matching should only happen in branches where
171
+ * patchFlag > 0), and are mutually exclusive. When checking for a special
172
+ * flag, simply check patchFlag === FLAG.
173
+ */
174
+ /**
175
+ * Indicates a hoisted static vnode. This is a hint for hydration to skip
176
+ * the entire sub tree since static content never needs to be updated.
177
+ */
178
+ HOISTED = -1,
179
+ /**
180
+ * A special flag that indicates that the diffing algorithm should bail out
181
+ * of optimized mode. For example, on block fragments created by renderSlot()
182
+ * when encountering non-compiler generated slots (i.e. manually written
183
+ * render functions, which should always be fully diffed)
184
+ * OR manually cloneVNodes
185
+ */
186
+ BAIL = -2
187
+ }
188
+ /**
189
+ * dev only flag -> name mapping
190
+ */
191
+ export declare const PatchFlagNames: Record<PatchFlags, string>;
192
+
193
+ export declare const enum ShapeFlags {
194
+ ELEMENT = 1,
195
+ FUNCTIONAL_COMPONENT = 2,
196
+ STATEFUL_COMPONENT = 4,
197
+ TEXT_CHILDREN = 8,
198
+ ARRAY_CHILDREN = 16,
199
+ SLOTS_CHILDREN = 32,
200
+ TELEPORT = 64,
201
+ SUSPENSE = 128,
202
+ COMPONENT_SHOULD_KEEP_ALIVE = 256,
203
+ COMPONENT_KEPT_ALIVE = 512,
204
+ COMPONENT = 6
205
+ }
206
+
207
+ export declare const enum SlotFlags {
208
+ /**
209
+ * Stable slots that only reference slot props or context state. The slot
210
+ * can fully capture its own dependencies so when passed down the parent won't
211
+ * need to force the child to update.
212
+ */
213
+ STABLE = 1,
214
+ /**
215
+ * Slots that reference scope variables (v-for or an outer slot prop), or
216
+ * has conditional structure (v-if, v-for). The parent will need to force
217
+ * the child to update because the slot does not fully capture its dependencies.
218
+ */
219
+ DYNAMIC = 2,
220
+ /**
221
+ * `<slot/>` being forwarded into a child component. Whether the parent needs
222
+ * to update the child is dependent on what kind of slots the parent itself
223
+ * received. This has to be refined at runtime, when the child's vnode
224
+ * is being created (in `normalizeChildren`)
225
+ */
226
+ FORWARDED = 3
227
+ }
228
+ /**
229
+ * Dev only
230
+ */
231
+ export declare const slotFlagsText: {
232
+ 1: string;
233
+ 2: string;
234
+ 3: string;
235
+ };
236
+
237
+ export declare const isGloballyWhitelisted: (key: string) => boolean;
238
+
239
+ export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
240
+
241
+ export type NormalizedStyle = Record<string, string | number>;
242
+ export declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
243
+ export declare function parseStringStyle(cssText: string): NormalizedStyle;
244
+ export declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
245
+ export declare function normalizeClass(value: unknown): string;
246
+ export declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
247
+
248
+ /**
249
+ * Compiler only.
250
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
251
+ */
252
+ export declare const isHTMLTag: (key: string) => boolean;
253
+ /**
254
+ * Compiler only.
255
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
256
+ */
257
+ export declare const isSVGTag: (key: string) => boolean;
258
+ /**
259
+ * Compiler only.
260
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
261
+ */
262
+ export declare const isVoidTag: (key: string) => boolean;
263
+
264
+ export declare const isSpecialBooleanAttr: (key: string) => boolean;
265
+ /**
266
+ * The full list is needed during SSR to produce the correct initial markup.
267
+ */
268
+ export declare const isBooleanAttr: (key: string) => boolean;
269
+ /**
270
+ * Boolean attributes should be included if the value is truthy or ''.
271
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
272
+ */
273
+ export declare function includeBooleanAttr(value: unknown): boolean;
274
+ export declare function isSSRSafeAttrName(name: string): boolean;
275
+ export declare const propsToAttrMap: Record<string, string | undefined>;
276
+ /**
277
+ * Known attributes, this is used for stringification of runtime static nodes
278
+ * so that we don't stringify bindings that cannot be set from HTML.
279
+ * Don't also forget to allow `data-*` and `aria-*`!
280
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
281
+ */
282
+ export declare const isKnownHtmlAttr: (key: string) => boolean;
283
+ /**
284
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
285
+ */
286
+ export declare const isKnownSvgAttr: (key: string) => boolean;
287
+
288
+ export declare function escapeHtml(string: unknown): string;
289
+ export declare function escapeHtmlComment(src: string): string;
290
+
291
+ export declare function looseEqual(a: any, b: any): boolean;
292
+ export declare function looseIndexOf(arr: any[], val: any): number;
293
+
294
+ /**
295
+ * For converting {{ interpolation }} values to displayed strings.
296
+ * @private
297
+ */
298
+ export declare const toDisplayString: (val: unknown) => string;
299
+
300
+ export type Prettify<T> = {
301
+ [K in keyof T]: T[K];
302
+ } & {};
303
+ export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
304
+ export type LooseRequired<T> = {
305
+ [P in keyof (T & Required<T>)]: T[P];
306
+ };
307
+ export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
308
+