@ateam-ai-mobile/expo 0.1.21 → 0.1.22
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/aiLive/provider.d.mts +10 -4
- package/dist/aiLive/provider.d.ts +10 -4
- package/dist/aiLive/provider.js +119 -43
- package/dist/aiLive/provider.js.map +1 -1
- package/dist/aiLive/provider.mjs +5 -3
- package/dist/bootstrap.js +120 -46
- package/dist/bootstrap.js.map +1 -1
- package/dist/bootstrap.mjs +4 -4
- package/dist/capabilities/index.js +19 -1
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/index.mjs +21 -3
- package/dist/capabilities/index.mjs.map +1 -1
- package/dist/{chunk-BAZFMTCC.mjs → chunk-4HJ5FO3S.mjs} +2 -2
- package/dist/{chunk-C62NQA4F.mjs → chunk-GGEFDRQQ.mjs} +2 -2
- package/dist/chunk-GGEFDRQQ.mjs.map +1 -0
- package/dist/{chunk-OEX4OKYQ.mjs → chunk-NH3CHSLR.mjs} +2 -2
- package/dist/{chunk-JUBLG3PN.mjs → chunk-PV2EHH2P.mjs} +119 -44
- package/dist/chunk-PV2EHH2P.mjs.map +1 -0
- package/dist/device/createDeviceProvider.mjs +3 -3
- package/dist/device-bridge/index.js +1 -1
- package/dist/device-bridge/index.js.map +1 -1
- package/dist/device-bridge/index.mjs +2 -2
- package/dist/push/silentSync.js.map +1 -1
- package/dist/push/silentSync.mjs +1 -1
- package/package.json +4 -4
- package/src/aiLive/provider.ts +138 -49
- package/src/aiLive/streamProtocol.ts +2 -2
- package/src/capabilities/store.ts +21 -1
- package/src/device-bridge/capabilities.ts +2 -1
- package/dist/chunk-C62NQA4F.mjs.map +0 -1
- package/dist/chunk-JUBLG3PN.mjs.map +0 -1
- /package/dist/{chunk-BAZFMTCC.mjs.map → chunk-4HJ5FO3S.mjs.map} +0 -0
- /package/dist/{chunk-OEX4OKYQ.mjs.map → chunk-NH3CHSLR.mjs.map} +0 -0
package/dist/bootstrap.mjs
CHANGED
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
} from "./chunk-2ZQEQJQ6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createAiLiveProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PV2EHH2P.mjs";
|
|
11
11
|
import {
|
|
12
12
|
configureDeviceSync
|
|
13
13
|
} from "./chunk-GA7DS3PA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
createDeviceProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NH3CHSLR.mjs";
|
|
17
17
|
import "./chunk-4BMWVN25.mjs";
|
|
18
18
|
import "./chunk-6LXF3JVX.mjs";
|
|
19
19
|
import "./chunk-WQK6PUBN.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-4HJ5FO3S.mjs";
|
|
21
21
|
import {
|
|
22
22
|
connectivity_exports,
|
|
23
23
|
location_exports
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GGEFDRQQ.mjs";
|
|
25
25
|
import "./chunk-XQSY6MHP.mjs";
|
|
26
26
|
import "./chunk-KOXF2FZM.mjs";
|
|
27
27
|
import "./chunk-7FWYEHN5.mjs";
|
|
@@ -1562,7 +1562,7 @@ function cameraCapability() {
|
|
|
1562
1562
|
return {
|
|
1563
1563
|
id: "camera",
|
|
1564
1564
|
name: "Camera",
|
|
1565
|
-
description:
|
|
1565
|
+
description: `Lets ada see through your camera to guide you \u2014 reading text and describing what's in front of you. Frames are analysed on the phone and nothing is stored; nothing is uploaded unless you also turn on "Camera pictures to AI".`,
|
|
1566
1566
|
reason: "Powers visual guidance (Ada Guide): a live view with on-device text and scene understanding.",
|
|
1567
1567
|
icon: "camera",
|
|
1568
1568
|
requiresPermission: true,
|
|
@@ -2252,6 +2252,24 @@ var useCapabilitiesStore = (0, import_zustand.create)((set, get) => {
|
|
|
2252
2252
|
};
|
|
2253
2253
|
});
|
|
2254
2254
|
(0, import_plugin_runtime.setPicturesToAiConsentProvider)(() => picturesToAiAllowed(useCapabilitiesStore.getState()));
|
|
2255
|
+
useCapabilitiesStore.subscribe(() => (0, import_plugin_runtime.notifyPicturesToAiConsentChanged)());
|
|
2256
|
+
async function recheckCameraPermission() {
|
|
2257
|
+
const cam = builtInCapabilities.find((c) => c.id === "camera");
|
|
2258
|
+
if (!cam) return;
|
|
2259
|
+
let granted = false;
|
|
2260
|
+
try {
|
|
2261
|
+
granted = await cam.checkPermission() === true;
|
|
2262
|
+
} catch {
|
|
2263
|
+
granted = false;
|
|
2264
|
+
}
|
|
2265
|
+
const current = useCapabilitiesStore.getState().capabilities.find((c) => c.id === "camera");
|
|
2266
|
+
if (!current) return;
|
|
2267
|
+
if (granted && current.osPermission !== "granted") useCapabilitiesStore.getState().setOsPermission("camera", "granted");
|
|
2268
|
+
if (!granted && current.osPermission === "granted") useCapabilitiesStore.getState().setOsPermission("camera", "denied");
|
|
2269
|
+
}
|
|
2270
|
+
(0, import_core.onAppForeground)(() => {
|
|
2271
|
+
void recheckCameraPermission();
|
|
2272
|
+
});
|
|
2255
2273
|
|
|
2256
2274
|
// src/capabilities/CapabilitiesSetup.tsx
|
|
2257
2275
|
var import_react = require("react");
|