@absolutejs/absolute 0.20.0-beta.0 → 0.20.0-beta.10
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/README.md +45 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +354 -22
- package/dist/angular/index.js.map +9 -6
- package/dist/angular/server.js +354 -22
- package/dist/angular/server.js.map +9 -6
- package/dist/build.js +742 -359
- package/dist/build.js.map +26 -24
- package/dist/cli/config/server.js +2 -2
- package/dist/cli/index.js +16105 -8429
- package/dist/dev/client/cssUtils.ts +112 -41
- package/dist/dev/client/handlers/html.ts +75 -15
- package/dist/dev/client/handlers/htmx.ts +43 -8
- package/dist/dev/client/handlers/react.ts +114 -32
- package/dist/dev/client/handlers/rebuild.ts +38 -8
- package/dist/dev/client/handlers/svelte.ts +33 -50
- package/dist/dev/client/handlers/vue.ts +36 -45
- package/dist/dev/client/hmrClient.ts +38 -6
- package/dist/dev/client/hmrTiming.ts +148 -0
- package/dist/dev/serverBootstrap.js +20 -11
- package/dist/index.js +1728 -864
- package/dist/index.js.map +38 -33
- package/dist/mobile/browser.js +14 -1
- package/dist/mobile/browser.js.map +3 -3
- package/dist/mobile/index.js +4853 -279
- package/dist/mobile/index.js.map +34 -7
- package/dist/mobile/remoteMacAgentEntry.js +29 -0
- package/dist/mobile/shellAuth.js +43 -0
- package/dist/mobile/shellBootstrap.js +581 -0
- package/dist/mobile/shellSync.js +74 -0
- package/dist/react/index.js +16 -3
- package/dist/react/index.js.map +4 -4
- package/dist/react/jsxDevRuntimeCompat.js +22 -2
- package/dist/react/jsxDevRuntimeCompat.js.map +5 -4
- package/dist/react/jsxRuntimeCompat.js +90 -0
- package/dist/react/jsxRuntimeCompat.js.map +10 -0
- package/dist/react/server.js +16 -3
- package/dist/react/server.js.map +4 -4
- package/dist/src/angular/pageHandler.d.ts +3 -0
- package/dist/src/build/compileVue.d.ts +1 -1
- package/dist/src/build/pwa.d.ts +15 -0
- package/dist/src/build/resolveBuildMode.d.ts +7 -0
- package/dist/src/cli/config/server.d.ts +1 -1
- package/dist/src/cli/scripts/dev.d.ts +4 -1
- package/dist/src/cli/scripts/mobile.d.ts +1 -0
- package/dist/src/cli/utils.d.ts +2 -2
- package/dist/src/core/build.d.ts +1 -1
- package/dist/src/core/pageHandlers.d.ts +11 -2
- package/dist/src/core/prepare.d.ts +6 -0
- package/dist/src/dev/clientManager.d.ts +9 -0
- package/dist/src/dev/configResolver.d.ts +2 -0
- package/dist/src/dev/moduleMapper.d.ts +1 -1
- package/dist/src/dev/moduleServer.d.ts +2 -1
- package/dist/src/dev/pathUtils.d.ts +1 -1
- package/dist/src/dev/reactComponentClassifier.d.ts +1 -1
- package/dist/src/mobile/androidConformance.d.ts +42 -0
- package/dist/src/mobile/androidEmulatorController.d.ts +105 -0
- package/dist/src/mobile/androidNativeWatcher.d.ts +19 -0
- package/dist/src/mobile/androidRelease.d.ts +51 -0
- package/dist/src/mobile/androidWebView.d.ts +46 -0
- package/dist/src/mobile/associationFiles.d.ts +49 -0
- package/dist/src/mobile/buildMetadata.d.ts +10 -0
- package/dist/src/mobile/buildPipeline.d.ts +9 -0
- package/dist/src/mobile/buildRelease.d.ts +24 -0
- package/dist/src/mobile/capacitorBundle.d.ts +42 -0
- package/dist/src/mobile/capacitorProject.d.ts +9 -0
- package/dist/src/mobile/client.d.ts +5 -1
- package/dist/src/mobile/config.d.ts +17 -0
- package/dist/src/mobile/emulatorDoctor.d.ts +25 -0
- package/dist/src/mobile/emulatorInstaller.d.ts +41 -0
- package/dist/src/mobile/index.d.ts +19 -0
- package/dist/src/mobile/iosConformance.d.ts +15 -0
- package/dist/src/mobile/iosNativeWatcher.d.ts +19 -0
- package/dist/src/mobile/iosRelease.d.ts +61 -0
- package/dist/src/mobile/iosSimulatorController.d.ts +89 -0
- package/dist/src/mobile/materializedBundle.d.ts +14 -0
- package/dist/src/mobile/nativeAuth.d.ts +17 -0
- package/dist/src/mobile/nativeBackgroundSync.d.ts +4 -0
- package/dist/src/mobile/nativeDeepLinks.d.ts +5 -0
- package/dist/src/mobile/releaseArtifact.d.ts +3 -0
- package/dist/src/mobile/releaseDoctor.d.ts +13 -0
- package/dist/src/mobile/releasePublisher.d.ts +130 -0
- package/dist/src/mobile/remoteMacAgent.d.ts +2 -0
- package/dist/src/mobile/remoteMacAgentEntry.d.ts +1 -0
- package/dist/src/mobile/remoteMacProtocol.d.ts +114 -0
- package/dist/src/mobile/remoteMacWire.d.ts +2 -0
- package/dist/src/mobile/routeMatcher.d.ts +3 -0
- package/dist/src/mobile/routeMetadataTransform.d.ts +13 -0
- package/dist/src/mobile/shellAuth.d.ts +13 -0
- package/dist/src/mobile/shellBootstrap.d.ts +18 -0
- package/dist/src/mobile/shellSync.d.ts +19 -0
- package/dist/src/mobile/staticDocument.d.ts +5 -0
- package/dist/src/mobile/transport.d.ts +43 -0
- package/dist/src/plugins/hmr.d.ts +3 -0
- package/dist/src/plugins/imageOptimizer.d.ts +1 -1
- package/dist/src/react/hooks/useMediaQuery.d.ts +1 -1
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +1 -1
- package/dist/src/react/jsxRuntimeCompat.d.ts +7 -0
- package/dist/src/react/pageHandler.d.ts +3 -0
- package/dist/src/svelte/pageHandler.d.ts +3 -0
- package/dist/src/utils/loadConfig.d.ts +2 -0
- package/dist/src/utils/logger.d.ts +2 -0
- package/dist/src/utils/userAgentFunctions.d.ts +1 -1
- package/dist/src/vue/pageHandler.d.ts +3 -0
- package/dist/svelte/index.js +325 -23
- package/dist/svelte/index.js.map +8 -5
- package/dist/svelte/server.js +320 -18
- package/dist/svelte/server.js.map +8 -5
- package/dist/types/build.d.ts +59 -0
- package/dist/types/cli.d.ts +2 -0
- package/dist/types/globals.d.ts +14 -0
- package/dist/types/messages.d.ts +12 -0
- package/dist/vue/index.js +325 -23
- package/dist/vue/index.js.map +8 -5
- package/dist/vue/server.js +320 -18
- package/dist/vue/server.js.map +8 -5
- package/package.json +52 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BunPlugin } from 'bun';
|
|
2
|
+
import { type AbsoluteMobileBuildPageMetadata } from './buildMetadata';
|
|
3
|
+
type MobileRouteTransformOptions = {
|
|
4
|
+
entry: string;
|
|
5
|
+
projectRoot?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const ABSOLUTE_MOBILE_TRANSFORM_PROTOCOL: 1;
|
|
8
|
+
export declare const createAbsoluteMobileRouteMetadataPlugin: (options: MobileRouteTransformOptions) => BunPlugin;
|
|
9
|
+
export declare const inspectAbsoluteMobileRouteMetadata: (options: MobileRouteTransformOptions) => {
|
|
10
|
+
file: string;
|
|
11
|
+
metadata: AbsoluteMobileBuildPageMetadata;
|
|
12
|
+
}[];
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type MobileAuthPrincipal } from '@absolutejs/auth/client/mobile';
|
|
2
|
+
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
3
|
+
import type { AbsoluteMobileFetch } from './transport';
|
|
4
|
+
export type AbsoluteMobileShellAuth = {
|
|
5
|
+
clientId: string;
|
|
6
|
+
fetch: AbsoluteMobileFetch;
|
|
7
|
+
onPrincipalChange: (listener: (principal: MobileAuthPrincipal | null) => void) => () => void;
|
|
8
|
+
principal: MobileAuthPrincipal | null;
|
|
9
|
+
redirectUri: string;
|
|
10
|
+
issuer: string;
|
|
11
|
+
socketTicket: (audience?: string) => Promise<string>;
|
|
12
|
+
};
|
|
13
|
+
export declare const createAbsoluteMobileShellAuth: (config: AbsoluteMobileAuthManifest) => Promise<AbsoluteMobileShellAuth>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AbsoluteMobileFetch, type AbsoluteMobileClientManifest } from './transport';
|
|
2
|
+
export type AbsoluteMobileShellAuthRuntime = {
|
|
3
|
+
clientId: string;
|
|
4
|
+
fetch: AbsoluteMobileFetch;
|
|
5
|
+
onPrincipalChange: (listener: (principal: AbsoluteMobileShellPrincipal | null) => void) => () => void;
|
|
6
|
+
principal: AbsoluteMobileShellPrincipal | null;
|
|
7
|
+
redirectUri: string;
|
|
8
|
+
issuer: string;
|
|
9
|
+
socketTicket: (audience?: string) => Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
export type AbsoluteMobileShellPrincipal = {
|
|
12
|
+
namespace: string;
|
|
13
|
+
};
|
|
14
|
+
export type AbsoluteMobileShellOptions = {
|
|
15
|
+
createAuth?: (config: NonNullable<AbsoluteMobileClientManifest['auth']>) => Promise<AbsoluteMobileShellAuthRuntime>;
|
|
16
|
+
installSync?: (auth: AbsoluteMobileShellAuthRuntime, config: NonNullable<AbsoluteMobileClientManifest['sync']>) => void | (() => void);
|
|
17
|
+
};
|
|
18
|
+
export declare const startAbsoluteMobileShell: (options?: AbsoluteMobileShellOptions) => Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { configureCapacitorBackgroundSync, type CapacitorSyncLifecycleOptions } from '@absolutejs/sync-capacitor';
|
|
2
|
+
import type { SyncClientStatus, SyncLocalStore } from '@absolutejs/sync/client';
|
|
3
|
+
import type { AbsoluteMobileShellAuthRuntime } from './shellBootstrap';
|
|
4
|
+
import type { AbsoluteMobileClientManifest } from './transport';
|
|
5
|
+
export type AbsoluteMobileShellSyncOptions = {
|
|
6
|
+
createStore?: () => SyncLocalStore;
|
|
7
|
+
installLifecycle?: (options: CapacitorSyncLifecycleOptions) => Promise<() => void>;
|
|
8
|
+
reload?: () => void;
|
|
9
|
+
reportStatus?: (status: SyncClientStatus) => void;
|
|
10
|
+
configureBackground?: typeof configureCapacitorBackgroundSync;
|
|
11
|
+
clearBackground?: () => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export declare const ABSOLUTE_MOBILE_SYNC_STATUS_EVENT = "absolute:sync-status";
|
|
14
|
+
/**
|
|
15
|
+
* Provisions unchanged Sync clients with native durability, Auth isolation, and
|
|
16
|
+
* foreground/connectivity reconnects. An identity change reloads the shell so
|
|
17
|
+
* no page-held client can retain the previous account's in-memory rows.
|
|
18
|
+
*/
|
|
19
|
+
export declare const installAbsoluteMobileShellSync: (auth: AbsoluteMobileShellAuthRuntime, config?: NonNullable<AbsoluteMobileClientManifest["sync"]>, options?: AbsoluteMobileShellSyncOptions) => () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AbsoluteMobileClientManifest, AbsoluteMobileClientPage } from './transport';
|
|
2
|
+
export declare const hashAbsoluteMobileStaticDocument: (source: string) => Promise<string>;
|
|
3
|
+
export declare const rewriteAbsoluteMobileHtmxRequests: (source: string, productionOrigin: string) => string;
|
|
4
|
+
export declare const sanitizeAbsoluteMobileHtmxFragment: (source: string, productionOrigin: string, parse?: (source: string) => Document) => string;
|
|
5
|
+
export declare const installAbsoluteMobileStaticDocument: (manifest: AbsoluteMobileClientManifest, page: AbsoluteMobileClientPage, localUrl: string) => Promise<void>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type AbsoluteMobilePageActivationOptions } from './client';
|
|
2
|
+
import type { AbsoluteMobileCompatibilityPage, AbsoluteMobileCompatibilityRoute } from './releaseArtifact';
|
|
3
|
+
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
4
|
+
export declare const ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT: 1;
|
|
5
|
+
export type AbsoluteMobileFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
6
|
+
export type AbsoluteMobileClientPage = AbsoluteMobileCompatibilityPage & {
|
|
7
|
+
localBundlePath: string;
|
|
8
|
+
localStylePath?: string;
|
|
9
|
+
};
|
|
10
|
+
export type AbsoluteMobileClientManifest = {
|
|
11
|
+
auth?: AbsoluteMobileAuthManifest;
|
|
12
|
+
appBuild: string;
|
|
13
|
+
appId: string;
|
|
14
|
+
appName: string;
|
|
15
|
+
deepLinkHosts: string[];
|
|
16
|
+
deepLinkScheme?: string;
|
|
17
|
+
entry: string;
|
|
18
|
+
format: typeof ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT;
|
|
19
|
+
pages: AbsoluteMobileClientPage[];
|
|
20
|
+
productionOrigin: string;
|
|
21
|
+
routes: AbsoluteMobileCompatibilityRoute[];
|
|
22
|
+
runtime: string;
|
|
23
|
+
sync?: {
|
|
24
|
+
socketTickets: true;
|
|
25
|
+
background: {
|
|
26
|
+
endpoint: string;
|
|
27
|
+
intervalMinutes: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type AbsoluteMobileTransportOptions = {
|
|
32
|
+
fetch?: AbsoluteMobileFetch;
|
|
33
|
+
headers?: HeadersInit;
|
|
34
|
+
};
|
|
35
|
+
export declare const createAbsoluteMobilePageRequest: (manifest: AbsoluteMobileClientManifest, path: string, options?: AbsoluteMobileTransportOptions) => Request;
|
|
36
|
+
export declare const fetchAbsoluteMobilePage: (manifest: AbsoluteMobileClientManifest, path: string, options?: AbsoluteMobileTransportOptions) => Promise<unknown>;
|
|
37
|
+
export declare const navigateAbsoluteMobilePage: (manifest: AbsoluteMobileClientManifest, path: string, options: AbsoluteMobileTransportOptions & AbsoluteMobilePageActivationOptions) => Promise<import("./pageProtocol").AbsoluteMobileUpgradeRequiredResult | {
|
|
38
|
+
contract: string;
|
|
39
|
+
kind: "rendered";
|
|
40
|
+
pageId: string;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const resolveAbsoluteMobileDeepLink: (manifest: AbsoluteMobileClientManifest, value: string) => string;
|
|
43
|
+
export declare const resolveAbsoluteMobileNavigation: (manifest: AbsoluteMobileClientManifest, value: string, localOrigin: string) => string | undefined;
|
|
@@ -80,6 +80,9 @@ export declare const hmr: (hmrState: HMRState, manifest: Record<string, string>,
|
|
|
80
80
|
error: [];
|
|
81
81
|
}, "get", "/hmr-status", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/hmr-status">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => {
|
|
82
82
|
connectedClients: number;
|
|
83
|
+
connectedTargets: {
|
|
84
|
+
[k: string]: number;
|
|
85
|
+
};
|
|
83
86
|
entryWatcherReady: boolean;
|
|
84
87
|
isRebuilding: boolean;
|
|
85
88
|
manifestKeys: string[];
|
|
@@ -19,7 +19,7 @@ export declare const imageOptimizer: (config: ImageConfig | undefined, buildDir:
|
|
|
19
19
|
status?: number | keyof import("elysia").StatusMap;
|
|
20
20
|
cookie?: Record<string, import("elysia").BaseCookie>;
|
|
21
21
|
};
|
|
22
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 302 | 101 | 102 | 103 | 201 | 202 | 203 |
|
|
22
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 204 | 302 | 101 | 102 | 103 | 201 | 202 | 203 | 205 | 206 | 207 | 208 | 301 | 303 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
23
23
|
readonly 100: "Continue";
|
|
24
24
|
readonly 101: "Switching Protocols";
|
|
25
25
|
readonly 102: "Processing";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breakpoint, Breakpoints } from '../../../types/mediaQuery';
|
|
2
|
-
export declare const UserAgentProvider: import("react").Provider<"other" | "bot" | "phone" | "tablet" | "tv" | "
|
|
2
|
+
export declare const UserAgentProvider: import("react").Provider<"console" | "other" | "bot" | "phone" | "tablet" | "tv" | "car" | "iot" | "desktop" | null>;
|
|
3
3
|
export declare const useMediaQuery: (customBreakpoints?: Breakpoints) => {
|
|
4
4
|
breakpoint: string;
|
|
5
5
|
isSizeOrGreater: (target: Breakpoint) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Fragment, jsx as reactJsx } from 'react/jsx-runtime';
|
|
2
|
+
type JSXType = Parameters<typeof reactJsx>[0];
|
|
3
|
+
type JSXProps = Parameters<typeof reactJsx>[1];
|
|
4
|
+
type JSXKey = Parameters<typeof reactJsx>[2];
|
|
5
|
+
export { Fragment };
|
|
6
|
+
export declare const jsx: (type: JSXType, props: JSXProps, key?: JSXKey) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
+
export declare const jsxs: (type: JSXType, props: JSXProps, key?: JSXKey) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentType as ReactComponent } from 'react';
|
|
2
|
+
import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
|
|
2
3
|
import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
|
|
3
4
|
type ReactPageRenderOptions = StreamingSlotEnhancerOptions & {
|
|
4
5
|
collectStreamingSlots?: boolean;
|
|
@@ -9,6 +10,8 @@ type ReactPageRenderOptions = StreamingSlotEnhancerOptions & {
|
|
|
9
10
|
bufferStreamForEtag?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export type ReactPageRequestInput<Props extends Record<string, unknown> = Record<never, never>> = ReactPageRenderOptions & {
|
|
13
|
+
/** @internal Build-generated mobile identity. Application code must not set this. */
|
|
14
|
+
__absoluteMobile?: AbsoluteMobileBuildPageMetadata;
|
|
12
15
|
Page: ReactComponent<Props>;
|
|
13
16
|
index: string;
|
|
14
17
|
/** The incoming Elysia request. When provided, the request's pathname
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Component as SvelteComponent } from 'svelte';
|
|
2
2
|
import type { SveltePropsOf } from '../../types/svelte';
|
|
3
|
+
import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
|
|
3
4
|
import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
|
|
4
5
|
export type SveltePageRenderOptions = {
|
|
5
6
|
collectStreamingSlots?: boolean;
|
|
@@ -13,6 +14,8 @@ export type SveltePageRenderOptions = {
|
|
|
13
14
|
} & StreamingSlotEnhancerOptions;
|
|
14
15
|
type HasNoSvelteProps<Props> = [Props] extends [never] ? true : keyof Props extends never ? true : false;
|
|
15
16
|
export type SveltePageRequestInput<Component extends SvelteComponent<never> = SvelteComponent<Record<never, never>>> = SveltePageRenderOptions & {
|
|
17
|
+
/** @internal Build-generated mobile identity. Application code must not set this. */
|
|
18
|
+
__absoluteMobile?: AbsoluteMobileBuildPageMetadata;
|
|
16
19
|
indexPath: string;
|
|
17
20
|
pagePath: string;
|
|
18
21
|
/** The incoming Elysia request. When provided, the request's pathname
|
|
@@ -20,6 +20,8 @@ export declare const loadConfig: (configPath?: string) => Promise<{
|
|
|
20
20
|
emberDirectory?: string;
|
|
21
21
|
htmlDirectory?: string;
|
|
22
22
|
htmxDirectory?: string;
|
|
23
|
+
mobile?: import("..").MobileConfig;
|
|
24
|
+
pwa?: import("..").PwaConfig;
|
|
23
25
|
stylesConfig?: string | import("..").StylesConfig;
|
|
24
26
|
stylePreprocessors?: import("..").StylePreprocessorConfig;
|
|
25
27
|
postcss?: import("..").PostCSSConfig;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Provides formatted output with ANSI colors and timestamps
|
|
4
4
|
*/
|
|
5
5
|
import { formatTimestamp } from './startupBanner';
|
|
6
|
+
import type { HMRApplyKind, HMRApplyOutcome, HMRClientTarget } from '../../types/messages';
|
|
6
7
|
export { formatTimestamp };
|
|
7
8
|
/**
|
|
8
9
|
* Startup banner
|
|
@@ -30,6 +31,7 @@ export declare const logError: (message: string, error?: Error | string) => void
|
|
|
30
31
|
* HMR update message
|
|
31
32
|
* Format: "10:30:45 AM [hmr] hmr update /pages/App.tsx"
|
|
32
33
|
*/
|
|
34
|
+
export declare const logHmrClientUpdate: (path: string, framework: string | undefined, duration: number, target: HMRClientTarget, serverMs?: number, clientMs?: number, outcome?: HMRApplyOutcome, kind?: HMRApplyKind) => void;
|
|
33
35
|
export declare const logHmrUpdate: (path: string, framework?: string, duration?: number) => void;
|
|
34
36
|
/**
|
|
35
37
|
* Generic info message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getUserAgentType: (userAgent: string) => "other" | "bot" | "phone" | "tablet" | "tv" | "
|
|
1
|
+
export declare const getUserAgentType: (userAgent: string) => "console" | "other" | "bot" | "phone" | "tablet" | "tv" | "car" | "iot" | "desktop";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Component as VueComponent } from 'vue';
|
|
2
2
|
import type { VuePropsOf } from '../../types/vue';
|
|
3
|
+
import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
|
|
3
4
|
import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
|
|
4
5
|
type VuePageRenderOptions = StreamingSlotEnhancerOptions & {
|
|
5
6
|
collectStreamingSlots?: boolean;
|
|
@@ -29,6 +30,8 @@ type VuePageClientMode = {
|
|
|
29
30
|
indexPath: string;
|
|
30
31
|
};
|
|
31
32
|
export type VuePageRequestInput<Component extends VueComponent> = VuePageRenderOptions & VuePageClientMode & {
|
|
33
|
+
/** @internal Build-generated mobile identity. Application code must not set this. */
|
|
34
|
+
__absoluteMobile?: AbsoluteMobileBuildPageMetadata;
|
|
32
35
|
headTag?: `<head>${string}</head>`;
|
|
33
36
|
pagePath: string;
|
|
34
37
|
Page?: Component;
|