@mono-lit/utility 0.0.1 → 0.0.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/LICENSE.md +54 -54
- package/README.md +156 -156
- package/dist/{app-roots-BJsIxzjk.d.ts → app-roots-DK41xMWj.d.ts} +1 -2
- package/dist/config-node.d.ts +134 -188
- package/dist/config-node.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{create-config-D3m6xTaQ.d.ts → create-config-B8IhX4ht.d.ts} +5 -3
- package/dist/fetching.d.ts +51 -46
- package/dist/fetching.js +163 -15
- package/dist/{index-C2hZeNkq.d.ts → index-BAy6tbOG.d.ts} +12 -6
- package/dist/{index-ClrZbU7n.d.ts → index-DYlzhHq7.d.ts} +83 -87
- package/dist/index.d.ts +3 -7
- package/dist/index.js +5 -3
- package/dist/{merge-file-C5nzi_MY.d.ts → merge-file-CLc3wxY4.d.ts} +5 -28
- package/dist/{mock-db-5mJTObSC.js → mock-db-4tTWrF-P.js} +12 -12
- package/dist/mock-db.d.ts +1 -1
- package/dist/mock-db.js +1 -1
- package/dist/mono-db.d.ts +1 -1
- package/dist/mono-db.js +115 -108
- package/dist/mono-prepare.d.ts +1 -1
- package/dist/mono-prepare.js +3 -2
- package/dist/mono-skills.d.ts +1 -1
- package/dist/mono-skills.js +39 -32
- package/dist/nuxt-layers.d.ts +4 -2
- package/dist/nuxt-runtime.d.ts +4 -5
- package/dist/nuxt-runtime.js +1 -1
- package/dist/nuxt.d.ts +40 -36
- package/dist/nuxt.js +153 -6
- package/dist/{runtime-C_IWNrAG.js → runtime-vs7U9Ed4.js} +394 -157
- package/dist/runtime.d.ts +68 -133
- package/dist/runtime.js +2 -2
- package/dist/{session-Bk985AIM.js → session-Bcig-rPi.js} +4 -4
- package/dist/{universal-B2eD9xho.d.ts → universal-BR0O7Qwk.d.ts} +8 -46
- package/dist/{universal-BNTo_83u.js → universal-DIVEzCvN.js} +3 -2
- package/dist/vite.d.ts +44 -41
- package/package.json +11 -11
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { c as MonoConfig, o as MonoAppType, w as MonoTemplate } from "./create-config-
|
|
2
|
-
import { r as MonoAppRootSource, t as MonoAppRoot } from "./app-roots-
|
|
1
|
+
import { c as MonoConfig, o as MonoAppType, w as MonoTemplate } from "./create-config-B8IhX4ht.js";
|
|
2
|
+
import { r as MonoAppRootSource, t as MonoAppRoot } from "./app-roots-DK41xMWj.js";
|
|
3
3
|
import { Plugin, PluginOption, ViteDevServer } from "vite";
|
|
4
|
-
|
|
5
4
|
//#region src/vite/remote-matcher.d.ts
|
|
6
5
|
/** The options every compat transform accepts, so they stay interchangeable. */
|
|
7
6
|
interface MonoRemoteGateOptions {
|
|
@@ -33,9 +32,9 @@ interface MonoPageMetaPluginOptions extends MonoRemoteGateOptions {}
|
|
|
33
32
|
* `enforce: 'pre'` so it runs before the SFC is compiled — place `monoVue()`
|
|
34
33
|
* before `VueRouter()` in the plugins array.
|
|
35
34
|
*/
|
|
36
|
-
declare function monoPageMetaToDefinePage(options?: MonoPageMetaPluginOptions): Plugin;
|
|
35
|
+
export declare function monoPageMetaToDefinePage(options?: MonoPageMetaPluginOptions): Plugin;
|
|
37
36
|
/** Clearer alias for {@link monoPageMetaToDefinePage}. */
|
|
38
|
-
declare const monoStripPageMeta: typeof monoPageMetaToDefinePage;
|
|
37
|
+
export declare const monoStripPageMeta: typeof monoPageMetaToDefinePage;
|
|
39
38
|
//#endregion
|
|
40
39
|
//#region src/vite/mono-layout-slot.d.ts
|
|
41
40
|
/**
|
|
@@ -56,7 +55,7 @@ declare const monoStripPageMeta: typeof monoPageMetaToDefinePage;
|
|
|
56
55
|
* Mirror of `mono-pagemeta`'s transform; the Nuxt host never runs this (it uses
|
|
57
56
|
* the same layout files via `<slot/>`).
|
|
58
57
|
*/
|
|
59
|
-
declare function monoLayoutSlotToRouterView(options?: MonoPageMetaPluginOptions): Plugin;
|
|
58
|
+
export declare function monoLayoutSlotToRouterView(options?: MonoPageMetaPluginOptions): Plugin;
|
|
60
59
|
//#endregion
|
|
61
60
|
//#region src/vite/mono-nuxt-state.d.ts
|
|
62
61
|
interface MonoNuxtStatePluginOptions extends MonoPageMetaPluginOptions {
|
|
@@ -97,9 +96,9 @@ interface MonoNuxtStatePluginOptions extends MonoPageMetaPluginOptions {
|
|
|
97
96
|
* `enforce: 'pre'` so `.vue` files are still raw SFC source — register before
|
|
98
97
|
* `@vitejs/plugin-vue`, alongside the other `monoVue()` plugins.
|
|
99
98
|
*/
|
|
100
|
-
declare function monoNuxtStateToRef(options?: MonoNuxtStatePluginOptions): Plugin;
|
|
99
|
+
export declare function monoNuxtStateToRef(options?: MonoNuxtStatePluginOptions): Plugin;
|
|
101
100
|
/** Clearer alias for {@link monoNuxtStateToRef}. */
|
|
102
|
-
declare const monoNuxtState: typeof monoNuxtStateToRef;
|
|
101
|
+
export declare const monoNuxtState: typeof monoNuxtStateToRef;
|
|
103
102
|
//#endregion
|
|
104
103
|
//#region src/vite/mono-link.d.ts
|
|
105
104
|
interface MonoLinkPluginOptions extends MonoPageMetaPluginOptions {
|
|
@@ -145,7 +144,7 @@ interface MonoLinkPluginOptions extends MonoPageMetaPluginOptions {
|
|
|
145
144
|
* `enforce: 'pre'` — the SFC must still be raw source, so register before
|
|
146
145
|
* `@vitejs/plugin-vue` (`monoVue()` / `monoRepo().nuxt().hostResolver()` do).
|
|
147
146
|
*/
|
|
148
|
-
declare function monoNuxtLinkToRouterLink(options?: MonoLinkPluginOptions): Plugin;
|
|
147
|
+
export declare function monoNuxtLinkToRouterLink(options?: MonoLinkPluginOptions): Plugin;
|
|
149
148
|
/**
|
|
150
149
|
* Vite plugin (Nuxt host): `<RouterLink>` -> `<NuxtLink>` for synced **Vue**
|
|
151
150
|
* remotes — the mirror of {@link monoNuxtLinkToRouterLink}, registered by
|
|
@@ -160,10 +159,10 @@ declare function monoNuxtLinkToRouterLink(options?: MonoLinkPluginOptions): Plug
|
|
|
160
159
|
* `v-slot` bindings pass through untouched. Case is preserved:
|
|
161
160
|
* `<router-link>` -> `<nuxt-link>`.
|
|
162
161
|
*/
|
|
163
|
-
declare function monoRouterLinkToNuxtLink(options?: MonoLinkPluginOptions): Plugin;
|
|
162
|
+
export declare function monoRouterLinkToNuxtLink(options?: MonoLinkPluginOptions): Plugin;
|
|
164
163
|
/** Clearer aliases. */
|
|
165
|
-
declare const monoNuxtLink: typeof monoNuxtLinkToRouterLink;
|
|
166
|
-
declare const monoRouterLink: typeof monoRouterLinkToNuxtLink;
|
|
164
|
+
export declare const monoNuxtLink: typeof monoNuxtLinkToRouterLink;
|
|
165
|
+
export declare const monoRouterLink: typeof monoRouterLinkToNuxtLink;
|
|
167
166
|
//#endregion
|
|
168
167
|
//#region src/vite/extend-route.d.ts
|
|
169
168
|
interface MonoExtendRouteOptions extends MonoRemoteGateOptions {
|
|
@@ -233,7 +232,7 @@ interface ExtendRouteNode {
|
|
|
233
232
|
* import { monoExtendRoute } from '@mono-lit/utility/vite'
|
|
234
233
|
* VueRouter({ routesFolder: [...], extendRoute: monoExtendRoute() })
|
|
235
234
|
*/
|
|
236
|
-
declare function monoExtendRoute(options?: MonoExtendRouteOptions): (route: ExtendRouteNode) => void;
|
|
235
|
+
export declare function monoExtendRoute(options?: MonoExtendRouteOptions): (route: ExtendRouteNode) => void;
|
|
237
236
|
//#endregion
|
|
238
237
|
//#region src/vite/mono-vite.d.ts
|
|
239
238
|
/**
|
|
@@ -263,7 +262,7 @@ type MonoEcoOptions = PluginOpts & MonoViteOwnDirs;
|
|
|
263
262
|
/** The ecosystem plugins mono can build. */
|
|
264
263
|
type MonoEcoKey = 'pages' | 'layouts' | 'composables' | 'components';
|
|
265
264
|
/** Upstream plugin name for each key — used for the duplicate warning. */
|
|
266
|
-
declare const MONO_ECO_PLUGIN_NAMES: Record<MonoEcoKey, string>;
|
|
265
|
+
export declare const MONO_ECO_PLUGIN_NAMES: Record<MonoEcoKey, string>;
|
|
267
266
|
interface MonoViteOptions {
|
|
268
267
|
/** `vue-router/vite`. `false` to register it yourself. */
|
|
269
268
|
pages?: false | MonoEcoOptions;
|
|
@@ -328,11 +327,11 @@ interface MonoViteContext {
|
|
|
328
327
|
* Which ecosystem a `mono.ecosystem(sub)` call belongs to, by first path
|
|
329
328
|
* segment — `composables/shared` and `stores/shared` both feed auto-import.
|
|
330
329
|
*/
|
|
331
|
-
declare const MONO_ECO_SUB_KEYS: Record<string, MonoEcoKey>;
|
|
330
|
+
export declare const MONO_ECO_SUB_KEYS: Record<string, MonoEcoKey>;
|
|
332
331
|
/** Map one ecosystem subpath to the plugin that consumes it, if any. */
|
|
333
|
-
declare function ecoKeyForSub(sub: string): MonoEcoKey | undefined;
|
|
332
|
+
export declare function ecoKeyForSub(sub: string): MonoEcoKey | undefined;
|
|
334
333
|
/** `VueRouter()` options: own + federated page folders, plus `extendRoute`. */
|
|
335
|
-
declare function monoPagesOptions(ctx: MonoViteContext, opts?: MonoEcoOptions, extendRouteOpts?: false | MonoExtendRouteOptions): PluginOpts;
|
|
334
|
+
export declare function monoPagesOptions(ctx: MonoViteContext, opts?: MonoEcoOptions, extendRouteOpts?: false | MonoExtendRouteOptions): PluginOpts;
|
|
336
335
|
/**
|
|
337
336
|
* `Layouts()` options: own layout dirs, plus the federated ones unless this app
|
|
338
337
|
* is the host.
|
|
@@ -348,7 +347,7 @@ declare function monoPagesOptions(ctx: MonoViteContext, opts?: MonoEcoOptions, e
|
|
|
348
347
|
* `template` sets a DEFAULT, not a lock: `layoutsDirs` replaces the whole list,
|
|
349
348
|
* so one call can always opt out without a mono-specific knob.
|
|
350
349
|
*/
|
|
351
|
-
declare function monoLayoutsOptions(ctx: MonoViteContext, opts?: MonoEcoOptions): PluginOpts;
|
|
350
|
+
export declare function monoLayoutsOptions(ctx: MonoViteContext, opts?: MonoEcoOptions): PluginOpts;
|
|
352
351
|
/**
|
|
353
352
|
* Per-ecosystem controls for the auto-import plugin.
|
|
354
353
|
*
|
|
@@ -372,21 +371,21 @@ interface MonoAutoImportOptions extends PluginOpts {
|
|
|
372
371
|
* load, which cannot happen synchronously — import them in your config and pass
|
|
373
372
|
* your own `imports`, or use `mono.autoImport()`, which resolves them for you.
|
|
374
373
|
*/
|
|
375
|
-
declare function monoAutoImportOptions(ctx: MonoViteContext, opts?: MonoAutoImportOptions): PluginOpts;
|
|
374
|
+
export declare function monoAutoImportOptions(ctx: MonoViteContext, opts?: MonoAutoImportOptions): PluginOpts;
|
|
376
375
|
/** `Components()` options: own + federated component dirs. */
|
|
377
|
-
declare function monoComponentsOptions(ctx: MonoViteContext, opts?: MonoEcoOptions): PluginOpts;
|
|
376
|
+
export declare function monoComponentsOptions(ctx: MonoViteContext, opts?: MonoEcoOptions): PluginOpts;
|
|
378
377
|
/** `vue-router/vite` + `ecosystem('pages')` + `extendRoute`. `enforce: 'pre'`. */
|
|
379
|
-
declare function monoPages(ctx: MonoViteContext, opts?: MonoEcoOptions, extendRouteOpts?: false | MonoExtendRouteOptions): Promise<PluginOption>;
|
|
378
|
+
export declare function monoPages(ctx: MonoViteContext, opts?: MonoEcoOptions, extendRouteOpts?: false | MonoExtendRouteOptions): Promise<PluginOption>;
|
|
380
379
|
/** `vite-plugin-vue-layouts-next` + `ecosystem('layouts')`. `enforce: 'pre'`. */
|
|
381
|
-
declare function monoLayouts(ctx: MonoViteContext, opts?: MonoEcoOptions): Promise<PluginOption>;
|
|
380
|
+
export declare function monoLayouts(ctx: MonoViteContext, opts?: MonoEcoOptions): Promise<PluginOption>;
|
|
382
381
|
/**
|
|
383
382
|
* `unplugin-auto-import/vite` + the federated composables AND stores dirs.
|
|
384
383
|
* `enforce: 'post'`. One plugin covers both ecosystems, so `stores` is a
|
|
385
384
|
* dirs-only companion option rather than its own factory.
|
|
386
385
|
*/
|
|
387
|
-
declare function monoAutoImport(ctx: MonoViteContext, opts?: MonoAutoImportOptions): Promise<PluginOption>;
|
|
386
|
+
export declare function monoAutoImport(ctx: MonoViteContext, opts?: MonoAutoImportOptions): Promise<PluginOption>;
|
|
388
387
|
/** `unplugin-vue-components/vite` + `ecosystem('components')`. `enforce: 'post'`. */
|
|
389
|
-
declare function monoComponents(ctx: MonoViteContext, opts?: MonoEcoOptions): Promise<PluginOption>;
|
|
388
|
+
export declare function monoComponents(ctx: MonoViteContext, opts?: MonoEcoOptions): Promise<PluginOption>;
|
|
390
389
|
/**
|
|
391
390
|
* Build the federated plugin stack.
|
|
392
391
|
*
|
|
@@ -397,7 +396,7 @@ declare function monoComponents(ctx: MonoViteContext, opts?: MonoEcoOptions): Pr
|
|
|
397
396
|
* Any ecosystem plugin already built via its own factory earlier in the same
|
|
398
397
|
* `plugins` array is skipped, so mixing the two styles never double-registers.
|
|
399
398
|
*/
|
|
400
|
-
declare function monoVite(ctx: MonoViteContext, opts?: MonoViteOptions): Promise<PluginOption[]>;
|
|
399
|
+
export declare function monoVite(ctx: MonoViteContext, opts?: MonoViteOptions): Promise<PluginOption[]>;
|
|
401
400
|
/**
|
|
402
401
|
* Make `mono.vite()` win when an ecosystem is registered twice.
|
|
403
402
|
*
|
|
@@ -409,7 +408,7 @@ declare function monoVite(ctx: MonoViteContext, opts?: MonoViteOptions): Promise
|
|
|
409
408
|
* When neither instance is mono's, nothing is touched: that is the consumer's
|
|
410
409
|
* own duplicate, and silently disabling one would be worse than saying so.
|
|
411
410
|
*/
|
|
412
|
-
declare function reconcileEcoPlugins(plugins: unknown): {
|
|
411
|
+
export declare function reconcileEcoPlugins(plugins: unknown): {
|
|
413
412
|
won: string[];
|
|
414
413
|
conflicting: string[];
|
|
415
414
|
};
|
|
@@ -429,7 +428,7 @@ declare function reconcileEcoPlugins(plugins: unknown): {
|
|
|
429
428
|
* Exported so a custom `expose` can opt into the same sanitisation:
|
|
430
429
|
* expose: (c) => sanitizeForExpose({ ...c, extra: customInstance })
|
|
431
430
|
*/
|
|
432
|
-
declare function sanitizeForExpose(value: unknown, depth?: number, seen?: WeakSet<object>): unknown;
|
|
431
|
+
export declare function sanitizeForExpose(value: unknown, depth?: number, seen?: WeakSet<object>): unknown;
|
|
433
432
|
//#endregion
|
|
434
433
|
//#region src/vite/mono-repo.d.ts
|
|
435
434
|
interface MonoRepoOptions {
|
|
@@ -610,7 +609,8 @@ interface MonoRepoResult {
|
|
|
610
609
|
* second `VueRouter`.
|
|
611
610
|
*/
|
|
612
611
|
pages: ((options?: MonoEcoOptions) => Promise<PluginOption>) & {
|
|
613
|
-
/** The `VueRouter()` options — see {@link MonoRepoResult.pages}. */
|
|
612
|
+
/** The `VueRouter()` options — see {@link MonoRepoResult.pages}. */
|
|
613
|
+
options: (options?: MonoEcoOptions) => Record<string, any>;
|
|
614
614
|
};
|
|
615
615
|
/**
|
|
616
616
|
* `vite-plugin-vue-layouts-next`, federated.
|
|
@@ -636,7 +636,8 @@ interface MonoRepoResult {
|
|
|
636
636
|
* Taking either form marks layouts as yours, so `vite()` skips its own copy.
|
|
637
637
|
*/
|
|
638
638
|
layouts: ((options?: MonoEcoOptions) => Promise<PluginOption>) & {
|
|
639
|
-
/** The `Layouts()` options — see {@link MonoRepoResult.layouts}. */
|
|
639
|
+
/** The `Layouts()` options — see {@link MonoRepoResult.layouts}. */
|
|
640
|
+
options: (options?: MonoEcoOptions) => Record<string, any>;
|
|
640
641
|
};
|
|
641
642
|
/**
|
|
642
643
|
* `unplugin-auto-import/vite`, federated.
|
|
@@ -674,7 +675,8 @@ interface MonoRepoResult {
|
|
|
674
675
|
* Taking either form marks this ecosystem as yours, so `vite()` skips its own.
|
|
675
676
|
*/
|
|
676
677
|
autoImport: ((options?: MonoAutoImportOptions) => Promise<PluginOption>) & {
|
|
677
|
-
/** The `AutoImport()` options — see {@link MonoRepoResult.autoImport}. */
|
|
678
|
+
/** The `AutoImport()` options — see {@link MonoRepoResult.autoImport}. */
|
|
679
|
+
options: (options?: MonoAutoImportOptions) => Record<string, any>;
|
|
678
680
|
};
|
|
679
681
|
/**
|
|
680
682
|
* Alias of {@link MonoRepoResult.autoImport}, kept because this ecosystem is
|
|
@@ -711,7 +713,8 @@ interface MonoRepoResult {
|
|
|
711
713
|
* Taking either form marks components as yours, so `vite()` skips its own.
|
|
712
714
|
*/
|
|
713
715
|
components: ((options?: MonoEcoOptions) => Promise<PluginOption>) & {
|
|
714
|
-
/** The `Components()` options — see {@link MonoRepoResult.components}. */
|
|
716
|
+
/** The `Components()` options — see {@link MonoRepoResult.components}. */
|
|
717
|
+
options: (options?: MonoEcoOptions) => Record<string, any>;
|
|
715
718
|
};
|
|
716
719
|
/** Vite plugin — register LAST. Wires alias, define, server.fs, optimizeDeps. */
|
|
717
720
|
plugin: Plugin;
|
|
@@ -805,7 +808,7 @@ interface MonoRepoResult {
|
|
|
805
808
|
* mono.vite({ layouts: false }),
|
|
806
809
|
* Layouts({ layoutsDirs: mono.ecosystem('layouts') }),
|
|
807
810
|
*/
|
|
808
|
-
declare function monoRepo(options?: MonoRepoOptions): Promise<MonoRepoResult>;
|
|
811
|
+
export declare function monoRepo(options?: MonoRepoOptions): Promise<MonoRepoResult>;
|
|
809
812
|
//#endregion
|
|
810
813
|
//#region src/composables/parse-page-meta.d.ts
|
|
811
814
|
/**
|
|
@@ -828,9 +831,9 @@ interface MonoPageMeta {
|
|
|
828
831
|
* host's `extendRoute` (since unplugin-vue-router reads page files from disk and
|
|
829
832
|
* never sees the `definePageMeta -> definePage` Vite transform).
|
|
830
833
|
*/
|
|
831
|
-
declare function parsePageMeta(code: string): MonoPageMeta;
|
|
834
|
+
export declare function parsePageMeta(code: string): MonoPageMeta;
|
|
832
835
|
/** {@link parsePageMeta} for a file path (build-time, Node). Returns `{}` on read error. */
|
|
833
|
-
declare function parsePageMetaFromFile(file: string): MonoPageMeta;
|
|
836
|
+
export declare function parsePageMetaFromFile(file: string): MonoPageMeta;
|
|
834
837
|
//#endregion
|
|
835
838
|
//#region src/vite/resolve-from-root.d.ts
|
|
836
839
|
/** A loader that imports bare specifiers as the app at `rootDir` would. */
|
|
@@ -841,12 +844,12 @@ type RootLoader = <T = any>(id: string) => Promise<T>;
|
|
|
841
844
|
* `createRequire` needs a *file* to resolve from — `noop.js` never has to exist,
|
|
842
845
|
* it only fixes the directory the walk starts in.
|
|
843
846
|
*/
|
|
844
|
-
declare function createRootLoader(rootDir: string): RootLoader;
|
|
847
|
+
export declare function createRootLoader(rootDir: string): RootLoader;
|
|
845
848
|
/** `true` when `id` can be resolved from the app root. Never throws. */
|
|
846
|
-
declare function canResolveFromRoot(rootDir: string, id: string): boolean;
|
|
849
|
+
export declare function canResolveFromRoot(rootDir: string, id: string): boolean;
|
|
847
850
|
//#endregion
|
|
848
851
|
//#region src/vite/mono-lith.d.ts
|
|
849
|
-
declare const MONO_APPS_VIRTUAL_ID = "virtual:mono-apps";
|
|
852
|
+
export declare const MONO_APPS_VIRTUAL_ID = "virtual:mono-apps";
|
|
850
853
|
interface MonoLithOptions {
|
|
851
854
|
/** Project root. Defaults to `process.cwd()`. */
|
|
852
855
|
dirname?: string;
|
|
@@ -885,7 +888,7 @@ interface MonoLithHooks {
|
|
|
885
888
|
resolveId: (id: string) => string | undefined;
|
|
886
889
|
load: (id: string) => string | undefined;
|
|
887
890
|
}
|
|
888
|
-
declare function createMonoLithHooks(options?: MonoLithOptions): MonoLithHooks;
|
|
891
|
+
export declare function createMonoLithHooks(options?: MonoLithOptions): MonoLithHooks;
|
|
889
892
|
/**
|
|
890
893
|
* Standalone plugin for a long-hand `vite.config.ts`. `monoRepo().vite()` /
|
|
891
894
|
* `mono.plugin` already include these hooks — do not register both.
|
|
@@ -895,10 +898,10 @@ declare function createMonoLithHooks(options?: MonoLithOptions): MonoLithHooks;
|
|
|
895
898
|
* plugins: [VueRouter({ … }), vue(), monoLith({ dirname: __dirname })]
|
|
896
899
|
* ```
|
|
897
900
|
*/
|
|
898
|
-
declare function monoLith(options?: MonoLithOptions): Plugin;
|
|
901
|
+
export declare function monoLith(options?: MonoLithOptions): Plugin;
|
|
899
902
|
//#endregion
|
|
900
903
|
//#region src/vite/index.d.ts
|
|
901
|
-
interface MonoVueOptions extends MonoNuxtStatePluginOptions, MonoLinkPluginOptions {
|
|
904
|
+
export interface MonoVueOptions extends MonoNuxtStatePluginOptions, MonoLinkPluginOptions {
|
|
902
905
|
/**
|
|
903
906
|
* Define the Nuxt compile-time constants `import.meta.server` /
|
|
904
907
|
* `import.meta.client` for synced remote code that branches on them
|
|
@@ -937,4 +940,4 @@ interface MonoVueOptions extends MonoNuxtStatePluginOptions, MonoLinkPluginOptio
|
|
|
937
940
|
*/
|
|
938
941
|
declare function monoVue(options?: MonoVueOptions): Plugin[];
|
|
939
942
|
//#endregion
|
|
940
|
-
export {
|
|
943
|
+
export { type MonoAppRoot, type MonoAppRootSource, type MonoAutoImportOptions, type MonoEcoKey, type MonoEcoOptions, type MonoExtendRouteOptions, type MonoLinkPluginOptions, type MonoLithHooks, type MonoLithOptions, type MonoNuxtStatePluginOptions, type MonoPageMeta, type MonoPageMetaPluginOptions, type MonoRepoNuxt, type MonoRepoNuxtHostOptions, type MonoRepoOptions, type MonoRepoResult, type MonoViteContext, type MonoViteOptions, type MonoViteOwnDirs, type RootLoader, monoVue as monoNuxtHost, monoVue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mono-lit/utility",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Mono config, fetching, auth/token, Nuxt/Vite integration and shared helpers for the @mono-lit ecosystem.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@nuxt/kit": "^4.
|
|
84
|
+
"@nuxt/kit": "^4.6.1",
|
|
85
85
|
"@odata2ts/http-client-fetch": "^0.9.0",
|
|
86
86
|
"@unhead/vue": "3.1.3",
|
|
87
87
|
"dotenv": "^17.4.2",
|
|
@@ -89,16 +89,16 @@
|
|
|
89
89
|
"h3": "^1.15.1",
|
|
90
90
|
"jwt-decode": "^4.0.0",
|
|
91
91
|
"notivue": "^2.4.5",
|
|
92
|
-
"vue": "3.5.
|
|
93
|
-
"vue-router": "5.0
|
|
92
|
+
"vue": "3.5.44",
|
|
93
|
+
"vue-router": "5.4.0",
|
|
94
94
|
"yup": "^1.7.1",
|
|
95
|
-
"@mono-lit/devextreme": "^0.0.
|
|
95
|
+
"@mono-lit/devextreme": "^0.0.2"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@nuxt/kit": "4.
|
|
99
|
-
"@nuxt/schema": "4.
|
|
98
|
+
"@nuxt/kit": "4.6.1",
|
|
99
|
+
"@nuxt/schema": "4.6.1",
|
|
100
100
|
"@odata2ts/http-client-fetch": "0.9.0",
|
|
101
|
-
"@tsdown/css": "0.
|
|
101
|
+
"@tsdown/css": "0.23.1",
|
|
102
102
|
"@vueuse/core": "14.3.0",
|
|
103
103
|
"@odata2ts/odata-query-objects": "0.28.1",
|
|
104
104
|
"fake-indexeddb": "^6.2.5",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"jwt-decode": "4.0.0",
|
|
107
107
|
"taze": "^19.14.1",
|
|
108
108
|
"yup": "1.7.1",
|
|
109
|
-
"tsdown": "0.
|
|
109
|
+
"tsdown": "0.23.1",
|
|
110
110
|
"typescript": "6.0.3",
|
|
111
111
|
"unplugin-vue": "7.2.0",
|
|
112
|
-
"vite": "8.
|
|
112
|
+
"vite": "8.3.4",
|
|
113
113
|
"vue-tsc": "~3.2.0",
|
|
114
|
-
"@mono-lit/helper": "0.0.
|
|
114
|
+
"@mono-lit/helper": "0.0.3"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"c12": "4.0.0-beta.5",
|