@everfur/sdk 0.13.0 → 0.14.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 (202) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/README.md +11 -10
  3. package/dist/{Chat.d-Dts8u_1a.d.cts → Chat.d-aycmX1CA.d.cts} +12 -4
  4. package/dist/{Chat.d-DUNTfzqC.d.ts → Chat.d-puminpyi.d.ts} +12 -4
  5. package/dist/{DepthViews.d-CubkMPbU.d.ts → DepthViews.d-BdvFZgPs.d.cts} +1 -1
  6. package/dist/{DepthViews.d-Ce2Zhnrb.d.ts → DepthViews.d-DIvxzLDf.d.ts} +1 -1
  7. package/dist/{DepthViews.d-BMU2jFPw.d.cts → DepthViews.d-Dy0Zl-s-.d.ts} +1 -1
  8. package/dist/{DepthViews.d-BIp599lz.d.cts → DepthViews.d-wLNkzk9f.d.cts} +1 -1
  9. package/dist/RecordsPage.d-9Ank15PT.d.ts +93 -0
  10. package/dist/RecordsPage.d-DMKU0IKc.d.cts +93 -0
  11. package/dist/animations/index.d.cts +5 -5
  12. package/dist/animations/index.d.ts +5 -5
  13. package/dist/{attachments.d-D1yhJjcZ.d.ts → attachments.d--sIsfk6e.d.ts} +2 -2
  14. package/dist/{attachments.d-Bp2qbHxn.d.cts → attachments.d-DNUCiyy5.d.cts} +6 -24
  15. package/dist/{attachments.d-DisnvB9R.d.cts → attachments.d-ZEpTUeWN.d.cts} +2 -2
  16. package/dist/{attachments.d-Djy9z_0Z.d.ts → attachments.d-rp3xs-Q3.d.ts} +6 -24
  17. package/dist/{bookingCopy.d-BJF6gd1A.d.ts → bookingCopy.d-D0uIIFAJ.d.ts} +2 -2
  18. package/dist/{bookingCopy.d-BlBmhAJc.d.cts → bookingCopy.d-DUrmVcLs.d.cts} +2 -2
  19. package/dist/{branding.d-DI8S400y.d.cts → branding.d-CTXTUg_8.d.cts} +1 -1
  20. package/dist/{branding.d-OIGLbQeM.d.ts → branding.d-DxJSoFce.d.ts} +1 -1
  21. package/dist/{casesRepository.d-CT2LTicS.d.cts → casesRepository.d-DCnix2pT.d.cts} +1 -1
  22. package/dist/{casesRepository.d-UsWOz9bv.d.ts → casesRepository.d-DbirgbyH.d.ts} +1 -1
  23. package/dist/chat/index.cjs +43 -41
  24. package/dist/chat/index.d.cts +26 -13
  25. package/dist/chat/index.d.ts +26 -13
  26. package/dist/chat/index.js +43 -41
  27. package/dist/client/index.cjs +2 -2
  28. package/dist/client/index.d.cts +10 -10
  29. package/dist/client/index.d.ts +10 -10
  30. package/dist/client/index.js +2 -2
  31. package/dist/clinicBatch.d-Ccmrngcu.d.cts +71 -0
  32. package/dist/clinicBatch.d-D9Ci7IpP.d.ts +71 -0
  33. package/dist/clinicModels.d-BXgKZqDb.d.cts +68 -0
  34. package/dist/clinicModels.d-CaS64-P-.d.ts +68 -0
  35. package/dist/clinicRequestProps.d-1dCtouGA.d.cts +65 -0
  36. package/dist/clinicRequestProps.d-CjsMg_OD.d.ts +65 -0
  37. package/dist/{config.d-BR3DT9ho.d.cts → config.d-DJ4mvf_w.d.cts} +1 -1
  38. package/dist/{config.d-Dy6igYlH.d.ts → config.d-MX7IKP2f.d.ts} +1 -1
  39. package/dist/consent/index.d.cts +5 -5
  40. package/dist/consent/index.d.ts +5 -5
  41. package/dist/{context.d-QcCgguzA.d.ts → context.d-BdnBe8Oe.d.ts} +7 -7
  42. package/dist/{context.d-Cwks0p3C.d.cts → context.d-C6MJsMpN.d.cts} +7 -7
  43. package/dist/{copy.d-CiMn2IIt.d.ts → copy.d-BIfQOoDB.d.ts} +2 -2
  44. package/dist/{copy.d-DLJTyRfT.d.cts → copy.d-C_u7shha.d.cts} +2 -2
  45. package/dist/core/index.cjs +3 -3
  46. package/dist/core/index.d.cts +20 -18
  47. package/dist/core/index.d.ts +20 -18
  48. package/dist/core/index.js +3 -3
  49. package/dist/{depth.d-OSALbYM7.d.ts → depth.d-COFxYWLU.d.ts} +6 -133
  50. package/dist/{depth.d-CjPGVPDL.d.cts → depth.d-D2e5WZuE.d.cts} +6 -133
  51. package/dist/{entitlementRepository.d-CVQa1DA1.d.cts → entitlementRepository.d-BP15dFbe.d.cts} +4 -4
  52. package/dist/{entitlementRepository.d-Cf3LbTwD.d.ts → entitlementRepository.d-DLuxnGi5.d.ts} +4 -4
  53. package/dist/{features.d-fNsGcg0R.d.ts → features.d-DrQxTw3-.d.cts} +1 -1
  54. package/dist/{features.d-fNsGcg0R.d.cts → features.d-DrQxTw3-.d.ts} +1 -1
  55. package/dist/{focus.d-DMg2ngHI.d.ts → focus.d-C0Tr0oVJ.d.ts} +109 -348
  56. package/dist/{focus.d-az9cqUz3.d.cts → focus.d-jQWp0hdK.d.cts} +109 -348
  57. package/dist/health-plan/index.cjs +165 -151
  58. package/dist/health-plan/index.d.cts +53 -11
  59. package/dist/health-plan/index.d.ts +53 -11
  60. package/dist/health-plan/index.js +169 -155
  61. package/dist/{idempotency.d-D461_DPD.d.cts → idempotency.d-DXb1BN2A.d.ts} +151 -6
  62. package/dist/{idempotency.d-WpXx9zQo.d.ts → idempotency.d-HF6fyRt2.d.cts} +151 -6
  63. package/dist/{identity.d-DzTijonw.d.ts → identity.d-BePPZ7Uv.d.ts} +1 -1
  64. package/dist/{identity.d-60LeJt_s.d.cts → identity.d-CJfnWOdH.d.cts} +1 -1
  65. package/dist/index.cjs +46 -44
  66. package/dist/index.d.cts +19 -18
  67. package/dist/index.d.ts +19 -18
  68. package/dist/index.js +46 -44
  69. package/dist/introEvents.d-BkGDT_kG.d.cts +175 -0
  70. package/dist/introEvents.d-DHlMvmC7.d.ts +175 -0
  71. package/dist/introEvents.d-dS3fJCH1.d.cts +5 -0
  72. package/dist/introEvents.d-dS3fJCH1.d.ts +5 -0
  73. package/dist/{models.d-BnLm3VAA.d.cts → models.d-BSqvbTE1.d.cts} +8 -1
  74. package/dist/{models.d-BagXhafD.d.ts → models.d-DOwnr8fi.d.ts} +8 -1
  75. package/dist/notifications/index.d.cts +4 -4
  76. package/dist/notifications/index.d.ts +4 -4
  77. package/dist/{optInView.d-CEyHR6PK.d.cts → optInView.d-0iI5JoAf.d.cts} +119 -3
  78. package/dist/{optInView.d-acKpV8V2.d.ts → optInView.d-s-w4aGN3.d.ts} +119 -3
  79. package/dist/{parse.d-C8CXyS58.d.ts → parse.d-COt1qVA6.d.ts} +1 -1
  80. package/dist/{parse.d-tEzufgJX.d.cts → parse.d-EmsgOUMQ.d.cts} +1 -1
  81. package/dist/{pets.d-C_53_fzo.d.ts → pets.d-BFT_b53y.d.ts} +1 -1
  82. package/dist/{pets.d-NbJvP_kh.d.cts → pets.d-nNAVnw7f.d.cts} +1 -1
  83. package/dist/{petsRepository.d-lp1BHRqM.d.cts → petsRepository.d-B2TpRE7r.d.cts} +1 -1
  84. package/dist/{petsRepository.d-BuGHymNx.d.ts → petsRepository.d-RGwSZcYl.d.ts} +1 -1
  85. package/dist/planSignals.d-BDbp2e-k.d.cts +126 -0
  86. package/dist/planSignals.d-DSnxKoWe.d.ts +126 -0
  87. package/dist/{ports.d-COIyN624.d.ts → ports.d-D2n4HRUy.d.ts} +4 -4
  88. package/dist/{ports.d-CEROoqnA.d.cts → ports.d-DBA_gsq5.d.cts} +4 -4
  89. package/dist/{presentation.d-DMbdad7G.d.cts → presentation.d-vy8kTGfR.d.cts} +6 -0
  90. package/dist/{presentation.d-DMbdad7G.d.ts → presentation.d-vy8kTGfR.d.ts} +6 -0
  91. package/dist/quickPrompts.d-NM_81Jc1.d.cts +19 -0
  92. package/dist/quickPrompts.d-NM_81Jc1.d.ts +19 -0
  93. package/dist/records/depth/index.d.cts +13 -9
  94. package/dist/records/depth/index.d.ts +13 -9
  95. package/dist/records/index.cjs +252 -138
  96. package/dist/records/index.d.cts +88 -23
  97. package/dist/records/index.d.ts +88 -23
  98. package/dist/records/index.js +253 -139
  99. package/dist/{requestFunnel.d-CXUMPw1K.d.ts → requestFunnel.d-D9edIEjZ.d.ts} +2 -2
  100. package/dist/{requestFunnel.d-DWQQpjFR.d.cts → requestFunnel.d-RZex94XX.d.cts} +2 -2
  101. package/dist/{resolve.d-jI8FmBj3.d.cts → resolve.d-CoQWUy1Y.d.cts} +1 -1
  102. package/dist/{resolve.d-jI8FmBj3.d.ts → resolve.d-CoQWUy1Y.d.ts} +1 -1
  103. package/dist/{runtimeTypes.d-4yFNNuYR.d.ts → runtimeTypes.d-BYq38b17.d.ts} +6 -6
  104. package/dist/{runtimeTypes.d-D6N_fhxx.d.cts → runtimeTypes.d-LkwZaF7z.d.cts} +6 -6
  105. package/dist/{useRecordsDepth.d-DFcCfiXm.d.ts → screenProps.d-BVzRzowC.d.ts} +5 -91
  106. package/dist/{useRecordsDepth.d-sAq2Qkhr.d.cts → screenProps.d-CQ0qZJkr.d.cts} +5 -91
  107. package/dist/server/events/index.cjs +1 -1
  108. package/dist/server/events/index.d.cts +2 -2
  109. package/dist/server/events/index.d.ts +2 -2
  110. package/dist/server/events/index.js +1 -1
  111. package/dist/server/index.cjs +1 -1
  112. package/dist/server/index.d.cts +3 -3
  113. package/dist/server/index.d.ts +3 -3
  114. package/dist/server/index.js +1 -1
  115. package/dist/{sheetSeam.d-Cviqk89n.d.ts → sheetSeam.d-B09jf4YC.d.ts} +8 -4
  116. package/dist/{sheetSeam.d-DCS3LW8g.d.cts → sheetSeam.d-BBuEIVsa.d.cts} +8 -4
  117. package/dist/shop/index.cjs +224 -58
  118. package/dist/shop/index.d.cts +23 -5
  119. package/dist/shop/index.d.ts +23 -5
  120. package/dist/shop/index.js +225 -59
  121. package/dist/tabs/index.cjs +195 -0
  122. package/dist/tabs/index.d.cts +174 -0
  123. package/dist/tabs/index.d.ts +174 -0
  124. package/dist/tabs/index.js +195 -0
  125. package/dist/tabsModel.d-BfIQg6yS.d.cts +31 -0
  126. package/dist/tabsModel.d-BfIQg6yS.d.ts +31 -0
  127. package/dist/televet/booking/index.d.cts +6 -6
  128. package/dist/televet/booking/index.d.ts +6 -6
  129. package/dist/testing/index.cjs +1 -1
  130. package/dist/testing/index.d.cts +1 -1
  131. package/dist/testing/index.d.ts +1 -1
  132. package/dist/testing/index.js +1 -1
  133. package/dist/testing/rn/index.cjs +1 -1
  134. package/dist/testing/rn/index.d.cts +11 -11
  135. package/dist/testing/rn/index.d.ts +11 -11
  136. package/dist/testing/rn/index.js +1 -1
  137. package/dist/testing/web/index.d.cts +12 -12
  138. package/dist/testing/web/index.d.ts +12 -12
  139. package/dist/texting/index.cjs +40 -5
  140. package/dist/texting/index.d.cts +40 -7
  141. package/dist/texting/index.d.ts +40 -7
  142. package/dist/texting/index.js +40 -5
  143. package/dist/threadOptions.d-9r4Csa7k.d.cts +458 -0
  144. package/dist/threadOptions.d-B6GA09aM.d.ts +458 -0
  145. package/dist/{timelineRows.d-CU5GvvLk.d.ts → timelineRows.d-Bes8ip2v.d.ts} +1 -1
  146. package/dist/{timelineRows.d-BNxgzYRW.d.cts → timelineRows.d-BvM2A7_G.d.cts} +1 -1
  147. package/dist/{typeStyle.d-C1HBRAI3.d.ts → typeStyle.d-Co5KF0up.d.ts} +1 -1
  148. package/dist/{typeStyle.d-Bl8pzbBy.d.cts → typeStyle.d-xIZj02Ru.d.cts} +1 -1
  149. package/dist/useIntroSeen.d-CTWFUthO.d.cts +35 -0
  150. package/dist/useIntroSeen.d-CTWFUthO.d.ts +35 -0
  151. package/dist/usePresentation.d-BGz32Vlm.d.ts +285 -0
  152. package/dist/usePresentation.d-DYTF_ZGf.d.cts +285 -0
  153. package/dist/{useRecords.d-Cb-36SF5.d.cts → useRecords.d-BYNX01El.d.cts} +2 -2
  154. package/dist/{useRecords.d-aQTzQZoV.d.ts → useRecords.d-DWk61a4c.d.ts} +2 -2
  155. package/dist/useRecordsDepth.d--LLA_4ga.d.cts +32 -0
  156. package/dist/useRecordsDepth.d-BQRL0Hez.d.ts +32 -0
  157. package/dist/{view.d-Dps5C8-s.d.cts → view.d-0yBjLTV3.d.cts} +6 -4
  158. package/dist/{view.d-C-SNpDJX.d.ts → view.d-DqbCADFa.d.ts} +6 -4
  159. package/dist/web/consent/index.d.cts +5 -5
  160. package/dist/web/consent/index.d.ts +5 -5
  161. package/dist/web/health-plan/index.cjs +50 -43
  162. package/dist/web/health-plan/index.d.cts +46 -192
  163. package/dist/web/health-plan/index.d.ts +46 -192
  164. package/dist/web/health-plan/index.js +65 -58
  165. package/dist/web/index.cjs +61 -45
  166. package/dist/web/index.d.cts +165 -25
  167. package/dist/web/index.d.ts +165 -25
  168. package/dist/web/index.js +62 -46
  169. package/dist/web/intro/index.cjs +167 -0
  170. package/dist/web/intro/index.d.cts +79 -0
  171. package/dist/web/intro/index.d.ts +79 -0
  172. package/dist/web/intro/index.js +167 -0
  173. package/dist/web/notifications/index.d.cts +3 -3
  174. package/dist/web/notifications/index.d.ts +3 -3
  175. package/dist/web/records/depth/index.d.cts +13 -9
  176. package/dist/web/records/depth/index.d.ts +13 -9
  177. package/dist/web/records/index.cjs +7 -7
  178. package/dist/web/records/index.d.cts +21 -82
  179. package/dist/web/records/index.d.ts +21 -82
  180. package/dist/web/records/index.js +7 -7
  181. package/dist/web/records-sheet/index.cjs +181 -127
  182. package/dist/web/records-sheet/index.d.cts +18 -16
  183. package/dist/web/records-sheet/index.d.ts +18 -16
  184. package/dist/web/records-sheet/index.js +181 -127
  185. package/dist/web/shop/index.cjs +191 -76
  186. package/dist/web/shop/index.d.cts +21 -4
  187. package/dist/web/shop/index.d.ts +21 -4
  188. package/dist/web/shop/index.js +191 -76
  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/texting/index.cjs +36 -5
  192. package/dist/web/texting/index.d.cts +40 -7
  193. package/dist/web/texting/index.d.ts +40 -7
  194. package/dist/web/texting/index.js +36 -5
  195. package/package.json +35 -4
  196. package/tabs/package.json +8 -0
  197. package/web/intro/native-blocked.cjs +12 -0
  198. package/web/intro/package.json +8 -0
  199. package/dist/threadOptions.d-B1pTMmDF.d.cts +0 -260
  200. package/dist/threadOptions.d-B1pTMmDF.d.ts +0 -260
  201. package/dist/usePresentation.d-D6qsFzBz.d.cts +0 -9
  202. package/dist/usePresentation.d-DuGQe_Do.d.ts +0 -9
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ImageSourcePropType } from 'react-native';
3
- import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopRoute, e as ShopCardHandoff, a as ShopPaymentsPort } from '../idempotency.d-D461_DPD.cjs';
4
- export { D as OmsCardActionLink, E as OmsCardSetupLink, g as OmsCartLine, h as OmsClientConfig, i as OmsConsumerAuth, j as OmsError, k as OmsGetToken, l as OmsPlanOperation, m as OmsResult, n as SHOP_COPY, o as SHOP_COPY_PLACEHOLDERS, p as ShopPackage, q as ShopPackageLine, F as ShopPayerActionContext, r as ShopPaymentStepResult, s as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, v as createOmsClient, w as createOmsPackageSource, y as isOmsRefusal, z as isOmsRetryable, A as isOmsUnavailable, B as newIdempotencyKey, C as shopCopy } from '../idempotency.d-D461_DPD.cjs';
5
- import '../config.d-BR3DT9ho.cjs';
3
+ import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName } from '../idempotency.d-HF6fyRt2.cjs';
4
+ export { I as OmsCardActionLink, J as OmsCardSetupLink, 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, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-HF6fyRt2.cjs';
5
+ import '../config.d-DJ4mvf_w.cjs';
6
6
  import '../EverfurError.d-8NHtlgzA.cjs';
7
7
  import '../EverfurResult.d-BFH-3s6E.cjs';
8
8
 
@@ -87,8 +87,10 @@ interface EverfurShopProps {
87
87
  readonly pets?: readonly ShopPet[];
88
88
  /** Default: the OMS plan review routes. */
89
89
  readonly packageSource?: ShopPackageSource;
90
- /** The host's words, and the real lines for the `[copy:shop.*]` placeholders. */
90
+ /** The host's words, and the real lines for the `[copy:shop.*]` placeholders of the Care screens. */
91
91
  readonly copy?: Partial<ShopCopy>;
92
+ /** The host's words over the v3 screens' defaults (`SHOP_V3_COPY`: cart, checkout, Order placed, orders, an order). */
93
+ readonly v3Copy?: Partial<ShopV3Copy>;
92
94
  /** The screen to show. */
93
95
  readonly route: ShopRoute;
94
96
  readonly onRouteChange: (route: ShopRoute) => void;
@@ -113,6 +115,22 @@ interface EverfurShopProps {
113
115
  readonly reminders?: ReactNode;
114
116
  /** Called once when the shop is not available to this member (shop-config 404, or signed out). */
115
117
  readonly onUnavailable?: () => void;
118
+ /**
119
+ * Space under a screen's pinned bar (Checkout, View order, View cart): `useSafeAreaInsets().bottom`, or 0 when the
120
+ * host's own tab bar sits below the shop. Default 0.
121
+ */
122
+ readonly bottomInset?: number;
123
+ /** The device's bottom inset under a bottom sheet (the checkout sheet covers the tab bar too). Default `bottomInset`. */
124
+ readonly screenBottomInset?: number;
125
+ /** "Get help with this order" on an order: the host's help (a chat, a case). Without it the link is not shown. */
126
+ readonly onOrderHelp?: (orderId: string) => void;
127
+ /**
128
+ * The pharmacy needs the owner's first and last name (checkout refused with `client_name_missing`): saves the name the
129
+ * owner types in the checkout, true when saved; the order is then placed again. Wins over `onProfileNameRequired`.
130
+ */
131
+ readonly saveProfileName?: (name: ShopProfileName) => Promise<boolean>;
132
+ /** Without `saveProfileName`: opens the host's own name editor from that same refusal. */
133
+ readonly onProfileNameRequired?: () => void;
116
134
  }
117
135
  /** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
118
136
  declare function shopBackRoute(route: ShopRoute): ShopRoute | null;
@@ -190,4 +208,4 @@ declare function ShopSwitchCard({ title, rows, }: {
190
208
  }[];
191
209
  }): ReactNode;
192
210
 
193
- export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopRoute, ShopSwitchCard, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
211
+ export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ImageSourcePropType } from 'react-native';
3
- import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopRoute, e as ShopCardHandoff, a as ShopPaymentsPort } from '../idempotency.d-WpXx9zQo.js';
4
- export { D as OmsCardActionLink, E as OmsCardSetupLink, g as OmsCartLine, h as OmsClientConfig, i as OmsConsumerAuth, j as OmsError, k as OmsGetToken, l as OmsPlanOperation, m as OmsResult, n as SHOP_COPY, o as SHOP_COPY_PLACEHOLDERS, p as ShopPackage, q as ShopPackageLine, F as ShopPayerActionContext, r as ShopPaymentStepResult, s as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, v as createOmsClient, w as createOmsPackageSource, y as isOmsRefusal, z as isOmsRetryable, A as isOmsUnavailable, B as newIdempotencyKey, C as shopCopy } from '../idempotency.d-WpXx9zQo.js';
5
- import '../config.d-Dy6igYlH.js';
3
+ import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName } from '../idempotency.d-DXb1BN2A.js';
4
+ export { I as OmsCardActionLink, J as OmsCardSetupLink, 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, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-DXb1BN2A.js';
5
+ import '../config.d-MX7IKP2f.js';
6
6
  import '../EverfurError.d-8NHtlgzA.js';
7
7
  import '../EverfurResult.d-D_-254ZY.js';
8
8
 
@@ -87,8 +87,10 @@ interface EverfurShopProps {
87
87
  readonly pets?: readonly ShopPet[];
88
88
  /** Default: the OMS plan review routes. */
89
89
  readonly packageSource?: ShopPackageSource;
90
- /** The host's words, and the real lines for the `[copy:shop.*]` placeholders. */
90
+ /** The host's words, and the real lines for the `[copy:shop.*]` placeholders of the Care screens. */
91
91
  readonly copy?: Partial<ShopCopy>;
92
+ /** The host's words over the v3 screens' defaults (`SHOP_V3_COPY`: cart, checkout, Order placed, orders, an order). */
93
+ readonly v3Copy?: Partial<ShopV3Copy>;
92
94
  /** The screen to show. */
93
95
  readonly route: ShopRoute;
94
96
  readonly onRouteChange: (route: ShopRoute) => void;
@@ -113,6 +115,22 @@ interface EverfurShopProps {
113
115
  readonly reminders?: ReactNode;
114
116
  /** Called once when the shop is not available to this member (shop-config 404, or signed out). */
115
117
  readonly onUnavailable?: () => void;
118
+ /**
119
+ * Space under a screen's pinned bar (Checkout, View order, View cart): `useSafeAreaInsets().bottom`, or 0 when the
120
+ * host's own tab bar sits below the shop. Default 0.
121
+ */
122
+ readonly bottomInset?: number;
123
+ /** The device's bottom inset under a bottom sheet (the checkout sheet covers the tab bar too). Default `bottomInset`. */
124
+ readonly screenBottomInset?: number;
125
+ /** "Get help with this order" on an order: the host's help (a chat, a case). Without it the link is not shown. */
126
+ readonly onOrderHelp?: (orderId: string) => void;
127
+ /**
128
+ * The pharmacy needs the owner's first and last name (checkout refused with `client_name_missing`): saves the name the
129
+ * owner types in the checkout, true when saved; the order is then placed again. Wins over `onProfileNameRequired`.
130
+ */
131
+ readonly saveProfileName?: (name: ShopProfileName) => Promise<boolean>;
132
+ /** Without `saveProfileName`: opens the host's own name editor from that same refusal. */
133
+ readonly onProfileNameRequired?: () => void;
116
134
  }
117
135
  /** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
118
136
  declare function shopBackRoute(route: ShopRoute): ShopRoute | null;
@@ -190,4 +208,4 @@ declare function ShopSwitchCard({ title, rows, }: {
190
208
  }[];
191
209
  }): ReactNode;
192
210
 
193
- export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopRoute, ShopSwitchCard, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
211
+ export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };