ubean 0.1.13 → 0.2.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/client/index.d.ts +2480 -0
- package/dist/client/index.js +729 -0
- package/dist/index.d.ts +14 -15
- package/dist/index.js +13 -16
- package/dist/runtime/vue.d.ts +4 -3
- package/dist/runtime/vue.js +9 -7
- package/dist/vite.d.ts +7 -4
- package/dist/vite.js +10 -5
- package/package.json +36 -34
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { InternalFetchOptions, PageAssetTags, PageRenderer, defineDataKey } from "@ubean/pages";
|
|
2
|
+
import { useRouter } from "@ubean/routes";
|
|
2
3
|
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
3
|
-
import {
|
|
4
|
-
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HeadClient, HydrateIslandsOptions, IslandHydrateOptions, IslandRecord, Link, LinkProps, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, VueHeadClient, VueI18nInstance, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/
|
|
4
|
+
import { PageHead } from "@ubean/scan";
|
|
5
|
+
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HeadClient, HydrateIslandsOptions, IslandHydrateOptions, IslandRecord, Link, LinkProps, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, VueHeadClient, VueI18nInstance, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
5
6
|
import { UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
-
import {
|
|
7
|
+
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/vite";
|
|
7
8
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
-
import {
|
|
9
|
+
import { ubeanServerActionsPlugin } from "@ubean/actions/vite";
|
|
10
|
+
import { IslandOptions, IslandStrategy, ServerIslandOptions, defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
9
11
|
import { VueRendererOptions, VueRendererRouterOptions, VueRendererSimpleOptions, createVueRenderer } from "@ubean/ssr";
|
|
10
12
|
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
11
13
|
import { I18nRoutingOptions, I18nRoutingStrategy, createI18nMiddleware, getLocalePath, getPathWithoutLocale, localeRoutes, switchLocalePath } from "@ubean/i18n/routing";
|
|
12
14
|
import { BackupOptions, FsOps, FsOpsOptions, ScaffoldOptions, ScaffoldResult, ScaffoldType, createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
13
15
|
import { DevToolsTabDefinition, clearCustomTabs, defineDevToolsTab, getCustomTabs } from "@ubean/devtools";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export * from "@ubean/
|
|
17
|
-
export * from "@ubean/
|
|
16
|
+
import { LogLevelName, RequestLoggerOptions, UbeanLogger, UbeanLoggerOptions, createUbeanLogger, getLogger, logger } from "@ubean/logger";
|
|
17
|
+
import { createRequestLoggerMiddleware } from "@ubean/logger/hono";
|
|
18
|
+
export * from "@ubean/shared";
|
|
19
|
+
export * from "@ubean/shared/node";
|
|
18
20
|
export * from "@ubean/seo";
|
|
19
21
|
export * from "@ubean/pages";
|
|
20
22
|
export * from "@ubean/markdown";
|
|
21
23
|
export * from "@ubean/i18n";
|
|
22
|
-
export * from "@ubean/
|
|
24
|
+
export * from "@ubean/routes";
|
|
25
|
+
export * from "@ubean/actions";
|
|
23
26
|
export * from "@ubean/server";
|
|
24
27
|
export * from "@ubean/app";
|
|
25
|
-
export * from "@ubean/auto-imports";
|
|
26
28
|
export * from "@ubean/prerender";
|
|
27
29
|
export * from "@ubean/preset";
|
|
28
30
|
export * from "@ubean/config";
|
|
29
31
|
export * from "@ubean/codegen";
|
|
30
32
|
export * from "@ubean/modules";
|
|
31
|
-
export * from "@ubean/
|
|
32
|
-
|
|
33
|
-
declare const logger: import("consola").ConsolaInstance;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { type AppPluginConfig, type BackupOptions, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, type DevToolsTabDefinition, type FsOps, type FsOpsOptions, Head, type HeadClient, type HydrateIslandsOptions, type I18nRoutingOptions, type I18nRoutingStrategy, type InternalFetchOptions, type IslandHydrateOptions, type IslandRecord, Link, type LinkProps, type PageAssetTags, type PageRenderer, PageView, type ResolvedAppConfig, type RouteLocation, type RouteLocationRaw, type ScaffoldOptions, type ScaffoldResult, type ScaffoldType, type TypedLinkProps, type UbeanAppInstance, type UbeanCorePluginOptions, type UbeanVueContext, type UbeanVuePluginOptions, 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, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineMeta, definePage, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocalePath, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeAppConfig, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanVuePlugin, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, validator, withViewTransition };
|
|
33
|
+
export * from "@ubean/scan";
|
|
34
|
+
export { type AppPluginConfig, type BackupOptions, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, type DevToolsTabDefinition, type FsOps, type FsOpsOptions, Head, type HeadClient, type HydrateIslandsOptions, type I18nRoutingOptions, type I18nRoutingStrategy, 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, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createRequestLoggerMiddleware, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineIsland, defineMeta, definePage, defineServerIsland, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocalePath, getLogger, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeAppConfig, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, vClient, validator, withViewTransition };
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import { defineDataKey } from "@ubean/pages";
|
|
2
|
+
import { useRouter } from "@ubean/routes";
|
|
2
3
|
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
3
|
-
import {
|
|
4
|
-
import { Head, Link, PageView, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/runtime";
|
|
4
|
+
import { Head, Link, PageView, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getInitialState, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeAppConfig, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/client";
|
|
5
5
|
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
-
import { VUE_PLUGIN_INCLUDE,
|
|
6
|
+
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/vite";
|
|
7
7
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
-
import {
|
|
8
|
+
import { ubeanServerActionsPlugin } from "@ubean/actions/vite";
|
|
9
|
+
import { defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
9
10
|
import { createVueRenderer } from "@ubean/ssr";
|
|
10
11
|
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
11
12
|
import { createI18nMiddleware, getLocalePath, getPathWithoutLocale, localeRoutes, switchLocalePath } from "@ubean/i18n/routing";
|
|
12
13
|
import { createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
13
14
|
import { clearCustomTabs, defineDevToolsTab, getCustomTabs } from "@ubean/devtools";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
export * from "@ubean/
|
|
17
|
-
export * from "@ubean/
|
|
18
|
-
export * from "@ubean/env";
|
|
15
|
+
import { createUbeanLogger, getLogger, logger } from "@ubean/logger";
|
|
16
|
+
import { createRequestLoggerMiddleware } from "@ubean/logger/hono";
|
|
17
|
+
export * from "@ubean/shared";
|
|
18
|
+
export * from "@ubean/shared/node";
|
|
19
19
|
export * from "@ubean/seo";
|
|
20
20
|
export * from "@ubean/pages";
|
|
21
21
|
export * from "@ubean/markdown";
|
|
22
22
|
export * from "@ubean/i18n";
|
|
23
|
-
export * from "@ubean/
|
|
23
|
+
export * from "@ubean/routes";
|
|
24
|
+
export * from "@ubean/actions";
|
|
24
25
|
export * from "@ubean/server";
|
|
25
26
|
export * from "@ubean/app";
|
|
26
|
-
export * from "@ubean/auto-imports";
|
|
27
27
|
export * from "@ubean/prerender";
|
|
28
28
|
export * from "@ubean/preset";
|
|
29
29
|
export * from "@ubean/config";
|
|
30
30
|
export * from "@ubean/codegen";
|
|
31
31
|
export * from "@ubean/modules";
|
|
32
|
-
export * from "@ubean/
|
|
33
|
-
|
|
34
|
-
const logger = consola.withTag("ubean");
|
|
35
|
-
//#endregion
|
|
36
|
-
export { Head, Link, PageView, VUE_PLUGIN_INCLUDE, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineMeta, definePage, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocalePath, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeAppConfig, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanVuePlugin, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, validator, withViewTransition };
|
|
32
|
+
export * from "@ubean/scan";
|
|
33
|
+
export { Head, Link, PageView, VUE_PLUGIN_INCLUDE, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createRequestLoggerMiddleware, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineIsland, defineMeta, definePage, defineServerIsland, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocalePath, getLogger, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeAppConfig, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, vClient, validator, withViewTransition };
|
package/dist/runtime/vue.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { HydrateIslandsOptions } from "@ubean/runtime";
|
|
2
1
|
import { Component } from "vue";
|
|
3
|
-
|
|
2
|
+
import { HydrateIslandsOptions } from "@ubean/islands/runtime";
|
|
3
|
+
import { UseActionReturn, UseFormActionReturn, callAction, useAction, useFormAction } from "@ubean/actions/runtime";
|
|
4
|
+
export * from "@ubean/client";
|
|
4
5
|
//#region src/runtime/vue.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
@@ -11,4 +12,4 @@ declare function hydrateIslands(options?: Omit<HydrateIslandsOptions, 'component
|
|
|
11
12
|
components?: Record<string, Component | (() => Promise<Component>)>;
|
|
12
13
|
}): void;
|
|
13
14
|
//#endregion
|
|
14
|
-
export { hydrateIslands };
|
|
15
|
+
export { type UseActionReturn, type UseFormActionReturn, callAction, hydrateIslands, useAction, useFormAction };
|
package/dist/runtime/vue.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { hydrateIslands as hydrateIslands$1 } from "@ubean/runtime";
|
|
1
|
+
import { hydrateIslands as hydrateIslands$1 } from "@ubean/islands/runtime";
|
|
2
2
|
import { islands } from "virtual:ubean-islands-registry";
|
|
3
|
-
|
|
3
|
+
import { callAction, useAction, useFormAction } from "@ubean/actions/runtime";
|
|
4
|
+
export * from "@ubean/client";
|
|
4
5
|
//#region src/runtime/vue.ts
|
|
5
6
|
/**
|
|
6
7
|
* `hydrateIslands` 的桥接版本:自动合并虚拟注册表与手动 `components`。
|
|
@@ -9,13 +10,14 @@ export * from "@ubean/runtime";
|
|
|
9
10
|
*/
|
|
10
11
|
function hydrateIslands(options = {}) {
|
|
11
12
|
const { components: manual = {}, ...rest } = options;
|
|
13
|
+
const components = {
|
|
14
|
+
...islands,
|
|
15
|
+
...manual
|
|
16
|
+
};
|
|
12
17
|
return hydrateIslands$1({
|
|
13
|
-
components
|
|
14
|
-
...islands,
|
|
15
|
-
...manual
|
|
16
|
-
},
|
|
18
|
+
components,
|
|
17
19
|
...rest
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
//#endregion
|
|
21
|
-
export { hydrateIslands };
|
|
23
|
+
export { callAction, hydrateIslands, useAction, useFormAction };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UbeanPluginOptions } from "@ubean/build/vite";
|
|
2
|
-
import {
|
|
2
|
+
import { UbeanViteOptions } from "@ubean/vite";
|
|
3
3
|
import { Plugin } from "vite";
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
5
|
/**
|
|
@@ -7,11 +7,14 @@ import { Plugin } from "vite";
|
|
|
7
7
|
*
|
|
8
8
|
* 返回一个扁平的 `Plugin[]`,包含:
|
|
9
9
|
* 1. `ubeanCorePlugin` — 框架无关的核心插件(路由扫描、虚拟模块、宏转换)
|
|
10
|
-
* 2. `
|
|
11
|
-
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `client
|
|
10
|
+
* 2. `ubeanVite` — Vue 专属插件(页面/入口虚拟模块、自动导入、组件解析)
|
|
11
|
+
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `v-client.*` 指令转换)
|
|
12
|
+
* 4. `ubeanServerActionsPlugin` — Server Actions 插件(`defineAction()` 调用转换)
|
|
12
13
|
*
|
|
13
14
|
* 配置来源:始终从 `ubean.config.ts` 加载(同步),不接受 `config` 参数。
|
|
15
|
+
*
|
|
16
|
+
* 注:组件级缓存通过 `defineCachedFunction()` 显式调用,无需 Vite 插件参与。
|
|
14
17
|
*/
|
|
15
18
|
declare function ubeanPlugin(): Plugin[];
|
|
16
19
|
//#endregion
|
|
17
|
-
export { type UbeanPluginOptions, type
|
|
20
|
+
export { type UbeanPluginOptions, type UbeanViteOptions, ubeanPlugin };
|
package/dist/vite.js
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import { loadUbeanConfigSync } from "@ubean/config";
|
|
2
2
|
import { ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
3
|
-
import {
|
|
3
|
+
import { ubeanVite } from "@ubean/vite";
|
|
4
4
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
+
import { ubeanServerActionsPlugin } from "@ubean/actions/vite";
|
|
5
6
|
//#region src/vite.ts
|
|
6
7
|
/**
|
|
7
8
|
* ubean 默认 Vite 插件组合(无参数版本)。
|
|
8
9
|
*
|
|
9
10
|
* 返回一个扁平的 `Plugin[]`,包含:
|
|
10
11
|
* 1. `ubeanCorePlugin` — 框架无关的核心插件(路由扫描、虚拟模块、宏转换)
|
|
11
|
-
* 2. `
|
|
12
|
-
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `client
|
|
12
|
+
* 2. `ubeanVite` — Vue 专属插件(页面/入口虚拟模块、自动导入、组件解析)
|
|
13
|
+
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `v-client.*` 指令转换)
|
|
14
|
+
* 4. `ubeanServerActionsPlugin` — Server Actions 插件(`defineAction()` 调用转换)
|
|
13
15
|
*
|
|
14
16
|
* 配置来源:始终从 `ubean.config.ts` 加载(同步),不接受 `config` 参数。
|
|
17
|
+
*
|
|
18
|
+
* 注:组件级缓存通过 `defineCachedFunction()` 显式调用,无需 Vite 插件参与。
|
|
15
19
|
*/
|
|
16
20
|
function ubeanPlugin() {
|
|
17
21
|
const config = loadUbeanConfigSync();
|
|
18
22
|
return [
|
|
19
23
|
ubeanPlugin$1({ config }),
|
|
20
|
-
...
|
|
21
|
-
ubeanIslandsPlugin()
|
|
24
|
+
...ubeanVite({ config }),
|
|
25
|
+
ubeanIslandsPlugin(),
|
|
26
|
+
ubeanServerActionsPlugin({ root: config.rootDir || process.cwd() })
|
|
22
27
|
];
|
|
23
28
|
}
|
|
24
29
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ubean",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.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"
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"types": "./dist/vite.d.ts",
|
|
23
23
|
"import": "./dist/vite.js"
|
|
24
24
|
},
|
|
25
|
+
"./client": {
|
|
26
|
+
"types": "./dist/client/index.d.ts",
|
|
27
|
+
"import": "./dist/client/index.js"
|
|
28
|
+
},
|
|
25
29
|
"./vue-ssr": {
|
|
26
30
|
"types": "./dist/vue-ssr.d.ts",
|
|
27
31
|
"import": "./dist/vue-ssr.js"
|
|
@@ -40,45 +44,43 @@
|
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
"dependencies": {
|
|
43
|
-
"@hono/standard-validator": "^0.
|
|
47
|
+
"@hono/standard-validator": "^0.4.0",
|
|
44
48
|
"@standard-community/standard-json": "^0.3.5",
|
|
45
49
|
"@standard-community/standard-openapi": "^0.2.9",
|
|
46
|
-
"
|
|
47
|
-
"hono": "4.12.32",
|
|
50
|
+
"hono": "4.13.3",
|
|
48
51
|
"hono-openapi": "^1.3.1",
|
|
49
|
-
"@ubean/
|
|
50
|
-
"@ubean/
|
|
51
|
-
"@ubean/
|
|
52
|
-
"@ubean/
|
|
53
|
-
"@ubean/
|
|
54
|
-
"@ubean/
|
|
55
|
-
"@ubean/
|
|
56
|
-
"@ubean/
|
|
57
|
-
"@ubean/
|
|
58
|
-
"@ubean/
|
|
59
|
-
"@ubean/
|
|
60
|
-
"@ubean/
|
|
61
|
-
"@ubean/
|
|
62
|
-
"@ubean/
|
|
63
|
-
"@ubean/
|
|
64
|
-
"@ubean/pages": "0.1
|
|
65
|
-
"@ubean/prerender": "0.1
|
|
66
|
-
"@ubean/
|
|
67
|
-
"@ubean/
|
|
68
|
-
"@ubean/
|
|
69
|
-
"@ubean/
|
|
70
|
-
"@ubean/
|
|
71
|
-
"@ubean/server": "0.1
|
|
72
|
-
"@ubean/
|
|
73
|
-
"@ubean/vite": "0.1
|
|
74
|
-
"@ubean/utils": "0.1.13"
|
|
52
|
+
"@ubean/actions": "0.2.1",
|
|
53
|
+
"@ubean/app": "0.2.1",
|
|
54
|
+
"@ubean/build": "0.2.1",
|
|
55
|
+
"@ubean/cli": "0.2.1",
|
|
56
|
+
"@ubean/client": "0.2.1",
|
|
57
|
+
"@ubean/dev-server": "0.2.1",
|
|
58
|
+
"@ubean/devtools": "0.2.1",
|
|
59
|
+
"@ubean/integrations": "0.2.1",
|
|
60
|
+
"@ubean/i18n": "0.2.1",
|
|
61
|
+
"@ubean/config": "0.2.1",
|
|
62
|
+
"@ubean/islands": "0.2.1",
|
|
63
|
+
"@ubean/logger": "0.2.1",
|
|
64
|
+
"@ubean/modules": "0.2.1",
|
|
65
|
+
"@ubean/codegen": "0.2.1",
|
|
66
|
+
"@ubean/markdown": "0.2.1",
|
|
67
|
+
"@ubean/pages": "0.2.1",
|
|
68
|
+
"@ubean/prerender": "0.2.1",
|
|
69
|
+
"@ubean/preset": "0.2.1",
|
|
70
|
+
"@ubean/scan": "0.2.1",
|
|
71
|
+
"@ubean/shared": "0.2.1",
|
|
72
|
+
"@ubean/routes": "0.2.1",
|
|
73
|
+
"@ubean/ssr": "0.2.1",
|
|
74
|
+
"@ubean/server": "0.2.1",
|
|
75
|
+
"@ubean/seo": "0.2.1",
|
|
76
|
+
"@ubean/vite": "0.2.1"
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
|
-
"@types/node": "^26.
|
|
79
|
+
"@types/node": "^26.2.0",
|
|
78
80
|
"typescript": "7.0.2",
|
|
79
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.
|
|
80
|
-
"vite-plus": "0.2.
|
|
81
|
-
"vue": "^3.5.
|
|
81
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
|
|
82
|
+
"vite-plus": "0.2.9",
|
|
83
|
+
"vue": "^3.5.41"
|
|
82
84
|
},
|
|
83
85
|
"peerDependencies": {
|
|
84
86
|
"vue": "^3.0.0"
|