@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.
- package/CHANGELOG.md +167 -0
- package/dist/{Chat.d-IpxKa9gS.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
- package/dist/{Chat.d-D61LLPJh.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
- package/dist/{DepthViews.d-CDIL4mPa.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
- package/dist/{DepthViews.d-C8EsR8Gq.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
- package/dist/{DepthViews.d-w2o4Nf7r.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
- package/dist/{DepthViews.d-Q1nqdH8n.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
- package/dist/{RecordsPage.d-DqhM_rCr.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
- package/dist/{RecordsPage.d-BSjZOHu8.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
- package/dist/animations/index.cjs +2 -2
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +2 -2
- package/dist/{attachments.d-BviU_Tja.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
- package/dist/{attachments.d-DZVfHHnY.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
- package/dist/{bookingCopy.d-5V3erfXD.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
- package/dist/{bookingCopy.d-DlzUPsFE.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
- package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
- package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
- package/dist/{casesRepository.d-Dqg-KbpA.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
- package/dist/{casesRepository.d-7Us2O-z8.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
- package/dist/chat/index.cjs +59 -47
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +59 -47
- package/dist/chat/lite/index.cjs +59 -47
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +59 -47
- package/dist/{chatHandoffToken.d-TYcD8NIi.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-B9pjkEfl.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
- package/dist/{chatTypes.d-RnQ5R4zP.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
- package/dist/{chatTypes.d-DPALEQoW.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
- package/dist/chunk-AT7SU763.js +14 -0
- package/dist/chunk-FFMIX6HG.js +5 -0
- package/dist/chunk-K5NVMNI5.js +47 -0
- package/dist/chunk-ZASVU7CH.js +34 -0
- package/dist/client/index.cjs +9 -8
- package/dist/client/index.d.cts +18 -12
- package/dist/client/index.d.ts +18 -12
- package/dist/client/index.js +9 -8
- package/dist/{clinicBatch.d-t9hkown2.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
- package/dist/{clinicBatch.d-C6MzLj3X.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
- package/dist/{config.d-BnZkxI5a.d.ts → config.d--6siaeNg.d.ts} +14 -6
- package/dist/{config.d-DoC-XaJ0.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
- package/dist/consent/index.cjs +2 -2
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +2 -2
- package/dist/{context.d-BAh7C7T4.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
- package/dist/{context.d-z2zIjKEb.d.ts → context.d-TArU_9lj.d.ts} +7 -7
- package/dist/{copy.d-DLxgHsZZ.d.ts → copy.d-GokMma80.d.ts} +2 -2
- package/dist/{copy.d-BkX6G-Ws.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.d.cts +17 -17
- package/dist/core/index.d.ts +17 -17
- package/dist/core/index.js +4 -4
- package/dist/{depth.d-z2FlzY3x.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
- package/dist/{depth.d-aXddCjyh.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
- package/dist/{entitlementRepository.d-Cgmy4Opa.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
- package/dist/{entitlementRepository.d-CDCF8eFx.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
- package/dist/{focus.d-C2fd_5MW.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
- package/dist/{focus.d-q_sXGhLn.d.cts → focus.d-B0qweva0.d.cts} +3 -128
- package/dist/health-plan/index.cjs +160 -103
- package/dist/health-plan/index.d.cts +33 -18
- package/dist/health-plan/index.d.ts +33 -18
- package/dist/health-plan/index.js +167 -110
- package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
- package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
- package/dist/{idempotency.d-DlAPAxD5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
- package/dist/{idempotency.d-Bqdyv_yn.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
- package/dist/{identity.d-BWZiaByn.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
- package/dist/{identity.d-CooKscNj.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
- package/dist/inbox.d-ChNXTovj.d.cts +103 -0
- package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
- package/dist/index.cjs +69 -56
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +69 -56
- package/dist/{introEvents.d-baVM016i.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
- package/dist/{introEvents.d-C8bDDiK6.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
- package/dist/{usePresentation.d-CyCEJ6nj.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
- package/dist/{usePresentation.d-CgvwGb2A.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
- package/dist/notifications/inbox/index.cjs +24 -12
- package/dist/notifications/inbox/index.d.cts +87 -6
- package/dist/notifications/inbox/index.d.ts +87 -6
- package/dist/notifications/inbox/index.js +24 -12
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-C04aX0Hs.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
- package/dist/{optInView.d-D_D7fs6C.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
- package/dist/{pets.d-CkFNO-x-.d.ts → pets.d-Br960ekh.d.ts} +1 -1
- package/dist/{pets.d-oJ2OIY22.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
- package/dist/{petsRepository.d-VWMyIeIJ.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
- package/dist/{petsRepository.d-CKCi6rtp.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
- package/dist/photo/index.cjs +1 -1
- package/dist/photo/index.js +1 -1
- package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.cts} +6 -0
- package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.ts} +6 -0
- package/dist/records/depth/index.cjs +10 -6
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +10 -6
- package/dist/records/index.cjs +302 -207
- package/dist/records/index.d.cts +144 -17
- package/dist/records/index.d.ts +144 -17
- package/dist/records/index.js +302 -207
- package/dist/{requestFunnel.d-By0-I8Cp.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
- package/dist/{requestFunnel.d-DVCytzTE.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
- package/dist/{route.d-Ay-lRct1.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
- package/dist/{route.d-DQDX6QFn.d.cts → route.d-D70-OHBc.d.cts} +2 -2
- package/dist/{runtimeTypes.d-DUVNpR6g.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
- package/dist/{runtimeTypes.d-C49Cgb9c.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
- package/dist/{screenProps.d-BgxlmfG5.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
- package/dist/{screenProps.d-B_arD3Lh.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +201 -146
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/shop/index.js +202 -147
- package/dist/slots/index.cjs +299 -0
- package/dist/slots/index.d.cts +155 -0
- package/dist/slots/index.d.ts +155 -0
- package/dist/slots/index.js +299 -0
- package/dist/slots/weather-glyphs/index.cjs +2 -0
- package/dist/slots/weather-glyphs/index.d.cts +11 -0
- package/dist/slots/weather-glyphs/index.d.ts +11 -0
- package/dist/slots/weather-glyphs/index.js +2 -0
- package/dist/tabs/index.cjs +43 -12
- package/dist/tabs/index.d.cts +79 -8
- package/dist/tabs/index.d.ts +79 -8
- package/dist/tabs/index.js +43 -12
- package/dist/televet/booking/index.cjs +54 -10
- package/dist/televet/booking/index.d.cts +51 -10
- package/dist/televet/booking/index.d.ts +51 -10
- package/dist/televet/booking/index.js +55 -11
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +2 -2
- package/dist/televet/index.d.ts +2 -2
- package/dist/televet/index.js +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -11
- package/dist/testing/rn/index.d.ts +13 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +10 -10
- package/dist/testing/web/index.d.ts +10 -10
- package/dist/texting/index.cjs +2 -2
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +2 -2
- package/dist/{threadOptions.d-pZXzsd2d.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
- package/dist/{threadOptions.d-Cbhjjb9_.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
- package/dist/{timelineRows.d-DlMs82N1.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
- package/dist/{timelineRows.d-BHxMeZzl.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
- package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
- package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
- package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
- package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
- package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
- package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
- package/dist/ui/index.cjs +112 -47
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +112 -47
- package/dist/{useHealthPlanSubscription.d-BoC7H85G.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
- package/dist/{useHealthPlanSubscription.d-CZn06-lu.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
- package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
- package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
- package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
- package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
- package/dist/{useRecordsDepth.d-CbXhWbx7.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-CcbL98FD.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
- package/dist/{useUnread.d-BsZKbLp9.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
- package/dist/{useUnread.d-CfF2Cx-q.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
- package/dist/video/index.cjs +1 -1
- package/dist/video/index.js +1 -1
- package/dist/{view.d-DdyOf0T0.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
- package/dist/{view.d-CF3AP3T7.d.cts → view.d-DV4b1cov.d.cts} +3 -3
- package/dist/web/consent/index.cjs +1 -1
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +1 -1
- package/dist/web/health-plan/index.cjs +54 -25
- package/dist/web/health-plan/index.d.cts +20 -13
- package/dist/web/health-plan/index.d.ts +20 -13
- package/dist/web/health-plan/index.js +36 -31
- package/dist/web/health-plan/styles.css +165 -2
- package/dist/web/inbox/index.cjs +1 -1
- package/dist/web/inbox/index.d.cts +7 -5
- package/dist/web/inbox/index.d.ts +7 -5
- package/dist/web/inbox/index.js +1 -1
- package/dist/web/index.cjs +71 -70
- package/dist/web/index.d.cts +53 -31
- package/dist/web/index.d.ts +53 -31
- package/dist/web/index.js +28 -27
- package/dist/web/intro/index.cjs +1 -1
- package/dist/web/intro/index.d.cts +7 -6
- package/dist/web/intro/index.d.ts +7 -6
- package/dist/web/intro/index.js +1 -1
- package/dist/web/notifications/index.cjs +1 -1
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/notifications/index.js +1 -1
- package/dist/web/records/depth/index.cjs +1 -1
- 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 +1 -1
- package/dist/web/records/index.cjs +1 -1
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +1 -1
- package/dist/web/records-sheet/index.cjs +3 -3
- package/dist/web/records-sheet/index.js +3 -3
- package/dist/web/shop/index.cjs +129 -88
- package/dist/web/shop/index.d.cts +4 -3
- package/dist/web/shop/index.d.ts +4 -3
- package/dist/web/shop/index.js +67 -81
- package/dist/web/televet/booking/index.cjs +53 -53
- package/dist/web/televet/booking/index.d.cts +44 -44
- package/dist/web/televet/booking/index.d.ts +44 -44
- package/dist/web/televet/booking/index.js +53 -53
- package/dist/web/televet/call/index.cjs +3 -3
- package/dist/web/televet/call/index.d.cts +7 -6
- package/dist/web/televet/call/index.d.ts +7 -6
- package/dist/web/televet/call/index.js +3 -3
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.js +1 -1
- package/dist/web/texting/index.cjs +1 -1
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +1 -1
- package/dist/web/ui/index.cjs +116 -58
- package/dist/web/ui/index.d.cts +33 -32
- package/dist/web/ui/index.d.ts +33 -32
- package/dist/web/ui/index.js +41 -46
- package/dist/web/ui/styles.css +525 -2
- package/package.json +36 -5
- package/slots/package.json +8 -0
- package/slots/weather-glyphs/package.json +8 -0
- package/dist/chunk-Y3Q4GW47.js +0 -31
- package/dist/useInboxUnread.d-DW0dpWdv.d.cts +0 -206
- package/dist/useInboxUnread.d-vYpOXVRv.d.ts +0 -206
- package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
- 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 };
|