@everfur/sdk 0.13.0 → 0.15.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 (206) hide show
  1. package/CHANGELOG.md +206 -0
  2. package/README.md +11 -10
  3. package/dist/{Chat.d-Dts8u_1a.d.cts → Chat.d-CtfANk3A.d.cts} +12 -4
  4. package/dist/{Chat.d-DUNTfzqC.d.ts → Chat.d-a7Ksz7NZ.d.ts} +12 -4
  5. package/dist/{DepthViews.d-CubkMPbU.d.ts → DepthViews.d-BqMnWSMu.d.cts} +1 -1
  6. package/dist/{DepthViews.d-BMU2jFPw.d.cts → DepthViews.d-CuBElgEc.d.ts} +1 -1
  7. package/dist/{DepthViews.d-Ce2Zhnrb.d.ts → DepthViews.d-DbJejGm3.d.ts} +1 -1
  8. package/dist/{DepthViews.d-BIp599lz.d.cts → DepthViews.d-dXWL6ToG.d.cts} +1 -1
  9. package/dist/RecordsPage.d-DKrZ9rHX.d.ts +93 -0
  10. package/dist/RecordsPage.d-DRPdUAo4.d.cts +93 -0
  11. package/dist/animations/index.cjs +1 -1
  12. package/dist/animations/index.d.cts +7 -5
  13. package/dist/animations/index.d.ts +7 -5
  14. package/dist/animations/index.js +1 -1
  15. package/dist/{attachments.d-Djy9z_0Z.d.ts → attachments.d-BGn2_knv.d.ts} +6 -24
  16. package/dist/{attachments.d-D1yhJjcZ.d.ts → attachments.d-CoQhXrP9.d.ts} +2 -2
  17. package/dist/{attachments.d-Bp2qbHxn.d.cts → attachments.d-CpaOfi2g.d.cts} +6 -24
  18. package/dist/{attachments.d-DisnvB9R.d.cts → attachments.d-CqHMGoER.d.cts} +2 -2
  19. package/dist/{bookingCopy.d-BlBmhAJc.d.cts → bookingCopy.d-Bnq2zk0F.d.cts} +2 -2
  20. package/dist/{bookingCopy.d-BJF6gd1A.d.ts → bookingCopy.d-BwCOCZUj.d.ts} +2 -2
  21. package/dist/{branding.d-DI8S400y.d.cts → branding.d-Bbc6p1XY.d.cts} +2 -2
  22. package/dist/{branding.d-OIGLbQeM.d.ts → branding.d-y6c0UwhE.d.ts} +2 -2
  23. package/dist/{casesRepository.d-CT2LTicS.d.cts → casesRepository.d-CsUJ2Oyb.d.cts} +1 -1
  24. package/dist/{casesRepository.d-UsWOz9bv.d.ts → casesRepository.d-DG83Ggbq.d.ts} +1 -1
  25. package/dist/chat/index.cjs +45 -43
  26. package/dist/chat/index.d.cts +26 -13
  27. package/dist/chat/index.d.ts +26 -13
  28. package/dist/chat/index.js +45 -43
  29. package/dist/client/index.cjs +3 -3
  30. package/dist/client/index.d.cts +12 -12
  31. package/dist/client/index.d.ts +12 -12
  32. package/dist/client/index.js +3 -3
  33. package/dist/clinicBatch.d-BLpbpS51.d.cts +71 -0
  34. package/dist/clinicBatch.d-Byjx4y_W.d.ts +71 -0
  35. package/dist/clinicModels.d-BXgKZqDb.d.cts +68 -0
  36. package/dist/clinicModels.d-CaS64-P-.d.ts +68 -0
  37. package/dist/clinicRequestProps.d-1dCtouGA.d.cts +65 -0
  38. package/dist/clinicRequestProps.d-CjsMg_OD.d.ts +65 -0
  39. package/dist/{config.d-BR3DT9ho.d.cts → config.d-C0WgjutL.d.cts} +1 -1
  40. package/dist/{config.d-Dy6igYlH.d.ts → config.d-zd2eTb2L.d.ts} +1 -1
  41. package/dist/consent/index.d.cts +5 -5
  42. package/dist/consent/index.d.ts +5 -5
  43. package/dist/{context.d-QcCgguzA.d.ts → context.d-BBjmV0rz.d.ts} +8 -8
  44. package/dist/{context.d-Cwks0p3C.d.cts → context.d-Du_UPxa1.d.cts} +8 -8
  45. package/dist/{copy.d-CiMn2IIt.d.ts → copy.d-D_VVj01o.d.ts} +2 -2
  46. package/dist/{copy.d-DLJTyRfT.d.cts → copy.d-Da_PP2K3.d.cts} +2 -2
  47. package/dist/core/index.cjs +3 -3
  48. package/dist/core/index.d.cts +21 -19
  49. package/dist/core/index.d.ts +21 -19
  50. package/dist/core/index.js +3 -3
  51. package/dist/{depth.d-OSALbYM7.d.ts → depth.d-BEedifOR.d.ts} +6 -133
  52. package/dist/{depth.d-CjPGVPDL.d.cts → depth.d-RTV61QNf.d.cts} +6 -133
  53. package/dist/{entitlementRepository.d-Cf3LbTwD.d.ts → entitlementRepository.d-BwThmh3V.d.ts} +4 -4
  54. package/dist/{entitlementRepository.d-CVQa1DA1.d.cts → entitlementRepository.d-C-stdRyA.d.cts} +4 -4
  55. package/dist/{features.d-fNsGcg0R.d.ts → features.d-DrQxTw3-.d.cts} +1 -1
  56. package/dist/{features.d-fNsGcg0R.d.cts → features.d-DrQxTw3-.d.ts} +1 -1
  57. package/dist/{focus.d-DMg2ngHI.d.ts → focus.d-CtotIyEt.d.ts} +127 -350
  58. package/dist/{focus.d-az9cqUz3.d.cts → focus.d-Dsm39DjO.d.cts} +127 -350
  59. package/dist/health-plan/index.cjs +182 -163
  60. package/dist/health-plan/index.d.cts +53 -11
  61. package/dist/health-plan/index.d.ts +53 -11
  62. package/dist/health-plan/index.js +185 -166
  63. package/dist/{idempotency.d-WpXx9zQo.d.ts → idempotency.d-Bfm7oIxS.d.cts} +158 -6
  64. package/dist/{idempotency.d-D461_DPD.d.cts → idempotency.d-Cv-B7SfC.d.ts} +158 -6
  65. package/dist/{identity.d-DzTijonw.d.ts → identity.d-BksOEa6m.d.ts} +1 -1
  66. package/dist/{identity.d-60LeJt_s.d.cts → identity.d-CioQhZrq.d.cts} +1 -1
  67. package/dist/index.cjs +48 -46
  68. package/dist/index.d.cts +20 -19
  69. package/dist/index.d.ts +20 -19
  70. package/dist/index.js +48 -46
  71. package/dist/introEvents.d-dS3fJCH1.d.cts +5 -0
  72. package/dist/introEvents.d-dS3fJCH1.d.ts +5 -0
  73. package/dist/introEvents.d-fAZitxMA.d.cts +175 -0
  74. package/dist/introEvents.d-tOi4o3F4.d.ts +175 -0
  75. package/dist/{models.d-BnLm3VAA.d.cts → models.d-BSqvbTE1.d.cts} +8 -1
  76. package/dist/{models.d-BagXhafD.d.ts → models.d-DOwnr8fi.d.ts} +8 -1
  77. package/dist/notifications/index.d.cts +4 -4
  78. package/dist/notifications/index.d.ts +4 -4
  79. package/dist/{optInView.d-acKpV8V2.d.ts → optInView.d-B8zTORO2.d.ts} +119 -3
  80. package/dist/{optInView.d-CEyHR6PK.d.cts → optInView.d-BkNSv4Gk.d.cts} +119 -3
  81. package/dist/{parse.d-C8CXyS58.d.ts → parse.d-B5JHS6Pr.d.ts} +1 -1
  82. package/dist/{parse.d-tEzufgJX.d.cts → parse.d-BgjO82mY.d.cts} +1 -1
  83. package/dist/{pets.d-NbJvP_kh.d.cts → pets.d-B_LoizOv.d.cts} +1 -1
  84. package/dist/{pets.d-C_53_fzo.d.ts → pets.d-OWxskXCP.d.ts} +1 -1
  85. package/dist/{petsRepository.d-lp1BHRqM.d.cts → petsRepository.d-B5DWzU7C.d.cts} +1 -1
  86. package/dist/{petsRepository.d-BuGHymNx.d.ts → petsRepository.d-Ba3xhJcj.d.ts} +1 -1
  87. package/dist/planSignals.d-Cl6n5QpS.d.cts +126 -0
  88. package/dist/planSignals.d-DtxZoWGM.d.ts +126 -0
  89. package/dist/{ports.d-COIyN624.d.ts → ports.d-BDtwHxmW.d.ts} +4 -4
  90. package/dist/{ports.d-CEROoqnA.d.cts → ports.d-gZNTn8Qf.d.cts} +4 -4
  91. package/dist/{presentation.d-DMbdad7G.d.cts → presentation.d-vy8kTGfR.d.cts} +6 -0
  92. package/dist/{presentation.d-DMbdad7G.d.ts → presentation.d-vy8kTGfR.d.ts} +6 -0
  93. package/dist/quickPrompts.d-NM_81Jc1.d.cts +19 -0
  94. package/dist/quickPrompts.d-NM_81Jc1.d.ts +19 -0
  95. package/dist/records/depth/index.d.cts +13 -9
  96. package/dist/records/depth/index.d.ts +13 -9
  97. package/dist/records/index.cjs +264 -140
  98. package/dist/records/index.d.cts +95 -24
  99. package/dist/records/index.d.ts +95 -24
  100. package/dist/records/index.js +265 -141
  101. package/dist/{requestFunnel.d-DWQQpjFR.d.cts → requestFunnel.d-CR4akGCY.d.cts} +2 -2
  102. package/dist/{requestFunnel.d-CXUMPw1K.d.ts → requestFunnel.d-DFf9C__p.d.ts} +2 -2
  103. package/dist/{resolve.d-jI8FmBj3.d.cts → resolve.d-CoQWUy1Y.d.cts} +1 -1
  104. package/dist/{resolve.d-jI8FmBj3.d.ts → resolve.d-CoQWUy1Y.d.ts} +1 -1
  105. package/dist/{runtimeTypes.d-4yFNNuYR.d.ts → runtimeTypes.d-BqBOrZxa.d.ts} +6 -6
  106. package/dist/{runtimeTypes.d-D6N_fhxx.d.cts → runtimeTypes.d-CHdH-y2c.d.cts} +6 -6
  107. package/dist/{useRecordsDepth.d-sAq2Qkhr.d.cts → screenProps.d-B1dIANI0.d.cts} +5 -91
  108. package/dist/{useRecordsDepth.d-DFcCfiXm.d.ts → screenProps.d-CVqFJw-J.d.ts} +5 -91
  109. package/dist/server/events/index.cjs +1 -1
  110. package/dist/server/events/index.d.cts +2 -2
  111. package/dist/server/events/index.d.ts +2 -2
  112. package/dist/server/events/index.js +1 -1
  113. package/dist/server/index.cjs +1 -1
  114. package/dist/server/index.d.cts +3 -3
  115. package/dist/server/index.d.ts +3 -3
  116. package/dist/server/index.js +1 -1
  117. package/dist/{sheetSeam.d-Cviqk89n.d.ts → sheetSeam.d-B09jf4YC.d.ts} +8 -4
  118. package/dist/{sheetSeam.d-DCS3LW8g.d.cts → sheetSeam.d-BBuEIVsa.d.cts} +8 -4
  119. package/dist/shop/index.cjs +227 -60
  120. package/dist/shop/index.d.cts +35 -5
  121. package/dist/shop/index.d.ts +35 -5
  122. package/dist/shop/index.js +228 -61
  123. package/dist/tabs/index.cjs +195 -0
  124. package/dist/tabs/index.d.cts +175 -0
  125. package/dist/tabs/index.d.ts +175 -0
  126. package/dist/tabs/index.js +195 -0
  127. package/dist/tabsModel.d-BfIQg6yS.d.cts +31 -0
  128. package/dist/tabsModel.d-BfIQg6yS.d.ts +31 -0
  129. package/dist/televet/booking/index.d.cts +6 -6
  130. package/dist/televet/booking/index.d.ts +6 -6
  131. package/dist/testing/index.cjs +1 -1
  132. package/dist/testing/index.d.cts +1 -1
  133. package/dist/testing/index.d.ts +1 -1
  134. package/dist/testing/index.js +1 -1
  135. package/dist/testing/rn/index.cjs +1 -1
  136. package/dist/testing/rn/index.d.cts +12 -12
  137. package/dist/testing/rn/index.d.ts +12 -12
  138. package/dist/testing/rn/index.js +1 -1
  139. package/dist/testing/web/index.d.cts +13 -13
  140. package/dist/testing/web/index.d.ts +13 -13
  141. package/dist/texting/index.cjs +40 -5
  142. package/dist/texting/index.d.cts +40 -7
  143. package/dist/texting/index.d.ts +40 -7
  144. package/dist/texting/index.js +40 -5
  145. package/dist/threadOptions.d-CnSfFVMr.d.cts +458 -0
  146. package/dist/threadOptions.d-DZ0AoQGk.d.ts +458 -0
  147. package/dist/{timelineRows.d-BNxgzYRW.d.cts → timelineRows.d-CF1KvLcQ.d.cts} +1 -1
  148. package/dist/{timelineRows.d-CU5GvvLk.d.ts → timelineRows.d-CtL0y7y1.d.ts} +1 -1
  149. package/dist/{tokens.d-DarDaV39.d.cts → tokens.d-BUVqme2D.d.cts} +1 -1
  150. package/dist/{tokens.d-DarDaV39.d.ts → tokens.d-BUVqme2D.d.ts} +1 -1
  151. package/dist/{typeStyle.d-C1HBRAI3.d.ts → typeStyle.d-B3Kdtjie.d.ts} +2 -2
  152. package/dist/{typeStyle.d-Bl8pzbBy.d.cts → typeStyle.d-DmlwyJq-.d.cts} +2 -2
  153. package/dist/useIntroSeen.d-CTWFUthO.d.cts +35 -0
  154. package/dist/useIntroSeen.d-CTWFUthO.d.ts +35 -0
  155. package/dist/usePresentation.d-BsR08Wxt.d.ts +285 -0
  156. package/dist/usePresentation.d-CZS0qlLI.d.cts +285 -0
  157. package/dist/{useRecords.d-Cb-36SF5.d.cts → useRecords.d-BYNX01El.d.cts} +2 -2
  158. package/dist/{useRecords.d-aQTzQZoV.d.ts → useRecords.d-DWk61a4c.d.ts} +2 -2
  159. package/dist/useRecordsDepth.d-DTAxFf5s.d.ts +32 -0
  160. package/dist/useRecordsDepth.d-k-zYIHTe.d.cts +32 -0
  161. package/dist/{view.d-C-SNpDJX.d.ts → view.d-BE7VOlsB.d.ts} +6 -4
  162. package/dist/{view.d-Dps5C8-s.d.cts → view.d-CAWQjcY_.d.cts} +6 -4
  163. package/dist/web/consent/index.d.cts +5 -5
  164. package/dist/web/consent/index.d.ts +5 -5
  165. package/dist/web/health-plan/index.cjs +65 -53
  166. package/dist/web/health-plan/index.d.cts +46 -192
  167. package/dist/web/health-plan/index.d.ts +46 -192
  168. package/dist/web/health-plan/index.js +79 -67
  169. package/dist/web/index.cjs +62 -46
  170. package/dist/web/index.d.cts +168 -27
  171. package/dist/web/index.d.ts +168 -27
  172. package/dist/web/index.js +63 -47
  173. package/dist/web/intro/index.cjs +167 -0
  174. package/dist/web/intro/index.d.cts +79 -0
  175. package/dist/web/intro/index.d.ts +79 -0
  176. package/dist/web/intro/index.js +167 -0
  177. package/dist/web/notifications/index.d.cts +3 -3
  178. package/dist/web/notifications/index.d.ts +3 -3
  179. package/dist/web/records/depth/index.d.cts +13 -9
  180. package/dist/web/records/depth/index.d.ts +13 -9
  181. package/dist/web/records/index.cjs +7 -7
  182. package/dist/web/records/index.d.cts +21 -82
  183. package/dist/web/records/index.d.ts +21 -82
  184. package/dist/web/records/index.js +7 -7
  185. package/dist/web/records-sheet/index.cjs +207 -128
  186. package/dist/web/records-sheet/index.d.cts +25 -16
  187. package/dist/web/records-sheet/index.d.ts +25 -16
  188. package/dist/web/records-sheet/index.js +207 -128
  189. package/dist/web/shop/index.cjs +194 -78
  190. package/dist/web/shop/index.d.cts +21 -4
  191. package/dist/web/shop/index.d.ts +21 -4
  192. package/dist/web/shop/index.js +194 -78
  193. package/dist/web/televet/booking/index.d.cts +7 -7
  194. package/dist/web/televet/booking/index.d.ts +7 -7
  195. package/dist/web/texting/index.cjs +36 -5
  196. package/dist/web/texting/index.d.cts +40 -7
  197. package/dist/web/texting/index.d.ts +40 -7
  198. package/dist/web/texting/index.js +36 -5
  199. package/package.json +36 -4
  200. package/tabs/package.json +8 -0
  201. package/web/intro/native-blocked.cjs +12 -0
  202. package/web/intro/package.json +8 -0
  203. package/dist/threadOptions.d-B1pTMmDF.d.cts +0 -260
  204. package/dist/threadOptions.d-B1pTMmDF.d.ts +0 -260
  205. package/dist/usePresentation.d-D6qsFzBz.d.cts +0 -9
  206. package/dist/usePresentation.d-DuGQe_Do.d.ts +0 -9
package/CHANGELOG.md CHANGED
@@ -10,6 +10,212 @@ changes that has not been earned by any production integration yet.
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.15.0] - 2026-10-22
14
+
15
+ ### Added
16
+
17
+ - **Health Plan from the page's own data (web and React Native).** The plan page's mapper now reads the waiting card
18
+ (`wait`, results not back), a pick with no product part at all (`pick.hidden`, with `none`: the everyday plan and the
19
+ waiting screen draw no product and no "no supplement" line), `subtitleNoRecords` (drawn while her vet records are
20
+ missing), the tips' `tone` and `icon`, every icon the layout draws, and More from Embark offers that name a plan
21
+ item (`productId`; `added` may be left out for them). Such an offer is drawn with the shop on or a checkout, at
22
+ its plan item's price when it states none, and Add puts it in the cart; when any offer names a plan item, the
23
+ plan's other items are no longer listed under the pick. In the tabs shells the waiting card's button opens Ask.
24
+ - **Tabs: results pending from the plan page (web and React Native).** With no `resultsPending` from you, the tabs
25
+ shells read it from the pet's Health Plan page: a page drawing its waiting card (`wait`) means her results are not
26
+ back, so Ask draws no focus card and no pill, offers your `pendingStarterPrompts`, and the intro uses its waiting
27
+ lines. Pass `resultsPending` to override it either way.
28
+ - **Records: the repeat-tap note (React Native).** As on the web, "Request from a clinic" tapped while a clinic
29
+ request for the pet is out opens no picker again and says "Requested from {clinic}. Clinics usually take 2 to 5
30
+ days." for 2.6s. "Another clinic" on the request tracker still asks a new clinic.
31
+ - **Raph's motion on the Health Plan.** His press scales (`:active`, generated from his CSS as `PLAN_PRESS` on the
32
+ web) and the cart badge bump (320ms, 1.25 at 40%, his ease-out on each keyframe), on web and React Native. His
33
+ overlays now move as his demo does, on both: sheets rise 320ms on his drawer curve and fall 220ms under a scrim
34
+ that fades 240ms in and 200ms out, pushed screens (cart, orders, an order) slide in 300ms and out 220ms, and the
35
+ toast fades in 220ms and out 160ms; each is kept drawn through its exit. Under reduced motion the bump does not
36
+ play, sheets and pushed screens fade 160ms in place, the scrim keeps its fade and the toast does not rise; the
37
+ press scales stay on both (his reduced-motion block keeps them) and on the web "See it" jumps instead of gliding. On React
38
+ Native the sheet's `Modal` no longer uses the platform slide (`animationType` is `none`).
39
+ - **Theme slots `planWash` and `planChip` (web and React Native).** A partner's own link washes for the Health Plan
40
+ (`backgroundColor` only: his `cyan-1` and chip tint), used on a light page in place of the mix of your link color
41
+ into the card. Unset, or on a dark page, the plan keeps the mix.
42
+ - **`PetStateRepository.getState` takes `maxAttempts`.** A reader that keeps its own retry schedule (the records
43
+ pet art) caps the read at that many attempts instead of the transport's default retries.
44
+
45
+ ### Changed
46
+
47
+ - **Records: the pet on grass in every state (web and React Native).** The records sheet draws the pet as our app's
48
+ Health tab does without any art from you: our grass, shipped by the SDK (on the web from `https://sdk.everfur.com`
49
+ at the package's version, on React Native from the same URL as an `Image` `{ uri }`, so no image is bundled and a
50
+ Jest setup needs no image transformer; a strip that does not load leaves the stage bare), and the pet's own breed
51
+ drawing from the new
52
+ `GET /widget/v1/pets/{pet_ref}/state`, with the web app's skeleton, monogram and fade-ins and the mobile app's hero
53
+ settle, all still under reduced motion. A `stage` you pass still wins (and `renderStage` on React Native). New
54
+ React Native option `handFontFamily` names the hand face for the line over the pet when you pass no `stage`. Web
55
+ pages that run records in-page add `https://sdk.everfur.com` and `https://media.everfur.com` to `img-src`; the
56
+ records frame carries both itself.
57
+
58
+ - **Health Plan: whole prices on More from Embark (web and React Native).** Those cards print a whole price without
59
+ cents (`$139`), as his demo does; every other price keeps its cents. A `priceFormat` you pass still wins.
60
+ - **Health Plan: icons from his sprite (web).** The plan's icons are generated from Raph's icon sprite, his paths and
61
+ stroke widths, in place of the SDK's hand-drawn set.
62
+ - **Health Plan: the reviews are one swipe row (web).** His reviews row scrolls and snaps side to side and is one
63
+ keyboard stop; its keyboard ring has his 18px corners, and on a wide screen it draws his thin scrollbar with 10px
64
+ under the cards.
65
+ - **Health Plan: the focus ring (web).** A plan control the keyboard reaches draws 2px of his ink, in its sheets and
66
+ pushed screens too, and none on a pointer press; the weight field draws his own 2.5px inset ring as it takes focus.
67
+ - **Health Plan: the vet comes only from the page (web).** The byline 0.14.0 drew on a vet-reviewed page whose
68
+ backend sent none is gone: a page with no byline draws none. React Native already drew only the page's.
69
+
70
+ ### Fixed
71
+
72
+ - **Shop: prescribed products first, whatever catalog page they are on.** `useShopScreen` (web and React Native
73
+ shops) reads the offers the member's ready prescriptions name by id and shows them above the catalog, which no
74
+ longer repeats them. A never-filled prescription gets its own shelf, "Prescribed for {pets}" (new
75
+ `ShopCopy.prescribedFor`, draft copy pending design), instead of "Refill soon"; refills keep "Refill soon".
76
+ - **Shop: drug-form tiles.** A prescription tile draws its form from the title or the prescription (tablet or
77
+ capsule: pill; liquid: flask; injection: syringe; chew: bowl; topical: shield), from the existing icon set. An
78
+ offer's https `image_url`, when the catalog sends one, is drawn over the tile once it loads; the tile stays while it
79
+ loads and when it fails.
80
+ - **Records: the pet card with no `stage`.** With no host art the records pet card no longer collapses to a cramped
81
+ top (seen at 393 and 1440): the stage is now drawn in every state.
82
+ - **Records: the sheet's stage pieces arrive when drawn late (web).** A piece mounted after the sheet opened (the
83
+ pet once its art loads) now fades in when it is seen instead of staying hidden, and the pet leans as the stage
84
+ scrolls. The grass and the chart line end their reveal on a zero inset, which Chrome animates. A grass strip that
85
+ does not load is hidden instead of drawing a broken image.
86
+ - **Health Plan: a pet with no plan items on a page that needs none (web and React Native).** A pending dog (the
87
+ waiting card) or the everyday plan now draws its page and keeps the Plan tab; any other pet with no items still has
88
+ no plan.
89
+ - **One plan page read per pet, across bundles.** The shared read is kept per runtime on `globalThis`, so the tabs
90
+ shell and a separately imported Health Plan share it, and it is shared for 60 seconds (the plan's staleness
91
+ window) instead of 5.
92
+
93
+ ## [0.14.0] - 2026-10-22
94
+
95
+ ### Added
96
+
97
+ - **Three tabs with a first-open intro (web).** New `EverfurTabs` (`@everfur/sdk/web`): Ask, Health Plan and Records
98
+ as WAI-ARIA tabs over panes that stay mounted, with `EverfurChat`, `EverfurHealthPlan` and `EverfurRecordsPage`
99
+ inside (their own props pass through `chat`, `plan` and `records`). The host says how the member got here with
100
+ `opened`: a plain open lands on Health Plan (Ask when the pet has no plan, whose tab then hides), a link opens the
101
+ tab it names and can ask a question. On a phone-narrow page the first plain open plays the intro over Ask once per
102
+ member: the tabs, the records ask with the clinic search, the consent and the request, and Sent. "Seen" lives on the
103
+ account (`GET` / `PUT /widget/v1/me/intro`), this device keeps a copy once it closes, and a failed read never plays
104
+ it. The intro is its own lazily loaded entry, `@everfur/sdk/web/intro`. Also exported: `useEverfurTabs` and the
105
+ `tabsRef` prop (`open`, `ask`, `requestRecords`), `EVERFUR_TABS_COPY`, and the `everfur:records-requested` /
106
+ `everfur:records-landed` window events with `onRecordsRequested` / `onRecordsLanded` (the window's requested event
107
+ leaves out `clinicName`, which any script on the page would hear; the callback carries it).
108
+ - **Ask home (web).** The compact composer sits 14px in from each side and 10px off the bar's foot, as Raph's
109
+ `.ph-askbar`; the Chats count is drawn only when there is at least one chat.
110
+ - **Three tabs with a first-open intro (React Native).** New subpath `@everfur/sdk/tabs`, the web shell's twin:
111
+ `EverfurTabs` over `EverfurChat`, `EverfurHealthPlan` and `EverfurRecords` (reached through their own subpaths, not
112
+ bundled), the same `opened` rule, panes that stay mounted, `tabsRef` / `useEverfurTabs` (`open`, `ask`,
113
+ `requestRecords`), `onTabChange`, `onRecordsRequested`, `onRecordsLanded` and `onToast`. The intro plays once per
114
+ member on the first plain open on a phone-sized window (`intro.maxWidth`, default 600), in a modal sheet whose
115
+ title takes the screen reader's focus; reduced motion fades it over 150ms. "Seen" is the same account read and
116
+ device copy as the web, and a failed read never plays it. Records' "Request from her clinic" opens the intro's
117
+ records sheet (`requestRecords`), the SDK consent screen kept between Request and Sent. Also exported:
118
+ `EverfurIntro`, `EverfurRecordsLandedBanner`, `useEverfurIntroSeen`, `EVERFUR_TABS_COPY`, `EVERFUR_INTRO_COPY` and
119
+ the intro's pure text helpers. The React Native compact Ask composer takes Raph's `.ph-askbar` insets (10, 14, 10).
120
+ - **Ask (React Native).** `EverfurChat` takes `header={false}`, the web prop's twin, for a screen that already has a
121
+ header over chat (the tab shell's host passes it). Inside `EverfurTabs` the chat takes no status-bar inset of its own.
122
+ Fixed: a staggered fade (the starter chips) could stay invisible when the OS reduced-motion setting arrived after
123
+ mount; it now comes to rest.
124
+ - **Ask home inside the tabs (React Native).** Inside `EverfurTabs` the chat draws Raph's round 5 Ask home from
125
+ generated rules (`scripts/gen-ask-home-rn.mjs`): his Chats row, focus card, and centred start with a balanced title
126
+ (his `16ch` measure, measured by layout) and chips. There, presentation `safetyDisclaimerPlacement: "answer_footer"`
127
+ moves the safety footnote to the foot of the thread, as on the web. The look rides in the tabs entry; a standalone
128
+ `EverfurChat` keeps its look and its size. New `EverfurPoweredBy` and `useHostPoweredBy` (`@everfur/sdk/chat`), the
129
+ web's twins: a host that shows "powered by everfur" in its own header wraps that lockup, and the chat leaves out its
130
+ own line. The tab shell passes the records sheet `onRequestFromClinic({ petRef })` and `noVet`.
131
+
132
+ - **The texting ask, in chat and as a pop-up (web and React Native).** `EverfurChat` now asks a member to turn on
133
+ texting by itself: after a completed answer (never a failed or stopped turn, a check-in or an urgent answer),
134
+ with nothing streaming, one Everfur line in the answer look with "Turn on SMS
135
+ Chat" / "Not now". Accepting turns the composer into the opt-in's number, consent and code steps, and a verified
136
+ number shows a closing line. New presentation field `chat_texting_ask` (`chatTextingAsk`, boolean, default `true`)
137
+ turns it off. New `EverfurTextingPrompt` (`@everfur/sdk/web/texting`, `@everfur/sdk/texting`) is the same ask as a
138
+ sheet for app open; whether to mount it is the partner's call. Both share one schedule, kept per member in the
139
+ provider's `storage`: at most three asks two days apart, never again once the member has an identity, and at most
140
+ one ask per session. Unreadable storage shows nothing, so a React Native host with no `storage` is never asked.
141
+ Also exported: `useTextingAsk`, `resolveTextingAskDue`, `textingAskThreadReady`, `isTextingAskEligible` and the
142
+ `TEXTING_ASK_*` constants. On the web the chat loads `@everfur/sdk/web/texting` lazily, only when the ask can show.
143
+ The hosted frame has no texting, so its chat never asks.
144
+ - **`EverfurTextingPrompt` is a centred card, and closing it hands the ask to the chat.** The pop-up now sits in the
145
+ middle of the screen with every corner rounded (it fades in on React Native), clear of a host's bottom navigation,
146
+ instead of a sheet from the bottom edge. Closing it ("Not now", Escape, the back gesture or a press outside) still
147
+ counts one ask, and the chat then shows its line once after the member's next completed answer in that session, as
148
+ the same ask. The chat's "Not now" restarts the two days without counting another ask.
149
+
150
+ - **Health Plan, Raph's round 5 (web and React Native).** The vet is one setting, drawn from the plan page's byline.
151
+ A plan that is missing records shows her three blanks card with its records facts, then "Asked" once the records
152
+ request is out and a one-time flash when they land. The tabs share two plan signals across entries
153
+ (`setHealthPlanNoVet` / `onHealthPlanNoVet`, `notifyHealthPlanRecordsLanded` / `onHealthPlanRecordsLanded`), so the
154
+ intro's no-vet choice and a landed request reach the plan. A pick whose pet has no weight yet keeps an empty dose
155
+ blank from the page's new `doseLabel`. The Manage sheet links to her orders. React Native draws Raph's plan icons
156
+ from a generated set (`RAPH_RN_PLAN_ICONS`), which the shop reuses.
157
+ - **Records follow our health tab (web and React Native).** On the web the records sheet follows our web app's health
158
+ tab at every width, phone and tablet tiers included: none, requested, processing and full, with the care rows, the
159
+ timeline count, the weight model and the sample peek. On React Native the sheet draws as our mobile app's Health
160
+ tab (`HubSections`): the pet hero and stage line, the request prompt and on-the-way tracker, weight, upcoming care,
161
+ record tiles and add-records card. A partial read failure shows a retry card, and the labs tile reads "--" while it
162
+ loads or fails. `RecordForwardItem` gains `careItemKey` and `dueDateSource`.
163
+ - **One first-open pop-up at a time.** While the tabs read "seen" and while the intro is up, `EverfurTextingPrompt`
164
+ waits; it may show after the intro closes.
165
+ - **`onRequestFromClinic` and `noVet` on the records surfaces.** New `EverfurRecordsPage` props (web) and
166
+ `EverfurRecordsSheetOptions` fields (React Native): `onRequestFromClinic` runs your own clinic request in place of
167
+ the records flow's clinic picker (on React Native it is told `{ petRef }`; a rejected promise is not reported), and
168
+ `noVet` gives the no-records title its no-vet words. `EverfurRecordsSheetOptions.active` (React Native, default
169
+ true) is for a host that keeps the sheet mounted while hidden: while false it takes no Android back. The tab shells
170
+ pass all three.
171
+
172
+ ### Changed
173
+
174
+ - The React Native records sheet's `copy` option is deprecated and ignored: its one field, `undatedPill`, is no longer
175
+ drawn.
176
+ - `HealthPlanFocusCopy` (web and React Native) gained required members for round 5 (`builtWith`, `fromVet`,
177
+ `callAVet`, `callYourVet`, `saveForCheckup`, `savedForCheckup`, `recordsLanded`, `noPick`, `signalsFit`,
178
+ `signalsValue`, `waitVetTips`, `blankEmpty` and the `blanks*` lines). A type-level change only for a host that
179
+ builds a whole `HealthPlanFocusCopy` object; a `Partial` override, as `copy` takes it, is unaffected.
180
+ - Default-on looks: `EverfurRecordsPage` (web) draws the sheet as our web app's health tab, and `EverfurRecords`
181
+ (React Native) as our mobile app's Health tab, with no new prop; the compact `EverfurChat` composer takes Raph's
182
+ `.ph-askbar` insets on both hosts. `sheet={false}` keeps the classic records page.
183
+ - The intro's "Upload a PDF or a photo instead" closes the intro and then runs the upload; inside the tabs with no
184
+ host upload it opens Records.
185
+ - Health Plan sheets close on Escape one layer at a time and move focus to their title; pushed screens (cart,
186
+ orders, order, placed) focus their own section on open.
187
+ - Bundle budgets: `@everfur/sdk/records` 145,900, `@everfur/sdk/health-plan` 72,200, `@everfur/sdk/shop` 79,800,
188
+ `@everfur/sdk/tabs` 47,200; web `index.js` 121,400, `web/records-sheet` 63,100, `web/health-plan` 69,800,
189
+ `web/intro` 33,500; `dist-cdn/records-frame.js` 257,300 bytes.
190
+
191
+ ### Fixed
192
+
193
+ - The texting pop-up also waits while the host is still reading who is signed in or its pets (at most 5 seconds,
194
+ phone-sized pages only), and one that opened before the intro steps aside while the intro plays.
195
+ - Records landing by any path, including `notifyHealthPlanRecordsLanded` from the host, clear the pet's no-vet state.
196
+ - Health Plan styles (web) are kept under React StrictMode: nodes mounted after the simulated unmount were unstyled.
197
+ - The intro (web) no longer mixes a `transition` shorthand with its longhands, which made React warn on close.
198
+ - The tabs (web and React Native) no longer hold the first-open pop-up for ever: a failed plan read, a probe or intro
199
+ chunk that does not load, or reads that take more than 5 seconds let the intro go for that open. On the web, when
200
+ the intro's chunk does not load, Records' "Request from her clinic" runs the records page's own clinic flow.
201
+ - No vet yet is set only when the member closes the intro from its no-vet frame, is kept per pet, and clears once a
202
+ clinic request is sent or her records are in.
203
+ - The intro (web) gives focus back once it is down: to the tab it closed onto inside `EverfurTabs`, else to where it
204
+ was.
205
+ - A Health Plan or records pane chunk that fails to download (web tabs) draws an empty pane instead of throwing up
206
+ the host's tree; while loading it is marked busy for assistive tech.
207
+ - A hidden Records tab (React Native) no longer takes the Android back from the screen the member is on.
208
+ - The records sheet (web and React Native) and the plan's three blanks catch their clock up when shown again and
209
+ hourly, instead of keeping the time of their first render.
210
+ - The tabs' toast (web) is announced: one live region stays mounted and the toast's words are written into it.
211
+ - A clinic picked again after Back in the intro reuses its idempotency key, so a send still on its way is not made
212
+ twice.
213
+ - The plan and intro signals shared on `globalThis` are checked for their shape and replaced when another script left
214
+ something else under the key.
215
+ - Health Plan: a vet-reviewed page whose backend sends no byline keeps 0.13.0's byline (web); a host passing
216
+ `recordsMissing` or `recordsBlanks` again reads no records, 0.13.0's rule (web and React Native); the vet's note
217
+ keeps a `kicker` from the wire for older hosts.
218
+
13
219
  ## [0.13.0] - 2026-10-21
14
220
 
15
221
  ### BREAKING
package/README.md CHANGED
@@ -59,11 +59,11 @@ shipping the minter to a device. Import it from your server only.
59
59
  ### On the web
60
60
 
61
61
  Two ways, one wire contract, documented in
62
- [docs/partner-integration/13-WEB-INTEGRATION.md](https://sdk.everfur.com/v1/docs/index.html#sec-web):
62
+ [docs/partner-integration/13-WEB-INTEGRATION.md](https://docs.everfur.com/web/):
63
63
 
64
64
  - **In-page**, for a page whose React tree you own: `import { EverfurProvider, EverfurChat } from
65
65
  '@everfur/sdk/web'` (peers: `react`, `react-dom`). The copy-paste shape is
66
- [`examples/minimal-web.tsx`](https://sdk.everfur.com/v1/docs/index.html#web--1-in-page-everfur-sdk-web). Take the `/web` entry, not the package root: the
66
+ [`examples/minimal-web.tsx`](https://docs.everfur.com/web/#web--1-in-page-everfur-sdk-web). Take the `/web` entry, not the package root: the
67
67
  root is the React Native entry and imports `react-native` and `react-native-safe-area-context`, so in a
68
68
  browser project it fails to resolve them rather than rendering. The `/web` entries need `react`,
69
69
  `react/jsx-runtime` and `zod` and nothing native, which `npm run verify:pack` proves on every CI run by
@@ -71,7 +71,7 @@ Two ways, one wire contract, documented in
71
71
  - **Frame mode**, for a page you do not fully control (a storefront theme, a CMS page): one `<script
72
72
  src="https://sdk.everfur.com/v1/everfur.js">` puts the surface in an iframe on `sdk.everfur.com`, and
73
73
  the frame refuses to initialise on any page origin your tenant has not registered. The copy-paste shape
74
- is [`examples/frame-embed.html`](https://sdk.everfur.com/v1/docs/index.html#web--the-snippet).
74
+ is [`examples/frame-embed.html`](https://docs.everfur.com/web/#web--the-snippet).
75
75
 
76
76
  Chat and records are the web surfaces (records on its own subpath and its own frame document, available
77
77
  when Everfur enables records for your account); photo and video remain React Native for now. Vet visits (available when Everfur enables them for your
@@ -83,7 +83,7 @@ and the call (`@everfur/sdk/televet/call`, `@everfur/sdk/web/televet/call`) are
83
83
  are loaded on demand, so a page where nobody opens a visit downloads neither and a page where nobody joins takes
84
84
  no WebRTC dependency; on React Native both are static imports in the same bundle (the WebRTC stack is the native
85
85
  module your app registers with `registerEverfurDaily`).
86
- [docs/partner-integration/16-TELEVET-VISITS.md](https://sdk.everfur.com/v1/docs/index.html#sec-televet).
86
+ [docs/partner-integration/16-TELEVET-VISITS.md](https://docs.everfur.com/vet-visits/).
87
87
 
88
88
  ## Quickstart
89
89
 
@@ -197,16 +197,17 @@ off-state, never a blank region.
197
197
  | --- | --- |
198
198
  | `@everfur/sdk` | `EverfurProvider`, `CapabilityGate`, `EverfurChat`, `useEverfurChat`, `CapabilityName`, error/result types, branded id helpers (`petRef`, `userRef`, `conversationId`) |
199
199
  | `@everfur/sdk/records` | `EverfurRecords` (the Everfur app's records flow), the named screens (`EverfurRecordsUpload`, `EverfurRecordsRequests`, `EverfurRecordsRequest`, `EverfurRecordDetail`, ...), `EverfurClinicRequest`, `EverfurClinicRequestBatch`, `SignaturePad`, records hooks + types |
200
- | `@everfur/sdk/records/depth`, `@everfur/sdk/web/records/depth` | record depth (the timeline, the withheld record sections, per-document contributions) on their own entries, dark until Everfur enables it per deployment; see [chapter 9](https://sdk.everfur.com/v1/docs/index.html#records--record-depth-behind-a-separate-switch) |
200
+ | `@everfur/sdk/records/depth`, `@everfur/sdk/web/records/depth` | record depth (the timeline, the withheld record sections, per-document contributions) on their own entries, dark until Everfur enables it per deployment; see [chapter 9](https://docs.everfur.com/records/#records--record-depth-behind-a-separate-switch) |
201
201
  | `@everfur/sdk/video` | gait / live-scan surface |
202
202
  | `@everfur/sdk/photo` | photo checkup surface |
203
203
  | `@everfur/sdk/animations` | server-driven pet-state media surface |
204
- | `@everfur/sdk/web` | the browser entry: `EverfurProvider`, `CapabilityGate`, `EverfurChat`, `useEverfurChat`, the theme hook, rendered with `react-dom`; withheld from React Native bundles the way `./server` is |
205
- | `@everfur/sdk/web/records` | records for a browser host: `EverfurRecordsPage` (the Everfur web app's records page, complete on its own: request from a clinic, upload, request status, the full record with vaccinations, all inside your page), the named screens, `EverfurRecords` (the React Native-shaped flow), `useEverfurRecords`, `createWebRecordsUploadTransport`, `fileToHandle`; its own entry, withheld from React Native like `./web`; available when Everfur enables records for the account. Frame mode serves it with `surface: 'records'` (see [chapter 13](https://sdk.everfur.com/v1/docs/index.html#web--2-frame-mode-the-loader-and-the-frame)) |
206
- | `@everfur/sdk/web/records-sheet` | `recordsSheet()`: the v3 records sheet and its lab result screen, `EverfurRecordsPage`'s default look (loaded on first mount; `sheet={false}` keeps the classic page, which downloads none of it), or built with options and passed to its `sheet` prop; withheld from React Native like `./web`; see [chapter 13](https://sdk.everfur.com/v1/docs/index.html#web--records-everfur-sdk-web-records) |
204
+ | `@everfur/sdk/web` | the browser entry: `EverfurProvider`, `CapabilityGate`, `EverfurChat`, `useEverfurChat`, `EverfurTabs` (Ask, Health Plan and Records in one shell, with the first-open intro), the theme hook, rendered with `react-dom`; withheld from React Native bundles the way `./server` is |
205
+ | `@everfur/sdk/web/records` | records for a browser host: `EverfurRecordsPage` (the Everfur web app's records page, complete on its own: request from a clinic, upload, request status, the full record with vaccinations, all inside your page), the named screens, `EverfurRecords` (the React Native-shaped flow), `useEverfurRecords`, `createWebRecordsUploadTransport`, `fileToHandle`; its own entry, withheld from React Native like `./web`; available when Everfur enables records for the account. Frame mode serves it with `surface: 'records'` (see [chapter 13](https://docs.everfur.com/web/#web--2-frame-mode-the-loader-and-the-frame)) |
206
+ | `@everfur/sdk/web/records-sheet` | `recordsSheet()`: the v3 records sheet and its lab result screen, `EverfurRecordsPage`'s default look (loaded on first mount; `sheet={false}` keeps the classic page, which downloads none of it), or built with options and passed to its `sheet` prop; withheld from React Native like `./web`; see [chapter 13](https://docs.everfur.com/web/#web--records-everfur-sdk-web-records) |
207
+ | `@everfur/sdk/web/intro` | the first-open intro `EverfurTabs` plays on a phone-narrow page (`EverfurIntro`, its clinic request frames, `EverfurRecordsLandedBanner`, `useEverfurIntroSeen`), downloaded only when it plays; withheld from React Native like `./web`; see [chapter 13](https://docs.everfur.com/web/#web--three-tabs-everfurtabs) |
207
208
  | `@everfur/sdk/web/records/upload` | `createWebRecordsUploadTransport` alone, for the `uploadTransport` on the provider config at your app root; the same function `@everfur/sdk/web/records` exports, without the records entry |
208
209
  | `@everfur/sdk/server` | **server-only** `mintPartnerSession`, `revokePartnerMemberSessions` (end one member's sessions now) and the partner pet helpers (no React Native resolution; never bundled on-device) |
209
- | `@everfur/sdk/server/events` | **server-only, Node only** partner events (preview): `constructEvent` to verify webhooks, `sendPartnerEvent`; see [chapter 15](https://sdk.everfur.com/v1/docs/index.html#sec-events) |
210
+ | `@everfur/sdk/server/events` | **server-only, Node only** partner events (preview): `constructEvent` to verify webhooks, `sendPartnerEvent`; see [chapter 15](https://docs.everfur.com/webhooks/) |
210
211
  | `@everfur/sdk/testing`, `@everfur/sdk/testing/rn`, `@everfur/sdk/testing/web` | test seams (`MockTransport`, `useEverfurTestEntitlements`, ...) for your own tests |
211
212
 
212
213
  `@everfur/sdk/client` and `@everfur/sdk/core` expose the framework-free layers for advanced integrators;
@@ -215,7 +216,7 @@ most apps only need the root entry plus the capability subpaths.
215
216
  ## Reference app
216
217
 
217
218
  A full, runnable integration (a fictional "Pawtrail" app plus a minimal mint backend that holds the secret)
218
- lives at [`examples/minimal-integration.tsx`](https://sdk.everfur.com/v1/docs/index.html#sec-quickstart) in this repository; it is
219
+ lives at [`examples/minimal-integration.tsx`](https://docs.everfur.com/quickstart/) in this repository; it is
219
220
  type-checked by `npm run docs:check`, so it cannot rot. It shows anonymous mode, the two-credential session
220
221
  mint, pet registration and sign-out. (A separate `everfur-integration-example-rn` app exists internally but
221
222
  is not published anywhere a partner can reach, so do not rely on references to it.) It gates every
@@ -1,11 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.cjs';
4
- import { i as EverfurPresentationInput } from './presentation.d-DMbdad7G.cjs';
5
- import { a as ChatCheckinTarget } from './ports.d-CEROoqnA.cjs';
6
- import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-lp1BHRqM.cjs';
7
- import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, c as EverfurStarterPrompt } from './attachments.d-Bp2qbHxn.cjs';
4
+ import { i as EverfurPresentationInput } from './presentation.d-vy8kTGfR.cjs';
5
+ import { a as ChatCheckinTarget } from './ports.d-gZNTn8Qf.cjs';
6
+ import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-B5DWzU7C.cjs';
7
+ import { E as EverfurStarterPrompt } from './quickPrompts.d-NM_81Jc1.cjs';
8
8
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
9
+ import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore } from './attachments.d-CpaOfi2g.cjs';
9
10
  import { F as FileHandle } from './ports.d-BX4f4UsB.cjs';
10
11
 
11
12
  /** Where a picked image comes from: the host's photo library, or its camera. */
@@ -311,6 +312,13 @@ interface EverfurChatProps {
311
312
  readonly starterPrompts?: readonly EverfurStarterPrompt[];
312
313
  /** The empty thread's title and chip fills. */
313
314
  readonly emptyState?: EverfurChatEmptyState;
315
+ /**
316
+ * Whether the surface draws its own header bar (the history control, the pet and its switcher, the vet entry).
317
+ * Default `true`. Pass `false` when your own screen already has a header over chat (the web surface's `header`):
318
+ * the thread, the urgency banner and the composer are unchanged. Without the header, the history bar
319
+ * (`historyBar`) is the way into past chats.
320
+ */
321
+ readonly header?: boolean;
314
322
  }
315
323
  /**
316
324
  * Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState;
@@ -1,11 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.js';
4
- import { i as EverfurPresentationInput } from './presentation.d-DMbdad7G.js';
5
- import { a as ChatCheckinTarget } from './ports.d-COIyN624.js';
6
- import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-BuGHymNx.js';
7
- import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, c as EverfurStarterPrompt } from './attachments.d-Djy9z_0Z.js';
4
+ import { i as EverfurPresentationInput } from './presentation.d-vy8kTGfR.js';
5
+ import { a as ChatCheckinTarget } from './ports.d-BDtwHxmW.js';
6
+ import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-Ba3xhJcj.js';
7
+ import { E as EverfurStarterPrompt } from './quickPrompts.d-NM_81Jc1.js';
8
8
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
9
+ import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore } from './attachments.d-BGn2_knv.js';
9
10
  import { F as FileHandle } from './ports.d-BX4f4UsB.js';
10
11
 
11
12
  /** Where a picked image comes from: the host's photo library, or its camera. */
@@ -311,6 +312,13 @@ interface EverfurChatProps {
311
312
  readonly starterPrompts?: readonly EverfurStarterPrompt[];
312
313
  /** The empty thread's title and chip fills. */
313
314
  readonly emptyState?: EverfurChatEmptyState;
315
+ /**
316
+ * Whether the surface draws its own header bar (the history control, the pet and its switcher, the vet entry).
317
+ * Default `true`. Pass `false` when your own screen already has a header over chat (the web surface's `header`):
318
+ * the thread, the urgency banner and the composer are unchanged. Without the header, the history bar
319
+ * (`historyBar`) is the way into past chats.
320
+ */
321
+ readonly header?: boolean;
314
322
  }
315
323
  /**
316
324
  * Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import { d as RecordsScreenBaseProps } from './useRecordsDepth.d-DFcCfiXm.js';
3
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B1dIANI0.cjs';
4
4
 
5
5
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
6
6
  readonly style?: StyleProp<ViewStyle>;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import { d as RecordsScreenBaseProps } from './useRecordsDepth.d-sAq2Qkhr.cjs';
3
+ import { c as RecordsScreenBaseProps } from './screenProps.d-CVqFJw-J.js';
4
4
 
5
5
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
6
6
  readonly style?: StyleProp<ViewStyle>;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { d as RecordsScreenBaseProps } from './useRecordsDepth.d-DFcCfiXm.js';
2
+ import { c as RecordsScreenBaseProps } from './screenProps.d-CVqFJw-J.js';
3
3
 
4
4
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
5
5
  readonly style?: CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { d as RecordsScreenBaseProps } from './useRecordsDepth.d-sAq2Qkhr.cjs';
2
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B1dIANI0.cjs';
3
3
 
4
4
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
5
5
  readonly style?: CSSProperties;
@@ -0,0 +1,93 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-CjsMg_OD.js';
3
+ import { R as RecordsController } from './useRecords.d-DWk61a4c.js';
4
+ import { c as RecordForwardItem } from './models.d-DOwnr8fi.js';
5
+ import { c as RecordsScreenBaseProps } from './screenProps.d-CVqFJw-J.js';
6
+ import { E as EverfurRecordsSheet } from './sheetSeam.d-B09jf4YC.js';
7
+
8
+ interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
9
+ readonly controller?: RecordsController;
10
+ /** Host/test seam over the clinic controller the `Request records` sheet uses. */
11
+ readonly clinicController?: RecordsClinicController;
12
+ readonly consentVersion?: string;
13
+ /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
14
+ readonly consentText?: string;
15
+ /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
16
+ readonly ownerName?: string;
17
+ /** A host signature component for the clinic authorization, instead of the built-in canvas. */
18
+ readonly onCaptureSignature?: CaptureRecordsSignature;
19
+ /**
20
+ * The heading level this page's title claims. Defaults to 2.
21
+ *
22
+ * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
23
+ * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
24
+ * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
25
+ * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
26
+ */
27
+ readonly headingLevel?: number;
28
+ readonly style?: CSSProperties;
29
+ readonly className?: string;
30
+ readonly renderPending?: () => ReactNode;
31
+ /**
32
+ * Show the record's upcoming care (rechecks, vaccinations due) as its own card on the page, under the header.
33
+ * Default `false`: upcoming care shows only inside the full record (`Visits & records`), as before.
34
+ */
35
+ readonly upcomingCare?: boolean;
36
+ /**
37
+ * Only with `upcomingCare`: your own control at the end of each upcoming-care row (for example your vet entry).
38
+ * Called once per row with that item; return null for a row without one. Absent, the rows have no action.
39
+ */
40
+ readonly renderUpcomingCareAction?: (item: RecordForwardItem) => ReactNode;
41
+ /**
42
+ * Draw the Records & history tiles under the header: `Labs & bloodwork` (opens the pet's lab markers on the page,
43
+ * drawn only while there are markers), `Screenings` (only with `onOpenScreenings`), `Visits & records` and
44
+ * `Timeline`. Default `false`: the header's two links, as before.
45
+ */
46
+ readonly historyTiles?: boolean;
47
+ /**
48
+ * Where the `Screenings` tile goes. The sheet always draws that tile, as the Everfur web app does: "All clear" or
49
+ * "N to review" over the pet's screening results (its lab markers with a result word), or "No screenings yet";
50
+ * absent, it opens the screening's marker on the page, and with none on file it is not a button. With
51
+ * `historyTiles`, absent means no tile.
52
+ */
53
+ readonly onOpenScreenings?: () => void;
54
+ /**
55
+ * The page's look. By default (absent) it is the records sheet, our web app's health tab: the pet's vitals, upcoming
56
+ * care, the Records & History tiles, weight, medications, the history timeline and the ways to add records, or its
57
+ * no-records screen.
58
+ * The page loads it from `@everfur/sdk/web/records-sheet` (its own subpath) while showing its loading state; pass
59
+ * `recordsSheet(options)` from that subpath to set options, or `false` for the classic page (which then downloads
60
+ * none of the sheet). The same flows sit behind every look (clinic request with its consent and signature, upload,
61
+ * the full record). With the sheet, `upcomingCare` and `historyTiles` are implied and `renderUpcomingCareAction`
62
+ * fills the overdue row.
63
+ */
64
+ readonly sheet?: EverfurRecordsSheet | false;
65
+ /** With the sheet: the unit a weight shows in first, `'lb'` (the default) or `'kg'`. */
66
+ readonly weightUnit?: 'lb' | 'kg';
67
+ /** With the sheet: opens the pet's Health Plan (your tab or screen), the top risk line's button. */
68
+ readonly onOpenPlan?: () => void;
69
+ /**
70
+ * Your own entry to a clinic request, run by "Request from her clinic" (the sheet) and `Request records` (the
71
+ * classic page) in place of the page's clinic flow (its picker, consent and signature, the default). Use it when
72
+ * your page already asks which clinic and confirms it was sent. Return a promise that settles once the request
73
+ * is sent and the page re-reads the member's requests, so its "on the way" line shows it. While a clinic request
74
+ * is out, the sheet's "Request from her clinic" only says it was requested there and calls neither.
75
+ */
76
+ readonly onRequestFromClinic?: () => void | Promise<unknown>;
77
+ /**
78
+ * With the sheet: the member told you the pet has no vet yet (for example in your intro). The no-records title
79
+ * then reads "When Georgia has a vet, start here."; the ways to add records stay as they are.
80
+ */
81
+ readonly noVet?: boolean;
82
+ }
83
+ /**
84
+ * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
85
+ *
86
+ * Complete on its own: request records from a clinic (consent and signature), upload records the
87
+ * member already has, every request with its status and documents, and the full record with its
88
+ * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
89
+ * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
90
+ */
91
+ declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
92
+
93
+ export { type EverfurRecordsPageProps as E, EverfurRecordsPage as a };
@@ -0,0 +1,93 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-1dCtouGA.cjs';
3
+ import { R as RecordsController } from './useRecords.d-BYNX01El.cjs';
4
+ import { c as RecordForwardItem } from './models.d-BSqvbTE1.cjs';
5
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B1dIANI0.cjs';
6
+ import { E as EverfurRecordsSheet } from './sheetSeam.d-BBuEIVsa.cjs';
7
+
8
+ interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
9
+ readonly controller?: RecordsController;
10
+ /** Host/test seam over the clinic controller the `Request records` sheet uses. */
11
+ readonly clinicController?: RecordsClinicController;
12
+ readonly consentVersion?: string;
13
+ /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
14
+ readonly consentText?: string;
15
+ /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
16
+ readonly ownerName?: string;
17
+ /** A host signature component for the clinic authorization, instead of the built-in canvas. */
18
+ readonly onCaptureSignature?: CaptureRecordsSignature;
19
+ /**
20
+ * The heading level this page's title claims. Defaults to 2.
21
+ *
22
+ * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
23
+ * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
24
+ * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
25
+ * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
26
+ */
27
+ readonly headingLevel?: number;
28
+ readonly style?: CSSProperties;
29
+ readonly className?: string;
30
+ readonly renderPending?: () => ReactNode;
31
+ /**
32
+ * Show the record's upcoming care (rechecks, vaccinations due) as its own card on the page, under the header.
33
+ * Default `false`: upcoming care shows only inside the full record (`Visits & records`), as before.
34
+ */
35
+ readonly upcomingCare?: boolean;
36
+ /**
37
+ * Only with `upcomingCare`: your own control at the end of each upcoming-care row (for example your vet entry).
38
+ * Called once per row with that item; return null for a row without one. Absent, the rows have no action.
39
+ */
40
+ readonly renderUpcomingCareAction?: (item: RecordForwardItem) => ReactNode;
41
+ /**
42
+ * Draw the Records & history tiles under the header: `Labs & bloodwork` (opens the pet's lab markers on the page,
43
+ * drawn only while there are markers), `Screenings` (only with `onOpenScreenings`), `Visits & records` and
44
+ * `Timeline`. Default `false`: the header's two links, as before.
45
+ */
46
+ readonly historyTiles?: boolean;
47
+ /**
48
+ * Where the `Screenings` tile goes. The sheet always draws that tile, as the Everfur web app does: "All clear" or
49
+ * "N to review" over the pet's screening results (its lab markers with a result word), or "No screenings yet";
50
+ * absent, it opens the screening's marker on the page, and with none on file it is not a button. With
51
+ * `historyTiles`, absent means no tile.
52
+ */
53
+ readonly onOpenScreenings?: () => void;
54
+ /**
55
+ * The page's look. By default (absent) it is the records sheet, our web app's health tab: the pet's vitals, upcoming
56
+ * care, the Records & History tiles, weight, medications, the history timeline and the ways to add records, or its
57
+ * no-records screen.
58
+ * The page loads it from `@everfur/sdk/web/records-sheet` (its own subpath) while showing its loading state; pass
59
+ * `recordsSheet(options)` from that subpath to set options, or `false` for the classic page (which then downloads
60
+ * none of the sheet). The same flows sit behind every look (clinic request with its consent and signature, upload,
61
+ * the full record). With the sheet, `upcomingCare` and `historyTiles` are implied and `renderUpcomingCareAction`
62
+ * fills the overdue row.
63
+ */
64
+ readonly sheet?: EverfurRecordsSheet | false;
65
+ /** With the sheet: the unit a weight shows in first, `'lb'` (the default) or `'kg'`. */
66
+ readonly weightUnit?: 'lb' | 'kg';
67
+ /** With the sheet: opens the pet's Health Plan (your tab or screen), the top risk line's button. */
68
+ readonly onOpenPlan?: () => void;
69
+ /**
70
+ * Your own entry to a clinic request, run by "Request from her clinic" (the sheet) and `Request records` (the
71
+ * classic page) in place of the page's clinic flow (its picker, consent and signature, the default). Use it when
72
+ * your page already asks which clinic and confirms it was sent. Return a promise that settles once the request
73
+ * is sent and the page re-reads the member's requests, so its "on the way" line shows it. While a clinic request
74
+ * is out, the sheet's "Request from her clinic" only says it was requested there and calls neither.
75
+ */
76
+ readonly onRequestFromClinic?: () => void | Promise<unknown>;
77
+ /**
78
+ * With the sheet: the member told you the pet has no vet yet (for example in your intro). The no-records title
79
+ * then reads "When Georgia has a vet, start here."; the ways to add records stay as they are.
80
+ */
81
+ readonly noVet?: boolean;
82
+ }
83
+ /**
84
+ * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
85
+ *
86
+ * Complete on its own: request records from a clinic (consent and signature), upload records the
87
+ * member already has, every request with its status and documents, and the full record with its
88
+ * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
89
+ * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
90
+ */
91
+ declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
92
+
93
+ export { type EverfurRecordsPageProps as E, EverfurRecordsPage as a };