@ovok/native 1.16.1-dev.2115 → 1.16.1-dev.2129
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/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js +3 -1
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bluetooth-device-picker.js +9 -141
- package/lib/commonjs/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/device-picker-sheet.js +160 -0
- package/lib/commonjs/modules/bt-management/components/device-picker-sheet.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js +2 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/bluetooth-permission-list.js +19 -0
- package/lib/commonjs/modules/bt-management/utils/bluetooth-permission-list.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/result-identity.js +3 -25
- package/lib/commonjs/modules/bt-management/utils/result-identity.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/auto-connect.js +32 -0
- package/lib/commonjs/modules/next/bluetooth/auto-connect.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-errors.js +33 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-errors.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-link.js +125 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-link.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +75 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js +34 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +67 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/connections.js +110 -0
- package/lib/commonjs/modules/next/bluetooth/connections.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/daily-total-day.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/devices.js +41 -0
- package/lib/commonjs/modules/next/bluetooth/devices.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/driver.js +24 -20
- package/lib/commonjs/modules/next/bluetooth/driver.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/errors.js +26 -0
- package/lib/commonjs/modules/next/bluetooth/errors.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/index.js +116 -11
- package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/link.js +0 -103
- package/lib/commonjs/modules/next/bluetooth/link.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/paired.js +50 -0
- package/lib/commonjs/modules/next/bluetooth/paired.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/permissions.js +2 -0
- package/lib/commonjs/modules/next/bluetooth/permissions.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react/bluetooth-device-picker.js +44 -0
- package/lib/commonjs/modules/next/bluetooth/react/bluetooth-device-picker.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react/context.js +54 -0
- package/lib/commonjs/modules/next/bluetooth/react/context.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react/hooks.js +86 -0
- package/lib/commonjs/modules/next/bluetooth/react/hooks.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/create-bluetooth-runtime.js +28 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/create-bluetooth-runtime.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/os-permissions.js +32 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/os-permissions.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js +32 -0
- package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/readings.js +92 -0
- package/lib/commonjs/modules/next/bluetooth/readings.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/result-policy.js +6 -1
- package/lib/commonjs/modules/next/bluetooth/result-policy.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/runtime.js +223 -0
- package/lib/commonjs/modules/next/bluetooth/runtime.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/scan-loop.js +82 -0
- package/lib/commonjs/modules/next/bluetooth/scan-loop.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/sink.js +6 -0
- package/lib/commonjs/modules/next/bluetooth/sink.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/snapshot.js +6 -0
- package/lib/commonjs/modules/next/bluetooth/snapshot.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/stable-hash.js +33 -0
- package/lib/commonjs/modules/next/bluetooth/stable-hash.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/store.js +61 -0
- package/lib/commonjs/modules/next/bluetooth/store.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/transport.js +6 -0
- package/lib/commonjs/modules/next/bluetooth/transport.js.map +1 -0
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js +3 -1
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/module/modules/bt-management/components/bluetooth-device-picker.js +9 -141
- package/lib/module/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/module/modules/bt-management/components/device-picker-sheet.js +154 -0
- package/lib/module/modules/bt-management/components/device-picker-sheet.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js +4 -3
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-measurements.js +1 -1
- package/lib/module/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/utils/bluetooth-permission-list.js +14 -0
- package/lib/module/modules/bt-management/utils/bluetooth-permission-list.js.map +1 -0
- package/lib/module/modules/bt-management/utils/result-identity.js +3 -25
- package/lib/module/modules/bt-management/utils/result-identity.js.map +1 -1
- package/lib/module/modules/next/bluetooth/auto-connect.js +28 -0
- package/lib/module/modules/next/bluetooth/auto-connect.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-errors.js +28 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-errors.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-link.js +122 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-link.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +69 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js +31 -0
- package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +63 -0
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -0
- package/lib/module/modules/next/bluetooth/connections.js +106 -0
- package/lib/module/modules/next/bluetooth/connections.js.map +1 -0
- package/lib/module/modules/next/bluetooth/daily-total-day.js.map +1 -0
- package/lib/module/modules/next/bluetooth/devices.js +37 -0
- package/lib/module/modules/next/bluetooth/devices.js.map +1 -0
- package/lib/module/modules/next/bluetooth/driver.js +23 -20
- package/lib/module/modules/next/bluetooth/driver.js.map +1 -1
- package/lib/module/modules/next/bluetooth/errors.js +21 -0
- package/lib/module/modules/next/bluetooth/errors.js.map +1 -0
- package/lib/module/modules/next/bluetooth/index.js +21 -3
- package/lib/module/modules/next/bluetooth/index.js.map +1 -1
- package/lib/module/modules/next/bluetooth/link.js +0 -101
- package/lib/module/modules/next/bluetooth/link.js.map +1 -1
- package/lib/module/modules/next/bluetooth/paired.js +46 -0
- package/lib/module/modules/next/bluetooth/paired.js.map +1 -0
- package/lib/module/modules/next/bluetooth/permissions.js +2 -0
- package/lib/module/modules/next/bluetooth/permissions.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react/bluetooth-device-picker.js +39 -0
- package/lib/module/modules/next/bluetooth/react/bluetooth-device-picker.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react/context.js +48 -0
- package/lib/module/modules/next/bluetooth/react/context.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react/hooks.js +76 -0
- package/lib/module/modules/next/bluetooth/react/hooks.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react-native/create-bluetooth-runtime.js +25 -0
- package/lib/module/modules/next/bluetooth/react-native/create-bluetooth-runtime.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react-native/os-permissions.js +28 -0
- package/lib/module/modules/next/bluetooth/react-native/os-permissions.js.map +1 -0
- package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js +28 -0
- package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -0
- package/lib/module/modules/next/bluetooth/readings.js +88 -0
- package/lib/module/modules/next/bluetooth/readings.js.map +1 -0
- package/lib/module/modules/next/bluetooth/result-policy.js +6 -1
- package/lib/module/modules/next/bluetooth/result-policy.js.map +1 -1
- package/lib/module/modules/next/bluetooth/runtime.js +220 -0
- package/lib/module/modules/next/bluetooth/runtime.js.map +1 -0
- package/lib/module/modules/next/bluetooth/scan-loop.js +78 -0
- package/lib/module/modules/next/bluetooth/scan-loop.js.map +1 -0
- package/lib/module/modules/next/bluetooth/sink.js +4 -0
- package/lib/module/modules/next/bluetooth/sink.js.map +1 -0
- package/lib/module/modules/next/bluetooth/snapshot.js +4 -0
- package/lib/module/modules/next/bluetooth/snapshot.js.map +1 -0
- package/lib/module/modules/next/bluetooth/stable-hash.js +28 -0
- package/lib/module/modules/next/bluetooth/stable-hash.js.map +1 -0
- package/lib/module/modules/next/bluetooth/store.js +57 -0
- package/lib/module/modules/next/bluetooth/store.js.map +1 -0
- package/lib/module/modules/next/bluetooth/transport.js +4 -0
- package/lib/module/modules/next/bluetooth/transport.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bluetooth-device-picker.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bluetooth-device-picker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/device-picker-sheet.d.ts +25 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/device-picker-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bluetooth-permission-list.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bluetooth-permission-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/auto-connect.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/auto-connect.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-errors.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts +25 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/daily-total-day.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/devices.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts +21 -19
- package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +32 -3
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/link.d.ts +2 -4
- package/lib/typescript/commonjs/src/modules/next/bluetooth/link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/paired.d.ts +18 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/paired.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/permissions.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/permissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/bluetooth-device-picker.d.ts +35 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/bluetooth-device-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/context.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/hooks.d.ts +47 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react/hooks.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/create-bluetooth-runtime.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/create-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/os-permissions.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/os-permissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/result-policy.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/result-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts +87 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/scan-loop.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/scan-loop.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/sink.d.ts +20 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/sink.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts +69 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/stable-hash.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/stable-hash.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/store.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/store.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/transport.d.ts +31 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/transport.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/device-picker-sheet.d.ts +25 -0
- package/lib/typescript/module/src/modules/bt-management/components/device-picker-sheet.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/bluetooth-permission-list.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/utils/bluetooth-permission-list.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/auto-connect.d.ts +10 -0
- package/lib/typescript/module/src/modules/next/bluetooth/auto-connect.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-errors.d.ts +4 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-errors.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +10 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts +25 -0
- package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/daily-total-day.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/devices.d.ts +30 -0
- package/lib/typescript/module/src/modules/next/bluetooth/devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts +21 -19
- package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts +17 -0
- package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +32 -3
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/link.d.ts +2 -4
- package/lib/typescript/module/src/modules/next/bluetooth/link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/paired.d.ts +18 -0
- package/lib/typescript/module/src/modules/next/bluetooth/paired.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/permissions.d.ts +13 -0
- package/lib/typescript/module/src/modules/next/bluetooth/permissions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/bluetooth-device-picker.d.ts +35 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/bluetooth-device-picker.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/context.d.ts +30 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/context.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/hooks.d.ts +47 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react/hooks.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/create-bluetooth-runtime.d.ts +21 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/create-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/os-permissions.d.ts +5 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/os-permissions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts +21 -0
- package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/result-policy.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/bluetooth/result-policy.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts +87 -0
- package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/scan-loop.d.ts +23 -0
- package/lib/typescript/module/src/modules/next/bluetooth/scan-loop.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/sink.d.ts +20 -0
- package/lib/typescript/module/src/modules/next/bluetooth/sink.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts +69 -0
- package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/stable-hash.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/bluetooth/stable-hash.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/store.d.ts +16 -0
- package/lib/typescript/module/src/modules/next/bluetooth/store.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/transport.d.ts +31 -0
- package/lib/typescript/module/src/modules/next/bluetooth/transport.d.ts.map +1 -0
- package/package.json +2 -2
- package/lib/commonjs/modules/bt-management/utils/daily-total-day.js.map +0 -1
- package/lib/commonjs/modules/next/bluetooth/drivers.js +0 -20
- package/lib/commonjs/modules/next/bluetooth/drivers.js.map +0 -1
- package/lib/commonjs/modules/next/bluetooth/legacy-driver.js +0 -55
- package/lib/commonjs/modules/next/bluetooth/legacy-driver.js.map +0 -1
- package/lib/module/modules/bt-management/utils/daily-total-day.js.map +0 -1
- package/lib/module/modules/next/bluetooth/drivers.js +0 -17
- package/lib/module/modules/next/bluetooth/drivers.js.map +0 -1
- package/lib/module/modules/next/bluetooth/legacy-driver.js +0 -51
- package/lib/module/modules/next/bluetooth/legacy-driver.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/daily-total-day.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/drivers.d.ts +0 -7
- package/lib/typescript/commonjs/src/modules/next/bluetooth/drivers.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/legacy-driver.d.ts +0 -8
- package/lib/typescript/commonjs/src/modules/next/bluetooth/legacy-driver.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/bt-management/utils/daily-total-day.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/next/bluetooth/drivers.d.ts +0 -7
- package/lib/typescript/module/src/modules/next/bluetooth/drivers.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/next/bluetooth/legacy-driver.d.ts +0 -8
- package/lib/typescript/module/src/modules/next/bluetooth/legacy-driver.d.ts.map +0 -1
- /package/lib/commonjs/modules/{bt-management/utils → next/bluetooth}/daily-total-day.js +0 -0
- /package/lib/module/modules/{bt-management/utils → next/bluetooth}/daily-total-day.js +0 -0
- /package/lib/typescript/commonjs/src/modules/{bt-management/utils → next/bluetooth}/daily-total-day.d.ts +0 -0
- /package/lib/typescript/module/src/modules/{bt-management/utils → next/bluetooth}/daily-total-day.d.ts +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { OvokUiProps } from "../../../ui/types";
|
|
3
|
+
import { NearbyDevice } from "../snapshot";
|
|
4
|
+
/** Props of {@link BluetoothDevicePicker}. */
|
|
5
|
+
interface BluetoothDevicePickerProps extends OvokUiProps {
|
|
6
|
+
/** Whether the picker is shown. */
|
|
7
|
+
visible: boolean;
|
|
8
|
+
/** Called with the picked device once the connection starts; its outcome shows on `device.connection`. */
|
|
9
|
+
onSelect?: (device: NearbyDevice) => void;
|
|
10
|
+
/** Called when the user dismisses the picker; the dismiss button only renders when provided. */
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
/** Heading text; defaults to "Choose a device". */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Dismiss button label; defaults to "Not now". */
|
|
15
|
+
dismissLabel?: string;
|
|
16
|
+
/** Returns an image URI for a device, shown in its default row. */
|
|
17
|
+
getDeviceImage?: (device: NearbyDevice) => string | undefined;
|
|
18
|
+
/** Returns the display name of a device; defaults to its advertised name. */
|
|
19
|
+
labelForDevice?: (device: NearbyDevice) => string;
|
|
20
|
+
/** Renders a custom row; return `undefined` to fall back to the default row. */
|
|
21
|
+
renderRow?: (device: NearbyDevice, actions: {
|
|
22
|
+
select: () => void;
|
|
23
|
+
}) => React.ReactNode;
|
|
24
|
+
/** Test identifier of the modal; the backdrop gets the `-backdrop` suffix. */
|
|
25
|
+
testID?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A bottom sheet listing the found devices; picking one connects to it. Built only from public hooks.
|
|
29
|
+
*
|
|
30
|
+
* @group Components
|
|
31
|
+
*/
|
|
32
|
+
declare const BluetoothDevicePicker: ({ onSelect, title, dismissLabel, labelForDevice, ...props }: BluetoothDevicePickerProps) => React.JSX.Element;
|
|
33
|
+
export { BluetoothDevicePicker };
|
|
34
|
+
export type { BluetoothDevicePickerProps };
|
|
35
|
+
//# sourceMappingURL=bluetooth-device-picker.d.ts.map
|
package/lib/typescript/commonjs/src/modules/next/bluetooth/react/bluetooth-device-picker.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bluetooth-device-picker.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react/bluetooth-device-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C,8CAA8C;AAC9C,UAAU,0BAA2B,SAAQ,WAAW;IAEtD,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IAEjB,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAE1C,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,mEAAmE;IACnE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,GAAG,SAAS,CAAC;IAE9D,6EAA6E;IAC7E,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC;IAElD,gFAAgF;IAChF,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAEvF,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,QAAA,MAAM,qBAAqB,GAAI,6DAM5B,0BAA0B,sBAoB5B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AndroidBluetoothForegroundServiceOptions } from "../../../background-sync/android-background-sync";
|
|
3
|
+
import { BluetoothError } from "../errors";
|
|
4
|
+
import { BluetoothRuntime } from "../runtime";
|
|
5
|
+
/** Props of {@link BluetoothProvider}. */
|
|
6
|
+
type BluetoothProviderProps = React.PropsWithChildren<{
|
|
7
|
+
/** The runtime the hooks below read and control; the app owns it and disposes it. */
|
|
8
|
+
runtime: BluetoothRuntime;
|
|
9
|
+
/** Keeps an Android foreground service running while mounted, so connections survive the app going to background. */
|
|
10
|
+
androidForegroundService?: AndroidBluetoothForegroundServiceOptions;
|
|
11
|
+
/** Called when the foreground service cannot start or stop. */
|
|
12
|
+
onForegroundServiceError?: (error: BluetoothError) => void;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Gives the Bluetooth hooks below it a runtime.
|
|
16
|
+
*
|
|
17
|
+
* @group Components
|
|
18
|
+
*/
|
|
19
|
+
declare const BluetoothProvider: ({ runtime, androidForegroundService, onForegroundServiceError, children, }: BluetoothProviderProps) => React.JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* The runtime of the enclosing `BluetoothProvider`: every Bluetooth action is a call on it.
|
|
22
|
+
*
|
|
23
|
+
* @throws When rendered outside `BluetoothProvider`.
|
|
24
|
+
*
|
|
25
|
+
* @group Hooks
|
|
26
|
+
*/
|
|
27
|
+
declare const useBluetooth: () => BluetoothRuntime;
|
|
28
|
+
export { BluetoothProvider, useBluetooth };
|
|
29
|
+
export type { BluetoothProviderProps };
|
|
30
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAIjH,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C,0CAA0C;AAC1C,KAAK,sBAAsB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAEpD,qFAAqF;IACrF,OAAO,EAAE,gBAAgB,CAAC;IAE1B,qHAAqH;IACrH,wBAAwB,CAAC,EAAE,wCAAwC,CAAC;IAEpE,+DAA+D;IAC/D,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5D,CAAC,CAAC;AAIH;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,GAAI,4EAKxB,sBAAsB,sBAUxB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,QAAO,gBAQxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC;AAC3C,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BluetoothPermission } from "../permissions";
|
|
2
|
+
import { DeviceReading, NearbyDevice } from "../snapshot";
|
|
3
|
+
import { AdapterState } from "../transport";
|
|
4
|
+
/**
|
|
5
|
+
* The Bluetooth adapter state.
|
|
6
|
+
*
|
|
7
|
+
* @group Hooks
|
|
8
|
+
*/
|
|
9
|
+
declare const useBluetoothState: () => AdapterState;
|
|
10
|
+
/**
|
|
11
|
+
* The Bluetooth permission, re-checked whenever the app returns to the foreground; `unknown` until first checked.
|
|
12
|
+
*
|
|
13
|
+
* @group Hooks
|
|
14
|
+
*/
|
|
15
|
+
declare const useBluetoothPermission: () => BluetoothPermission | "unknown";
|
|
16
|
+
/**
|
|
17
|
+
* Whether a scan is requested.
|
|
18
|
+
*
|
|
19
|
+
* @group Hooks
|
|
20
|
+
*/
|
|
21
|
+
declare const useScanning: () => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The supported devices the scan found, each with its connection state.
|
|
24
|
+
*
|
|
25
|
+
* @group Hooks
|
|
26
|
+
*/
|
|
27
|
+
declare const useNearbyDevices: () => readonly NearbyDevice[];
|
|
28
|
+
/**
|
|
29
|
+
* One found device, or `null` until the scan finds it.
|
|
30
|
+
*
|
|
31
|
+
* @group Hooks
|
|
32
|
+
*/
|
|
33
|
+
declare const useNearbyDevice: (deviceId: string) => NearbyDevice | null;
|
|
34
|
+
/**
|
|
35
|
+
* IDs of the paired devices.
|
|
36
|
+
*
|
|
37
|
+
* @group Hooks
|
|
38
|
+
*/
|
|
39
|
+
declare const usePairedDevices: () => readonly string[];
|
|
40
|
+
/**
|
|
41
|
+
* The recent readings, oldest first, each with its save state.
|
|
42
|
+
*
|
|
43
|
+
* @group Hooks
|
|
44
|
+
*/
|
|
45
|
+
declare const useMeasurements: () => readonly DeviceReading[];
|
|
46
|
+
export { useBluetoothPermission, useBluetoothState, useMeasurements, useNearbyDevice, useNearbyDevices, usePairedDevices, useScanning, };
|
|
47
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAqB,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAY5C;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,QAAO,YAA2D,CAAC;AAE1F;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,QAAO,mBAAmB,GAAG,SAcxD,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,WAAW,QAAO,OAAuD,CAAC;AAEhF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,QAAO,SAAS,YAAY,EAAiD,CAAC;AAEpG;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,YAAY,GAAG,IAC4B,CAAC;AAExF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,QAAO,SAAS,MAAM,EAAgD,CAAC;AAE7F;;;;GAIG;AACH,QAAA,MAAM,eAAe,QAAO,SAAS,aAAa,EAAkD,CAAC;AAErG,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BleManager } from "react-native-ble-plx";
|
|
2
|
+
import type { Ovok } from "../../ovok";
|
|
3
|
+
import { DeviceSupport } from "../devices";
|
|
4
|
+
import { ResultPolicy } from "../result-policy";
|
|
5
|
+
import { BluetoothRuntime } from "../runtime";
|
|
6
|
+
/** What `createBluetoothRuntime` needs. */
|
|
7
|
+
type CreateBluetoothRuntimeOptions = {
|
|
8
|
+
/** Saves the readings and keeps the paired devices in its secure storage. */
|
|
9
|
+
client: Ovok;
|
|
10
|
+
/** The app's `react-native-ble-plx` manager. */
|
|
11
|
+
bleManager: BleManager;
|
|
12
|
+
/** The devices to look for. */
|
|
13
|
+
devices: readonly DeviceSupport[];
|
|
14
|
+
/** Which readings of a connection to keep; defaults to every reading. */
|
|
15
|
+
resultPolicy?: ResultPolicy;
|
|
16
|
+
};
|
|
17
|
+
/** A `BluetoothRuntime` wired for React Native: BLE through `bleManager`, OS permissions, saving through `client`. */
|
|
18
|
+
declare const createBluetoothRuntime: ({ client, bleManager, devices, resultPolicy, }: CreateBluetoothRuntimeOptions) => BluetoothRuntime;
|
|
19
|
+
export { createBluetoothRuntime };
|
|
20
|
+
export type { CreateBluetoothRuntimeOptions };
|
|
21
|
+
//# sourceMappingURL=create-bluetooth-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bluetooth-runtime.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react-native/create-bluetooth-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,2CAA2C;AAC3C,KAAK,6BAA6B,GAAG;IAEnC,6EAA6E;IAC7E,MAAM,EAAE,IAAI,CAAC;IAEb,gDAAgD;IAChD,UAAU,EAAE,UAAU,CAAC;IAEvB,+BAA+B;IAC/B,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAElC,yEAAyE;IACzE,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,sHAAsH;AACtH,QAAA,MAAM,sBAAsB,GAAI,gDAK7B,6BAA6B,KAAG,gBAQ/B,CAAC;AAEL,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BluetoothPermissions } from "../permissions";
|
|
2
|
+
/** The platform's Bluetooth permissions through `react-native-permissions`. */
|
|
3
|
+
declare const osBluetoothPermissions: () => BluetoothPermissions;
|
|
4
|
+
export { osBluetoothPermissions };
|
|
5
|
+
//# sourceMappingURL=os-permissions.d.ts.map
|
package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/os-permissions.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"os-permissions.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react-native/os-permissions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAiB3E,+EAA+E;AAC/E,QAAA,MAAM,sBAAsB,QAAO,oBAYjC,CAAC;AAEH,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Ovok } from "../../ovok";
|
|
2
|
+
import { ReadingSink } from "../sink";
|
|
3
|
+
/** Saves readings for the signed-in account through the `Ovok` measurements API. */
|
|
4
|
+
declare const ovokReadingSink: (client: Ovok) => ReadingSink;
|
|
5
|
+
export { ovokReadingSink };
|
|
6
|
+
//# sourceMappingURL=ovok-sink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ovok-sink.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/react-native/ovok-sink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,oFAAoF;AACpF,QAAA,MAAM,eAAe,GAAI,QAAQ,IAAI,KAAG,WAWtC,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Measurement } from "@ovok/core/next";
|
|
2
|
+
import { ReadingSink } from "./sink";
|
|
3
|
+
import { NearbyDevice } from "./snapshot";
|
|
4
|
+
import { SnapshotStore } from "./store";
|
|
5
|
+
/** Keeps the recent readings, each resend once, and saves every new one through the sink. */
|
|
6
|
+
declare class ReadingLog {
|
|
7
|
+
private readonly store;
|
|
8
|
+
private readonly sink;
|
|
9
|
+
private readonly recent;
|
|
10
|
+
private sequence;
|
|
11
|
+
constructor(store: SnapshotStore, sink: ReadingSink);
|
|
12
|
+
/** `id` is `null` for a reading that cannot be recognised when resent. */
|
|
13
|
+
receive(device: NearbyDevice, id: string | null, measurement: Measurement): void;
|
|
14
|
+
/** Saves the readings whose save failed again and flushes the sink's offline queue. */
|
|
15
|
+
retrySaves(): Promise<void>;
|
|
16
|
+
/** Records `id`; false when it is a resend of a recent reading. */
|
|
17
|
+
private remember;
|
|
18
|
+
private save;
|
|
19
|
+
}
|
|
20
|
+
export { ReadingLog };
|
|
21
|
+
//# sourceMappingURL=readings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readings.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/readings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,WAAW,EAAc,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAiB,YAAY,EAAa,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAUxC,6FAA6F;AAC7F,cAAM,UAAU;IAIK,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAiB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAH/E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAK;gBAEe,KAAK,EAAE,aAAa,EAAmB,IAAI,EAAE,WAAW;IAE5F,0EAA0E;IACnE,OAAO,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAmBvF,uFAAuF;IAC1E,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAcxC,mEAAmE;IACnE,OAAO,CAAC,QAAQ;YAaF,IAAI;CAQnB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -2,10 +2,13 @@ import { Measurement, MeasurementTypeKey } from "@ovok/core/next";
|
|
|
2
2
|
import { DeviceEvent } from "./driver";
|
|
3
3
|
/** Makes, for each connection, the test of which readings to keep. */
|
|
4
4
|
type ResultPolicy = () => (reading: Measurement) => boolean;
|
|
5
|
+
/** Keeps every reading. */
|
|
5
6
|
declare const everyReading: ResultPolicy;
|
|
7
|
+
/** Keeps the first reading of each measurement type per connection. */
|
|
6
8
|
declare const firstReadingPerKind: ResultPolicy;
|
|
7
9
|
/** Activity totals count only once their day has closed, and each day only once. */
|
|
8
10
|
declare const dailyTotalsOnly: ResultPolicy;
|
|
11
|
+
/** Applies a policy per measurement type, and `fallback` to the other types. */
|
|
9
12
|
declare const policyByKind: (policies: Partial<Record<MeasurementTypeKey, ResultPolicy>>, fallback?: ResultPolicy) => ResultPolicy;
|
|
10
13
|
/** A driver's events minus the readings `policy` drops. */
|
|
11
14
|
declare function keepReadings(events: AsyncIterable<DeviceEvent>, policy: ResultPolicy): AsyncIterable<DeviceEvent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-policy.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/result-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"result-policy.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/result-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,sEAAsE;AACtE,KAAK,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC;AAE5D,2BAA2B;AAC3B,QAAA,MAAM,YAAY,EAAE,YAA+B,CAAC;AAEpD,uEAAuE;AACvE,QAAA,MAAM,mBAAmB,EAAE,YAY1B,CAAC;AAEF,oFAAoF;AACpF,QAAA,MAAM,eAAe,EAAE,YAoBtB,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,YAAY,GAChB,UAAU,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC,EAC3D,WAAU,YAA2B,KACpC,YAkBA,CAAC;AAEJ,2DAA2D;AAC3D,iBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAQjH;AAED,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAC1F,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { OvokStorage } from "@ovok/core/next";
|
|
2
|
+
import { DeviceSupport } from "./devices";
|
|
3
|
+
import { BluetoothPermission, BluetoothPermissions } from "./permissions";
|
|
4
|
+
import { ResultPolicy } from "./result-policy";
|
|
5
|
+
import { ReadingSink } from "./sink";
|
|
6
|
+
import { BluetoothSnapshot } from "./snapshot";
|
|
7
|
+
import { BluetoothScanner } from "./transport";
|
|
8
|
+
/** What a `BluetoothRuntime` is built from. */
|
|
9
|
+
type BluetoothRuntimeOptions = {
|
|
10
|
+
/** The BLE adapter. */
|
|
11
|
+
scanner: BluetoothScanner;
|
|
12
|
+
/** The OS permission prompts. */
|
|
13
|
+
permissions: BluetoothPermissions;
|
|
14
|
+
/** Where readings are saved. */
|
|
15
|
+
sink: ReadingSink;
|
|
16
|
+
/** The devices to look for; the first support that matches a peripheral handles it. */
|
|
17
|
+
devices: readonly DeviceSupport[];
|
|
18
|
+
/** Which readings of a connection to keep; defaults to every reading. */
|
|
19
|
+
resultPolicy?: ResultPolicy;
|
|
20
|
+
/** Where the paired device IDs persist; without it pairing lasts until the runtime is disposed. */
|
|
21
|
+
pairedStorage?: OvokStorage;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Scans for supported devices, connects to them, collects their readings and saves each one. Framework-free: React
|
|
25
|
+
* hooks and components sit on top of it. Every failure is a `BluetoothError`. Call `dispose()` when done.
|
|
26
|
+
*/
|
|
27
|
+
declare class BluetoothRuntime {
|
|
28
|
+
private readonly options;
|
|
29
|
+
private readonly store;
|
|
30
|
+
private readonly known;
|
|
31
|
+
private readonly held;
|
|
32
|
+
private readonly backoff;
|
|
33
|
+
private readonly retryTimers;
|
|
34
|
+
private readonly readings;
|
|
35
|
+
private readonly connections;
|
|
36
|
+
private readonly paired;
|
|
37
|
+
private readonly scan;
|
|
38
|
+
private readonly unwatchAdapter;
|
|
39
|
+
private scanRequest;
|
|
40
|
+
private disposed;
|
|
41
|
+
constructor(options: BluetoothRuntimeOptions);
|
|
42
|
+
/** The current state. */
|
|
43
|
+
getSnapshot: () => BluetoothSnapshot;
|
|
44
|
+
/** Calls `listener` after every state change; returns the unsubscribe. */
|
|
45
|
+
subscribe: (listener: () => void) => (() => void);
|
|
46
|
+
/** Reads the permission without prompting. */
|
|
47
|
+
checkPermission(): Promise<BluetoothPermission>;
|
|
48
|
+
/** Prompts for the permission when the OS still can. */
|
|
49
|
+
requestPermission(): Promise<BluetoothPermission>;
|
|
50
|
+
/** Opens the app's system settings, where a blocked permission can be granted. */
|
|
51
|
+
openPermissionSettings(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Asks for permission when needed, then scans whenever the adapter is on, until `stopScan`.
|
|
54
|
+
*
|
|
55
|
+
* @throws BluetoothError `permission-denied` when permission is not granted; `runtime-disposed` after `dispose`.
|
|
56
|
+
*/
|
|
57
|
+
startScan(): Promise<void>;
|
|
58
|
+
/** Stops scanning; connected devices stay connected. */
|
|
59
|
+
stopScan(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Connects to a found device for this session; resolves once connected.
|
|
62
|
+
*
|
|
63
|
+
* @throws BluetoothError `device-not-found`, `connection-failed` or the driver's failure.
|
|
64
|
+
*/
|
|
65
|
+
connect(deviceId: string): Promise<void>;
|
|
66
|
+
/** Disconnects a device; a paired one stays disconnected until `connect` or `pair` is called again. */
|
|
67
|
+
disconnect(deviceId: string): Promise<void>;
|
|
68
|
+
/** Remembers a device, so it connects whenever the scan finds it, and connects to it now. */
|
|
69
|
+
pair(deviceId: string): Promise<void>;
|
|
70
|
+
/** Forgets a paired device and disconnects it. */
|
|
71
|
+
forget(deviceId: string): Promise<void>;
|
|
72
|
+
/** Saves the readings whose save failed again, and the readings the sink queued offline. */
|
|
73
|
+
retrySaves(): Promise<void>;
|
|
74
|
+
/** Stops scanning and disconnects every device; resolves once they have disconnected, after which nothing changes. */
|
|
75
|
+
dispose(): Promise<void>;
|
|
76
|
+
private recordPermission;
|
|
77
|
+
private found;
|
|
78
|
+
private connectIfPaired;
|
|
79
|
+
/** A scan reports a peripheral once, so a paired device is only found again by a fresh scan. */
|
|
80
|
+
private connectionEnded;
|
|
81
|
+
private restartScan;
|
|
82
|
+
private require;
|
|
83
|
+
private assertLive;
|
|
84
|
+
}
|
|
85
|
+
export { BluetoothRuntime };
|
|
86
|
+
export type { BluetoothRuntimeOptions };
|
|
87
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,OAAO,EAAe,aAAa,EAAe,MAAM,WAA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BluetoothScanner, Peripheral } from "./transport";
|
|
3
|
+
/** Runs the scanner while a scan is requested and the adapter is on, retrying after a scan error. */
|
|
4
|
+
declare class ScanLoop {
|
|
5
|
+
private readonly scanner;
|
|
6
|
+
private readonly store;
|
|
7
|
+
private readonly onFound;
|
|
8
|
+
private stop;
|
|
9
|
+
private retry;
|
|
10
|
+
private closed;
|
|
11
|
+
constructor(scanner: BluetoothScanner, store: SnapshotStore, onFound: (peripheral: Peripheral) => void);
|
|
12
|
+
get running(): boolean;
|
|
13
|
+
/** Starts or stops the scanner to match the snapshot. */
|
|
14
|
+
sync(): void;
|
|
15
|
+
restart(): void;
|
|
16
|
+
close(): void;
|
|
17
|
+
/** A scan can fail before `scan` returns its stop, so the stop is only kept for a scan still running. */
|
|
18
|
+
private start;
|
|
19
|
+
private failed;
|
|
20
|
+
private halt;
|
|
21
|
+
}
|
|
22
|
+
export { ScanLoop };
|
|
23
|
+
//# sourceMappingURL=scan-loop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan-loop.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/scan-loop.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI3D,qGAAqG;AACrG,cAAM,QAAQ;IAMV,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAP1B,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,KAAK,CAA4C;IACzD,OAAO,CAAC,MAAM,CAAS;gBAGJ,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI;IAG5D,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,yDAAyD;IAClD,IAAI,IAAI,IAAI;IAWZ,OAAO,IAAI,IAAI;IAKf,KAAK,IAAI,IAAI;IAKpB,yGAAyG;IACzG,OAAO,CAAC,KAAK;IAqBb,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,IAAI;CAMb;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeviceReading } from "./snapshot";
|
|
2
|
+
/** How a sink took a reading. */
|
|
3
|
+
type SaveResult = {
|
|
4
|
+
/** Saved. */
|
|
5
|
+
status: "saved";
|
|
6
|
+
} | {
|
|
7
|
+
/** Kept offline until `flushQueued` saves it. */
|
|
8
|
+
status: "queued";
|
|
9
|
+
/** Names the reading in the queue. */
|
|
10
|
+
queueId: string;
|
|
11
|
+
};
|
|
12
|
+
/** Where readings are saved. */
|
|
13
|
+
interface ReadingSink {
|
|
14
|
+
/** Saves one reading, or queues it offline; the same reading may be saved again after a failure. */
|
|
15
|
+
save(reading: DeviceReading): Promise<SaveResult>;
|
|
16
|
+
/** Retries the queued readings; resolves to the queue IDs now saved. */
|
|
17
|
+
flushQueued(): Promise<readonly string[]>;
|
|
18
|
+
}
|
|
19
|
+
export type { ReadingSink, SaveResult };
|
|
20
|
+
//# sourceMappingURL=sink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sink.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/sink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,iCAAiC;AACjC,KAAK,UAAU,GACX;IAEA,aAAa;IACb,MAAM,EAAE,OAAO,CAAC;CACjB,GACC;IAEA,iDAAiD;IACjD,MAAM,EAAE,QAAQ,CAAC;IAEjB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEJ,gCAAgC;AAChC,UAAU,WAAW;IAEnB,oGAAoG;IACpG,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAElD,wEAAwE;IACxE,WAAW,IAAI,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;CAC3C;AAED,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Measurement } from "@ovok/core/next";
|
|
2
|
+
import { BluetoothError } from "./errors";
|
|
3
|
+
import { BluetoothPermission } from "./permissions";
|
|
4
|
+
import { AdapterState } from "./transport";
|
|
5
|
+
/** Where a device's connection stands. */
|
|
6
|
+
type ConnectionState = "idle" | "connecting" | "connected" | "measuring" | "disconnected" | "failed";
|
|
7
|
+
/** A supported peripheral the scan found. */
|
|
8
|
+
type NearbyDevice = {
|
|
9
|
+
/** Platform identifier of the peripheral. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Device key its support identified it as. */
|
|
12
|
+
key: string;
|
|
13
|
+
/** Name it advertised. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Its connection state. */
|
|
16
|
+
connection: ConnectionState;
|
|
17
|
+
/** The last error its connection reported, or `null`. */
|
|
18
|
+
error: BluetoothError | null;
|
|
19
|
+
};
|
|
20
|
+
/** Where saving a reading stands. */
|
|
21
|
+
type SaveState = {
|
|
22
|
+
/** The sink has not answered yet. */
|
|
23
|
+
status: "saving";
|
|
24
|
+
} | {
|
|
25
|
+
/** Saved. */
|
|
26
|
+
status: "saved";
|
|
27
|
+
} | {
|
|
28
|
+
/** Kept offline by the sink until a flush saves it. */
|
|
29
|
+
status: "queued";
|
|
30
|
+
/** Names the queued reading in the sink's queue. */
|
|
31
|
+
queueId: string;
|
|
32
|
+
} | {
|
|
33
|
+
/** The sink could not save or queue it; `retrySaves` tries again. */
|
|
34
|
+
status: "failed";
|
|
35
|
+
/** Why, with code `save-failed`. */
|
|
36
|
+
error: BluetoothError;
|
|
37
|
+
};
|
|
38
|
+
/** A reading a device sent, and whether it has been saved. */
|
|
39
|
+
type DeviceReading = {
|
|
40
|
+
/** Unique; the same for every resend of a stored reading that carries its time. */
|
|
41
|
+
id: string;
|
|
42
|
+
/** The device that sent it. */
|
|
43
|
+
device: Pick<NearbyDevice, "id" | "key" | "name">;
|
|
44
|
+
/** The decoded measurement. */
|
|
45
|
+
measurement: Measurement;
|
|
46
|
+
/** When the app received it. */
|
|
47
|
+
receivedAt: Date;
|
|
48
|
+
/** Where saving it stands. */
|
|
49
|
+
save: SaveState;
|
|
50
|
+
};
|
|
51
|
+
/** Everything the runtime knows, replaced (never mutated) on each change. */
|
|
52
|
+
type BluetoothSnapshot = {
|
|
53
|
+
/** Bluetooth adapter state. */
|
|
54
|
+
adapter: AdapterState;
|
|
55
|
+
/** Bluetooth permission; `unknown` until first checked. */
|
|
56
|
+
permission: BluetoothPermission | "unknown";
|
|
57
|
+
/** Whether a scan is requested; it runs whenever the adapter is on. */
|
|
58
|
+
scanning: boolean;
|
|
59
|
+
/** The last scan error, or `null`; cleared when a scan starts. */
|
|
60
|
+
scanError: BluetoothError | null;
|
|
61
|
+
/** Supported peripherals found, in discovery order. */
|
|
62
|
+
devices: readonly NearbyDevice[];
|
|
63
|
+
/** IDs of the paired devices, which connect whenever the scan finds them. */
|
|
64
|
+
paired: readonly string[];
|
|
65
|
+
/** Recent readings, oldest first. */
|
|
66
|
+
readings: readonly DeviceReading[];
|
|
67
|
+
};
|
|
68
|
+
export type { BluetoothSnapshot, ConnectionState, DeviceReading, NearbyDevice, SaveState };
|
|
69
|
+
//# sourceMappingURL=snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE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AO,EAAE,YAAY,CAAC;IAEtB,2DAA2D;IAC3D,UAAU,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAE5C,uEAAuE;IACvE,QAAQ,EAAE,OAAO,CAAC;IAElB,kEAAkE;IAClE,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IAEjC,uDAAuD;IACvD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAEjC,6EAA6E;IAC7E,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAE1B,qCAAqC;IACrC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CACpC,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stable-hash.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/stable-hash.ts"],"names":[],"mappings":"AAoCA,mFAAmF;AACnF,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,MAAmD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BluetoothSnapshot, DeviceReading, NearbyDevice } from "./snapshot";
|
|
2
|
+
/** The runtime's snapshot and its listeners; once closed, it no longer changes. */
|
|
3
|
+
declare class SnapshotStore {
|
|
4
|
+
private snapshot;
|
|
5
|
+
private readonly listeners;
|
|
6
|
+
private closed;
|
|
7
|
+
get(): BluetoothSnapshot;
|
|
8
|
+
subscribe(listener: () => void): () => void;
|
|
9
|
+
set(patch: Partial<BluetoothSnapshot>): void;
|
|
10
|
+
device(id: string): NearbyDevice | undefined;
|
|
11
|
+
updateDevice(id: string, patch: Partial<NearbyDevice>): void;
|
|
12
|
+
updateReadings(update: (reading: DeviceReading) => DeviceReading): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
}
|
|
15
|
+
export { SnapshotStore };
|
|
16
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAY5E,mFAAmF;AACnF,cAAM,aAAa;IACjB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,MAAM,CAAS;IAEhB,GAAG,IAAI,iBAAiB;IAIxB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAM3C,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAS5C,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI5C,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI;IAI5D,cAAc,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,aAAa,GAAG,IAAI;IAIvE,KAAK,IAAI,IAAI;CAIrB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BluetoothError } from "./errors";
|
|
2
|
+
import { Link } from "./link";
|
|
3
|
+
/** Bluetooth adapter state; `unknown` until the platform reports it. */
|
|
4
|
+
type AdapterState = "unknown" | "on" | "off" | "unauthorized" | "unsupported";
|
|
5
|
+
/** What a scanned peripheral advertises. */
|
|
6
|
+
type Advertisement = {
|
|
7
|
+
/** Advertised name, or the iOS local name when the name is not known yet; empty when neither is. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Advertised service UUIDs. */
|
|
10
|
+
serviceUUIDs: readonly string[];
|
|
11
|
+
/** Advertised manufacturer data, base64 encoded, or `null`. */
|
|
12
|
+
manufacturerData: string | null;
|
|
13
|
+
};
|
|
14
|
+
/** A peripheral a scan found, and the way to open a connection to it. */
|
|
15
|
+
type Peripheral = {
|
|
16
|
+
/** Platform identifier of the peripheral. */
|
|
17
|
+
id: string;
|
|
18
|
+
/** What it advertised. */
|
|
19
|
+
advertisement: Advertisement;
|
|
20
|
+
/** Connects and discovers its services; aborting `signal` closes the link. */
|
|
21
|
+
openLink(signal: AbortSignal): Promise<Link>;
|
|
22
|
+
};
|
|
23
|
+
/** The BLE adapter as the runtime uses it: its state and scanning. */
|
|
24
|
+
interface BluetoothScanner {
|
|
25
|
+
/** Reports the adapter state now and on every change; returns the unsubscribe. */
|
|
26
|
+
watchState(listener: (state: AdapterState) => void): () => void;
|
|
27
|
+
/** Reports peripherals until the returned stop is called; `onError` may be called before `scan` returns. */
|
|
28
|
+
scan(onFound: (peripheral: Peripheral) => void, onError: (error: BluetoothError) => void): () => void;
|
|
29
|
+
}
|
|
30
|
+
export type { AdapterState, Advertisement, BluetoothScanner, Peripheral };
|
|
31
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,wEAAwE;AACxE,KAAK,YAAY,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC;AAE9E,4CAA4C;AAC5C,KAAK,aAAa,GAAG;IAEnB,oGAAoG;IACpG,IAAI,EAAE,MAAM,CAAC;IAEb,gCAAgC;IAChC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAEhC,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,yEAAyE;AACzE,KAAK,UAAU,GAAG;IAEhB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IAEX,0BAA0B;IAC1B,aAAa,EAAE,aAAa,CAAC;IAE7B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEF,sEAAsE;AACtE,UAAU,gBAAgB;IAExB,kFAAkF;IAClF,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAEhE,4GAA4G;IAC5G,IAAI,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CACvG;AAED,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-bluetooth-foreground-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/android-bluetooth-foreground-service.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,UAAU,wCAAwC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC/C;AAuBD,eAAO,MAAM,iCAAiC,GAAI,0CAK/C,KAAK,CAAC,iBAAiB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,wCAAwC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CACzC,CAAC,
|
|
1
|
+
{"version":3,"file":"android-bluetooth-foreground-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/android-bluetooth-foreground-service.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,UAAU,wCAAwC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC/C;AAuBD,eAAO,MAAM,iCAAiC,GAAI,0CAK/C,KAAK,CAAC,iBAAiB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,wCAAwC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CACzC,CAAC,sBAiFD,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export interface BluetoothDevicePickerProps extends OvokUiProps {
|
|
|
31
31
|
*
|
|
32
32
|
* @group Components
|
|
33
33
|
*/
|
|
34
|
-
export declare const BluetoothDevicePicker: ({
|
|
34
|
+
export declare const BluetoothDevicePicker: ({ title, dismissLabel, labelForDevice, ...props }: BluetoothDevicePickerProps) => React.JSX.Element;
|
|
35
35
|
//# sourceMappingURL=bluetooth-device-picker.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/components/bluetooth-device-picker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth-device-picker.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bluetooth-device-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"bluetooth-device-picker.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bluetooth-device-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAMhE,8CAA8C;AAC9C,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAE7D,8BAA8B;IAC9B,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAEtC,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IAEjB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6CAA6C;IAC7C,QAAQ,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAE9C,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,mEAAmE;IACnE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IAEnE,kFAAkF;IAClF,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,MAAM,CAAC;IAEvD,gFAAgF;IAChF,SAAS,CAAC,EAAE,CACV,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,KAC5B,KAAK,CAAC,SAAS,CAAC;IAErB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,mDAKnC,0BAA0B,sBAQ5B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { OvokUiProps } from "../../ui/types";
|
|
3
|
+
/** Props of the bottom-sheet device list both Bluetooth pickers render. */
|
|
4
|
+
export interface DevicePickerSheetProps<Device extends {
|
|
5
|
+
id: string;
|
|
6
|
+
}> extends OvokUiProps {
|
|
7
|
+
devices: readonly Device[];
|
|
8
|
+
visible: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
onSelect: (device: Device) => void;
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
dismissLabel: string;
|
|
13
|
+
getDeviceImage?: (device: Device) => string | undefined;
|
|
14
|
+
labelForDevice: (device: Device) => string;
|
|
15
|
+
modelForDevice: (device: Device) => string | undefined;
|
|
16
|
+
renderRow?: (device: Device, actions: {
|
|
17
|
+
select: () => void;
|
|
18
|
+
}) => React.ReactNode;
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
/** A theme-aware bottom sheet listing devices to pick from. */
|
|
22
|
+
export declare const DevicePickerSheet: <Device extends {
|
|
23
|
+
id: string;
|
|
24
|
+
}>({ devices, visible, title, onSelect, onDismiss, dismissLabel, getDeviceImage, labelForDevice, modelForDevice, renderRow, testID, ...uiProps }: DevicePickerSheetProps<Device>) => React.JSX.Element;
|
|
25
|
+
//# sourceMappingURL=device-picker-sheet.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/components/device-picker-sheet.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-picker-sheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/device-picker-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,2EAA2E;AAC3E,MAAM,WAAW,sBAAsB,CAAC,MAAM,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAE,SAAQ,WAAW;IACxF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACvD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,+IAa9D,sBAAsB,CAAC,MAAM,CAAC,sBAuEhC,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bluetooth-permission.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bluetooth-permission.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-bluetooth-permission.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bluetooth-permission.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,4CAA4C;AAC5C,UAAU,6BAA6B;IAErC,qDAAqD;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjD,+CAA+C;IAC/C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C;AAuCD,0GAA0G;AAC1G,QAAA,MAAM,0BAA0B,QAAa,OAAO,CAAC,OAAO,CACR,CAAC;AAErD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,8EAK7B,6BAAkC;IAyEjC,iCAAiC;;IAGjC,8CAA8C;mBAhEV,OAAO,CAAC,OAAO,CAAC;IAmEpD,0BAA0B;6BAnEU,OAAO,CAAC,OAAO,CAAC;IAsEpD,6CAA6C;;IAG7C,8DAA8D;;CAGjE,CAAC;AAEF,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,GACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-measurements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-measurements.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EACL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IAErC,kDAAkD;IAClD,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AA6DD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,EAC1C,yBAAsC,sBAA2B,KAChE;IAED,kCAAkC;IAClC,YAAY,EAAE,SAAS,aAAa,EAAE,CAAC;IAEvC,oCAAoC;IACpC,KAAK,EAAE,MAAM,IAAI,CAAC;CAkCnB,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-managed-device.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-managed-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"bt-managed-device.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-managed-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AASxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAA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