ubean 0.2.2 → 0.3.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 +41 -8
- package/dist/client/index.js +9 -9
- package/dist/index.d.ts +11 -14
- package/dist/index.js +10 -13
- package/dist/runtime/vue.d.ts +2 -2
- package/dist/runtime/vue.js +2 -2
- package/dist/scaffold.d.ts +2 -0
- package/dist/scaffold.js +2 -0
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +2 -2
- package/dist/vue-ssr.d.ts +1 -1
- package/dist/vue-ssr.js +1 -1
- package/package.json +27 -32
package/dist/client/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare global {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
25
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.DC0v7nqS.d.ts
|
|
26
26
|
type Booleanable = boolean | 'false' | 'true' | '';
|
|
27
27
|
type Stringable = string | Booleanable | number;
|
|
28
28
|
type Falsy$1 = false | null | undefined;
|
|
@@ -1626,7 +1626,7 @@ type ResolvableHtmlAttributes$1 = ResolvableProperties$1<UnheadHtmlAttributes &
|
|
|
1626
1626
|
type ResolvableBodyAttributes$1 = ResolvableProperties$1<UnheadBodyAttributesWithoutEvents & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
|
|
1627
1627
|
type ResolvableTemplateParams = {
|
|
1628
1628
|
separator?: '|' | '-' | '·' | string;
|
|
1629
|
-
} & Record<string, null | string | Record<string, string>> & TemplateParamsAugmentations;
|
|
1629
|
+
} & Record<string, null | string | boolean | number | Record<string, string | boolean | number>> & TemplateParamsAugmentations;
|
|
1630
1630
|
interface ResolvableHead {
|
|
1631
1631
|
/**
|
|
1632
1632
|
* The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
|
|
@@ -1788,7 +1788,7 @@ type TagKey = keyof ResolvableHead | InternalTagKey;
|
|
|
1788
1788
|
type InternalTagKey = '_flatMeta';
|
|
1789
1789
|
type TemplateParams = {
|
|
1790
1790
|
separator?: '|' | '-' | '·' | string;
|
|
1791
|
-
} & Record<string, null | string | Record<string, string>>;
|
|
1791
|
+
} & Record<string, null | string | boolean | number | Record<string, string | boolean | number>>;
|
|
1792
1792
|
interface ProcessesTemplateParams {
|
|
1793
1793
|
processTemplateParams?: boolean;
|
|
1794
1794
|
}
|
|
@@ -1809,6 +1809,11 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
1809
1809
|
* @internal
|
|
1810
1810
|
*/
|
|
1811
1811
|
_p?: number;
|
|
1812
|
+
/**
|
|
1813
|
+
* Copied from the entry options: the entry came from `useHeadSafe`.
|
|
1814
|
+
* @internal
|
|
1815
|
+
*/
|
|
1816
|
+
_safe?: boolean;
|
|
1812
1817
|
/**
|
|
1813
1818
|
* @internal
|
|
1814
1819
|
*/
|
|
@@ -1824,7 +1829,7 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
1824
1829
|
_source?: string;
|
|
1825
1830
|
}
|
|
1826
1831
|
//#endregion
|
|
1827
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
1832
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.CN9FlNPx.d.ts
|
|
1828
1833
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
1829
1834
|
type BaseScriptApi = Record<symbol | string, any>;
|
|
1830
1835
|
type HasDiscriminatedParameters<T> = T extends {
|
|
@@ -2034,6 +2039,22 @@ interface DOMHeadHooks {
|
|
|
2034
2039
|
}) => HookResult;
|
|
2035
2040
|
}
|
|
2036
2041
|
interface SSRHeadHooks {
|
|
2042
|
+
/**
|
|
2043
|
+
* Fired by `renderSSRHeadSuspenseChunk` with normalized tags from entries
|
|
2044
|
+
* pending after the shell. It runs before Streamed Body Tags are split out.
|
|
2045
|
+
* It also runs before the remaining patch is serialized and entries clear.
|
|
2046
|
+
*
|
|
2047
|
+
* The chunk renderer normally serializes entry input without normalizing
|
|
2048
|
+
* tags. This hook supplies normalized copies for inspection. The rendered
|
|
2049
|
+
* patch does not use these tags. Plugin-owned shapes (`_flatMeta`, the legacy
|
|
2050
|
+
* `body` prop) are left for the listener to resolve.
|
|
2051
|
+
*
|
|
2052
|
+
* Synchronous: the renderer does not wait for promises before it serializes
|
|
2053
|
+
* the patch and clears entries.
|
|
2054
|
+
*/
|
|
2055
|
+
'ssr:streamChunk': (ctx: {
|
|
2056
|
+
tags: HeadTag[];
|
|
2057
|
+
}) => SyncHookResult;
|
|
2037
2058
|
'ssr:beforeRender': (ctx: ShouldRenderContext) => HookResult;
|
|
2038
2059
|
'ssr:render': (ctx: {
|
|
2039
2060
|
tags: HeadTag[];
|
|
@@ -2301,6 +2322,12 @@ interface Unhead<Input = ResolvableHead, RenderResult = unknown> {
|
|
|
2301
2322
|
* @internal
|
|
2302
2323
|
*/
|
|
2303
2324
|
_du?: boolean;
|
|
2325
|
+
/**
|
|
2326
|
+
* Batches client pushes into one render.
|
|
2327
|
+
*
|
|
2328
|
+
* @internal
|
|
2329
|
+
*/
|
|
2330
|
+
_b?: boolean;
|
|
2304
2331
|
/**
|
|
2305
2332
|
* @internal
|
|
2306
2333
|
*/
|
|
@@ -2322,9 +2349,15 @@ interface Unhead<Input = ResolvableHead, RenderResult = unknown> {
|
|
|
2322
2349
|
*/
|
|
2323
2350
|
_titleTemplate?: string;
|
|
2324
2351
|
/**
|
|
2352
|
+
* Per-response state for Streamed Body Tags.
|
|
2353
|
+
*
|
|
2325
2354
|
* @internal
|
|
2326
2355
|
*/
|
|
2327
|
-
|
|
2356
|
+
_stream?: {
|
|
2357
|
+
bodyTags?: any[];
|
|
2358
|
+
seen?: Set<string>;
|
|
2359
|
+
writesBodyTags?: boolean;
|
|
2360
|
+
};
|
|
2328
2361
|
}
|
|
2329
2362
|
interface DomState {
|
|
2330
2363
|
/**
|
|
@@ -2345,13 +2378,13 @@ interface DomState {
|
|
|
2345
2378
|
_e: Map<string, Element>;
|
|
2346
2379
|
}
|
|
2347
2380
|
//#endregion
|
|
2348
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
2381
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.DiHEHi7R.d.ts
|
|
2349
2382
|
type Base = RawInput<'base'>;
|
|
2350
2383
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
2351
2384
|
type Noscript = RawInput<'noscript'>;
|
|
2352
2385
|
type Style = RawInput<'style'>;
|
|
2353
2386
|
//#endregion
|
|
2354
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.
|
|
2387
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_172c208f5891b17c78019c3f4d2c3c7e/node_modules/@unhead/vue/dist/shared/vue.B8YcFbNO.d.ts
|
|
2355
2388
|
type Falsy = false | null | undefined;
|
|
2356
2389
|
type MaybeFalsy<T> = T | Falsy;
|
|
2357
2390
|
type ResolvableValue<T> = MaybeFalsy<T> | (() => MaybeFalsy<T>) | ComputedRef<MaybeFalsy<T>> | Ref<MaybeFalsy<T>>;
|
|
@@ -2474,7 +2507,7 @@ interface ReactiveHead {
|
|
|
2474
2507
|
type UseHeadInput<_Deprecated = never> = ResolvableValue<ReactiveHead>;
|
|
2475
2508
|
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
2476
2509
|
//#endregion
|
|
2477
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.
|
|
2510
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_172c208f5891b17c78019c3f4d2c3c7e/node_modules/@unhead/vue/dist/server.d.ts
|
|
2478
2511
|
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propResolvers'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
|
2479
2512
|
//#endregion
|
|
2480
2513
|
export { createHead as createServerHead };
|
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRef, toValue } from "vue";
|
|
2
2
|
export * from "@ubean/client";
|
|
3
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
3
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs
|
|
4
4
|
function registerPlugin(head, p) {
|
|
5
5
|
if (typeof p === "function" && p.key && head.plugins.has(p.key)) return;
|
|
6
6
|
const plugin = typeof p === "function" ? p(head) : p;
|
|
@@ -55,7 +55,7 @@ function createUnhead(renderer, resolvedOptions = {}) {
|
|
|
55
55
|
return head;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
58
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs
|
|
59
59
|
const SelfClosingTags = /* @__PURE__ */ new Set([
|
|
60
60
|
"meta",
|
|
61
61
|
"link",
|
|
@@ -180,7 +180,7 @@ var HookableCore = class {
|
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
183
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs
|
|
184
184
|
function createHooks(hooks) {
|
|
185
185
|
const instance = new HookableCore();
|
|
186
186
|
for (const key in hooks || {}) instance.hook(key, hooks[key]);
|
|
@@ -191,7 +191,7 @@ function callHook(head, hook, ctx) {
|
|
|
191
191
|
return head.hooks?.callHook(hook, ctx);
|
|
192
192
|
}
|
|
193
193
|
//#endregion
|
|
194
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
194
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.-hZVKou0.mjs
|
|
195
195
|
const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
|
|
196
196
|
const META_KEY_ATTRS = [
|
|
197
197
|
"name",
|
|
@@ -307,7 +307,7 @@ function normalizeProps(tag, input) {
|
|
|
307
307
|
if ((prop === "textContent" || prop === "innerHTML") && typeof value === "object") {
|
|
308
308
|
const type = input.type || "application/json";
|
|
309
309
|
if (type.endsWith("json") || type === "speculationrules" || type === "importmap") {
|
|
310
|
-
tag.props.type =
|
|
310
|
+
tag.props.type = type;
|
|
311
311
|
tag[prop] = JSON.stringify(value);
|
|
312
312
|
}
|
|
313
313
|
} else tag[prop] = value;
|
|
@@ -536,7 +536,7 @@ function resolveTags(head, options) {
|
|
|
536
536
|
return sanitizeTagsInPlace(ctx.tags);
|
|
537
537
|
}
|
|
538
538
|
//#endregion
|
|
539
|
-
//#region ../../node_modules/.pnpm/unhead@3.
|
|
539
|
+
//#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._822c24a18e45513e430125b4148494e5/node_modules/unhead/dist/shared/unhead.Dssd7L5I.mjs
|
|
540
540
|
const isTruthy = (v) => v === "" || v === true;
|
|
541
541
|
function capoTagWeight(tag) {
|
|
542
542
|
if (typeof tag.tagPriority === "number") return tag.tagPriority;
|
|
@@ -701,7 +701,7 @@ function createHead$1(options = {}) {
|
|
|
701
701
|
return core;
|
|
702
702
|
}
|
|
703
703
|
//#endregion
|
|
704
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.
|
|
704
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_172c208f5891b17c78019c3f4d2c3c7e/node_modules/@unhead/vue/dist/shared/vue.DKb5ZKVl.mjs
|
|
705
705
|
const headSymbol = "usehead";
|
|
706
706
|
// @__NO_SIDE_EFFECTS__
|
|
707
707
|
function vueInstall(head) {
|
|
@@ -712,10 +712,10 @@ function vueInstall(head) {
|
|
|
712
712
|
} }.install;
|
|
713
713
|
}
|
|
714
714
|
//#endregion
|
|
715
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.
|
|
715
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_172c208f5891b17c78019c3f4d2c3c7e/node_modules/@unhead/vue/dist/shared/vue.D2XR8FqS.mjs
|
|
716
716
|
const VueResolver = /* @__PURE__ */ Object.assign((_, value) => isRef(value) ? toValue(value) : value, { _static: true });
|
|
717
717
|
//#endregion
|
|
718
|
-
//#region ../../node_modules/.pnpm/@unhead+vue@3.
|
|
718
|
+
//#region ../../node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.146.0_@voidzero-dev+vite-plus-core@0.3.0_@types+_172c208f5891b17c78019c3f4d2c3c7e/node_modules/@unhead/vue/dist/server.mjs
|
|
719
719
|
// @__NO_SIDE_EFFECTS__
|
|
720
720
|
function createHead(options = {}) {
|
|
721
721
|
const head = /* @__PURE__ */ createHead$1({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { InternalFetchOptions, PageAssetTags, PageRenderer, defineDataKey } from "@ubean/pages";
|
|
2
2
|
import { useRouter } from "@ubean/routes";
|
|
3
3
|
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
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,
|
|
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
6
|
import { UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
7
|
-
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/
|
|
7
|
+
import { UbeanViteOptions, VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
8
8
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
9
|
-
import { ubeanServerActionsPlugin } from "@ubean/actions
|
|
9
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
10
10
|
import { IslandOptions, IslandStrategy, ServerIslandOptions, defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
11
|
-
import { VueRendererOptions, VueRendererRouterOptions, VueRendererSimpleOptions, createVueRenderer } from "@ubean/ssr";
|
|
11
|
+
import { VueRendererOptions, VueRendererRouterOptions, VueRendererSimpleOptions, createVueRenderer } from "@ubean/client/ssr";
|
|
12
12
|
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
13
|
-
import {
|
|
13
|
+
import { I18nMiddlewareOptions, I18nRoutingStrategy, compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
14
14
|
import { BackupOptions, FsOps, FsOpsOptions, ScaffoldOptions, ScaffoldResult, ScaffoldType, createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { createRequestLoggerMiddleware } from "@ubean/logger/hono";
|
|
15
|
+
import { LogLevelName, RequestLoggerOptions, UbeanLogger, UbeanLoggerOptions, createUbeanLogger, getLogger, logger } from "@ubean/shared/logger";
|
|
16
|
+
import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
18
17
|
export * from "@ubean/shared";
|
|
19
18
|
export * from "@ubean/shared/node";
|
|
20
19
|
export * from "@ubean/seo";
|
|
@@ -22,13 +21,11 @@ export * from "@ubean/pages";
|
|
|
22
21
|
export * from "@ubean/markdown";
|
|
23
22
|
export * from "@ubean/i18n";
|
|
24
23
|
export * from "@ubean/routes";
|
|
25
|
-
export * from "@ubean/actions";
|
|
26
24
|
export * from "@ubean/server";
|
|
27
25
|
export * from "@ubean/app";
|
|
28
|
-
export * from "@ubean/prerender";
|
|
26
|
+
export * from "@ubean/build/prerender";
|
|
29
27
|
export * from "@ubean/preset";
|
|
30
28
|
export * from "@ubean/config";
|
|
31
|
-
export * from "@ubean/codegen";
|
|
32
|
-
export * from "@ubean/modules";
|
|
29
|
+
export * from "@ubean/build/codegen";
|
|
33
30
|
export * from "@ubean/scan";
|
|
34
|
-
export { type AppPluginConfig, type BackupOptions, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, type
|
|
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { defineDataKey } from "@ubean/pages";
|
|
2
2
|
import { useRouter } from "@ubean/routes";
|
|
3
3
|
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
4
|
-
import { Head, Link, PageView,
|
|
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
5
|
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
-
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/
|
|
6
|
+
import { VUE_PLUGIN_INCLUDE, ubeanVite } from "@ubean/build/vue";
|
|
7
7
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
-
import { ubeanServerActionsPlugin } from "@ubean/actions
|
|
8
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
9
9
|
import { defineIsland, defineServerIsland, getIslandsBootstrapScript, vClient } from "@ubean/islands";
|
|
10
|
-
import { createVueRenderer } from "@ubean/ssr";
|
|
10
|
+
import { createVueRenderer } from "@ubean/client/ssr";
|
|
11
11
|
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
12
|
-
import { createI18nMiddleware,
|
|
12
|
+
import { compileLocalePaths, createI18nMiddleware, extractLocaleFromPath, getPathWithoutLocale, getRequestLocale, switchLocalePath } from "@ubean/i18n/routing";
|
|
13
13
|
import { createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { createRequestLoggerMiddleware } from "@ubean/logger/hono";
|
|
14
|
+
import { createUbeanLogger, getLogger, logger } from "@ubean/shared/logger";
|
|
15
|
+
import { createRequestLoggerMiddleware } from "@ubean/shared/logger/hono";
|
|
17
16
|
export * from "@ubean/shared";
|
|
18
17
|
export * from "@ubean/shared/node";
|
|
19
18
|
export * from "@ubean/seo";
|
|
@@ -21,13 +20,11 @@ export * from "@ubean/pages";
|
|
|
21
20
|
export * from "@ubean/markdown";
|
|
22
21
|
export * from "@ubean/i18n";
|
|
23
22
|
export * from "@ubean/routes";
|
|
24
|
-
export * from "@ubean/actions";
|
|
25
23
|
export * from "@ubean/server";
|
|
26
24
|
export * from "@ubean/app";
|
|
27
|
-
export * from "@ubean/prerender";
|
|
25
|
+
export * from "@ubean/build/prerender";
|
|
28
26
|
export * from "@ubean/preset";
|
|
29
27
|
export * from "@ubean/config";
|
|
30
|
-
export * from "@ubean/codegen";
|
|
31
|
-
export * from "@ubean/modules";
|
|
28
|
+
export * from "@ubean/build/codegen";
|
|
32
29
|
export * from "@ubean/scan";
|
|
33
|
-
export { Head, Link, PageView, VUE_PLUGIN_INCLUDE,
|
|
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, 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 };
|
package/dist/runtime/vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from "vue";
|
|
2
2
|
import { HydrateIslandsOptions } from "@ubean/islands/runtime";
|
|
3
|
-
import { UseActionReturn, UseFormActionReturn, callAction, useAction, useFormAction } from "@ubean/
|
|
3
|
+
import { UseActionReturn, UseFormActionReturn, callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
4
4
|
export * from "@ubean/client";
|
|
5
5
|
//#region src/runtime/vue.d.ts
|
|
6
6
|
/**
|
|
@@ -12,4 +12,4 @@ declare function hydrateIslands(options?: Omit<HydrateIslandsOptions, 'component
|
|
|
12
12
|
components?: Record<string, Component | (() => Promise<Component>)>;
|
|
13
13
|
}): void;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { type UseActionReturn, type UseFormActionReturn, callAction, hydrateIslands, useAction, useFormAction };
|
|
15
|
+
export { type UseActionReturn, type UseFormActionReturn, callAction, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
package/dist/runtime/vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hydrateIslands as hydrateIslands$1 } from "@ubean/islands/runtime";
|
|
2
2
|
import { islands } from "virtual:ubean-islands-registry";
|
|
3
|
-
import { callAction, useAction, useFormAction } from "@ubean/
|
|
3
|
+
import { callAction, invokeServerFn, useAction, useFormAction } from "@ubean/routes/runtime";
|
|
4
4
|
export * from "@ubean/client";
|
|
5
5
|
//#region src/runtime/vue.ts
|
|
6
6
|
/**
|
|
@@ -20,4 +20,4 @@ function hydrateIslands(options = {}) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { callAction, hydrateIslands, useAction, useFormAction };
|
|
23
|
+
export { callAction, hydrateIslands, invokeServerFn, useAction, useFormAction };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { BackupOptions, FsOps, FsOpsOptions, SCAFFOLD_CONTRACT_VERSION, ScaffoldArgManifest, ScaffoldManifest, ScaffoldOptions, ScaffoldResult, ScaffoldType, ScaffoldTypeManifest, createFsOps, deleteScaffold, getScaffoldManifest, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
2
|
+
export { type BackupOptions, type FsOps, type FsOpsOptions, SCAFFOLD_CONTRACT_VERSION, type ScaffoldArgManifest, type ScaffoldManifest, type ScaffoldOptions, type ScaffoldResult, type ScaffoldType, type ScaffoldTypeManifest, createFsOps, deleteScaffold, getScaffoldManifest, listScaffoldableFiles, recoverScaffold, scaffold };
|
package/dist/scaffold.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SCAFFOLD_CONTRACT_VERSION, createFsOps, deleteScaffold, getScaffoldManifest, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
2
|
+
export { SCAFFOLD_CONTRACT_VERSION, createFsOps, deleteScaffold, getScaffoldManifest, listScaffoldableFiles, recoverScaffold, scaffold };
|
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { loadUbeanConfigSync } from "@ubean/config";
|
|
2
2
|
import { ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
3
|
-
import { ubeanVite } from "@ubean/
|
|
3
|
+
import { ubeanVite } from "@ubean/build/vue";
|
|
4
4
|
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
-
import { ubeanServerActionsPlugin } from "@ubean/actions
|
|
5
|
+
import { ubeanServerActionsPlugin } from "@ubean/build/actions";
|
|
6
6
|
//#region src/vite.ts
|
|
7
7
|
/**
|
|
8
8
|
* ubean 默认 Vite 插件组合(无参数版本)。
|
package/dist/vue-ssr.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@ubean/ssr";
|
|
1
|
+
export * from "@ubean/client/ssr";
|
package/dist/vue-ssr.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "@ubean/ssr";
|
|
1
|
+
export * from "@ubean/client/ssr";
|
|
2
2
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ubean",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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"
|
|
@@ -41,46 +41,41 @@
|
|
|
41
41
|
"./runtime/i18n": {
|
|
42
42
|
"types": "./dist/runtime/i18n.d.ts",
|
|
43
43
|
"import": "./dist/runtime/i18n.js"
|
|
44
|
+
},
|
|
45
|
+
"./scaffold": {
|
|
46
|
+
"types": "./dist/scaffold.d.ts",
|
|
47
|
+
"import": "./dist/scaffold.js"
|
|
44
48
|
}
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
51
|
"@hono/standard-validator": "^0.4.0",
|
|
48
52
|
"@standard-community/standard-json": "^0.3.5",
|
|
49
53
|
"@standard-community/standard-openapi": "^0.2.9",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
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/
|
|
65
|
-
"@ubean/
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"@ubean/prerender": "0.2.2",
|
|
69
|
-
"@ubean/preset": "0.2.2",
|
|
70
|
-
"@ubean/routes": "0.2.2",
|
|
71
|
-
"@ubean/seo": "0.2.2",
|
|
72
|
-
"@ubean/scan": "0.2.2",
|
|
73
|
-
"@ubean/server": "0.2.2",
|
|
74
|
-
"@ubean/ssr": "0.2.2",
|
|
75
|
-
"@ubean/vite": "0.2.2",
|
|
76
|
-
"@ubean/shared": "0.2.2"
|
|
54
|
+
"@ubean/app": "0.3.1",
|
|
55
|
+
"@ubean/build": "0.3.1",
|
|
56
|
+
"@ubean/cli": "0.3.1",
|
|
57
|
+
"@ubean/client": "0.3.1",
|
|
58
|
+
"@ubean/config": "0.3.1",
|
|
59
|
+
"@ubean/i18n": "0.3.1",
|
|
60
|
+
"@ubean/integrations": "0.3.1",
|
|
61
|
+
"@ubean/islands": "0.3.1",
|
|
62
|
+
"@ubean/markdown": "0.3.1",
|
|
63
|
+
"@ubean/pages": "0.3.1",
|
|
64
|
+
"@ubean/preset": "0.3.1",
|
|
65
|
+
"@ubean/routes": "0.3.1",
|
|
66
|
+
"@ubean/scan": "0.3.1",
|
|
67
|
+
"@ubean/seo": "0.3.1",
|
|
68
|
+
"@ubean/server": "0.3.1",
|
|
69
|
+
"@ubean/shared": "0.3.1",
|
|
70
|
+
"hono": "4.13.5",
|
|
71
|
+
"hono-openapi": "^1.3.1"
|
|
77
72
|
},
|
|
78
73
|
"devDependencies": {
|
|
79
|
-
"@types/node": "^26.
|
|
74
|
+
"@types/node": "^26.4.0",
|
|
80
75
|
"typescript": "7.0.2",
|
|
81
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.
|
|
82
|
-
"vite-plus": "0.
|
|
83
|
-
"vue": "^3.5.
|
|
76
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
77
|
+
"vite-plus": "0.3.0",
|
|
78
|
+
"vue": "^3.5.42"
|
|
84
79
|
},
|
|
85
80
|
"peerDependencies": {
|
|
86
81
|
"vue": "^3.0.0"
|