@q9labsai/chalk-react-native 4.1.17 → 5.0.1

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 (544) hide show
  1. package/README.md +134 -29
  2. package/android/build.gradle +35 -0
  3. package/android/compatibility/ModuleApiCompatibility.java +215 -0
  4. package/android/src/main/AndroidManifest.xml +2 -1
  5. package/android/src/main/java/ai/q9labs/chalk/reactnative/ChalkSpaceForegroundService.java +105 -31
  6. package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAndroidConnectionServicePackage.kt +2 -0
  7. package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAudioRouteModule.kt +137 -0
  8. package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkCallServiceModule.kt +32 -0
  9. package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/CommunicationDeviceListener.kt +23 -0
  10. package/android/src/test/kotlin/ai/q9labs/chalk/compatibility/UnsafeSignatures.kt +29 -0
  11. package/dist/android/call-service.d.ts +4 -0
  12. package/dist/android/call-service.d.ts.map +1 -0
  13. package/dist/avatar/FaceAvatar.d.ts +19 -0
  14. package/dist/avatar/FaceAvatar.d.ts.map +1 -0
  15. package/dist/avatar/tile-avatar-size.d.ts +3 -0
  16. package/dist/avatar/tile-avatar-size.d.ts.map +1 -0
  17. package/dist/chunk-GYVZSOGQ.js +30 -0
  18. package/dist/chunk-IHE6EA3T.js +25 -0
  19. package/dist/chunk-OIBT2FNM.js +1479 -0
  20. package/dist/client.d.ts +1 -5
  21. package/dist/client.d.ts.map +1 -1
  22. package/dist/client.js +185 -2
  23. package/dist/components/EmbeddedWhiteboard.d.ts.map +1 -1
  24. package/dist/components/native-media-visibility.d.ts +3 -2
  25. package/dist/components/native-media-visibility.d.ts.map +1 -1
  26. package/dist/components/useAndroidCallService.d.ts +8 -0
  27. package/dist/components/useAndroidCallService.d.ts.map +1 -0
  28. package/dist/dev.d.ts +10 -0
  29. package/dist/dev.d.ts.map +1 -0
  30. package/dist/dev.js +10 -0
  31. package/dist/dock/Dock.d.ts +23 -0
  32. package/dist/dock/Dock.d.ts.map +1 -0
  33. package/dist/dock/LeaveMenu.d.ts +12 -0
  34. package/dist/dock/LeaveMenu.d.ts.map +1 -0
  35. package/dist/dock/MoreSheet.d.ts +17 -0
  36. package/dist/dock/MoreSheet.d.ts.map +1 -0
  37. package/dist/dock/ReactionBurst.d.ts +8 -0
  38. package/dist/dock/ReactionBurst.d.ts.map +1 -0
  39. package/dist/dock/RoutePicker.d.ts +16 -0
  40. package/dist/dock/RoutePicker.d.ts.map +1 -0
  41. package/dist/dock/audio-route.d.ts +25 -0
  42. package/dist/dock/audio-route.d.ts.map +1 -0
  43. package/dist/error-YOPTEH5N.wav +0 -0
  44. package/dist/frame/CallFrame.d.ts +17 -0
  45. package/dist/frame/CallFrame.d.ts.map +1 -0
  46. package/dist/frame/Chalk.d.ts +40 -0
  47. package/dist/frame/Chalk.d.ts.map +1 -0
  48. package/dist/frame/back-handler.d.ts +6 -0
  49. package/dist/frame/back-handler.d.ts.map +1 -0
  50. package/dist/frame/dev-scenario.d.ts +28 -0
  51. package/dist/frame/dev-scenario.d.ts.map +1 -0
  52. package/dist/frame/device-layout.d.ts +16 -0
  53. package/dist/frame/device-layout.d.ts.map +1 -0
  54. package/dist/frame/measurement.d.ts +28 -0
  55. package/dist/frame/measurement.d.ts.map +1 -0
  56. package/dist/frame/portal.d.ts +24 -0
  57. package/dist/frame/portal.d.ts.map +1 -0
  58. package/dist/frame/preferences.d.ts +21 -0
  59. package/dist/frame/preferences.d.ts.map +1 -0
  60. package/dist/frame/regions.d.ts +25 -0
  61. package/dist/frame/regions.d.ts.map +1 -0
  62. package/dist/hand-DFWVXPH2.wav +0 -0
  63. package/dist/haptics/haptics.d.ts +12 -0
  64. package/dist/haptics/haptics.d.ts.map +1 -0
  65. package/dist/header/CallDetailsSheet.d.ts +18 -0
  66. package/dist/header/CallDetailsSheet.d.ts.map +1 -0
  67. package/dist/header/Header.d.ts +17 -0
  68. package/dist/header/Header.d.ts.map +1 -0
  69. package/dist/header/QrCode.d.ts +6 -0
  70. package/dist/header/QrCode.d.ts.map +1 -0
  71. package/dist/icons/Icon.d.ts +12 -0
  72. package/dist/icons/Icon.d.ts.map +1 -0
  73. package/dist/icons/icon-element.d.ts +24 -0
  74. package/dist/icons/icon-element.d.ts.map +1 -0
  75. package/dist/icons/icon-paths.d.ts +530 -0
  76. package/dist/icons/icon-paths.d.ts.map +1 -0
  77. package/dist/index.d.ts +6 -9
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +2956 -38
  80. package/dist/join-Z6RL5AHE.wav +0 -0
  81. package/dist/knock-4VBQSHK4.wav +0 -0
  82. package/dist/leave-MQLZOWQD.wav +0 -0
  83. package/dist/limbo/Limbo.d.ts +25 -0
  84. package/dist/limbo/Limbo.d.ts.map +1 -0
  85. package/dist/limbo/Veil.d.ts +10 -0
  86. package/dist/limbo/Veil.d.ts.map +1 -0
  87. package/dist/media/native-capture-error.d.ts +7 -0
  88. package/dist/media/native-capture-error.d.ts.map +1 -0
  89. package/dist/message-6Y6WJGTB.wav +0 -0
  90. package/dist/motion/MovingFrame.d.ts +36 -0
  91. package/dist/motion/MovingFrame.d.ts.map +1 -0
  92. package/dist/motion/motion.d.ts +82 -0
  93. package/dist/motion/motion.d.ts.map +1 -0
  94. package/dist/motion/presence.d.ts +6 -0
  95. package/dist/motion/presence.d.ts.map +1 -0
  96. package/dist/motion/press.d.ts +15 -0
  97. package/dist/motion/press.d.ts.map +1 -0
  98. package/dist/mute-H5SJFXVI.wav +0 -0
  99. package/dist/primitives/BottomSheet.d.ts +36 -0
  100. package/dist/primitives/BottomSheet.d.ts.map +1 -0
  101. package/dist/primitives/ChalkText.d.ts +13 -0
  102. package/dist/primitives/ChalkText.d.ts.map +1 -0
  103. package/dist/primitives/CopyButton.d.ts +11 -0
  104. package/dist/primitives/CopyButton.d.ts.map +1 -0
  105. package/dist/primitives/IconButton.d.ts +26 -0
  106. package/dist/primitives/IconButton.d.ts.map +1 -0
  107. package/dist/primitives/Menu.d.ts +39 -0
  108. package/dist/primitives/Menu.d.ts.map +1 -0
  109. package/dist/primitives/NameTag.d.ts +19 -0
  110. package/dist/primitives/NameTag.d.ts.map +1 -0
  111. package/dist/primitives/PillButton.d.ts +19 -0
  112. package/dist/primitives/PillButton.d.ts.map +1 -0
  113. package/dist/primitives/SegmentedControl.d.ts +17 -0
  114. package/dist/primitives/SegmentedControl.d.ts.map +1 -0
  115. package/dist/primitives/SheetGroup.d.ts +24 -0
  116. package/dist/primitives/SheetGroup.d.ts.map +1 -0
  117. package/dist/primitives/Switch.d.ts +9 -0
  118. package/dist/primitives/Switch.d.ts.map +1 -0
  119. package/dist/primitives/TileShell.d.ts +18 -0
  120. package/dist/primitives/TileShell.d.ts.map +1 -0
  121. package/dist/primitives/announce.d.ts +3 -0
  122. package/dist/primitives/announce.d.ts.map +1 -0
  123. package/dist/primitives/menu-placement.d.ts +32 -0
  124. package/dist/primitives/menu-placement.d.ts.map +1 -0
  125. package/dist/primitives/toast/Toast.d.ts +8 -0
  126. package/dist/primitives/toast/Toast.d.ts.map +1 -0
  127. package/dist/primitives/toast/ToastStack.d.ts +18 -0
  128. package/dist/primitives/toast/ToastStack.d.ts.map +1 -0
  129. package/dist/primitives/toast/toast-store.d.ts +39 -0
  130. package/dist/primitives/toast/toast-store.d.ts.map +1 -0
  131. package/dist/recording-Q4GB77Y4.wav +0 -0
  132. package/dist/sheets/people-chat/ChatNotices.d.ts +14 -0
  133. package/dist/sheets/people-chat/ChatNotices.d.ts.map +1 -0
  134. package/dist/sheets/people-chat/ChatTab.d.ts +6 -0
  135. package/dist/sheets/people-chat/ChatTab.d.ts.map +1 -0
  136. package/dist/sheets/people-chat/Composer.d.ts +7 -0
  137. package/dist/sheets/people-chat/Composer.d.ts.map +1 -0
  138. package/dist/sheets/people-chat/PeopleChatSheet.d.ts +17 -0
  139. package/dist/sheets/people-chat/PeopleChatSheet.d.ts.map +1 -0
  140. package/dist/sheets/people-chat/PeopleTab.d.ts +3 -0
  141. package/dist/sheets/people-chat/PeopleTab.d.ts.map +1 -0
  142. package/dist/sheets/people-chat/PhotoViewer.d.ts +19 -0
  143. package/dist/sheets/people-chat/PhotoViewer.d.ts.map +1 -0
  144. package/dist/sheets/people-chat/TextField.d.ts +4 -0
  145. package/dist/sheets/people-chat/TextField.d.ts.map +1 -0
  146. package/dist/sheets/people-chat/attachments.d.ts +33 -0
  147. package/dist/sheets/people-chat/attachments.d.ts.map +1 -0
  148. package/dist/sheets/people-chat/chat-model.d.ts +64 -0
  149. package/dist/sheets/people-chat/chat-model.d.ts.map +1 -0
  150. package/dist/sheets/people-chat/people-model.d.ts +43 -0
  151. package/dist/sheets/people-chat/people-model.d.ts.map +1 -0
  152. package/dist/sounds/sounds.d.ts +33 -0
  153. package/dist/sounds/sounds.d.ts.map +1 -0
  154. package/dist/space-client/create-native-space-client.d.ts +0 -4
  155. package/dist/space-client/create-native-space-client.d.ts.map +1 -1
  156. package/dist/space-client/random-uuid.d.ts +7 -0
  157. package/dist/space-client/random-uuid.d.ts.map +1 -0
  158. package/dist/stage/ContentTile.d.ts +18 -0
  159. package/dist/stage/ContentTile.d.ts.map +1 -0
  160. package/dist/stage/ParticipantTile.d.ts +18 -0
  161. package/dist/stage/ParticipantTile.d.ts.map +1 -0
  162. package/dist/stage/Stage.d.ts +14 -0
  163. package/dist/stage/Stage.d.ts.map +1 -0
  164. package/dist/stage/TileSheet.d.ts +12 -0
  165. package/dist/stage/TileSheet.d.ts.map +1 -0
  166. package/dist/stage/camera.d.ts +7 -0
  167. package/dist/stage/camera.d.ts.map +1 -0
  168. package/dist/stage/layout.d.ts +57 -0
  169. package/dist/stage/layout.d.ts.map +1 -0
  170. package/dist/stage/space-selector.d.ts +10 -0
  171. package/dist/stage/space-selector.d.ts.map +1 -0
  172. package/dist/stage/stage-view.d.ts +23 -0
  173. package/dist/stage/stage-view.d.ts.map +1 -0
  174. package/dist/status/CallOverlays.d.ts +17 -0
  175. package/dist/status/CallOverlays.d.ts.map +1 -0
  176. package/dist/status/ChalkArrival.d.ts +24 -0
  177. package/dist/status/ChalkArrival.d.ts.map +1 -0
  178. package/dist/status/StatusPage.d.ts +14 -0
  179. package/dist/status/StatusPage.d.ts.map +1 -0
  180. package/dist/status/call-screen.d.ts +20 -0
  181. package/dist/status/call-screen.d.ts.map +1 -0
  182. package/dist/test-VD2KAM4D.wav +0 -0
  183. package/dist/theme/theme.d.ts +15 -0
  184. package/dist/theme/theme.d.ts.map +1 -0
  185. package/dist/theme/tokens.d.ts +248 -0
  186. package/dist/theme/tokens.d.ts.map +1 -0
  187. package/dist/toasts/CallEventToasts.d.ts +21 -0
  188. package/dist/toasts/CallEventToasts.d.ts.map +1 -0
  189. package/dist/toasts/notices.d.ts +34 -0
  190. package/dist/toasts/notices.d.ts.map +1 -0
  191. package/dist/ui/ChalkUI.d.ts +12 -0
  192. package/dist/ui/ChalkUI.d.ts.map +1 -0
  193. package/dist/ui.d.ts +25 -0
  194. package/dist/ui.d.ts.map +1 -0
  195. package/dist/ui.js +77 -0
  196. package/dist/unmute-2XR2LICU.wav +0 -0
  197. package/embedded/chalk-whiteboard/asset-manifest.json +2 -2
  198. package/embedded/chalk-whiteboard/renderer.js +510 -510
  199. package/ios/ChalkAudioRouteModule.swift +93 -0
  200. package/ios/ChalkAudioRouteModuleBridge.m +9 -0
  201. package/package.json +46 -76
  202. package/src/android/call-service.ts +19 -0
  203. package/src/avatar/FaceAvatar.tsx +145 -0
  204. package/src/avatar/tile-avatar-size.ts +4 -0
  205. package/src/client.ts +1 -5
  206. package/src/components/EmbeddedWhiteboard.tsx +14 -71
  207. package/src/components/native-media-visibility.ts +1 -2
  208. package/src/components/useAndroidCallService.ts +41 -0
  209. package/src/dev.ts +9 -0
  210. package/src/dock/Dock.tsx +95 -0
  211. package/src/dock/LeaveMenu.tsx +21 -0
  212. package/src/dock/MoreSheet.tsx +233 -0
  213. package/src/dock/ReactionBurst.tsx +55 -0
  214. package/src/dock/RoutePicker.tsx +42 -0
  215. package/src/dock/audio-route.ts +69 -0
  216. package/src/frame/CallFrame.tsx +209 -0
  217. package/src/frame/Chalk.tsx +83 -0
  218. package/src/frame/back-handler.ts +19 -0
  219. package/src/frame/dev-scenario.ts +48 -0
  220. package/src/frame/device-layout.tsx +31 -0
  221. package/src/frame/measurement.ts +44 -0
  222. package/src/frame/portal.tsx +107 -0
  223. package/src/frame/preferences.tsx +48 -0
  224. package/src/frame/regions.test.ts +38 -0
  225. package/src/frame/regions.ts +60 -0
  226. package/src/haptics/haptics.ts +19 -0
  227. package/src/header/CallDetailsSheet.tsx +139 -0
  228. package/src/header/Header.tsx +107 -0
  229. package/src/header/QrCode.tsx +34 -0
  230. package/src/icons/Icon.tsx +35 -0
  231. package/src/icons/icon-element.ts +11 -0
  232. package/src/icons/icon-paths.ts +199 -0
  233. package/src/index.ts +6 -9
  234. package/src/limbo/Limbo.tsx +159 -0
  235. package/src/limbo/Veil.tsx +36 -0
  236. package/src/media/native-capture-error.test.ts +19 -0
  237. package/src/media/native-capture-error.ts +13 -0
  238. package/src/motion/MovingFrame.tsx +101 -0
  239. package/src/motion/motion.ts +33 -0
  240. package/src/motion/presence.ts +20 -0
  241. package/src/motion/press.ts +35 -0
  242. package/src/primitives/BottomSheet.tsx +211 -0
  243. package/src/primitives/ChalkText.tsx +23 -0
  244. package/src/primitives/CopyButton.tsx +78 -0
  245. package/src/primitives/IconButton.tsx +90 -0
  246. package/src/primitives/Menu.tsx +212 -0
  247. package/src/primitives/NameTag.tsx +68 -0
  248. package/src/primitives/PillButton.tsx +56 -0
  249. package/src/primitives/SegmentedControl.tsx +55 -0
  250. package/src/primitives/SheetGroup.tsx +72 -0
  251. package/src/primitives/Switch.tsx +39 -0
  252. package/src/primitives/TileShell.tsx +53 -0
  253. package/src/primitives/announce.ts +7 -0
  254. package/src/primitives/menu-placement.test.ts +50 -0
  255. package/src/primitives/menu-placement.ts +43 -0
  256. package/src/primitives/toast/Toast.tsx +50 -0
  257. package/src/primitives/toast/ToastStack.tsx +89 -0
  258. package/src/primitives/toast/toast-store.ts +86 -0
  259. package/src/sheets/people-chat/ChatNotices.tsx +69 -0
  260. package/src/sheets/people-chat/ChatTab.tsx +186 -0
  261. package/src/sheets/people-chat/Composer.tsx +182 -0
  262. package/src/sheets/people-chat/PeopleChatSheet.tsx +100 -0
  263. package/src/sheets/people-chat/PeopleTab.tsx +326 -0
  264. package/src/sheets/people-chat/PhotoViewer.tsx +132 -0
  265. package/src/sheets/people-chat/TextField.tsx +14 -0
  266. package/src/sheets/people-chat/attachments.tsx +183 -0
  267. package/src/sheets/people-chat/chat-model.ts +157 -0
  268. package/src/sheets/people-chat/people-chat-model.test.ts +98 -0
  269. package/src/sheets/people-chat/people-model.ts +68 -0
  270. package/src/sounds/assets/error.wav +0 -0
  271. package/src/sounds/assets/hand.wav +0 -0
  272. package/src/sounds/assets/join.wav +0 -0
  273. package/src/sounds/assets/knock.wav +0 -0
  274. package/src/sounds/assets/leave.wav +0 -0
  275. package/src/sounds/assets/message.wav +0 -0
  276. package/src/sounds/assets/mute.wav +0 -0
  277. package/src/sounds/assets/recording.wav +0 -0
  278. package/src/sounds/assets/test.wav +0 -0
  279. package/src/sounds/assets/unmute.wav +0 -0
  280. package/src/sounds/assets.d.ts +5 -0
  281. package/src/sounds/sounds.ts +50 -0
  282. package/src/space-client/create-native-space-client.ts +20 -181
  283. package/src/space-client/random-uuid.ts +17 -0
  284. package/src/space-client/whiteboard-watchdog.test.ts +23 -0
  285. package/src/stage/ContentTile.tsx +100 -0
  286. package/src/stage/ParticipantTile.tsx +140 -0
  287. package/src/stage/Stage.tsx +152 -0
  288. package/src/stage/TileSheet.tsx +116 -0
  289. package/src/stage/camera.ts +20 -0
  290. package/src/stage/layout.test.ts +77 -0
  291. package/src/stage/layout.ts +226 -0
  292. package/src/stage/space-selector.ts +31 -0
  293. package/src/stage/stage-view.tsx +68 -0
  294. package/src/status/CallOverlays.tsx +47 -0
  295. package/src/status/ChalkArrival.tsx +53 -0
  296. package/src/status/StatusPage.tsx +123 -0
  297. package/src/status/call-screen.test.ts +42 -0
  298. package/src/status/call-screen.ts +29 -0
  299. package/src/theme/theme.tsx +28 -0
  300. package/src/theme/tokens.ts +247 -0
  301. package/src/toasts/CallEventToasts.tsx +192 -0
  302. package/src/toasts/notices.test.ts +92 -0
  303. package/src/toasts/notices.ts +62 -0
  304. package/src/ui/ChalkUI.tsx +49 -0
  305. package/src/ui.ts +24 -0
  306. package/dist/android.d.ts +0 -2
  307. package/dist/android.d.ts.map +0 -1
  308. package/dist/android.js +0 -62
  309. package/dist/chunk-2OS7SSXE.js +0 -552
  310. package/dist/chunk-5DQ4KBRH.js +0 -690
  311. package/dist/chunk-ITLUHTVS.js +0 -5271
  312. package/dist/chunk-JB4LNWVP.js +0 -247
  313. package/dist/components/Chalk.d.ts +0 -79
  314. package/dist/components/Chalk.d.ts.map +0 -1
  315. package/dist/components/ChatMessageList.d.ts +0 -11
  316. package/dist/components/ChatMessageList.d.ts.map +0 -1
  317. package/dist/components/Entrance.d.ts +0 -22
  318. package/dist/components/Entrance.d.ts.map +0 -1
  319. package/dist/components/EntranceView.android.d.ts +0 -4
  320. package/dist/components/EntranceView.android.d.ts.map +0 -1
  321. package/dist/components/EntranceView.d.ts +0 -18
  322. package/dist/components/EntranceView.d.ts.map +0 -1
  323. package/dist/components/EntranceView.ios-pad.d.ts +0 -3
  324. package/dist/components/EntranceView.ios-pad.d.ts.map +0 -1
  325. package/dist/components/EntranceView.ios-phone.d.ts +0 -3
  326. package/dist/components/EntranceView.ios-phone.d.ts.map +0 -1
  327. package/dist/components/EntranceView.macos.d.ts +0 -4
  328. package/dist/components/EntranceView.macos.d.ts.map +0 -1
  329. package/dist/components/FaceAvatar.d.ts +0 -16
  330. package/dist/components/FaceAvatar.d.ts.map +0 -1
  331. package/dist/components/GradientSurface.d.ts +0 -14
  332. package/dist/components/GradientSurface.d.ts.map +0 -1
  333. package/dist/components/MediaView.d.ts +0 -14
  334. package/dist/components/MediaView.d.ts.map +0 -1
  335. package/dist/components/ReactionPicker.d.ts +0 -10
  336. package/dist/components/ReactionPicker.d.ts.map +0 -1
  337. package/dist/components/SpaceView.android.d.ts +0 -2
  338. package/dist/components/SpaceView.android.d.ts.map +0 -1
  339. package/dist/components/SpaceView.d.ts +0 -33
  340. package/dist/components/SpaceView.d.ts.map +0 -1
  341. package/dist/components/SpaceView.ios-pad.d.ts +0 -2
  342. package/dist/components/SpaceView.ios-pad.d.ts.map +0 -1
  343. package/dist/components/SpaceView.ios-phone.d.ts +0 -2
  344. package/dist/components/SpaceView.ios-phone.d.ts.map +0 -1
  345. package/dist/components/SpaceView.macos.d.ts +0 -2
  346. package/dist/components/SpaceView.macos.d.ts.map +0 -1
  347. package/dist/components/SpaceView.shared.d.ts +0 -3
  348. package/dist/components/SpaceView.shared.d.ts.map +0 -1
  349. package/dist/components/episode-diagnostic-render-observer.d.ts +0 -2
  350. package/dist/components/episode-diagnostic-render-observer.d.ts.map +0 -1
  351. package/dist/components/logo/Logo.d.ts +0 -11
  352. package/dist/components/logo/Logo.d.ts.map +0 -1
  353. package/dist/components/native-animation-controller.d.ts +0 -7
  354. package/dist/components/native-animation-controller.d.ts.map +0 -1
  355. package/dist/components/native-chat.d.ts +0 -8
  356. package/dist/components/native-chat.d.ts.map +0 -1
  357. package/dist/components/native-entrance/entrance-controller-store.d.ts +0 -34
  358. package/dist/components/native-entrance/entrance-controller-store.d.ts.map +0 -1
  359. package/dist/components/native-entrance/useEntranceController.d.ts +0 -19
  360. package/dist/components/native-entrance/useEntranceController.d.ts.map +0 -1
  361. package/dist/components/native-joining-loading-animation.d.ts +0 -9
  362. package/dist/components/native-joining-loading-animation.d.ts.map +0 -1
  363. package/dist/components/native-space-view/AppearanceSettings.d.ts +0 -2
  364. package/dist/components/native-space-view/AppearanceSettings.d.ts.map +0 -1
  365. package/dist/components/native-space-view/FeedbackSheet.d.ts +0 -12
  366. package/dist/components/native-space-view/FeedbackSheet.d.ts.map +0 -1
  367. package/dist/components/native-space-view/ParticipantActionSheet.d.ts +0 -9
  368. package/dist/components/native-space-view/ParticipantActionSheet.d.ts.map +0 -1
  369. package/dist/components/native-space-view/SettingsSheet.d.ts +0 -7
  370. package/dist/components/native-space-view/SettingsSheet.d.ts.map +0 -1
  371. package/dist/components/native-space-view/SpaceActionMenu.d.ts +0 -10
  372. package/dist/components/native-space-view/SpaceActionMenu.d.ts.map +0 -1
  373. package/dist/components/native-space-view/SpaceBottomDock.android.d.ts +0 -4
  374. package/dist/components/native-space-view/SpaceBottomDock.android.d.ts.map +0 -1
  375. package/dist/components/native-space-view/SpaceChatAttachment.d.ts +0 -8
  376. package/dist/components/native-space-view/SpaceChatAttachment.d.ts.map +0 -1
  377. package/dist/components/native-space-view/SpaceChatSheet.d.ts +0 -5
  378. package/dist/components/native-space-view/SpaceChatSheet.d.ts.map +0 -1
  379. package/dist/components/native-space-view/SpaceGrid.android.d.ts +0 -8
  380. package/dist/components/native-space-view/SpaceGrid.android.d.ts.map +0 -1
  381. package/dist/components/native-space-view/SpaceMoreSheet.d.ts +0 -7
  382. package/dist/components/native-space-view/SpaceMoreSheet.d.ts.map +0 -1
  383. package/dist/components/native-space-view/SpacePanelSheet.d.ts +0 -5
  384. package/dist/components/native-space-view/SpacePanelSheet.d.ts.map +0 -1
  385. package/dist/components/native-space-view/SpacePeopleSheet.d.ts +0 -5
  386. package/dist/components/native-space-view/SpacePeopleSheet.d.ts.map +0 -1
  387. package/dist/components/native-space-view/SpaceStage.android.d.ts +0 -29
  388. package/dist/components/native-space-view/SpaceStage.android.d.ts.map +0 -1
  389. package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts +0 -30
  390. package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts.map +0 -1
  391. package/dist/components/native-space-view/SpaceTopBar.android.d.ts +0 -11
  392. package/dist/components/native-space-view/SpaceTopBar.android.d.ts.map +0 -1
  393. package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts +0 -15
  394. package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts.map +0 -1
  395. package/dist/components/native-space-view/diagnostics.d.ts +0 -48
  396. package/dist/components/native-space-view/diagnostics.d.ts.map +0 -1
  397. package/dist/components/native-space-view/format-space-duration.d.ts +0 -2
  398. package/dist/components/native-space-view/format-space-duration.d.ts.map +0 -1
  399. package/dist/components/native-space-view/native-space-grid-keys.d.ts +0 -3
  400. package/dist/components/native-space-view/native-space-grid-keys.d.ts.map +0 -1
  401. package/dist/components/native-space-view/native-space-page-store.d.ts +0 -8
  402. package/dist/components/native-space-view/native-space-page-store.d.ts.map +0 -1
  403. package/dist/components/native-space-view/space-chat-attachments.d.ts +0 -15
  404. package/dist/components/native-space-view/space-chat-attachments.d.ts.map +0 -1
  405. package/dist/components/native-space-view/space-panel-layout.d.ts +0 -10
  406. package/dist/components/native-space-view/space-panel-layout.d.ts.map +0 -1
  407. package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts +0 -16
  408. package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts.map +0 -1
  409. package/dist/components/native-space-view/space-progressive-surface-types.d.ts +0 -3
  410. package/dist/components/native-space-view/space-progressive-surface-types.d.ts.map +0 -1
  411. package/dist/components/native-space-view/types.d.ts +0 -24
  412. package/dist/components/native-space-view/types.d.ts.map +0 -1
  413. package/dist/components/native-space-view/useSpaceViewController.contract.d.ts +0 -41
  414. package/dist/components/native-space-view/useSpaceViewController.contract.d.ts.map +0 -1
  415. package/dist/components/native-space-view/useSpaceViewController.d.ts +0 -156
  416. package/dist/components/native-space-view/useSpaceViewController.d.ts.map +0 -1
  417. package/dist/components/native-space-view/useSpaceViewDerived.d.ts +0 -12
  418. package/dist/components/native-space-view/useSpaceViewDerived.d.ts.map +0 -1
  419. package/dist/components/native-space-view/useSpaceViewPanels.d.ts +0 -70
  420. package/dist/components/native-space-view/useSpaceViewPanels.d.ts.map +0 -1
  421. package/dist/feedback/native-capture.d.ts +0 -9
  422. package/dist/feedback/native-capture.d.ts.map +0 -1
  423. package/dist/feedback/native-evidence.d.ts +0 -3
  424. package/dist/feedback/native-evidence.d.ts.map +0 -1
  425. package/dist/hooks/entrance-preview-store.d.ts +0 -16
  426. package/dist/hooks/entrance-preview-store.d.ts.map +0 -1
  427. package/dist/hooks/useEntrancePreview.d.ts +0 -7
  428. package/dist/hooks/useEntrancePreview.d.ts.map +0 -1
  429. package/dist/hooks/useLayout.d.ts +0 -16
  430. package/dist/hooks/useLayout.d.ts.map +0 -1
  431. package/dist/hooks/usePanels.d.ts +0 -12
  432. package/dist/hooks/usePanels.d.ts.map +0 -1
  433. package/dist/ios-pad.d.ts +0 -2
  434. package/dist/ios-pad.d.ts.map +0 -1
  435. package/dist/ios-pad.js +0 -62
  436. package/dist/ios-phone.d.ts +0 -2
  437. package/dist/ios-phone.d.ts.map +0 -1
  438. package/dist/ios-phone.js +0 -62
  439. package/dist/ios.d.ts +0 -2
  440. package/dist/ios.d.ts.map +0 -1
  441. package/dist/ios.js +0 -62
  442. package/dist/macos.d.ts +0 -2
  443. package/dist/macos.d.ts.map +0 -1
  444. package/dist/macos.js +0 -62
  445. package/dist/space-client/cloudflare-rtk-native.d.ts +0 -3
  446. package/dist/space-client/cloudflare-rtk-native.d.ts.map +0 -1
  447. package/dist/telemetry.d.ts +0 -63
  448. package/dist/telemetry.d.ts.map +0 -1
  449. package/dist/ui/appearance.d.ts +0 -246
  450. package/dist/ui/appearance.d.ts.map +0 -1
  451. package/dist/ui/appearance.js +0 -14
  452. package/dist/ui/native-appearance-context.d.ts +0 -15
  453. package/dist/ui/native-appearance-context.d.ts.map +0 -1
  454. package/dist/ui/native-theme.d.ts +0 -17
  455. package/dist/ui/native-theme.d.ts.map +0 -1
  456. package/dist/ui/native-types.d.ts +0 -38
  457. package/dist/ui/native-types.d.ts.map +0 -1
  458. package/dist/ui/participant-avatar.d.ts +0 -21
  459. package/dist/ui/participant-avatar.d.ts.map +0 -1
  460. package/dist/ui/theme-tokens.d.ts +0 -25
  461. package/dist/ui/theme-tokens.d.ts.map +0 -1
  462. package/dist/ui/theme.d.ts +0 -404
  463. package/dist/ui/theme.d.ts.map +0 -1
  464. package/dist/ui/theme.js +0 -8
  465. package/dist/utils/native-space-layout.d.ts +0 -42
  466. package/dist/utils/native-space-layout.d.ts.map +0 -1
  467. package/src/android.ts +0 -1
  468. package/src/components/Chalk.tsx +0 -363
  469. package/src/components/ChatMessageList.tsx +0 -209
  470. package/src/components/Entrance.tsx +0 -42
  471. package/src/components/EntranceView.android.tsx +0 -274
  472. package/src/components/EntranceView.ios-pad.tsx +0 -326
  473. package/src/components/EntranceView.ios-phone.tsx +0 -271
  474. package/src/components/EntranceView.macos.tsx +0 -278
  475. package/src/components/EntranceView.tsx +0 -38
  476. package/src/components/FaceAvatar.tsx +0 -120
  477. package/src/components/GradientSurface.tsx +0 -23
  478. package/src/components/MediaView.tsx +0 -76
  479. package/src/components/ReactionPicker.tsx +0 -98
  480. package/src/components/SpaceView.android.tsx +0 -1
  481. package/src/components/SpaceView.ios-pad.tsx +0 -1
  482. package/src/components/SpaceView.ios-phone.tsx +0 -1
  483. package/src/components/SpaceView.macos.tsx +0 -1
  484. package/src/components/SpaceView.shared.tsx +0 -98
  485. package/src/components/SpaceView.tsx +0 -54
  486. package/src/components/episode-diagnostic-render-observer.ts +0 -12
  487. package/src/components/logo/Logo.tsx +0 -309
  488. package/src/components/native-animation-controller.ts +0 -36
  489. package/src/components/native-chat.ts +0 -23
  490. package/src/components/native-entrance/entrance-controller-store.ts +0 -112
  491. package/src/components/native-entrance/useEntranceController.ts +0 -60
  492. package/src/components/native-joining-loading-animation.ts +0 -26
  493. package/src/components/native-space-view/AppearanceSettings.tsx +0 -114
  494. package/src/components/native-space-view/FeedbackSheet.tsx +0 -296
  495. package/src/components/native-space-view/ParticipantActionSheet.tsx +0 -99
  496. package/src/components/native-space-view/SettingsSheet.tsx +0 -164
  497. package/src/components/native-space-view/SpaceActionMenu.tsx +0 -109
  498. package/src/components/native-space-view/SpaceBottomDock.android.tsx +0 -115
  499. package/src/components/native-space-view/SpaceChatAttachment.tsx +0 -105
  500. package/src/components/native-space-view/SpaceChatSheet.tsx +0 -184
  501. package/src/components/native-space-view/SpaceGrid.android.tsx +0 -323
  502. package/src/components/native-space-view/SpaceMoreSheet.tsx +0 -190
  503. package/src/components/native-space-view/SpacePanelSheet.tsx +0 -45
  504. package/src/components/native-space-view/SpacePeopleSheet.tsx +0 -116
  505. package/src/components/native-space-view/SpaceStage.android.tsx +0 -372
  506. package/src/components/native-space-view/SpaceSurfacePrimitives.tsx +0 -75
  507. package/src/components/native-space-view/SpaceTopBar.android.tsx +0 -113
  508. package/src/components/native-space-view/SpaceWhiteboardSurface.tsx +0 -69
  509. package/src/components/native-space-view/diagnostics.ts +0 -84
  510. package/src/components/native-space-view/format-space-duration.ts +0 -3
  511. package/src/components/native-space-view/native-space-grid-keys.ts +0 -6
  512. package/src/components/native-space-view/native-space-page-store.ts +0 -41
  513. package/src/components/native-space-view/space-chat-attachments.test.ts +0 -26
  514. package/src/components/native-space-view/space-chat-attachments.ts +0 -37
  515. package/src/components/native-space-view/space-panel-layout.ts +0 -10
  516. package/src/components/native-space-view/space-progressive-surface-helpers.ts +0 -33
  517. package/src/components/native-space-view/space-progressive-surface-types.ts +0 -3
  518. package/src/components/native-space-view/types.ts +0 -25
  519. package/src/components/native-space-view/useSpaceViewController.contract.ts +0 -34
  520. package/src/components/native-space-view/useSpaceViewController.ts +0 -416
  521. package/src/components/native-space-view/useSpaceViewDerived.ts +0 -29
  522. package/src/components/native-space-view/useSpaceViewPanels.ts +0 -170
  523. package/src/feedback/native-capture.ts +0 -62
  524. package/src/feedback/native-evidence.ts +0 -37
  525. package/src/hooks/entrance-preview-store.ts +0 -99
  526. package/src/hooks/useEntrancePreview.ts +0 -26
  527. package/src/hooks/useLayout.ts +0 -37
  528. package/src/hooks/usePanels.ts +0 -30
  529. package/src/ios-pad.ts +0 -1
  530. package/src/ios-phone.ts +0 -1
  531. package/src/ios.ts +0 -1
  532. package/src/macos.ts +0 -1
  533. package/src/space-client/cloudflare-rtk-native.ts +0 -104
  534. package/src/telemetry.ts +0 -234
  535. package/src/types/hugeicons-direct.d.ts +0 -4
  536. package/src/types/react-native-safe-area-context.d.ts +0 -8
  537. package/src/ui/appearance.ts +0 -808
  538. package/src/ui/native-appearance-context.tsx +0 -74
  539. package/src/ui/native-theme.tsx +0 -54
  540. package/src/ui/native-types.ts +0 -40
  541. package/src/ui/participant-avatar.ts +0 -47
  542. package/src/ui/theme-tokens.ts +0 -41
  543. package/src/ui/theme.ts +0 -214
  544. package/src/utils/native-space-layout.ts +0 -135
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallOverlays.d.ts","sourceRoot":"","sources":["../../src/status/CallOverlays.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqB5H"}
@@ -0,0 +1,24 @@
1
+ import type { ColorScheme } from "../theme/tokens";
2
+ /** Where a person stands before the call lets them in: waiting for the host, turned away, or the call is full. */
3
+ export type ArrivalState = "knocking" | "refused" | "full";
4
+ export type ChalkArrivalProps = {
5
+ readonly state: ArrivalState;
6
+ /** The call's name, such as "Q9 team". */
7
+ readonly callName: string;
8
+ /** Dark by default, like `Chalk`. */
9
+ readonly colorScheme?: ColorScheme;
10
+ /** Stops waiting (Cancel while knocking, Android back). */
11
+ readonly onCancel: () => void;
12
+ /** Knocks again after a refusal, or tries again once a full call has room. */
13
+ readonly onRetry: () => void;
14
+ /** Recording consent shows while knocking on a recorded call. */
15
+ readonly recording?: boolean;
16
+ };
17
+ /**
18
+ * The screens before `Chalk` joins (T3, T4, A7), for an app that lets a person ask to join a call
19
+ * through an invite link: "Asking to join" with Cancel, "The host didn’t let you in" with Ask again,
20
+ * and "This call is full" with Try again and Home.
21
+ */
22
+ export declare function ChalkArrival({ colorScheme, ...props }: ChalkArrivalProps): React.JSX.Element;
23
+ export declare function ArrivalScreen({ state, callName, onCancel, onRetry, recording }: Omit<ChalkArrivalProps, "colorScheme">): React.JSX.Element;
24
+ //# sourceMappingURL=ChalkArrival.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChalkArrival.d.ts","sourceRoot":"","sources":["../../src/status/ChalkArrival.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,kHAAkH;AAClH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,qCAAqC;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACnC,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,WAAoB,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQrG;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAiB,EAAE,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQlJ"}
@@ -0,0 +1,14 @@
1
+ /** The ways a call ends for you (A3 to A7). */
2
+ export type CallOutcome = "left" | "ended" | "failed" | "removed" | "exited" | "full";
3
+ export type StatusPageProps = {
4
+ readonly outcome: CallOutcome;
5
+ readonly callName: string;
6
+ readonly onRejoin: () => void;
7
+ readonly onHome: () => void;
8
+ };
9
+ /**
10
+ * A full-screen status page on the canvas (`.status`): a title, an optional line saying what to do,
11
+ * and the ways forward as round actions with their names under them.
12
+ */
13
+ export declare function StatusPage({ outcome, callName, onRejoin, onHome }: StatusPageProps): React.JSX.Element;
14
+ //# sourceMappingURL=StatusPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusPage.d.ts","sourceRoot":"","sources":["../../src/status/StatusPage.tsx"],"names":[],"mappings":"AAUA,+CAA+C;AAC/C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgCtG"}
@@ -0,0 +1,20 @@
1
+ import type { ConnectionSlice } from "@q9labsai/chalk-client";
2
+ import type { CallOutcome } from "./StatusPage";
3
+ /** What covers the call: nothing, a limbo card over the veiled call, or a status page. */
4
+ export type CallScreen = {
5
+ readonly kind: "call";
6
+ } | {
7
+ readonly kind: "joining";
8
+ } | {
9
+ readonly kind: "reconnecting";
10
+ } | {
11
+ readonly kind: "status";
12
+ readonly outcome: CallOutcome;
13
+ };
14
+ /**
15
+ * Reads the screen from the connection. `leftByChoice` is true from the moment the person presses
16
+ * Leave or End until they join again, so a leave whose call failed still reads as their choice.
17
+ * Only the server's own removal signal shows "removed"; any other exit nobody chose is `exited`.
18
+ */
19
+ export declare function callScreen(connection: ConnectionSlice, leftByChoice: boolean): CallScreen;
20
+ //# sourceMappingURL=call-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-screen.d.ts","sourceRoot":"","sources":["../../src/status/call-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,0FAA0F;AAC1F,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC;AAEnL;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,GAAG,UAAU,CAiBzF"}
Binary file
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ import { type ColorScheme, type Elevation, type Palette } from "./tokens";
3
+ export type Theme = {
4
+ readonly scheme: ColorScheme;
5
+ readonly colors: Palette;
6
+ readonly elevation: Elevation;
7
+ };
8
+ /** Supplies one of two frozen theme objects, so consumers re-render only when the scheme changes. */
9
+ export declare function ThemeProvider({ colorScheme, children }: {
10
+ readonly colorScheme: ColorScheme;
11
+ readonly children: ReactNode;
12
+ }): React.JSX.Element;
13
+ export declare function useTheme(): Theme;
14
+ export declare function themeFor(colorScheme: ColorScheme): Theme;
15
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AASF,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAE/I;AAED,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,KAAK,CAExD"}
@@ -0,0 +1,248 @@
1
+ /**
2
+ * Design tokens for the call, copied from the approved mobile mockup
3
+ * (`.dev` and `.dev.light` in mobile-mockup.html) and named by role as in design.md.
4
+ * This file and `fixed` below are the only places a colour literal may appear.
5
+ */
6
+ export type ColorScheme = "dark" | "light";
7
+ export type Palette = {
8
+ /** Call background and status pages. */
9
+ readonly canvas: string;
10
+ /** Sheets, cards, the people pill and header buttons. */
11
+ readonly surface: string;
12
+ /** Tile background and the letterbox colour of shared content. */
13
+ readonly tile: string;
14
+ /** Round dock buttons, fields, chat bubbles, selected rows. */
15
+ readonly raised: string;
16
+ /** Menus, popovers and toasts. */
17
+ readonly popover: string;
18
+ /** Pressed row, expanded control, the default pill button. */
19
+ readonly hover: string;
20
+ /** Pressed surface of a raised control, switch track when off. */
21
+ readonly pressed: string;
22
+ readonly line: string;
23
+ readonly lineStrong: string;
24
+ readonly text: string;
25
+ readonly textStrong: string;
26
+ readonly textSoft: string;
27
+ readonly textMuted: string;
28
+ /** Focus ring: the mockup draws `outline: 2px solid var(--tx)`. */
29
+ readonly focus: string;
30
+ readonly danger: string;
31
+ readonly dangerPressed: string;
32
+ readonly dangerText: string;
33
+ readonly success: string;
34
+ readonly warning: string;
35
+ /** The call's accent: unread dots and your own reactions. */
36
+ readonly info: string;
37
+ };
38
+ export declare const palettes: Readonly<Record<ColorScheme, Palette>>;
39
+ /** Colours that stay the same in both themes, because they sit on video or carry a fixed meaning. */
40
+ export declare const fixed: {
41
+ readonly overlay: "rgba(12,14,18,0.75)";
42
+ readonly overlayStrong: "rgba(12,14,18,0.82)";
43
+ readonly overlayPressed: "rgba(40,42,48,0.95)";
44
+ readonly overlayText: "#FFFFFF";
45
+ readonly overlayDanger: "#FF6B6B";
46
+ readonly overlayWarning: "#E2BD3A";
47
+ readonly onDanger: "#FFFFFF";
48
+ readonly hand: "#DCB740";
49
+ readonly handText: "#16140C";
50
+ readonly scrim: "rgba(0,0,0,0.55)";
51
+ readonly liveRing: "rgba(255,255,255,0.9)";
52
+ readonly liveRingShade: "rgba(0,0,0,0.35)";
53
+ readonly switchKnob: "#FFFFFF";
54
+ /** QR codes stay black on white in both themes so every camera reads them. */
55
+ readonly qrLight: "#FFFFFF";
56
+ readonly qrDark: "#000000";
57
+ readonly shadow: "#000000";
58
+ readonly transparent: "transparent";
59
+ /** The selected segment of a compact segmented control. */
60
+ readonly segmentShadow: "0px 1px 2px rgba(0,0,0,0.2)";
61
+ };
62
+ /** File badges in chat (`.t-pdf` and friends); the same in both themes because the badge carries its own colour. */
63
+ export declare const fileKindColors: {
64
+ readonly pdf: "#C42B2B";
65
+ readonly doc: "#2F5FB3";
66
+ readonly xls: "#1E7A46";
67
+ readonly ppt: "#B8481E";
68
+ readonly other: "#5C5D65";
69
+ };
70
+ /** Shades over chat photos: "+N" on the last thumbnail (`.thm`) and a file still uploading (`.chip.up`). */
71
+ export declare const chatOverlays: {
72
+ readonly photoMore: "rgba(0,0,0,0.5)";
73
+ readonly uploading: "rgba(0,0,0,0.45)";
74
+ readonly ring: "#FFFFFF";
75
+ };
76
+ /** The photo viewer is dark in both themes (`.lbw`). */
77
+ export declare const viewer: {
78
+ readonly backdrop: "rgba(8,8,10,0.94)";
79
+ readonly text: "#ECECEE";
80
+ readonly textMuted: "#A1A2A9";
81
+ readonly button: "rgba(255,255,255,0.08)";
82
+ readonly buttonPressed: "rgba(255,255,255,0.16)";
83
+ };
84
+ /** Avatar backgrounds, chosen by a hash of the person's name. */
85
+ export declare const identityColors: readonly ["#315F72", "#5C6650", "#6B5B4F", "#64576B", "#49645D", "#665D42", "#4D5D73", "#6D5158"];
86
+ /**
87
+ * Shadows. In the light theme, controls that sit on the canvas carry a one-pixel `line` ring
88
+ * and floating surfaces add a soft shadow; the dark theme uses the heavier mockup shadows.
89
+ */
90
+ export type Elevation = {
91
+ readonly popover: string;
92
+ readonly toast: string;
93
+ /** The small tile floating over the other person when two are in the call (`.tile.float`). */
94
+ readonly floatTile: string;
95
+ /** Controls on the canvas (dock buttons, people pill) get a one-pixel ring in light. */
96
+ readonly ringOnCanvas: boolean;
97
+ };
98
+ export declare const elevations: Readonly<Record<ColorScheme, Elevation>>;
99
+ export type FontWeight = 400 | 500 | 600 | 700;
100
+ /** Figtree is embedded by the app; these are its PostScript names, which iOS and Android both resolve. */
101
+ export declare const fontFamilies: Readonly<Record<FontWeight, string>>;
102
+ /** The call type scale. Text is Figtree at a line height of 1.4, in sentence case. */
103
+ export declare const type: {
104
+ readonly statusTitle: {
105
+ readonly fontFamily: string;
106
+ readonly fontSize: number;
107
+ readonly lineHeight: number;
108
+ };
109
+ readonly limboTitle: {
110
+ readonly fontFamily: string;
111
+ readonly fontSize: number;
112
+ readonly lineHeight: number;
113
+ };
114
+ readonly progress: {
115
+ readonly fontFamily: string;
116
+ readonly fontSize: number;
117
+ readonly lineHeight: number;
118
+ };
119
+ readonly sheetTitle: {
120
+ readonly fontFamily: string;
121
+ readonly fontSize: number;
122
+ readonly lineHeight: number;
123
+ };
124
+ readonly phoneRow: {
125
+ readonly fontFamily: string;
126
+ readonly fontSize: number;
127
+ readonly lineHeight: number;
128
+ };
129
+ readonly cardTitle: {
130
+ readonly fontFamily: string;
131
+ readonly fontSize: number;
132
+ readonly lineHeight: number;
133
+ };
134
+ readonly wideButton: {
135
+ readonly fontFamily: string;
136
+ readonly fontSize: number;
137
+ readonly lineHeight: number;
138
+ };
139
+ readonly body: {
140
+ readonly fontFamily: string;
141
+ readonly fontSize: number;
142
+ readonly lineHeight: number;
143
+ };
144
+ readonly bodyMedium: {
145
+ readonly fontFamily: string;
146
+ readonly fontSize: number;
147
+ readonly lineHeight: number;
148
+ };
149
+ readonly bodyStrong: {
150
+ readonly fontFamily: string;
151
+ readonly fontSize: number;
152
+ readonly lineHeight: number;
153
+ };
154
+ readonly button: {
155
+ readonly fontFamily: string;
156
+ readonly fontSize: number;
157
+ readonly lineHeight: number;
158
+ };
159
+ readonly meta: {
160
+ readonly fontFamily: string;
161
+ readonly fontSize: number;
162
+ readonly lineHeight: number;
163
+ };
164
+ readonly label: {
165
+ readonly fontFamily: string;
166
+ readonly fontSize: number;
167
+ readonly lineHeight: number;
168
+ };
169
+ readonly section: {
170
+ readonly fontFamily: string;
171
+ readonly fontSize: number;
172
+ readonly lineHeight: number;
173
+ };
174
+ readonly caption: {
175
+ readonly fontFamily: string;
176
+ readonly fontSize: number;
177
+ readonly lineHeight: number;
178
+ };
179
+ };
180
+ export type TypeStyle = keyof typeof type;
181
+ export declare const radii: {
182
+ readonly tag: 6;
183
+ readonly field: 10;
184
+ readonly menuRow: 9;
185
+ readonly menu: 12;
186
+ readonly tile: 12;
187
+ readonly tilePhone: 14;
188
+ readonly card: 16;
189
+ readonly sheet: 24;
190
+ readonly round: 999;
191
+ };
192
+ /** Four-point grid. */
193
+ export declare const space: {
194
+ readonly 1: 4;
195
+ readonly 2: 8;
196
+ readonly 3: 12;
197
+ readonly 4: 16;
198
+ readonly 5: 20;
199
+ readonly 6: 24;
200
+ readonly 8: 32;
201
+ readonly 10: 40;
202
+ };
203
+ export declare const sizes: {
204
+ readonly control: 44;
205
+ readonly dockPhone: 52;
206
+ readonly headerButton: 40;
207
+ readonly menuRow: 40;
208
+ readonly menuRowPhone: 48;
209
+ readonly toastMinHeight: 48;
210
+ readonly handleWidth: 36;
211
+ readonly handleHeight: 5;
212
+ };
213
+ /** Durations in milliseconds, from the mockup's CSS transitions. */
214
+ export declare const durations: {
215
+ readonly press: 150;
216
+ readonly chromeFade: 250;
217
+ readonly menu: 180;
218
+ readonly toastIn: 200;
219
+ readonly toastOut: 160;
220
+ readonly card: 200;
221
+ readonly sheet: 240;
222
+ readonly scrim: 200;
223
+ readonly move: 220;
224
+ readonly enter: 220;
225
+ readonly leave: 160;
226
+ readonly copyMorph: 200;
227
+ readonly copyReset: 2000;
228
+ readonly veil: 300;
229
+ readonly avatarTurn: 300;
230
+ readonly speakingLevel: 90;
231
+ readonly landscapeHide: 4000;
232
+ readonly toastInfo: 5000;
233
+ };
234
+ export declare const easings: {
235
+ readonly emphasized: import("react-native-reanimated").EasingFunctionFactory;
236
+ readonly move: import("react-native-reanimated").EasingFunctionFactory;
237
+ readonly easeOut: import("react-native-reanimated").EasingFunctionFactory;
238
+ readonly standard: import("react-native-reanimated").EasingFunctionFactory;
239
+ readonly linear: (t: number) => number;
240
+ };
241
+ /** Scale of a pressed control, per control family. */
242
+ export declare const pressScale: {
243
+ readonly round: 0.94;
244
+ readonly pill: 0.97;
245
+ readonly small: 0.92;
246
+ readonly big: 0.98;
247
+ };
248
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/theme/tokens.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,OAAO,GAAG;IACpB,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAgDF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAmB,CAAC;AAEhF,qGAAqG;AACrG,eAAO,MAAM,KAAK;;;;;;;;;;;;;;IAchB,8EAA8E;;;;;IAK9E,2DAA2D;;CAEnD,CAAC;AAEX,oHAAoH;AACpH,eAAO,MAAM,cAAc;;;;;;CAAgG,CAAC;AAE5H,4GAA4G;AAC5G,eAAO,MAAM,YAAY;;;;CAA4F,CAAC;AAEtH,wDAAwD;AACxD,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,cAAc,mGAAoG,CAAC;AAEhI;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8FAA8F;IAC9F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAG/D,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/C,0GAA0G;AAC1G,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAK7D,CAAC;AAQF,sFAAsF;AACtF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBP,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,IAAI,CAAC;AAE1C,eAAO,MAAM,KAAK;;;;;;;;;;CAUR,CAAC;AAEX,uBAAuB;AACvB,eAAO,MAAM,KAAK;;;;;;;;;CAAqE,CAAC;AAExF,eAAO,MAAM,KAAK;;;;;;;;;CASR,CAAC;AAEX,oEAAoE;AACpE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBZ,CAAC;AAWX,eAAO,MAAM,OAAO;;;;;;CAA0E,CAAC;AAE/F,sDAAsD;AACtD,eAAO,MAAM,UAAU;;;;;CAA+D,CAAC"}
@@ -0,0 +1,21 @@
1
+ /** A device the call asks the OS for. */
2
+ export type Permission = "microphone" | "camera";
3
+ export type CallEventToasts = {
4
+ /** Call before the person turns their own microphone off, so it isn't reported as a host mute. */
5
+ readonly noteOwnMicrophoneChange: () => void;
6
+ /** Says why turning on the microphone or camera failed, with the way forward (F1, K1, K2). */
7
+ readonly reportMediaFailure: (permission: Permission, cause: unknown, retry: () => void) => void;
8
+ };
9
+ export type CallEventToastsOptions = {
10
+ /** Called just before Open Settings leaves the app, so the app can rejoin after iOS restarts it. */
11
+ readonly onOpenSettings?: (permission: Permission) => void;
12
+ /** The app restarted after the person allowed this in Settings; says so once the call is live. */
13
+ readonly resumedAfterSettings?: Permission;
14
+ };
15
+ /**
16
+ * Turns call events into notices and sounds through the one toast stack: people joining and
17
+ * leaving (F5, F6), a host muting you (F8), requests to unmute (F3), a new host (F10), a share
18
+ * ending (F11), recording starting and stopping, and failed microphone or camera changes.
19
+ */
20
+ export declare function useCallEventToasts({ onOpenSettings, resumedAfterSettings }: CallEventToastsOptions): CallEventToasts;
21
+ //# sourceMappingURL=CallEventToasts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallEventToasts.d.ts","sourceRoot":"","sources":["../../src/toasts/CallEventToasts.tsx"],"names":[],"mappings":"AAcA,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,CAAC;AAIjD,MAAM,MAAM,eAAe,GAAG;IAC5B,kGAAkG;IAClG,QAAQ,CAAC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IAC7C,8FAA8F;IAC9F,QAAQ,CAAC,kBAAkB,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CAClG,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,oGAAoG;IACpG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3D,kGAAkG;IAClG,QAAQ,CAAC,oBAAoB,CAAC,EAAE,UAAU,CAAC;CAC5C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,EAAE,sBAAsB,GAAG,eAAe,CAuFpH"}
@@ -0,0 +1,34 @@
1
+ import type { IncomingMediaRequest, SpaceSnapshot } from "@q9labsai/chalk-client";
2
+ /** A call event worth a notice, read from the difference between two snapshots. */
3
+ export type Notice = {
4
+ readonly kind: "joined";
5
+ readonly name: string;
6
+ } | {
7
+ readonly kind: "left";
8
+ readonly name: string;
9
+ } | {
10
+ readonly kind: "mutedByHost";
11
+ readonly by: string | null;
12
+ } | {
13
+ readonly kind: "mediaRequest";
14
+ readonly request: IncomingMediaRequest;
15
+ } | {
16
+ readonly kind: "newHost";
17
+ readonly previousHost: string;
18
+ } | {
19
+ readonly kind: "shareStopped";
20
+ readonly name: string;
21
+ } | {
22
+ readonly kind: "recordingStarted";
23
+ } | {
24
+ readonly kind: "recordingStopped";
25
+ };
26
+ /**
27
+ * Notices for what changed between `previous` and `next`. Only changes inside a live call count,
28
+ * so the roster arriving on join or emptying on leave says nothing. `ownMicrophoneChange` is true
29
+ * when the person turned their own microphone off since the last snapshot.
30
+ */
31
+ export declare function callNotices(previous: SpaceSnapshot, next: SpaceSnapshot, ownMicrophoneChange: boolean): readonly Notice[];
32
+ /** The mockup names people by their first name in notices that ask something of you. */
33
+ export declare function firstName(name: string): string;
34
+ //# sourceMappingURL=notices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notices.d.ts","sourceRoot":"","sources":["../../src/toasts/notices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAe,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE/F,mFAAmF;AACnF,MAAM,MAAM,MAAM,GACd;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACzE;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GACrC;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CAkCzH;AAMD,wFAAwF;AACxF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ColorScheme } from "../theme/tokens";
3
+ export type ChalkUIProps = {
4
+ readonly colorScheme: ColorScheme;
5
+ readonly children: ReactNode;
6
+ };
7
+ /**
8
+ * Everything the call's primitives need, for the screens an app draws around `Chalk` (its Home, for
9
+ * example): theme, safe areas, sheets, menus and toasts. Sheets and menus open above `children`.
10
+ */
11
+ export declare function ChalkUI({ colorScheme, children }: ChalkUIProps): React.JSX.Element;
12
+ //# sourceMappingURL=ChalkUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChalkUI.d.ts","sourceRoot":"","sources":["../../src/ui/ChalkUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyBlF"}
package/dist/ui.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ /** The call's look, for the screens an app draws around `Chalk`: Home, joining and the name step. */
2
+ export { ChalkUI } from "./ui/ChalkUI";
3
+ export type { ChalkUIProps } from "./ui/ChalkUI";
4
+ export { useTheme } from "./theme/theme";
5
+ export type { Theme } from "./theme/theme";
6
+ export { fixed, fontFamilies, radii, type } from "./theme/tokens";
7
+ export type { ColorScheme, Palette } from "./theme/tokens";
8
+ export { useDeviceLayout } from "./frame/device-layout";
9
+ export { Icon } from "./icons/Icon";
10
+ export type { IconName } from "./icons/Icon";
11
+ export { ChalkText } from "./primitives/ChalkText";
12
+ export { IconButton } from "./primitives/IconButton";
13
+ export { PillButton } from "./primitives/PillButton";
14
+ export { BottomSheet } from "./primitives/BottomSheet";
15
+ export { SheetGroup, SheetRow } from "./primitives/SheetGroup";
16
+ export { Menu, MenuItem } from "./primitives/Menu";
17
+ export { Switch } from "./primitives/Switch";
18
+ export { SegmentedControl } from "./primitives/SegmentedControl";
19
+ export { CopyButton } from "./primitives/CopyButton";
20
+ export { FaceAvatar } from "./avatar/FaceAvatar";
21
+ export { useToastClearance, useToasts } from "./primitives/toast/ToastStack";
22
+ export { announce } from "./primitives/announce";
23
+ export { usePressAnimation } from "./motion/press";
24
+ export { Limbo } from "./limbo/Limbo";
25
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC"}
package/dist/ui.js ADDED
@@ -0,0 +1,77 @@
1
+ import {
2
+ BottomSheet,
3
+ ChalkText,
4
+ CopyButton,
5
+ DeviceLayoutProvider,
6
+ FaceAvatar,
7
+ Icon,
8
+ IconButton,
9
+ Limbo,
10
+ Menu,
11
+ MenuItem,
12
+ PillButton,
13
+ PortalHost,
14
+ PortalProvider,
15
+ SegmentedControl,
16
+ SheetGroup,
17
+ SheetRow,
18
+ Switch,
19
+ ThemeProvider,
20
+ ToastProvider,
21
+ ToastStack,
22
+ announce,
23
+ fixed,
24
+ fontFamilies,
25
+ radii,
26
+ type,
27
+ useDeviceLayout,
28
+ usePressAnimation,
29
+ useTheme,
30
+ useToastClearance,
31
+ useToasts
32
+ } from "./chunk-OIBT2FNM.js";
33
+ import "./chunk-GYVZSOGQ.js";
34
+
35
+ // src/ui/ChalkUI.tsx
36
+ import { StyleSheet, View } from "react-native";
37
+ import { GestureHandlerRootView } from "react-native-gesture-handler";
38
+ import { SafeAreaProvider } from "react-native-safe-area-context";
39
+ import { jsx, jsxs } from "react/jsx-runtime";
40
+ function ChalkUI({ colorScheme, children }) {
41
+ return /* @__PURE__ */ jsx(GestureHandlerRootView, { style: styles.root, children: /* @__PURE__ */ jsx(SafeAreaProvider, { children: /* @__PURE__ */ jsx(ThemeProvider, { colorScheme, children: /* @__PURE__ */ jsx(DeviceLayoutProvider, { children: /* @__PURE__ */ jsx(PortalProvider, { children: /* @__PURE__ */ jsx(ToastProvider, { children: /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
42
+ children,
43
+ /* @__PURE__ */ jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: /* @__PURE__ */ jsx(PortalHost, { layer: "sheets" }) }),
44
+ /* @__PURE__ */ jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: /* @__PURE__ */ jsx(PortalHost, { layer: "menus" }) }),
45
+ /* @__PURE__ */ jsx(ToastStack, {})
46
+ ] }) }) }) }) }) }) });
47
+ }
48
+ var styles = StyleSheet.create({
49
+ root: { flex: 1 }
50
+ });
51
+ export {
52
+ BottomSheet,
53
+ ChalkText,
54
+ ChalkUI,
55
+ CopyButton,
56
+ FaceAvatar,
57
+ Icon,
58
+ IconButton,
59
+ Limbo,
60
+ Menu,
61
+ MenuItem,
62
+ PillButton,
63
+ SegmentedControl,
64
+ SheetGroup,
65
+ SheetRow,
66
+ Switch,
67
+ announce,
68
+ fixed,
69
+ fontFamilies,
70
+ radii,
71
+ type,
72
+ useDeviceLayout,
73
+ usePressAnimation,
74
+ useTheme,
75
+ useToastClearance,
76
+ useToasts
77
+ };
Binary file
@@ -1216,8 +1216,8 @@
1216
1216
  },
1217
1217
  {
1218
1218
  "path": "renderer.js",
1219
- "bytes": 8504846,
1220
- "sha256": "20644a73c951091c36858684c83bd579c6894f986bf461cf21289f0ccef4ea59"
1219
+ "bytes": 8497928,
1220
+ "sha256": "7f754073f20cee4b3adceb40731faf75d94849f6ce01a0b2e30fdad10867a5d9"
1221
1221
  },
1222
1222
  {
1223
1223
  "path": "THIRD_PARTY_NOTICES.json",