ubean 0.5.1 → 0.6.0-beta.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 +2 -2
- package/dist/build.js +2 -2
- package/dist/client.d.ts +5 -5
- package/dist/client.js +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/server.d.ts +0 -1
- package/dist/server.js +0 -1
- package/dist/vite.js +16 -4
- package/package.json +17 -17
package/dist/build.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
-
import { UbeanPluginOptions, UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
2
|
+
import { PreviewMiddleware, UbeanPluginOptions, UbeanPluginOptions as UbeanCorePluginOptions, UbeanPreviewMiddlewareOptions, UbeanPreviewPluginOptions, createPreviewMiddleware, previewMimeType, resolvePreviewFile, ubeanPlugin, ubeanPlugin as ubeanCorePlugin, ubeanPreviewPlugin } from "@ubean/build/vite";
|
|
3
3
|
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
4
4
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
5
|
export * from "@ubean/config";
|
|
@@ -7,4 +7,4 @@ export * from "@ubean/build/prerender";
|
|
|
7
7
|
export * from "@ubean/preset";
|
|
8
8
|
export * from "@ubean/build/codegen";
|
|
9
9
|
export * from "@ubean/scan";
|
|
10
|
-
export { type UbeanCorePluginOptions, type UbeanPluginOptions, type UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite };
|
|
10
|
+
export { type PreviewMiddleware, type UbeanCorePluginOptions, type UbeanPluginOptions, type UbeanPreviewMiddlewareOptions, type UbeanPreviewPluginOptions, type UbeanViteOptions, VUE_PLUGIN_INCLUDE, createPreviewMiddleware, previewMimeType, resolvePreviewFile, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanPreviewPlugin, ubeanServerActionsPlugin, ubeanVite };
|
package/dist/build.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
-
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
2
|
+
import { createPreviewMiddleware, previewMimeType, resolvePreviewFile, ubeanPlugin, ubeanPlugin as ubeanCorePlugin, ubeanPreviewPlugin } from "@ubean/build/vite";
|
|
3
3
|
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
4
4
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
5
|
export * from "@ubean/config";
|
|
@@ -7,4 +7,4 @@ export * from "@ubean/build/prerender";
|
|
|
7
7
|
export * from "@ubean/preset";
|
|
8
8
|
export * from "@ubean/build/codegen";
|
|
9
9
|
export * from "@ubean/scan";
|
|
10
|
-
export { VUE_PLUGIN_INCLUDE, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanServerActionsPlugin, ubeanVite };
|
|
10
|
+
export { VUE_PLUGIN_INCLUDE, createPreviewMiddleware, previewMimeType, resolvePreviewFile, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanPreviewPlugin, ubeanServerActionsPlugin, ubeanVite };
|
package/dist/client.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare global {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
27
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.DC0v7nqS.d.ts
|
|
28
28
|
type Booleanable = boolean | 'false' | 'true' | '';
|
|
29
29
|
type Stringable = string | Booleanable | number;
|
|
30
30
|
type Falsy$1 = false | null | undefined;
|
|
@@ -1831,7 +1831,7 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
1831
1831
|
_source?: string;
|
|
1832
1832
|
}
|
|
1833
1833
|
//#endregion
|
|
1834
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
1834
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.CN9FlNPx.d.ts
|
|
1835
1835
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
1836
1836
|
type BaseScriptApi = Record<symbol | string, any>;
|
|
1837
1837
|
type HasDiscriminatedParameters<T> = T extends {
|
|
@@ -2380,13 +2380,13 @@ interface DomState {
|
|
|
2380
2380
|
_e: Map<string, Element>;
|
|
2381
2381
|
}
|
|
2382
2382
|
//#endregion
|
|
2383
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
2383
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.DiHEHi7R.d.ts
|
|
2384
2384
|
type Base = RawInput<'base'>;
|
|
2385
2385
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
2386
2386
|
type Noscript = RawInput<'noscript'>;
|
|
2387
2387
|
type Style = RawInput<'style'>;
|
|
2388
2388
|
//#endregion
|
|
2389
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+
|
|
2389
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+_8249fe78cbecb8e9cde6fb5e4a4e84ad/node_modules/@unhead/vue/dist/shared/vue.B8YcFbNO.d.ts
|
|
2390
2390
|
type Falsy = false | null | undefined;
|
|
2391
2391
|
type MaybeFalsy<T> = T | Falsy;
|
|
2392
2392
|
type ResolvableValue<T> = MaybeFalsy<T> | (() => MaybeFalsy<T>) | ComputedRef<MaybeFalsy<T>> | Ref<MaybeFalsy<T>>;
|
|
@@ -2509,7 +2509,7 @@ interface ReactiveHead {
|
|
|
2509
2509
|
type UseHeadInput<_Deprecated = never> = ResolvableValue<ReactiveHead>;
|
|
2510
2510
|
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
2511
2511
|
//#endregion
|
|
2512
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+
|
|
2512
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+_8249fe78cbecb8e9cde6fb5e4a4e84ad/node_modules/@unhead/vue/dist/server.d.ts
|
|
2513
2513
|
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propResolvers'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
|
2514
2514
|
//#endregion
|
|
2515
2515
|
//#region src/client.d.ts
|
package/dist/client.js
CHANGED
|
@@ -3,7 +3,7 @@ import { islands } from "virtual:ubean-islands-registry";
|
|
|
3
3
|
import { callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
4
4
|
import { isRef, toValue } from "vue";
|
|
5
5
|
export * from "@ubean/client";
|
|
6
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
6
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs
|
|
7
7
|
function registerPlugin(head, p) {
|
|
8
8
|
if (typeof p === "function" && p.key && head.plugins.has(p.key)) return;
|
|
9
9
|
const plugin = typeof p === "function" ? p(head) : p;
|
|
@@ -58,7 +58,7 @@ function createUnhead(renderer, resolvedOptions = {}) {
|
|
|
58
58
|
return head;
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
61
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs
|
|
62
62
|
const SelfClosingTags = /* @__PURE__ */ new Set([
|
|
63
63
|
"meta",
|
|
64
64
|
"link",
|
|
@@ -183,7 +183,7 @@ var HookableCore = class {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
//#endregion
|
|
186
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
186
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs
|
|
187
187
|
function createHooks(hooks) {
|
|
188
188
|
const instance = new HookableCore();
|
|
189
189
|
for (const key in hooks || {}) instance.hook(key, hooks[key]);
|
|
@@ -194,7 +194,7 @@ function callHook(head, hook, ctx) {
|
|
|
194
194
|
return head.hooks?.callHook(hook, ctx);
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
197
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.-hZVKou0.mjs
|
|
198
198
|
const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
|
|
199
199
|
const META_KEY_ATTRS = [
|
|
200
200
|
"name",
|
|
@@ -539,7 +539,7 @@ function resolveTags(head, options) {
|
|
|
539
539
|
return sanitizeTagsInPlace(ctx.tags);
|
|
540
540
|
}
|
|
541
541
|
//#endregion
|
|
542
|
-
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5.
|
|
542
|
+
//#region ../../node_modules/.pnpm/unhead@3.4.0_@voidzero-dev+vite-plus-core@0.3.1_@types+node@26.5.1_jiti@2.7.0_terser@5._1949fe14d6be5101019427ce3d141b78/node_modules/unhead/dist/shared/unhead.Dssd7L5I.mjs
|
|
543
543
|
const isTruthy = (v) => v === "" || v === true;
|
|
544
544
|
function capoTagWeight(tag) {
|
|
545
545
|
if (typeof tag.tagPriority === "number") return tag.tagPriority;
|
|
@@ -704,7 +704,7 @@ function createHead$1(options = {}) {
|
|
|
704
704
|
return core;
|
|
705
705
|
}
|
|
706
706
|
//#endregion
|
|
707
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+
|
|
707
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+_8249fe78cbecb8e9cde6fb5e4a4e84ad/node_modules/@unhead/vue/dist/shared/vue.DKb5ZKVl.mjs
|
|
708
708
|
const headSymbol = "usehead";
|
|
709
709
|
// @__NO_SIDE_EFFECTS__
|
|
710
710
|
function vueInstall(head) {
|
|
@@ -715,10 +715,10 @@ function vueInstall(head) {
|
|
|
715
715
|
} }.install;
|
|
716
716
|
}
|
|
717
717
|
//#endregion
|
|
718
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+
|
|
718
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+_8249fe78cbecb8e9cde6fb5e4a4e84ad/node_modules/@unhead/vue/dist/shared/vue.D2XR8FqS.mjs
|
|
719
719
|
const VueResolver = /* @__PURE__ */ Object.assign((_, value) => isRef(value) ? toValue(value) : value, { _static: true });
|
|
720
720
|
//#endregion
|
|
721
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+
|
|
721
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.148.0_@voidzero-dev+vite-plus-core@0.3.1_@types+_8249fe78cbecb8e9cde6fb5e4a4e84ad/node_modules/@unhead/vue/dist/server.mjs
|
|
722
722
|
// @__NO_SIDE_EFFECTS__
|
|
723
723
|
function createHead(options = {}) {
|
|
724
724
|
const head = /* @__PURE__ */ createHead$1({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InternalFetchOptions, PageAssetTags, PageRenderer, defineDataKey } from "@ubean/pages";
|
|
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";
|
|
2
|
+
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HydrateIslandsOptions, I18nRuntimeConfig, IslandHydrateOptions, IslandRecord, Link, LinkProps, MatcherFunction, MatcherGuardOptions, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createMatcherGuard, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMatcher, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale, getMatcher, getNavigationType, getPageTransitionName, getReloadCounter, hasMatcher, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listMatcherNames, localizePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useSchemaOrg, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, validateParams, withViewTransition } from "@ubean/client";
|
|
3
3
|
import { IslandOptions, IslandStrategy, ServerIslandOptions, defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
4
|
-
import { LogLevelName, RequestLoggerOptions, UbeanLogger, UbeanLoggerOptions, createUbeanLogger, getLogger, logger, setDebugLogging } from "@ubean/shared/logger";
|
|
4
|
+
import { LogLevelName, RequestLoggerOptions, UbeanLogger, UbeanLoggerOptions, createUbeanLogger, getLogger, logger, setDebugLogging, setMinLevel } from "@ubean/shared/logger";
|
|
5
5
|
import { UbeanConfig } from "@ubean/config";
|
|
6
6
|
import { HttpMethod, PageHead } from "@ubean/scan";
|
|
7
7
|
export * from "@ubean/shared";
|
|
@@ -11,4 +11,4 @@ export * from "@ubean/markdown";
|
|
|
11
11
|
//#region src/index.d.ts
|
|
12
12
|
export declare function defineConfig(config?: UbeanConfig): UbeanConfig;
|
|
13
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, 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 };
|
|
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 MatcherFunction, type MatcherGuardOptions, 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, createMatcherGuard, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineDataKey, defineIsland, defineMatcher, defineMeta, definePage, defineServerIsland, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocale, getLogger, getMatcher, getNavigationType, getPageTransitionName, getReloadCounter, hasMatcher, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listMatcherNames, localizePath, logger, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setDebugLogging, setLocale, setMinLevel, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useSchemaOrg, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, vClient, validateParams, withViewTransition };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineDataKey } from "@ubean/pages";
|
|
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";
|
|
2
|
+
import { Head, Link, PageView, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createMatcherGuard, createUbeanI18n, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineMatcher, defineMeta, definePage, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getLocale, getMatcher, getNavigationType, getPageTransitionName, getReloadCounter, hasMatcher, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listMatcherNames, localizePath, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setLocale, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useSchemaOrg, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, validateParams, withViewTransition } from "@ubean/client";
|
|
3
3
|
import { defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
4
|
-
import { createUbeanLogger, getLogger, logger, setDebugLogging } from "@ubean/shared/logger";
|
|
4
|
+
import { createUbeanLogger, getLogger, logger, setDebugLogging, setMinLevel } from "@ubean/shared/logger";
|
|
5
5
|
export * from "@ubean/shared";
|
|
6
6
|
export * from "@ubean/seo";
|
|
7
7
|
export * from "@ubean/pages";
|
|
@@ -11,4 +11,4 @@ function defineConfig(config) {
|
|
|
11
11
|
return config ?? {};
|
|
12
12
|
}
|
|
13
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 };
|
|
14
|
+
export { Head, Link, PageView, applyAppConfig, clearCache, clearPageTransition, collectIslands, configureI18nRuntime, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createMatcherGuard, createUbeanI18n, createUbeanLogger, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineConfig, defineDataKey, defineIsland, defineMatcher, defineMeta, definePage, defineServerIsland, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getExcludedViewNames, getI18nRuntimeConfig, getInitialPageData, getInitialState, getIslandsBootstrapScript, getLocale, getLogger, getMatcher, getNavigationType, getPageTransitionName, getReloadCounter, hasMatcher, hasPendingIslands, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listMatcherNames, localizePath, logger, mergeAppConfig, reloadPage, resetRouteCache, resolveRoute, scheduleIslandHydration, setDebugLogging, setLocale, setMinLevel, setPageTransition, supportsViewTransitions, switchLocalePath, useCacheViews, useHead, useHeadInstance, useLocaleHead, useLocalePath, useLocaleRoute, usePage, usePageTransition, useReloadSignal, useSchemaOrg, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, vClient, validateParams, withViewTransition };
|
package/dist/server.d.ts
CHANGED
|
@@ -4,5 +4,4 @@ import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
|
4
4
|
export * from "@ubean/app";
|
|
5
5
|
export * from "@ubean/server";
|
|
6
6
|
export * from "@ubean/routes";
|
|
7
|
-
export * from "@ubean/shared/node";
|
|
8
7
|
export { createRequestLoggerMiddleware, describeRoute, openAPIRouteHandler, resolver, sqlRawAlias, validator };
|
package/dist/server.js
CHANGED
|
@@ -4,5 +4,4 @@ import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
|
4
4
|
export * from "@ubean/app";
|
|
5
5
|
export * from "@ubean/server";
|
|
6
6
|
export * from "@ubean/routes";
|
|
7
|
-
export * from "@ubean/shared/node";
|
|
8
7
|
export { createRequestLoggerMiddleware, describeRoute, openAPIRouteHandler, resolver, sqlRawAlias, validator };
|
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
2
|
-
import { ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
2
|
+
import { DEVTOOLS_PASS_THROUGH_PREFIXES, createVirtualRegistry, ubeanDevRequestPlugin, ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
3
3
|
import { ubeanVite } from "@ubean/build/vue";
|
|
4
4
|
import { loadUbeanConfigSync } from "@ubean/config";
|
|
5
5
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
@@ -19,12 +19,24 @@ import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
|
19
19
|
*/
|
|
20
20
|
function ubeanPlugin() {
|
|
21
21
|
const config = loadUbeanConfigSync();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const registry = createVirtualRegistry();
|
|
23
|
+
const plugins = [
|
|
24
|
+
ubeanPlugin$1({
|
|
25
|
+
config,
|
|
26
|
+
registry
|
|
27
|
+
}),
|
|
28
|
+
...ubeanVite({
|
|
29
|
+
config,
|
|
30
|
+
registry
|
|
31
|
+
}),
|
|
25
32
|
ubeanIslandsPlugin(),
|
|
26
33
|
ubeanServerActionsPlugin({ root: config.rootDir || process.cwd() })
|
|
27
34
|
];
|
|
35
|
+
plugins.push(ubeanDevRequestPlugin({
|
|
36
|
+
passThrough: config.devtools?.enabled ? [...DEVTOOLS_PASS_THROUGH_PREFIXES] : [],
|
|
37
|
+
devtoolsRedirect: config.devtools?.enabled === true
|
|
38
|
+
}));
|
|
39
|
+
return plugins;
|
|
28
40
|
}
|
|
29
41
|
//#endregion
|
|
30
42
|
export { ubeanPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ubean",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-beta.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"
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"@hono/standard-validator": "^0.4.0",
|
|
52
52
|
"@standard-community/standard-json": "^0.3.6",
|
|
53
53
|
"@standard-community/standard-openapi": "^0.2.10",
|
|
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.6.0-beta.1",
|
|
55
|
+
"@ubean/build": "0.6.0-beta.1",
|
|
56
|
+
"@ubean/cli": "0.6.0-beta.1",
|
|
57
|
+
"@ubean/client": "0.6.0-beta.1",
|
|
58
|
+
"@ubean/config": "0.6.0-beta.1",
|
|
59
|
+
"@ubean/i18n": "0.6.0-beta.1",
|
|
60
|
+
"@ubean/integrations": "0.6.0-beta.1",
|
|
61
|
+
"@ubean/islands": "0.6.0-beta.1",
|
|
62
|
+
"@ubean/markdown": "0.6.0-beta.1",
|
|
63
|
+
"@ubean/pages": "0.6.0-beta.1",
|
|
64
|
+
"@ubean/preset": "0.6.0-beta.1",
|
|
65
|
+
"@ubean/routes": "0.6.0-beta.1",
|
|
66
|
+
"@ubean/scan": "0.6.0-beta.1",
|
|
67
|
+
"@ubean/seo": "0.6.0-beta.1",
|
|
68
|
+
"@ubean/server": "0.6.0-beta.1",
|
|
69
|
+
"@ubean/shared": "0.6.0-beta.1",
|
|
70
70
|
"hono": "4.13.7",
|
|
71
71
|
"hono-openapi": "^1.3.3"
|
|
72
72
|
},
|