ubean 0.3.7 → 0.4.1
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/build.d.ts +10 -0
- package/dist/build.js +10 -0
- package/dist/{client/index.d.ts → client.d.ts} +19 -7
- package/dist/{client/index.js → client.js} +30 -9
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.js +3 -0
- package/dist/index.d.ts +7 -24
- package/dist/index.js +7 -23
- package/dist/server.d.ts +8 -0
- package/dist/server.js +8 -0
- package/dist/vite.js +2 -2
- package/package.json +36 -36
- package/dist/runtime/app.d.ts +0 -1
- package/dist/runtime/app.js +0 -2
- package/dist/runtime/i18n.d.ts +0 -1
- package/dist/runtime/i18n.js +0 -2
- package/dist/runtime/vue.d.ts +0 -15
- package/dist/runtime/vue.js +0 -23
- /package/dist/{vue-ssr.d.ts → ssr.d.ts} +0 -0
- /package/dist/{vue-ssr.js → ssr.js} +0 -0
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
+
import { UbeanPluginOptions, UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
3
|
+
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
4
|
+
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
+
export * from "@ubean/config";
|
|
6
|
+
export * from "@ubean/build/prerender";
|
|
7
|
+
export * from "@ubean/preset";
|
|
8
|
+
export * from "@ubean/build/codegen";
|
|
9
|
+
export * from "@ubean/scan";
|
|
10
|
+
export { type UbeanCorePluginOptions, type UbeanPluginOptions, type UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite };
|
package/dist/build.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
+
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
3
|
+
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
4
|
+
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
+
export * from "@ubean/config";
|
|
6
|
+
export * from "@ubean/build/prerender";
|
|
7
|
+
export * from "@ubean/preset";
|
|
8
|
+
export * from "@ubean/build/codegen";
|
|
9
|
+
export * from "@ubean/scan";
|
|
10
|
+
export { VUE_PLUGIN_INCLUDE, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HydrateIslandsOptions } from "@ubean/islands/runtime";
|
|
2
|
+
import { UseActionReturn, UseFormActionReturn, callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
3
|
+
import { CSSProperties, Component, ComputedRef, Plugin, Ref } from "vue";
|
|
2
4
|
export * from "@ubean/client";
|
|
3
5
|
//#region ../../node_modules/.pnpm/hookable@6.1.1/node_modules/hookable/dist/index.d.mts
|
|
4
6
|
type HookCallback = (...arguments_: any) => Promise<void> | void;
|
|
@@ -22,7 +24,7 @@ declare global {
|
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
27
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.DC0v7nqS.d.ts
|
|
26
28
|
type Booleanable = boolean | 'false' | 'true' | '';
|
|
27
29
|
type Stringable = string | Booleanable | number;
|
|
28
30
|
type Falsy$1 = false | null | undefined;
|
|
@@ -1829,7 +1831,7 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
1829
1831
|
_source?: string;
|
|
1830
1832
|
}
|
|
1831
1833
|
//#endregion
|
|
1832
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
1834
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.CN9FlNPx.d.ts
|
|
1833
1835
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
1834
1836
|
type BaseScriptApi = Record<symbol | string, any>;
|
|
1835
1837
|
type HasDiscriminatedParameters<T> = T extends {
|
|
@@ -2378,13 +2380,13 @@ interface DomState {
|
|
|
2378
2380
|
_e: Map<string, Element>;
|
|
2379
2381
|
}
|
|
2380
2382
|
//#endregion
|
|
2381
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
2383
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.DiHEHi7R.d.ts
|
|
2382
2384
|
type Base = RawInput<'base'>;
|
|
2383
2385
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
2384
2386
|
type Noscript = RawInput<'noscript'>;
|
|
2385
2387
|
type Style = RawInput<'style'>;
|
|
2386
2388
|
//#endregion
|
|
2387
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+
|
|
2389
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_82a096e81718295a3ed16ae885cf1512/node_modules/@unhead/vue/dist/shared/vue.B8YcFbNO.d.ts
|
|
2388
2390
|
type Falsy = false | null | undefined;
|
|
2389
2391
|
type MaybeFalsy<T> = T | Falsy;
|
|
2390
2392
|
type ResolvableValue<T> = MaybeFalsy<T> | (() => MaybeFalsy<T>) | ComputedRef<MaybeFalsy<T>> | Ref<MaybeFalsy<T>>;
|
|
@@ -2507,7 +2509,17 @@ interface ReactiveHead {
|
|
|
2507
2509
|
type UseHeadInput<_Deprecated = never> = ResolvableValue<ReactiveHead>;
|
|
2508
2510
|
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
2509
2511
|
//#endregion
|
|
2510
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+
|
|
2512
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_82a096e81718295a3ed16ae885cf1512/node_modules/@unhead/vue/dist/server.d.ts
|
|
2511
2513
|
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propResolvers'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
|
2512
2514
|
//#endregion
|
|
2513
|
-
|
|
2515
|
+
//#region src/client.d.ts
|
|
2516
|
+
/**
|
|
2517
|
+
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
2518
|
+
*
|
|
2519
|
+
* 合并优先级:手动注册 > 自动注册(允许用户对特定组件做特殊处理)。
|
|
2520
|
+
*/
|
|
2521
|
+
declare function hydrateIslands(options?: Omit<HydrateIslandsOptions, 'components'> & {
|
|
2522
|
+
components?: Record<string, Component | (() => Promise<Component>)>;
|
|
2523
|
+
}): void;
|
|
2524
|
+
//#endregion
|
|
2525
|
+
export { type UseActionReturn, type UseFormActionReturn, callAction, createHead as createServerHead, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { hydrateIslands as hydrateIslands$1 } from "@ubean/islands/runtime";
|
|
2
|
+
import { islands } from "virtual:ubean-islands-registry";
|
|
3
|
+
import { callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
1
4
|
import { isRef, toValue } from "vue";
|
|
2
5
|
export * from "@ubean/client";
|
|
3
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
6
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs
|
|
4
7
|
function registerPlugin(head, p) {
|
|
5
8
|
if (typeof p === "function" && p.key && head.plugins.has(p.key)) return;
|
|
6
9
|
const plugin = typeof p === "function" ? p(head) : p;
|
|
@@ -55,7 +58,7 @@ function createUnhead(renderer, resolvedOptions = {}) {
|
|
|
55
58
|
return head;
|
|
56
59
|
}
|
|
57
60
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
61
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs
|
|
59
62
|
const SelfClosingTags = /* @__PURE__ */ new Set([
|
|
60
63
|
"meta",
|
|
61
64
|
"link",
|
|
@@ -180,7 +183,7 @@ var HookableCore = class {
|
|
|
180
183
|
}
|
|
181
184
|
};
|
|
182
185
|
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
186
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs
|
|
184
187
|
function createHooks(hooks) {
|
|
185
188
|
const instance = new HookableCore();
|
|
186
189
|
for (const key in hooks || {}) instance.hook(key, hooks[key]);
|
|
@@ -191,7 +194,7 @@ function callHook(head, hook, ctx) {
|
|
|
191
194
|
return head.hooks?.callHook(hook, ctx);
|
|
192
195
|
}
|
|
193
196
|
//#endregion
|
|
194
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
197
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.-hZVKou0.mjs
|
|
195
198
|
const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
|
|
196
199
|
const META_KEY_ATTRS = [
|
|
197
200
|
"name",
|
|
@@ -536,7 +539,7 @@ function resolveTags(head, options) {
|
|
|
536
539
|
return sanitizeTagsInPlace(ctx.tags);
|
|
537
540
|
}
|
|
538
541
|
//#endregion
|
|
539
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.
|
|
542
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.1_jiti@2.7.0_terser@5._ac1d6cd1284b78ef59f67a590713f775/node_modules/unhead/dist/shared/unhead.Dssd7L5I.mjs
|
|
540
543
|
const isTruthy = (v) => v === "" || v === true;
|
|
541
544
|
function capoTagWeight(tag) {
|
|
542
545
|
if (typeof tag.tagPriority === "number") return tag.tagPriority;
|
|
@@ -701,7 +704,7 @@ function createHead$1(options = {}) {
|
|
|
701
704
|
return core;
|
|
702
705
|
}
|
|
703
706
|
//#endregion
|
|
704
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+
|
|
707
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_82a096e81718295a3ed16ae885cf1512/node_modules/@unhead/vue/dist/shared/vue.DKb5ZKVl.mjs
|
|
705
708
|
const headSymbol = "usehead";
|
|
706
709
|
// @__NO_SIDE_EFFECTS__
|
|
707
710
|
function vueInstall(head) {
|
|
@@ -712,10 +715,10 @@ function vueInstall(head) {
|
|
|
712
715
|
} }.install;
|
|
713
716
|
}
|
|
714
717
|
//#endregion
|
|
715
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+
|
|
718
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_82a096e81718295a3ed16ae885cf1512/node_modules/@unhead/vue/dist/shared/vue.D2XR8FqS.mjs
|
|
716
719
|
const VueResolver = /* @__PURE__ */ Object.assign((_, value) => isRef(value) ? toValue(value) : value, { _static: true });
|
|
717
720
|
//#endregion
|
|
718
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+
|
|
721
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_82a096e81718295a3ed16ae885cf1512/node_modules/@unhead/vue/dist/server.mjs
|
|
719
722
|
// @__NO_SIDE_EFFECTS__
|
|
720
723
|
function createHead(options = {}) {
|
|
721
724
|
const head = /* @__PURE__ */ createHead$1({
|
|
@@ -726,4 +729,22 @@ function createHead(options = {}) {
|
|
|
726
729
|
return head;
|
|
727
730
|
}
|
|
728
731
|
//#endregion
|
|
729
|
-
|
|
732
|
+
//#region src/client.ts
|
|
733
|
+
/**
|
|
734
|
+
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
735
|
+
*
|
|
736
|
+
* 合并优先级:手动注册 > 自动注册(允许用户对特定组件做特殊处理)。
|
|
737
|
+
*/
|
|
738
|
+
function hydrateIslands(options = {}) {
|
|
739
|
+
const { components: manual = {}, ...rest } = options;
|
|
740
|
+
const components = {
|
|
741
|
+
...islands,
|
|
742
|
+
...manual
|
|
743
|
+
};
|
|
744
|
+
return hydrateIslands$1({
|
|
745
|
+
components,
|
|
746
|
+
...rest
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
//#endregion
|
|
750
|
+
export { callAction, createHead as createServerHead, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { I18nMiddlewareOptions, I18nRoutingStrategy, compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
2
|
+
export * from "@ubean/i18n";
|
|
3
|
+
export { type I18nMiddlewareOptions, type I18nRoutingStrategy, compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath };
|
package/dist/i18n.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
2
|
+
export * from "@ubean/i18n";
|
|
3
|
+
export { compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
import { InternalFetchOptions, PageAssetTags, PageRenderer, defineDataKey } from "@ubean/pages";
|
|
2
|
-
import {
|
|
3
|
-
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
4
|
-
import { HttpMethod, PageHead } from "@ubean/scan";
|
|
5
|
-
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HeadClient, HydrateIslandsOptions, I18nRuntimeConfig, IslandHydrateOptions, IslandRecord, Link, LinkProps, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, VueHeadClient, VueI18nInstance, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
6
|
-
import { UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
7
|
-
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
8
|
-
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
9
|
-
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
+
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HydrateIslandsOptions, I18nRuntimeConfig, IslandHydrateOptions, IslandRecord, Link, LinkProps, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
10
3
|
import { IslandOptions, IslandStrategy, ServerIslandOptions, defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
11
|
-
import { VueRendererOptions, VueRendererRouterOptions, VueRendererSimpleOptions, createVueRenderer } from "@ubean/client/ssr";
|
|
12
|
-
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
13
|
-
import { I18nMiddlewareOptions, I18nRoutingStrategy, compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
14
|
-
import { BackupOptions, FsOps, FsOpsOptions, ScaffoldOptions, ScaffoldResult, ScaffoldType, createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
15
4
|
import { LogLevelName, RequestLoggerOptions, UbeanLogger, UbeanLoggerOptions, createUbeanLogger, getLogger, logger, setDebugLogging } from "@ubean/shared/logger";
|
|
16
|
-
import {
|
|
5
|
+
import { UbeanConfig } from "@ubean/config";
|
|
6
|
+
import { HttpMethod, PageHead } from "@ubean/scan";
|
|
17
7
|
export * from "@ubean/shared";
|
|
18
|
-
export * from "@ubean/shared/node";
|
|
19
8
|
export * from "@ubean/seo";
|
|
20
9
|
export * from "@ubean/pages";
|
|
21
10
|
export * from "@ubean/markdown";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export
|
|
26
|
-
export * from "@ubean/build/prerender";
|
|
27
|
-
export * from "@ubean/preset";
|
|
28
|
-
export * from "@ubean/config";
|
|
29
|
-
export * from "@ubean/build/codegen";
|
|
30
|
-
export * from "@ubean/scan";
|
|
31
|
-
export { type AppPluginConfig, type BackupOptions, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, type FsOps, type FsOpsOptions, Head, type HeadClient, type HttpMethod, type HydrateIslandsOptions, type I18nMiddlewareOptions, type I18nRoutingStrategy, type I18nRuntimeConfig, type InternalFetchOptions, type IslandHydrateOptions, type IslandOptions, type IslandRecord, type IslandStrategy, Link, type LinkProps, type LogLevelName, type PageAssetTags, type PageHead, type PageRenderer, PageView, type RequestLoggerOptions, type ResolvedAppConfig, type RouteLocation, type RouteLocationRaw, type ScaffoldOptions, type ScaffoldResult, type ScaffoldType, type ServerIslandOptions, type TypedLinkProps, type UbeanAppInstance, type UbeanCorePluginOptions, type UbeanLogger, type UbeanLoggerOptions, type UbeanViteOptions, type UbeanVueContext, type UseAsyncDataOptions, type UseAsyncDataReturn, type UseCacheViewsReturn, type UsePageTransitionReturn, type UseReloadSignalReturn, VUE_PLUGIN_INCLUDE, type ViewTransitionOptions, type VueHeadClient, type VueI18nInstance, type VueRendererOptions, type VueRendererRouterOptions, type VueRendererSimpleOptions, applyAppConfig, clearCache, clearPageTransition, collectIslands, compileLocalePaths, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createRequestLoggerMiddleware, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineIsland, defineMeta, definePage, defineServerIsland, deleteScaffold, describeRoute, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLogger, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getRequestLocale, getVueLocale, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localizeVuePath, logger, mergeAppConfig, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, scheduleIslandHydration, setDebugLogging, setPageTransition, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, vClient, validator, withViewTransition };
|
|
11
|
+
//#region src/index.d.ts
|
|
12
|
+
declare function defineConfig(config?: UbeanConfig): UbeanConfig;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { type AppPluginConfig, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, Head, type HttpMethod, type HydrateIslandsOptions, type I18nRuntimeConfig, type InternalFetchOptions, type IslandHydrateOptions, type IslandOptions, type IslandRecord, type IslandStrategy, Link, type LinkProps, type LogLevelName, type PageAssetTags, type PageHead, type PageRenderer, PageView, type RequestLoggerOptions, type ResolvedAppConfig, type RouteLocation, type RouteLocationRaw, type ServerIslandOptions, type TypedLinkProps, type UbeanAppInstance, type UbeanLogger, type UbeanLoggerOptions, type UbeanVueContext, type UseAsyncDataOptions, type UseAsyncDataReturn, type UseCacheViewsReturn, type UsePageTransitionReturn, type UseReloadSignalReturn, type ViewTransitionOptions, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineConfig, defineDataKey, defineIsland, defineMeta, definePage, defineServerIsland, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocale, getLogger, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath, logger, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setDebugLogging, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, vClient, withViewTransition };
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
import { defineDataKey } from "@ubean/pages";
|
|
2
|
-
import {
|
|
3
|
-
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
4
|
-
import { Head, Link, PageView, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
5
|
-
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
-
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
7
|
-
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
-
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
+
import { Head, Link, PageView, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
9
3
|
import { defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
10
|
-
import { createVueRenderer } from "@ubean/client/ssr";
|
|
11
|
-
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
12
|
-
import { compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
13
|
-
import { createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
14
4
|
import { createUbeanLogger, getLogger, logger, setDebugLogging } from "@ubean/shared/logger";
|
|
15
|
-
import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
16
5
|
export * from "@ubean/shared";
|
|
17
|
-
export * from "@ubean/shared/node";
|
|
18
6
|
export * from "@ubean/seo";
|
|
19
7
|
export * from "@ubean/pages";
|
|
20
8
|
export * from "@ubean/markdown";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export
|
|
27
|
-
export * from "@ubean/config";
|
|
28
|
-
export * from "@ubean/build/codegen";
|
|
29
|
-
export * from "@ubean/scan";
|
|
30
|
-
export { Head, Link, PageView, VUE_PLUGIN_INCLUDE, applyAppConfig, clearCache, clearPageTransition, collectIslands, compileLocalePaths, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createRequestLoggerMiddleware, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineIsland, defineMeta, definePage, defineServerIsland, deleteScaffold, describeRoute, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLogger, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getRequestLocale, getVueLocale, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localizeVuePath, logger, mergeAppConfig, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, scheduleIslandHydration, setDebugLogging, setPageTransition, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, vClient, validator, withViewTransition };
|
|
9
|
+
//#region src/index.ts
|
|
10
|
+
function defineConfig(config) {
|
|
11
|
+
return config ?? {};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Head, Link, PageView, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineConfig, defineDataKey, defineIsland, defineMeta, definePage, defineServerIsland, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocale, getLogger, getNavigationType, getPageTransitionName, getReloadCounter, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath, logger, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setDebugLogging, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, vClient, withViewTransition };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
2
|
+
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
3
|
+
import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
4
|
+
export * from "@ubean/app";
|
|
5
|
+
export * from "@ubean/server";
|
|
6
|
+
export * from "@ubean/routes";
|
|
7
|
+
export * from "@ubean/shared/node";
|
|
8
|
+
export { createRequestLoggerMiddleware, describeRoute, openAPIRouteHandler, resolver, sqlRawAlias, validator };
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
2
|
+
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
3
|
+
import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
4
|
+
export * from "@ubean/app";
|
|
5
|
+
export * from "@ubean/server";
|
|
6
|
+
export * from "@ubean/routes";
|
|
7
|
+
export * from "@ubean/shared/node";
|
|
8
|
+
export { createRequestLoggerMiddleware, describeRoute, openAPIRouteHandler, resolver, sqlRawAlias, validator };
|
package/dist/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
2
|
import { ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
3
3
|
import { ubeanVite } from "@ubean/build/vue";
|
|
4
|
+
import { loadUbeanConfigSync } from "@ubean/config";
|
|
4
5
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
-
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
6
6
|
//#region src/vite.ts
|
|
7
7
|
/**
|
|
8
8
|
* ubean 默认 Vite 插件组合(无参数版本)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ubean",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Vue-first full-stack meta-framework built on Vite-Plus with Hono (aggregator of all @ubean/* subpackages)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ubean": "./bin/ubean.mjs"
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
"import": "./dist/vite.js"
|
|
24
24
|
},
|
|
25
25
|
"./client": {
|
|
26
|
-
"types": "./dist/client
|
|
27
|
-
"import": "./dist/client
|
|
26
|
+
"types": "./dist/client.d.ts",
|
|
27
|
+
"import": "./dist/client.js"
|
|
28
28
|
},
|
|
29
|
-
"./
|
|
30
|
-
"types": "./dist/
|
|
31
|
-
"import": "./dist/
|
|
29
|
+
"./ssr": {
|
|
30
|
+
"types": "./dist/ssr.d.ts",
|
|
31
|
+
"import": "./dist/ssr.js"
|
|
32
32
|
},
|
|
33
|
-
"./
|
|
34
|
-
"types": "./dist/
|
|
35
|
-
"import": "./dist/
|
|
33
|
+
"./server": {
|
|
34
|
+
"types": "./dist/server.d.ts",
|
|
35
|
+
"import": "./dist/server.js"
|
|
36
36
|
},
|
|
37
|
-
"./
|
|
38
|
-
"types": "./dist/
|
|
39
|
-
"import": "./dist/
|
|
37
|
+
"./build": {
|
|
38
|
+
"types": "./dist/build.d.ts",
|
|
39
|
+
"import": "./dist/build.js"
|
|
40
40
|
},
|
|
41
|
-
"./
|
|
42
|
-
"types": "./dist/
|
|
43
|
-
"import": "./dist/
|
|
41
|
+
"./i18n": {
|
|
42
|
+
"types": "./dist/i18n.d.ts",
|
|
43
|
+
"import": "./dist/i18n.js"
|
|
44
44
|
},
|
|
45
45
|
"./scaffold": {
|
|
46
46
|
"types": "./dist/scaffold.d.ts",
|
|
@@ -49,29 +49,29 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@hono/standard-validator": "^0.4.0",
|
|
52
|
-
"@standard-community/standard-json": "^0.3.
|
|
53
|
-
"@standard-community/standard-openapi": "^0.2.
|
|
54
|
-
"@ubean/app": "0.
|
|
55
|
-
"@ubean/build": "0.
|
|
56
|
-
"@ubean/cli": "0.
|
|
57
|
-
"@ubean/client": "0.
|
|
58
|
-
"@ubean/config": "0.
|
|
59
|
-
"@ubean/i18n": "0.
|
|
60
|
-
"@ubean/integrations": "0.
|
|
61
|
-
"@ubean/islands": "0.
|
|
62
|
-
"@ubean/markdown": "0.
|
|
63
|
-
"@ubean/pages": "0.
|
|
64
|
-
"@ubean/preset": "0.
|
|
65
|
-
"@ubean/routes": "0.
|
|
66
|
-
"@ubean/scan": "0.
|
|
67
|
-
"@ubean/seo": "0.
|
|
68
|
-
"@ubean/server": "0.
|
|
69
|
-
"@ubean/shared": "0.
|
|
70
|
-
"hono": "4.13.
|
|
71
|
-
"hono-openapi": "^1.3.
|
|
52
|
+
"@standard-community/standard-json": "^0.3.6",
|
|
53
|
+
"@standard-community/standard-openapi": "^0.2.10",
|
|
54
|
+
"@ubean/app": "0.4.1",
|
|
55
|
+
"@ubean/build": "0.4.1",
|
|
56
|
+
"@ubean/cli": "0.4.1",
|
|
57
|
+
"@ubean/client": "0.4.1",
|
|
58
|
+
"@ubean/config": "0.4.1",
|
|
59
|
+
"@ubean/i18n": "0.4.1",
|
|
60
|
+
"@ubean/integrations": "0.4.1",
|
|
61
|
+
"@ubean/islands": "0.4.1",
|
|
62
|
+
"@ubean/markdown": "0.4.1",
|
|
63
|
+
"@ubean/pages": "0.4.1",
|
|
64
|
+
"@ubean/preset": "0.4.1",
|
|
65
|
+
"@ubean/routes": "0.4.1",
|
|
66
|
+
"@ubean/scan": "0.4.1",
|
|
67
|
+
"@ubean/seo": "0.4.1",
|
|
68
|
+
"@ubean/server": "0.4.1",
|
|
69
|
+
"@ubean/shared": "0.4.1",
|
|
70
|
+
"hono": "4.13.7",
|
|
71
|
+
"hono-openapi": "^1.3.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@types/node": "^26.4.
|
|
74
|
+
"@types/node": "^26.4.1",
|
|
75
75
|
"typescript": "7.0.2",
|
|
76
76
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
77
77
|
"vite-plus": "0.3.0",
|
package/dist/runtime/app.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@ubean/app";
|
package/dist/runtime/app.js
DELETED
package/dist/runtime/i18n.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@ubean/i18n";
|
package/dist/runtime/i18n.js
DELETED
package/dist/runtime/vue.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component } from "vue";
|
|
2
|
-
import { HydrateIslandsOptions } from "@ubean/islands/runtime";
|
|
3
|
-
import { UseActionReturn, UseFormActionReturn, callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
4
|
-
export * from "@ubean/client";
|
|
5
|
-
//#region src/runtime/vue.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
8
|
-
*
|
|
9
|
-
* 合并优先级:手动注册 > 自动注册(允许用户对特定组件做特殊处理)。
|
|
10
|
-
*/
|
|
11
|
-
declare function hydrateIslands(options?: Omit<HydrateIslandsOptions, 'components'> & {
|
|
12
|
-
components?: Record<string, Component | (() => Promise<Component>)>;
|
|
13
|
-
}): void;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { type UseActionReturn, type UseFormActionReturn, callAction, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
package/dist/runtime/vue.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { hydrateIslands as hydrateIslands$1 } from "@ubean/islands/runtime";
|
|
2
|
-
import { islands } from "virtual:ubean-islands-registry";
|
|
3
|
-
import { callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
4
|
-
export * from "@ubean/client";
|
|
5
|
-
//#region src/runtime/vue.ts
|
|
6
|
-
/**
|
|
7
|
-
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
8
|
-
*
|
|
9
|
-
* 合并优先级:手动注册 > 自动注册(允许用户对特定组件做特殊处理)。
|
|
10
|
-
*/
|
|
11
|
-
function hydrateIslands(options = {}) {
|
|
12
|
-
const { components: manual = {}, ...rest } = options;
|
|
13
|
-
const components = {
|
|
14
|
-
...islands,
|
|
15
|
-
...manual
|
|
16
|
-
};
|
|
17
|
-
return hydrateIslands$1({
|
|
18
|
-
components,
|
|
19
|
-
...rest
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { callAction, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
|
File without changes
|
|
File without changes
|