ubean 0.3.6 → 0.4.0
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} +14 -2
- package/dist/{client/index.js → client.js} +22 -1
- 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 +31 -31
- 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;
|
|
@@ -2510,4 +2512,14 @@ type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
|
2510
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+_209451f5b140e73e197773a3a682fa3d/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,3 +1,6 @@
|
|
|
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
6
|
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.0_@types+node@26.4.0_jiti@2.7.0_terser@5._34a75f44c7dd54abe014509083c2ea1a/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs
|
|
@@ -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.0",
|
|
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",
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"@hono/standard-validator": "^0.4.0",
|
|
52
52
|
"@standard-community/standard-json": "^0.3.5",
|
|
53
53
|
"@standard-community/standard-openapi": "^0.2.9",
|
|
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.
|
|
54
|
+
"@ubean/app": "0.4.0",
|
|
55
|
+
"@ubean/build": "0.4.0",
|
|
56
|
+
"@ubean/cli": "0.4.0",
|
|
57
|
+
"@ubean/client": "0.4.0",
|
|
58
|
+
"@ubean/config": "0.4.0",
|
|
59
|
+
"@ubean/i18n": "0.4.0",
|
|
60
|
+
"@ubean/integrations": "0.4.0",
|
|
61
|
+
"@ubean/islands": "0.4.0",
|
|
62
|
+
"@ubean/markdown": "0.4.0",
|
|
63
|
+
"@ubean/pages": "0.4.0",
|
|
64
|
+
"@ubean/preset": "0.4.0",
|
|
65
|
+
"@ubean/routes": "0.4.0",
|
|
66
|
+
"@ubean/scan": "0.4.0",
|
|
67
|
+
"@ubean/seo": "0.4.0",
|
|
68
|
+
"@ubean/server": "0.4.0",
|
|
69
|
+
"@ubean/shared": "0.4.0",
|
|
70
70
|
"hono": "4.13.5",
|
|
71
71
|
"hono-openapi": "^1.3.1"
|
|
72
72
|
},
|
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
|