@ateam-ai-mobile/expo 0.1.18 → 0.1.20
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/bootstrap.d.mts +11 -0
- package/dist/bootstrap.d.ts +11 -0
- package/dist/bootstrap.js +12 -2
- package/dist/bootstrap.js.map +1 -1
- package/dist/bootstrap.mjs +11 -3
- package/dist/bootstrap.mjs.map +1 -1
- package/dist/capabilities/index.d.mts +112 -0
- package/dist/capabilities/index.d.ts +112 -0
- package/dist/{chunk-Z5AI2SXX.mjs → capabilities/index.js} +995 -225
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/index.mjs +595 -0
- package/dist/capabilities/index.mjs.map +1 -0
- package/dist/chunk-AE55BKYV.mjs +24 -0
- package/dist/chunk-AE55BKYV.mjs.map +1 -0
- package/dist/chunk-GA7DS3PA.mjs +14 -0
- package/dist/chunk-GA7DS3PA.mjs.map +1 -0
- package/dist/chunk-GW7YGXOW.mjs +47 -0
- package/dist/chunk-GW7YGXOW.mjs.map +1 -0
- package/dist/chunk-IJPR5ITF.mjs +19 -0
- package/dist/chunk-IJPR5ITF.mjs.map +1 -0
- package/dist/chunk-KRGCWVDJ.mjs +815 -0
- package/dist/chunk-KRGCWVDJ.mjs.map +1 -0
- package/dist/chunk-RZDAY2GS.mjs +1009 -0
- package/dist/chunk-RZDAY2GS.mjs.map +1 -0
- package/dist/{chunk-DLDG77DX.mjs → chunk-SOUNJY7R.mjs} +6 -6
- package/dist/device/createDeviceProvider.mjs +4 -3
- package/dist/device-bridge/collectors/health.d.mts +1 -1
- package/dist/device-bridge/collectors/health.d.ts +1 -1
- package/dist/device-bridge/deviceId.d.mts +23 -0
- package/dist/device-bridge/deviceId.d.ts +23 -0
- package/dist/device-bridge/deviceId.js +45 -0
- package/dist/device-bridge/deviceId.js.map +1 -0
- package/dist/device-bridge/deviceId.mjs +12 -0
- package/dist/device-bridge/deviceId.mjs.map +1 -0
- package/dist/device-bridge/index.d.mts +2 -2
- package/dist/device-bridge/index.d.ts +2 -2
- package/dist/device-bridge/index.mjs +7 -5
- package/dist/push/index.d.mts +24 -0
- package/dist/push/index.d.ts +24 -0
- package/dist/push/index.js +224 -0
- package/dist/push/index.js.map +1 -0
- package/dist/push/index.mjs +174 -0
- package/dist/push/index.mjs.map +1 -0
- package/dist/push/silentSync.d.mts +8 -0
- package/dist/push/silentSync.d.ts +8 -0
- package/dist/push/silentSync.js +1075 -0
- package/dist/push/silentSync.js.map +1 -0
- package/dist/push/silentSync.mjs +67 -0
- package/dist/push/silentSync.mjs.map +1 -0
- package/dist/{types-BRanJYTn.d.mts → types-DFsbxj1m.d.mts} +1 -1
- package/dist/{types-BRanJYTn.d.ts → types-DFsbxj1m.d.ts} +1 -1
- package/package.json +29 -6
- package/src/bootstrap.ts +19 -0
- package/src/capabilities/CapabilitiesSetup.tsx +239 -0
- package/src/capabilities/CapabilityCard.tsx +188 -0
- package/src/capabilities/choices.ts +65 -0
- package/src/capabilities/config.ts +32 -0
- package/src/capabilities/index.ts +22 -0
- package/src/capabilities/store.ts +358 -0
- package/src/device-bridge/deviceId.ts +33 -0
- package/src/device-bridge/plugin.ts +1 -1
- package/src/push/index.ts +18 -0
- package/src/push/messaging.ts +49 -0
- package/src/push/registration.ts +31 -0
- package/src/push/silentSync.ts +83 -0
- package/src/push/usePushNotifications.ts +224 -0
- package/dist/chunk-Z5AI2SXX.mjs.map +0 -1
- /package/dist/{chunk-DLDG77DX.mjs.map → chunk-SOUNJY7R.mjs.map} +0 -0
package/dist/bootstrap.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { TokenProvider, AdasUser, AdasSession } from '@ateam-ai-mobile/core';
|
|
|
2
2
|
import { RegisteredPlugin } from '@ateam-ai-mobile/plugin-runtime';
|
|
3
3
|
import { UIActionRoute } from '@ateam-ai-mobile/ui';
|
|
4
4
|
import { E as ExpoAttachmentCache } from './attachmentCache-DhQTqi2E.mjs';
|
|
5
|
+
import { SecureKv } from './device-bridge/deviceId.mjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* bootstrapExpoAdas — the single, self-contained SDK bootstrap (R10).
|
|
@@ -82,6 +83,16 @@ interface BootstrapExpoAdasOptions {
|
|
|
82
83
|
* not silently flow into the health probe (the asymmetry the host relied on).
|
|
83
84
|
*/
|
|
84
85
|
reachabilityUrl?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Device sync (the user's device permissions → the relay). Needs `urls.relay`.
|
|
88
|
+
* Leave it out and the capabilities store refuses to start the bridge, by name.
|
|
89
|
+
*/
|
|
90
|
+
deviceSync?: {
|
|
91
|
+
/** The relay's shared key, sent as `Authorization: Bearer`. */
|
|
92
|
+
relayKey: string;
|
|
93
|
+
/** Secure storage for the install's device id (Keychain / Keystore). */
|
|
94
|
+
secureStorage: SecureKv;
|
|
95
|
+
};
|
|
85
96
|
}
|
|
86
97
|
/**
|
|
87
98
|
* Wire the entire Expo-backed ADAS platform in one call. Run for its side effect
|
package/dist/bootstrap.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { TokenProvider, AdasUser, AdasSession } from '@ateam-ai-mobile/core';
|
|
|
2
2
|
import { RegisteredPlugin } from '@ateam-ai-mobile/plugin-runtime';
|
|
3
3
|
import { UIActionRoute } from '@ateam-ai-mobile/ui';
|
|
4
4
|
import { E as ExpoAttachmentCache } from './attachmentCache-DhQTqi2E.js';
|
|
5
|
+
import { SecureKv } from './device-bridge/deviceId.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* bootstrapExpoAdas — the single, self-contained SDK bootstrap (R10).
|
|
@@ -82,6 +83,16 @@ interface BootstrapExpoAdasOptions {
|
|
|
82
83
|
* not silently flow into the health probe (the asymmetry the host relied on).
|
|
83
84
|
*/
|
|
84
85
|
reachabilityUrl?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Device sync (the user's device permissions → the relay). Needs `urls.relay`.
|
|
88
|
+
* Leave it out and the capabilities store refuses to start the bridge, by name.
|
|
89
|
+
*/
|
|
90
|
+
deviceSync?: {
|
|
91
|
+
/** The relay's shared key, sent as `Authorization: Bearer`. */
|
|
92
|
+
relayKey: string;
|
|
93
|
+
/** Secure storage for the install's device id (Keychain / Keystore). */
|
|
94
|
+
secureStorage: SecureKv;
|
|
95
|
+
};
|
|
85
96
|
}
|
|
86
97
|
/**
|
|
87
98
|
* Wire the entire Expo-backed ADAS platform in one call. Run for its side effect
|
package/dist/bootstrap.js
CHANGED
|
@@ -2890,8 +2890,8 @@ function createMapsAPI() {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
-
function createDeviceProvider(
|
|
2894
|
-
const connectivity = createConnectivityAPI(
|
|
2893
|
+
function createDeviceProvider(config2) {
|
|
2894
|
+
const connectivity = createConnectivityAPI(config2?.reachabilityUrl);
|
|
2895
2895
|
return {
|
|
2896
2896
|
camera: createCameraAPI(),
|
|
2897
2897
|
location: createLocationAPI(),
|
|
@@ -2981,6 +2981,12 @@ function createExpoOAuthProvider(host = {}) {
|
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
2983
|
|
|
2984
|
+
// src/capabilities/config.ts
|
|
2985
|
+
var config = null;
|
|
2986
|
+
function configureDeviceSync(next) {
|
|
2987
|
+
config = next;
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2984
2990
|
// src/bootstrap.ts
|
|
2985
2991
|
function bootstrapExpoAdas(opts) {
|
|
2986
2992
|
const { attachmentCache } = setupExpoProviders({
|
|
@@ -2994,6 +3000,10 @@ function bootstrapExpoAdas(opts) {
|
|
|
2994
3000
|
}
|
|
2995
3001
|
const relay = opts.urls.relay;
|
|
2996
3002
|
(0, import_ui2.setPluginWebViewExtraHosts)(() => relay ? [relay()] : []);
|
|
3003
|
+
if (opts.deviceSync) {
|
|
3004
|
+
if (!relay) throw new Error("bootstrapExpoAdas: deviceSync needs urls.relay");
|
|
3005
|
+
configureDeviceSync({ relayUrl: relay, ...opts.deviceSync });
|
|
3006
|
+
}
|
|
2997
3007
|
(0, import_ui2.setOAuthProvider)(createExpoOAuthProvider({ googleIosClientId: opts.googleIosClientId }));
|
|
2998
3008
|
(0, import_ui2.setCallAudioProvider)(createCallAudioProvider());
|
|
2999
3009
|
if (opts.onReachabilityChange) {
|