@histoire/vendors 0.17.4 → 0.17.6
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-pinia.js +9 -8
- package/dist/client/b-vue-router.js +13 -13
- package/dist/client/node_modules/@babel/parser/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +9 -3
- package/dist/client/node_modules/@vue/compiler-core/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +8 -7
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +16 -18
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +50 -74
- package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +9 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +7 -7
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +77 -204
- package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +16 -14
- package/dist/client/node_modules/@vue/runtime-dom/package.json +4 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -2
- package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +8 -3
- package/dist/client/node_modules/@vue/shared/package.json +1 -1
- package/dist/client/node_modules/nanoid/package.json +33 -11
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +9 -0
- package/dist/client/node_modules/pinia/package.json +1 -1
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +1 -6
- package/dist/client/node_modules/vue/jsx.d.ts +1 -6
- package/dist/client/node_modules/vue/package.json +16 -6
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +21 -16
- package/dist/client/node_modules/vue-router/package.json +19 -15
- package/dist/client/vue.runtime.esm-bundler.js +707 -645
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance,
|
|
1
|
+
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
|
|
2
2
|
export * from '@vue/runtime-core';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
|
|
@@ -20,6 +20,7 @@ export declare function defineCustomElement<PropsOptions extends Readonly<Compon
|
|
|
20
20
|
export declare function defineCustomElement(options: {
|
|
21
21
|
new (...args: any[]): ComponentPublicInstance;
|
|
22
22
|
}): VueElementConstructor;
|
|
23
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
23
24
|
export declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
24
25
|
declare const BaseClass: {
|
|
25
26
|
new (): HTMLElement;
|
|
@@ -31,11 +32,11 @@ type InnerComponentDef = ConcreteComponent & {
|
|
|
31
32
|
export declare class VueElement extends BaseClass {
|
|
32
33
|
private _def;
|
|
33
34
|
private _props;
|
|
34
|
-
/* removed internal: _instance */
|
|
35
35
|
private _connected;
|
|
36
36
|
private _resolved;
|
|
37
37
|
private _numberProps;
|
|
38
38
|
private _styles?;
|
|
39
|
+
private _ob?;
|
|
39
40
|
constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
|
|
40
41
|
connectedCallback(): void;
|
|
41
42
|
disconnectedCallback(): void;
|
|
@@ -45,8 +46,6 @@ export declare class VueElement extends BaseClass {
|
|
|
45
46
|
private _resolveDef;
|
|
46
47
|
private _resolveProps;
|
|
47
48
|
protected _setAttr(key: string): void;
|
|
48
|
-
/* removed internal: _getProp */
|
|
49
|
-
/* removed internal: _setProp */
|
|
50
49
|
private _update;
|
|
51
50
|
private _createVNode;
|
|
52
51
|
private _applyStyles;
|
|
@@ -92,8 +91,9 @@ export declare const TransitionGroup: new () => {
|
|
|
92
91
|
};
|
|
93
92
|
|
|
94
93
|
type AssignerFn = (value: any) => void;
|
|
94
|
+
declare const assignKey: unique symbol;
|
|
95
95
|
type ModelDirective<T> = ObjectDirective<T & {
|
|
96
|
-
|
|
96
|
+
[assignKey]: AssignerFn;
|
|
97
97
|
}>;
|
|
98
98
|
export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
|
|
99
99
|
export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
|
|
@@ -110,8 +110,9 @@ export declare const withModifiers: (fn: Function, modifiers: string[]) => (even
|
|
|
110
110
|
*/
|
|
111
111
|
export declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
|
|
112
112
|
|
|
113
|
+
declare const vShowOldKey: unique symbol;
|
|
113
114
|
interface VShowElement extends HTMLElement {
|
|
114
|
-
|
|
115
|
+
[vShowOldKey]: string;
|
|
115
116
|
}
|
|
116
117
|
export declare const vShow: ObjectDirective<VShowElement>;
|
|
117
118
|
|
|
@@ -270,7 +271,7 @@ interface AriaAttributes {
|
|
|
270
271
|
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
271
272
|
* @see aria-atomic.
|
|
272
273
|
*/
|
|
273
|
-
'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text';
|
|
274
|
+
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
|
|
274
275
|
/** Indicates that user input is required on the element before a form may be submitted. */
|
|
275
276
|
'aria-required'?: Booleanish;
|
|
276
277
|
/** Defines a human-readable, author-localized description for the role of an element. */
|
|
@@ -320,12 +321,13 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
320
321
|
class?: any;
|
|
321
322
|
style?: StyleValue;
|
|
322
323
|
accesskey?: string;
|
|
323
|
-
contenteditable?: Booleanish | 'inherit';
|
|
324
|
+
contenteditable?: Booleanish | 'inherit' | 'plaintext-only';
|
|
324
325
|
contextmenu?: string;
|
|
325
326
|
dir?: string;
|
|
326
327
|
draggable?: Booleanish;
|
|
327
|
-
hidden?: Booleanish;
|
|
328
|
+
hidden?: Booleanish | '' | 'hidden' | 'until-found';
|
|
328
329
|
id?: string;
|
|
330
|
+
inert?: Booleanish;
|
|
329
331
|
lang?: string;
|
|
330
332
|
placeholder?: string;
|
|
331
333
|
spellcheck?: Booleanish;
|
|
@@ -487,11 +489,13 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
|
|
|
487
489
|
srcset?: string;
|
|
488
490
|
usemap?: string;
|
|
489
491
|
width?: Numberish;
|
|
492
|
+
loading?: 'lazy' | 'eager';
|
|
490
493
|
}
|
|
491
494
|
export interface InsHTMLAttributes extends HTMLAttributes {
|
|
492
495
|
cite?: string;
|
|
493
496
|
datetime?: string;
|
|
494
497
|
}
|
|
498
|
+
export type InputTypeHTMLAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
|
|
495
499
|
export interface InputHTMLAttributes extends HTMLAttributes {
|
|
496
500
|
accept?: string;
|
|
497
501
|
alt?: string;
|
|
@@ -523,7 +527,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
|
|
|
523
527
|
size?: Numberish;
|
|
524
528
|
src?: string;
|
|
525
529
|
step?: Numberish;
|
|
526
|
-
type?:
|
|
530
|
+
type?: InputTypeHTMLAttribute;
|
|
527
531
|
value?: any;
|
|
528
532
|
width?: Numberish;
|
|
529
533
|
}
|
|
@@ -682,7 +686,7 @@ export interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
|
682
686
|
minlength?: Numberish;
|
|
683
687
|
name?: string;
|
|
684
688
|
placeholder?: string;
|
|
685
|
-
readonly?:
|
|
689
|
+
readonly?: Booleanish;
|
|
686
690
|
required?: Booleanish;
|
|
687
691
|
rows?: Numberish;
|
|
688
692
|
value?: string | string[] | number;
|
|
@@ -746,7 +750,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
746
750
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
747
751
|
*/
|
|
748
752
|
class?: any;
|
|
749
|
-
style?:
|
|
753
|
+
style?: StyleValue;
|
|
750
754
|
color?: string;
|
|
751
755
|
height?: Numberish;
|
|
752
756
|
id?: string;
|
|
@@ -1280,5 +1284,3 @@ export declare const hydrate: RootHydrateFunction;
|
|
|
1280
1284
|
export declare const createApp: CreateAppFunction<Element>;
|
|
1281
1285
|
export declare const createSSRApp: CreateAppFunction<Element>;
|
|
1282
1286
|
|
|
1283
|
-
|
|
1284
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-dom",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/runtime-dom",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-dom.esm-bundler.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-dom#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@vue/shared": "3.3.
|
|
39
|
-
"@vue/runtime-core": "3.3.
|
|
40
|
-
"csstype": "^3.1.
|
|
38
|
+
"@vue/shared": "3.3.8",
|
|
39
|
+
"@vue/runtime-core": "3.3.8",
|
|
40
|
+
"csstype": "^3.1.2"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -13,8 +13,6 @@ type Props = Record<string, unknown>;
|
|
|
13
13
|
export type SSRContext = {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
teleports?: Record<string, string>;
|
|
16
|
-
/* removed internal: __teleportBuffers */
|
|
17
|
-
/* removed internal: __watcherHandles */
|
|
18
16
|
};
|
|
19
17
|
export declare function renderVNode(push: PushFn, vnode: VNode, parentComponent: ComponentInternalInstance, slotScopeId?: string): void;
|
|
20
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/server-renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/server-renderer",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/server-renderer.esm-bundler.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/server-renderer#readme",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"vue": "3.3.
|
|
35
|
+
"vue": "3.3.8"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@vue/shared": "3.3.
|
|
39
|
-
"@vue/compiler-ssr": "3.3.
|
|
38
|
+
"@vue/shared": "3.3.8",
|
|
39
|
+
"@vue/compiler-ssr": "3.3.8"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -54,11 +54,11 @@ export declare const hyphenate: (str: string) => string;
|
|
|
54
54
|
/**
|
|
55
55
|
* @private
|
|
56
56
|
*/
|
|
57
|
-
export declare const capitalize: (str:
|
|
57
|
+
export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
|
|
58
58
|
/**
|
|
59
59
|
* @private
|
|
60
60
|
*/
|
|
61
|
-
export declare const toHandlerKey: (str:
|
|
61
|
+
export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
|
|
62
62
|
export declare const hasChanged: (value: any, oldValue: any) => boolean;
|
|
63
63
|
export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
|
|
64
64
|
export declare const def: (obj: object, key: string | symbol, value: any) => void;
|
|
@@ -68,7 +68,7 @@ export declare const def: (obj: object, key: string | symbol, value: any) => voi
|
|
|
68
68
|
*/
|
|
69
69
|
export declare const looseToNumber: (val: any) => any;
|
|
70
70
|
/**
|
|
71
|
-
* Only
|
|
71
|
+
* Only concerns number-like strings
|
|
72
72
|
* "123-foo" will be returned as-is
|
|
73
73
|
*/
|
|
74
74
|
export declare const toNumber: (val: any) => any;
|
|
@@ -234,6 +234,8 @@ export declare const slotFlagsText: {
|
|
|
234
234
|
3: string;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
+
export declare const isGloballyAllowed: (key: string) => boolean;
|
|
238
|
+
/** @deprecated use `isGloballyAllowed` instead */
|
|
237
239
|
export declare const isGloballyWhitelisted: (key: string) => boolean;
|
|
238
240
|
|
|
239
241
|
export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
|
|
@@ -305,4 +307,7 @@ export type LooseRequired<T> = {
|
|
|
305
307
|
[P in keyof (T & Required<T>)]: T[P];
|
|
306
308
|
};
|
|
307
309
|
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
310
|
+
export type Awaited<T> = T extends null | undefined ? T : T extends object & {
|
|
311
|
+
then(onfulfilled: infer F, ...args: infer _): any;
|
|
312
|
+
} ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T;
|
|
308
313
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nanoid",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
4
4
|
"description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uuid",
|
|
@@ -35,31 +35,53 @@
|
|
|
35
35
|
"module": "index.js",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
|
-
"types": "./index.d.ts",
|
|
39
38
|
"browser": "./index.browser.js",
|
|
40
|
-
"require":
|
|
41
|
-
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./index.d.cts",
|
|
41
|
+
"default": "./index.cjs"
|
|
42
|
+
},
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./index.d.ts",
|
|
45
|
+
"default": "./index.js"
|
|
46
|
+
},
|
|
42
47
|
"default": "./index.js"
|
|
43
48
|
},
|
|
44
|
-
"./index.d.ts": "./index.d.ts",
|
|
45
49
|
"./package.json": "./package.json",
|
|
46
50
|
"./async/package.json": "./async/package.json",
|
|
47
51
|
"./async": {
|
|
48
52
|
"browser": "./async/index.browser.js",
|
|
49
|
-
"require":
|
|
50
|
-
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./index.d.cts",
|
|
55
|
+
"default": "./async/index.cjs"
|
|
56
|
+
},
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./index.d.ts",
|
|
59
|
+
"default": "./async/index.js"
|
|
60
|
+
},
|
|
51
61
|
"default": "./async/index.js"
|
|
52
62
|
},
|
|
53
63
|
"./non-secure/package.json": "./non-secure/package.json",
|
|
54
64
|
"./non-secure": {
|
|
55
|
-
"require":
|
|
56
|
-
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./index.d.cts",
|
|
67
|
+
"default": "./non-secure/index.cjs"
|
|
68
|
+
},
|
|
69
|
+
"import": {
|
|
70
|
+
"types": "./index.d.ts",
|
|
71
|
+
"default": "./non-secure/index.js"
|
|
72
|
+
},
|
|
57
73
|
"default": "./non-secure/index.js"
|
|
58
74
|
},
|
|
59
75
|
"./url-alphabet/package.json": "./url-alphabet/package.json",
|
|
60
76
|
"./url-alphabet": {
|
|
61
|
-
"require":
|
|
62
|
-
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./index.d.cts",
|
|
79
|
+
"default": "./url-alphabet/index.cjs"
|
|
80
|
+
},
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./index.d.ts",
|
|
83
|
+
"default": "./url-alphabet/index.js"
|
|
84
|
+
},
|
|
63
85
|
"default": "./url-alphabet/index.js"
|
|
64
86
|
}
|
|
65
87
|
}
|
|
@@ -587,6 +587,15 @@ export declare const setActivePinia: _SetActivePinia;
|
|
|
587
587
|
*/
|
|
588
588
|
export declare function setMapStoreSuffix(suffix: MapStoresCustomization extends Record<'suffix', infer Suffix> ? Suffix : string): void;
|
|
589
589
|
|
|
590
|
+
/**
|
|
591
|
+
* Return type of `defineStore()` with a setup function.
|
|
592
|
+
* - `Id` is a string literal of the store's name
|
|
593
|
+
* - `SS` is the return type of the setup function
|
|
594
|
+
* @see {@link StoreDefinition}
|
|
595
|
+
*/
|
|
596
|
+
export declare interface SetupStoreDefinition<Id extends string, SS> extends StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>> {
|
|
597
|
+
}
|
|
598
|
+
|
|
590
599
|
/**
|
|
591
600
|
* Tells Pinia to skip the hydration process of a given object. This is useful in setup stores (only) when you return a
|
|
592
601
|
* stateful object in the store but it isn't really state. e.g. returning a router instance in a setup store.
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
VNode,
|
|
3
|
-
IntrinsicElementAttributes,
|
|
4
|
-
ReservedProps,
|
|
5
|
-
NativeElements
|
|
6
|
-
} from '@vue/runtime-dom'
|
|
1
|
+
import type { VNode, ReservedProps, NativeElements } from '@vue/runtime-dom'
|
|
7
2
|
|
|
8
3
|
/**
|
|
9
4
|
* JSX namespace for usage with @jsxImportsSource directive
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
// global JSX namespace registration
|
|
2
2
|
// somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
|
|
3
|
-
import type {
|
|
4
|
-
VNode,
|
|
5
|
-
IntrinsicElementAttributes,
|
|
6
|
-
ReservedProps,
|
|
7
|
-
NativeElements
|
|
8
|
-
} from '@vue/runtime-dom'
|
|
3
|
+
import type { VNode, ReservedProps, NativeElements } from '@vue/runtime-dom'
|
|
9
4
|
|
|
10
5
|
declare global {
|
|
11
6
|
namespace JSX {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "The progressive JavaScript framework for building modern web UI.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/vue.runtime.esm-bundler.js",
|
|
@@ -44,10 +44,12 @@
|
|
|
44
44
|
"./compiler-sfc": {
|
|
45
45
|
"import": {
|
|
46
46
|
"types": "./compiler-sfc/index.d.mts",
|
|
47
|
+
"browser": "./compiler-sfc/index.browser.mjs",
|
|
47
48
|
"default": "./compiler-sfc/index.mjs"
|
|
48
49
|
},
|
|
49
50
|
"require": {
|
|
50
51
|
"types": "./compiler-sfc/index.d.ts",
|
|
52
|
+
"browser": "./compiler-sfc/index.browser.js",
|
|
51
53
|
"default": "./compiler-sfc/index.js"
|
|
52
54
|
}
|
|
53
55
|
},
|
|
@@ -94,10 +96,18 @@
|
|
|
94
96
|
},
|
|
95
97
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
|
|
96
98
|
"dependencies": {
|
|
97
|
-
"@vue/shared": "3.3.
|
|
98
|
-
"@vue/compiler-dom": "3.3.
|
|
99
|
-
"@vue/runtime-dom": "3.3.
|
|
100
|
-
"@vue/compiler-sfc": "3.3.
|
|
101
|
-
"@vue/server-renderer": "3.3.
|
|
99
|
+
"@vue/shared": "3.3.8",
|
|
100
|
+
"@vue/compiler-dom": "3.3.8",
|
|
101
|
+
"@vue/runtime-dom": "3.3.8",
|
|
102
|
+
"@vue/compiler-sfc": "3.3.8",
|
|
103
|
+
"@vue/server-renderer": "3.3.8"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"typescript": "*"
|
|
107
|
+
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"typescript": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
102
112
|
}
|
|
103
113
|
}
|
|
@@ -79,7 +79,9 @@ export declare function createWebHistory(base?: string): RouterHistory;
|
|
|
79
79
|
* @param from - location we were navigating from when the error happened
|
|
80
80
|
* @internal
|
|
81
81
|
*/
|
|
82
|
-
declare
|
|
82
|
+
declare interface _ErrorListener {
|
|
83
|
+
(error: any, to: RouteLocationNormalized, from: RouteLocationNormalizedLoaded): any;
|
|
84
|
+
}
|
|
83
85
|
|
|
84
86
|
/**
|
|
85
87
|
* Flags so we can combine them when checking for multiple errors. This is the internal version of
|
|
@@ -125,6 +127,9 @@ declare type HistoryStateValue = string | number | boolean | null | undefined |
|
|
|
125
127
|
/**
|
|
126
128
|
* Check if an object is a {@link NavigationFailure}.
|
|
127
129
|
*
|
|
130
|
+
* @param error - possible {@link NavigationFailure}
|
|
131
|
+
* @param type - optional types to check for
|
|
132
|
+
*
|
|
128
133
|
* @example
|
|
129
134
|
* ```js
|
|
130
135
|
* import { isNavigationFailure, NavigationFailureType } from 'vue-router'
|
|
@@ -144,8 +149,6 @@ declare type HistoryStateValue = string | number | boolean | null | undefined |
|
|
|
144
149
|
* }
|
|
145
150
|
* })
|
|
146
151
|
* ```
|
|
147
|
-
* @param error - possible {@link NavigationFailure}
|
|
148
|
-
* @param type - optional types to check for
|
|
149
152
|
*/
|
|
150
153
|
export declare function isNavigationFailure(error: any, type?: ErrorTypes.NAVIGATION_GUARD_REDIRECT): error is NavigationRedirectError;
|
|
151
154
|
|
|
@@ -336,7 +339,7 @@ export declare interface NavigationGuardNext {
|
|
|
336
339
|
(cb: NavigationGuardNextCallback): void;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
|
-
declare type NavigationGuardNextCallback = (vm: ComponentPublicInstance) =>
|
|
342
|
+
declare type NavigationGuardNextCallback = (vm: ComponentPublicInstance) => unknown;
|
|
340
343
|
|
|
341
344
|
declare type NavigationGuardReturn = void | Error | RouteLocationRaw | boolean | NavigationGuardNextCallback;
|
|
342
345
|
|
|
@@ -750,6 +753,9 @@ export declare interface Router {
|
|
|
750
753
|
* navigation guards have been successful. Returns a function that removes the
|
|
751
754
|
* registered guard.
|
|
752
755
|
*
|
|
756
|
+
* @param guard - navigation guard to add
|
|
757
|
+
* @returns a function that removes the registered guard
|
|
758
|
+
*
|
|
753
759
|
* @example
|
|
754
760
|
* ```js
|
|
755
761
|
* router.beforeResolve(to => {
|
|
@@ -757,13 +763,15 @@ export declare interface Router {
|
|
|
757
763
|
* })
|
|
758
764
|
* ```
|
|
759
765
|
*
|
|
760
|
-
* @param guard - navigation guard to add
|
|
761
766
|
*/
|
|
762
767
|
beforeResolve(guard: NavigationGuardWithThis<undefined>): () => void;
|
|
763
768
|
/**
|
|
764
769
|
* Add a navigation hook that is executed after every navigation. Returns a
|
|
765
770
|
* function that removes the registered hook.
|
|
766
771
|
*
|
|
772
|
+
* @param guard - navigation hook to add
|
|
773
|
+
* @returns a function that removes the registered hook
|
|
774
|
+
*
|
|
767
775
|
* @example
|
|
768
776
|
* ```js
|
|
769
777
|
* router.afterEach((to, from, failure) => {
|
|
@@ -772,8 +780,6 @@ export declare interface Router {
|
|
|
772
780
|
* }
|
|
773
781
|
* })
|
|
774
782
|
* ```
|
|
775
|
-
*
|
|
776
|
-
* @param guard - navigation hook to add
|
|
777
783
|
*/
|
|
778
784
|
afterEach(guard: NavigationHookAfter): () => void;
|
|
779
785
|
/**
|
|
@@ -785,7 +791,7 @@ export declare interface Router {
|
|
|
785
791
|
*
|
|
786
792
|
* @param handler - error handler to register
|
|
787
793
|
*/
|
|
788
|
-
onError(handler:
|
|
794
|
+
onError(handler: _ErrorListener): () => void;
|
|
789
795
|
/**
|
|
790
796
|
* Returns a Promise that resolves when the router has completed the initial
|
|
791
797
|
* navigation, which means it has resolved all async enter hooks and async
|
|
@@ -814,8 +820,7 @@ export declare interface Router {
|
|
|
814
820
|
export declare type RouteRecord = RouteRecordNormalized;
|
|
815
821
|
|
|
816
822
|
/**
|
|
817
|
-
*
|
|
818
|
-
* @internal
|
|
823
|
+
* Internal type for common properties among all kind of {@link RouteRecordRaw}.
|
|
819
824
|
*/
|
|
820
825
|
export declare interface _RouteRecordBase extends PathParserOptions {
|
|
821
826
|
/**
|
|
@@ -838,7 +843,7 @@ export declare interface _RouteRecordBase extends PathParserOptions {
|
|
|
838
843
|
*/
|
|
839
844
|
alias?: string | string[];
|
|
840
845
|
/**
|
|
841
|
-
* Name for the route record.
|
|
846
|
+
* Name for the route record. Must be unique.
|
|
842
847
|
*/
|
|
843
848
|
name?: RouteRecordName;
|
|
844
849
|
/**
|
|
@@ -870,7 +875,7 @@ declare interface RouteRecordMatcher extends PathParser {
|
|
|
870
875
|
/**
|
|
871
876
|
* Route Record defining multiple named components with the `components` option.
|
|
872
877
|
*/
|
|
873
|
-
declare interface RouteRecordMultipleViews extends _RouteRecordBase {
|
|
878
|
+
export declare interface RouteRecordMultipleViews extends _RouteRecordBase {
|
|
874
879
|
/**
|
|
875
880
|
* Components to display when the URL matches this route. Allow using named views.
|
|
876
881
|
*/
|
|
@@ -889,7 +894,7 @@ declare interface RouteRecordMultipleViews extends _RouteRecordBase {
|
|
|
889
894
|
/**
|
|
890
895
|
* Route Record defining multiple named components with the `components` option and children.
|
|
891
896
|
*/
|
|
892
|
-
declare interface RouteRecordMultipleViewsWithChildren extends _RouteRecordBase {
|
|
897
|
+
export declare interface RouteRecordMultipleViewsWithChildren extends _RouteRecordBase {
|
|
893
898
|
/**
|
|
894
899
|
* Components to display when the URL matches this route. Allow using named views.
|
|
895
900
|
*/
|
|
@@ -991,7 +996,7 @@ export declare type RouteRecordRaw = RouteRecordSingleView | RouteRecordSingleVi
|
|
|
991
996
|
* Route Record that defines a redirect. Cannot have `component` or `components`
|
|
992
997
|
* as it is never rendered.
|
|
993
998
|
*/
|
|
994
|
-
declare interface RouteRecordRedirect extends _RouteRecordBase {
|
|
999
|
+
export declare interface RouteRecordRedirect extends _RouteRecordBase {
|
|
995
1000
|
redirect: RouteRecordRedirectOption;
|
|
996
1001
|
component?: never;
|
|
997
1002
|
components?: never;
|
|
@@ -1006,7 +1011,7 @@ export declare type RouteRecordRedirectOption = RouteLocationRaw | ((to: RouteLo
|
|
|
1006
1011
|
/**
|
|
1007
1012
|
* Route Record defining one single component with the `component` option.
|
|
1008
1013
|
*/
|
|
1009
|
-
declare interface RouteRecordSingleView extends _RouteRecordBase {
|
|
1014
|
+
export declare interface RouteRecordSingleView extends _RouteRecordBase {
|
|
1010
1015
|
/**
|
|
1011
1016
|
* Component to display when the URL matches this route.
|
|
1012
1017
|
*/
|
|
@@ -1023,7 +1028,7 @@ declare interface RouteRecordSingleView extends _RouteRecordBase {
|
|
|
1023
1028
|
/**
|
|
1024
1029
|
* Route Record defining one single component with a nested view.
|
|
1025
1030
|
*/
|
|
1026
|
-
declare interface RouteRecordSingleViewWithChildren extends _RouteRecordBase {
|
|
1031
|
+
export declare interface RouteRecordSingleViewWithChildren extends _RouteRecordBase {
|
|
1027
1032
|
/**
|
|
1028
1033
|
* Component to display when the URL matches this route.
|
|
1029
1034
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-router",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"unpkg": "dist/vue-router.global.js",
|
|
6
6
|
"jsdelivr": "dist/vue-router.global.js",
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false,
|
|
32
|
+
"author": {
|
|
33
|
+
"name": "Eduardo San Martin Morote",
|
|
34
|
+
"email": "posva13@gmail.com"
|
|
35
|
+
},
|
|
32
36
|
"funding": "https://github.com/sponsors/posva",
|
|
33
37
|
"license": "MIT",
|
|
34
38
|
"repository": {
|
|
@@ -58,39 +62,39 @@
|
|
|
58
62
|
"@vue/devtools-api": "^6.5.0"
|
|
59
63
|
},
|
|
60
64
|
"devDependencies": {
|
|
61
|
-
"@microsoft/api-extractor": "^7.36.
|
|
65
|
+
"@microsoft/api-extractor": "^7.36.4",
|
|
62
66
|
"@rollup/plugin-alias": "^5.0.0",
|
|
63
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
64
|
-
"@rollup/plugin-node-resolve": "^15.0
|
|
67
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
68
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
65
69
|
"@rollup/plugin-replace": "^5.0.2",
|
|
66
70
|
"@rollup/plugin-terser": "^0.4.3",
|
|
67
71
|
"@sucrase/jest-plugin": "^3.0.0",
|
|
68
|
-
"@types/jest": "^29.5.
|
|
72
|
+
"@types/jest": "^29.5.3",
|
|
69
73
|
"@types/jsdom": "^21.1.1",
|
|
70
|
-
"@types/nightwatch": "^2.3.
|
|
74
|
+
"@types/nightwatch": "^2.3.25",
|
|
71
75
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
72
76
|
"@vue/compiler-sfc": "^3.3.4",
|
|
73
77
|
"@vue/server-renderer": "^3.3.4",
|
|
74
|
-
"@vue/test-utils": "^2.
|
|
75
|
-
"browserstack-local": "^1.5.
|
|
76
|
-
"chromedriver": "^
|
|
78
|
+
"@vue/test-utils": "^2.4.1",
|
|
79
|
+
"browserstack-local": "^1.5.4",
|
|
80
|
+
"chromedriver": "^115.0.1",
|
|
77
81
|
"connect-history-api-fallback": "^1.6.0",
|
|
78
82
|
"conventional-changelog-cli": "^2.1.1",
|
|
79
|
-
"dotenv": "^16.
|
|
83
|
+
"dotenv": "^16.3.1",
|
|
80
84
|
"faked-promise": "^2.2.2",
|
|
81
85
|
"geckodriver": "^3.2.0",
|
|
82
|
-
"jest": "^29.
|
|
83
|
-
"jest-environment-jsdom": "^29.
|
|
86
|
+
"jest": "^29.6.2",
|
|
87
|
+
"jest-environment-jsdom": "^29.6.2",
|
|
84
88
|
"jest-mock-warn": "^1.1.0",
|
|
85
89
|
"nightwatch": "^2.6.21",
|
|
86
90
|
"nightwatch-helpers": "^1.2.0",
|
|
87
91
|
"rimraf": "^5.0.1",
|
|
88
|
-
"rollup": "^3.
|
|
92
|
+
"rollup": "^3.28.0",
|
|
89
93
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
90
94
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
91
|
-
"sucrase": "^3.
|
|
95
|
+
"sucrase": "^3.34.0",
|
|
92
96
|
"typescript": "~5.1.6",
|
|
93
|
-
"vite": "^4.
|
|
97
|
+
"vite": "^4.4.9",
|
|
94
98
|
"vue": "^3.3.4"
|
|
95
99
|
},
|
|
96
100
|
"scripts": {
|