@vizejs/musea-nuxt 0.347.7 → 0.350.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/index.d.mts +40 -41
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
1
|
import { App, MaybeRefOrGetter, PropType, Ref } from "vue";
|
|
3
2
|
import { Plugin } from "vite";
|
|
4
3
|
|
|
@@ -96,7 +95,7 @@ declare function useRouter(): {
|
|
|
96
95
|
href: string;
|
|
97
96
|
route: NuxtMuseaRouteLocation;
|
|
98
97
|
};
|
|
99
|
-
currentRoute:
|
|
98
|
+
currentRoute: import("vue").ComputedRef<NuxtMuseaRouteLocation>;
|
|
100
99
|
addRoute: () => () => void;
|
|
101
100
|
removeRoute: () => void;
|
|
102
101
|
hasRoute: () => boolean;
|
|
@@ -217,7 +216,7 @@ declare function showError(input: string | Partial<NuxtError>): NuxtError;
|
|
|
217
216
|
declare function clearError(_options?: {
|
|
218
217
|
redirect?: string;
|
|
219
218
|
}): Promise<void>;
|
|
220
|
-
declare function useError():
|
|
219
|
+
declare function useError(): import("vue").Ref<Error | null, Error | null>;
|
|
221
220
|
//#endregion
|
|
222
221
|
//#region src/mocks/runtime.d.ts
|
|
223
222
|
/**
|
|
@@ -235,7 +234,7 @@ declare function useNuxtApp(): {
|
|
|
235
234
|
href: string;
|
|
236
235
|
route: NuxtMuseaRouteLocation;
|
|
237
236
|
};
|
|
238
|
-
currentRoute:
|
|
237
|
+
currentRoute: import("vue").ComputedRef<NuxtMuseaRouteLocation>;
|
|
239
238
|
addRoute: () => () => void;
|
|
240
239
|
removeRoute: () => void;
|
|
241
240
|
hasRoute: () => boolean;
|
|
@@ -304,7 +303,7 @@ declare function reloadNuxtApp(_options?: Record<string, unknown>): Promise<void
|
|
|
304
303
|
/**
|
|
305
304
|
* Mock NuxtLink - renders as <RouterLink> or <a>.
|
|
306
305
|
*/
|
|
307
|
-
declare const NuxtLink:
|
|
306
|
+
declare const NuxtLink: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
308
307
|
to: {
|
|
309
308
|
type: PropType<NuxtMuseaNavigationTarget>;
|
|
310
309
|
default: string;
|
|
@@ -349,11 +348,11 @@ declare const NuxtLink: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
349
348
|
type: BooleanConstructor;
|
|
350
349
|
default: boolean;
|
|
351
350
|
};
|
|
352
|
-
}>, () =>
|
|
351
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
353
352
|
[key: string]: any;
|
|
354
|
-
}> |
|
|
353
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
355
354
|
[key: string]: any;
|
|
356
|
-
}>[] | undefined, {}, {}, {},
|
|
355
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
357
356
|
to: {
|
|
358
357
|
type: PropType<NuxtMuseaNavigationTarget>;
|
|
359
358
|
default: string;
|
|
@@ -410,11 +409,11 @@ declare const NuxtLink: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
410
409
|
activeClass: string;
|
|
411
410
|
exactActiveClass: string;
|
|
412
411
|
custom: boolean;
|
|
413
|
-
}, {}, {}, {}, string,
|
|
412
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
414
413
|
/**
|
|
415
414
|
* Mock NuxtPage - renders <RouterView> or slot content.
|
|
416
415
|
*/
|
|
417
|
-
declare const NuxtPage:
|
|
416
|
+
declare const NuxtPage: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
418
417
|
name: {
|
|
419
418
|
type: StringConstructor;
|
|
420
419
|
default: string;
|
|
@@ -431,11 +430,11 @@ declare const NuxtPage: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
431
430
|
type: (StringConstructor | FunctionConstructor)[];
|
|
432
431
|
default: undefined;
|
|
433
432
|
};
|
|
434
|
-
}>, () =>
|
|
433
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
435
434
|
[key: string]: any;
|
|
436
|
-
}> |
|
|
435
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
437
436
|
[key: string]: any;
|
|
438
|
-
}>[], {}, {}, {},
|
|
437
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
439
438
|
name: {
|
|
440
439
|
type: StringConstructor;
|
|
441
440
|
default: string;
|
|
@@ -457,17 +456,17 @@ declare const NuxtPage: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
457
456
|
transition: boolean | Record<string, any>;
|
|
458
457
|
keepalive: boolean | Record<string, any>;
|
|
459
458
|
pageKey: string | Function;
|
|
460
|
-
}, {}, {}, {}, string,
|
|
459
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
461
460
|
/**
|
|
462
461
|
* Mock ClientOnly - renders default slot on client side (always in browser context).
|
|
463
462
|
*/
|
|
464
|
-
declare const ClientOnly:
|
|
463
|
+
declare const ClientOnly: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
465
464
|
[key: string]: any;
|
|
466
|
-
}>[] | null, {}, {}, {},
|
|
465
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
467
466
|
/**
|
|
468
467
|
* Mock NuxtLayout - renders slot content with optional layout wrapper.
|
|
469
468
|
*/
|
|
470
|
-
declare const NuxtLayout:
|
|
469
|
+
declare const NuxtLayout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
471
470
|
name: {
|
|
472
471
|
type: StringConstructor;
|
|
473
472
|
default: string;
|
|
@@ -476,9 +475,9 @@ declare const NuxtLayout: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
476
475
|
type: StringConstructor;
|
|
477
476
|
default: undefined;
|
|
478
477
|
};
|
|
479
|
-
}>, () =>
|
|
478
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
480
479
|
[key: string]: any;
|
|
481
|
-
}>[] | null, {}, {}, {},
|
|
480
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
482
481
|
name: {
|
|
483
482
|
type: StringConstructor;
|
|
484
483
|
default: string;
|
|
@@ -490,42 +489,42 @@ declare const NuxtLayout: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
490
489
|
}>> & Readonly<{}>, {
|
|
491
490
|
name: string;
|
|
492
491
|
fallback: string;
|
|
493
|
-
}, {}, {}, {}, string,
|
|
492
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
494
493
|
/**
|
|
495
494
|
* Mock NuxtLoadingIndicator - renders nothing.
|
|
496
495
|
*/
|
|
497
|
-
declare const NuxtLoadingIndicator:
|
|
496
|
+
declare const NuxtLoadingIndicator: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
498
497
|
/**
|
|
499
498
|
* Mock NuxtErrorBoundary - renders default slot.
|
|
500
499
|
*/
|
|
501
|
-
declare const NuxtErrorBoundary:
|
|
500
|
+
declare const NuxtErrorBoundary: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
502
501
|
[key: string]: any;
|
|
503
|
-
}>[] | null, {}, {}, {},
|
|
504
|
-
declare const NuxtRouteAnnouncer:
|
|
502
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
503
|
+
declare const NuxtRouteAnnouncer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
505
504
|
politeness: {
|
|
506
505
|
type: StringConstructor;
|
|
507
506
|
default: string;
|
|
508
507
|
};
|
|
509
|
-
}>, () =>
|
|
508
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
510
509
|
[key: string]: any;
|
|
511
|
-
}>, {}, {}, {},
|
|
510
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
512
511
|
politeness: {
|
|
513
512
|
type: StringConstructor;
|
|
514
513
|
default: string;
|
|
515
514
|
};
|
|
516
515
|
}>> & Readonly<{}>, {
|
|
517
516
|
politeness: string;
|
|
518
|
-
}, {}, {}, {}, string,
|
|
519
|
-
declare const NuxtWelcome:
|
|
517
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
518
|
+
declare const NuxtWelcome: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
520
519
|
[key: string]: any;
|
|
521
|
-
}>, {}, {}, {},
|
|
522
|
-
declare const NuxtIsland:
|
|
520
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
521
|
+
declare const NuxtIsland: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
523
522
|
[key: string]: any;
|
|
524
|
-
}>[] | null, {}, {}, {},
|
|
525
|
-
declare const NuxtClientFallback:
|
|
523
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
524
|
+
declare const NuxtClientFallback: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
526
525
|
[key: string]: any;
|
|
527
|
-
}>[] | null, {}, {}, {},
|
|
528
|
-
declare const NuxtImg:
|
|
526
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
527
|
+
declare const NuxtImg: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
529
528
|
src: {
|
|
530
529
|
type: StringConstructor;
|
|
531
530
|
required: true;
|
|
@@ -542,9 +541,9 @@ declare const NuxtImg: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
542
541
|
type: (StringConstructor | NumberConstructor)[];
|
|
543
542
|
default: undefined;
|
|
544
543
|
};
|
|
545
|
-
}>, () =>
|
|
544
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
546
545
|
[key: string]: any;
|
|
547
|
-
}>, {}, {}, {},
|
|
546
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
548
547
|
src: {
|
|
549
548
|
type: StringConstructor;
|
|
550
549
|
required: true;
|
|
@@ -565,8 +564,8 @@ declare const NuxtImg: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
565
564
|
alt: string;
|
|
566
565
|
width: string | number;
|
|
567
566
|
height: string | number;
|
|
568
|
-
}, {}, {}, {}, string,
|
|
569
|
-
declare const NuxtPicture:
|
|
567
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
568
|
+
declare const NuxtPicture: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
570
569
|
src: {
|
|
571
570
|
type: StringConstructor;
|
|
572
571
|
required: true;
|
|
@@ -575,9 +574,9 @@ declare const NuxtPicture: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
575
574
|
type: StringConstructor;
|
|
576
575
|
default: string;
|
|
577
576
|
};
|
|
578
|
-
}>, () =>
|
|
577
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
579
578
|
[key: string]: any;
|
|
580
|
-
}>, {}, {}, {},
|
|
579
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
581
580
|
src: {
|
|
582
581
|
type: StringConstructor;
|
|
583
582
|
required: true;
|
|
@@ -588,7 +587,7 @@ declare const NuxtPicture: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
588
587
|
};
|
|
589
588
|
}>> & Readonly<{}>, {
|
|
590
589
|
alt: string;
|
|
591
|
-
}, {}, {}, {}, string,
|
|
590
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
592
591
|
//#endregion
|
|
593
592
|
//#region src/index.d.ts
|
|
594
593
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/musea-nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.350.2",
|
|
4
4
|
"description": "Nuxt mock layer for Musea - enables Nuxt component isolation in galleries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component-gallery",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.
|
|
42
|
-
"vite-plus": "0.1.
|
|
41
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.24",
|
|
42
|
+
"vite-plus": "0.1.24",
|
|
43
43
|
"vue": "3.5.35",
|
|
44
44
|
"vue-router": "4.5.1"
|
|
45
45
|
},
|