@everfur/sdk 0.16.0 → 0.17.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 (199) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/README.md +3 -1
  3. package/chat/lite/package.json +8 -0
  4. package/dist/Chat.d-BYY1U61e.d.cts +11 -0
  5. package/dist/Chat.d-uETscjrL.d.ts +11 -0
  6. package/dist/{DepthViews.d-A7S-XYiI.d.ts → DepthViews.d-B4SE5GUD.d.ts} +1 -1
  7. package/dist/{DepthViews.d-CNjaHLAS.d.ts → DepthViews.d-BsZ73mzL.d.ts} +1 -1
  8. package/dist/{DepthViews.d-C4TIZDfz.d.cts → DepthViews.d-DL8MP_kA.d.cts} +1 -1
  9. package/dist/{DepthViews.d-DapfRz1S.d.cts → DepthViews.d-D_Qp4glO.d.cts} +1 -1
  10. package/dist/{RecordsPage.d-B2gLf8RH.d.cts → RecordsPage.d-CYotk2R9.d.cts} +1 -1
  11. package/dist/{RecordsPage.d-6WMbieaV.d.ts → RecordsPage.d-D4gP4leq.d.ts} +1 -1
  12. package/dist/animations/index.d.cts +3 -3
  13. package/dist/animations/index.d.ts +3 -3
  14. package/dist/{appStateLifecycle.d-B7L427MF.d.ts → appStateLifecycle.d-CXJzBS3c.d.ts} +6 -11
  15. package/dist/{appStateLifecycle.d-CWedOJq4.d.cts → appStateLifecycle.d-DJXdDOJY.d.cts} +6 -11
  16. package/dist/attachmentTransport.d-Syrvv5zH.d.ts +41 -0
  17. package/dist/attachmentTransport.d-r1XCCdUB.d.cts +41 -0
  18. package/dist/{attachments.d-BARh-PrJ.d.cts → attachments.d-B8kOCb6q.d.cts} +5 -5
  19. package/dist/{attachments.d-CB0R1_vK.d.ts → attachments.d-BTIGzXWD.d.ts} +5 -5
  20. package/dist/{attachments.d-CPgp4_W-.d.ts → attachments.d-BgatKf7d.d.ts} +2 -2
  21. package/dist/{attachments.d-DeoaCEMD.d.cts → attachments.d-C61URT8r.d.cts} +2 -2
  22. package/dist/{bookingCopy.d-CVmpuk9C.d.cts → bookingCopy.d-B-bSYgqS.d.cts} +2 -2
  23. package/dist/{bookingCopy.d-BakTjvWw.d.ts → bookingCopy.d-JQW2SLM-.d.ts} +2 -2
  24. package/dist/{casesRepository.d-CuokarTU.d.ts → casesRepository.d-CHEjzT4h.d.ts} +1 -1
  25. package/dist/{casesRepository.d-DKRLtYb8.d.cts → casesRepository.d-CVG2EXcg.d.cts} +1 -1
  26. package/dist/chat/index.cjs +32 -31
  27. package/dist/chat/index.d.cts +16 -51
  28. package/dist/chat/index.d.ts +16 -51
  29. package/dist/chat/index.js +32 -31
  30. package/dist/chat/lite/index.cjs +430 -0
  31. package/dist/chat/lite/index.d.cts +35 -0
  32. package/dist/chat/lite/index.d.ts +35 -0
  33. package/dist/chat/lite/index.js +430 -0
  34. package/dist/client/index.cjs +4 -4
  35. package/dist/client/index.d.cts +6 -6
  36. package/dist/client/index.d.ts +6 -6
  37. package/dist/client/index.js +4 -4
  38. package/dist/{clinicBatch.d-BTDdhMQ2.d.cts → clinicBatch.d-DdlFy4pD.d.cts} +2 -2
  39. package/dist/{clinicBatch.d-BP_Rpvcy.d.ts → clinicBatch.d-oNwH_dbI.d.ts} +2 -2
  40. package/dist/{config.d-84fNJFv9.d.cts → config.d-Cy_hJBJG.d.cts} +1 -1
  41. package/dist/{config.d-B4-Mrwq2.d.ts → config.d-DopRLD4f.d.ts} +1 -1
  42. package/dist/consent/index.d.cts +5 -5
  43. package/dist/consent/index.d.ts +5 -5
  44. package/dist/{context.d-rNGMZH8T.d.ts → context.d-Ban-Hhqu.d.ts} +5 -5
  45. package/dist/{context.d-87MMrNm6.d.cts → context.d-C42juGn6.d.cts} +5 -5
  46. package/dist/{copy.d-CJOLhJac.d.cts → copy.d-BTS5l6Ri.d.cts} +2 -2
  47. package/dist/{copy.d-DbwWriBp.d.ts → copy.d-qdbygul9.d.ts} +2 -2
  48. package/dist/core/index.cjs +10 -10
  49. package/dist/core/index.d.cts +13 -13
  50. package/dist/core/index.d.ts +13 -13
  51. package/dist/core/index.js +10 -10
  52. package/dist/{depth.d-Dca1T_RH.d.ts → depth.d-BGkHm2Se.d.ts} +2 -2
  53. package/dist/{depth.d-CXpPxNSK.d.cts → depth.d-BfVrhq9o.d.cts} +2 -2
  54. package/dist/{entitlementRepository.d-BBRYTUlp.d.ts → entitlementRepository.d-CjwqCyhS.d.ts} +2 -2
  55. package/dist/{entitlementRepository.d-DBhzBQjZ.d.cts → entitlementRepository.d-npT7L_7_.d.cts} +2 -2
  56. package/dist/{focus.d-BQnOVAql.d.cts → focus.d-DS7Ze1Pp.d.cts} +2 -2
  57. package/dist/{focus.d-BZ2sEpbU.d.ts → focus.d-S0nq_k1A.d.ts} +2 -2
  58. package/dist/health-plan/index.cjs +7 -7
  59. package/dist/health-plan/index.d.cts +10 -10
  60. package/dist/health-plan/index.d.ts +10 -10
  61. package/dist/health-plan/index.js +7 -7
  62. package/dist/{idempotency.d-9wNNohIA.d.cts → idempotency.d-COIrwuCb.d.ts} +334 -3
  63. package/dist/{idempotency.d-BdB17veP.d.ts → idempotency.d-gfiN4Qnp.d.cts} +334 -3
  64. package/dist/{identity.d-DxNvhj3a.d.ts → identity.d-B3mFvvRq.d.ts} +1 -1
  65. package/dist/{identity.d-nRZBzkG2.d.cts → identity.d-D76vXtkJ.d.cts} +1 -1
  66. package/dist/index.cjs +29 -28
  67. package/dist/index.d.cts +15 -14
  68. package/dist/index.d.ts +15 -14
  69. package/dist/index.js +29 -28
  70. package/dist/{introEvents.d-CQeiUeLn.d.cts → introEvents.d-3FLEemX3.d.cts} +1 -1
  71. package/dist/{introEvents.d-bkIxpIKr.d.ts → introEvents.d-BYnr37bd.d.ts} +1 -1
  72. package/dist/notifications/index.d.cts +4 -4
  73. package/dist/notifications/index.d.ts +4 -4
  74. package/dist/{optInView.d-DVJcB4Gp.d.ts → optInView.d-BqFMcum4.d.ts} +2 -2
  75. package/dist/{optInView.d-BbVUUeoG.d.cts → optInView.d-DXRUGDiD.d.cts} +2 -2
  76. package/dist/{parse.d-CGeJrcAC.d.ts → parse.d-CY22hFxb.d.ts} +1 -1
  77. package/dist/{parse.d-Dk0BasyK.d.cts → parse.d-rvA_aRSO.d.cts} +1 -1
  78. package/dist/{pets.d-DBopbeRe.d.ts → pets.d-Cicz-aIO.d.ts} +1 -1
  79. package/dist/{pets.d-DVptPgi0.d.cts → pets.d-RoHTZsaV.d.cts} +1 -1
  80. package/dist/{petsRepository.d-Daef7u0o.d.cts → petsRepository.d-BxMyt6Aj.d.cts} +1 -1
  81. package/dist/{petsRepository.d-BtuooSOW.d.ts → petsRepository.d-DtAZf_Ja.d.ts} +1 -1
  82. package/dist/photo/index.cjs +2 -2
  83. package/dist/photo/index.js +2 -2
  84. package/dist/{ports.d-CAT70bVD.d.cts → ports.d-D7cjFUoL.d.cts} +4 -4
  85. package/dist/{ports.d-BxCVSbSi.d.ts → ports.d-DrgKa73F.d.ts} +4 -4
  86. package/dist/records/depth/index.cjs +9 -9
  87. package/dist/records/depth/index.d.cts +9 -9
  88. package/dist/records/depth/index.d.ts +9 -9
  89. package/dist/records/depth/index.js +9 -9
  90. package/dist/records/index.cjs +13 -13
  91. package/dist/records/index.d.cts +10 -10
  92. package/dist/records/index.d.ts +10 -10
  93. package/dist/records/index.js +13 -13
  94. package/dist/{requestFunnel.d-Cxt0JqYx.d.ts → requestFunnel.d-B5y7Py8Z.d.ts} +2 -2
  95. package/dist/{requestFunnel.d-mEu6B-n8.d.cts → requestFunnel.d-BdQf53zs.d.cts} +2 -2
  96. package/dist/{runtimeTypes.d-Bkcj_XQy.d.ts → runtimeTypes.d-D5EDgS3Y.d.ts} +4 -4
  97. package/dist/{runtimeTypes.d-D_qHJROH.d.cts → runtimeTypes.d-r4Q5vASZ.d.cts} +4 -4
  98. package/dist/{screenProps.d-D9n-ancr.d.ts → screenProps.d-KLCrP43b.d.ts} +1 -1
  99. package/dist/{screenProps.d-CR1lrpzR.d.cts → screenProps.d-v4a4kzxA.d.cts} +1 -1
  100. package/dist/server/events/index.cjs +3 -3
  101. package/dist/server/events/index.d.cts +72 -6
  102. package/dist/server/events/index.d.ts +72 -6
  103. package/dist/server/events/index.js +3 -3
  104. package/dist/server/index.cjs +2 -2
  105. package/dist/server/index.d.cts +3 -3
  106. package/dist/server/index.d.ts +3 -3
  107. package/dist/server/index.js +2 -2
  108. package/dist/shop/index.cjs +212 -163
  109. package/dist/shop/index.d.cts +38 -4
  110. package/dist/shop/index.d.ts +38 -4
  111. package/dist/shop/index.js +214 -165
  112. package/dist/shop/orders-v2/index.cjs +127 -0
  113. package/dist/shop/orders-v2/index.d.cts +7 -0
  114. package/dist/shop/orders-v2/index.d.ts +7 -0
  115. package/dist/shop/orders-v2/index.js +127 -0
  116. package/dist/tabs/index.d.cts +8 -8
  117. package/dist/tabs/index.d.ts +8 -8
  118. package/dist/televet/booking/index.cjs +2 -2
  119. package/dist/televet/booking/index.d.cts +6 -6
  120. package/dist/televet/booking/index.d.ts +6 -6
  121. package/dist/televet/booking/index.js +2 -2
  122. package/dist/televet/call/index.cjs +1 -1
  123. package/dist/televet/call/index.js +1 -1
  124. package/dist/televet/index.cjs +4 -3
  125. package/dist/televet/index.d.cts +1 -0
  126. package/dist/televet/index.d.ts +1 -0
  127. package/dist/televet/index.js +5 -4
  128. package/dist/testing/index.d.cts +1 -1
  129. package/dist/testing/index.d.ts +1 -1
  130. package/dist/testing/rn/index.d.cts +7 -7
  131. package/dist/testing/rn/index.d.ts +7 -7
  132. package/dist/testing/web/index.d.cts +7 -7
  133. package/dist/testing/web/index.d.ts +7 -7
  134. package/dist/texting/index.d.cts +5 -5
  135. package/dist/texting/index.d.ts +5 -5
  136. package/dist/{threadOptions.d-BEG-LZrC.d.cts → threadOptions.d-B0folrKm.d.cts} +1 -1
  137. package/dist/{threadOptions.d-BgBvSIw8.d.ts → threadOptions.d-Crh_LiDe.d.ts} +3 -3
  138. package/dist/{threadOptions.d-BerQM1Ql.d.ts → threadOptions.d-DTsJFkL-.d.ts} +1 -1
  139. package/dist/{threadOptions.d-P9v7I7va.d.cts → threadOptions.d-EFJaNBP1.d.cts} +3 -3
  140. package/dist/{threadOptions.d-6hfQS1x7.d.cts → threadOptions.d-GPJPprkn.d.cts} +1 -1
  141. package/dist/{threadOptions.d-6hfQS1x7.d.ts → threadOptions.d-GPJPprkn.d.ts} +1 -1
  142. package/dist/{timelineRows.d-C04lp_Vj.d.cts → timelineRows.d-6-Cw8xGd.d.cts} +1 -1
  143. package/dist/{timelineRows.d-_7JemrY-.d.ts → timelineRows.d-DpSis9HR.d.ts} +1 -1
  144. package/dist/{useHealthPlanSubscription.d-CUbHE6eK.d.ts → useHealthPlanSubscription.d-DD30EkUR.d.ts} +3 -3
  145. package/dist/{useHealthPlanSubscription.d-OhLZpn-n.d.cts → useHealthPlanSubscription.d-DWrzUXf4.d.cts} +3 -3
  146. package/dist/{usePresentation.d-YkJeq9mf.d.cts → usePresentation.d-C8rqY56C.d.cts} +1 -1
  147. package/dist/{usePresentation.d-CBtBx38t.d.ts → usePresentation.d-CRG3Gaaq.d.ts} +1 -1
  148. package/dist/{useRecordsDepth.d-FTImzp6T.d.cts → useRecordsDepth.d-BYk7m7gF.d.cts} +1 -1
  149. package/dist/{useRecordsDepth.d-_rqDIvoq.d.ts → useRecordsDepth.d-DlRda5jp.d.ts} +1 -1
  150. package/dist/video/index.cjs +2 -2
  151. package/dist/video/index.js +2 -2
  152. package/dist/view.d-B31M8rCG.d.cts +11 -0
  153. package/dist/view.d-B31M8rCG.d.ts +11 -0
  154. package/dist/{view.d-Dd6AfMvG.d.cts → view.d-CLpEHKOp.d.cts} +3 -3
  155. package/dist/{view.d-gmYinlac.d.ts → view.d-DuIXHr08.d.ts} +3 -3
  156. package/dist/web/consent/index.d.cts +5 -5
  157. package/dist/web/consent/index.d.ts +5 -5
  158. package/dist/web/health-plan/index.cjs +4 -4
  159. package/dist/web/health-plan/index.d.cts +12 -12
  160. package/dist/web/health-plan/index.d.ts +12 -12
  161. package/dist/web/health-plan/index.js +4 -4
  162. package/dist/web/index.cjs +4 -4
  163. package/dist/web/index.d.cts +23 -23
  164. package/dist/web/index.d.ts +23 -23
  165. package/dist/web/index.js +4 -4
  166. package/dist/web/intro/index.d.cts +6 -6
  167. package/dist/web/intro/index.d.ts +6 -6
  168. package/dist/web/notifications/index.d.cts +3 -3
  169. package/dist/web/notifications/index.d.ts +3 -3
  170. package/dist/web/records/depth/index.cjs +9 -9
  171. package/dist/web/records/depth/index.d.cts +9 -9
  172. package/dist/web/records/depth/index.d.ts +9 -9
  173. package/dist/web/records/depth/index.js +9 -9
  174. package/dist/web/records/index.cjs +12 -12
  175. package/dist/web/records/index.d.cts +11 -11
  176. package/dist/web/records/index.d.ts +11 -11
  177. package/dist/web/records/index.js +12 -12
  178. package/dist/web/records-sheet/index.cjs +9 -9
  179. package/dist/web/records-sheet/index.js +9 -9
  180. package/dist/web/shop/index.cjs +194 -50
  181. package/dist/web/shop/index.d.cts +32 -4
  182. package/dist/web/shop/index.d.ts +32 -4
  183. package/dist/web/shop/index.js +194 -50
  184. package/dist/web/shop/orders-v2/index.cjs +124 -0
  185. package/dist/web/shop/orders-v2/index.d.cts +14 -0
  186. package/dist/web/shop/orders-v2/index.d.ts +14 -0
  187. package/dist/web/shop/orders-v2/index.js +124 -0
  188. package/dist/web/televet/booking/index.cjs +2 -2
  189. package/dist/web/televet/booking/index.d.cts +6 -6
  190. package/dist/web/televet/booking/index.d.ts +6 -6
  191. package/dist/web/televet/booking/index.js +2 -2
  192. package/dist/web/televet/call/index.cjs +1 -1
  193. package/dist/web/televet/call/index.js +1 -1
  194. package/dist/web/texting/index.d.cts +5 -5
  195. package/dist/web/texting/index.d.ts +5 -5
  196. package/package.json +45 -26
  197. package/shop/orders-v2/package.json +8 -0
  198. package/web/shop/orders-v2/native-blocked.cjs +12 -0
  199. package/web/shop/orders-v2/package.json +8 -0
@@ -1,11 +1,16 @@
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
2
  import { ReactNode } from 'react';
3
- import { O as OmsClient, S as ShopPet, a as ShopPaymentsPort, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, g as ShopCardReturn, h as ShopProfileName } from '../../idempotency.d-9wNNohIA.cjs';
4
- export { i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, v as ShopPaymentStepResult, w as ShopTabName, x as StripeJsLike, y as StripeJsPaymentsOptions, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, B as createStripeJsPayments, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../../idempotency.d-9wNNohIA.cjs';
5
- import '../../config.d-84fNJFv9.cjs';
3
+ import { O as OmsClient, S as ShopPet, a as ShopPaymentsPort, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, g as ShopCardReturn, h as ShopProfileName, i as ShopOrdersV2Copy } from '../../idempotency.d-gfiN4Qnp.cjs';
4
+ export { j as OmsAddress, k as OmsBuyAgainItem, l as OmsCartLine, m as OmsCents, n as OmsClientConfig, o as OmsConsumerAuth, p as OmsError, q as OmsGetToken, r as OmsOffer, s as OmsOrder, t as OmsOrderSummary, u as OmsPlan, v as OmsPlanChangeOption, w as OmsPlanOperation, x as OmsPlanSkipWarning, y as OmsPlanSkipWarningKey, z as OmsPrescription, A as OmsQuote, B as OmsQuoteLine, C as OmsReceipt, D as OmsReceiptCard, E as OmsReceiptLine, F as OmsResult, G as OmsShopConfig, H as OmsSupply, I as SHOP_COPY, J as SHOP_COPY_PLACEHOLDERS, K as SHOP_ORDERS_V2_COPY, L as SHOP_V3_COPY, M as SHOP_V3_COPY_PLACEHOLDERS, N as ShopPackage, P as ShopPackageLine, Q as ShopPaymentStepResult, R as ShopTabName, T as StripeJsLike, U as StripeJsPaymentsOptions, V as UNAVAILABLE_PACKAGE_SOURCE, W as createOmsClient, X as createOmsPackageSource, Y as createStripeJsPayments, Z as isOmsRefusal, _ as isOmsRetryable, $ as isOmsUnavailable, a0 as newIdempotencyKey, a1 as shopCopy, a2 as shopOrdersV2Copy, a3 as shopV3Copy } from '../../idempotency.d-gfiN4Qnp.cjs';
5
+ import '../../config.d-Cy_hJBJG.cjs';
6
6
  import '../../EverfurError.d-8NHtlgzA.cjs';
7
7
  import '../../EverfurResult.d-BFH-3s6E.cjs';
8
8
 
9
+ /** Which design draws the shop's order pages: Raph's v3 partner look (default) or his Everfur web app Care kit. */
10
+ type EverfurShopLook = 'partner' | 'everfur-app';
11
+
12
+ /** Which design draws Orders: the look's current page (`'v1'`, the default) or Raph's October 28 redesign (`'v2'`). */
13
+ type EverfurShopOrdersDesign = 'v1' | 'v2';
9
14
  interface EverfurShopProps {
10
15
  /** `createOmsClient({ baseUrl, auth: { kind: 'everfur_consumer', getToken } })`. */
11
16
  readonly client: OmsClient;
@@ -53,8 +58,31 @@ interface EverfurShopProps {
53
58
  * full-page card step. Without it, the cart lives only while the page does.
54
59
  */
55
60
  readonly cartStorageKey?: string | null;
61
+ /**
62
+ * The design of the shop's order pages. `'partner'` (the default) is Raph's v3 Health Plan shop look, the partner
63
+ * default. `'everfur-app'` is his Everfur web app Care kit (white page, Dark Green type, bordered cards, outline
64
+ * pills), for the Everfur web app only. On a phone its product pages keep the buy button in view; when your page
65
+ * has a bar fixed along the window's foot, set the CSS custom property `--everfur-shop-bottom-inset` on the shop's
66
+ * host (or an ancestor) to that bar's whole height, and the button stays above it.
67
+ */
68
+ readonly look?: EverfurShopLook;
69
+ /**
70
+ * The design of Orders. `'v1'` (the default) keeps the look's current Orders page. `'v2'` is Raph's Care > Orders
71
+ * redesign (her days, auto-refills with Skip, Change and Pause, Buy again, past orders and a cart bar); it applies
72
+ * with `look="everfur-app"` only. Its cart bar floats 8px above `--everfur-shop-bottom-inset`, its sticky tabs stop
73
+ * under `--everfur-shop-top-inset` (your fixed header's height, 0 without one), and while the bar is up the shop's
74
+ * host element carries the `data-everfur-shop-cartbar` attribute, so you can hide your own bar that sits in its place.
75
+ * The cart bar is fixed to the window, 16px in from each side; when your page fixes something along a side (a left
76
+ * sidebar, say), set `--everfur-shop-left-inset` (and `--everfur-shop-right-inset`) to its width, 0 without one,
77
+ * and the bar keeps to your content column.
78
+ */
79
+ readonly ordersDesign?: EverfurShopOrdersDesign;
80
+ /** Your words over Orders v2's defaults (`SHOP_ORDERS_V2_COPY`). */
81
+ readonly ordersCopy?: Partial<ShopOrdersV2Copy>;
82
+ /** Orders v2's "Help with an order" (open your support chat). Without it, the row is not drawn. */
83
+ readonly onOrdersHelp?: (() => void) | null;
56
84
  readonly hostClassName?: string;
57
85
  }
58
86
  declare function EverfurShop(props: EverfurShopProps): ReactNode;
59
87
 
60
- export { EverfurShop, type EverfurShopProps, OmsClient, ShopCardHandoff, ShopCardReturn, ShopCopy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopV3Copy };
88
+ export { EverfurShop, type EverfurShopLook, type EverfurShopOrdersDesign, type EverfurShopProps, OmsClient, ShopCardHandoff, ShopCardReturn, ShopCopy, ShopOrdersV2Copy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopV3Copy };
@@ -1,11 +1,16 @@
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
2
  import { ReactNode } from 'react';
3
- import { O as OmsClient, S as ShopPet, a as ShopPaymentsPort, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, g as ShopCardReturn, h as ShopProfileName } from '../../idempotency.d-BdB17veP.js';
4
- export { i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, v as ShopPaymentStepResult, w as ShopTabName, x as StripeJsLike, y as StripeJsPaymentsOptions, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, B as createStripeJsPayments, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../../idempotency.d-BdB17veP.js';
5
- import '../../config.d-B4-Mrwq2.js';
3
+ import { O as OmsClient, S as ShopPet, a as ShopPaymentsPort, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, g as ShopCardReturn, h as ShopProfileName, i as ShopOrdersV2Copy } from '../../idempotency.d-COIrwuCb.js';
4
+ export { j as OmsAddress, k as OmsBuyAgainItem, l as OmsCartLine, m as OmsCents, n as OmsClientConfig, o as OmsConsumerAuth, p as OmsError, q as OmsGetToken, r as OmsOffer, s as OmsOrder, t as OmsOrderSummary, u as OmsPlan, v as OmsPlanChangeOption, w as OmsPlanOperation, x as OmsPlanSkipWarning, y as OmsPlanSkipWarningKey, z as OmsPrescription, A as OmsQuote, B as OmsQuoteLine, C as OmsReceipt, D as OmsReceiptCard, E as OmsReceiptLine, F as OmsResult, G as OmsShopConfig, H as OmsSupply, I as SHOP_COPY, J as SHOP_COPY_PLACEHOLDERS, K as SHOP_ORDERS_V2_COPY, L as SHOP_V3_COPY, M as SHOP_V3_COPY_PLACEHOLDERS, N as ShopPackage, P as ShopPackageLine, Q as ShopPaymentStepResult, R as ShopTabName, T as StripeJsLike, U as StripeJsPaymentsOptions, V as UNAVAILABLE_PACKAGE_SOURCE, W as createOmsClient, X as createOmsPackageSource, Y as createStripeJsPayments, Z as isOmsRefusal, _ as isOmsRetryable, $ as isOmsUnavailable, a0 as newIdempotencyKey, a1 as shopCopy, a2 as shopOrdersV2Copy, a3 as shopV3Copy } from '../../idempotency.d-COIrwuCb.js';
5
+ import '../../config.d-DopRLD4f.js';
6
6
  import '../../EverfurError.d-8NHtlgzA.js';
7
7
  import '../../EverfurResult.d-D_-254ZY.js';
8
8
 
9
+ /** Which design draws the shop's order pages: Raph's v3 partner look (default) or his Everfur web app Care kit. */
10
+ type EverfurShopLook = 'partner' | 'everfur-app';
11
+
12
+ /** Which design draws Orders: the look's current page (`'v1'`, the default) or Raph's October 28 redesign (`'v2'`). */
13
+ type EverfurShopOrdersDesign = 'v1' | 'v2';
9
14
  interface EverfurShopProps {
10
15
  /** `createOmsClient({ baseUrl, auth: { kind: 'everfur_consumer', getToken } })`. */
11
16
  readonly client: OmsClient;
@@ -53,8 +58,31 @@ interface EverfurShopProps {
53
58
  * full-page card step. Without it, the cart lives only while the page does.
54
59
  */
55
60
  readonly cartStorageKey?: string | null;
61
+ /**
62
+ * The design of the shop's order pages. `'partner'` (the default) is Raph's v3 Health Plan shop look, the partner
63
+ * default. `'everfur-app'` is his Everfur web app Care kit (white page, Dark Green type, bordered cards, outline
64
+ * pills), for the Everfur web app only. On a phone its product pages keep the buy button in view; when your page
65
+ * has a bar fixed along the window's foot, set the CSS custom property `--everfur-shop-bottom-inset` on the shop's
66
+ * host (or an ancestor) to that bar's whole height, and the button stays above it.
67
+ */
68
+ readonly look?: EverfurShopLook;
69
+ /**
70
+ * The design of Orders. `'v1'` (the default) keeps the look's current Orders page. `'v2'` is Raph's Care > Orders
71
+ * redesign (her days, auto-refills with Skip, Change and Pause, Buy again, past orders and a cart bar); it applies
72
+ * with `look="everfur-app"` only. Its cart bar floats 8px above `--everfur-shop-bottom-inset`, its sticky tabs stop
73
+ * under `--everfur-shop-top-inset` (your fixed header's height, 0 without one), and while the bar is up the shop's
74
+ * host element carries the `data-everfur-shop-cartbar` attribute, so you can hide your own bar that sits in its place.
75
+ * The cart bar is fixed to the window, 16px in from each side; when your page fixes something along a side (a left
76
+ * sidebar, say), set `--everfur-shop-left-inset` (and `--everfur-shop-right-inset`) to its width, 0 without one,
77
+ * and the bar keeps to your content column.
78
+ */
79
+ readonly ordersDesign?: EverfurShopOrdersDesign;
80
+ /** Your words over Orders v2's defaults (`SHOP_ORDERS_V2_COPY`). */
81
+ readonly ordersCopy?: Partial<ShopOrdersV2Copy>;
82
+ /** Orders v2's "Help with an order" (open your support chat). Without it, the row is not drawn. */
83
+ readonly onOrdersHelp?: (() => void) | null;
56
84
  readonly hostClassName?: string;
57
85
  }
58
86
  declare function EverfurShop(props: EverfurShopProps): ReactNode;
59
87
 
60
- export { EverfurShop, type EverfurShopProps, OmsClient, ShopCardHandoff, ShopCardReturn, ShopCopy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopV3Copy };
88
+ export { EverfurShop, type EverfurShopLook, type EverfurShopOrdersDesign, type EverfurShopProps, OmsClient, ShopCardHandoff, ShopCardReturn, ShopCopy, ShopOrdersV2Copy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopV3Copy };