@everfur/sdk 0.20.0 → 0.22.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 (255) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/dist/{Chat.d-IpxKa9gS.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
  3. package/dist/{Chat.d-D61LLPJh.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
  4. package/dist/{DepthViews.d-CDIL4mPa.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
  5. package/dist/{DepthViews.d-C8EsR8Gq.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
  6. package/dist/{DepthViews.d-w2o4Nf7r.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
  7. package/dist/{DepthViews.d-Q1nqdH8n.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-DqhM_rCr.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-BSjZOHu8.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
  10. package/dist/animations/index.cjs +2 -2
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +2 -2
  14. package/dist/{attachments.d-BviU_Tja.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
  15. package/dist/{attachments.d-DZVfHHnY.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
  16. package/dist/{bookingCopy.d-5V3erfXD.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
  17. package/dist/{bookingCopy.d-DlzUPsFE.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
  18. package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
  19. package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
  20. package/dist/{casesRepository.d-Dqg-KbpA.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
  21. package/dist/{casesRepository.d-7Us2O-z8.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
  22. package/dist/chat/index.cjs +59 -47
  23. package/dist/chat/index.d.cts +11 -11
  24. package/dist/chat/index.d.ts +11 -11
  25. package/dist/chat/index.js +59 -47
  26. package/dist/chat/lite/index.cjs +59 -47
  27. package/dist/chat/lite/index.d.cts +11 -11
  28. package/dist/chat/lite/index.d.ts +11 -11
  29. package/dist/chat/lite/index.js +59 -47
  30. package/dist/{chatHandoffToken.d-TYcD8NIi.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
  31. package/dist/{chatHandoffToken.d-B9pjkEfl.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
  32. package/dist/{chatTypes.d-RnQ5R4zP.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
  33. package/dist/{chatTypes.d-DPALEQoW.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
  34. package/dist/chunk-AT7SU763.js +14 -0
  35. package/dist/chunk-FFMIX6HG.js +5 -0
  36. package/dist/chunk-K5NVMNI5.js +47 -0
  37. package/dist/chunk-ZASVU7CH.js +34 -0
  38. package/dist/client/index.cjs +9 -8
  39. package/dist/client/index.d.cts +18 -12
  40. package/dist/client/index.d.ts +18 -12
  41. package/dist/client/index.js +9 -8
  42. package/dist/{clinicBatch.d-t9hkown2.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
  43. package/dist/{clinicBatch.d-C6MzLj3X.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
  44. package/dist/{config.d-BnZkxI5a.d.ts → config.d--6siaeNg.d.ts} +14 -6
  45. package/dist/{config.d-DoC-XaJ0.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
  46. package/dist/consent/index.cjs +2 -2
  47. package/dist/consent/index.d.cts +5 -5
  48. package/dist/consent/index.d.ts +5 -5
  49. package/dist/consent/index.js +2 -2
  50. package/dist/{context.d-BAh7C7T4.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
  51. package/dist/{context.d-z2zIjKEb.d.ts → context.d-TArU_9lj.d.ts} +7 -7
  52. package/dist/{copy.d-DLxgHsZZ.d.ts → copy.d-GokMma80.d.ts} +2 -2
  53. package/dist/{copy.d-BkX6G-Ws.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
  54. package/dist/core/index.cjs +4 -4
  55. package/dist/core/index.d.cts +17 -17
  56. package/dist/core/index.d.ts +17 -17
  57. package/dist/core/index.js +4 -4
  58. package/dist/{depth.d-z2FlzY3x.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
  59. package/dist/{depth.d-aXddCjyh.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
  60. package/dist/{entitlementRepository.d-Cgmy4Opa.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
  61. package/dist/{entitlementRepository.d-CDCF8eFx.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
  62. package/dist/{focus.d-C2fd_5MW.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
  63. package/dist/{focus.d-q_sXGhLn.d.cts → focus.d-B0qweva0.d.cts} +3 -128
  64. package/dist/health-plan/index.cjs +160 -103
  65. package/dist/health-plan/index.d.cts +33 -18
  66. package/dist/health-plan/index.d.ts +33 -18
  67. package/dist/health-plan/index.js +167 -110
  68. package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
  69. package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
  70. package/dist/{idempotency.d-DlAPAxD5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
  71. package/dist/{idempotency.d-Bqdyv_yn.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
  72. package/dist/{identity.d-BWZiaByn.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
  73. package/dist/{identity.d-CooKscNj.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
  74. package/dist/inbox.d-ChNXTovj.d.cts +103 -0
  75. package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
  76. package/dist/index.cjs +69 -56
  77. package/dist/index.d.cts +18 -18
  78. package/dist/index.d.ts +18 -18
  79. package/dist/index.js +69 -56
  80. package/dist/{introEvents.d-baVM016i.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
  81. package/dist/{introEvents.d-C8bDDiK6.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
  82. package/dist/{usePresentation.d-CyCEJ6nj.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
  83. package/dist/{usePresentation.d-CgvwGb2A.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
  84. package/dist/notifications/inbox/index.cjs +24 -12
  85. package/dist/notifications/inbox/index.d.cts +87 -6
  86. package/dist/notifications/inbox/index.d.ts +87 -6
  87. package/dist/notifications/inbox/index.js +24 -12
  88. package/dist/notifications/index.d.cts +7 -7
  89. package/dist/notifications/index.d.ts +7 -7
  90. package/dist/{optInView.d-C04aX0Hs.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
  91. package/dist/{optInView.d-D_D7fs6C.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
  92. package/dist/{pets.d-CkFNO-x-.d.ts → pets.d-Br960ekh.d.ts} +1 -1
  93. package/dist/{pets.d-oJ2OIY22.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
  94. package/dist/{petsRepository.d-VWMyIeIJ.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
  95. package/dist/{petsRepository.d-CKCi6rtp.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
  96. package/dist/photo/index.cjs +1 -1
  97. package/dist/photo/index.js +1 -1
  98. package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.cts} +6 -0
  99. package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.ts} +6 -0
  100. package/dist/records/depth/index.cjs +10 -6
  101. package/dist/records/depth/index.d.cts +9 -9
  102. package/dist/records/depth/index.d.ts +9 -9
  103. package/dist/records/depth/index.js +10 -6
  104. package/dist/records/index.cjs +302 -207
  105. package/dist/records/index.d.cts +144 -17
  106. package/dist/records/index.d.ts +144 -17
  107. package/dist/records/index.js +302 -207
  108. package/dist/{requestFunnel.d-By0-I8Cp.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
  109. package/dist/{requestFunnel.d-DVCytzTE.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
  110. package/dist/{route.d-Ay-lRct1.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
  111. package/dist/{route.d-DQDX6QFn.d.cts → route.d-D70-OHBc.d.cts} +2 -2
  112. package/dist/{runtimeTypes.d-DUVNpR6g.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
  113. package/dist/{runtimeTypes.d-C49Cgb9c.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
  114. package/dist/{screenProps.d-BgxlmfG5.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
  115. package/dist/{screenProps.d-B_arD3Lh.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
  116. package/dist/server/events/index.cjs +1 -1
  117. package/dist/server/events/index.d.cts +2 -2
  118. package/dist/server/events/index.d.ts +2 -2
  119. package/dist/server/events/index.js +1 -1
  120. package/dist/server/index.cjs +1 -1
  121. package/dist/server/index.d.cts +3 -3
  122. package/dist/server/index.d.ts +3 -3
  123. package/dist/server/index.js +1 -1
  124. package/dist/shop/index.cjs +201 -146
  125. package/dist/shop/index.d.cts +3 -3
  126. package/dist/shop/index.d.ts +3 -3
  127. package/dist/shop/index.js +202 -147
  128. package/dist/slots/index.cjs +299 -0
  129. package/dist/slots/index.d.cts +155 -0
  130. package/dist/slots/index.d.ts +155 -0
  131. package/dist/slots/index.js +299 -0
  132. package/dist/slots/weather-glyphs/index.cjs +2 -0
  133. package/dist/slots/weather-glyphs/index.d.cts +11 -0
  134. package/dist/slots/weather-glyphs/index.d.ts +11 -0
  135. package/dist/slots/weather-glyphs/index.js +2 -0
  136. package/dist/tabs/index.cjs +43 -12
  137. package/dist/tabs/index.d.cts +79 -8
  138. package/dist/tabs/index.d.ts +79 -8
  139. package/dist/tabs/index.js +43 -12
  140. package/dist/televet/booking/index.cjs +54 -10
  141. package/dist/televet/booking/index.d.cts +51 -10
  142. package/dist/televet/booking/index.d.ts +51 -10
  143. package/dist/televet/booking/index.js +55 -11
  144. package/dist/televet/call/index.cjs +1 -1
  145. package/dist/televet/call/index.js +1 -1
  146. package/dist/televet/index.cjs +1 -1
  147. package/dist/televet/index.d.cts +2 -2
  148. package/dist/televet/index.d.ts +2 -2
  149. package/dist/televet/index.js +1 -1
  150. package/dist/testing/index.d.cts +1 -1
  151. package/dist/testing/index.d.ts +1 -1
  152. package/dist/testing/rn/index.cjs +1 -1
  153. package/dist/testing/rn/index.d.cts +13 -11
  154. package/dist/testing/rn/index.d.ts +13 -11
  155. package/dist/testing/rn/index.js +1 -1
  156. package/dist/testing/web/index.d.cts +10 -10
  157. package/dist/testing/web/index.d.ts +10 -10
  158. package/dist/texting/index.cjs +2 -2
  159. package/dist/texting/index.d.cts +5 -5
  160. package/dist/texting/index.d.ts +5 -5
  161. package/dist/texting/index.js +2 -2
  162. package/dist/{threadOptions.d-pZXzsd2d.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
  163. package/dist/{threadOptions.d-Cbhjjb9_.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
  164. package/dist/{timelineRows.d-DlMs82N1.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
  165. package/dist/{timelineRows.d-BHxMeZzl.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
  166. package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
  167. package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
  168. package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
  169. package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
  170. package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
  171. package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
  172. package/dist/ui/index.cjs +112 -47
  173. package/dist/ui/index.d.cts +4 -3
  174. package/dist/ui/index.d.ts +4 -3
  175. package/dist/ui/index.js +112 -47
  176. package/dist/{useHealthPlanSubscription.d-BoC7H85G.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
  177. package/dist/{useHealthPlanSubscription.d-CZn06-lu.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
  178. package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
  179. package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
  180. package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
  181. package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
  182. package/dist/{useRecordsDepth.d-CbXhWbx7.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
  183. package/dist/{useRecordsDepth.d-CcbL98FD.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
  184. package/dist/{useUnread.d-BsZKbLp9.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
  185. package/dist/{useUnread.d-CfF2Cx-q.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
  186. package/dist/video/index.cjs +1 -1
  187. package/dist/video/index.js +1 -1
  188. package/dist/{view.d-DdyOf0T0.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
  189. package/dist/{view.d-CF3AP3T7.d.cts → view.d-DV4b1cov.d.cts} +3 -3
  190. package/dist/web/consent/index.cjs +1 -1
  191. package/dist/web/consent/index.d.cts +5 -5
  192. package/dist/web/consent/index.d.ts +5 -5
  193. package/dist/web/consent/index.js +1 -1
  194. package/dist/web/health-plan/index.cjs +54 -25
  195. package/dist/web/health-plan/index.d.cts +20 -13
  196. package/dist/web/health-plan/index.d.ts +20 -13
  197. package/dist/web/health-plan/index.js +36 -31
  198. package/dist/web/health-plan/styles.css +165 -2
  199. package/dist/web/inbox/index.cjs +1 -1
  200. package/dist/web/inbox/index.d.cts +7 -5
  201. package/dist/web/inbox/index.d.ts +7 -5
  202. package/dist/web/inbox/index.js +1 -1
  203. package/dist/web/index.cjs +71 -70
  204. package/dist/web/index.d.cts +53 -31
  205. package/dist/web/index.d.ts +53 -31
  206. package/dist/web/index.js +28 -27
  207. package/dist/web/intro/index.cjs +1 -1
  208. package/dist/web/intro/index.d.cts +7 -6
  209. package/dist/web/intro/index.d.ts +7 -6
  210. package/dist/web/intro/index.js +1 -1
  211. package/dist/web/notifications/index.cjs +1 -1
  212. package/dist/web/notifications/index.d.cts +6 -6
  213. package/dist/web/notifications/index.d.ts +6 -6
  214. package/dist/web/notifications/index.js +1 -1
  215. package/dist/web/records/depth/index.cjs +1 -1
  216. package/dist/web/records/depth/index.d.cts +9 -9
  217. package/dist/web/records/depth/index.d.ts +9 -9
  218. package/dist/web/records/depth/index.js +1 -1
  219. package/dist/web/records/index.cjs +1 -1
  220. package/dist/web/records/index.d.cts +11 -11
  221. package/dist/web/records/index.d.ts +11 -11
  222. package/dist/web/records/index.js +1 -1
  223. package/dist/web/records-sheet/index.cjs +3 -3
  224. package/dist/web/records-sheet/index.js +3 -3
  225. package/dist/web/shop/index.cjs +129 -88
  226. package/dist/web/shop/index.d.cts +4 -3
  227. package/dist/web/shop/index.d.ts +4 -3
  228. package/dist/web/shop/index.js +67 -81
  229. package/dist/web/televet/booking/index.cjs +53 -53
  230. package/dist/web/televet/booking/index.d.cts +44 -44
  231. package/dist/web/televet/booking/index.d.ts +44 -44
  232. package/dist/web/televet/booking/index.js +53 -53
  233. package/dist/web/televet/call/index.cjs +3 -3
  234. package/dist/web/televet/call/index.d.cts +7 -6
  235. package/dist/web/televet/call/index.d.ts +7 -6
  236. package/dist/web/televet/call/index.js +3 -3
  237. package/dist/web/televet/index.cjs +1 -1
  238. package/dist/web/televet/index.js +1 -1
  239. package/dist/web/texting/index.cjs +1 -1
  240. package/dist/web/texting/index.d.cts +5 -5
  241. package/dist/web/texting/index.d.ts +5 -5
  242. package/dist/web/texting/index.js +1 -1
  243. package/dist/web/ui/index.cjs +116 -58
  244. package/dist/web/ui/index.d.cts +33 -32
  245. package/dist/web/ui/index.d.ts +33 -32
  246. package/dist/web/ui/index.js +41 -46
  247. package/dist/web/ui/styles.css +525 -2
  248. package/package.json +36 -5
  249. package/slots/package.json +8 -0
  250. package/slots/weather-glyphs/package.json +8 -0
  251. package/dist/chunk-Y3Q4GW47.js +0 -31
  252. package/dist/useInboxUnread.d-DW0dpWdv.d.cts +0 -206
  253. package/dist/useInboxUnread.d-vYpOXVRv.d.ts +0 -206
  254. package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
  255. package/dist/{IntakeMedia.d-DNUAks9E.d.ts → IntakeMedia.d-DnUZJsbj.d.ts} +35 -35
@@ -1,6 +1,6 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
- import { C as ClientBranding, E as EverfurThemeInput } from './branding.d-DpNGEdDL.js';
3
- import { m as EverfurTheme, d as EverfurFontWeight, a as EverfurFontFaceKey } from './tokens.d-BUVqme2D.js';
2
+ import { C as ClientBranding, E as EverfurThemeInput } from './branding.d-DC4imCYd.js';
3
+ import { n as EverfurTheme, d as EverfurFontWeight, a as EverfurFontFaceKey, t as EverfurTypeRole } from './tokens.d-DH1mYjZl.js';
4
4
 
5
5
  /** One partner input the contrast guard adjusted. */
6
6
  interface EverfurThemeAdjustment {
@@ -76,6 +76,14 @@ interface ResolveThemeInput {
76
76
  * collapsing to the platform's regular. Only named faces are asked about; a throw reads as null.
77
77
  */
78
78
  readonly isFontRegistered?: (family: string) => boolean | null;
79
+ /**
80
+ * The type profile of the host. `phone` (the React Native host): the size table (`type.size`) is drawn from the
81
+ * type roles, the designer's partner phone, so `size.body` is the phone's body (15, not 17), and every text tier is
82
+ * capped (`PHONE_TEXT_SCALE_CAPS`, content included). Absent (the web): the design tokens' table and the Everfur
83
+ * app's caps (`TEXT_SCALE_TIER_CAPS`, content uncapped), unchanged. A partner's `text_scale_caps` and
84
+ * `accessibility_max_font_scale` apply over either.
85
+ */
86
+ readonly typeProfile?: 'phone';
79
87
  }
80
88
  /** The smallest effective text scale the resolver will report (a device may ask for less; the surfaces stop here). */
81
89
  declare const TEXT_SCALE_FLOOR = 0.5;
@@ -136,5 +144,23 @@ declare function face(theme: EverfurTheme, weight: EverfurFontFaceKey): EverfurF
136
144
  * exists to avoid). With neither set this is exactly `face(theme, fallback)`, so Everfur's look is unchanged.
137
145
  */
138
146
  declare function headingFace(theme: EverfurTheme, fallback?: EverfurFontFaceKey): EverfurFaceStyle;
147
+ /**
148
+ * The text style of one type role (`theme.type.roles`): the family and weight, the size, the line height and the
149
+ * tracking in px, and the case. Spread it into a style and add the colour:
150
+ * `{ ...textRole(theme, 'body'), color: theme.color.text.primary }`.
151
+ */
152
+ interface EverfurRoleTextStyle extends EverfurFaceStyle {
153
+ readonly fontSize: number;
154
+ readonly lineHeight: number;
155
+ readonly letterSpacing?: number;
156
+ readonly textTransform?: 'uppercase';
157
+ }
158
+ /**
159
+ * The style of `role` in `theme`, faces mapped as `face()` maps them: a NAMED face alone (its weight is baked in), a
160
+ * base family with the role's numeric weight. The partner's body weight (`font_weight_body`) replaces a regular role's
161
+ * 400; the heading face (`heading_font_family`, `font_weight_heading`) draws a `heading` role. Pure and total; cached
162
+ * per theme, so a surface may call it in render.
163
+ */
164
+ declare function textRole(theme: EverfurTheme, role: EverfurTypeRole): EverfurRoleTextStyle;
139
165
 
140
- export { type EverfurFaceStyle as E, type ResolveThemeInput as R, TEXT_SCALE_FLOOR as T, type EverfurThemeAdjustment as a, face as f, headingFace as h, previewTheme as p, resolveTheme as r, themeAdjustments as t, withServerBranding as w };
166
+ export { type EverfurFaceStyle as E, type ResolveThemeInput as R, TEXT_SCALE_FLOOR as T, type EverfurRoleTextStyle as a, type EverfurThemeAdjustment as b, themeAdjustments as c, face as f, headingFace as h, previewTheme as p, resolveTheme as r, textRole as t, withServerBranding as w };
@@ -51,15 +51,34 @@ interface UiThumbnailFallback {
51
51
  /** The icon's colour. Default the theme's thumbnail icon colour. */
52
52
  readonly iconColor?: string | undefined;
53
53
  }
54
-
55
- /** One term and value row of a {@link UiPriceSummaryProps}. @public */
56
- interface UiSummaryRow {
57
- readonly key?: string | undefined;
58
- readonly term: string;
59
- readonly value: string;
60
- /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
54
+ /**
55
+ * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
56
+ * to the cart). Window coordinates, the photo's box inside its frame's padding.
57
+ *
58
+ * @public
59
+ */
60
+ interface UiShotBox {
61
+ readonly x: number;
62
+ readonly y: number;
63
+ readonly width: number;
64
+ readonly height: number;
65
+ }
66
+ /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
67
+ type UiShotMeasure = () => Promise<UiShotBox | null>;
68
+ /** A text action of a cart line (`.items__acts button`). @public */
69
+ interface UiLineAction {
70
+ readonly key: string;
71
+ readonly label: string;
72
+ readonly onPress: () => void;
73
+ readonly disabled?: boolean | undefined;
74
+ /** What a screen reader says, when it should differ from the label. */
75
+ readonly accessibilityLabel?: string | undefined;
76
+ /** This action's test id; default `${testID}-${key}`. */
61
77
  readonly testID?: string | undefined;
62
78
  }
79
+ /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
80
+ type UiTipTone = 'y' | 'c' | 'g' | 'r';
81
+
63
82
  /** A packshot of an order, a product or a line. @public */
64
83
  interface UiShot extends UiThumbnailFallback {
65
84
  readonly key: string;
@@ -70,20 +89,65 @@ interface UiShot extends UiThumbnailFallback {
70
89
  /** This shot's test id; default `${testID}-shot-${key}`. */
71
90
  readonly testID?: string | undefined;
72
91
  }
92
+ /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
93
+ interface UiCartQuantity {
94
+ readonly value: number;
95
+ readonly min?: number | undefined;
96
+ readonly max?: number | undefined;
97
+ readonly label: string;
98
+ readonly fewerLabel: string;
99
+ readonly moreLabel: string;
100
+ readonly onChange: (value: number) => void;
101
+ }
73
102
  /**
74
- * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
75
- * to the cart). Window coordinates, the photo's box inside its frame's padding.
76
- *
77
- * @public
103
+ * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
104
+ * now with its scale, and since when. Every word is the caller's. The design system's own takes an icon too; the SDK
105
+ * publishes it without (its arrow stays). @public
78
106
  */
79
- interface UiShotBox {
80
- readonly x: number;
81
- readonly y: number;
82
- readonly width: number;
83
- readonly height: number;
107
+ interface UiNeedScore {
108
+ /** What is scored. */
109
+ readonly label: string;
110
+ /** A small tag after it (`.hp-tag`). */
111
+ readonly tag?: string | undefined;
112
+ /** The score before, struck through. */
113
+ readonly was?: string | undefined;
114
+ /** The score now. */
115
+ readonly now: string;
116
+ /** Its scale after it, smaller. */
117
+ readonly of?: string | undefined;
118
+ /** Since when. */
119
+ readonly since?: string | undefined;
120
+ /** What a screen reader says for the numbers, in place of the numbers themselves. */
121
+ readonly accessibilityLabel?: string | undefined;
122
+ }
123
+ /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
124
+ interface UiNeedSignal {
125
+ readonly key: string;
126
+ readonly lead?: string | undefined;
127
+ readonly text: string;
128
+ /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
129
+ readonly dot?: boolean | undefined;
130
+ }
131
+ /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
132
+ interface UiPlanNeedCardProps extends UiBaseProps {
133
+ readonly kicker: string;
134
+ /** Where it comes from (`.hp-src`). */
135
+ readonly source?: string | undefined;
136
+ readonly title?: string | undefined;
137
+ readonly signals: readonly UiNeedSignal[];
138
+ /** The score box under the findings. */
139
+ readonly score?: UiNeedScore | undefined;
140
+ readonly loading?: boolean | undefined;
141
+ readonly loadingLabel?: string | undefined;
142
+ }
143
+ /** One term and value row of a {@link UiPriceSummaryProps}. @public */
144
+ interface UiSummaryRow {
145
+ readonly key?: string | undefined;
146
+ readonly term: string;
147
+ readonly value: string;
148
+ /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
149
+ readonly testID?: string | undefined;
84
150
  }
85
- /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
86
- type UiShotMeasure = () => Promise<UiShotBox | null>;
87
151
  /** An action under an order (`.ob-btn`; `go` is the bright one). @public */
88
152
  interface UiOrderAction {
89
153
  readonly key: string;
@@ -174,16 +238,6 @@ interface UiProductTileProps extends UiBaseProps {
174
238
  /** What the photo draws without one. */
175
239
  readonly fallback?: UiThumbnailFallback | undefined;
176
240
  }
177
- /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
178
- interface UiCartQuantity {
179
- readonly value: number;
180
- readonly min?: number | undefined;
181
- readonly max?: number | undefined;
182
- readonly label: string;
183
- readonly fewerLabel: string;
184
- readonly moreLabel: string;
185
- readonly onChange: (value: number) => void;
186
- }
187
241
  /**
188
242
  * A cart line (`.items li`): packshot, name and badge, meta, price, quantity, its text actions.
189
243
  * Part test ids: `${testID}-price`, `${testID}-image`.
@@ -218,17 +272,6 @@ interface UiCartLineProps extends UiBaseProps {
218
272
  readonly loading?: boolean | undefined;
219
273
  readonly loadingLabel?: string | undefined;
220
274
  }
221
- /** A text action of a cart line (`.items__acts button`). @public */
222
- interface UiLineAction {
223
- readonly key: string;
224
- readonly label: string;
225
- readonly onPress: () => void;
226
- readonly disabled?: boolean | undefined;
227
- /** What a screen reader says, when it should differ from the label. */
228
- readonly accessibilityLabel?: string | undefined;
229
- /** This action's test id; default `${testID}-${key}`. */
230
- readonly testID?: string | undefined;
231
- }
232
275
  /** One row of a {@link UiPriceSummaryProps}; `off` paints a discount. @public */
233
276
  interface UiPriceRow extends UiSummaryRow {
234
277
  readonly tone?: 'off' | undefined;
@@ -241,50 +284,6 @@ interface UiPriceSummaryProps extends UiBaseProps {
241
284
  readonly loading?: boolean | undefined;
242
285
  readonly loadingLabel?: string | undefined;
243
286
  }
244
- /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
245
- interface UiNeedSignal {
246
- readonly key: string;
247
- readonly lead?: string | undefined;
248
- readonly text: string;
249
- /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
250
- readonly dot?: boolean | undefined;
251
- }
252
- /**
253
- * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
254
- * now with its scale, and since when. Every word is the caller's.
255
- *
256
- * @public
257
- */
258
- interface UiNeedScore {
259
- /** What is scored (`Her itch score, out of 10, ...`). */
260
- readonly label: string;
261
- /** A small tag after it (`.hp-tag`, `Sample`). */
262
- readonly tag?: string | undefined;
263
- /** The score before, struck through (`7/10`). */
264
- readonly was?: string | undefined;
265
- /** The score now (`3`). */
266
- readonly now: string;
267
- /** Its scale after it, smaller (`/10`). */
268
- readonly of?: string | undefined;
269
- /** Since when (`since Apoquel`). */
270
- readonly since?: string | undefined;
271
- /** What a screen reader says for the numbers (`went from 7 out of 10 to 3 out of 10 since Apoquel`). */
272
- readonly accessibilityLabel?: string | undefined;
273
- }
274
- /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
275
- interface UiPlanNeedCardProps extends UiBaseProps {
276
- readonly kicker: string;
277
- /** Where it comes from (`.hp-src`). */
278
- readonly source?: string | undefined;
279
- readonly title?: string | undefined;
280
- readonly signals: readonly UiNeedSignal[];
281
- /** The score box under the findings. */
282
- readonly score?: UiNeedScore | undefined;
283
- readonly loading?: boolean | undefined;
284
- readonly loadingLabel?: string | undefined;
285
- }
286
- /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
287
- type UiTipTone = 'y' | 'c' | 'g' | 'r';
288
287
  /** A Health Plan tip (`.hp-tip`): its number, a photo or an icon, the title, a line, where it comes from. @public */
289
288
  interface UiTipCardProps extends UiBaseProps {
290
289
  readonly number: string;
@@ -298,9 +297,12 @@ interface UiTipCardProps extends UiBaseProps {
298
297
  readonly footPress?: UiPress | undefined;
299
298
  /** Default `y`. */
300
299
  readonly tone?: UiTipTone | undefined;
301
- /** A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). */
300
+ /**
301
+ * A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). Without one, or when it fails to
302
+ * load, the tip draws no photo frame: a compact row at the top holds the number and `icon`.
303
+ */
302
304
  readonly image?: UiImageSource | null | undefined;
303
- /** An icon. The tip's design (the number on the photo) does not draw it; accepted so a tip's data passes as it is. */
305
+ /** The icon a tip without a photo (or whose photo fails to load) draws beside its number. Default `leaf`. */
304
306
  readonly icon?: UiIconName | undefined;
305
307
  readonly onPress?: (() => void) | undefined;
306
308
  /**
@@ -51,15 +51,34 @@ interface UiThumbnailFallback {
51
51
  /** The icon's colour. Default the theme's thumbnail icon colour. */
52
52
  readonly iconColor?: string | undefined;
53
53
  }
54
-
55
- /** One term and value row of a {@link UiPriceSummaryProps}. @public */
56
- interface UiSummaryRow {
57
- readonly key?: string | undefined;
58
- readonly term: string;
59
- readonly value: string;
60
- /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
54
+ /**
55
+ * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
56
+ * to the cart). Window coordinates, the photo's box inside its frame's padding.
57
+ *
58
+ * @public
59
+ */
60
+ interface UiShotBox {
61
+ readonly x: number;
62
+ readonly y: number;
63
+ readonly width: number;
64
+ readonly height: number;
65
+ }
66
+ /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
67
+ type UiShotMeasure = () => Promise<UiShotBox | null>;
68
+ /** A text action of a cart line (`.items__acts button`). @public */
69
+ interface UiLineAction {
70
+ readonly key: string;
71
+ readonly label: string;
72
+ readonly onPress: () => void;
73
+ readonly disabled?: boolean | undefined;
74
+ /** What a screen reader says, when it should differ from the label. */
75
+ readonly accessibilityLabel?: string | undefined;
76
+ /** This action's test id; default `${testID}-${key}`. */
61
77
  readonly testID?: string | undefined;
62
78
  }
79
+ /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
80
+ type UiTipTone = 'y' | 'c' | 'g' | 'r';
81
+
63
82
  /** A packshot of an order, a product or a line. @public */
64
83
  interface UiShot extends UiThumbnailFallback {
65
84
  readonly key: string;
@@ -70,20 +89,65 @@ interface UiShot extends UiThumbnailFallback {
70
89
  /** This shot's test id; default `${testID}-shot-${key}`. */
71
90
  readonly testID?: string | undefined;
72
91
  }
92
+ /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
93
+ interface UiCartQuantity {
94
+ readonly value: number;
95
+ readonly min?: number | undefined;
96
+ readonly max?: number | undefined;
97
+ readonly label: string;
98
+ readonly fewerLabel: string;
99
+ readonly moreLabel: string;
100
+ readonly onChange: (value: number) => void;
101
+ }
73
102
  /**
74
- * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
75
- * to the cart). Window coordinates, the photo's box inside its frame's padding.
76
- *
77
- * @public
103
+ * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
104
+ * now with its scale, and since when. Every word is the caller's. The design system's own takes an icon too; the SDK
105
+ * publishes it without (its arrow stays). @public
78
106
  */
79
- interface UiShotBox {
80
- readonly x: number;
81
- readonly y: number;
82
- readonly width: number;
83
- readonly height: number;
107
+ interface UiNeedScore {
108
+ /** What is scored. */
109
+ readonly label: string;
110
+ /** A small tag after it (`.hp-tag`). */
111
+ readonly tag?: string | undefined;
112
+ /** The score before, struck through. */
113
+ readonly was?: string | undefined;
114
+ /** The score now. */
115
+ readonly now: string;
116
+ /** Its scale after it, smaller. */
117
+ readonly of?: string | undefined;
118
+ /** Since when. */
119
+ readonly since?: string | undefined;
120
+ /** What a screen reader says for the numbers, in place of the numbers themselves. */
121
+ readonly accessibilityLabel?: string | undefined;
122
+ }
123
+ /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
124
+ interface UiNeedSignal {
125
+ readonly key: string;
126
+ readonly lead?: string | undefined;
127
+ readonly text: string;
128
+ /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
129
+ readonly dot?: boolean | undefined;
130
+ }
131
+ /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
132
+ interface UiPlanNeedCardProps extends UiBaseProps {
133
+ readonly kicker: string;
134
+ /** Where it comes from (`.hp-src`). */
135
+ readonly source?: string | undefined;
136
+ readonly title?: string | undefined;
137
+ readonly signals: readonly UiNeedSignal[];
138
+ /** The score box under the findings. */
139
+ readonly score?: UiNeedScore | undefined;
140
+ readonly loading?: boolean | undefined;
141
+ readonly loadingLabel?: string | undefined;
142
+ }
143
+ /** One term and value row of a {@link UiPriceSummaryProps}. @public */
144
+ interface UiSummaryRow {
145
+ readonly key?: string | undefined;
146
+ readonly term: string;
147
+ readonly value: string;
148
+ /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
149
+ readonly testID?: string | undefined;
84
150
  }
85
- /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
86
- type UiShotMeasure = () => Promise<UiShotBox | null>;
87
151
  /** An action under an order (`.ob-btn`; `go` is the bright one). @public */
88
152
  interface UiOrderAction {
89
153
  readonly key: string;
@@ -174,16 +238,6 @@ interface UiProductTileProps extends UiBaseProps {
174
238
  /** What the photo draws without one. */
175
239
  readonly fallback?: UiThumbnailFallback | undefined;
176
240
  }
177
- /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
178
- interface UiCartQuantity {
179
- readonly value: number;
180
- readonly min?: number | undefined;
181
- readonly max?: number | undefined;
182
- readonly label: string;
183
- readonly fewerLabel: string;
184
- readonly moreLabel: string;
185
- readonly onChange: (value: number) => void;
186
- }
187
241
  /**
188
242
  * A cart line (`.items li`): packshot, name and badge, meta, price, quantity, its text actions.
189
243
  * Part test ids: `${testID}-price`, `${testID}-image`.
@@ -218,17 +272,6 @@ interface UiCartLineProps extends UiBaseProps {
218
272
  readonly loading?: boolean | undefined;
219
273
  readonly loadingLabel?: string | undefined;
220
274
  }
221
- /** A text action of a cart line (`.items__acts button`). @public */
222
- interface UiLineAction {
223
- readonly key: string;
224
- readonly label: string;
225
- readonly onPress: () => void;
226
- readonly disabled?: boolean | undefined;
227
- /** What a screen reader says, when it should differ from the label. */
228
- readonly accessibilityLabel?: string | undefined;
229
- /** This action's test id; default `${testID}-${key}`. */
230
- readonly testID?: string | undefined;
231
- }
232
275
  /** One row of a {@link UiPriceSummaryProps}; `off` paints a discount. @public */
233
276
  interface UiPriceRow extends UiSummaryRow {
234
277
  readonly tone?: 'off' | undefined;
@@ -241,50 +284,6 @@ interface UiPriceSummaryProps extends UiBaseProps {
241
284
  readonly loading?: boolean | undefined;
242
285
  readonly loadingLabel?: string | undefined;
243
286
  }
244
- /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
245
- interface UiNeedSignal {
246
- readonly key: string;
247
- readonly lead?: string | undefined;
248
- readonly text: string;
249
- /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
250
- readonly dot?: boolean | undefined;
251
- }
252
- /**
253
- * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
254
- * now with its scale, and since when. Every word is the caller's.
255
- *
256
- * @public
257
- */
258
- interface UiNeedScore {
259
- /** What is scored (`Her itch score, out of 10, ...`). */
260
- readonly label: string;
261
- /** A small tag after it (`.hp-tag`, `Sample`). */
262
- readonly tag?: string | undefined;
263
- /** The score before, struck through (`7/10`). */
264
- readonly was?: string | undefined;
265
- /** The score now (`3`). */
266
- readonly now: string;
267
- /** Its scale after it, smaller (`/10`). */
268
- readonly of?: string | undefined;
269
- /** Since when (`since Apoquel`). */
270
- readonly since?: string | undefined;
271
- /** What a screen reader says for the numbers (`went from 7 out of 10 to 3 out of 10 since Apoquel`). */
272
- readonly accessibilityLabel?: string | undefined;
273
- }
274
- /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
275
- interface UiPlanNeedCardProps extends UiBaseProps {
276
- readonly kicker: string;
277
- /** Where it comes from (`.hp-src`). */
278
- readonly source?: string | undefined;
279
- readonly title?: string | undefined;
280
- readonly signals: readonly UiNeedSignal[];
281
- /** The score box under the findings. */
282
- readonly score?: UiNeedScore | undefined;
283
- readonly loading?: boolean | undefined;
284
- readonly loadingLabel?: string | undefined;
285
- }
286
- /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
287
- type UiTipTone = 'y' | 'c' | 'g' | 'r';
288
287
  /** A Health Plan tip (`.hp-tip`): its number, a photo or an icon, the title, a line, where it comes from. @public */
289
288
  interface UiTipCardProps extends UiBaseProps {
290
289
  readonly number: string;
@@ -298,9 +297,12 @@ interface UiTipCardProps extends UiBaseProps {
298
297
  readonly footPress?: UiPress | undefined;
299
298
  /** Default `y`. */
300
299
  readonly tone?: UiTipTone | undefined;
301
- /** A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). */
300
+ /**
301
+ * A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). Without one, or when it fails to
302
+ * load, the tip draws no photo frame: a compact row at the top holds the number and `icon`.
303
+ */
302
304
  readonly image?: UiImageSource | null | undefined;
303
- /** An icon. The tip's design (the number on the photo) does not draw it; accepted so a tip's data passes as it is. */
305
+ /** The icon a tip without a photo (or whose photo fails to load) draws beside its number. Default `leaf`. */
304
306
  readonly icon?: UiIconName | undefined;
305
307
  readonly onPress?: (() => void) | undefined;
306
308
  /**