@histoire/vendors 0.17.17 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/b-floating-vue.js +2175 -2150
- package/dist/client/b-iconify.js +663 -850
- package/dist/client/b-pinia.js +130 -68
- package/dist/client/b-scroll.js +3 -52
- package/dist/client/b-vue-router.js +385 -237
- package/dist/client/b-vue-use.js +4578 -3115
- package/dist/client/b-vue.js +1 -1
- package/dist/client/index.js +162 -20
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/dist/client/node_modules/@babel/parser/package.json +10 -6
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +167 -188
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -0
- package/dist/client/node_modules/@babel/types/package.json +39 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +525 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
- package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
- package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -7
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -2
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -2
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
- package/dist/client/node_modules/@iconify/types/package.json +23 -0
- package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
- package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +122 -327
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
- package/dist/client/node_modules/@iconify/vue/package.json +64 -60
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
- package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
- package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
- package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
- package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
- package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
- package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
- package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
- package/dist/client/node_modules/@vue/shared/package.json +15 -1
- package/dist/client/node_modules/@vueuse/core/index.d.ts +2323 -666
- package/dist/client/node_modules/@vueuse/core/package.json +22 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
- package/dist/client/node_modules/@vueuse/shared/package.json +17 -6
- package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +35 -45
- package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
- package/dist/client/node_modules/entities/package.json +90 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +225 -105
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +49 -10
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/package.json +42 -33
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
- package/dist/client/node_modules/magic-string/package.json +24 -26
- package/dist/client/node_modules/nanoid/package.json +1 -1
- package/dist/client/node_modules/picocolors/package.json +2 -2
- package/dist/client/node_modules/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
- package/dist/client/node_modules/pinia/package.json +7 -11
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +22 -19
- package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
- package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
- package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +10 -11
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
- package/dist/client/node_modules/postcss/package.json +4 -4
- package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +28 -67
- package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/package.json +1 -1
- package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
- package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
- package/dist/client/node_modules/vue/jsx.d.ts +2 -1
- package/dist/client/node_modules/vue/package.json +13 -14
- package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
- package/dist/client/node_modules/vue-router/package.json +66 -37
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +4 -0
- package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
- package/package.json +17 -17
- package/rollup.config.mjs +6 -6
- package/dist/client/index2.js +0 -168
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
- package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
- package/dist/client/node_modules/vue/macros.d.ts +0 -112
- package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* \/\*#\_\_PURE\_\_\*\/
|
|
6
6
|
* So that rollup can tree-shake them if necessary.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
9
|
+
export declare function makeMap(str: string): (key: string) => boolean;
|
|
9
10
|
|
|
10
11
|
export declare const EMPTY_OBJ: {
|
|
11
12
|
readonly [key: string]: any;
|
|
@@ -17,16 +18,11 @@ export declare const NOOP: () => void;
|
|
|
17
18
|
*/
|
|
18
19
|
export declare const NO: () => boolean;
|
|
19
20
|
export declare const isOn: (key: string) => boolean;
|
|
20
|
-
export declare const isModelListener: (key: string) =>
|
|
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
|
-
};
|
|
21
|
+
export declare const isModelListener: (key: string) => key is `onUpdate:${string}`;
|
|
22
|
+
export declare const extend: typeof Object.assign;
|
|
27
23
|
export declare const remove: <T>(arr: T[], el: T) => void;
|
|
28
|
-
export declare const hasOwn: (val: object, key: string | symbol) => key is
|
|
29
|
-
export declare const isArray:
|
|
24
|
+
export declare const hasOwn: (val: object, key: string | symbol) => key is keyof typeof val;
|
|
25
|
+
export declare const isArray: typeof Array.isArray;
|
|
30
26
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
31
27
|
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
32
28
|
export declare const isDate: (val: unknown) => val is Date;
|
|
@@ -36,7 +32,7 @@ export declare const isString: (val: unknown) => val is string;
|
|
|
36
32
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
37
33
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
38
34
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
39
|
-
export declare const objectToString:
|
|
35
|
+
export declare const objectToString: typeof Object.prototype.toString;
|
|
40
36
|
export declare const toTypeString: (value: unknown) => string;
|
|
41
37
|
export declare const toRawType: (value: unknown) => string;
|
|
42
38
|
export declare const isPlainObject: (val: unknown) => val is object;
|
|
@@ -58,10 +54,10 @@ export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
|
|
|
58
54
|
/**
|
|
59
55
|
* @private
|
|
60
56
|
*/
|
|
61
|
-
export declare const toHandlerKey: <T extends string>(str: T) => T extends
|
|
57
|
+
export declare const toHandlerKey: <T extends string>(str: T) => T extends '' ? '' : `on${Capitalize<T>}`;
|
|
62
58
|
export declare const hasChanged: (value: any, oldValue: any) => boolean;
|
|
63
|
-
export declare const invokeArrayFns: (fns: Function[], arg
|
|
64
|
-
export declare const def: (obj: object, key: string | symbol, value: any) => void;
|
|
59
|
+
export declare const invokeArrayFns: (fns: Function[], ...arg: any[]) => void;
|
|
60
|
+
export declare const def: (obj: object, key: string | symbol, value: any, writable?: boolean) => void;
|
|
65
61
|
/**
|
|
66
62
|
* "123-foo" will be parsed to 123
|
|
67
63
|
* This is used for the .number modifier in v-model
|
|
@@ -74,6 +70,7 @@ export declare const looseToNumber: (val: any) => any;
|
|
|
74
70
|
export declare const toNumber: (val: any) => any;
|
|
75
71
|
export declare const getGlobalThis: () => any;
|
|
76
72
|
export declare function genPropsAccessExp(name: string): string;
|
|
73
|
+
export declare function genCacheKey(source: string, options: any): string;
|
|
77
74
|
|
|
78
75
|
/**
|
|
79
76
|
* Patch flags are optimization hints generated by the compiler.
|
|
@@ -93,7 +90,7 @@ export declare function genPropsAccessExp(name: string): string;
|
|
|
93
90
|
* Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
|
|
94
91
|
* flags are handled during diff.
|
|
95
92
|
*/
|
|
96
|
-
export declare
|
|
93
|
+
export declare enum PatchFlags {
|
|
97
94
|
/**
|
|
98
95
|
* Indicates an element with dynamic textContent (children fast path)
|
|
99
96
|
*/
|
|
@@ -129,10 +126,11 @@ export declare const enum PatchFlags {
|
|
|
129
126
|
*/
|
|
130
127
|
FULL_PROPS = 16,
|
|
131
128
|
/**
|
|
132
|
-
* Indicates an element
|
|
133
|
-
*
|
|
129
|
+
* Indicates an element that requires props hydration
|
|
130
|
+
* (but not necessarily patching)
|
|
131
|
+
* e.g. event listeners & v-bind with prop modifier
|
|
134
132
|
*/
|
|
135
|
-
|
|
133
|
+
NEED_HYDRATION = 32,
|
|
136
134
|
/**
|
|
137
135
|
* Indicates a fragment whose children order doesn't change.
|
|
138
136
|
*/
|
|
@@ -172,10 +170,10 @@ export declare const enum PatchFlags {
|
|
|
172
170
|
* flag, simply check patchFlag === FLAG.
|
|
173
171
|
*/
|
|
174
172
|
/**
|
|
175
|
-
* Indicates a
|
|
173
|
+
* Indicates a cached static vnode. This is also a hint for hydration to skip
|
|
176
174
|
* the entire sub tree since static content never needs to be updated.
|
|
177
175
|
*/
|
|
178
|
-
|
|
176
|
+
CACHED = -1,
|
|
179
177
|
/**
|
|
180
178
|
* A special flag that indicates that the diffing algorithm should bail out
|
|
181
179
|
* of optimized mode. For example, on block fragments created by renderSlot()
|
|
@@ -190,7 +188,7 @@ export declare const enum PatchFlags {
|
|
|
190
188
|
*/
|
|
191
189
|
export declare const PatchFlagNames: Record<PatchFlags, string>;
|
|
192
190
|
|
|
193
|
-
export declare
|
|
191
|
+
export declare enum ShapeFlags {
|
|
194
192
|
ELEMENT = 1,
|
|
195
193
|
FUNCTIONAL_COMPONENT = 2,
|
|
196
194
|
STATEFUL_COMPONENT = 4,
|
|
@@ -204,7 +202,7 @@ export declare const enum ShapeFlags {
|
|
|
204
202
|
COMPONENT = 6
|
|
205
203
|
}
|
|
206
204
|
|
|
207
|
-
export declare
|
|
205
|
+
export declare enum SlotFlags {
|
|
208
206
|
/**
|
|
209
207
|
* Stable slots that only reference slot props or context state. The slot
|
|
210
208
|
* can fully capture its own dependencies so when passed down the parent won't
|
|
@@ -228,11 +226,7 @@ export declare const enum SlotFlags {
|
|
|
228
226
|
/**
|
|
229
227
|
* Dev only
|
|
230
228
|
*/
|
|
231
|
-
export declare const slotFlagsText:
|
|
232
|
-
1: string;
|
|
233
|
-
2: string;
|
|
234
|
-
3: string;
|
|
235
|
-
};
|
|
229
|
+
export declare const slotFlagsText: Record<SlotFlags, string>;
|
|
236
230
|
|
|
237
231
|
export declare const isGloballyAllowed: (key: string) => boolean;
|
|
238
232
|
/** @deprecated use `isGloballyAllowed` instead */
|
|
@@ -257,6 +251,11 @@ export declare const isHTMLTag: (key: string) => boolean;
|
|
|
257
251
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
258
252
|
*/
|
|
259
253
|
export declare const isSVGTag: (key: string) => boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Compiler only.
|
|
256
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
257
|
+
*/
|
|
258
|
+
export declare const isMathMLTag: (key: string) => boolean;
|
|
260
259
|
/**
|
|
261
260
|
* Compiler only.
|
|
262
261
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
@@ -286,9 +285,19 @@ export declare const isKnownHtmlAttr: (key: string) => boolean;
|
|
|
286
285
|
* Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
|
|
287
286
|
*/
|
|
288
287
|
export declare const isKnownSvgAttr: (key: string) => boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Generated from https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute
|
|
290
|
+
*/
|
|
291
|
+
export declare const isKnownMathMLAttr: (key: string) => boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Shared between server-renderer and runtime-core hydration logic
|
|
294
|
+
*/
|
|
295
|
+
export declare function isRenderableAttrValue(value: unknown): boolean;
|
|
289
296
|
|
|
290
297
|
export declare function escapeHtml(string: unknown): string;
|
|
291
298
|
export declare function escapeHtmlComment(src: string): string;
|
|
299
|
+
export declare const cssVarNameEscapeSymbolsRE: RegExp;
|
|
300
|
+
export declare function getEscapedCssVarName(key: string, doubleEscape: boolean): string;
|
|
292
301
|
|
|
293
302
|
export declare function looseEqual(a: any, b: any): boolean;
|
|
294
303
|
export declare function looseIndexOf(arr: any[], val: any): number;
|
|
@@ -307,7 +316,13 @@ export type LooseRequired<T> = {
|
|
|
307
316
|
[P in keyof (T & Required<T>)]: T[P];
|
|
308
317
|
};
|
|
309
318
|
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
310
|
-
export type
|
|
311
|
-
|
|
312
|
-
|
|
319
|
+
export type IsKeyValues<T, K = string> = IfAny<T, false, T extends object ? (keyof T extends K ? true : false) : false>;
|
|
320
|
+
/**
|
|
321
|
+
* Utility for extracting the parameters from a function overload (for typed emits)
|
|
322
|
+
* https://github.com/microsoft/TypeScript/issues/32164#issuecomment-1146737709
|
|
323
|
+
*/
|
|
324
|
+
export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>;
|
|
325
|
+
type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
|
|
326
|
+
type OverloadUnionRecursive<TOverload, TPartialOverload = unknown> = TOverload extends (...args: infer TArgs) => infer TReturn ? TPartialOverload extends TOverload ? never : OverloadUnionRecursive<TPartialOverload & TOverload, TPartialOverload & ((...args: TArgs) => TReturn) & OverloadProps<TOverload>> | ((...args: TArgs) => TReturn) : never;
|
|
327
|
+
type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<OverloadUnionRecursive<(() => never) & TOverload>, TOverload extends () => never ? never : () => never>;
|
|
313
328
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/shared",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.13",
|
|
4
4
|
"description": "internal utils shared across @vue packages",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/shared.esm-bundler.js",
|
|
@@ -9,6 +9,20 @@
|
|
|
9
9
|
"index.js",
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/shared.d.ts",
|
|
15
|
+
"node": {
|
|
16
|
+
"production": "./dist/shared.cjs.prod.js",
|
|
17
|
+
"development": "./dist/shared.cjs.js",
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"module": "./dist/shared.esm-bundler.js",
|
|
21
|
+
"import": "./dist/shared.esm-bundler.js",
|
|
22
|
+
"require": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"./*": "./*"
|
|
25
|
+
},
|
|
12
26
|
"sideEffects": false,
|
|
13
27
|
"buildOptions": {
|
|
14
28
|
"formats": [
|