@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.
- package/CHANGELOG.md +157 -0
- package/README.md +3 -1
- package/chat/lite/package.json +8 -0
- package/dist/Chat.d-BYY1U61e.d.cts +11 -0
- package/dist/Chat.d-uETscjrL.d.ts +11 -0
- package/dist/{DepthViews.d-A7S-XYiI.d.ts → DepthViews.d-B4SE5GUD.d.ts} +1 -1
- package/dist/{DepthViews.d-CNjaHLAS.d.ts → DepthViews.d-BsZ73mzL.d.ts} +1 -1
- package/dist/{DepthViews.d-C4TIZDfz.d.cts → DepthViews.d-DL8MP_kA.d.cts} +1 -1
- package/dist/{DepthViews.d-DapfRz1S.d.cts → DepthViews.d-D_Qp4glO.d.cts} +1 -1
- package/dist/{RecordsPage.d-B2gLf8RH.d.cts → RecordsPage.d-CYotk2R9.d.cts} +1 -1
- package/dist/{RecordsPage.d-6WMbieaV.d.ts → RecordsPage.d-D4gP4leq.d.ts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{appStateLifecycle.d-B7L427MF.d.ts → appStateLifecycle.d-CXJzBS3c.d.ts} +6 -11
- package/dist/{appStateLifecycle.d-CWedOJq4.d.cts → appStateLifecycle.d-DJXdDOJY.d.cts} +6 -11
- package/dist/attachmentTransport.d-Syrvv5zH.d.ts +41 -0
- package/dist/attachmentTransport.d-r1XCCdUB.d.cts +41 -0
- package/dist/{attachments.d-BARh-PrJ.d.cts → attachments.d-B8kOCb6q.d.cts} +5 -5
- package/dist/{attachments.d-CB0R1_vK.d.ts → attachments.d-BTIGzXWD.d.ts} +5 -5
- package/dist/{attachments.d-CPgp4_W-.d.ts → attachments.d-BgatKf7d.d.ts} +2 -2
- package/dist/{attachments.d-DeoaCEMD.d.cts → attachments.d-C61URT8r.d.cts} +2 -2
- package/dist/{bookingCopy.d-CVmpuk9C.d.cts → bookingCopy.d-B-bSYgqS.d.cts} +2 -2
- package/dist/{bookingCopy.d-BakTjvWw.d.ts → bookingCopy.d-JQW2SLM-.d.ts} +2 -2
- package/dist/{casesRepository.d-CuokarTU.d.ts → casesRepository.d-CHEjzT4h.d.ts} +1 -1
- package/dist/{casesRepository.d-DKRLtYb8.d.cts → casesRepository.d-CVG2EXcg.d.cts} +1 -1
- package/dist/chat/index.cjs +32 -31
- package/dist/chat/index.d.cts +16 -51
- package/dist/chat/index.d.ts +16 -51
- package/dist/chat/index.js +32 -31
- package/dist/chat/lite/index.cjs +430 -0
- package/dist/chat/lite/index.d.cts +35 -0
- package/dist/chat/lite/index.d.ts +35 -0
- package/dist/chat/lite/index.js +430 -0
- package/dist/client/index.cjs +4 -4
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +4 -4
- package/dist/{clinicBatch.d-BTDdhMQ2.d.cts → clinicBatch.d-DdlFy4pD.d.cts} +2 -2
- package/dist/{clinicBatch.d-BP_Rpvcy.d.ts → clinicBatch.d-oNwH_dbI.d.ts} +2 -2
- package/dist/{config.d-84fNJFv9.d.cts → config.d-Cy_hJBJG.d.cts} +1 -1
- package/dist/{config.d-B4-Mrwq2.d.ts → config.d-DopRLD4f.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-rNGMZH8T.d.ts → context.d-Ban-Hhqu.d.ts} +5 -5
- package/dist/{context.d-87MMrNm6.d.cts → context.d-C42juGn6.d.cts} +5 -5
- package/dist/{copy.d-CJOLhJac.d.cts → copy.d-BTS5l6Ri.d.cts} +2 -2
- package/dist/{copy.d-DbwWriBp.d.ts → copy.d-qdbygul9.d.ts} +2 -2
- package/dist/core/index.cjs +10 -10
- package/dist/core/index.d.cts +13 -13
- package/dist/core/index.d.ts +13 -13
- package/dist/core/index.js +10 -10
- package/dist/{depth.d-Dca1T_RH.d.ts → depth.d-BGkHm2Se.d.ts} +2 -2
- package/dist/{depth.d-CXpPxNSK.d.cts → depth.d-BfVrhq9o.d.cts} +2 -2
- package/dist/{entitlementRepository.d-BBRYTUlp.d.ts → entitlementRepository.d-CjwqCyhS.d.ts} +2 -2
- package/dist/{entitlementRepository.d-DBhzBQjZ.d.cts → entitlementRepository.d-npT7L_7_.d.cts} +2 -2
- package/dist/{focus.d-BQnOVAql.d.cts → focus.d-DS7Ze1Pp.d.cts} +2 -2
- package/dist/{focus.d-BZ2sEpbU.d.ts → focus.d-S0nq_k1A.d.ts} +2 -2
- package/dist/health-plan/index.cjs +7 -7
- package/dist/health-plan/index.d.cts +10 -10
- package/dist/health-plan/index.d.ts +10 -10
- package/dist/health-plan/index.js +7 -7
- package/dist/{idempotency.d-9wNNohIA.d.cts → idempotency.d-COIrwuCb.d.ts} +334 -3
- package/dist/{idempotency.d-BdB17veP.d.ts → idempotency.d-gfiN4Qnp.d.cts} +334 -3
- package/dist/{identity.d-DxNvhj3a.d.ts → identity.d-B3mFvvRq.d.ts} +1 -1
- package/dist/{identity.d-nRZBzkG2.d.cts → identity.d-D76vXtkJ.d.cts} +1 -1
- package/dist/index.cjs +29 -28
- package/dist/index.d.cts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.js +29 -28
- package/dist/{introEvents.d-CQeiUeLn.d.cts → introEvents.d-3FLEemX3.d.cts} +1 -1
- package/dist/{introEvents.d-bkIxpIKr.d.ts → introEvents.d-BYnr37bd.d.ts} +1 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-DVJcB4Gp.d.ts → optInView.d-BqFMcum4.d.ts} +2 -2
- package/dist/{optInView.d-BbVUUeoG.d.cts → optInView.d-DXRUGDiD.d.cts} +2 -2
- package/dist/{parse.d-CGeJrcAC.d.ts → parse.d-CY22hFxb.d.ts} +1 -1
- package/dist/{parse.d-Dk0BasyK.d.cts → parse.d-rvA_aRSO.d.cts} +1 -1
- package/dist/{pets.d-DBopbeRe.d.ts → pets.d-Cicz-aIO.d.ts} +1 -1
- package/dist/{pets.d-DVptPgi0.d.cts → pets.d-RoHTZsaV.d.cts} +1 -1
- package/dist/{petsRepository.d-Daef7u0o.d.cts → petsRepository.d-BxMyt6Aj.d.cts} +1 -1
- package/dist/{petsRepository.d-BtuooSOW.d.ts → petsRepository.d-DtAZf_Ja.d.ts} +1 -1
- package/dist/photo/index.cjs +2 -2
- package/dist/photo/index.js +2 -2
- package/dist/{ports.d-CAT70bVD.d.cts → ports.d-D7cjFUoL.d.cts} +4 -4
- package/dist/{ports.d-BxCVSbSi.d.ts → ports.d-DrgKa73F.d.ts} +4 -4
- package/dist/records/depth/index.cjs +9 -9
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +9 -9
- package/dist/records/index.cjs +13 -13
- package/dist/records/index.d.cts +10 -10
- package/dist/records/index.d.ts +10 -10
- package/dist/records/index.js +13 -13
- package/dist/{requestFunnel.d-Cxt0JqYx.d.ts → requestFunnel.d-B5y7Py8Z.d.ts} +2 -2
- package/dist/{requestFunnel.d-mEu6B-n8.d.cts → requestFunnel.d-BdQf53zs.d.cts} +2 -2
- package/dist/{runtimeTypes.d-Bkcj_XQy.d.ts → runtimeTypes.d-D5EDgS3Y.d.ts} +4 -4
- package/dist/{runtimeTypes.d-D_qHJROH.d.cts → runtimeTypes.d-r4Q5vASZ.d.cts} +4 -4
- package/dist/{screenProps.d-D9n-ancr.d.ts → screenProps.d-KLCrP43b.d.ts} +1 -1
- package/dist/{screenProps.d-CR1lrpzR.d.cts → screenProps.d-v4a4kzxA.d.cts} +1 -1
- package/dist/server/events/index.cjs +3 -3
- package/dist/server/events/index.d.cts +72 -6
- package/dist/server/events/index.d.ts +72 -6
- package/dist/server/events/index.js +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +2 -2
- package/dist/shop/index.cjs +212 -163
- package/dist/shop/index.d.cts +38 -4
- package/dist/shop/index.d.ts +38 -4
- package/dist/shop/index.js +214 -165
- package/dist/shop/orders-v2/index.cjs +127 -0
- package/dist/shop/orders-v2/index.d.cts +7 -0
- package/dist/shop/orders-v2/index.d.ts +7 -0
- package/dist/shop/orders-v2/index.js +127 -0
- package/dist/tabs/index.d.cts +8 -8
- package/dist/tabs/index.d.ts +8 -8
- package/dist/televet/booking/index.cjs +2 -2
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/televet/booking/index.js +2 -2
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +4 -3
- package/dist/televet/index.d.cts +1 -0
- package/dist/televet/index.d.ts +1 -0
- package/dist/televet/index.js +5 -4
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/{threadOptions.d-BEG-LZrC.d.cts → threadOptions.d-B0folrKm.d.cts} +1 -1
- package/dist/{threadOptions.d-BgBvSIw8.d.ts → threadOptions.d-Crh_LiDe.d.ts} +3 -3
- package/dist/{threadOptions.d-BerQM1Ql.d.ts → threadOptions.d-DTsJFkL-.d.ts} +1 -1
- package/dist/{threadOptions.d-P9v7I7va.d.cts → threadOptions.d-EFJaNBP1.d.cts} +3 -3
- package/dist/{threadOptions.d-6hfQS1x7.d.cts → threadOptions.d-GPJPprkn.d.cts} +1 -1
- package/dist/{threadOptions.d-6hfQS1x7.d.ts → threadOptions.d-GPJPprkn.d.ts} +1 -1
- package/dist/{timelineRows.d-C04lp_Vj.d.cts → timelineRows.d-6-Cw8xGd.d.cts} +1 -1
- package/dist/{timelineRows.d-_7JemrY-.d.ts → timelineRows.d-DpSis9HR.d.ts} +1 -1
- package/dist/{useHealthPlanSubscription.d-CUbHE6eK.d.ts → useHealthPlanSubscription.d-DD30EkUR.d.ts} +3 -3
- package/dist/{useHealthPlanSubscription.d-OhLZpn-n.d.cts → useHealthPlanSubscription.d-DWrzUXf4.d.cts} +3 -3
- package/dist/{usePresentation.d-YkJeq9mf.d.cts → usePresentation.d-C8rqY56C.d.cts} +1 -1
- package/dist/{usePresentation.d-CBtBx38t.d.ts → usePresentation.d-CRG3Gaaq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-FTImzp6T.d.cts → useRecordsDepth.d-BYk7m7gF.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-_rqDIvoq.d.ts → useRecordsDepth.d-DlRda5jp.d.ts} +1 -1
- package/dist/video/index.cjs +2 -2
- package/dist/video/index.js +2 -2
- package/dist/view.d-B31M8rCG.d.cts +11 -0
- package/dist/view.d-B31M8rCG.d.ts +11 -0
- package/dist/{view.d-Dd6AfMvG.d.cts → view.d-CLpEHKOp.d.cts} +3 -3
- package/dist/{view.d-gmYinlac.d.ts → view.d-DuIXHr08.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +4 -4
- package/dist/web/health-plan/index.d.cts +12 -12
- package/dist/web/health-plan/index.d.ts +12 -12
- package/dist/web/health-plan/index.js +4 -4
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.d.cts +23 -23
- package/dist/web/index.d.ts +23 -23
- package/dist/web/index.js +4 -4
- package/dist/web/intro/index.d.cts +6 -6
- package/dist/web/intro/index.d.ts +6 -6
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.cjs +9 -9
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/depth/index.js +9 -9
- package/dist/web/records/index.cjs +12 -12
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +12 -12
- package/dist/web/records-sheet/index.cjs +9 -9
- package/dist/web/records-sheet/index.js +9 -9
- package/dist/web/shop/index.cjs +194 -50
- package/dist/web/shop/index.d.cts +32 -4
- package/dist/web/shop/index.d.ts +32 -4
- package/dist/web/shop/index.js +194 -50
- package/dist/web/shop/orders-v2/index.cjs +124 -0
- package/dist/web/shop/orders-v2/index.d.cts +14 -0
- package/dist/web/shop/orders-v2/index.d.ts +14 -0
- package/dist/web/shop/orders-v2/index.js +124 -0
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/televet/booking/index.js +2 -2
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/package.json +45 -26
- package/shop/orders-v2/package.json +8 -0
- package/web/shop/orders-v2/native-blocked.cjs +12 -0
- 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-
|
|
4
|
-
export {
|
|
5
|
-
import '../../config.d-
|
|
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 };
|
package/dist/web/shop/index.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
export {
|
|
5
|
-
import '../../config.d-
|
|
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 };
|