@ovok/native 1.16.1-rc.4 → 1.16.1-rc.6

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.
Files changed (506) hide show
  1. package/lib/commonjs/modules/auth/google-return-page/index.js +24 -0
  2. package/lib/commonjs/modules/auth/google-return-page/index.js.map +1 -0
  3. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js +15 -0
  4. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
  5. package/lib/commonjs/modules/auth/index.js +21 -10
  6. package/lib/commonjs/modules/auth/index.js.map +1 -1
  7. package/lib/commonjs/modules/auth/session/logout-session.js +1 -1
  8. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +73 -0
  9. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
  10. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
  11. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js +73 -0
  12. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
  13. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
  14. package/lib/commonjs/modules/auth/sign-in/index.js +24 -0
  15. package/lib/commonjs/modules/auth/sign-in/index.js.map +1 -1
  16. package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js +90 -0
  17. package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
  18. package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js +89 -0
  19. package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
  20. package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js +21 -0
  21. package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
  22. package/lib/commonjs/modules/auth/utils/sign-out-google.web.js +10 -0
  23. package/lib/commonjs/modules/auth/utils/sign-out-google.web.js.map +1 -0
  24. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
  25. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  26. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
  27. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  28. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js +98 -0
  29. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
  30. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +127 -0
  31. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
  32. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
  33. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  34. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
  35. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  36. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +10 -2
  37. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  38. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
  39. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  40. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +2 -2
  41. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  42. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  43. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
  44. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  45. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
  46. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  47. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
  48. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
  49. package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js +23 -0
  50. package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
  51. package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +13 -0
  52. package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
  53. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +7 -7
  54. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
  55. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +8 -3
  56. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  57. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +47 -0
  58. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -0
  59. package/lib/commonjs/modules/data-sync/utils/health-units.js +6 -1
  60. package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
  61. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js +35 -0
  62. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  63. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +3 -30
  64. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  65. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +2 -2
  66. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  67. package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  68. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +28 -0
  69. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  70. package/lib/commonjs/modules/next/bluetooth/web/index.js +208 -0
  71. package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -0
  72. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js +143 -0
  73. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  74. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js +43 -0
  75. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  76. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js +21 -0
  77. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  78. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js +133 -0
  79. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  80. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js +28 -0
  81. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  82. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js +37 -0
  83. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  84. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  85. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  86. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js +83 -0
  87. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  88. package/lib/commonjs/modules/next/breathing-exercise/index.js +17 -0
  89. package/lib/commonjs/modules/next/breathing-exercise/index.js.map +1 -0
  90. package/lib/commonjs/modules/next/cms/index.js +17 -0
  91. package/lib/commonjs/modules/next/cms/index.js.map +1 -0
  92. package/lib/commonjs/modules/next/content/index.js +17 -0
  93. package/lib/commonjs/modules/next/content/index.js.map +1 -0
  94. package/lib/commonjs/modules/next/diary/index.js +17 -0
  95. package/lib/commonjs/modules/next/diary/index.js.map +1 -0
  96. package/lib/commonjs/modules/next/image/index.js +17 -0
  97. package/lib/commonjs/modules/next/image/index.js.map +1 -0
  98. package/lib/commonjs/modules/next/journal/index.js +17 -0
  99. package/lib/commonjs/modules/next/journal/index.js.map +1 -0
  100. package/lib/commonjs/modules/next/language-switcher/index.js +17 -0
  101. package/lib/commonjs/modules/next/language-switcher/index.js.map +1 -0
  102. package/lib/commonjs/modules/next/measurement/index.js +17 -0
  103. package/lib/commonjs/modules/next/measurement/index.js.map +1 -0
  104. package/lib/commonjs/modules/next/observation-detail/index.js +17 -0
  105. package/lib/commonjs/modules/next/observation-detail/index.js.map +1 -0
  106. package/lib/commonjs/modules/next/patient/index.js +17 -0
  107. package/lib/commonjs/modules/next/patient/index.js.map +1 -0
  108. package/lib/commonjs/modules/next/pdf/index.js +17 -0
  109. package/lib/commonjs/modules/next/pdf/index.js.map +1 -0
  110. package/lib/commonjs/modules/next/picker-sheet/index.js +17 -0
  111. package/lib/commonjs/modules/next/picker-sheet/index.js.map +1 -0
  112. package/lib/commonjs/modules/next/progress-bar/index.js +17 -0
  113. package/lib/commonjs/modules/next/progress-bar/index.js.map +1 -0
  114. package/lib/commonjs/modules/next/progress-ring/index.js +17 -0
  115. package/lib/commonjs/modules/next/progress-ring/index.js.map +1 -0
  116. package/lib/commonjs/modules/next/setting/index.js +17 -0
  117. package/lib/commonjs/modules/next/setting/index.js.map +1 -0
  118. package/lib/commonjs/modules/next/tab/index.js +17 -0
  119. package/lib/commonjs/modules/next/tab/index.js.map +1 -0
  120. package/lib/commonjs/modules/next/theme/index.js +17 -0
  121. package/lib/commonjs/modules/next/theme/index.js.map +1 -0
  122. package/lib/commonjs/modules/next/tile/index.js +17 -0
  123. package/lib/commonjs/modules/next/tile/index.js.map +1 -0
  124. package/lib/commonjs/modules/next/ui/index.js +17 -0
  125. package/lib/commonjs/modules/next/ui/index.js.map +1 -0
  126. package/lib/module/modules/auth/google-return-page/index.js +21 -0
  127. package/lib/module/modules/auth/google-return-page/index.js.map +1 -0
  128. package/lib/module/modules/auth/hooks/use-social-sign-in.web.js +10 -0
  129. package/lib/module/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
  130. package/lib/module/modules/auth/index.js +2 -1
  131. package/lib/module/modules/auth/index.js.map +1 -1
  132. package/lib/module/modules/auth/session/logout-session.js +1 -1
  133. package/lib/module/modules/auth/session/logout-session.js.map +1 -1
  134. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +67 -0
  135. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
  136. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
  137. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js.map +1 -1
  138. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js +68 -0
  139. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
  140. package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
  141. package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js.map +1 -1
  142. package/lib/module/modules/auth/sign-in/index.js +2 -0
  143. package/lib/module/modules/auth/sign-in/index.js.map +1 -1
  144. package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js +84 -0
  145. package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
  146. package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js +84 -0
  147. package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
  148. package/lib/module/modules/auth/sign-in/utils/jwt-claims.js +17 -0
  149. package/lib/module/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
  150. package/lib/module/modules/auth/utils/sign-out-google.web.js +5 -0
  151. package/lib/module/modules/auth/utils/sign-out-google.web.js.map +1 -0
  152. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
  153. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  154. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
  155. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  156. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js +91 -0
  157. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
  158. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +123 -0
  159. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
  160. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
  161. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  162. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
  163. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  164. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +10 -2
  165. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  166. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
  167. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  168. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +2 -2
  169. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  170. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  171. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
  172. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  173. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
  174. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  175. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
  176. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
  177. package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js +18 -0
  178. package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
  179. package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +8 -0
  180. package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
  181. package/lib/module/modules/data-sync/services/managers/data-processor.js +7 -7
  182. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  183. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +8 -3
  184. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  185. package/lib/module/modules/data-sync/utils/default-health-coding.js +44 -0
  186. package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -0
  187. package/lib/module/modules/data-sync/utils/health-units.js +6 -1
  188. package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
  189. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js +30 -0
  190. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  191. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +2 -27
  192. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  193. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +1 -1
  194. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  195. package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  196. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +25 -0
  197. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  198. package/lib/module/modules/next/bluetooth/web/index.js +28 -0
  199. package/lib/module/modules/next/bluetooth/web/index.js.map +1 -0
  200. package/lib/module/modules/next/bluetooth/web/web-ble-device.js +140 -0
  201. package/lib/module/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  202. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js +39 -0
  203. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  204. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js +18 -0
  205. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  206. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js +128 -0
  207. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  208. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js +25 -0
  209. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  210. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js +29 -0
  211. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  212. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  213. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  214. package/lib/module/modules/next/bluetooth/web/web-gatt.js +79 -0
  215. package/lib/module/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  216. package/lib/module/modules/next/breathing-exercise/index.js +5 -0
  217. package/lib/module/modules/next/breathing-exercise/index.js.map +1 -0
  218. package/lib/module/modules/next/cms/index.js +5 -0
  219. package/lib/module/modules/next/cms/index.js.map +1 -0
  220. package/lib/module/modules/next/content/index.js +5 -0
  221. package/lib/module/modules/next/content/index.js.map +1 -0
  222. package/lib/module/modules/next/diary/index.js +5 -0
  223. package/lib/module/modules/next/diary/index.js.map +1 -0
  224. package/lib/module/modules/next/image/index.js +5 -0
  225. package/lib/module/modules/next/image/index.js.map +1 -0
  226. package/lib/module/modules/next/journal/index.js +5 -0
  227. package/lib/module/modules/next/journal/index.js.map +1 -0
  228. package/lib/module/modules/next/language-switcher/index.js +5 -0
  229. package/lib/module/modules/next/language-switcher/index.js.map +1 -0
  230. package/lib/module/modules/next/measurement/index.js +5 -0
  231. package/lib/module/modules/next/measurement/index.js.map +1 -0
  232. package/lib/module/modules/next/observation-detail/index.js +5 -0
  233. package/lib/module/modules/next/observation-detail/index.js.map +1 -0
  234. package/lib/module/modules/next/patient/index.js +5 -0
  235. package/lib/module/modules/next/patient/index.js.map +1 -0
  236. package/lib/module/modules/next/pdf/index.js +5 -0
  237. package/lib/module/modules/next/pdf/index.js.map +1 -0
  238. package/lib/module/modules/next/picker-sheet/index.js +5 -0
  239. package/lib/module/modules/next/picker-sheet/index.js.map +1 -0
  240. package/lib/module/modules/next/progress-bar/index.js +5 -0
  241. package/lib/module/modules/next/progress-bar/index.js.map +1 -0
  242. package/lib/module/modules/next/progress-ring/index.js +5 -0
  243. package/lib/module/modules/next/progress-ring/index.js.map +1 -0
  244. package/lib/module/modules/next/setting/index.js +5 -0
  245. package/lib/module/modules/next/setting/index.js.map +1 -0
  246. package/lib/module/modules/next/tab/index.js +5 -0
  247. package/lib/module/modules/next/tab/index.js.map +1 -0
  248. package/lib/module/modules/next/theme/index.js +5 -0
  249. package/lib/module/modules/next/theme/index.js.map +1 -0
  250. package/lib/module/modules/next/tile/index.js +5 -0
  251. package/lib/module/modules/next/tile/index.js.map +1 -0
  252. package/lib/module/modules/next/ui/index.js +5 -0
  253. package/lib/module/modules/next/ui/index.js.map +1 -0
  254. package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts +8 -0
  255. package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
  257. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -0
  259. package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/modules/auth/register/components/register.d.ts +2 -2
  261. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
  262. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
  263. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
  265. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
  266. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
  268. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
  269. package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts +2 -0
  270. package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
  272. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
  274. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
  276. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
  278. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
  280. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
  282. package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
  286. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
  288. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
  291. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
  293. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
  297. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
  299. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
  302. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
  304. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
  306. package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
  309. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
  312. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  315. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  317. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  319. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  321. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  323. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +41 -0
  325. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  327. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  329. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  331. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  333. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  335. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  337. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  339. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  341. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts +3 -0
  343. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts +3 -0
  345. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts +3 -0
  347. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts +3 -0
  349. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts +3 -0
  351. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts +3 -0
  353. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts +3 -0
  355. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts +3 -0
  357. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts +3 -0
  359. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts +3 -0
  361. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts +3 -0
  363. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts +3 -0
  365. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts +3 -0
  367. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts +3 -0
  369. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts +3 -0
  371. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts +3 -0
  373. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts +3 -0
  375. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts +3 -0
  377. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts +3 -0
  379. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts.map +1 -0
  380. package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts +8 -0
  381. package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts.map +1 -0
  382. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
  383. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
  384. package/lib/typescript/module/src/modules/auth/index.d.ts +1 -0
  385. package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
  386. package/lib/typescript/module/src/modules/auth/register/components/register.d.ts +2 -2
  387. package/lib/typescript/module/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
  388. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
  389. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
  390. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
  391. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
  392. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
  393. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
  394. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
  395. package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts +2 -0
  396. package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts.map +1 -1
  397. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
  398. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  399. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
  400. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  401. package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
  402. package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
  403. package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
  404. package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
  405. package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
  406. package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
  407. package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
  408. package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
  409. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  410. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  411. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
  412. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
  413. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
  414. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
  415. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  416. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
  417. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  418. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
  419. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  420. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -1
  421. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  422. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
  423. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  424. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
  425. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  426. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
  427. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
  428. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  429. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
  430. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
  431. package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
  432. package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
  433. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  434. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
  435. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  436. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  437. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
  438. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
  439. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  440. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  441. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  442. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  443. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  444. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  445. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  446. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  447. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  448. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  449. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  450. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +41 -0
  451. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  452. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  453. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  454. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  455. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  456. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  457. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  458. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  459. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  460. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  461. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  462. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  463. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  464. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  465. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  466. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  467. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  468. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts +3 -0
  469. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  470. package/lib/typescript/module/src/modules/next/cms/index.d.ts +3 -0
  471. package/lib/typescript/module/src/modules/next/cms/index.d.ts.map +1 -0
  472. package/lib/typescript/module/src/modules/next/content/index.d.ts +3 -0
  473. package/lib/typescript/module/src/modules/next/content/index.d.ts.map +1 -0
  474. package/lib/typescript/module/src/modules/next/diary/index.d.ts +3 -0
  475. package/lib/typescript/module/src/modules/next/diary/index.d.ts.map +1 -0
  476. package/lib/typescript/module/src/modules/next/image/index.d.ts +3 -0
  477. package/lib/typescript/module/src/modules/next/image/index.d.ts.map +1 -0
  478. package/lib/typescript/module/src/modules/next/journal/index.d.ts +3 -0
  479. package/lib/typescript/module/src/modules/next/journal/index.d.ts.map +1 -0
  480. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts +3 -0
  481. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts.map +1 -0
  482. package/lib/typescript/module/src/modules/next/measurement/index.d.ts +3 -0
  483. package/lib/typescript/module/src/modules/next/measurement/index.d.ts.map +1 -0
  484. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts +3 -0
  485. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts.map +1 -0
  486. package/lib/typescript/module/src/modules/next/patient/index.d.ts +3 -0
  487. package/lib/typescript/module/src/modules/next/patient/index.d.ts.map +1 -0
  488. package/lib/typescript/module/src/modules/next/pdf/index.d.ts +3 -0
  489. package/lib/typescript/module/src/modules/next/pdf/index.d.ts.map +1 -0
  490. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts +3 -0
  491. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  492. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts +3 -0
  493. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts.map +1 -0
  494. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts +3 -0
  495. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts.map +1 -0
  496. package/lib/typescript/module/src/modules/next/setting/index.d.ts +3 -0
  497. package/lib/typescript/module/src/modules/next/setting/index.d.ts.map +1 -0
  498. package/lib/typescript/module/src/modules/next/tab/index.d.ts +3 -0
  499. package/lib/typescript/module/src/modules/next/tab/index.d.ts.map +1 -0
  500. package/lib/typescript/module/src/modules/next/theme/index.d.ts +3 -0
  501. package/lib/typescript/module/src/modules/next/theme/index.d.ts.map +1 -0
  502. package/lib/typescript/module/src/modules/next/tile/index.d.ts +3 -0
  503. package/lib/typescript/module/src/modules/next/tile/index.d.ts.map +1 -0
  504. package/lib/typescript/module/src/modules/next/ui/index.d.ts +3 -0
  505. package/lib/typescript/module/src/modules/next/ui/index.d.ts.map +1 -0
  506. package/package.json +1 -1
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BluetoothError", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _errors.BluetoothError;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "BluetoothProvider", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _context.BluetoothProvider;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "BluetoothRuntime", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _runtime.BluetoothRuntime;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "Devices", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _supportedDevices.Devices;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "IntegratedDevices", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _integratedDevices.IntegratedDevices;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "SIG_PROTOCOLS", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _sigProfiles.SIG_PROTOCOLS;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "SUPPORTED_DEVICES", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _supportedDevices.SUPPORTED_DEVICES;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "WEB_BLUETOOTH_SERVICES", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _webBluetoothServices.WEB_BLUETOOTH_SERVICES;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "acceptedMemorySlots", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _resultPolicy.acceptedMemorySlots;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "builtInDevices", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _builtInDevices.builtInDevices;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "createWebBluetoothRuntime", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _createWebBluetoothRuntime.createWebBluetoothRuntime;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "dailyTotalsOnly", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _resultPolicy.dailyTotalsOnly;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "defineDevice", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _devices.defineDevice;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "everyReading", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _resultPolicy.everyReading;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "firstReadingPerKind", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _resultPolicy.firstReadingPerKind;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "isWebBluetoothAvailable", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _webBluetoothScanner.isWebBluetoothAvailable;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "keepReadings", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _resultPolicy.keepReadings;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "ovokReadingSink", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _ovokSink.ovokReadingSink;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "policyByKind", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _resultPolicy.policyByKind;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "resultPoliciesFor", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _deviceQuery.resultPoliciesFor;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "useBluetooth", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _context.useBluetooth;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "useBluetoothPermission", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _hooks.useBluetoothPermission;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "useBluetoothState", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _hooks.useBluetoothState;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "useMeasurements", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _hooks.useMeasurements;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "useNearbyDevice", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _hooks.useNearbyDevice;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "useNearbyDevices", {
157
+ enumerable: true,
158
+ get: function () {
159
+ return _hooks.useNearbyDevices;
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "usePairedDevices", {
163
+ enumerable: true,
164
+ get: function () {
165
+ return _hooks.usePairedDevices;
166
+ }
167
+ });
168
+ Object.defineProperty(exports, "useScanning", {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _hooks.useScanning;
172
+ }
173
+ });
174
+ Object.defineProperty(exports, "webBluetoothPermissions", {
175
+ enumerable: true,
176
+ get: function () {
177
+ return _webBluetoothPermissions.webBluetoothPermissions;
178
+ }
179
+ });
180
+ Object.defineProperty(exports, "webBluetoothScanner", {
181
+ enumerable: true,
182
+ get: function () {
183
+ return _webBluetoothScanner.webBluetoothScanner;
184
+ }
185
+ });
186
+ Object.defineProperty(exports, "webBluetoothServicesFor", {
187
+ enumerable: true,
188
+ get: function () {
189
+ return _webBluetoothServices.webBluetoothServicesFor;
190
+ }
191
+ });
192
+ var _createWebBluetoothRuntime = require("./create-web-bluetooth-runtime.js");
193
+ var _webBluetoothScanner = require("./web-bluetooth-scanner.js");
194
+ var _webBluetoothPermissions = require("./web-bluetooth-permissions.js");
195
+ var _webBluetoothServices = require("./web-bluetooth-services.js");
196
+ var _runtime = require("../runtime.js");
197
+ var _errors = require("../errors.js");
198
+ var _devices = require("../devices.js");
199
+ var _resultPolicy = require("../result-policy.js");
200
+ var _sigProfiles = require("../sig-profiles.js");
201
+ var _builtInDevices = require("../ble-plx/built-in-devices.js");
202
+ var _integratedDevices = require("../../../bt-management/types/integrated-devices.js");
203
+ var _supportedDevices = require("../../../bt-device/constants/supported-devices.js");
204
+ var _deviceQuery = require("../../../bt-device/utils/device-query.js");
205
+ var _ovokSink = require("../react-native/ovok-sink.js");
206
+ var _context = require("../react/context.js");
207
+ var _hooks = require("../react/hooks.js");
208
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_createWebBluetoothRuntime","require","_webBluetoothScanner","_webBluetoothPermissions","_webBluetoothServices","_runtime","_errors","_devices","_resultPolicy","_sigProfiles","_builtInDevices","_integratedDevices","_supportedDevices","_deviceQuery","_ovokSink","_context","_hooks"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,0BAAA,GAAAC,OAAA;AAEA,IAAAC,oBAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AAMA,IAAAM,QAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AASA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AAEA,IAAAW,iBAAA,GAAAX,OAAA;AAEA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AACA,IAAAc,QAAA,GAAAd,OAAA;AAEA,IAAAe,MAAA,GAAAf,OAAA","ignoreList":[]}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WebBleDevice = void 0;
7
+ var _webBleShapes = require("./web-ble-shapes.js");
8
+ var _webBluetoothValues = require("./web-bluetooth-values.js");
9
+ var _webGatt = require("./web-gatt.js");
10
+ /** The ATT default; browsers negotiate a larger MTU themselves and expose no way to ask for one. */
11
+ const DEFAULT_MTU = 23;
12
+ const VALUE_CHANGED = "characteristicvaluechanged";
13
+ const DISCONNECTED = "gattserverdisconnected";
14
+
15
+ /** Advertising data a browser saw for the device, when it let the page watch advertisements. */
16
+
17
+ /**
18
+ * A Web Bluetooth device behind the part of the `react-native-ble-plx` `Device` API the SDK's device classes use, so
19
+ * every integrated device and `defineCustomDevice` declaration runs unchanged in a browser. Operations queue (see
20
+ * `WebGatt`), so a write also waits for notifications still being started.
21
+ */
22
+ class WebBleDevice {
23
+ mtu = DEFAULT_MTU;
24
+ rssi = null;
25
+ monitors = new Set();
26
+ disconnectListeners = new Set();
27
+ constructor(device, advertisement) {
28
+ this.id = device.id;
29
+ this.name = device.name?.trim() || null;
30
+ this.localName = this.name;
31
+ this.manufacturerData = advertisement?.manufacturerData ?? null;
32
+ this.serviceUUIDs = advertisement?.serviceUUIDs ?? null;
33
+ this.gatt = new _webGatt.WebGatt(device);
34
+ device.addEventListener(DISCONNECTED, this.onDisconnect);
35
+ }
36
+ async connect() {
37
+ await this.gatt.server().connect();
38
+ return this;
39
+ }
40
+ async isConnected() {
41
+ return this.gatt.connected;
42
+ }
43
+ async cancelConnection() {
44
+ if (this.gatt.connected) {
45
+ this.gatt.server().disconnect();
46
+ }
47
+ return this;
48
+ }
49
+ async requestMTU() {
50
+ return this;
51
+ }
52
+
53
+ /** Discovers the services, and reports them as advertised when the browser showed none. */
54
+ async discoverAllServicesAndCharacteristics() {
55
+ const uuids = await this.gatt.queued(() => {
56
+ this.gatt.forget();
57
+ return this.gatt.serviceUuids();
58
+ });
59
+ if (!this.serviceUUIDs?.length) {
60
+ this.serviceUUIDs = uuids;
61
+ }
62
+ return this;
63
+ }
64
+ services() {
65
+ return this.gatt.queued(async () => (await this.gatt.serviceUuids()).map(uuid => ({
66
+ uuid,
67
+ deviceID: this.id,
68
+ isPrimary: true
69
+ })));
70
+ }
71
+ characteristicsForService(serviceUuid) {
72
+ return this.gatt.queued(async () => (await this.gatt.characteristicsOf(serviceUuid)).map(characteristic => (0, _webBleShapes.toBleCharacteristic)(this.id, (0, _webBluetoothValues.canonicalUuid)(serviceUuid), characteristic, null)));
73
+ }
74
+ readCharacteristicForService(serviceUuid, characteristicUuid) {
75
+ return this.gatt.queued(async () => {
76
+ const characteristic = await this.gatt.characteristic(serviceUuid, characteristicUuid);
77
+ const value = await characteristic.readValue();
78
+ return (0, _webBleShapes.toBleCharacteristic)(this.id, (0, _webBluetoothValues.canonicalUuid)(serviceUuid), characteristic, (0, _webBluetoothValues.toBase64)((0, _webBluetoothValues.bytesOf)(value)));
79
+ });
80
+ }
81
+ writeCharacteristicWithResponseForService(serviceUuid, characteristicUuid, base64) {
82
+ return this.write(serviceUuid, characteristicUuid, base64, true);
83
+ }
84
+ writeCharacteristicWithoutResponseForService(serviceUuid, characteristicUuid, base64) {
85
+ return this.write(serviceUuid, characteristicUuid, base64, false);
86
+ }
87
+
88
+ /** Starts notifications in the GATT queue; `listener` gets each value, then `DeviceDisconnected` if the link drops. */
89
+ monitorCharacteristicForService(serviceUuid, characteristicUuid, listener) {
90
+ let characteristic;
91
+ let active = true;
92
+ const onValue = event => {
93
+ const value = event.target?.value;
94
+ if (active && characteristic && value) {
95
+ const base64 = (0, _webBluetoothValues.toBase64)((0, _webBluetoothValues.bytesOf)(value));
96
+ listener(null, (0, _webBleShapes.toBleCharacteristic)(this.id, (0, _webBluetoothValues.canonicalUuid)(serviceUuid), characteristic, base64));
97
+ }
98
+ };
99
+ const stop = () => {
100
+ const started = characteristic;
101
+ started?.removeEventListener(VALUE_CHANGED, onValue);
102
+ void this.gatt.queued(async () => started?.stopNotifications()).catch(() => undefined);
103
+ };
104
+ this.monitors.add(listener);
105
+ this.gatt.queued(async () => {
106
+ characteristic = await this.gatt.characteristic(serviceUuid, characteristicUuid);
107
+ characteristic.addEventListener(VALUE_CHANGED, onValue);
108
+ await characteristic.startNotifications();
109
+ }).then(() => !active && stop(), error => active && listener(this.gatt.errorOf(error), null));
110
+ return {
111
+ remove: () => {
112
+ if (active) {
113
+ active = false;
114
+ this.monitors.delete(listener);
115
+ stop();
116
+ }
117
+ }
118
+ };
119
+ }
120
+ onDisconnected(listener) {
121
+ this.disconnectListeners.add(listener);
122
+ return {
123
+ remove: () => this.disconnectListeners.delete(listener)
124
+ };
125
+ }
126
+ onDisconnect = () => {
127
+ const error = new _webBleShapes.WebBleError(_webBleShapes.DEVICE_DISCONNECTED, `Device ${this.id} was disconnected`);
128
+ [...this.monitors].forEach(listener => listener(error, null));
129
+ this.monitors.clear();
130
+ this.gatt.forget();
131
+ [...this.disconnectListeners].forEach(listener => listener(null, this));
132
+ };
133
+ write(serviceUuid, characteristicUuid, base64, withResponse) {
134
+ return this.gatt.queued(async () => {
135
+ const characteristic = await this.gatt.characteristic(serviceUuid, characteristicUuid);
136
+ const writeValue = withResponse ? characteristic.writeValueWithResponse : characteristic.writeValueWithoutResponse;
137
+ await (writeValue ?? characteristic.writeValue).call(characteristic, (0, _webBluetoothValues.fromBase64)(base64));
138
+ return (0, _webBleShapes.toBleCharacteristic)(this.id, (0, _webBluetoothValues.canonicalUuid)(serviceUuid), characteristic, base64);
139
+ });
140
+ }
141
+ }
142
+ exports.WebBleDevice = WebBleDevice;
143
+ //# sourceMappingURL=web-ble-device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_webBleShapes","require","_webBluetoothValues","_webGatt","DEFAULT_MTU","VALUE_CHANGED","DISCONNECTED","WebBleDevice","mtu","rssi","monitors","Set","disconnectListeners","constructor","device","advertisement","id","name","trim","localName","manufacturerData","serviceUUIDs","gatt","WebGatt","addEventListener","onDisconnect","connect","server","isConnected","connected","cancelConnection","disconnect","requestMTU","discoverAllServicesAndCharacteristics","uuids","queued","forget","serviceUuids","length","services","map","uuid","deviceID","isPrimary","characteristicsForService","serviceUuid","characteristicsOf","characteristic","toBleCharacteristic","canonicalUuid","readCharacteristicForService","characteristicUuid","value","readValue","toBase64","bytesOf","writeCharacteristicWithResponseForService","base64","write","writeCharacteristicWithoutResponseForService","monitorCharacteristicForService","listener","active","onValue","event","target","stop","started","removeEventListener","stopNotifications","catch","undefined","add","startNotifications","then","error","errorOf","remove","delete","onDisconnected","WebBleError","DEVICE_DISCONNECTED","forEach","clear","withResponse","writeValue","writeValueWithResponse","writeValueWithoutResponse","call","fromBase64","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-ble-device.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AAEA;AACA,MAAMG,WAAW,GAAG,EAAE;AACtB,MAAMC,aAAa,GAAG,4BAA4B;AAClD,MAAMC,YAAY,GAAG,wBAAwB;;AAM7C;;AAGA;AACA;AACA;AACA;AACA;AACA,MAAMC,YAAY,CAAC;EAKDC,GAAG,GAAGJ,WAAW;EACjBK,IAAI,GAAG,IAAI;EAGVC,QAAQ,GAAG,IAAIC,GAAG,CAAkB,CAAC;EACrCC,mBAAmB,GAAG,IAAID,GAAG,CAAqB,CAAC;EAE7DE,WAAWA,CAACC,MAA0B,EAAEC,aAAmC,EAAE;IAClF,IAA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OH,KAAKA,CACXb,WAAmB,EACnBM,kBAA0B,EAC1BM,MAAc,EACd2B,YAAqB,EACO;IAC5B,OAAO,IAAI,CAAC9D,IAAI,CAACa,MAAM,CAAC,YAAY;MAClC,MAAMY,cAAc,GAAG,MAAM,IAAI,CAACzB,IAAI,CAACyB,cAAc,CAACF,WAAW,EAAEM,kBAAkB,CAAC;MACtF,MAAMkC,UAAU,GAAGD,YAAY,GAAGrC,cAAc,CAACuC,sBAAsB,GAAGvC,cAAc,CAACwC,yBAAyB;MAElH,MAAM,CAACF,UAAU,IAAItC,cAAc,CAACsC,UAAU,EAAEG,IAAI,CAACzC,cAAc,EAAE,IAAA0C,8BAAU,EAAChC,MAAM,CAAC,CAAC;MAExF,OAAO,IAAAT,iCAAmB,EAAC,IAAI,CAAChC,EAAE,EAAE,IAAAiC,iCAAa,EAACJ,WAAW,CAAC,EAAEE,cAAc,EAAEU,MAAM,CAAC;IACzF,CAAC,CAAC;EACJ;AACF;AAACiC,OAAA,CAAAnF,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toBleCharacteristic = exports.WebBleError = exports.UNKNOWN_ERROR = exports.DEVICE_DISCONNECTED = void 0;
7
+ var _webBluetoothValues = require("./web-bluetooth-values.js");
8
+ /** `react-native-ble-plx`'s BleErrorCode.DeviceDisconnected, which ends a link instead of failing it. */
9
+ const DEVICE_DISCONNECTED = exports.DEVICE_DISCONNECTED = 201;
10
+ const UNKNOWN_ERROR = exports.UNKNOWN_ERROR = 0;
11
+
12
+ /** A failed Web Bluetooth operation in the shape `react-native-ble-plx` reports errors. */
13
+ class WebBleError extends Error {
14
+ constructor(errorCode, message, reason) {
15
+ super(message);
16
+ this.errorCode = errorCode;
17
+ this.reason = reason;
18
+ this.name = "BleError";
19
+ }
20
+ }
21
+
22
+ /** A characteristic in the shape `react-native-ble-plx` returns one, with its value as base64. */
23
+ exports.WebBleError = WebBleError;
24
+ const toBleCharacteristic = (deviceID, serviceUUID, characteristic, value) => {
25
+ const {
26
+ properties
27
+ } = characteristic;
28
+ const uuid = (0, _webBluetoothValues.canonicalUuid)(characteristic.uuid);
29
+ return {
30
+ id: `${serviceUUID}/${uuid}`,
31
+ uuid,
32
+ serviceUUID,
33
+ deviceID,
34
+ value,
35
+ isReadable: properties.read,
36
+ isWritableWithResponse: properties.write,
37
+ isWritableWithoutResponse: properties.writeWithoutResponse,
38
+ isNotifiable: properties.notify,
39
+ isIndicatable: properties.indicate
40
+ };
41
+ };
42
+ exports.toBleCharacteristic = toBleCharacteristic;
43
+ //# sourceMappingURL=web-ble-shapes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_webBluetoothValues","require","DEVICE_DISCONNECTED","exports","UNKNOWN_ERROR","WebBleError","Error","constructor","errorCode","message","reason","name","toBleCharacteristic","deviceID","serviceUUID","characteristic","value","properties","uuid","canonicalUuid","id","isReadable","read","isWritableWithResponse","write","isWritableWithoutResponse","writeWithoutResponse","isNotifiable","notify","isIndicatable","indicate"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-ble-shapes.ts"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAGA;AACA,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,GAAG;AAC/B,MAAME,aAAa,GAAAD,OAAA,CAAAC,aAAA,GAAG,CAAC;;AAEvB;AACA,MAAMC,WAAW,SAASC,KAAK,CAAC;EACvBC,WAAWA,CAAiBC,SAAiB,EAAEC,OAAe,EAAkBC,MAAgB,EAAE;IACvG,KAAK,CAACD,OAAO,CAAC;IAAC,KADkBD,SAAiB,GAAjBA,SAAiB;IAAA,KAAmCE,MAAgB,GAAhBA,MAAgB;IAErG,IAAI,CAACC,IAAI,GAAG,UAAU;EACxB;AACF;;AAEA;AAAAR,OAAA,CAAAE,WAAA,GAAAA,WAAA;AAcA,MAAMO,mBAAmB,GAAGA,CAC1BC,QAAgB,EAChBC,WAAmB,EACnBC,cAA0C,EAC1CC,KAAoB,KACE;EACtB,MAAM;IAAEC;EAAW,CAAC,GAAGF,cAAc;EACrC,MAAMG,IAAI,GAAG,IAAAC,iCAAa,EAACJ,cAAc,CAACG,IAAI,CAAC;EAE/C,OAAO;IACLE,EAAE,EAAE,GAAGN,WAAW,IAAII,IAAI,EAAE;IAC5BA,IAAI;IACJJ,WAAW;IACXD,QAAQ;IACRG,KAAK;IACLK,UAAU,EAAEJ,UAAU,CAACK,IAAI;IAC3BC,sBAAsB,EAAEN,UAAU,CAACO,KAAK;IACxCC,yBAAyB,EAAER,UAAU,CAACS,oBAAoB;IAC1DC,YAAY,EAAEV,UAAU,CAACW,MAAM;IAC/BC,aAAa,EAAEZ,UAAU,CAACa;EAC5B,CAAC;AACH,CAAC;AAAC3B,OAAA,CAAAS,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.webBluetoothPermissions = void 0;
7
+ var _webBluetoothScanner = require("./web-bluetooth-scanner.js");
8
+ /**
9
+ * Browser permissions: the browser asks per device in its chooser, so there is no prompt to show first. Granted where
10
+ * the browser has Web Bluetooth, denied where it has none; no settings page can change that.
11
+ */
12
+ const webBluetoothPermissions = () => {
13
+ const permission = async () => (0, _webBluetoothScanner.isWebBluetoothAvailable)() ? "granted" : "denied";
14
+ return {
15
+ check: permission,
16
+ request: permission,
17
+ openSettings: async () => undefined
18
+ };
19
+ };
20
+ exports.webBluetoothPermissions = webBluetoothPermissions;
21
+ //# sourceMappingURL=web-bluetooth-permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_webBluetoothScanner","require","webBluetoothPermissions","permission","isWebBluetoothAvailable","check","request","openSettings","undefined","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-bluetooth-permissions.ts"],"mappings":";;;;;;AAEA,IAAAA,oBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA,MAAMC,uBAAuB,GAAGA,CAAA,KAA4B;EAC1D,MAAMC,UAAU,GAAG,MAAAA,CAAA,KAA2C,IAAAC,4CAAuB,EAAC,CAAC,GAAG,SAAS,GAAG,QAAS;EAE/G,OAAO;IAAEC,KAAK,EAAEF,UAAU;IAAEG,OAAO,EAAEH,UAAU;IAAEI,YAAY,EAAE,MAAAA,CAAA,KAAYC;EAAU,CAAC;AACxF,CAAC;AAACC,OAAA,CAAAP,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -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,CAAC;;AAEhG;AACA,MAAMC,eAAe,GAAIC,MAA0B,IAA+C;EAChG,IAAI,OAAOA,MAAM,CAACC,mBAAmB,KAAK,UAAU,EAAE;IACpD,OAAOC,OAAO,CAACC,OAAO,CAACR,SAAS,CAAC;EACnC;EAEA,OAAO,IAAIO,OAAO,CAAEC,OAAO,IAAK;IAC9B,MAAMC,QAAQ,GAAG,IAAIC,eAAe,CAAC,CAAC;IAEtC,MAAMC,IAAI,GAAIC,aAAmC,IAAK;MACpDC,YAAY,CAACC,KAAK,CAAC;MACnBT,MAAM,CAACU,mBAAmB,CAAC,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X,SAAS,CAACiB,mBAAmB,CAAC,qBAAqB,EAAEwC,OAAO,CAAC;MAC/D,CAAC;IACH,CAAC;IACDI,IAAI,EAAEA,CAACP,OAAO,EAAEQ,OAAO,KAAK;MAC1B,IAAI,CAAC9D,SAAS,EAAE;QACd8D,OAAO,CAAC1D,WAAW,CAAC,CAAC,CAAC;QAEtB,OAAO,MAAMF,SAAS;MACxB;MAEAiC,KAAK,CAAC4B,GAAG,CAACT,OAAO,CAAC;MAClBtD,SAAS,CAACgE,UAAU,GAAG,CAAC,CAACjB,IAAI,CAC1BkB,OAAO,IAAKA,OAAO,CAACZ,OAAO,CAAE9C,MAAM,IAAK,KAAK4C,MAAM,CAAC5C,MAAM,CAAC,CAAC,EAC5D2D,KAAc,IAAKJ,OAAO,CAAC,IAAAK,uBAAY,EAACD,KAAK,CAAC,CACjD,CAAC;MAED,OAAO,MAAM;QACX/B,KAAK,CAACiC,MAAM,CAACd,OAAO,CAAC;MACvB,CAAC;IACH,CAAC;IACDe,YAAY,EAAE,MAAAA,CAAA,KAAY;MACxB,IAAI,CAACrE,SAAS,EAAE;QACd,MAAMI,WAAW,CAAC,CAAC;MACrB;MAEA,IAAI;QACF,OAAO,MAAM+C,MAAM,CAAC,MAAMnD,SAAS,CAACsE,aAAa,CAAC;UAAEC,gBAAgB,EAAE,IAAI;UAAEtC;QAAiB,CAAC,CAAC,CAAC;MAClG,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"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/web-bluetooth-services.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AAEA;AACA,MAAMG,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;AAEhE;AACA,MAAMC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;AAErE;AACA,MAAMC,iBAAiB,GAAG,CACxB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAC9G,MAAM,EAA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