@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-alpha.0

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 (376) hide show
  1. package/.claude-flow/data/pending-insights.jsonl +43 -0
  2. package/.claude-flow/sessions/session-1794323376548.json +14 -0
  3. package/CHANGELOG.md +31 -0
  4. package/jest.config.cjs +22 -0
  5. package/lib/assets/home/loop-day.jpg +0 -0
  6. package/lib/assets/home/loop-day.mp4 +0 -0
  7. package/lib/assets/home/loop-time-back.jpg +0 -0
  8. package/lib/assets/home/loop-time-back.mp4 +0 -0
  9. package/lib/assets/home/loop-where.jpg +0 -0
  10. package/lib/assets/home/loop-where.mp4 +0 -0
  11. package/lib/assets/home/reel-gym.jpg +0 -0
  12. package/lib/assets/home/reel-gym.mp4 +0 -0
  13. package/lib/assets/home/reel-internet.jpg +0 -0
  14. package/lib/assets/home/reel-internet.mp4 +0 -0
  15. package/lib/assets/icon.png +0 -0
  16. package/lib/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  17. package/lib/assets/lottie/lucy-mark-calendar.json +1827 -0
  18. package/lib/assets/lottie/lucy-mark-call.json +1470 -0
  19. package/lib/assets/lottie/lucy-mark-connect.json +2552 -0
  20. package/lib/assets/lottie/lucy-mark-details.json +1735 -0
  21. package/lib/assets/lottie/lucy-mark-email.json +1363 -0
  22. package/lib/assets/lottie/lucy-mark-message.json +1154 -0
  23. package/lib/assets/lottie/lucy-mark-search.json +1067 -0
  24. package/lib/assets/lottie/lucy-mark-think.json +1253 -0
  25. package/lib/assets/lottie/lucy-mark-write.json +1532 -0
  26. package/lib/assets/lottie/time-back.json +16458 -0
  27. package/lib/assets/lottie/where-lucy-works-chat.json +6170 -0
  28. package/lib/assets/lottie/where-lucy-works-cloud.json +10066 -0
  29. package/lib/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  30. package/lib/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  31. package/lib/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  32. package/lib/assets/sounds/hours-back.m4a +0 -0
  33. package/lib/assets/sounds/meet-lucy.m4a +0 -0
  34. package/lib/assets/sounds/power-on.m4a +0 -0
  35. package/lib/assets/sounds/wind-back.m4a +0 -0
  36. package/lib/assets/sounds/youre-in.m4a +0 -0
  37. package/lib/chat/agent.js +358 -0
  38. package/lib/chat/agent.js.map +1 -0
  39. package/lib/chat/appFront.js +32 -0
  40. package/lib/chat/appFront.js.map +1 -0
  41. package/lib/chat/auth.js +370 -0
  42. package/lib/chat/auth.js.map +1 -0
  43. package/lib/chat/chores.js +360 -0
  44. package/lib/chat/chores.js.map +1 -0
  45. package/lib/chat/connectors.js +42 -0
  46. package/lib/chat/connectors.js.map +1 -0
  47. package/lib/chat/jobs.js +223 -0
  48. package/lib/chat/jobs.js.map +1 -0
  49. package/lib/chat/lucyMotion.js +6 -0
  50. package/lib/chat/lucyMotion.js.map +1 -0
  51. package/lib/chat/protocol.js +111 -0
  52. package/lib/chat/protocol.js.map +1 -0
  53. package/lib/chat/results.js +133 -0
  54. package/lib/chat/results.js.map +1 -0
  55. package/lib/chat/store.js +81 -0
  56. package/lib/chat/store.js.map +1 -0
  57. package/lib/chat/useDictation.js +168 -0
  58. package/lib/chat/useDictation.js.map +1 -0
  59. package/lib/chat/useLucyChat.js +451 -0
  60. package/lib/chat/useLucyChat.js.map +1 -0
  61. package/lib/chat/useMyComputer.js +32 -0
  62. package/lib/chat/useMyComputer.js.map +1 -0
  63. package/lib/chat/whereLucyWorks.js +52 -0
  64. package/lib/chat/whereLucyWorks.js.map +1 -0
  65. package/lib/chat/workspace.js +124 -0
  66. package/lib/chat/workspace.js.map +1 -0
  67. package/lib/components/AreaShot.js +289 -0
  68. package/lib/components/AreaShot.js.map +1 -0
  69. package/lib/components/Backdrops.js +262 -0
  70. package/lib/components/Backdrops.js.map +1 -0
  71. package/lib/components/BottomSheet.js +61 -0
  72. package/lib/components/BottomSheet.js.map +1 -0
  73. package/lib/components/ChatSheets.js +429 -0
  74. package/lib/components/ChatSheets.js.map +1 -0
  75. package/lib/components/ConnectorLogo.js +91 -0
  76. package/lib/components/ConnectorLogo.js.map +1 -0
  77. package/lib/components/CustomDrawer.js +534 -0
  78. package/lib/components/CustomDrawer.js.map +1 -0
  79. package/lib/components/IdeasPane.js +394 -0
  80. package/lib/components/IdeasPane.js.map +1 -0
  81. package/lib/components/ImessageSheet.js +261 -0
  82. package/lib/components/ImessageSheet.js.map +1 -0
  83. package/lib/components/KeyboardAvoider.js +29 -0
  84. package/lib/components/KeyboardAvoider.js.map +1 -0
  85. package/lib/components/Logo.js +81 -0
  86. package/lib/components/Logo.js.map +1 -0
  87. package/lib/components/LucyWorking.js +67 -0
  88. package/lib/components/LucyWorking.js.map +1 -0
  89. package/lib/components/Markdown.js +260 -0
  90. package/lib/components/Markdown.js.map +1 -0
  91. package/lib/components/Media.js +93 -0
  92. package/lib/components/Media.js.map +1 -0
  93. package/lib/components/MessagesAppIcon.js +23 -0
  94. package/lib/components/MessagesAppIcon.js.map +1 -0
  95. package/lib/components/MicButton.js +71 -0
  96. package/lib/components/MicButton.js.map +1 -0
  97. package/lib/components/ResultCards.js +974 -0
  98. package/lib/components/ResultCards.js.map +1 -0
  99. package/lib/components/SignInPrompt.js +148 -0
  100. package/lib/components/SignInPrompt.js.map +1 -0
  101. package/lib/components/SignedOut.js +38 -0
  102. package/lib/components/SignedOut.js.map +1 -0
  103. package/lib/components/TalkToLucyHero.js +487 -0
  104. package/lib/components/TalkToLucyHero.js.map +1 -0
  105. package/lib/components/TalkToLucySheet.js +182 -0
  106. package/lib/components/TalkToLucySheet.js.map +1 -0
  107. package/lib/components/WhereLucyWorks.js +277 -0
  108. package/lib/components/WhereLucyWorks.js.map +1 -0
  109. package/lib/components/WorkspaceSection.js +271 -0
  110. package/lib/components/WorkspaceSection.js.map +1 -0
  111. package/lib/components/YantraMark.js +13 -0
  112. package/lib/components/YantraMark.js.map +1 -0
  113. package/lib/components/drawerHeader.js +38 -0
  114. package/lib/components/drawerHeader.js.map +1 -0
  115. package/lib/components/lottieInstalled.js +6 -0
  116. package/lib/components/lottieInstalled.js.map +1 -0
  117. package/lib/components/ui.js +550 -0
  118. package/lib/components/ui.js.map +1 -0
  119. package/lib/components/useSignOut.js +7 -0
  120. package/lib/components/useSignOut.js.map +1 -0
  121. package/lib/components/viewport.js +121 -0
  122. package/lib/components/viewport.js.map +1 -0
  123. package/lib/components/voiceDial.js +10 -0
  124. package/lib/components/voiceDial.js.map +1 -0
  125. package/lib/compute.js +157 -0
  126. package/lib/compute.js.map +1 -0
  127. package/lib/config/env-config.js +21 -0
  128. package/lib/config/env-config.js.map +1 -0
  129. package/lib/config/routes.js +15 -0
  130. package/lib/config/routes.js.map +1 -0
  131. package/lib/content.js +25 -0
  132. package/lib/content.js.map +1 -0
  133. package/lib/hooks/keyboardCover.js +39 -0
  134. package/lib/hooks/keyboardCover.js.map +1 -0
  135. package/lib/hooks/useKeyboard.js +121 -0
  136. package/lib/hooks/useKeyboard.js.map +1 -0
  137. package/lib/hooks/useReducedMotion.js +13 -0
  138. package/lib/hooks/useReducedMotion.js.map +1 -0
  139. package/lib/imessage/openMessages.js +25 -0
  140. package/lib/imessage/openMessages.js.map +1 -0
  141. package/lib/imessage/platform.js +12 -0
  142. package/lib/imessage/platform.js.map +1 -0
  143. package/lib/imessage/textLink.js +262 -0
  144. package/lib/imessage/textLink.js.map +1 -0
  145. package/lib/index.js +1 -0
  146. package/lib/index.js.map +1 -0
  147. package/lib/live/card.js +28 -0
  148. package/lib/live/card.js.map +1 -0
  149. package/lib/live/liveActivity.js +144 -0
  150. package/lib/live/liveActivity.js.map +1 -0
  151. package/lib/module.js +3 -0
  152. package/lib/module.js.map +1 -0
  153. package/lib/offer/BlackFridayOffer.js +378 -0
  154. package/lib/offer/BlackFridayOffer.js.map +1 -0
  155. package/lib/offer/blackFriday.js +78 -0
  156. package/lib/offer/blackFriday.js.map +1 -0
  157. package/lib/offer/parts.js +624 -0
  158. package/lib/offer/parts.js.map +1 -0
  159. package/lib/offer/state.js +63 -0
  160. package/lib/offer/state.js.map +1 -0
  161. package/lib/push/push.js +142 -0
  162. package/lib/push/push.js.map +1 -0
  163. package/lib/push/usePushNotifications.js +39 -0
  164. package/lib/push/usePushNotifications.js.map +1 -0
  165. package/lib/routes.json +175 -0
  166. package/lib/screens/Account/index.js +209 -0
  167. package/lib/screens/Account/index.js.map +1 -0
  168. package/lib/screens/Chat/index.js +710 -0
  169. package/lib/screens/Chat/index.js.map +1 -0
  170. package/lib/screens/Chores/index.js +18 -0
  171. package/lib/screens/Chores/index.js.map +1 -0
  172. package/lib/screens/Connectors/index.js +17 -0
  173. package/lib/screens/Connectors/index.js.map +1 -0
  174. package/lib/screens/History/index.js +380 -0
  175. package/lib/screens/History/index.js.map +1 -0
  176. package/lib/screens/Home/index.js +2711 -0
  177. package/lib/screens/Home/index.js.map +1 -0
  178. package/lib/screens/Home/media.js +25 -0
  179. package/lib/screens/Home/media.js.map +1 -0
  180. package/lib/screens/Welcome/index.js +1066 -0
  181. package/lib/screens/Welcome/index.js.map +1 -0
  182. package/lib/talk/talkToLucy.js +139 -0
  183. package/lib/talk/talkToLucy.js.map +1 -0
  184. package/lib/theme/colors.js +29 -0
  185. package/lib/theme/colors.js.map +1 -0
  186. package/lib/theme/fonts.js +17 -0
  187. package/lib/theme/fonts.js.map +1 -0
  188. package/lib/theme/muse.js +134 -0
  189. package/lib/theme/muse.js.map +1 -0
  190. package/lib/utils/links.js +54 -0
  191. package/lib/utils/links.js.map +1 -0
  192. package/lib/utils/yantraLinks.js +68 -0
  193. package/lib/utils/yantraLinks.js.map +1 -0
  194. package/lib/welcome/flow.js +375 -0
  195. package/lib/welcome/flow.js.map +1 -0
  196. package/lib/welcome/haptics.js +125 -0
  197. package/lib/welcome/haptics.js.map +1 -0
  198. package/lib/welcome/parts.js +1996 -0
  199. package/lib/welcome/parts.js.map +1 -0
  200. package/lib/welcome/powerOn.js +29 -0
  201. package/lib/welcome/powerOn.js.map +1 -0
  202. package/lib/welcome/seen.js +41 -0
  203. package/lib/welcome/seen.js.map +1 -0
  204. package/lib/welcome/sound.js +110 -0
  205. package/lib/welcome/sound.js.map +1 -0
  206. package/package.json +66 -5
  207. package/rollup.config.mjs +42 -0
  208. package/src/.claude-flow/data/pending-insights.jsonl +19 -0
  209. package/src/.claude-flow/sessions/session-1795013028422.json +14 -0
  210. package/src/__tests__/auth.test.ts +94 -0
  211. package/src/__tests__/blackFriday.test.ts +75 -0
  212. package/src/__tests__/cardTokens.test.ts +77 -0
  213. package/src/__tests__/chores.test.ts +179 -0
  214. package/src/__tests__/choresList.test.ts +100 -0
  215. package/src/__tests__/content.test.ts +54 -0
  216. package/src/__tests__/dictation.test.ts +186 -0
  217. package/src/__tests__/haptics.test.ts +202 -0
  218. package/src/__tests__/jobs.test.ts +130 -0
  219. package/src/__tests__/keyboardCover.test.ts +84 -0
  220. package/src/__tests__/liveCard.test.ts +39 -0
  221. package/src/__tests__/lockedPhone.test.ts +355 -0
  222. package/src/__tests__/lucyMotion.test.ts +34 -0
  223. package/src/__tests__/platform.test.ts +32 -0
  224. package/src/__tests__/powerOn.test.ts +62 -0
  225. package/src/__tests__/protocol.test.ts +125 -0
  226. package/src/__tests__/push.test.ts +111 -0
  227. package/src/__tests__/results.test.ts +256 -0
  228. package/src/__tests__/sound.test.ts +248 -0
  229. package/src/__tests__/talkToLucy.test.ts +205 -0
  230. package/src/__tests__/textLink.test.ts +91 -0
  231. package/src/__tests__/voiceDial.test.ts +53 -0
  232. package/src/__tests__/welcomeFlow.test.ts +157 -0
  233. package/src/__tests__/whereLucyWorks.test.ts +81 -0
  234. package/src/__tests__/yantraLinks.test.ts +96 -0
  235. package/src/assets/home/loop-day.jpg +0 -0
  236. package/src/assets/home/loop-day.mp4 +0 -0
  237. package/src/assets/home/loop-time-back.jpg +0 -0
  238. package/src/assets/home/loop-time-back.mp4 +0 -0
  239. package/src/assets/home/loop-where.jpg +0 -0
  240. package/src/assets/home/loop-where.mp4 +0 -0
  241. package/src/assets/home/reel-gym.jpg +0 -0
  242. package/src/assets/home/reel-gym.mp4 +0 -0
  243. package/src/assets/home/reel-internet.jpg +0 -0
  244. package/src/assets/home/reel-internet.mp4 +0 -0
  245. package/src/assets/icon.png +0 -0
  246. package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  247. package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
  248. package/src/assets/lottie/lucy-mark-call.json +1470 -0
  249. package/src/assets/lottie/lucy-mark-connect.json +2552 -0
  250. package/src/assets/lottie/lucy-mark-details.json +1735 -0
  251. package/src/assets/lottie/lucy-mark-email.json +1363 -0
  252. package/src/assets/lottie/lucy-mark-message.json +1154 -0
  253. package/src/assets/lottie/lucy-mark-search.json +1067 -0
  254. package/src/assets/lottie/lucy-mark-think.json +1253 -0
  255. package/src/assets/lottie/lucy-mark-write.json +1532 -0
  256. package/src/assets/lottie/time-back.json +16458 -0
  257. package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
  258. package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
  259. package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  260. package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  261. package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  262. package/src/assets/sounds/hours-back.m4a +0 -0
  263. package/src/assets/sounds/meet-lucy.m4a +0 -0
  264. package/src/assets/sounds/power-on.m4a +0 -0
  265. package/src/assets/sounds/wind-back.m4a +0 -0
  266. package/src/assets/sounds/youre-in.m4a +0 -0
  267. package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
  268. package/src/chat/agent.ts +376 -0
  269. package/src/chat/appFront.ts +39 -0
  270. package/src/chat/auth.ts +433 -0
  271. package/src/chat/chores.ts +394 -0
  272. package/src/chat/connectors.ts +65 -0
  273. package/src/chat/jobs.ts +228 -0
  274. package/src/chat/lucyMotion.ts +33 -0
  275. package/src/chat/protocol.ts +192 -0
  276. package/src/chat/results.ts +224 -0
  277. package/src/chat/store.ts +87 -0
  278. package/src/chat/useDictation.ts +201 -0
  279. package/src/chat/useLucyChat.ts +458 -0
  280. package/src/chat/useMyComputer.ts +41 -0
  281. package/src/chat/whereLucyWorks.ts +97 -0
  282. package/src/chat/workspace.ts +127 -0
  283. package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
  284. package/src/components/AreaShot.tsx +239 -0
  285. package/src/components/Backdrops.tsx +323 -0
  286. package/src/components/BottomSheet.tsx +96 -0
  287. package/src/components/ChatSheets.tsx +565 -0
  288. package/src/components/ConnectorLogo.tsx +116 -0
  289. package/src/components/CustomDrawer.tsx +526 -0
  290. package/src/components/IdeasPane.tsx +318 -0
  291. package/src/components/ImessageSheet.tsx +280 -0
  292. package/src/components/KeyboardAvoider.tsx +45 -0
  293. package/src/components/Logo.tsx +97 -0
  294. package/src/components/LucyWorking.tsx +122 -0
  295. package/src/components/Markdown.tsx +219 -0
  296. package/src/components/Media.tsx +173 -0
  297. package/src/components/MessagesAppIcon.tsx +51 -0
  298. package/src/components/MicButton.tsx +92 -0
  299. package/src/components/ResultCards.tsx +1067 -0
  300. package/src/components/SignInPrompt.tsx +182 -0
  301. package/src/components/SignedOut.tsx +47 -0
  302. package/src/components/TalkToLucyHero.tsx +540 -0
  303. package/src/components/TalkToLucySheet.tsx +208 -0
  304. package/src/components/VoiceOrb.tsx +364 -0
  305. package/src/components/WhereLucyWorks.tsx +261 -0
  306. package/src/components/WorkspaceSection.tsx +307 -0
  307. package/src/components/YantraMark.tsx +30 -0
  308. package/src/components/drawerHeader.tsx +46 -0
  309. package/src/components/kit.tsx +309 -0
  310. package/src/components/lottieInstalled.ts +7 -0
  311. package/src/components/ui.tsx +700 -0
  312. package/src/components/useSignOut.ts +21 -0
  313. package/src/components/viewport.tsx +166 -0
  314. package/src/components/voiceDial.ts +45 -0
  315. package/src/compute.ts +168 -0
  316. package/src/config/env-config.ts +37 -0
  317. package/src/config/routes.ts +28 -0
  318. package/src/content.ts +217 -0
  319. package/src/hooks/keyboardCover.ts +70 -0
  320. package/src/hooks/useKeyboard.ts +135 -0
  321. package/src/hooks/useReducedMotion.ts +19 -0
  322. package/src/imessage/openMessages.ts +53 -0
  323. package/src/imessage/platform.ts +32 -0
  324. package/src/imessage/textLink.ts +307 -0
  325. package/src/index.ts +24 -0
  326. package/src/live/card.ts +62 -0
  327. package/src/live/liveActivity.ts +192 -0
  328. package/src/module.ts +8 -0
  329. package/src/offer/BlackFridayOffer.tsx +394 -0
  330. package/src/offer/blackFriday.ts +109 -0
  331. package/src/offer/parts.tsx +650 -0
  332. package/src/offer/state.ts +78 -0
  333. package/src/push/push.ts +171 -0
  334. package/src/push/usePushNotifications.ts +47 -0
  335. package/src/screens/Account/index.tsx +310 -0
  336. package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
  337. package/src/screens/Chat/index.tsx +891 -0
  338. package/src/screens/Chores/index.tsx +35 -0
  339. package/src/screens/Connectors/index.tsx +35 -0
  340. package/src/screens/History/index.tsx +346 -0
  341. package/src/screens/Home/index.tsx +2773 -0
  342. package/src/screens/Home/media.ts +31 -0
  343. package/src/screens/Welcome/index.tsx +1182 -0
  344. package/src/talk/talkToLucy.ts +187 -0
  345. package/src/theme/colors.ts +38 -0
  346. package/src/theme/fonts.ts +30 -0
  347. package/src/theme/muse.ts +86 -0
  348. package/src/utils/links.ts +84 -0
  349. package/src/utils/yantraLinks.ts +94 -0
  350. package/src/welcome/flow.ts +418 -0
  351. package/src/welcome/haptics.ts +179 -0
  352. package/src/welcome/parts.tsx +2160 -0
  353. package/src/welcome/powerOn.ts +84 -0
  354. package/src/welcome/seen.ts +68 -0
  355. package/src/welcome/sound.ts +173 -0
  356. package/tools/lottie/chat.motion +0 -0
  357. package/tools/lottie/cloud.motion +0 -0
  358. package/tools/lottie/generate.mjs +1209 -0
  359. package/tools/lottie/inter-glyphs.json +4416 -0
  360. package/tools/lottie/lucy-mark-calendar.motion +0 -0
  361. package/tools/lottie/lucy-mark-call.motion +0 -0
  362. package/tools/lottie/lucy-mark-connect.motion +0 -0
  363. package/tools/lottie/lucy-mark-details.motion +0 -0
  364. package/tools/lottie/lucy-mark-email.motion +0 -0
  365. package/tools/lottie/lucy-mark-message.motion +0 -0
  366. package/tools/lottie/lucy-mark-search.motion +0 -0
  367. package/tools/lottie/lucy-mark-think.motion +0 -0
  368. package/tools/lottie/lucy-mark-write.motion +0 -0
  369. package/tools/lottie/mark.json +1 -0
  370. package/tools/lottie/mine-none.motion +0 -0
  371. package/tools/lottie/mine-offline.motion +0 -0
  372. package/tools/lottie/mine-online.motion +0 -0
  373. package/tools/lottie/time-back.mjs +604 -0
  374. package/tools/sounds/render.mjs +730 -0
  375. package/tsconfig.json +17 -0
  376. package/README.md +0 -3
@@ -0,0 +1,97 @@
1
+ /**
2
+ * The Clockbook mark (the brand artwork, 16 x 16), as the web Clockbook home draws it.
3
+ * `Mark` is the static logo. `AnimatedMark` is the "time back" loop: the minute hand rewinds one
4
+ * turn every 2.4 s; it holds still when the phone asks for reduced motion.
5
+ */
6
+ import React, { useEffect, useRef } from 'react';
7
+ import { Animated, Easing, View } from 'react-native';
8
+ import Svg, { G, Path } from 'react-native-svg';
9
+ import { useReducedMotion } from '../hooks/useReducedMotion';
10
+
11
+ const FACE =
12
+ 'M3.65431 2.48441C0.852759 4.57381 -1.0145 8.80565 0.59548 11.9202C2.54894 15.7078 8.94577 16.4915 12.679 13.568C15.692 11.2047 17.2099 6.23883 14.8294 3.0487C12.3249 -0.303215 6.84311 0.105248 3.65431 2.48441Z';
13
+ const BACK =
14
+ 'M2.6909 12.4321C4.83798 15.1892 9.10828 16.9676 12.1883 15.2973C15.9348 13.2649 16.5859 6.85417 13.5848 3.18198C11.1612 0.215315 6.16615 -1.19508 3.02576 1.24708C-0.275768 3.82054 0.246747 9.29302 2.6909 12.4321Z';
15
+ const HANDS =
16
+ 'M11.0318 12.4421C10.9331 12.4414 10.8376 12.4065 10.7617 12.3434C10.6858 12.2803 10.6341 12.1929 10.6154 12.0959C10.0796 9.31957 7.58042 8.7261 7.47433 8.70223C7.411 8.68796 7.35176 8.65947 7.30108 8.61891C7.2504 8.57836 7.20962 8.52679 7.18182 8.46814C7.15403 8.40948 7.13995 8.34526 7.14065 8.28036C7.14135 8.21545 7.15682 8.15155 7.18588 8.09351C8.09829 6.27665 7.19715 3.72309 7.18588 3.69723C7.14737 3.59083 7.1527 3.47349 7.2007 3.37102C7.2487 3.26856 7.33544 3.18935 7.44184 3.15084C7.54823 3.11233 7.66557 3.11766 7.76804 3.16566C7.8705 3.21366 7.94971 3.3004 7.98822 3.40679C8.02801 3.51687 8.89135 5.95107 8.14272 8.01925C9.05248 8.35941 10.9549 9.36598 11.4509 11.9315C11.4723 12.0426 11.4487 12.1577 11.3853 12.2514C11.3219 12.3452 11.2238 12.4099 11.1127 12.4314C11.0861 12.4374 11.059 12.4409 11.0318 12.4421Z';
17
+ const HOUR = 'M7.62 8.30 C 8.45 6.10 7.62 3.70 7.585 3.55';
18
+ const MINUTE = 'M7.62 8.30 C 8.35 8.55 10.55 9.35 11.03 12.02';
19
+
20
+ /** Where the hands meet, in the 16 x 16 artwork: the minute hand turns about this point. */
21
+ const PIVOT = { x: 7.62, y: 8.3 };
22
+ const TURN_MS = 2400;
23
+
24
+ /** The artwork's paths, for drawings built on the mark (the welcome's lit orb). */
25
+ export const MARK = { FACE, BACK, HANDS, HOUR, MINUTE, PIVOT } as const;
26
+
27
+ export function Mark({ size = 28 }: { size?: number }) {
28
+ return (
29
+ <Svg width={size} height={size} viewBox="0 0 16 16" accessibilityElementsHidden importantForAccessibility="no">
30
+ <Path opacity={0.25} fill="#FF5A00" d={BACK} />
31
+ <Path fill="#FF5A00" d={FACE} />
32
+ <Path fill="#fff" d={HANDS} />
33
+ </Svg>
34
+ );
35
+ }
36
+
37
+ /**
38
+ * The face with its hour hand, and the minute hand drawn on a second layer that rotates about
39
+ * the pivot (the layer is the same box as the face, so its centre transform is offset to the pivot).
40
+ */
41
+ export function AnimatedMark({ size = 72 }: { size?: number }) {
42
+ const reduced = useReducedMotion();
43
+ const turn = useRef(new Animated.Value(0)).current;
44
+
45
+ useEffect(() => {
46
+ if (reduced) {
47
+ turn.setValue(0);
48
+ return undefined;
49
+ }
50
+ const loop = Animated.loop(
51
+ Animated.timing(turn, {
52
+ toValue: 1,
53
+ duration: TURN_MS,
54
+ easing: Easing.inOut(Easing.cubic),
55
+ useNativeDriver: true,
56
+ }),
57
+ );
58
+ loop.start();
59
+ return () => loop.stop();
60
+ }, [reduced, turn]);
61
+
62
+ // viewBox -1..17 (18 units), as the web's animated mark.
63
+ const unit = size / 18;
64
+ const dx = (PIVOT.x + 1 - 9) * unit;
65
+ const dy = (PIVOT.y + 1 - 9) * unit;
66
+ const rotate = turn.interpolate({ inputRange: [0, 1], outputRange: ['0deg', '-360deg'] });
67
+
68
+ return (
69
+ <View style={{ width: size, height: size }} accessibilityElementsHidden importantForAccessibility="no">
70
+ <Svg width={size} height={size} viewBox="-1 -1 18 18" style={{ position: 'absolute' }}>
71
+ <Path opacity={0.25} fill="#FF5A00" d={BACK} />
72
+ <Path fill="#FF5A00" d={FACE} />
73
+ <G fill="none" stroke="#fff" strokeWidth={0.86} strokeLinecap="round">
74
+ <Path d={HOUR} />
75
+ </G>
76
+ </Svg>
77
+ <Animated.View
78
+ style={{
79
+ position: 'absolute',
80
+ width: size,
81
+ height: size,
82
+ transform: [
83
+ { translateX: dx },
84
+ { translateY: dy },
85
+ { rotate },
86
+ { translateX: -dx },
87
+ { translateY: -dy },
88
+ ],
89
+ }}
90
+ >
91
+ <Svg width={size} height={size} viewBox="-1 -1 18 18">
92
+ <Path d={MINUTE} fill="none" stroke="#fff" strokeWidth={0.86} strokeLinecap="round" />
93
+ </Svg>
94
+ </Animated.View>
95
+ </View>
96
+ );
97
+ }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * The Clockbook logo while Lucy is busy, in place of a spinner, with a different animation for each kind of work.
3
+ * It arrives once, then loops for as long as the work goes on; when she moves on, only what is inside the logo
4
+ * changes. Made with the Motion engine (tools/lottie/generate.mjs).
5
+ *
6
+ * With Reduce Motion it holds still, and on a binary without Lottie it draws the static logo.
7
+ */
8
+ import React, { useEffect, useRef, useState } from 'react';
9
+ import { Animated, Easing, StyleSheet, View } from 'react-native';
10
+ import LottieView, { type AnimationObject } from 'lottie-react-native';
11
+ import { Mark } from './Logo';
12
+ import { lottieInstalled } from './lottieInstalled';
13
+ import { motionFor, type LucyMotion } from '../chat/lucyMotion';
14
+ import { useReducedMotion } from '../hooks/useReducedMotion';
15
+ import { colors } from '../theme/colors';
16
+ import { fonts } from '../theme/fonts';
17
+
18
+ const MOTIONS: Record<LucyMotion, AnimationObject> = {
19
+ think: require('../assets/lottie/lucy-mark-think.json'),
20
+ write: require('../assets/lottie/lucy-mark-write.json'),
21
+ call: require('../assets/lottie/lucy-mark-call.json'),
22
+ calendar: require('../assets/lottie/lucy-mark-calendar.json'),
23
+ email: require('../assets/lottie/lucy-mark-email.json'),
24
+ search: require('../assets/lottie/lucy-mark-search.json'),
25
+ message: require('../assets/lottie/lucy-mark-message.json'),
26
+ details: require('../assets/lottie/lucy-mark-details.json'),
27
+ connect: require('../assets/lottie/lucy-mark-connect.json'),
28
+ };
29
+ /** Where the inside of the logo starts to arrive, the frame it loops from, and its last. */
30
+ const CONTENT_FRAME = 40;
31
+ const ARRIVED_FRAME = 80;
32
+ const LAST_FRAME = 224;
33
+ const WORDS_MS = 260;
34
+
35
+ export function LucyWorking({ size, motion }: { size: number; motion: LucyMotion }) {
36
+ const reduced = useReducedMotion();
37
+ const [hasLottie] = useState(lottieInstalled);
38
+ const [settled, setSettled] = useState<LucyMotion | null>(null);
39
+ const onScreen = useRef(false);
40
+ const player = useRef<LottieView>(null);
41
+ const looping = settled === motion;
42
+
43
+ useEffect(() => {
44
+ if (reduced) return;
45
+ if (looping) {
46
+ player.current?.play(ARRIVED_FRAME, LAST_FRAME);
47
+ return;
48
+ }
49
+ player.current?.play(onScreen.current ? CONTENT_FRAME : 0, ARRIVED_FRAME);
50
+ onScreen.current = true;
51
+ }, [motion, looping, reduced]);
52
+
53
+ if (!hasLottie) return <Mark size={size * (16 / 18)} />;
54
+ return (
55
+ <LottieView
56
+ ref={player}
57
+ source={MOTIONS[motion]}
58
+ loop={looping}
59
+ progress={reduced ? ARRIVED_FRAME / LAST_FRAME : undefined}
60
+ onAnimationFinish={(cancelled) => {
61
+ if (!cancelled) setSettled(motion);
62
+ }}
63
+ style={{ width: size, height: size }}
64
+ />
65
+ );
66
+ }
67
+
68
+ /**
69
+ * What Lucy is doing right now. The new words rise in as she moves on to the next step. `logo` is off while her
70
+ * avatar is the thing moving, so two logos never sit side by side.
71
+ */
72
+ export function LucyStatus({ words, logo }: { words: string; logo: boolean }) {
73
+ const reduced = useReducedMotion();
74
+ const arrive = useRef(new Animated.Value(1)).current;
75
+
76
+ useEffect(() => {
77
+ if (reduced) {
78
+ arrive.setValue(1);
79
+ return;
80
+ }
81
+ arrive.setValue(0);
82
+ Animated.timing(arrive, {
83
+ toValue: 1,
84
+ duration: WORDS_MS,
85
+ easing: Easing.out(Easing.cubic),
86
+ useNativeDriver: true,
87
+ }).start();
88
+ }, [words, reduced, arrive]);
89
+
90
+ return (
91
+ <View style={[s.row, !logo && s.rowWordsOnly]}>
92
+ {logo ? <LucyWorking size={24} motion={motionFor(words)} /> : null}
93
+ <Animated.Text
94
+ style={[
95
+ s.words,
96
+ {
97
+ opacity: arrive,
98
+ transform: [{ translateY: arrive.interpolate({ inputRange: [0, 1], outputRange: [5, 0] }) }],
99
+ },
100
+ ]}
101
+ >
102
+ {words}…
103
+ </Animated.Text>
104
+ </View>
105
+ );
106
+ }
107
+
108
+ const s = StyleSheet.create({
109
+ row: {
110
+ flexDirection: 'row',
111
+ alignItems: 'center',
112
+ gap: 6,
113
+ alignSelf: 'flex-start',
114
+ paddingVertical: 5,
115
+ paddingLeft: 8,
116
+ paddingRight: 12,
117
+ borderRadius: 999,
118
+ backgroundColor: colors.soft,
119
+ },
120
+ rowWordsOnly: { paddingVertical: 7, paddingLeft: 12 },
121
+ words: { fontFamily: fonts.sansMedium, fontSize: 13.5, color: colors.ink2 },
122
+ });
@@ -0,0 +1,219 @@
1
+ /**
2
+ * The Markdown Lucy writes, drawn natively: paragraphs, bullet and numbered lists, headings, **bold**, *italic*, `code`,
3
+ * [links](https://…) (opened in the in-app browser) and images on a line of their own. Anything else stays as text.
4
+ */
5
+ import React from 'react';
6
+ import { Image, Platform, ScrollView, StyleSheet, Text, View, type TextStyle } from 'react-native';
7
+ import { openYantraUrl } from '../utils/yantraLinks';
8
+ import { ui } from '../theme/muse';
9
+
10
+ // No lookbehind (not every Hermes has it); `_x_` is left alone so snake_case survives.
11
+ const INLINE =
12
+ /(\*\*[^*\n]+\*\*|`[^`\n]+`|\[[^\]]+\]\((?:https?:\/\/|mailto:|tel:)[^)\s]+\)|\*[^*\s\n][^*\n]*\*|https?:\/\/[^\s)]+)/g;
13
+
14
+ function Inline({ text, style }: { text: string; style?: TextStyle }) {
15
+ const parts = text.split(INLINE).filter((p) => p !== '');
16
+ return (
17
+ <Text style={style}>
18
+ {parts.map((p, i) => {
19
+ const key = `${i}`;
20
+ if (p.startsWith('**'))
21
+ return (
22
+ <Text key={key} style={md.bold}>
23
+ {p.slice(2, -2)}
24
+ </Text>
25
+ );
26
+ if (p.startsWith('`'))
27
+ return (
28
+ <Text key={key} style={md.code}>
29
+ {p.slice(1, -1)}
30
+ </Text>
31
+ );
32
+ const link = /^\[([^\]]+)\]\(([^)]+)\)$/.exec(p);
33
+ if (link) {
34
+ return (
35
+ <Text key={key} style={md.link} onPress={() => openYantraUrl(link[2])} accessibilityRole="link">
36
+ {link[1]}
37
+ </Text>
38
+ );
39
+ }
40
+ if (/^https?:\/\//.test(p)) {
41
+ return (
42
+ <Text key={key} style={md.link} onPress={() => openYantraUrl(p)} accessibilityRole="link">
43
+ {p.replace(/^https?:\/\/(www\.)?/, '')}
44
+ </Text>
45
+ );
46
+ }
47
+ if (/^\*.+\*$/.test(p))
48
+ return (
49
+ <Text key={key} style={md.italic}>
50
+ {p.slice(1, -1)}
51
+ </Text>
52
+ );
53
+ return p;
54
+ })}
55
+ </Text>
56
+ );
57
+ }
58
+
59
+ type Block =
60
+ | { kind: 'p'; text: string }
61
+ | { kind: 'h'; text: string }
62
+ | { kind: 'li'; marker: string; text: string }
63
+ | { kind: 'img'; url: string; caption: string }
64
+ | { kind: 'table'; head: string[]; rows: string[][] };
65
+
66
+ const isRow = (line: string) => /^\s*\|.*\|\s*$/.test(line);
67
+ const isRule = (line: string) => /^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/.test(line);
68
+ const cells = (line: string) =>
69
+ line
70
+ .trim()
71
+ .replace(/^\|/, '')
72
+ .replace(/\|$/, '')
73
+ .split('|')
74
+ .map((c) => c.trim());
75
+
76
+ function blocks(source: string): Block[] {
77
+ const out: Block[] = [];
78
+ let para: string[] = [];
79
+ const flush = () => {
80
+ if (para.length) out.push({ kind: 'p', text: para.join('\n') });
81
+ para = [];
82
+ };
83
+ const lines = source.split('\n');
84
+ for (let i = 0; i < lines.length; i++) {
85
+ const line = lines[i].trimEnd();
86
+ // A table: a header row, its |---| rule, then rows.
87
+ if (isRow(line) && i + 1 < lines.length && isRule(lines[i + 1])) {
88
+ flush();
89
+ const head = cells(line);
90
+ const rows: string[][] = [];
91
+ i += 2;
92
+ while (i < lines.length && isRow(lines[i])) rows.push(cells(lines[i++]));
93
+ i--;
94
+ out.push({ kind: 'table', head, rows });
95
+ continue;
96
+ }
97
+ const img = /^!\[([^\]]*)\]\((https:\/\/[^)\s]+)\)$/.exec(line.trim());
98
+ const h = /^#{1,4}\s+(.*)$/.exec(line);
99
+ const bullet = /^\s*[-*•]\s+(.*)$/.exec(line);
100
+ const num = /^\s*(\d+)[.)]\s+(.*)$/.exec(line);
101
+ if (!line.trim()) flush();
102
+ else if (img) {
103
+ flush();
104
+ out.push({ kind: 'img', url: img[2], caption: img[1] });
105
+ } else if (h) {
106
+ flush();
107
+ out.push({ kind: 'h', text: h[1] });
108
+ } else if (bullet) {
109
+ flush();
110
+ out.push({ kind: 'li', marker: '•', text: bullet[1] });
111
+ } else if (num) {
112
+ flush();
113
+ out.push({ kind: 'li', marker: `${num[1]}.`, text: num[2] });
114
+ } else para.push(line);
115
+ }
116
+ flush();
117
+ return out;
118
+ }
119
+
120
+ export function Markdown({ children, color }: { children: string; color?: string }) {
121
+ const tint = color ? { color } : null;
122
+ return (
123
+ <View style={md.root}>
124
+ {blocks(children).map((b, i) => {
125
+ const key = `${i}`;
126
+ if (b.kind === 'h') return <Inline key={key} text={b.text} style={{ ...md.h, ...tint }} />;
127
+ if (b.kind === 'li') {
128
+ return (
129
+ <View key={key} style={md.li}>
130
+ <Text style={[md.marker, tint]}>{b.marker}</Text>
131
+ <View style={{ flex: 1 }}>
132
+ <Inline text={b.text} style={{ ...md.p, ...tint }} />
133
+ </View>
134
+ </View>
135
+ );
136
+ }
137
+ if (b.kind === 'table') {
138
+ const n = Math.max(b.head.length, ...b.rows.map((r) => r.length));
139
+ const wide = n > 3;
140
+ const cell = wide ? md.cellWide : md.cell;
141
+ const grid = (
142
+ <View style={md.table}>
143
+ <View style={[md.tr, md.thead]}>
144
+ {Array.from({ length: n }, (_, c) => (
145
+ <View key={c} style={cell}>
146
+ <Inline text={b.head[c] ?? ''} style={{ ...md.th, ...tint }} />
147
+ </View>
148
+ ))}
149
+ </View>
150
+ {b.rows.map((r, ri) => (
151
+ <View key={ri} style={[md.tr, ri < b.rows.length - 1 && md.trRule]}>
152
+ {Array.from({ length: n }, (_, c) => (
153
+ <View key={c} style={cell}>
154
+ <Inline text={r[c] ?? ''} style={{ ...md.td, ...tint }} />
155
+ </View>
156
+ ))}
157
+ </View>
158
+ ))}
159
+ </View>
160
+ );
161
+ return wide ? (
162
+ <ScrollView key={key} horizontal showsHorizontalScrollIndicator={false}>
163
+ {grid}
164
+ </ScrollView>
165
+ ) : (
166
+ <View key={key}>{grid}</View>
167
+ );
168
+ }
169
+ if (b.kind === 'img') {
170
+ return (
171
+ <View key={key} style={{ gap: 4 }}>
172
+ <Image
173
+ source={{ uri: b.url }}
174
+ style={md.img}
175
+ resizeMode="cover"
176
+ accessibilityLabel={b.caption}
177
+ />
178
+ {b.caption ? <Text style={md.caption}>{b.caption}</Text> : null}
179
+ </View>
180
+ );
181
+ }
182
+ return <Inline key={key} text={b.text} style={{ ...md.p, ...tint }} />;
183
+ })}
184
+ </View>
185
+ );
186
+ }
187
+
188
+ const md = StyleSheet.create({
189
+ root: { gap: 8 },
190
+ // The system font, as the rest of the chat (theme/muse.ts).
191
+ p: { fontSize: 16, lineHeight: 23, color: ui.ink },
192
+ h: { fontSize: 17, lineHeight: 23, fontWeight: '600', color: ui.ink },
193
+ bold: { fontWeight: '600' },
194
+ italic: { fontStyle: 'italic' },
195
+ code: {
196
+ fontFamily: Platform.select({ ios: 'Menlo', default: 'monospace' }),
197
+ fontSize: 14,
198
+ backgroundColor: 'rgba(26,23,20,0.06)',
199
+ },
200
+ link: { color: ui.accentText, textDecorationLine: 'underline' },
201
+ li: { flexDirection: 'row', gap: 8, paddingLeft: 2 },
202
+ marker: { fontSize: 16, lineHeight: 23, fontWeight: '600', color: ui.accentText, minWidth: 14 },
203
+ img: { width: '100%', aspectRatio: 4 / 3, borderRadius: 14, backgroundColor: ui.fill },
204
+ caption: { fontSize: 12.5, color: ui.muted },
205
+ table: {
206
+ borderWidth: StyleSheet.hairlineWidth,
207
+ borderColor: ui.hairline,
208
+ borderRadius: 12,
209
+ overflow: 'hidden',
210
+ backgroundColor: ui.surface,
211
+ },
212
+ tr: { flexDirection: 'row' },
213
+ thead: { backgroundColor: ui.fill, borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: ui.hairline },
214
+ trRule: { borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: ui.hairline },
215
+ cell: { flex: 1, paddingHorizontal: 10, paddingVertical: 8 },
216
+ cellWide: { width: 130, paddingHorizontal: 10, paddingVertical: 8 },
217
+ th: { fontSize: 13.5, lineHeight: 18, fontWeight: '600', color: ui.ink },
218
+ td: { fontSize: 14, lineHeight: 19, color: ui.ink, fontVariant: ['tabular-nums'] },
219
+ });
@@ -0,0 +1,173 @@
1
+ /**
2
+ * The home's media, after clockbook-home's `Loop` and `Reel`: loops play silently on repeat (a still
3
+ * poster under Reduce Motion), a reel shows its poster until tapped, then plays with sound.
4
+ */
5
+ import React, { useRef, useState } from 'react';
6
+ import {
7
+ Image,
8
+ Pressable,
9
+ StyleSheet,
10
+ Text,
11
+ View,
12
+ type ImageSourcePropType,
13
+ type StyleProp,
14
+ type ViewStyle,
15
+ } from 'react-native';
16
+ import { Ionicons } from '@expo/vector-icons';
17
+ import { useVideoPlayer, VideoView } from 'expo-video';
18
+ import { useReducedMotion } from '../hooks/useReducedMotion';
19
+ import { useInView } from './viewport';
20
+ import { lift, radius, ui } from '../theme/muse';
21
+
22
+ type Source = number;
23
+
24
+ /**
25
+ * Android draws a video on a SurfaceView by default: a separate window that ignores its parent's rounded corners,
26
+ * opacity and transforms, so inside these rounded, revealed cards it tore into cyan and blue streaks. A TextureView
27
+ * composites like any other view. iOS ignores the prop.
28
+ */
29
+ const ANDROID_SURFACE = 'textureView' as const;
30
+
31
+ function LoopVideo({ src }: { src: Source }) {
32
+ const player = useVideoPlayer(src, (p) => {
33
+ p.loop = true;
34
+ p.muted = true;
35
+ p.play();
36
+ });
37
+ return (
38
+ <VideoView
39
+ player={player}
40
+ style={styles.fill}
41
+ contentFit="cover"
42
+ nativeControls={false}
43
+ surfaceType={ANDROID_SURFACE}
44
+ />
45
+ );
46
+ }
47
+
48
+ /** A silent animation that loops, in a rounded square card. */
49
+ export function Loop({
50
+ src,
51
+ poster,
52
+ label,
53
+ style,
54
+ }: {
55
+ src: Source;
56
+ poster: ImageSourcePropType;
57
+ label: string;
58
+ style?: StyleProp<ViewStyle>;
59
+ }) {
60
+ const reduced = useReducedMotion();
61
+ const ref = useRef<View>(null);
62
+ // A video player only while it is on screen: off screen the poster stands in and the decoder is let go
63
+ // (two loops decoding behind the page was most of Home's weight on Android).
64
+ const onScreen = useInView(ref, { enabled: !reduced, minFraction: 0.15 }) === true;
65
+ return (
66
+ <View
67
+ ref={ref}
68
+ collapsable={false}
69
+ style={[styles.mediaCard, style]}
70
+ accessible
71
+ accessibilityRole="image"
72
+ accessibilityLabel={label}
73
+ >
74
+ <Image source={poster} style={styles.fill} resizeMode="cover" />
75
+ {onScreen ? <LoopVideo src={src} /> : null}
76
+ </View>
77
+ );
78
+ }
79
+
80
+ function ReelVideo({ src }: { src: Source }) {
81
+ const player = useVideoPlayer(src, (p) => {
82
+ p.loop = false;
83
+ p.play();
84
+ });
85
+ return (
86
+ <VideoView
87
+ player={player}
88
+ style={styles.fill}
89
+ contentFit="cover"
90
+ nativeControls
91
+ allowsFullscreen
92
+ surfaceType={ANDROID_SURFACE}
93
+ />
94
+ );
95
+ }
96
+
97
+ export function Reel({
98
+ src,
99
+ poster,
100
+ title,
101
+ result,
102
+ label,
103
+ }: {
104
+ src: Source;
105
+ poster: ImageSourcePropType;
106
+ title: string;
107
+ result: string;
108
+ label: string;
109
+ }) {
110
+ const [playing, setPlaying] = useState(false);
111
+ return (
112
+ <View style={styles.reel}>
113
+ <View style={styles.reelFrame}>
114
+ {playing ? (
115
+ <ReelVideo src={src} />
116
+ ) : (
117
+ <Pressable
118
+ accessibilityRole="button"
119
+ accessibilityLabel={`Play: ${label}`}
120
+ onPress={() => setPlaying(true)}
121
+ style={styles.fill}
122
+ >
123
+ <Image source={poster} style={styles.fill} resizeMode="cover" />
124
+ <View style={styles.play}>
125
+ <Ionicons name="play" size={24} color={ui.ink} />
126
+ </View>
127
+ </Pressable>
128
+ )}
129
+ </View>
130
+ <Text style={styles.reelTitle}>{title}</Text>
131
+ <Text style={styles.reelResult}>{result}</Text>
132
+ </View>
133
+ );
134
+ }
135
+
136
+ const styles = StyleSheet.create({
137
+ /**
138
+ * Fills its frame. Spelled out rather than StyleSheet.absoluteFill: through the NativeWind-wrapped Image that
139
+ * style did not size the poster, which then drew at its own 540 x 960 and showed only its top-left corner.
140
+ */
141
+ fill: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' },
142
+ mediaCard: {
143
+ width: '100%',
144
+ aspectRatio: 1,
145
+ borderRadius: radius.card + 6,
146
+ overflow: 'hidden',
147
+ backgroundColor: ui.surface,
148
+ ...lift,
149
+ },
150
+ reel: { flex: 1, gap: 4 },
151
+ reelFrame: {
152
+ aspectRatio: 9 / 16,
153
+ borderRadius: radius.card + 4,
154
+ overflow: 'hidden',
155
+ backgroundColor: ui.fill,
156
+ marginBottom: 8,
157
+ },
158
+ play: {
159
+ position: 'absolute',
160
+ alignSelf: 'center',
161
+ top: '50%',
162
+ marginTop: -28,
163
+ width: 56,
164
+ height: 56,
165
+ borderRadius: 28,
166
+ backgroundColor: 'rgba(255,254,252,0.94)',
167
+ alignItems: 'center',
168
+ justifyContent: 'center',
169
+ paddingLeft: 3,
170
+ },
171
+ reelTitle: { fontSize: 15, fontWeight: '600', color: ui.ink },
172
+ reelResult: { fontSize: 13, lineHeight: 18, color: ui.muted },
173
+ });
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The texting app's icon for this phone, as Yantra's ChannelIcon draws them: iMessage's green bubble on an iPhone,
3
+ * Android Messages' blue tile on Android (an Android phone texts Lucy in Messages, never iMessage).
4
+ */
5
+ import React from 'react';
6
+ import Svg, { Path, Rect } from 'react-native-svg';
7
+ import { ANDROID } from '../imessage/platform';
8
+
9
+ function ImessageIcon({ size }: { size: number }) {
10
+ return (
11
+ <Svg
12
+ width={size}
13
+ height={size}
14
+ viewBox="0 0 120 120"
15
+ accessibilityElementsHidden
16
+ importantForAccessibility="no"
17
+ >
18
+ <Rect width={120} height={120} rx={26} fill="#34C759" />
19
+ <Path
20
+ fillRule="evenodd"
21
+ clipRule="evenodd"
22
+ d="M60 22C38.46 22 21 37.67 21 57C21 66.18 24.83 74.5 31.18 80.65C30.49 87.23 27.84 92.56 24 96C31.78 95.47 38.45 92.3 42.87 88.62C48.24 90.73 54.01 91.9 60 91.9C81.54 91.9 99 76.23 99 56.9C99 37.57 81.54 22 60 22Z"
23
+ fill="#fff"
24
+ />
25
+ </Svg>
26
+ );
27
+ }
28
+
29
+ function AndroidMessagesIcon({ size }: { size: number }) {
30
+ return (
31
+ <Svg
32
+ width={size}
33
+ height={size}
34
+ viewBox="0 0 120 120"
35
+ accessibilityElementsHidden
36
+ importantForAccessibility="no"
37
+ >
38
+ <Rect width={120} height={120} rx={26} fill="#1A73E8" />
39
+ <Path
40
+ d="M30 30H90C95.52 30 100 34.48 100 40V76C100 81.52 95.52 86 90 86H50L32 100V86H30C24.48 86 20 81.52 20 76V40C20 34.48 24.48 30 30 30Z"
41
+ fill="#fff"
42
+ />
43
+ <Rect x={36} y={50} width={48} height={7} rx={3.5} fill="#1A73E8" />
44
+ <Rect x={36} y={62} width={32} height={7} rx={3.5} fill="#1A73E8" />
45
+ </Svg>
46
+ );
47
+ }
48
+
49
+ export function MessagesAppIcon({ size = 20 }: { size?: number }) {
50
+ return ANDROID ? <AndroidMessagesIcon size={size} /> : <ImessageIcon size={size} />;
51
+ }