@ovok/native 1.16.1-rc.4 → 1.16.1-rc.5
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/next/bluetooth/ble-plx/ble-peripheral.js +35 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +3 -30
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +2 -2
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +28 -0
- package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/index.js +208 -0
- package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js +143 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js +43 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js +21 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js +133 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js +28 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js +37 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js +83 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js.map +1 -0
- package/lib/commonjs/modules/next/breathing-exercise/index.js +17 -0
- package/lib/commonjs/modules/next/breathing-exercise/index.js.map +1 -0
- package/lib/commonjs/modules/next/cms/index.js +17 -0
- package/lib/commonjs/modules/next/cms/index.js.map +1 -0
- package/lib/commonjs/modules/next/content/index.js +17 -0
- package/lib/commonjs/modules/next/content/index.js.map +1 -0
- package/lib/commonjs/modules/next/diary/index.js +17 -0
- package/lib/commonjs/modules/next/diary/index.js.map +1 -0
- package/lib/commonjs/modules/next/image/index.js +17 -0
- package/lib/commonjs/modules/next/image/index.js.map +1 -0
- package/lib/commonjs/modules/next/journal/index.js +17 -0
- package/lib/commonjs/modules/next/journal/index.js.map +1 -0
- package/lib/commonjs/modules/next/language-switcher/index.js +17 -0
- package/lib/commonjs/modules/next/language-switcher/index.js.map +1 -0
- package/lib/commonjs/modules/next/measurement/index.js +17 -0
- package/lib/commonjs/modules/next/measurement/index.js.map +1 -0
- package/lib/commonjs/modules/next/observation-detail/index.js +17 -0
- package/lib/commonjs/modules/next/observation-detail/index.js.map +1 -0
- package/lib/commonjs/modules/next/patient/index.js +17 -0
- package/lib/commonjs/modules/next/patient/index.js.map +1 -0
- package/lib/commonjs/modules/next/pdf/index.js +17 -0
- package/lib/commonjs/modules/next/pdf/index.js.map +1 -0
- package/lib/commonjs/modules/next/picker-sheet/index.js +17 -0
- package/lib/commonjs/modules/next/picker-sheet/index.js.map +1 -0
- package/lib/commonjs/modules/next/progress-bar/index.js +17 -0
- package/lib/commonjs/modules/next/progress-bar/index.js.map +1 -0
- package/lib/commonjs/modules/next/progress-ring/index.js +17 -0
- package/lib/commonjs/modules/next/progress-ring/index.js.map +1 -0
- package/lib/commonjs/modules/next/setting/index.js +17 -0
- package/lib/commonjs/modules/next/setting/index.js.map +1 -0
- package/lib/commonjs/modules/next/tab/index.js +17 -0
- package/lib/commonjs/modules/next/tab/index.js.map +1 -0
- package/lib/commonjs/modules/next/theme/index.js +17 -0
- package/lib/commonjs/modules/next/theme/index.js.map +1 -0
- package/lib/commonjs/modules/next/tile/index.js +17 -0
- package/lib/commonjs/modules/next/tile/index.js.map +1 -0
- package/lib/commonjs/modules/next/ui/index.js +17 -0
- package/lib/commonjs/modules/next/ui/index.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js +30 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +2 -27
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
- package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +25 -0
- package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/index.js +28 -0
- package/lib/module/modules/next/bluetooth/web/index.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-device.js +140 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js +39 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js +18 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js +128 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js +25 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js +29 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-gatt.js +79 -0
- package/lib/module/modules/next/bluetooth/web/web-gatt.js.map +1 -0
- package/lib/module/modules/next/breathing-exercise/index.js +5 -0
- package/lib/module/modules/next/breathing-exercise/index.js.map +1 -0
- package/lib/module/modules/next/cms/index.js +5 -0
- package/lib/module/modules/next/cms/index.js.map +1 -0
- package/lib/module/modules/next/content/index.js +5 -0
- package/lib/module/modules/next/content/index.js.map +1 -0
- package/lib/module/modules/next/diary/index.js +5 -0
- package/lib/module/modules/next/diary/index.js.map +1 -0
- package/lib/module/modules/next/image/index.js +5 -0
- package/lib/module/modules/next/image/index.js.map +1 -0
- package/lib/module/modules/next/journal/index.js +5 -0
- package/lib/module/modules/next/journal/index.js.map +1 -0
- package/lib/module/modules/next/language-switcher/index.js +5 -0
- package/lib/module/modules/next/language-switcher/index.js.map +1 -0
- package/lib/module/modules/next/measurement/index.js +5 -0
- package/lib/module/modules/next/measurement/index.js.map +1 -0
- package/lib/module/modules/next/observation-detail/index.js +5 -0
- package/lib/module/modules/next/observation-detail/index.js.map +1 -0
- package/lib/module/modules/next/patient/index.js +5 -0
- package/lib/module/modules/next/patient/index.js.map +1 -0
- package/lib/module/modules/next/pdf/index.js +5 -0
- package/lib/module/modules/next/pdf/index.js.map +1 -0
- package/lib/module/modules/next/picker-sheet/index.js +5 -0
- package/lib/module/modules/next/picker-sheet/index.js.map +1 -0
- package/lib/module/modules/next/progress-bar/index.js +5 -0
- package/lib/module/modules/next/progress-bar/index.js.map +1 -0
- package/lib/module/modules/next/progress-ring/index.js +5 -0
- package/lib/module/modules/next/progress-ring/index.js.map +1 -0
- package/lib/module/modules/next/setting/index.js +5 -0
- package/lib/module/modules/next/setting/index.js.map +1 -0
- package/lib/module/modules/next/tab/index.js +5 -0
- package/lib/module/modules/next/tab/index.js.map +1 -0
- package/lib/module/modules/next/theme/index.js +5 -0
- package/lib/module/modules/next/theme/index.js.map +1 -0
- package/lib/module/modules/next/tile/index.js +5 -0
- package/lib/module/modules/next/tile/index.js.map +1 -0
- package/lib/module/modules/next/ui/index.js +5 -0
- package/lib/module/modules/next/ui/index.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +41 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/content/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/content/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/image/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/image/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +41 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/cms/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/cms/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/content/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/content/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/diary/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/diary/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/image/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/image/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/journal/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/journal/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/measurement/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/measurement/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/patient/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/patient/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/pdf/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/pdf/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/setting/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/setting/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/tab/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/tab/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/theme/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/tile/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/tile/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/ui/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/ui/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.webBluetoothScanner = exports.isWebBluetoothAvailable = void 0;
|
|
7
|
+
var _bleErrors = require("../ble-plx/ble-errors.js");
|
|
8
|
+
var _blePeripheral = require("../ble-plx/ble-peripheral.js");
|
|
9
|
+
var _errors = require("../errors.js");
|
|
10
|
+
var _webBleDevice = require("./web-ble-device.js");
|
|
11
|
+
var _webBluetoothServices = require("./web-bluetooth-services.js");
|
|
12
|
+
var _webBluetoothValues = require("./web-bluetooth-values.js");
|
|
13
|
+
/** How long a device gets to advertise, where the browser lets the page watch, before it is reported without. */
|
|
14
|
+
const ADVERTISEMENT_WAIT_MS = 1500;
|
|
15
|
+
const CHOOSER_CLOSED = "NotFoundError";
|
|
16
|
+
|
|
17
|
+
/** What `webBluetoothScanner` needs. */
|
|
18
|
+
|
|
19
|
+
/** A `BluetoothScanner` for browsers, where a page only reaches the devices the user picks in the browser's chooser. */
|
|
20
|
+
|
|
21
|
+
const navigatorBluetooth = () => globalThis.navigator?.bluetooth;
|
|
22
|
+
|
|
23
|
+
/** Whether this browser has Web Bluetooth, such as Chrome and Edge on desktop and Android, or Bluefy on iOS. */
|
|
24
|
+
const isWebBluetoothAvailable = () => navigatorBluetooth() !== undefined;
|
|
25
|
+
exports.isWebBluetoothAvailable = isWebBluetoothAvailable;
|
|
26
|
+
const unsupported = () => new _errors.BluetoothError("unsupported", "This browser has no Web Bluetooth");
|
|
27
|
+
|
|
28
|
+
/** The first advertisement the browser reports, when it lets the page watch them, so names alone need not match. */
|
|
29
|
+
const advertisementOf = device => {
|
|
30
|
+
if (typeof device.watchAdvertisements !== "function") {
|
|
31
|
+
return Promise.resolve(undefined);
|
|
32
|
+
}
|
|
33
|
+
return new Promise(resolve => {
|
|
34
|
+
const watching = new AbortController();
|
|
35
|
+
const done = advertisement => {
|
|
36
|
+
clearTimeout(timer);
|
|
37
|
+
device.removeEventListener("advertisementreceived", received);
|
|
38
|
+
watching.abort();
|
|
39
|
+
resolve(advertisement);
|
|
40
|
+
};
|
|
41
|
+
const received = event => {
|
|
42
|
+
const {
|
|
43
|
+
uuids,
|
|
44
|
+
manufacturerData
|
|
45
|
+
} = event;
|
|
46
|
+
done({
|
|
47
|
+
serviceUUIDs: uuids?.map(_webBluetoothValues.canonicalUuid) ?? null,
|
|
48
|
+
manufacturerData: (0, _webBluetoothValues.manufacturerDataOf)(manufacturerData)
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const timer = setTimeout(() => done(), ADVERTISEMENT_WAIT_MS);
|
|
52
|
+
device.addEventListener("advertisementreceived", received);
|
|
53
|
+
device.watchAdvertisements?.({
|
|
54
|
+
signal: watching.signal
|
|
55
|
+
}).catch(() => done());
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Finds devices through Web Bluetooth. A scan reports the devices this site may already use (`getDevices`, where the
|
|
61
|
+
* browser has it) and every device picked with `chooseDevice`; browsers can't scan in the background or without the
|
|
62
|
+
* user picking.
|
|
63
|
+
*/
|
|
64
|
+
const webBluetoothScanner = ({
|
|
65
|
+
acceptedDevices,
|
|
66
|
+
bluetooth = navigatorBluetooth()
|
|
67
|
+
} = {}) => {
|
|
68
|
+
const optionalServices = (0, _webBluetoothServices.webBluetoothServicesFor)(acceptedDevices);
|
|
69
|
+
const scans = new Set();
|
|
70
|
+
const devices = new Map();
|
|
71
|
+
const peripheralOf = async device => {
|
|
72
|
+
let bleDevice = devices.get(device.id);
|
|
73
|
+
if (!bleDevice) {
|
|
74
|
+
bleDevice = new _webBleDevice.WebBleDevice(device, await advertisementOf(device));
|
|
75
|
+
devices.set(device.id, bleDevice);
|
|
76
|
+
}
|
|
77
|
+
if (!bleDevice.serviceUUIDs?.length) {
|
|
78
|
+
// Devices told apart by their services alone (the SIG profiles) need them, and only a connection reveals them.
|
|
79
|
+
await bleDevice.connect().then(connected => connected.discoverAllServicesAndCharacteristics()).catch(() => undefined);
|
|
80
|
+
}
|
|
81
|
+
return (0, _blePeripheral.blePeripheral)(bleDevice);
|
|
82
|
+
};
|
|
83
|
+
const report = async device => {
|
|
84
|
+
const peripheral = await peripheralOf(device);
|
|
85
|
+
scans.forEach(onFound => onFound(peripheral));
|
|
86
|
+
return peripheral;
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
watchState: listener => {
|
|
90
|
+
if (!bluetooth) {
|
|
91
|
+
listener("unsupported");
|
|
92
|
+
return () => undefined;
|
|
93
|
+
}
|
|
94
|
+
let watching = true;
|
|
95
|
+
const changed = event => watching && listener(event.value ? "on" : "off");
|
|
96
|
+
bluetooth.addEventListener("availabilitychanged", changed);
|
|
97
|
+
bluetooth.getAvailability().then(available => watching && listener(available ? "on" : "off"), () => watching && listener("unknown"));
|
|
98
|
+
return () => {
|
|
99
|
+
watching = false;
|
|
100
|
+
bluetooth.removeEventListener("availabilitychanged", changed);
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
scan: (onFound, onError) => {
|
|
104
|
+
if (!bluetooth) {
|
|
105
|
+
onError(unsupported());
|
|
106
|
+
return () => undefined;
|
|
107
|
+
}
|
|
108
|
+
scans.add(onFound);
|
|
109
|
+
bluetooth.getDevices?.().then(allowed => allowed.forEach(device => void report(device)), error => onError((0, _bleErrors.fromBleError)(error)));
|
|
110
|
+
return () => {
|
|
111
|
+
scans.delete(onFound);
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
chooseDevice: async () => {
|
|
115
|
+
if (!bluetooth) {
|
|
116
|
+
throw unsupported();
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
return await report(await bluetooth.requestDevice({
|
|
120
|
+
acceptAllDevices: true,
|
|
121
|
+
optionalServices
|
|
122
|
+
}));
|
|
123
|
+
} catch (error) {
|
|
124
|
+
if (error?.name === CHOOSER_CLOSED) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
throw (0, _bleErrors.fromBleError)(error);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
exports.webBluetoothScanner = webBluetoothScanner;
|
|
133
|
+
//# sourceMappingURL=web-bluetooth-scanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bleErrors","require","_blePeripheral","_errors","_webBleDevice","_webBluetoothServices","_webBluetoothValues","ADVERTISEMENT_WAIT_MS","CHOOSER_CLOSED","navigatorBluetooth","globalThis","navigator","bluetooth","isWebBluetoothAvailable","undefined","exports","unsupported","BluetoothError","advertisementOf","device","watchAdvertisements","Promise","resolve","watching","AbortController","done","advertisement","clearTimeout","timer","removeEventListener","received","abort","event","uuids","manufacturerData","serviceUUIDs","map","canonicalUuid","manufacturerDataOf","setTimeout","addEventListener","signal","catch","webBluetoothScanner","acceptedDevices","optionalServices","webBluetoothServicesFor","scans","Set","devices","Map","peripheralOf","bleDevice","get","id","WebBleDevice","set","length","connect","then","connected","discoverAllServicesAndCharacteristics","blePeripheral","report","peripheral","forEach","onFound","watchState","listener","changed","value","getAvailability","available","scan","onError","add","getDevices","allowed","error","fromBleError","delete","chooseDevice","requestDevice","acceptAllDevices","name"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-bluetooth-scanner.ts"],"mappings":";;;;;;AAGA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAGA;AACA,MAAMM,qBAAqB,GAAG,IAAI;AAClC,MAAMC,cAAc,GAAG,eAAe;;AAEtC;;AAUA;;AAUA,MAAMC,kBAAkB,GAAGA,CAAA,KACxBC,UAAU,CAAkDC,SAAS,EAAEC,SAAS;;AAEnF;AACA,MAAMC,uBAAuB,GAAGA,CAAA,KAAeJ,kBAAkB,CAAC,CAAC,KAAKK,SAAS;AAACC,OAAA,CAAAF,uBAAA,GAAAA,uBAAA;AAElF,MAAMG,WAAW,GAAGA,CAAA,KAAM,IAAIC,sBAAc,CAAC,aAAa,EAAE,mCAAmC,C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,CAAC,CAAC,OAAOiC,KAAK,EAAE;QACd,IAAKA,KAAK,EAAoCM,IAAI,KAAK5E,cAAc,EAAE;UACrE,OAAOM,SAAS;QAClB;QACA,MAAM,IAAAiE,uBAAY,EAACD,KAAK,CAAC;MAC3B;IACF;EACF,CAAC;AACH,CAAC;AAAC/D,OAAA,CAAA4B,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.webBluetoothServicesFor = exports.WEB_BLUETOOTH_SERVICES = void 0;
|
|
7
|
+
var _backgroundServiceUuids = require("../../../bt-management/services/background-sync/background-service-uuids.js");
|
|
8
|
+
var _integratedDevices = require("../../../bt-management/types/integrated-devices.js");
|
|
9
|
+
var _webBluetoothValues = require("./web-bluetooth-values.js");
|
|
10
|
+
/** Services read on every connection, whatever the device. */
|
|
11
|
+
const SHARED_SERVICES = ["1800", "180a", "180f", "1805", "1804"];
|
|
12
|
+
|
|
13
|
+
/** Bluetooth SIG profiles: glucose, thermometer, heart rate, blood pressure, weight scale, pulse oximeter. */
|
|
14
|
+
const SIG_SERVICES = ["1808", "1809", "180d", "1810", "181d", "1822"];
|
|
15
|
+
|
|
16
|
+
/** Services the integrated devices' protocols use beyond their background-scan services. */
|
|
17
|
+
const PROTOCOL_SERVICES = ["1000", "18f0", "7801", "7802", "7809", "7889", "7892", "a000", "a500", "a602", "a610", "ae30", "f018", "fe60", "fee0", "ff00", "ff12", "ffb0", "ffe0", "ffe5", "fff0", "ffff", "14839ac4-7d7e-415c-9a42-167340cf2339", "e8fb0001-a14b-98f9-831b-4e2941d01248", "00002760-08c2-11e1-9073-0e8ac72e5450", "6e400001-b5a3-f393-e0a9-e50e24dcca9e", "cdeacb80-5235-4c07-8846-93a37ee6b86d", "cdeacd80-5235-4c07-8846-93a37ee6b86d", "49535343-fe7d-4ae5-8fa9-9fafd205e455", "81eea003-e735-49ec-8a11-7e32cae1e14e", "5d4b8aa6-a26a-4a1b-99f5-cd4473c786e3", "2610fc00-494d-494c-4544-55544954414c", "233bf000-5a34-1b6d-975c-000d5690abe4", "23434100-1fe4-1eff-80cb-00ff78297d8b", "00001523-1212-efde-1523-785feabcd123", "0003cdd0-0000-1000-8000-00805f9b0131", "00010203-0405-0607-0809-0a0b0c0d1910", "fb349b5f-8000-0080-0010-0000f0180000"];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Every GATT service an integrated device uses, as a browser must be told when the user picks a device: a page can
|
|
21
|
+
* only reach the services it named in `navigator.bluetooth.requestDevice`'s `optionalServices`.
|
|
22
|
+
*/
|
|
23
|
+
const WEB_BLUETOOTH_SERVICES = exports.WEB_BLUETOOTH_SERVICES = [...new Set([...SHARED_SERVICES, ...SIG_SERVICES, ...PROTOCOL_SERVICES, ...(0, _backgroundServiceUuids.getBackgroundServiceUUIDs)(Object.values(_integratedDevices.IntegratedDevices))].map(_webBluetoothValues.canonicalUuid))];
|
|
24
|
+
|
|
25
|
+
/** `WEB_BLUETOOTH_SERVICES` and the services of the `defineCustomDevice` declarations among `acceptedDevices`. */
|
|
26
|
+
const webBluetoothServicesFor = (acceptedDevices = []) => [...new Set([...WEB_BLUETOOTH_SERVICES, ...(0, _backgroundServiceUuids.getBackgroundServiceUUIDs)(acceptedDevices).map(_webBluetoothValues.canonicalUuid)])];
|
|
27
|
+
exports.webBluetoothServicesFor = webBluetoothServicesFor;
|
|
28
|
+
//# sourceMappingURL=web-bluetooth-services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_backgroundServiceUuids","require","_integratedDevices","_webBluetoothValues","SHARED_SERVICES","SIG_SERVICES","PROTOCOL_SERVICES","WEB_BLUETOOTH_SERVICES","exports","Set","getBackgroundServiceUUIDs","Object","values","IntegratedDevices","map","canonicalUuid","webBluetoothServicesFor","acceptedDevices"],"sour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AGA,CAACC,eAA0C,GAAG,EAAE,KAAe,CAC7F,GAAG,IAAIR,GAAG,CAAC,CAAC,GAAGF,sBAAsB,EAAE,GAAG,IAAAG,iDAAyB,EAACO,eAAe,CAAC,CAACH,GAAG,CAACC,iCAAa,CAAC,CAAC,CAAC,CAC1G;AAACP,OAAA,CAAAQ,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toBase64 = exports.manufacturerDataOf = exports.fromBase64 = exports.canonicalUuid = exports.bytesOf = void 0;
|
|
7
|
+
const BASE_UUID_SUFFIX = "-0000-1000-8000-00805f9b34fb";
|
|
8
|
+
const SHORT_UUID = /^[0-9a-f]{4}$/;
|
|
9
|
+
const MEDIUM_UUID = /^[0-9a-f]{8}$/;
|
|
10
|
+
|
|
11
|
+
/** A UUID as Web Bluetooth accepts it: lower case, with a 16- or 32-bit alias expanded on the Bluetooth base UUID. */
|
|
12
|
+
const canonicalUuid = uuid => {
|
|
13
|
+
const lower = uuid.trim().toLowerCase();
|
|
14
|
+
if (SHORT_UUID.test(lower)) {
|
|
15
|
+
return `0000${lower}${BASE_UUID_SUFFIX}`;
|
|
16
|
+
}
|
|
17
|
+
return MEDIUM_UUID.test(lower) ? `${lower}${BASE_UUID_SUFFIX}` : lower;
|
|
18
|
+
};
|
|
19
|
+
exports.canonicalUuid = canonicalUuid;
|
|
20
|
+
const bytesOf = view => new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
|
|
21
|
+
exports.bytesOf = bytesOf;
|
|
22
|
+
const toBase64 = bytes => btoa(Array.from(bytes, byte => String.fromCharCode(byte)).join(""));
|
|
23
|
+
exports.toBase64 = toBase64;
|
|
24
|
+
const fromBase64 = base64 => Uint8Array.from(atob(base64), char => char.charCodeAt(0));
|
|
25
|
+
|
|
26
|
+
/** Manufacturer data the way `react-native-ble-plx` reports it: the company ID, little endian, then the payload. */
|
|
27
|
+
exports.fromBase64 = fromBase64;
|
|
28
|
+
const manufacturerDataOf = data => {
|
|
29
|
+
const [entry] = data ?? [];
|
|
30
|
+
if (!entry) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const [companyId, payload] = entry;
|
|
34
|
+
return toBase64(Uint8Array.from([companyId & 0xff, companyId >> 8, ...bytesOf(payload)]));
|
|
35
|
+
};
|
|
36
|
+
exports.manufacturerDataOf = manufacturerDataOf;
|
|
37
|
+
//# sourceMappingURL=web-bluetooth-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BASE_UUID_SUFFIX","SHORT_UUID","MEDIUM_UUID","canonicalUuid","uuid","lower","trim","toLowerCase","test","exports","bytesOf","view","Uint8Array","buffer","byteOffset","byteLength","toBase64","bytes","btoa","Array","from","byte","String","fromCharCode","join","fromBase64","base64","atob","char","charCodeAt","manufacturerDataOf","data","entry","companyId","payload"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-bluetooth-values.ts"],"mappings":";;;;;;AAAA,MAAMA,gBAAgB,GAAG,8BAA8B;AACvD,MAAMC,UAAU,GAAG,eAAe;AAClC,MAAMC,WAAW,GAAG,eAAe;;AAEnC;AACA,MAAMC,aAAa,GAAIC,IAAY,IAAa;EAC9C,MAAMC,KAAK,GAAGD,IAAI,CAACE,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAEvC,IAAIN,UAAU,CAACO,IAAI,CAACH,KAAK,CAAC,EAAE;IAC1B,OAAO,OAAOA,KAAK,GAAGL,gBAAgB,EAAE;EAC1C;EAEA,OAAOE,WAAW,CAACM,IAAI,CAACH,KAAK,CAAC,GAAG,GAAGA,KAAK,GAAGL,gBAAgB,EAAE,GAAGK,KAAK;AACxE,CAAC;AAACI,OAAA,CAAAN,aAAA,GAAAA,aAAA;AAEF,MAAMO,OAAO,GAAIC,IAAc,IAAiB,IAAIC,UAAU,CAACD,IAAI,CAACE,MAAM,EAAEF,IAAI,CAACG,UAAU,EAAEH,IAAI,CAACI,UAAU,CAAC;AAACN,OAAA,CAAAC,OAAA,GAAAA,OAAA;AAE9G,MAAMM,QAAQ,GAAIC,KAAiB,IAAaC,IAAI,CAACC,KAAK,CAACC,IAAI,CAACH,KAAK,EAAGI,IAAI,IAAKC,MAAM,CAACC,YAAY,CAACF,IAAI,CAAC,CAAC,CAACG,IAAI,CAAC,EAAE,CAAC,CAAC;AAACf,OAAA,CAAAO,QAAA,GAAAA,QAAA;AAEtH,MAAMS,UAAU,GAAIC,MAAc,IAAiBd,UAAU,CAACQ,IAAI,CAACO,IAAI,CAACD,MAAM,CAAC,EAAGE,IAAI,IAAKA,IAAI,CAACC,UAAU,CAAC,CAAC,CAAC,CAAC;;AAE9G;AAAApB,OAAA,CAAAgB,UAAA,GAAAA,UAAA;AACA,MAAMK,kBAAkB,GAAIC,IAA+C,IAAoB;EAC7F,MAAM,CAACC,KAAK,CAAC,GAAGD,IAAI,IAAI,EAAE;EAE1B,IAAI,CAACC,KAAK,EAAE;IACV,OAAO,IAAI;EACb;EAEA,MAAM,CAACC,SAAS,EAAEC,OAAO,CAAC,GAAGF,KAAK;EAElC,OAAOhB,QAAQ,CAACJ,UAAU,CAACQ,IAAI,CAAC,CAACa,SAAS,GAAG,IAAI,EAAEA,SAAS,IAAI,CAAC,EAAE,GAAGvB,OAAO,CAACwB,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC;AAACzB,OAAA,CAAAqB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-bluetooth.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WebGatt = void 0;
|
|
7
|
+
var _webBleShapes = require("./web-ble-shapes.js");
|
|
8
|
+
var _webBluetoothValues = require("./web-bluetooth-values.js");
|
|
9
|
+
const messageOf = error => error instanceof Error ? error.message : String(error);
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A device's GATT server as one queue: browsers allow one GATT operation at a time, so each runs after the previous one
|
|
13
|
+
* settles, and its services are discovered once per connection.
|
|
14
|
+
*/
|
|
15
|
+
class WebGatt {
|
|
16
|
+
characteristics = new Map();
|
|
17
|
+
operations = Promise.resolve();
|
|
18
|
+
constructor(device) {
|
|
19
|
+
this.device = device;
|
|
20
|
+
}
|
|
21
|
+
get connected() {
|
|
22
|
+
return this.device.gatt?.connected ?? false;
|
|
23
|
+
}
|
|
24
|
+
server() {
|
|
25
|
+
if (!this.device.gatt) {
|
|
26
|
+
throw new _webBleShapes.WebBleError(_webBleShapes.UNKNOWN_ERROR, `Device ${this.device.id} is unsupported: it has no GATT server`);
|
|
27
|
+
}
|
|
28
|
+
return this.device.gatt;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Runs `operation` after the previous one settles; a failure comes back as a `react-native-ble-plx` error. */
|
|
32
|
+
queued(operation) {
|
|
33
|
+
const result = this.operations.then(operation, operation).catch(error => {
|
|
34
|
+
throw this.errorOf(error);
|
|
35
|
+
});
|
|
36
|
+
this.operations = result.catch(() => undefined);
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The discovered services' UUIDs; call it inside a queued operation, so discovery never queues behind itself. */
|
|
41
|
+
async serviceUuids() {
|
|
42
|
+
await this.discover();
|
|
43
|
+
return [...this.characteristics.keys()];
|
|
44
|
+
}
|
|
45
|
+
async characteristicsOf(serviceUuid) {
|
|
46
|
+
await this.discover();
|
|
47
|
+
return [...(this.characteristics.get((0, _webBluetoothValues.canonicalUuid)(serviceUuid))?.values() ?? [])];
|
|
48
|
+
}
|
|
49
|
+
async characteristic(serviceUuid, characteristicUuid) {
|
|
50
|
+
await this.discover();
|
|
51
|
+
const characteristic = this.characteristics.get((0, _webBluetoothValues.canonicalUuid)(serviceUuid))?.get((0, _webBluetoothValues.canonicalUuid)(characteristicUuid));
|
|
52
|
+
if (!characteristic) {
|
|
53
|
+
throw new _webBleShapes.WebBleError(_webBleShapes.UNKNOWN_ERROR, `Characteristic ${characteristicUuid} of service ${serviceUuid} was not found on device ${this.device.id}`);
|
|
54
|
+
}
|
|
55
|
+
return characteristic;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Forgets the discovered services, as a new connection must discover them again. */
|
|
59
|
+
forget() {
|
|
60
|
+
this.discovered = undefined;
|
|
61
|
+
}
|
|
62
|
+
errorOf(error) {
|
|
63
|
+
if (error instanceof _webBleShapes.WebBleError) {
|
|
64
|
+
return error;
|
|
65
|
+
}
|
|
66
|
+
return new _webBleShapes.WebBleError(this.connected ? _webBleShapes.UNKNOWN_ERROR : _webBleShapes.DEVICE_DISCONNECTED, messageOf(error), error);
|
|
67
|
+
}
|
|
68
|
+
discover() {
|
|
69
|
+
this.discovered ??= (async () => {
|
|
70
|
+
this.characteristics.clear();
|
|
71
|
+
for (const service of await this.server().getPrimaryServices()) {
|
|
72
|
+
const characteristics = await service.getCharacteristics().catch(() => []);
|
|
73
|
+
this.characteristics.set((0, _webBluetoothValues.canonicalUuid)(service.uuid), new Map(characteristics.map(characteristic => [(0, _webBluetoothValues.canonicalUuid)(characteristic.uuid), characteristic])));
|
|
74
|
+
}
|
|
75
|
+
})().catch(error => {
|
|
76
|
+
this.discovered = undefined;
|
|
77
|
+
throw error;
|
|
78
|
+
});
|
|
79
|
+
return this.discovered;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.WebGatt = WebGatt;
|
|
83
|
+
//# sourceMappingURL=web-gatt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_webBleShapes","require","_webBluetoothValues","messageOf","error","Error","message","String","WebGatt","characteristics","Map","operations","Promise","resolve","constructor","device","connected","gatt","server","WebBleError","UNKNOWN_ERROR","id","queued","operation","result","then","catch","errorOf","undefined","serviceUuids","discover","keys","characteristicsOf","serviceUuid","get","canonicalUuid","values","characteristic","characteristicUuid","forget","discovered","DEVICE_DISCONNECTED","clear","service","getPrimaryServices","getCharacteristics","set","uuid","map","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-gatt.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AAGA,MAAME,SAAS,GAAIC,KAAc,IAAcA,KAAK,YAAYC,KAAK,GAAGD,KAAK,CAACE,OAAO,GAAGC,MAAM,CAACH,KAAK,CAAE;;AAEtG;AACA;AACA;AACA;AACA,MAAMI,OAAO,CAAC;EACKC,eAAe,GAAG,IAAIC,GAAG,CAAkD,CAAC;EACrFC,UAAU,GAAqBC,OAAO,CAACC,OAAO,CAAC,CAAC;EAGjDC,WAAWA,CAAkBC,MAA0B,EAAE;IAAA,KAA5BA,MAA0B,GAA1BA,MAA0B;EAAG;EAEjE,IAAWC,SAASA,CAAA,EAAY;IAC9B,OAAO,IAAI,CAACD,MAAM,CAACE,IAAI,EAAED,SAAS,IAAI,KAAK;EAC7C;EAEOE,MAAMA,CAAA,EAAuB;IAClC,IAAI,CAAC,IAAI,CAACH,MAAM,CAACE,IAAI,EAAE;MACrB,MAAM,IAAIE,yBAAW,CAACC,2BAAa,EAAE,UAAU,IAAI,CAACL,MAAM,CAACM,EAAE,wCAAwC,CAAC;IACxG;IAEA,OAAO,IAAI,CAACN,MAAM,CAACE,IAAI;EACzB;;EAEA;EACOK,MAAMA,CAAIC,SAA2B,EAAc;IACxD,MAAMC,MAAM,GAAG,IAAI,CAACb,UAAU,CAACc,IAAI,CAACF,SAAS,EAAEA,SAAS,CAAC,CAACG,KAAK,CAAEtB,KAAc,IAAK;MA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BAAW,CAAC,IAAI,CAACH,SAAS,GAAGI,2BAAa,GAAGqB,iCAAmB,EAAEtC,SAAS,CAACC,KAAK,CAAC,EAAEA,KAAK,CAAC;EACvG;EAEQ0B,QAAQA,CAAA,EAAkB;IAChC,IAAI,CAACU,UAAU,KAAK,CAAC,YAAY;MAC/B,IAAI,CAAC/B,eAAe,CAACiC,KAAK,CAAC,CAAC;MAC5B,KAAK,MAAMC,OAAO,IAAI,MAAM,IAAI,CAACzB,MAAM,CAAC,CAAC,CAAC0B,kBAAkB,CAAC,CAAC,EAAE;QAC9D,MAAMnC,eAAe,GAAG,MAAMkC,OAAO,CAACE,kBAAkB,CAAC,CAAC,CAACnB,KAAK,CAAC,MAAM,EAAE,CAAC;QAE1E,IAAI,CAACjB,eAAe,CAACqC,GAAG,CACtB,IAAAX,iCAAa,EAACQ,OAAO,CAACI,IAAI,CAAC,EAC3B,IAAIrC,GAAG,CAACD,eAAe,CAACuC,GAAG,CAAEX,cAAc,IAAK,CAAC,IAAAF,iCAAa,EAACE,cAAc,CAACU,IAAI,CAAC,EAAEV,cAAc,CAAC,CAAC,CACvG,CAAC;MACH;IACF,CAAC,EAAE,CAAC,CAACX,KAAK,CAAEtB,KAAc,IAAK;MAC7B,IAAI,CAACoC,UAAU,GAAGZ,SAAS;MAC3B,MAAMxB,KAAK;IACb,CAAC,CAAC;IAEF,OAAO,IAAI,CAACoC,UAAU;EACxB;AACF;AAACS,OAAA,CAAAzC,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../breathing-exercise/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/breathing-exercise/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../cms/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/cms/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../content/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/content/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../diary/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/diary/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../image/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/image/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../journal/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/journal/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../language-switcher/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/language-switcher/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../measurement/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/measurement/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../observation-detail/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/observation-detail/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../patient/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/patient/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../pdf/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/pdf/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../picker-sheet/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/picker-sheet/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("../../progress-bar/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["modules/next/progress-bar/index.ts"],"mappings":";;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|