@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.
Files changed (263) hide show
  1. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js +35 -0
  2. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  3. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +3 -30
  4. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  5. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +2 -2
  6. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  7. package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  8. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +28 -0
  9. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  10. package/lib/commonjs/modules/next/bluetooth/web/index.js +208 -0
  11. package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -0
  12. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js +143 -0
  13. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  14. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js +43 -0
  15. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  16. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js +21 -0
  17. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  18. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js +133 -0
  19. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  20. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js +28 -0
  21. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  22. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js +37 -0
  23. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  24. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  25. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  26. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js +83 -0
  27. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  28. package/lib/commonjs/modules/next/breathing-exercise/index.js +17 -0
  29. package/lib/commonjs/modules/next/breathing-exercise/index.js.map +1 -0
  30. package/lib/commonjs/modules/next/cms/index.js +17 -0
  31. package/lib/commonjs/modules/next/cms/index.js.map +1 -0
  32. package/lib/commonjs/modules/next/content/index.js +17 -0
  33. package/lib/commonjs/modules/next/content/index.js.map +1 -0
  34. package/lib/commonjs/modules/next/diary/index.js +17 -0
  35. package/lib/commonjs/modules/next/diary/index.js.map +1 -0
  36. package/lib/commonjs/modules/next/image/index.js +17 -0
  37. package/lib/commonjs/modules/next/image/index.js.map +1 -0
  38. package/lib/commonjs/modules/next/journal/index.js +17 -0
  39. package/lib/commonjs/modules/next/journal/index.js.map +1 -0
  40. package/lib/commonjs/modules/next/language-switcher/index.js +17 -0
  41. package/lib/commonjs/modules/next/language-switcher/index.js.map +1 -0
  42. package/lib/commonjs/modules/next/measurement/index.js +17 -0
  43. package/lib/commonjs/modules/next/measurement/index.js.map +1 -0
  44. package/lib/commonjs/modules/next/observation-detail/index.js +17 -0
  45. package/lib/commonjs/modules/next/observation-detail/index.js.map +1 -0
  46. package/lib/commonjs/modules/next/patient/index.js +17 -0
  47. package/lib/commonjs/modules/next/patient/index.js.map +1 -0
  48. package/lib/commonjs/modules/next/pdf/index.js +17 -0
  49. package/lib/commonjs/modules/next/pdf/index.js.map +1 -0
  50. package/lib/commonjs/modules/next/picker-sheet/index.js +17 -0
  51. package/lib/commonjs/modules/next/picker-sheet/index.js.map +1 -0
  52. package/lib/commonjs/modules/next/progress-bar/index.js +17 -0
  53. package/lib/commonjs/modules/next/progress-bar/index.js.map +1 -0
  54. package/lib/commonjs/modules/next/progress-ring/index.js +17 -0
  55. package/lib/commonjs/modules/next/progress-ring/index.js.map +1 -0
  56. package/lib/commonjs/modules/next/setting/index.js +17 -0
  57. package/lib/commonjs/modules/next/setting/index.js.map +1 -0
  58. package/lib/commonjs/modules/next/tab/index.js +17 -0
  59. package/lib/commonjs/modules/next/tab/index.js.map +1 -0
  60. package/lib/commonjs/modules/next/theme/index.js +17 -0
  61. package/lib/commonjs/modules/next/theme/index.js.map +1 -0
  62. package/lib/commonjs/modules/next/tile/index.js +17 -0
  63. package/lib/commonjs/modules/next/tile/index.js.map +1 -0
  64. package/lib/commonjs/modules/next/ui/index.js +17 -0
  65. package/lib/commonjs/modules/next/ui/index.js.map +1 -0
  66. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js +30 -0
  67. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  68. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +2 -27
  69. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  70. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +1 -1
  71. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  72. package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  73. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +25 -0
  74. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  75. package/lib/module/modules/next/bluetooth/web/index.js +28 -0
  76. package/lib/module/modules/next/bluetooth/web/index.js.map +1 -0
  77. package/lib/module/modules/next/bluetooth/web/web-ble-device.js +140 -0
  78. package/lib/module/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  79. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js +39 -0
  80. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  81. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js +18 -0
  82. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  83. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js +128 -0
  84. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  85. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js +25 -0
  86. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  87. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js +29 -0
  88. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  89. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  90. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  91. package/lib/module/modules/next/bluetooth/web/web-gatt.js +79 -0
  92. package/lib/module/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  93. package/lib/module/modules/next/breathing-exercise/index.js +5 -0
  94. package/lib/module/modules/next/breathing-exercise/index.js.map +1 -0
  95. package/lib/module/modules/next/cms/index.js +5 -0
  96. package/lib/module/modules/next/cms/index.js.map +1 -0
  97. package/lib/module/modules/next/content/index.js +5 -0
  98. package/lib/module/modules/next/content/index.js.map +1 -0
  99. package/lib/module/modules/next/diary/index.js +5 -0
  100. package/lib/module/modules/next/diary/index.js.map +1 -0
  101. package/lib/module/modules/next/image/index.js +5 -0
  102. package/lib/module/modules/next/image/index.js.map +1 -0
  103. package/lib/module/modules/next/journal/index.js +5 -0
  104. package/lib/module/modules/next/journal/index.js.map +1 -0
  105. package/lib/module/modules/next/language-switcher/index.js +5 -0
  106. package/lib/module/modules/next/language-switcher/index.js.map +1 -0
  107. package/lib/module/modules/next/measurement/index.js +5 -0
  108. package/lib/module/modules/next/measurement/index.js.map +1 -0
  109. package/lib/module/modules/next/observation-detail/index.js +5 -0
  110. package/lib/module/modules/next/observation-detail/index.js.map +1 -0
  111. package/lib/module/modules/next/patient/index.js +5 -0
  112. package/lib/module/modules/next/patient/index.js.map +1 -0
  113. package/lib/module/modules/next/pdf/index.js +5 -0
  114. package/lib/module/modules/next/pdf/index.js.map +1 -0
  115. package/lib/module/modules/next/picker-sheet/index.js +5 -0
  116. package/lib/module/modules/next/picker-sheet/index.js.map +1 -0
  117. package/lib/module/modules/next/progress-bar/index.js +5 -0
  118. package/lib/module/modules/next/progress-bar/index.js.map +1 -0
  119. package/lib/module/modules/next/progress-ring/index.js +5 -0
  120. package/lib/module/modules/next/progress-ring/index.js.map +1 -0
  121. package/lib/module/modules/next/setting/index.js +5 -0
  122. package/lib/module/modules/next/setting/index.js.map +1 -0
  123. package/lib/module/modules/next/tab/index.js +5 -0
  124. package/lib/module/modules/next/tab/index.js.map +1 -0
  125. package/lib/module/modules/next/theme/index.js +5 -0
  126. package/lib/module/modules/next/theme/index.js.map +1 -0
  127. package/lib/module/modules/next/tile/index.js +5 -0
  128. package/lib/module/modules/next/tile/index.js.map +1 -0
  129. package/lib/module/modules/next/ui/index.js +5 -0
  130. package/lib/module/modules/next/ui/index.js.map +1 -0
  131. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  132. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  134. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  136. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  138. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  140. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +41 -0
  142. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  144. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  146. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  148. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  150. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  152. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  154. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  156. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  158. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts +3 -0
  160. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts +3 -0
  162. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts +3 -0
  164. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts +3 -0
  166. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts +3 -0
  168. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts +3 -0
  170. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts +3 -0
  172. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts +3 -0
  174. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts +3 -0
  176. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts +3 -0
  178. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts +3 -0
  180. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts +3 -0
  182. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts +3 -0
  184. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts +3 -0
  186. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts +3 -0
  188. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts +3 -0
  190. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts +3 -0
  192. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts +3 -0
  194. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts +3 -0
  196. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts.map +1 -0
  197. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  198. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  199. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  200. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  201. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  202. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  203. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  204. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  205. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  206. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  207. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +41 -0
  208. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  209. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  210. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  211. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  212. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  213. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  214. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  215. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  216. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  217. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  218. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  219. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  220. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  221. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  222. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  223. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  224. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  225. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts +3 -0
  226. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  227. package/lib/typescript/module/src/modules/next/cms/index.d.ts +3 -0
  228. package/lib/typescript/module/src/modules/next/cms/index.d.ts.map +1 -0
  229. package/lib/typescript/module/src/modules/next/content/index.d.ts +3 -0
  230. package/lib/typescript/module/src/modules/next/content/index.d.ts.map +1 -0
  231. package/lib/typescript/module/src/modules/next/diary/index.d.ts +3 -0
  232. package/lib/typescript/module/src/modules/next/diary/index.d.ts.map +1 -0
  233. package/lib/typescript/module/src/modules/next/image/index.d.ts +3 -0
  234. package/lib/typescript/module/src/modules/next/image/index.d.ts.map +1 -0
  235. package/lib/typescript/module/src/modules/next/journal/index.d.ts +3 -0
  236. package/lib/typescript/module/src/modules/next/journal/index.d.ts.map +1 -0
  237. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts +3 -0
  238. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts.map +1 -0
  239. package/lib/typescript/module/src/modules/next/measurement/index.d.ts +3 -0
  240. package/lib/typescript/module/src/modules/next/measurement/index.d.ts.map +1 -0
  241. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts +3 -0
  242. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts.map +1 -0
  243. package/lib/typescript/module/src/modules/next/patient/index.d.ts +3 -0
  244. package/lib/typescript/module/src/modules/next/patient/index.d.ts.map +1 -0
  245. package/lib/typescript/module/src/modules/next/pdf/index.d.ts +3 -0
  246. package/lib/typescript/module/src/modules/next/pdf/index.d.ts.map +1 -0
  247. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts +3 -0
  248. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  249. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts +3 -0
  250. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts.map +1 -0
  251. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts +3 -0
  252. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts.map +1 -0
  253. package/lib/typescript/module/src/modules/next/setting/index.d.ts +3 -0
  254. package/lib/typescript/module/src/modules/next/setting/index.d.ts.map +1 -0
  255. package/lib/typescript/module/src/modules/next/tab/index.d.ts +3 -0
  256. package/lib/typescript/module/src/modules/next/tab/index.d.ts.map +1 -0
  257. package/lib/typescript/module/src/modules/next/theme/index.d.ts +3 -0
  258. package/lib/typescript/module/src/modules/next/theme/index.d.ts.map +1 -0
  259. package/lib/typescript/module/src/modules/next/tile/index.d.ts +3 -0
  260. package/lib/typescript/module/src/modules/next/tile/index.d.ts.map +1 -0
  261. package/lib/typescript/module/src/modules/next/ui/index.d.ts +3 -0
  262. package/lib/typescript/module/src/modules/next/ui/index.d.ts.map +1 -0
  263. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Bluetooth for `@ovok/native/next` in browsers, over Web Bluetooth: the same `BluetoothRuntime`, devices, result
3
+ * policies and hooks as `@ovok/native/next/bluetooth`, with a Web Bluetooth scanner instead of `react-native-ble-plx`.
4
+ * Nothing here loads `react-native-ble-plx` or `react-native-permissions`, so a web bundle can import it.
5
+ *
6
+ * Import from `@ovok/native/next/bluetooth/web`.
7
+ *
8
+ * @module next/bluetooth/web
9
+ */
10
+ export { createWebBluetoothRuntime } from "./create-web-bluetooth-runtime";
11
+ export type { CreateWebBluetoothRuntimeOptions } from "./create-web-bluetooth-runtime";
12
+ export { isWebBluetoothAvailable, webBluetoothScanner } from "./web-bluetooth-scanner";
13
+ export type { WebBluetoothScanner, WebBluetoothScannerOptions } from "./web-bluetooth-scanner";
14
+ export { webBluetoothPermissions } from "./web-bluetooth-permissions";
15
+ export { WEB_BLUETOOTH_SERVICES, webBluetoothServicesFor } from "./web-bluetooth-services";
16
+ export { BluetoothRuntime } from "../runtime";
17
+ export type { BluetoothRuntimeOptions } from "../runtime";
18
+ export { BluetoothError } from "../errors";
19
+ export type { BluetoothErrorCode } from "../errors";
20
+ export type { BluetoothSnapshot, ConnectionState, DeviceReading, NearbyDevice, SaveState } from "../snapshot";
21
+ export type { AdapterState, Advertisement, BluetoothScanner, Peripheral } from "../transport";
22
+ export type { BluetoothPermission, BluetoothPermissions } from "../permissions";
23
+ export type { ReadingSink, SaveResult } from "../sink";
24
+ export { defineDevice } from "../devices";
25
+ export type { DeviceDefinition, DeviceMatch, DeviceSupport } from "../devices";
26
+ export type { DeviceEvent, DeviceProtocol, Driver } from "../driver";
27
+ export type { DeviceInformation, Link } from "../link";
28
+ export { acceptedMemorySlots, dailyTotalsOnly, everyReading, firstReadingPerKind, keepReadings, policyByKind, } from "../result-policy";
29
+ export type { ResultPolicy } from "../result-policy";
30
+ export { SIG_PROTOCOLS } from "../sig-profiles";
31
+ export { builtInDevices } from "../ble-plx/built-in-devices";
32
+ export { IntegratedDevices } from "../../../bt-management/types/integrated-devices";
33
+ export type { AcceptedDevice } from "../../../bt-management/types/accepted-device";
34
+ export { Devices, SUPPORTED_DEVICES } from "../../../bt-device/constants/supported-devices";
35
+ export type { SupportedDeviceDefinition } from "../../../bt-device/constants/supported-devices";
36
+ export { resultPoliciesFor } from "../../../bt-device/utils/device-query";
37
+ export { ovokReadingSink } from "../react-native/ovok-sink";
38
+ export { BluetoothProvider, useBluetooth } from "../react/context";
39
+ export type { BluetoothProviderProps } from "../react/context";
40
+ export { useBluetoothPermission, useBluetoothState, useMeasurements, useNearbyDevice, useNearbyDevices, usePairedDevices, useScanning, } from "../react/hooks";
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACvF,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,yBAAy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F,YAAY,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAC5F,YAAY,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { BleCharacteristic, WebBleError } from "./web-ble-shapes";
2
+ import { WebBluetoothDevice } from "./web-bluetooth.types";
3
+ type MonitorListener = (error: WebBleError | null, characteristic: BleCharacteristic | null) => void;
4
+ type DisconnectListener = (error: WebBleError | null, device: WebBleDevice) => void;
5
+ type Subscription = {
6
+ remove: () => void;
7
+ };
8
+ /** Advertising data a browser saw for the device, when it let the page watch advertisements. */
9
+ type WebBleAdvertisement = {
10
+ serviceUUIDs: string[] | null;
11
+ manufacturerData: string | null;
12
+ };
13
+ /**
14
+ * A Web Bluetooth device behind the part of the `react-native-ble-plx` `Device` API the SDK's device classes use, so
15
+ * every integrated device and `defineCustomDevice` declaration runs unchanged in a browser. Operations queue (see
16
+ * `WebGatt`), so a write also waits for notifications still being started.
17
+ */
18
+ declare class WebBleDevice {
19
+ readonly id: string;
20
+ readonly name: string | null;
21
+ readonly localName: string | null;
22
+ readonly manufacturerData: string | null;
23
+ readonly mtu = 23;
24
+ readonly rssi: null;
25
+ serviceUUIDs: string[] | null;
26
+ private readonly gatt;
27
+ private readonly monitors;
28
+ private readonly disconnectListeners;
29
+ constructor(device: WebBluetoothDevice, advertisement?: WebBleAdvertisement);
30
+ connect(): Promise<this>;
31
+ isConnected(): Promise<boolean>;
32
+ cancelConnection(): Promise<this>;
33
+ requestMTU(): Promise<this>;
34
+ /** Discovers the services, and reports them as advertised when the browser showed none. */
35
+ discoverAllServicesAndCharacteristics(): Promise<this>;
36
+ services(): Promise<{
37
+ uuid: string;
38
+ deviceID: string;
39
+ isPrimary: boolean;
40
+ }[]>;
41
+ characteristicsForService(serviceUuid: string): Promise<BleCharacteristic[]>;
42
+ readCharacteristicForService(serviceUuid: string, characteristicUuid: string): Promise<BleCharacteristic>;
43
+ writeCharacteristicWithResponseForService(serviceUuid: string, characteristicUuid: string, base64: string): Promise<BleCharacteristic>;
44
+ writeCharacteristicWithoutResponseForService(serviceUuid: string, characteristicUuid: string, base64: string): Promise<BleCharacteristic>;
45
+ /** Starts notifications in the GATT queue; `listener` gets each value, then `DeviceDisconnected` if the link drops. */
46
+ monitorCharacteristicForService(serviceUuid: string, characteristicUuid: string, listener: MonitorListener): Subscription;
47
+ onDisconnected(listener: DisconnectListener): Subscription;
48
+ private readonly onDisconnect;
49
+ private write;
50
+ }
51
+ export { WebBleDevice };
52
+ export type { WebBleAdvertisement };
53
+ //# sourceMappingURL=web-ble-device.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-ble-device.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-ble-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA4C,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5G,OAAO,EAA8B,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQvF,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,EAAE,cAAc,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;AACrG,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,EAAE,MAAM,EAAE,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4B,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASzG,yCAAyC,CAC9C,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC;IAItB,4CAA4C,CACjD,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC;IAI7B,uHAAuH;IAChH,+BAA+B,CACpC,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,eAAe,GACxB,YAAY;IA0CR,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,YAAY;IAMjE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAO3B;IAEF,OAAO,CAAC,KAAK;CAed;AAED,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { WebBluetoothCharacteristic } from "./web-bluetooth.types";
2
+ /** `react-native-ble-plx`'s BleErrorCode.DeviceDisconnected, which ends a link instead of failing it. */
3
+ declare const DEVICE_DISCONNECTED = 201;
4
+ declare const UNKNOWN_ERROR = 0;
5
+ /** A failed Web Bluetooth operation in the shape `react-native-ble-plx` reports errors. */
6
+ declare class WebBleError extends Error {
7
+ readonly errorCode: number;
8
+ readonly reason?: unknown | undefined;
9
+ constructor(errorCode: number, message: string, reason?: unknown | undefined);
10
+ }
11
+ /** A characteristic in the shape `react-native-ble-plx` returns one, with its value as base64. */
12
+ type BleCharacteristic = {
13
+ id: string;
14
+ uuid: string;
15
+ serviceUUID: string;
16
+ deviceID: string;
17
+ value: string | null;
18
+ isReadable: boolean;
19
+ isWritableWithResponse: boolean;
20
+ isWritableWithoutResponse: boolean;
21
+ isNotifiable: boolean;
22
+ isIndicatable: boolean;
23
+ };
24
+ declare const toBleCharacteristic: (deviceID: string, serviceUUID: string, characteristic: WebBluetoothCharacteristic, value: string | null) => BleCharacteristic;
25
+ export { DEVICE_DISCONNECTED, toBleCharacteristic, UNKNOWN_ERROR, WebBleError };
26
+ export type { BleCharacteristic };
27
+ //# sourceMappingURL=web-ble-shapes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-ble-shapes.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-ble-shapes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,yGAAyG;AACzG,QAAA,MAAM,mBAAmB,MAAM,CAAC;AAChC,QAAA,MAAM,aAAa,IAAI,CAAC;AAExB,2FAA2F;AAC3F,cAAM,WAAY,SAAQ,KAAK;aACM,SAAS,EAAE,MAAM;aAAmC,MAAM,CAAC,EAAE,OAAO;gBAApE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAkB,MAAM,CAAC,EAAE,OAAO,YAAA;CAIxG;AAED,kGAAkG;AAClG,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,sBAAsB,EAAE,OAAO,CAAC;IAChC,yBAAyB,EAAE,OAAO,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,mBAAmB,GACvB,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,gBAAgB,0BAA0B,EAC1C,OAAO,MAAM,GAAG,IAAI,KACnB,iBAgBF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;AAChF,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BluetoothPermissions } from "../permissions";
2
+ /**
3
+ * Browser permissions: the browser asks per device in its chooser, so there is no prompt to show first. Granted where
4
+ * the browser has Web Bluetooth, denied where it has none; no settings page can change that.
5
+ */
6
+ declare const webBluetoothPermissions: () => BluetoothPermissions;
7
+ export { webBluetoothPermissions };
8
+ //# sourceMappingURL=web-bluetooth-permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-bluetooth-permissions.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-bluetooth-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAI3E;;;GAGG;AACH,QAAA,MAAM,uBAAuB,QAAO,oBAInC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { AcceptedDevice } from "../../../bt-management/types/accepted-device";
2
+ import { BluetoothScanner, Peripheral } from "../transport";
3
+ import { WebBluetooth } from "./web-bluetooth.types";
4
+ /** What `webBluetoothScanner` needs. */
5
+ type WebBluetoothScannerOptions = {
6
+ /** The accepted devices; the chooser also allows the services of their `defineCustomDevice` declarations. */
7
+ acceptedDevices?: readonly AcceptedDevice[];
8
+ /** The Web Bluetooth API; defaults to `navigator.bluetooth`. */
9
+ bluetooth?: WebBluetooth;
10
+ };
11
+ /** A `BluetoothScanner` for browsers, where a page only reaches the devices the user picks in the browser's chooser. */
12
+ interface WebBluetoothScanner extends BluetoothScanner {
13
+ /**
14
+ * Opens the browser's device chooser, so it must run from a user gesture such as a tap. Resolves to the picked device,
15
+ * which a running scan also reports, or to `undefined` when the user closes the chooser.
16
+ */
17
+ chooseDevice(): Promise<Peripheral | undefined>;
18
+ }
19
+ /** Whether this browser has Web Bluetooth, such as Chrome and Edge on desktop and Android, or Bluefy on iOS. */
20
+ declare const isWebBluetoothAvailable: () => boolean;
21
+ /**
22
+ * Finds devices through Web Bluetooth. A scan reports the devices this site may already use (`getDevices`, where the
23
+ * browser has it) and every device picked with `chooseDevice`; browsers can't scan in the background or without the
24
+ * user picking.
25
+ */
26
+ declare const webBluetoothScanner: ({ acceptedDevices, bluetooth, }?: WebBluetoothScannerOptions) => WebBluetoothScanner;
27
+ export { isWebBluetoothAvailable, webBluetoothScanner };
28
+ export type { WebBluetoothScanner, WebBluetoothScannerOptions };
29
+ //# sourceMappingURL=web-bluetooth-scanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-bluetooth-scanner.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-bluetooth-scanner.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAI9E,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK5D,OAAO,EAAE,YAAY,EAAiD,MAAM,uBAAuB,CAAC;AAMpG,wCAAwC;AACxC,KAAK,0BAA0B,GAAG;IAEhC,6GAA6G;IAC7G,eAAe,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IAE5C,gEAAgE;IAChE,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC;AAEF,wHAAwH;AACxH,UAAU,mBAAoB,SAAQ,gBAAgB;IAEpD;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACjD;AAKD,gHAAgH;AAChH,QAAA,MAAM,uBAAuB,QAAO,OAA6C,CAAC;AAiClF;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,GAAI,kCAG1B,0BAA+B,KAAG,mBAkFpC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { AcceptedDevice } from "../../../bt-management/types/accepted-device";
2
+ /**
3
+ * Every GATT service an integrated device uses, as a browser must be told when the user picks a device: a page can
4
+ * only reach the services it named in `navigator.bluetooth.requestDevice`'s `optionalServices`.
5
+ */
6
+ declare const WEB_BLUETOOTH_SERVICES: readonly string[];
7
+ /** `WEB_BLUETOOTH_SERVICES` and the services of the `defineCustomDevice` declarations among `acceptedDevices`. */
8
+ declare const webBluetoothServicesFor: (acceptedDevices?: readonly AcceptedDevice[]) => string[];
9
+ export { WEB_BLUETOOTH_SERVICES, webBluetoothServicesFor };
10
+ //# sourceMappingURL=web-bluetooth-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-bluetooth-services.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-bluetooth-services.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAiC9E;;;GAGG;AACH,QAAA,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAS5C,CAAC;AAEF,kHAAkH;AAClH,QAAA,MAAM,uBAAuB,GAAI,kBAAiB,SAAS,cAAc,EAAO,KAAG,MAAM,EAExF,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ /** A UUID as Web Bluetooth accepts it: lower case, with a 16- or 32-bit alias expanded on the Bluetooth base UUID. */
2
+ declare const canonicalUuid: (uuid: string) => string;
3
+ declare const bytesOf: (view: DataView) => Uint8Array;
4
+ declare const toBase64: (bytes: Uint8Array) => string;
5
+ declare const fromBase64: (base64: string) => Uint8Array;
6
+ /** Manufacturer data the way `react-native-ble-plx` reports it: the company ID, little endian, then the payload. */
7
+ declare const manufacturerDataOf: (data: ReadonlyMap<number, DataView> | undefined) => string | null;
8
+ export { bytesOf, canonicalUuid, fromBase64, manufacturerDataOf, toBase64 };
9
+ //# sourceMappingURL=web-bluetooth-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-bluetooth-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-bluetooth-values.ts"],"names":[],"mappings":"AAIA,sHAAsH;AACtH,QAAA,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAQrC,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,MAAM,QAAQ,KAAG,UAA2E,CAAC;AAE9G,QAAA,MAAM,QAAQ,GAAI,OAAO,UAAU,KAAG,MAA+E,CAAC;AAEtH,QAAA,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,UAAyE,CAAC;AAE/G,oHAAoH;AACpH,QAAA,MAAM,kBAAkB,GAAI,MAAM,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,KAAG,MAAM,GAAG,IAUtF,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,56 @@
1
+ /** The part of the Web Bluetooth API (`navigator.bluetooth`) the SDK uses; TypeScript's ESNext lib has none of it. */
2
+ type WebBluetoothListener = (event: unknown) => void;
3
+ interface WebBluetoothEventTarget {
4
+ addEventListener(type: string, listener: WebBluetoothListener): void;
5
+ removeEventListener(type: string, listener: WebBluetoothListener): void;
6
+ }
7
+ interface WebBluetoothCharacteristic extends WebBluetoothEventTarget {
8
+ readonly uuid: string;
9
+ readonly properties: {
10
+ readonly read: boolean;
11
+ readonly write: boolean;
12
+ readonly writeWithoutResponse: boolean;
13
+ readonly notify: boolean;
14
+ readonly indicate: boolean;
15
+ };
16
+ readonly value?: DataView;
17
+ readValue(): Promise<DataView>;
18
+ writeValue(value: Uint8Array): Promise<void>;
19
+ writeValueWithResponse?(value: Uint8Array): Promise<void>;
20
+ writeValueWithoutResponse?(value: Uint8Array): Promise<void>;
21
+ startNotifications(): Promise<unknown>;
22
+ stopNotifications(): Promise<unknown>;
23
+ }
24
+ interface WebBluetoothService {
25
+ readonly uuid: string;
26
+ getCharacteristics(): Promise<WebBluetoothCharacteristic[]>;
27
+ }
28
+ interface WebBluetoothServer {
29
+ readonly connected: boolean;
30
+ connect(): Promise<unknown>;
31
+ disconnect(): void;
32
+ getPrimaryServices(): Promise<WebBluetoothService[]>;
33
+ }
34
+ interface WebBluetoothDevice extends WebBluetoothEventTarget {
35
+ readonly id: string;
36
+ readonly name?: string | null;
37
+ readonly gatt?: WebBluetoothServer;
38
+ watchAdvertisements?(options?: {
39
+ signal?: AbortSignal;
40
+ }): Promise<void>;
41
+ }
42
+ /** What `advertisementreceived` carries. */
43
+ interface WebBluetoothAdvertisement {
44
+ readonly uuids?: readonly string[];
45
+ readonly manufacturerData?: ReadonlyMap<number, DataView>;
46
+ }
47
+ interface WebBluetooth extends WebBluetoothEventTarget {
48
+ getAvailability(): Promise<boolean>;
49
+ requestDevice(options: {
50
+ acceptAllDevices: true;
51
+ optionalServices: string[];
52
+ }): Promise<WebBluetoothDevice>;
53
+ getDevices?(): Promise<WebBluetoothDevice[]>;
54
+ }
55
+ export type { WebBluetooth, WebBluetoothAdvertisement, WebBluetoothCharacteristic, WebBluetoothDevice, WebBluetoothListener, WebBluetoothServer, WebBluetoothService, };
56
+ //# sourceMappingURL=web-bluetooth.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-bluetooth.types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-bluetooth.types.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,KAAK,oBAAoB,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAErD,UAAU,uBAAuB;IAC/B,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrE,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACzE;AAED,UAAU,0BAA2B,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AAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IACnC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED,4CAA4C;AAC5C,UAAU,yBAAyB;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAC3D;AAED,UAAU,YAAa,SAAQ,uBAAuB;IACpD,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,aAAa,CAAC,OAAO,EAAE;QAAE,gBAAgB,EAAE,IAAI,CAAC;QAAC,gBAAgB,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC5G,UAAU,CAAC,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC9C;AAED,YAAY,EACV,YAAY,EACZ,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { WebBleError } from "./web-ble-shapes";
2
+ import { WebBluetoothCharacteristic, WebBluetoothDevice, WebBluetoothServer } from "./web-bluetooth.types";
3
+ /**
4
+ * A device's GATT server as one queue: browsers allow one GATT operation at a time, so each runs after the previous one
5
+ * settles, and its services are discovered once per connection.
6
+ */
7
+ declare class WebGatt {
8
+ private readonly device;
9
+ private readonly characteristics;
10
+ private operations;
11
+ private discovered?;
12
+ constructor(device: WebBluetoothDevice);
13
+ get connected(): boolean;
14
+ server(): WebBluetoothServer;
15
+ /** Runs `operation` after the previous one settles; a failure comes back as a `react-native-ble-plx` error. */
16
+ queued<T>(operation: () => Promise<T>): Promise<T>;
17
+ /** The discovered services' UUIDs; call it inside a queued operation, so discovery never queues behind itself. */
18
+ serviceUuids(): Promise<string[]>;
19
+ characteristicsOf(serviceUuid: string): Promise<WebBluetoothCharacteristic[]>;
20
+ characteristic(serviceUuid: string, characteristicUuid: string): Promise<WebBluetoothCharacteristic>;
21
+ /** Forgets the discovered services, as a new connection must discover them again. */
22
+ forget(): void;
23
+ errorOf(error: unknown): WebBleError;
24
+ private discover;
25
+ }
26
+ export { WebGatt };
27
+ //# sourceMappingURL=web-gatt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-gatt.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/web/web-gatt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3G;;;GAGG;AACH,cAAM,OAAO;IAKQ,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJ1C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8D;IAC9F,OAAO,CAAC,UAAU,CAAuC;IACzD,OAAO,CAAC,UAAU,CAAC,CAAgB;gBAEC,MAAM,EAAE,kBAAkB;IAE9D,IAAW,SAAS,IAAI,OAAO,CAE9B;IAEM,MAAM,IAAI,kBAAkB;IAQnC,+GAA+G;IACxG,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAUzD,kHAAkH;IACrG,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAMjC,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAM7E,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAcjH,qFAAqF;IAC9E,MAAM,IAAI,IAAI;IAId,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW;IAQ3C,OAAO,CAAC,QAAQ;CAkBjB;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/breathing-exercise */
2
+ export * from "../../breathing-exercise";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/breathing-exercise/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/cms */
2
+ export * from "../../cms";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/cms/index.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/content */
2
+ export * from "../../content";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/content/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/diary */
2
+ export * from "../../diary";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/diary/index.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/image */
2
+ export * from "../../image";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/image/index.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/journal */
2
+ export * from "../../journal";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/journal/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/language-switcher */
2
+ export * from "../../language-switcher";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/language-switcher/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/measurement */
2
+ export * from "../../measurement";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/measurement/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/observation-detail */
2
+ export * from "../../observation-detail";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/observation-detail/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/patient */
2
+ export * from "../../patient";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/patient/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/pdf */
2
+ export * from "../../pdf";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/pdf/index.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/picker-sheet */
2
+ export * from "../../picker-sheet";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/picker-sheet/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/progress-bar */
2
+ export * from "../../progress-bar";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/progress-bar/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/progress-ring */
2
+ export * from "../../progress-ring";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/progress-ring/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/setting */
2
+ export * from "../../setting";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/setting/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/tab */
2
+ export * from "../../tab";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/tab/index.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/theme */
2
+ export * from "../../theme";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/theme/index.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/tile */
2
+ export * from "../../tile";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/tile/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @module next/ui */
2
+ export * from "../../ui";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/ui/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.16.1-rc.4",
3
+ "version": "1.16.1-rc.5",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",