@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
@@ -0,0 +1,155 @@
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 { ReactNode } from 'react';
3
+ import { P as PetRef } from '../ids.d-B2GAAifq.cjs';
4
+ import { StyleProp, ViewStyle } from 'react-native';
5
+ import { H as HealthPlanItem } from '../healthPlanRepository.d-fPbLceBr.cjs';
6
+ import { H as HealthPlanPriceFormat } from '../layout.d-ByfOEhpG.cjs';
7
+ import '../EverfurResult.d-BFH-3s6E.cjs';
8
+ import '../EverfurError.d-8NHtlgzA.cjs';
9
+ import '../requestFunnel.d-BwO-jFLX.cjs';
10
+ import '../ErrorPolicyPort.d-DirW9hgO.cjs';
11
+ import '../config.d-Ba21AaZg.cjs';
12
+ import '../identity.d-_MK9Y7a4.cjs';
13
+ import '../LifecyclePort.d-Cr1p33a7.cjs';
14
+
15
+ /**
16
+ * Where an action came from: the slot, the part's id and the drawn item's key.
17
+ *
18
+ * @public
19
+ */
20
+ interface SlotActionContext {
21
+ /** The slot's name. */
22
+ readonly slot: string;
23
+ /** The part's id in the document. */
24
+ readonly part: string;
25
+ /** The drawn block's key: the item's key and its place in the list. */
26
+ readonly key: string;
27
+ }
28
+ /**
29
+ * What a slot's actions call. A `navigate:` or `open_sheet:` action with no handler does nothing; an `external:` one
30
+ * opens the allowlisted URL through `onOpenUrl`, else React Native's `Linking`.
31
+ *
32
+ * @public
33
+ */
34
+ interface SlotActionHandlers {
35
+ /** `navigate:<route>`: your navigation. */
36
+ readonly onNavigate?: (route: string, context: SlotActionContext) => void;
37
+ /** `open_sheet:<id>`: a sheet your app owns. */
38
+ readonly onOpenSheet?: (id: string, context: SlotActionContext) => void;
39
+ /** `external:<url>`: an https page on everfur.com, www.everfur.com or docs.everfur.com. */
40
+ readonly onOpenUrl?: (url: string) => void;
41
+ }
42
+
43
+ /**
44
+ * Props of {@link Slot}.
45
+ *
46
+ * @public
47
+ */
48
+ interface SlotProps extends SlotActionHandlers {
49
+ /** The slot, for example `today.health`, `health_plan.focus`, `shop.shelf`, `shop.cart` or `shop.orders`. */
50
+ readonly name: string;
51
+ /** The pet; omit it for the provider's active pet. */
52
+ readonly petRef?: PetRef | null;
53
+ /** Prices and dates in this locale; defaults to the device's. */
54
+ readonly locale?: string;
55
+ /**
56
+ * Read the slot's document from Everfur. Unset: the console's `server_slots` setting, else off. The tenant's lock
57
+ * wins over your value.
58
+ */
59
+ readonly serverSlots?: boolean;
60
+ }
61
+ /**
62
+ * A region filled with the parts Everfur's document for the slot names. Draws nothing for a slot with no bundled
63
+ * default until a server document lands, and nothing while its data loads.
64
+ *
65
+ * @public
66
+ */
67
+ declare function Slot(props: SlotProps): ReactNode;
68
+
69
+ /**
70
+ * Props of the named parts.
71
+ *
72
+ * @public
73
+ */
74
+ interface EverfurPartProps {
75
+ /** The pet; omit it for the provider's active pet. */
76
+ readonly petRef?: PetRef | null;
77
+ /** Prices and dates in this locale; defaults to the device's. */
78
+ readonly locale?: string;
79
+ }
80
+ /**
81
+ * The Health Plan focus card: the pet's need with the vet's note.
82
+ *
83
+ * @public
84
+ */
85
+ declare function HealthPlanFocusPart(props: EverfurPartProps): ReactNode;
86
+ /**
87
+ * Every Health Plan need, one card each.
88
+ *
89
+ * @public
90
+ */
91
+ declare function HealthPlanNeedsPart(props: EverfurPartProps): ReactNode;
92
+ /**
93
+ * The Health Plan's free tips, one card each.
94
+ *
95
+ * @public
96
+ */
97
+ declare function HealthPlanTipsPart(props: EverfurPartProps): ReactNode;
98
+ /**
99
+ * The pet's ranked products.
100
+ *
101
+ * @public
102
+ */
103
+ declare function ShopProductShelfPart(props: EverfurPartProps): ReactNode;
104
+ /**
105
+ * The cart's lines and subtotal.
106
+ *
107
+ * @public
108
+ */
109
+ declare function ShopCartSummaryPart(props: EverfurPartProps): ReactNode;
110
+ /**
111
+ * The pet's recent Everfur orders.
112
+ *
113
+ * @public
114
+ */
115
+ declare function ShopRecentOrdersPart(props: EverfurPartProps): ReactNode;
116
+ /**
117
+ * Props of {@link HealthPlanCartBarPart}.
118
+ *
119
+ * @public
120
+ */
121
+ interface HealthPlanCartBarPartProps {
122
+ /** The pet; omit it for the provider's active pet. */
123
+ readonly petRef?: PetRef | null;
124
+ /** Called with the items in the cart when the member presses checkout. A throw is swallowed. */
125
+ readonly onCheckout?: (items: readonly HealthPlanItem[]) => void;
126
+ /** How the subtotal reads (locale, and whether a whole amount drops its zero cents). */
127
+ readonly priceFormat?: HealthPlanPriceFormat;
128
+ /** The bar's own style, after its defaults. */
129
+ readonly style?: StyleProp<ViewStyle>;
130
+ }
131
+ /**
132
+ * The Health Plan cart bar (the count, the subtotal and checkout), while the plan holds items.
133
+ *
134
+ * @public
135
+ */
136
+ declare function HealthPlanCartBarPart(props: HealthPlanCartBarPartProps): ReactNode;
137
+
138
+ /**
139
+ * Every slot and named part under one name: `<Everfur.Slot name="today.health" />`,
140
+ * `<Everfur.HealthPlanFocus petRef={petRef} />`.
141
+ *
142
+ * @public
143
+ */
144
+ declare const Everfur: Readonly<{
145
+ Slot: typeof Slot;
146
+ HealthPlanFocus: typeof HealthPlanFocusPart;
147
+ HealthPlanNeeds: typeof HealthPlanNeedsPart;
148
+ HealthPlanTips: typeof HealthPlanTipsPart;
149
+ HealthPlanCartBar: typeof HealthPlanCartBarPart;
150
+ ShopProductShelf: typeof ShopProductShelfPart;
151
+ ShopCartSummary: typeof ShopCartSummaryPart;
152
+ ShopRecentOrders: typeof ShopRecentOrdersPart;
153
+ }>;
154
+
155
+ export { Everfur, type EverfurPartProps, HealthPlanCartBarPart, type HealthPlanCartBarPartProps, HealthPlanFocusPart, HealthPlanItem, HealthPlanNeedsPart, HealthPlanPriceFormat, HealthPlanTipsPart, PetRef, ShopCartSummaryPart, ShopProductShelfPart, ShopRecentOrdersPart, Slot, type SlotActionContext, type SlotActionHandlers, type SlotProps };
@@ -0,0 +1,155 @@
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 { ReactNode } from 'react';
3
+ import { P as PetRef } from '../ids.d-B2GAAifq.js';
4
+ import { StyleProp, ViewStyle } from 'react-native';
5
+ import { H as HealthPlanItem } from '../healthPlanRepository.d-CdCyUWph.js';
6
+ import { H as HealthPlanPriceFormat } from '../layout.d-D3d4QMeO.js';
7
+ import '../EverfurResult.d-D_-254ZY.js';
8
+ import '../EverfurError.d-8NHtlgzA.js';
9
+ import '../requestFunnel.d-LSnmCusf.js';
10
+ import '../ErrorPolicyPort.d-68yrE3BE.js';
11
+ import '../config.d--6siaeNg.js';
12
+ import '../identity.d-B7dPRGqm.js';
13
+ import '../LifecyclePort.d-Cr1p33a7.js';
14
+
15
+ /**
16
+ * Where an action came from: the slot, the part's id and the drawn item's key.
17
+ *
18
+ * @public
19
+ */
20
+ interface SlotActionContext {
21
+ /** The slot's name. */
22
+ readonly slot: string;
23
+ /** The part's id in the document. */
24
+ readonly part: string;
25
+ /** The drawn block's key: the item's key and its place in the list. */
26
+ readonly key: string;
27
+ }
28
+ /**
29
+ * What a slot's actions call. A `navigate:` or `open_sheet:` action with no handler does nothing; an `external:` one
30
+ * opens the allowlisted URL through `onOpenUrl`, else React Native's `Linking`.
31
+ *
32
+ * @public
33
+ */
34
+ interface SlotActionHandlers {
35
+ /** `navigate:<route>`: your navigation. */
36
+ readonly onNavigate?: (route: string, context: SlotActionContext) => void;
37
+ /** `open_sheet:<id>`: a sheet your app owns. */
38
+ readonly onOpenSheet?: (id: string, context: SlotActionContext) => void;
39
+ /** `external:<url>`: an https page on everfur.com, www.everfur.com or docs.everfur.com. */
40
+ readonly onOpenUrl?: (url: string) => void;
41
+ }
42
+
43
+ /**
44
+ * Props of {@link Slot}.
45
+ *
46
+ * @public
47
+ */
48
+ interface SlotProps extends SlotActionHandlers {
49
+ /** The slot, for example `today.health`, `health_plan.focus`, `shop.shelf`, `shop.cart` or `shop.orders`. */
50
+ readonly name: string;
51
+ /** The pet; omit it for the provider's active pet. */
52
+ readonly petRef?: PetRef | null;
53
+ /** Prices and dates in this locale; defaults to the device's. */
54
+ readonly locale?: string;
55
+ /**
56
+ * Read the slot's document from Everfur. Unset: the console's `server_slots` setting, else off. The tenant's lock
57
+ * wins over your value.
58
+ */
59
+ readonly serverSlots?: boolean;
60
+ }
61
+ /**
62
+ * A region filled with the parts Everfur's document for the slot names. Draws nothing for a slot with no bundled
63
+ * default until a server document lands, and nothing while its data loads.
64
+ *
65
+ * @public
66
+ */
67
+ declare function Slot(props: SlotProps): ReactNode;
68
+
69
+ /**
70
+ * Props of the named parts.
71
+ *
72
+ * @public
73
+ */
74
+ interface EverfurPartProps {
75
+ /** The pet; omit it for the provider's active pet. */
76
+ readonly petRef?: PetRef | null;
77
+ /** Prices and dates in this locale; defaults to the device's. */
78
+ readonly locale?: string;
79
+ }
80
+ /**
81
+ * The Health Plan focus card: the pet's need with the vet's note.
82
+ *
83
+ * @public
84
+ */
85
+ declare function HealthPlanFocusPart(props: EverfurPartProps): ReactNode;
86
+ /**
87
+ * Every Health Plan need, one card each.
88
+ *
89
+ * @public
90
+ */
91
+ declare function HealthPlanNeedsPart(props: EverfurPartProps): ReactNode;
92
+ /**
93
+ * The Health Plan's free tips, one card each.
94
+ *
95
+ * @public
96
+ */
97
+ declare function HealthPlanTipsPart(props: EverfurPartProps): ReactNode;
98
+ /**
99
+ * The pet's ranked products.
100
+ *
101
+ * @public
102
+ */
103
+ declare function ShopProductShelfPart(props: EverfurPartProps): ReactNode;
104
+ /**
105
+ * The cart's lines and subtotal.
106
+ *
107
+ * @public
108
+ */
109
+ declare function ShopCartSummaryPart(props: EverfurPartProps): ReactNode;
110
+ /**
111
+ * The pet's recent Everfur orders.
112
+ *
113
+ * @public
114
+ */
115
+ declare function ShopRecentOrdersPart(props: EverfurPartProps): ReactNode;
116
+ /**
117
+ * Props of {@link HealthPlanCartBarPart}.
118
+ *
119
+ * @public
120
+ */
121
+ interface HealthPlanCartBarPartProps {
122
+ /** The pet; omit it for the provider's active pet. */
123
+ readonly petRef?: PetRef | null;
124
+ /** Called with the items in the cart when the member presses checkout. A throw is swallowed. */
125
+ readonly onCheckout?: (items: readonly HealthPlanItem[]) => void;
126
+ /** How the subtotal reads (locale, and whether a whole amount drops its zero cents). */
127
+ readonly priceFormat?: HealthPlanPriceFormat;
128
+ /** The bar's own style, after its defaults. */
129
+ readonly style?: StyleProp<ViewStyle>;
130
+ }
131
+ /**
132
+ * The Health Plan cart bar (the count, the subtotal and checkout), while the plan holds items.
133
+ *
134
+ * @public
135
+ */
136
+ declare function HealthPlanCartBarPart(props: HealthPlanCartBarPartProps): ReactNode;
137
+
138
+ /**
139
+ * Every slot and named part under one name: `<Everfur.Slot name="today.health" />`,
140
+ * `<Everfur.HealthPlanFocus petRef={petRef} />`.
141
+ *
142
+ * @public
143
+ */
144
+ declare const Everfur: Readonly<{
145
+ Slot: typeof Slot;
146
+ HealthPlanFocus: typeof HealthPlanFocusPart;
147
+ HealthPlanNeeds: typeof HealthPlanNeedsPart;
148
+ HealthPlanTips: typeof HealthPlanTipsPart;
149
+ HealthPlanCartBar: typeof HealthPlanCartBarPart;
150
+ ShopProductShelf: typeof ShopProductShelfPart;
151
+ ShopCartSummary: typeof ShopCartSummaryPart;
152
+ ShopRecentOrders: typeof ShopRecentOrdersPart;
153
+ }>;
154
+
155
+ export { Everfur, type EverfurPartProps, HealthPlanCartBarPart, type HealthPlanCartBarPartProps, HealthPlanFocusPart, HealthPlanItem, HealthPlanNeedsPart, HealthPlanPriceFormat, HealthPlanTipsPart, PetRef, ShopCartSummaryPart, ShopProductShelfPart, ShopRecentOrdersPart, Slot, type SlotActionContext, type SlotActionHandlers, type SlotProps };