@absolutejs/absolute 0.20.0-beta.6 → 0.20.0-beta.60

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.
Files changed (179) hide show
  1. package/README.md +205 -0
  2. package/dist/angular/browser.js +392 -405
  3. package/dist/angular/browser.js.map +3 -3
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +7 -7
  5. package/dist/angular/components/core/streamingSlotRegistry.js +4 -4
  6. package/dist/angular/index.js +379 -321
  7. package/dist/angular/index.js.map +8 -7
  8. package/dist/angular/server.js +133 -61
  9. package/dist/angular/server.js.map +8 -7
  10. package/dist/build.js +2336 -1347
  11. package/dist/build.js.map +22 -17
  12. package/dist/cli/config/client.js +12 -12
  13. package/dist/cli/config/server.js +1140 -1091
  14. package/dist/cli/index.js +9621 -2093
  15. package/dist/client/chunks/angularPatch-arh4sr68.js +157 -0
  16. package/dist/client/chunks/angularPatch-arh4sr68.js.map +10 -0
  17. package/dist/client/chunks/index-5py90ctf.js +87 -0
  18. package/dist/client/chunks/index-5py90ctf.js.map +10 -0
  19. package/dist/client/chunks/index-m35nbkdp.js +374 -0
  20. package/dist/client/chunks/index-m35nbkdp.js.map +12 -0
  21. package/dist/client/chunks/index-qxjc7kc5.js +12 -0
  22. package/dist/client/chunks/index-qxjc7kc5.js.map +9 -0
  23. package/dist/client/chunks/islands-xj2n8nwf.js +281 -0
  24. package/dist/client/chunks/islands-xj2n8nwf.js.map +14 -0
  25. package/dist/client/chunks/react-pdg4325x.js +65 -0
  26. package/dist/client/chunks/react-pdg4325x.js.map +10 -0
  27. package/dist/client/chunks/svelte-s0c964kb.js +19 -0
  28. package/dist/client/chunks/svelte-s0c964kb.js.map +10 -0
  29. package/dist/client/chunks/vue-rdskrnyg.js +24 -0
  30. package/dist/client/chunks/vue-rdskrnyg.js.map +10 -0
  31. package/dist/client/index.js +73 -841
  32. package/dist/client/index.js.map +7 -20
  33. package/dist/core/streamingSlotRegistrar.js +15 -13
  34. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  35. package/dist/core/streamingSlotRegistry.js +11 -9
  36. package/dist/core/streamingSlotRegistry.js.map +2 -2
  37. package/dist/dev/client/hmrClient.ts +35 -3
  38. package/dist/dev/client/hmrTiming.ts +6 -0
  39. package/dist/dev/client/syncDevtools.ts +237 -0
  40. package/dist/dev/serverBootstrap.js +28 -0
  41. package/dist/image-client/imageClient.js +7 -7
  42. package/dist/index.js +3748 -2361
  43. package/dist/index.js.map +38 -30
  44. package/dist/islands/browser.js +11 -25
  45. package/dist/islands/browser.js.map +2 -2
  46. package/dist/islands/index.js +55 -52
  47. package/dist/islands/index.js.map +5 -4
  48. package/dist/mobile/browser.js +429 -20
  49. package/dist/mobile/browser.js.map +8 -5
  50. package/dist/mobile/index.js +10626 -3132
  51. package/dist/mobile/index.js.map +47 -18
  52. package/dist/mobile/remoteMacAgentEntry.js +1374 -14
  53. package/dist/mobile/shellAuth.js +36 -0
  54. package/dist/mobile/shellBootstrap.js +1800 -0
  55. package/dist/mobile/shellExpoAuth.js +163 -0
  56. package/dist/mobile/shellExpoDevices.js +77 -0
  57. package/dist/mobile/shellExpoSync.js +104 -0
  58. package/dist/mobile/shellSync.js +184 -0
  59. package/dist/mobile/shellUpdate.js +456 -0
  60. package/dist/mobile/uiPrimitives.js +264 -0
  61. package/dist/react/browser.js +17 -59
  62. package/dist/react/browser.js.map +2 -2
  63. package/dist/react/components/browser/index.js +107 -107
  64. package/dist/react/components/index.js +118 -116
  65. package/dist/react/components/index.js.map +2 -2
  66. package/dist/react/hooks/index.js +11 -25
  67. package/dist/react/hooks/index.js.map +2 -2
  68. package/dist/react/index.js +110 -67
  69. package/dist/react/index.js.map +8 -7
  70. package/dist/react/jsxDevRuntimeCompat.js +11 -9
  71. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  72. package/dist/react/jsxRuntimeCompat.js +11 -9
  73. package/dist/react/jsxRuntimeCompat.js.map +2 -2
  74. package/dist/react/router/browser.js +9 -7
  75. package/dist/react/router/browser.js.map +2 -2
  76. package/dist/react/router/index.js +9 -7
  77. package/dist/react/router/index.js.map +2 -2
  78. package/dist/react/server.js +67 -11
  79. package/dist/react/server.js.map +7 -6
  80. package/dist/src/build/pwa.d.ts +16 -0
  81. package/dist/src/cli/config/server.d.ts +1 -1
  82. package/dist/src/cli/instanceStatus.d.ts +1 -0
  83. package/dist/src/cli/scripts/dev.d.ts +2 -0
  84. package/dist/src/client/browserTranslation.d.ts +19 -0
  85. package/dist/src/client/index.d.ts +1 -0
  86. package/dist/src/core/browserTranslation.d.ts +6 -0
  87. package/dist/src/core/devBuild.d.ts +1 -0
  88. package/dist/src/core/prepare.d.ts +376 -0
  89. package/dist/src/dev/clientManager.d.ts +1 -0
  90. package/dist/src/dev/devCert.d.ts +6 -4
  91. package/dist/src/dev/serverEntryCopies.d.ts +3 -0
  92. package/dist/src/ember/browser.d.ts +0 -16
  93. package/dist/src/mobile/adaptiveShell.d.ts +27 -0
  94. package/dist/src/mobile/androidEmulatorController.d.ts +8 -1
  95. package/dist/src/mobile/androidRelease.d.ts +9 -2
  96. package/dist/src/mobile/androidTestReport.d.ts +14 -0
  97. package/dist/src/mobile/androidUpgradeConformance.d.ts +47 -0
  98. package/dist/src/mobile/androidWebView.d.ts +1 -0
  99. package/dist/src/mobile/browser.d.ts +2 -0
  100. package/dist/src/mobile/capacitorBundle.d.ts +18 -0
  101. package/dist/src/mobile/ciWorkflow.d.ts +26 -0
  102. package/dist/src/mobile/config.d.ts +9 -1
  103. package/dist/src/mobile/devDeviceAdapter.d.ts +3 -0
  104. package/dist/src/mobile/deviceCapabilities.d.ts +49 -0
  105. package/dist/src/mobile/expoBridge.d.ts +91 -0
  106. package/dist/src/mobile/expoDevController.d.ts +56 -0
  107. package/dist/src/mobile/expoProject.d.ts +16 -0
  108. package/dist/src/mobile/index.d.ts +23 -0
  109. package/dist/src/mobile/iosDeviceAcceptance.d.ts +32 -0
  110. package/dist/src/mobile/iosPhysicalDeviceTransport.d.ts +16 -0
  111. package/dist/src/mobile/iosRelease.d.ts +63 -3
  112. package/dist/src/mobile/iosSimulatorController.d.ts +20 -2
  113. package/dist/src/mobile/iosTestReport.d.ts +24 -0
  114. package/dist/src/mobile/mobileBundleInspection.d.ts +63 -0
  115. package/dist/src/mobile/mobileInspect.d.ts +142 -0
  116. package/dist/src/mobile/mobilePreview.d.ts +174 -0
  117. package/dist/src/mobile/mobilePreviewClient.d.ts +1 -0
  118. package/dist/src/mobile/nativeAuth.d.ts +6 -0
  119. package/dist/src/mobile/nativeBackgroundSync.d.ts +4 -0
  120. package/dist/src/mobile/nativeDeviceCapabilities.d.ts +6 -0
  121. package/dist/src/mobile/nativeRoute.d.ts +13 -0
  122. package/dist/src/mobile/nativeTestReport.d.ts +91 -0
  123. package/dist/src/mobile/nativeUpdates.d.ts +4 -0
  124. package/dist/src/mobile/navigationLifecycle.d.ts +36 -0
  125. package/dist/src/mobile/navigationState.d.ts +53 -0
  126. package/dist/src/mobile/pageProtocol.d.ts +2 -0
  127. package/dist/src/mobile/releaseDoctor.d.ts +23 -1
  128. package/dist/src/mobile/remoteMacProtocol.d.ts +134 -1
  129. package/dist/src/mobile/remoteMacWire.d.ts +1 -1
  130. package/dist/src/mobile/shellAuth.d.ts +8 -1
  131. package/dist/src/mobile/shellBootstrap.d.ts +15 -2
  132. package/dist/src/mobile/shellExpoAuth.d.ts +12 -0
  133. package/dist/src/mobile/shellExpoDevices.d.ts +3 -0
  134. package/dist/src/mobile/shellExpoSync.d.ts +18 -0
  135. package/dist/src/mobile/shellHttp.d.ts +2 -0
  136. package/dist/src/mobile/shellPush.d.ts +11 -0
  137. package/dist/src/mobile/shellSync.d.ts +46 -1
  138. package/dist/src/mobile/shellUpdate.d.ts +2 -0
  139. package/dist/src/mobile/syncRemediation.d.ts +10 -0
  140. package/dist/src/mobile/syncSchema.d.ts +9 -0
  141. package/dist/src/mobile/transport.d.ts +14 -0
  142. package/dist/src/mobile/uiPrimitives.d.ts +37 -0
  143. package/dist/src/mobile/updateClient.d.ts +40 -0
  144. package/dist/src/mobile/updateProtocol.d.ts +51 -0
  145. package/dist/src/mobile/updatePublisher.d.ts +66 -0
  146. package/dist/src/mobile/updateRollout.d.ts +16 -0
  147. package/dist/src/mobile/updateRuntime.d.ts +27 -0
  148. package/dist/src/mobile/updateSigning.d.ts +20 -0
  149. package/dist/src/plugins/hmr.d.ts +3 -0
  150. package/dist/src/plugins/imageOptimizer.d.ts +1 -1
  151. package/dist/src/react/hooks/useMediaQuery.d.ts +1 -1
  152. package/dist/src/utils/imageProcessing.d.ts +3 -0
  153. package/dist/src/utils/loadConfig.d.ts +1 -0
  154. package/dist/src/utils/logger.d.ts +1 -0
  155. package/dist/src/utils/startupBanner.d.ts +1 -0
  156. package/dist/src/utils/userAgentFunctions.d.ts +1 -1
  157. package/dist/src/vue/browser.d.ts +1 -0
  158. package/dist/src/vue/browserTranslation.d.ts +5 -0
  159. package/dist/src/vue/index.d.ts +1 -0
  160. package/dist/svelte/browser.js +12 -26
  161. package/dist/svelte/browser.js.map +2 -2
  162. package/dist/svelte/index.js +104 -61
  163. package/dist/svelte/index.js.map +8 -7
  164. package/dist/svelte/server.js +84 -28
  165. package/dist/svelte/server.js.map +7 -6
  166. package/dist/types/build.d.ts +62 -3
  167. package/dist/types/cli.d.ts +1 -0
  168. package/dist/types/messages.d.ts +1 -1
  169. package/dist/vue/browser.js +116 -56
  170. package/dist/vue/browser.js.map +5 -3
  171. package/dist/vue/components/Image.js +9 -7
  172. package/dist/vue/components/Image.js.map +2 -2
  173. package/dist/vue/components/index.js +11 -9
  174. package/dist/vue/components/index.js.map +2 -2
  175. package/dist/vue/index.js +211 -94
  176. package/dist/vue/index.js.map +10 -7
  177. package/dist/vue/server.js +69 -13
  178. package/dist/vue/server.js.map +7 -6
  179. package/package.json +40 -14
@@ -0,0 +1,24 @@
1
+ import { type AbsoluteNativeAutomatedRun, type AbsoluteNativeTestReport } from './nativeTestReport';
2
+ export type AbsoluteIosAutomatedResult = Omit<AbsoluteNativeAutomatedRun, 'platform' | 'targetId' | 'targetKind'> & {
3
+ targetId: string;
4
+ targetKind: 'device' | 'simulator';
5
+ };
6
+ export type AbsoluteIosPartnerReport = AbsoluteNativeTestReport;
7
+ type CreateAbsoluteIosPartnerReportOptions = {
8
+ absolutejsVersion: string;
9
+ bunVersion: string;
10
+ generatedAt?: string;
11
+ macosVersion: string;
12
+ run: AbsoluteIosAutomatedResult;
13
+ xcodeVersion: string;
14
+ };
15
+ export declare const readPackageVersionForIosReport: (packageJsonPath: string) => Promise<string>;
16
+ export declare const renderAbsoluteIosPartnerReport: (report: AbsoluteNativeTestReport) => string;
17
+ export declare const sanitizeIosReportText: (value: string) => string;
18
+ export declare const writeAbsoluteIosPartnerReport: (directory: string, report: AbsoluteNativeTestReport) => Promise<{
19
+ directory: string;
20
+ jsonPath: string;
21
+ markdownPath: string;
22
+ }>;
23
+ export declare const createAbsoluteIosPartnerReport: (options: CreateAbsoluteIosPartnerReportOptions) => AbsoluteNativeTestReport;
24
+ export {};
@@ -0,0 +1,63 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export type MobileBundleInspection = {
3
+ appBuild?: string;
4
+ auth?: boolean;
5
+ capabilities?: string[];
6
+ entryResolved?: boolean;
7
+ frameworks?: string[];
8
+ issue?: string;
9
+ manifest: string;
10
+ pageCount?: number;
11
+ routeCount?: number;
12
+ runtime?: string;
13
+ nativeRuntime?: string;
14
+ status: 'invalid' | 'missing' | 'valid';
15
+ sync?: boolean;
16
+ updates?: boolean;
17
+ };
18
+ export declare const inspectAbsoluteMobileBundle: (config: NormalizedAbsoluteMobileConfig, projectRoot: string) => Promise<{
19
+ manifest: string;
20
+ status: "missing";
21
+ appBuild?: undefined;
22
+ auth?: undefined;
23
+ capabilities?: undefined;
24
+ entryResolved?: undefined;
25
+ frameworks?: undefined;
26
+ nativeRuntime?: undefined;
27
+ pageCount?: undefined;
28
+ routeCount?: undefined;
29
+ runtime?: undefined;
30
+ sync?: undefined;
31
+ updates?: undefined;
32
+ issue?: undefined;
33
+ } | {
34
+ appBuild: string;
35
+ auth: boolean;
36
+ capabilities: string[];
37
+ entryResolved: true;
38
+ frameworks: string[];
39
+ manifest: string;
40
+ nativeRuntime: string;
41
+ pageCount: number;
42
+ routeCount: number;
43
+ runtime: string;
44
+ status: "valid";
45
+ sync: boolean;
46
+ updates: boolean;
47
+ issue?: undefined;
48
+ } | {
49
+ issue: string;
50
+ manifest: string;
51
+ status: "invalid";
52
+ appBuild?: undefined;
53
+ auth?: undefined;
54
+ capabilities?: undefined;
55
+ entryResolved?: undefined;
56
+ frameworks?: undefined;
57
+ nativeRuntime?: undefined;
58
+ pageCount?: undefined;
59
+ routeCount?: undefined;
60
+ runtime?: undefined;
61
+ sync?: undefined;
62
+ updates?: undefined;
63
+ }>;
@@ -0,0 +1,142 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ import { inspectAbsoluteMobileRelease } from './releaseDoctor';
3
+ import { type MobileBundleInspection } from './mobileBundleInspection';
4
+ export declare const ABSOLUTE_MOBILE_INSPECTION_FORMAT: 1;
5
+ type MobilePackageInspection = {
6
+ declared: string;
7
+ installed?: string;
8
+ name: string;
9
+ };
10
+ export type AbsoluteMobileProjectInspection = {
11
+ bundle: MobileBundleInspection;
12
+ capabilities: {
13
+ current: string[];
14
+ embeddedMatchesCurrent?: boolean;
15
+ issue?: string;
16
+ plugins: string[];
17
+ };
18
+ config: {
19
+ appId: string;
20
+ appName: string;
21
+ bundleDirectory: string;
22
+ deepLinkHosts: string[];
23
+ deepLinkScheme?: string;
24
+ engine: 'capacitor' | 'expo';
25
+ entry: string;
26
+ iosVersion?: string;
27
+ nativeProjectDirectory: string;
28
+ platforms: string[];
29
+ productionOrigin: string;
30
+ };
31
+ format: typeof ABSOLUTE_MOBILE_INSPECTION_FORMAT;
32
+ nativeProjects: Array<{
33
+ initialized: boolean;
34
+ path: string;
35
+ platform: string;
36
+ }>;
37
+ packages: MobilePackageInspection[];
38
+ release: {
39
+ checks: Array<{
40
+ id: string;
41
+ status: 'fail' | 'pass' | 'warn';
42
+ }>;
43
+ ready: boolean;
44
+ };
45
+ runtime: {
46
+ absolutejs: string;
47
+ };
48
+ };
49
+ export type InspectAbsoluteMobileProjectOptions = {
50
+ absolutejsVersion?: string;
51
+ inspectRelease?: typeof inspectAbsoluteMobileRelease;
52
+ };
53
+ export declare const inspectAbsoluteMobileProject: (config: NormalizedAbsoluteMobileConfig, projectRoot: string, options?: InspectAbsoluteMobileProjectOptions) => Promise<{
54
+ bundle: {
55
+ manifest: string;
56
+ status: "missing";
57
+ appBuild?: undefined;
58
+ auth?: undefined;
59
+ capabilities?: undefined;
60
+ entryResolved?: undefined;
61
+ frameworks?: undefined;
62
+ nativeRuntime?: undefined;
63
+ pageCount?: undefined;
64
+ routeCount?: undefined;
65
+ runtime?: undefined;
66
+ sync?: undefined;
67
+ updates?: undefined;
68
+ issue?: undefined;
69
+ } | {
70
+ appBuild: string;
71
+ auth: boolean;
72
+ capabilities: string[];
73
+ entryResolved: true;
74
+ frameworks: string[];
75
+ manifest: string;
76
+ nativeRuntime: string;
77
+ pageCount: number;
78
+ routeCount: number;
79
+ runtime: string;
80
+ status: "valid";
81
+ sync: boolean;
82
+ updates: boolean;
83
+ issue?: undefined;
84
+ } | {
85
+ issue: string;
86
+ manifest: string;
87
+ status: "invalid";
88
+ appBuild?: undefined;
89
+ auth?: undefined;
90
+ capabilities?: undefined;
91
+ entryResolved?: undefined;
92
+ frameworks?: undefined;
93
+ nativeRuntime?: undefined;
94
+ pageCount?: undefined;
95
+ routeCount?: undefined;
96
+ runtime?: undefined;
97
+ sync?: undefined;
98
+ updates?: undefined;
99
+ };
100
+ capabilities: {
101
+ plugins: string[];
102
+ issue?: string | undefined;
103
+ embeddedMatchesCurrent?: boolean | undefined;
104
+ current: string[];
105
+ };
106
+ config: {
107
+ appId: string;
108
+ appName: string;
109
+ bundleDirectory: string;
110
+ deepLinkHosts: string[];
111
+ deepLinkScheme: string | undefined;
112
+ engine: "capacitor" | "expo";
113
+ entry: string;
114
+ iosVersion: string | undefined;
115
+ nativeProjectDirectory: string;
116
+ platforms: import("..").MobilePlatform[];
117
+ productionOrigin: string;
118
+ };
119
+ format: 1;
120
+ nativeProjects: {
121
+ initialized: boolean;
122
+ path: string;
123
+ platform: import("..").MobilePlatform;
124
+ }[];
125
+ packages: {
126
+ name: string;
127
+ installed?: string | undefined;
128
+ declared: string;
129
+ }[];
130
+ release: {
131
+ checks: {
132
+ id: string;
133
+ status: "pass" | "warn" | "fail";
134
+ }[];
135
+ ready: boolean;
136
+ };
137
+ runtime: {
138
+ absolutejs: string;
139
+ };
140
+ }>;
141
+ export declare const renderAbsoluteMobileProjectInspection: (report: AbsoluteMobileProjectInspection) => string;
142
+ export {};
@@ -0,0 +1,174 @@
1
+ import { Elysia } from 'elysia';
2
+ import type { MobileConfig } from '../../types/build';
3
+ export declare const ABSOLUTE_MOBILE_PREVIEW_PATH: "/__absolute/mobile-preview";
4
+ export declare const absoluteMobilePreviewDocument: (mobile: MobileConfig) => string;
5
+ export declare const createAbsoluteMobilePreviewPlugin: (mobile: MobileConfig | undefined) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
6
+ typebox: {};
7
+ error: [];
8
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral> | import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
9
+ typebox: {};
10
+ error: [];
11
+ }, import("elysia/types").DefaultMetadata, {
12
+ __absolute: {
13
+ "mobile-preview": {
14
+ get: {
15
+ body: unknown;
16
+ params: {};
17
+ query: unknown;
18
+ headers: unknown;
19
+ response: {
20
+ 200: Response;
21
+ };
22
+ error: never;
23
+ };
24
+ };
25
+ };
26
+ }, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "post", "/__absolute/mobile-preview-telemetry", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/__absolute/mobile-preview-telemetry">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ body, status }: {
27
+ body: unknown;
28
+ query: Record<string, string | undefined>;
29
+ params: {};
30
+ headers: Record<string, string | undefined>;
31
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
32
+ server: import("elysia").Server | null;
33
+ redirect: import("elysia").redirect;
34
+ set: {
35
+ headers: import("elysia").HTTPHeaders;
36
+ status?: number | keyof import("elysia").StatusMap;
37
+ cookie?: Record<string, import("elysia").BaseCookie>;
38
+ };
39
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 204 | 101 | 102 | 103 | 201 | 202 | 203 | 205 | 206 | 207 | 208 | 301 | 302 | 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 ? {
40
+ readonly 100: "Continue";
41
+ readonly 101: "Switching Protocols";
42
+ readonly 102: "Processing";
43
+ readonly 103: "Early Hints";
44
+ readonly 200: "OK";
45
+ readonly 201: "Created";
46
+ readonly 202: "Accepted";
47
+ readonly 203: "Non-Authoritative Information";
48
+ readonly 204: "No Content";
49
+ readonly 205: "Reset Content";
50
+ readonly 206: "Partial Content";
51
+ readonly 207: "Multi-Status";
52
+ readonly 208: "Already Reported";
53
+ readonly 300: "Multiple Choices";
54
+ readonly 301: "Moved Permanently";
55
+ readonly 302: "Found";
56
+ readonly 303: "See Other";
57
+ readonly 304: "Not Modified";
58
+ readonly 307: "Temporary Redirect";
59
+ readonly 308: "Permanent Redirect";
60
+ readonly 400: "Bad Request";
61
+ readonly 401: "Unauthorized";
62
+ readonly 402: "Payment Required";
63
+ readonly 403: "Forbidden";
64
+ readonly 404: "Not Found";
65
+ readonly 405: "Method Not Allowed";
66
+ readonly 406: "Not Acceptable";
67
+ readonly 407: "Proxy Authentication Required";
68
+ readonly 408: "Request Timeout";
69
+ readonly 409: "Conflict";
70
+ readonly 410: "Gone";
71
+ readonly 411: "Length Required";
72
+ readonly 412: "Precondition Failed";
73
+ readonly 413: "Payload Too Large";
74
+ readonly 414: "URI Too Long";
75
+ readonly 415: "Unsupported Media Type";
76
+ readonly 416: "Range Not Satisfiable";
77
+ readonly 417: "Expectation Failed";
78
+ readonly 418: "I'm a teapot";
79
+ readonly 420: "Enhance Your Calm";
80
+ readonly 421: "Misdirected Request";
81
+ readonly 422: "Unprocessable Content";
82
+ readonly 423: "Locked";
83
+ readonly 424: "Failed Dependency";
84
+ readonly 425: "Too Early";
85
+ readonly 426: "Upgrade Required";
86
+ readonly 428: "Precondition Required";
87
+ readonly 429: "Too Many Requests";
88
+ readonly 431: "Request Header Fields Too Large";
89
+ readonly 451: "Unavailable For Legal Reasons";
90
+ readonly 500: "Internal Server Error";
91
+ readonly 501: "Not Implemented";
92
+ readonly 502: "Bad Gateway";
93
+ readonly 503: "Service Unavailable";
94
+ readonly 504: "Gateway Timeout";
95
+ readonly 505: "HTTP Version Not Supported";
96
+ readonly 506: "Variant Also Negotiates";
97
+ readonly 507: "Insufficient Storage";
98
+ readonly 508: "Loop Detected";
99
+ readonly 510: "Not Extended";
100
+ readonly 511: "Network Authentication Required";
101
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
102
+ readonly Continue: 100;
103
+ readonly "Switching Protocols": 101;
104
+ readonly Processing: 102;
105
+ readonly "Early Hints": 103;
106
+ readonly OK: 200;
107
+ readonly Created: 201;
108
+ readonly Accepted: 202;
109
+ readonly "Non-Authoritative Information": 203;
110
+ readonly "No Content": 204;
111
+ readonly "Reset Content": 205;
112
+ readonly "Partial Content": 206;
113
+ readonly "Multi-Status": 207;
114
+ readonly "Already Reported": 208;
115
+ readonly "Multiple Choices": 300;
116
+ readonly "Moved Permanently": 301;
117
+ readonly Found: 302;
118
+ readonly "See Other": 303;
119
+ readonly "Not Modified": 304;
120
+ readonly "Temporary Redirect": 307;
121
+ readonly "Permanent Redirect": 308;
122
+ readonly "Bad Request": 400;
123
+ readonly Unauthorized: 401;
124
+ readonly "Payment Required": 402;
125
+ readonly Forbidden: 403;
126
+ readonly "Not Found": 404;
127
+ readonly "Method Not Allowed": 405;
128
+ readonly "Not Acceptable": 406;
129
+ readonly "Proxy Authentication Required": 407;
130
+ readonly "Request Timeout": 408;
131
+ readonly Conflict: 409;
132
+ readonly Gone: 410;
133
+ readonly "Length Required": 411;
134
+ readonly "Precondition Failed": 412;
135
+ readonly "Payload Too Large": 413;
136
+ readonly "URI Too Long": 414;
137
+ readonly "Unsupported Media Type": 415;
138
+ readonly "Range Not Satisfiable": 416;
139
+ readonly "Expectation Failed": 417;
140
+ readonly "I'm a teapot": 418;
141
+ readonly "Enhance Your Calm": 420;
142
+ readonly "Misdirected Request": 421;
143
+ readonly "Unprocessable Content": 422;
144
+ readonly Locked: 423;
145
+ readonly "Failed Dependency": 424;
146
+ readonly "Too Early": 425;
147
+ readonly "Upgrade Required": 426;
148
+ readonly "Precondition Required": 428;
149
+ readonly "Too Many Requests": 429;
150
+ readonly "Request Header Fields Too Large": 431;
151
+ readonly "Unavailable For Legal Reasons": 451;
152
+ readonly "Internal Server Error": 500;
153
+ readonly "Not Implemented": 501;
154
+ readonly "Bad Gateway": 502;
155
+ readonly "Service Unavailable": 503;
156
+ readonly "Gateway Timeout": 504;
157
+ readonly "HTTP Version Not Supported": 505;
158
+ readonly "Variant Also Negotiates": 506;
159
+ readonly "Insufficient Storage": 507;
160
+ readonly "Loop Detected": 508;
161
+ readonly "Not Extended": 510;
162
+ readonly "Network Authentication Required": 511;
163
+ }[Code] : Code>;
164
+ defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/__absolute/mobile-preview-telemetry">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
165
+ derive: {};
166
+ }>>) => import("elysia/types").MaybePromise<void>;
167
+ readonly path: string;
168
+ route?: string | undefined;
169
+ rid?: string | undefined;
170
+ request: Request;
171
+ store: {};
172
+ }) => import("elysia").ElysiaStatus<400, {
173
+ readonly error: "invalid-preview-telemetry";
174
+ }, 400> | import("elysia").ElysiaStatus<204, "No Content", 204>>;
@@ -0,0 +1 @@
1
+ export declare const installAbsoluteMobilePreview: () => void;
@@ -1,5 +1,11 @@
1
1
  import type { NormalizedAbsoluteMobileConfig } from './config';
2
2
  export declare const ABSOLUTE_AUTH_PACKAGE: "@absolutejs/auth";
3
+ export declare const ABSOLUTE_EXPO_AUTH_CORE_VERSION: "0.75.6";
4
+ export declare const ABSOLUTE_EXPO_AUTH_PACKAGE: "@absolutejs/auth-expo";
5
+ export declare const ABSOLUTE_EXPO_AUTH_VERSION: "0.0.2";
6
+ export declare const ABSOLUTE_EXPO_SYNC_CORE_VERSION: "2.31.0";
7
+ export declare const ABSOLUTE_EXPO_SYNC_PACKAGE: "@absolutejs/sync-expo";
8
+ export declare const ABSOLUTE_EXPO_SYNC_VERSION: "0.0.2";
3
9
  export declare const ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV: "ABSOLUTE_AUTH_NATIVE_CLIENTS";
4
10
  export declare const ABSOLUTE_NATIVE_AUTH_SCOPES: readonly ["openid", "profile"];
5
11
  export declare const ABSOLUTE_SYNC_PACKAGE: "@absolutejs/sync";
@@ -0,0 +1,4 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export declare const applyAbsoluteNativeBackgroundSync: (projectRoot: string, config: NormalizedAbsoluteMobileConfig, platforms?: import("..").MobilePlatform[]) => Promise<{
3
+ changed: boolean;
4
+ }>;
@@ -0,0 +1,6 @@
1
+ import type { MobilePlatform } from '../../types/build';
2
+ import type { NormalizedAbsoluteMobileConfig } from './config';
3
+ import { type AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
4
+ export declare const applyAbsoluteNativeDeviceCapabilities: (projectRoot: string, config: NormalizedAbsoluteMobileConfig, platforms?: readonly MobilePlatform[], plan?: AbsoluteDeviceCapabilityPlan) => Promise<{
5
+ changed: MobilePlatform[];
6
+ }>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Props supplied automatically to an application-owned Expo native route.
3
+ * Import the existing AbsoluteJS page-props type as `PageProps` so server and
4
+ * native rendering stay on the same compile-time contract.
5
+ */
6
+ export type AbsoluteNativeRouteProps<PageProps extends object, Params extends object = Record<string, string | string[] | undefined>> = {
7
+ /** Live props produced by the ordinary server route for the current URL. */
8
+ pageProps: Readonly<PageProps>;
9
+ /** Expo Router path and query parameters for the current native route. */
10
+ params: Readonly<Params>;
11
+ /** Re-run the trusted server route without remounting the native screen. */
12
+ reload: () => void;
13
+ };
@@ -0,0 +1,91 @@
1
+ import type { AbsoluteAndroidUpgradeConformanceResult } from './androidUpgradeConformance';
2
+ export type AbsoluteNativeReportResult = 'FAIL' | 'NOT_RUN' | 'PASS' | 'SKIPPED';
3
+ export type AbsoluteNativeReportCheck = {
4
+ details: string;
5
+ evidence?: string;
6
+ id: string;
7
+ result: AbsoluteNativeReportResult;
8
+ };
9
+ export type AbsoluteNativeHmrResult = {
10
+ clientMs?: number;
11
+ durationMs: number;
12
+ outcome: 'applied' | 'failed' | 'reloaded';
13
+ serverMs?: number;
14
+ };
15
+ export type AbsoluteNativeSyncMigrationResult = {
16
+ durationMs: number;
17
+ failedAttempt: {
18
+ code: 'INVALID_PLAN' | 'MIGRATION_MISSING' | 'SCHEMA_TOO_NEW' | 'SCHEMA_TOO_OLD' | 'UNKNOWN';
19
+ storedVersion?: number;
20
+ targetVersion?: number;
21
+ };
22
+ outcome: 'fail' | 'pass';
23
+ recovery: {
24
+ storedVersion: number;
25
+ targetVersion: number;
26
+ };
27
+ state: {
28
+ authCredential: boolean;
29
+ pendingOperations: boolean;
30
+ rollbackPreserved: boolean;
31
+ schemaAdvanced: boolean;
32
+ };
33
+ };
34
+ export type AbsoluteNativeAutomatedRun = {
35
+ appId: string;
36
+ deviceAcceptance?: {
37
+ https: boolean;
38
+ relaunchMs: number;
39
+ remote: boolean;
40
+ };
41
+ durationMs: number;
42
+ error?: string;
43
+ hmr?: AbsoluteNativeHmrResult;
44
+ hmrConnected: boolean;
45
+ platform: 'android' | 'ios';
46
+ port: number;
47
+ routes?: string[];
48
+ screenshot?: string;
49
+ status: 'fail' | 'pass';
50
+ syncMigration?: AbsoluteNativeSyncMigrationResult;
51
+ targetId: string;
52
+ targetKind: 'device' | 'emulator' | 'simulator';
53
+ upgrade?: AbsoluteAndroidUpgradeConformanceResult;
54
+ };
55
+ export type AbsoluteNativeTestReport = {
56
+ automatedChecks: AbsoluteNativeReportCheck[];
57
+ generatedAt: string;
58
+ manualChecks: AbsoluteNativeReportCheck[];
59
+ metadata: Record<string, string> & {
60
+ absolutejsVersion: string;
61
+ bunVersion: string;
62
+ provider: 'capacitor';
63
+ };
64
+ overallResult: 'FAIL' | 'INCOMPLETE';
65
+ platform: 'android' | 'ios';
66
+ reportVersion: 1;
67
+ run: AbsoluteNativeAutomatedRun;
68
+ };
69
+ export type AbsoluteNativeManualCheckDefinition = readonly [
70
+ id: string,
71
+ details: string
72
+ ];
73
+ type CreateAbsoluteNativeTestReportOptions = {
74
+ automatedChecks?: AbsoluteNativeReportCheck[];
75
+ generatedAt?: string;
76
+ manualChecks: readonly AbsoluteNativeManualCheckDefinition[];
77
+ manualCheckResults?: Record<string, AbsoluteNativeReportCheck>;
78
+ metadata: AbsoluteNativeTestReport['metadata'];
79
+ run: AbsoluteNativeAutomatedRun;
80
+ };
81
+ export declare const sanitizeNativeReportText: (value: string) => string;
82
+ export declare const createAbsoluteNativeAutomatedChecks: (run: AbsoluteNativeAutomatedRun) => AbsoluteNativeReportCheck[];
83
+ export declare const createAbsoluteNativeTestReport: (options: CreateAbsoluteNativeTestReportOptions) => AbsoluteNativeTestReport;
84
+ export declare const readPackageVersionForNativeReport: (packageJsonPath: string) => Promise<string>;
85
+ export declare const renderAbsoluteNativeTestReport: (report: AbsoluteNativeTestReport) => string;
86
+ export declare const writeAbsoluteNativeTestReport: (directory: string, report: AbsoluteNativeTestReport) => Promise<{
87
+ directory: string;
88
+ jsonPath: string;
89
+ markdownPath: string;
90
+ }>;
91
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export declare const applyAbsoluteNativeUpdates: (config: NormalizedAbsoluteMobileConfig, platforms?: import("..").MobilePlatform[]) => Promise<{
3
+ changed: boolean;
4
+ }>;
@@ -0,0 +1,36 @@
1
+ export type AbsoluteMobileNavigationHistoryMode = 'none' | 'push' | 'replace';
2
+ export type AbsoluteMobileNavigationRequest = {
3
+ direction: 'back' | 'forward' | 'replace';
4
+ from: string;
5
+ historyMode: AbsoluteMobileNavigationHistoryMode;
6
+ path: string;
7
+ };
8
+ export type AbsoluteMobileNavigationFailurePhase = 'commit' | 'load';
9
+ export type AbsoluteMobileNavigationResult = {
10
+ kind: 'cancelled';
11
+ } | {
12
+ kind: 'committed';
13
+ } | {
14
+ kind: 'failed';
15
+ error: unknown;
16
+ phase: AbsoluteMobileNavigationFailurePhase;
17
+ };
18
+ export type AbsoluteMobileNavigationCoordinatorOptions<Payload> = {
19
+ commit: (payload: Payload, request: AbsoluteMobileNavigationRequest) => Promise<void>;
20
+ load: (request: AbsoluteMobileNavigationRequest, signal: AbortSignal) => Promise<Payload>;
21
+ onCommit?: (request: AbsoluteMobileNavigationRequest) => void;
22
+ onFailure?: (error: unknown, phase: AbsoluteMobileNavigationFailurePhase, request: AbsoluteMobileNavigationRequest) => void;
23
+ onStart?: (request: AbsoluteMobileNavigationRequest) => void;
24
+ onSuccess?: (request: AbsoluteMobileNavigationRequest) => void;
25
+ };
26
+ export type AbsoluteMobileNavigationCoordinator = {
27
+ cancelPending(): boolean;
28
+ dispose(): void;
29
+ navigate(request: AbsoluteMobileNavigationRequest): Promise<AbsoluteMobileNavigationResult>;
30
+ phase(): 'committing' | 'idle' | 'loading' | 'queued';
31
+ };
32
+ /**
33
+ * Coordinates native-shell route loads. Loads may overlap, but only the latest
34
+ * completed load may enter the serialized document commit boundary.
35
+ */
36
+ export declare const createAbsoluteMobileNavigationCoordinator: <Payload>(options: AbsoluteMobileNavigationCoordinatorOptions<Payload>) => AbsoluteMobileNavigationCoordinator;
@@ -0,0 +1,53 @@
1
+ export type AbsoluteMobileHistoryEntry = {
2
+ absoluteMobile: true;
3
+ entryId: string;
4
+ index: number;
5
+ path: string;
6
+ };
7
+ type ElementLocator = {
8
+ kind: 'id';
9
+ value: string;
10
+ } | {
11
+ kind: 'index';
12
+ index: number;
13
+ } | {
14
+ kind: 'name';
15
+ index: number;
16
+ value: string;
17
+ };
18
+ type ControlSnapshot = {
19
+ checked?: boolean;
20
+ locator: ElementLocator;
21
+ open?: boolean;
22
+ selectionEnd?: number;
23
+ selectionStart?: number;
24
+ tag: string;
25
+ value?: string;
26
+ values?: string[];
27
+ };
28
+ type ScrollSnapshot = {
29
+ left: number;
30
+ locator: ElementLocator;
31
+ top: number;
32
+ };
33
+ export type AbsoluteMobileDocumentSnapshot = {
34
+ controls: ControlSnapshot[];
35
+ focus?: ElementLocator;
36
+ scroll: ScrollSnapshot[];
37
+ window: {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ };
42
+ export declare const createAbsoluteMobileHistoryEntry: (path: string, index: number, entryId?: string) => {
43
+ absoluteMobile: true;
44
+ entryId: string;
45
+ index: number;
46
+ path: string;
47
+ };
48
+ export declare const readAbsoluteMobileHistoryEntry: (value: unknown) => AbsoluteMobileHistoryEntry | undefined;
49
+ /** Captures route-local state in memory. Sensitive credential fields are omitted. */
50
+ export declare const captureAbsoluteMobileDocumentState: () => AbsoluteMobileDocumentSnapshot;
51
+ export declare const restoreAbsoluteMobileDocumentState: (snapshot: AbsoluteMobileDocumentSnapshot) => void;
52
+ export declare const resetAbsoluteMobileDocumentState: () => void;
53
+ export {};
@@ -1,5 +1,6 @@
1
1
  export declare const ABSOLUTE_MOBILE_PAGE_MEDIA_TYPE = "application/vnd.absolute.page+json";
2
2
  export declare const ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION: 1;
3
+ export declare const ABSOLUTE_NATIVE_ROUTE_DATA_MEDIA_TYPE = "application/vnd.absolute.native-route+json";
3
4
  declare const SERVER_ERROR_STATUS = 500;
4
5
  export declare const MOBILE_PAGE_REQUEST_HEADERS: {
5
6
  readonly appBuild: "x-absolute-mobile-app-build";
@@ -81,6 +82,7 @@ type FinalizeAbsoluteMobilePageInput<Props> = {
81
82
  status?: number;
82
83
  };
83
84
  export declare const acceptsAbsoluteMobilePage: (request: Request | undefined) => boolean;
85
+ export declare const acceptsAbsoluteNativeRouteData: (request: Request | undefined) => boolean;
84
86
  export declare const parseAbsoluteMobilePageRequest: (request: Request | undefined) => ParsedMobilePageRequest;
85
87
  export declare const createAbsoluteMobileInvalidRequestResponse: (message: string) => Response;
86
88
  export declare const createAbsoluteMobilePageErrorResponse: (pageId: string) => Response;