@absolutejs/absolute 0.20.0-beta.65 → 0.20.0-beta.66
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +148 -5
- package/dist/index.js +27 -1
- package/dist/index.js.map +3 -3
- package/dist/mobile/index.js +5430 -5
- package/dist/mobile/index.js.map +11 -8
- package/dist/mobile/remoteMacAgentEntry.js +241 -180
- package/dist/mobile/shellAuth.js +16 -0
- package/dist/mobile/shellBootstrap.js +5427 -117
- package/dist/mobile/shellExpoAuth.js +16 -0
- package/dist/mobile/shellExpoDevices.js +16 -0
- package/dist/mobile/shellExpoSync.js +16 -0
- package/dist/mobile/shellSync.js +16 -0
- package/dist/mobile/shellUpdate.js +16 -0
- package/dist/mobile/uiPrimitives.js +16 -0
- package/dist/src/mobile/capacitorBundle.d.ts +8 -1
- package/dist/src/mobile/config.d.ts +6 -0
- package/dist/src/mobile/index.d.ts +1 -0
- package/dist/src/mobile/mobileInspect.d.ts +14 -0
- package/dist/src/mobile/shellBootstrap.d.ts +2 -0
- package/dist/src/mobile/shellObservability.d.ts +11 -0
- package/dist/src/mobile/transport.d.ts +6 -0
- package/dist/types/build.d.ts +12 -0
- package/package.json +9 -7
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/shellExpoDevices.ts
|
|
2
18
|
import { installExpoWebViewDeviceAdapter } from "@absolutejs/devices-expo/bridge";
|
|
3
19
|
var bridge = () => {
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/shellExpoDevices.ts
|
|
2
18
|
import { installExpoWebViewDeviceAdapter } from "@absolutejs/devices-expo/bridge";
|
|
3
19
|
var bridge = () => {
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/shellExpoSync.ts
|
|
2
18
|
import {
|
|
3
19
|
createExpoSyncBridgeLocalStore,
|
package/dist/mobile/shellSync.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/shellSync.ts
|
|
2
18
|
import { lifecycle, network } from "@absolutejs/devices";
|
|
3
19
|
import {
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/shellUpdate.ts
|
|
2
18
|
import { Directory, Filesystem } from "@capacitor/filesystem";
|
|
3
19
|
import { Preferences } from "@capacitor/preferences";
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
16
|
+
|
|
1
17
|
// src/mobile/uiPrimitives.ts
|
|
2
18
|
var STYLE_ID = "absolute-mobile-ui-primitives";
|
|
3
19
|
var NAVIGATION_EVENT = "absolute:navigation-change";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NormalizedAbsoluteMobileConfig } from './config';
|
|
2
|
-
import type { AbsoluteMobileCompatibilityArtifact } from './releaseArtifact';
|
|
2
|
+
import type { AbsoluteMobileCompatibilityArtifact, AbsoluteMobileCompatibilityPage } from './releaseArtifact';
|
|
3
3
|
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
4
4
|
import type { SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
|
|
5
5
|
import type { AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
|
|
@@ -14,6 +14,7 @@ export type AbsoluteCapacitorBundleOptions = {
|
|
|
14
14
|
sync?: boolean;
|
|
15
15
|
syncSchema?: SyncLocalStoreSchemaBundle;
|
|
16
16
|
};
|
|
17
|
+
export declare const materializeAbsoluteMobileSourcemaps: (pages: readonly AbsoluteMobileCompatibilityPage[], appBuild: string, projectRoot: string) => Promise<number>;
|
|
17
18
|
export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCapacitorBundleOptions) => Promise<{
|
|
18
19
|
sync?: {
|
|
19
20
|
background: {
|
|
@@ -35,6 +36,12 @@ export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCa
|
|
|
35
36
|
keyId: string;
|
|
36
37
|
};
|
|
37
38
|
} | undefined;
|
|
39
|
+
observability?: {
|
|
40
|
+
endpoint: string;
|
|
41
|
+
environment?: string;
|
|
42
|
+
project: string;
|
|
43
|
+
sampleRate: number;
|
|
44
|
+
} | undefined;
|
|
38
45
|
appId: string;
|
|
39
46
|
appName: string;
|
|
40
47
|
deepLinkHosts: string[];
|
|
@@ -13,6 +13,12 @@ export type NormalizedAbsoluteMobileConfig = {
|
|
|
13
13
|
expoSdkVersion?: 57;
|
|
14
14
|
iosVersion?: string;
|
|
15
15
|
nativeProjectDirectory: string;
|
|
16
|
+
observability?: {
|
|
17
|
+
endpoint: string;
|
|
18
|
+
environment?: string;
|
|
19
|
+
project: string;
|
|
20
|
+
sampleRate: number;
|
|
21
|
+
};
|
|
16
22
|
platforms: MobilePlatform[];
|
|
17
23
|
productionOrigin: string;
|
|
18
24
|
pushAndroidGoogleServicesFile: string;
|
|
@@ -41,6 +41,7 @@ export * from './releasePublisher';
|
|
|
41
41
|
export * from './routeMetadataTransform';
|
|
42
42
|
export * from './routeMatcher';
|
|
43
43
|
export * from './shellHttp';
|
|
44
|
+
export * from './shellObservability';
|
|
44
45
|
export * from './transport';
|
|
45
46
|
export * from './uiPrimitives';
|
|
46
47
|
export * from './updateClient';
|
|
@@ -27,6 +27,13 @@ export type AbsoluteMobileProjectInspection = {
|
|
|
27
27
|
nativeProjectDirectory: string;
|
|
28
28
|
platforms: string[];
|
|
29
29
|
productionOrigin: string;
|
|
30
|
+
observability?: {
|
|
31
|
+
enabled: true;
|
|
32
|
+
endpoint: string;
|
|
33
|
+
environment?: string;
|
|
34
|
+
project: string;
|
|
35
|
+
sampleRate: number;
|
|
36
|
+
};
|
|
30
37
|
};
|
|
31
38
|
format: typeof ABSOLUTE_MOBILE_INSPECTION_FORMAT;
|
|
32
39
|
nativeProjects: Array<{
|
|
@@ -104,6 +111,13 @@ export declare const inspectAbsoluteMobileProject: (config: NormalizedAbsoluteMo
|
|
|
104
111
|
current: string[];
|
|
105
112
|
};
|
|
106
113
|
config: {
|
|
114
|
+
observability?: {
|
|
115
|
+
enabled: true;
|
|
116
|
+
endpoint: string;
|
|
117
|
+
environment: string | undefined;
|
|
118
|
+
project: string;
|
|
119
|
+
sampleRate: number;
|
|
120
|
+
} | undefined;
|
|
107
121
|
appId: string;
|
|
108
122
|
appName: string;
|
|
109
123
|
bundleDirectory: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AbsoluteMobileFetch, type AbsoluteMobileClientManifest } from './transport';
|
|
2
|
+
import { type AbsoluteMobileObservabilityEngine } from './shellObservability';
|
|
2
3
|
export type AbsoluteMobileShellAuthRuntime = {
|
|
3
4
|
clientId: string;
|
|
4
5
|
fetch: AbsoluteMobileFetch;
|
|
@@ -12,6 +13,7 @@ export type AbsoluteMobileShellPrincipal = {
|
|
|
12
13
|
namespace: string;
|
|
13
14
|
};
|
|
14
15
|
export type AbsoluteMobileShellOptions = {
|
|
16
|
+
engine?: AbsoluteMobileObservabilityEngine;
|
|
15
17
|
createFetch?: (manifest: AbsoluteMobileClientManifest) => AbsoluteMobileFetch;
|
|
16
18
|
createAuth?: (config: NonNullable<AbsoluteMobileClientManifest['auth']>, options?: {
|
|
17
19
|
beforeSignOut?: () => Promise<void> | void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Beacon } from '@absolutejs/beacon';
|
|
2
|
+
import type { AbsoluteMobileClientManifest, AbsoluteMobileFetch } from './transport';
|
|
3
|
+
export type AbsoluteMobileObservabilityEngine = 'capacitor' | 'expo';
|
|
4
|
+
export type AbsoluteMobileShellObservability = {
|
|
5
|
+
beacon: Beacon;
|
|
6
|
+
captureException: (error: unknown, context?: {
|
|
7
|
+
phase?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const installAbsoluteMobileShellObservability: (manifest: AbsoluteMobileClientManifest, engine: AbsoluteMobileObservabilityEngine, fetch?: AbsoluteMobileFetch) => AbsoluteMobileShellObservability | undefined;
|
|
@@ -19,6 +19,12 @@ export type AbsoluteMobileClientManifest = {
|
|
|
19
19
|
entry: string;
|
|
20
20
|
format: typeof ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT;
|
|
21
21
|
nativeRuntime: string;
|
|
22
|
+
observability?: {
|
|
23
|
+
endpoint: string;
|
|
24
|
+
environment?: string;
|
|
25
|
+
project: string;
|
|
26
|
+
sampleRate: number;
|
|
27
|
+
};
|
|
22
28
|
pages: AbsoluteMobileClientPage[];
|
|
23
29
|
productionOrigin: string;
|
|
24
30
|
routes: AbsoluteMobileCompatibilityRoute[];
|
package/dist/types/build.d.ts
CHANGED
|
@@ -55,6 +55,18 @@ type MobileSharedConfig = {
|
|
|
55
55
|
/** Deployed AbsoluteJS origin used for page envelopes and API calls. */
|
|
56
56
|
productionOrigin: string;
|
|
57
57
|
};
|
|
58
|
+
/** Shell-owned production error capture for web-rendered and Expo-native routes.
|
|
59
|
+
* Events go only to the configured route on the trusted production origin. */
|
|
60
|
+
observability?: {
|
|
61
|
+
/** Public project identity expected by the application's observability relay. */
|
|
62
|
+
project: string;
|
|
63
|
+
/** Deployment environment attached to reports, for example `production`. */
|
|
64
|
+
environment?: string;
|
|
65
|
+
/** Root-relative trusted-server error route. Defaults to `/api/observability/errors`. */
|
|
66
|
+
route?: string;
|
|
67
|
+
/** Fraction of errors retained, from 0 through 1. Defaults to 1. */
|
|
68
|
+
sampleRate?: number;
|
|
69
|
+
};
|
|
58
70
|
/** Signed over-the-air web-bundle updates. Native capability changes still require a store build. */
|
|
59
71
|
updates?: {
|
|
60
72
|
/** Maximum time an activated bundle may take to render its first page before native rollback. Defaults to 20 seconds. */
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@absolutejs/auth": "0.75.0",
|
|
11
|
+
"@absolutejs/beacon": "0.7.0-beta.4",
|
|
11
12
|
"@absolutejs/devices": "0.7.0",
|
|
12
13
|
"@absolutejs/devices-capacitor": "0.8.0",
|
|
13
14
|
"@absolutejs/devices-expo": "0.0.2",
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
"@tailwindcss/oxide": "^4.1.0",
|
|
26
27
|
"exact-mirror": "1.2.4",
|
|
27
28
|
"typebox": "1.3.16",
|
|
29
|
+
"web-vitals": "6.0.0",
|
|
28
30
|
"zustand": "^5.0.12"
|
|
29
31
|
},
|
|
30
32
|
"description": "A fullstack meta-framework for building web applications with TypeScript",
|
|
@@ -294,12 +296,12 @@
|
|
|
294
296
|
"main": "./dist/index.js",
|
|
295
297
|
"name": "@absolutejs/absolute",
|
|
296
298
|
"optionalDependencies": {
|
|
297
|
-
"@absolutejs/native-darwin-arm64": "0.20.0-beta.
|
|
298
|
-
"@absolutejs/native-darwin-x64": "0.20.0-beta.
|
|
299
|
-
"@absolutejs/native-linux-arm64": "0.20.0-beta.
|
|
300
|
-
"@absolutejs/native-linux-x64": "0.20.0-beta.
|
|
301
|
-
"@absolutejs/native-windows-arm64": "0.20.0-beta.
|
|
302
|
-
"@absolutejs/native-windows-x64": "0.20.0-beta.
|
|
299
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.66",
|
|
300
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.66",
|
|
301
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.66",
|
|
302
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.66",
|
|
303
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.66",
|
|
304
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.66"
|
|
303
305
|
},
|
|
304
306
|
"overrides": {
|
|
305
307
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -517,7 +519,7 @@
|
|
|
517
519
|
]
|
|
518
520
|
}
|
|
519
521
|
},
|
|
520
|
-
"version": "0.20.0-beta.
|
|
522
|
+
"version": "0.20.0-beta.66",
|
|
521
523
|
"workspaces": [
|
|
522
524
|
"tests/fixtures/*",
|
|
523
525
|
"tests/fixtures/_packages/*"
|