@everfur/sdk 0.15.1 → 0.16.1
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 +138 -0
- package/README.md +3 -1
- package/chat/lite/package.json +8 -0
- package/dist/Chat.d-CzI2228d.d.ts +11 -0
- package/dist/Chat.d-D3ScVQ22.d.cts +11 -0
- package/dist/{DepthViews.d-PuBGdAYk.d.cts → DepthViews.d-6U4QqaW3.d.cts} +1 -1
- package/dist/{DepthViews.d--1daZblh.d.cts → DepthViews.d-BLx_ZTwa.d.cts} +1 -1
- package/dist/{DepthViews.d-CKTnEeUo.d.ts → DepthViews.d-Cwbel5o4.d.ts} +1 -1
- package/dist/{DepthViews.d-BuEWI6Ln.d.ts → DepthViews.d-DVIydPLt.d.ts} +1 -1
- package/dist/{RecordsPage.d-CBB8sfoY.d.ts → RecordsPage.d-Bwalb0wU.d.ts} +1 -1
- package/dist/{RecordsPage.d-Dq5gpQG0.d.cts → RecordsPage.d-Do7T8Fns.d.cts} +1 -1
- package/dist/animations/index.d.cts +5 -5
- package/dist/animations/index.d.ts +5 -5
- package/dist/{Chat.d-BlsnQwCQ.d.ts → appStateLifecycle.d-Bd-rNy6K.d.ts} +62 -144
- package/dist/{Chat.d-BO5iJsR2.d.cts → appStateLifecycle.d-_mh4CEAq.d.cts} +62 -144
- package/dist/attachmentTransport.d-Syrvv5zH.d.ts +41 -0
- package/dist/attachmentTransport.d-r1XCCdUB.d.cts +41 -0
- package/dist/{attachments.d-DFP9yvz9.d.ts → attachments.d-BiBGBE4o.d.ts} +24 -6
- package/dist/{attachments.d-C2nkIyDB.d.ts → attachments.d-CyB8hzDo.d.ts} +2 -2
- package/dist/{attachments.d-DRHsJkni.d.cts → attachments.d-GlO5UP7H.d.cts} +24 -6
- package/dist/{attachments.d-DRUC35Ti.d.cts → attachments.d-Y-qvSHVU.d.cts} +2 -2
- package/dist/{bookingCopy.d-bF_QknDC.d.cts → bookingCopy.d-BIaCiRuW.d.cts} +2 -2
- package/dist/{bookingCopy.d-CFL-1Be2.d.ts → bookingCopy.d-DgWvNKD5.d.ts} +2 -2
- package/dist/{casesRepository.d-C__BnffJ.d.ts → casesRepository.d-BW8DTYeN.d.ts} +1 -1
- package/dist/{casesRepository.d-BMOnT1fg.d.cts → casesRepository.d-_0AO2YrL.d.cts} +1 -1
- package/dist/chat/index.cjs +246 -231
- package/dist/chat/index.d.cts +16 -49
- package/dist/chat/index.d.ts +16 -49
- package/dist/chat/index.js +246 -231
- 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-D68RYvc3.d.ts → clinicBatch.d-BXwATY3-.d.ts} +2 -2
- package/dist/{clinicBatch.d-C5deJ4xY.d.cts → clinicBatch.d-BcuSaOkv.d.cts} +2 -2
- package/dist/{config.d-BQgrIDdu.d.cts → config.d-D1xcxALX.d.cts} +1 -1
- package/dist/{config.d-XSMThgVj.d.ts → config.d-jTVsAeky.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-Ba8YyJpk.d.cts → context.d-C3x-z665.d.cts} +5 -5
- package/dist/{context.d-xoh5vmxS.d.ts → context.d-goZeZO2I.d.ts} +5 -5
- package/dist/{copy.d-Cq-s-UUv.d.cts → copy.d-DPwFY4r5.d.cts} +2 -2
- package/dist/{copy.d-HV9fU5kh.d.ts → copy.d-yfJv7fl6.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-D7kKiYl7.d.ts → depth.d-SJzknw_P.d.ts} +2 -2
- package/dist/{depth.d-DYnkz8Re.d.cts → depth.d-e_8_icip.d.cts} +2 -2
- package/dist/{entitlementRepository.d-DmnUZLl_.d.ts → entitlementRepository.d-BNgZhwoE.d.ts} +2 -2
- package/dist/{entitlementRepository.d-B_kEPLhz.d.cts → entitlementRepository.d-C_LdzINM.d.cts} +2 -2
- package/dist/{focus.d-BHm_QtQ9.d.cts → focus.d-CXpIkIuU.d.cts} +3 -3
- package/dist/{focus.d-CjL6Cj0m.d.ts → focus.d-DzIgOqNB.d.ts} +3 -3
- package/dist/health-plan/index.cjs +136 -133
- package/dist/health-plan/index.d.cts +77 -24
- package/dist/health-plan/index.d.ts +77 -24
- package/dist/health-plan/index.js +136 -133
- package/dist/{idempotency.d-BSRK8od4.d.cts → idempotency.d-0biUa_Vw.d.cts} +1 -1
- package/dist/{idempotency.d-CFc4CCc9.d.ts → idempotency.d-DcqIqmf9.d.ts} +1 -1
- package/dist/{identity.d-Be2Es9Td.d.ts → identity.d-BEJcHY-5.d.ts} +1 -1
- package/dist/{identity.d-HbwYQ4-z.d.cts → identity.d-COcNGuCJ.d.cts} +1 -1
- package/dist/index.cjs +245 -230
- package/dist/index.d.cts +15 -12
- package/dist/index.d.ts +15 -12
- package/dist/index.js +246 -231
- package/dist/{introEvents.d-Dr34KIaD.d.cts → introEvents.d-D8N9bbGO.d.cts} +1 -1
- package/dist/{introEvents.d-DflJ6J9H.d.ts → introEvents.d-GCdyQyUG.d.ts} +1 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-3mbj1mR6.d.ts → optInView.d-CY2IueSZ.d.ts} +2 -2
- package/dist/{optInView.d-D23o1gtT.d.cts → optInView.d-DVuuWDRw.d.cts} +2 -2
- package/dist/{parse.d-BERabxHw.d.ts → parse.d--ztmWIIP.d.ts} +1 -1
- package/dist/{parse.d-4lUXdmvY.d.cts → parse.d-B-WrkW2C.d.cts} +1 -1
- package/dist/{pets.d-CHU0UbXt.d.cts → pets.d-BSW0oEYx.d.cts} +1 -1
- package/dist/{pets.d-D_ayuqjp.d.ts → pets.d-DwsImaHU.d.ts} +1 -1
- package/dist/{petsRepository.d-Bwfe8yuR.d.cts → petsRepository.d-BQfWC3d4.d.cts} +1 -1
- package/dist/{petsRepository.d-DUaAWoTv.d.ts → petsRepository.d-BudLFHVe.d.ts} +1 -1
- package/dist/photo/index.cjs +2 -2
- package/dist/photo/index.js +2 -2
- package/dist/{ports.d-DzEJMVRs.d.ts → ports.d-B6kDPKF7.d.ts} +4 -4
- package/dist/{ports.d-ClbPRUtx.d.cts → ports.d-DzPbmiDT.d.cts} +4 -4
- package/dist/records/depth/index.cjs +10 -10
- 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 -10
- package/dist/records/index.cjs +253 -211
- package/dist/records/index.d.cts +169 -73
- package/dist/records/index.d.ts +169 -73
- package/dist/records/index.js +254 -212
- package/dist/{requestFunnel.d-YabU6G-Z.d.ts → requestFunnel.d-BPsCHJWf.d.ts} +2 -2
- package/dist/{requestFunnel.d-JoqddYSx.d.cts → requestFunnel.d-BdpL7gwg.d.cts} +2 -2
- package/dist/{runtimeTypes.d-DQTBJAbk.d.ts → runtimeTypes.d-C_Pcxn-n.d.ts} +4 -4
- package/dist/{runtimeTypes.d-Cv38YuzP.d.cts → runtimeTypes.d-Cfq3IrZG.d.cts} +4 -4
- package/dist/{screenProps.d-C-AuHoyF.d.cts → screenProps.d-BJMn1kTR.d.cts} +2 -2
- package/dist/{screenProps.d-BuJLzFkN.d.ts → screenProps.d-DGrfO17l.d.ts} +2 -2
- package/dist/server/events/index.cjs +3 -3
- package/dist/server/events/index.d.cts +48 -6
- package/dist/server/events/index.d.ts +48 -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 +16 -16
- package/dist/shop/index.d.cts +12 -3
- package/dist/shop/index.d.ts +12 -3
- package/dist/shop/index.js +16 -16
- package/dist/tabs/index.cjs +4 -4
- package/dist/tabs/index.d.cts +34 -15
- package/dist/tabs/index.d.ts +34 -15
- package/dist/tabs/index.js +5 -5
- package/dist/{tabsModel.d-BfIQg6yS.d.ts → tabsModel.d-B7QMug1u.d.cts} +1 -17
- package/dist/{tabsModel.d-BfIQg6yS.d.cts → tabsModel.d-B7QMug1u.d.ts} +1 -17
- 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.cjs +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/texting/index.cjs +21 -16
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +22 -17
- package/dist/threadOptions.d-B0folrKm.d.cts +147 -0
- package/dist/{threadOptions.d-DBrmOwmb.d.cts → threadOptions.d-B8HTJa9A.d.cts} +6 -40
- package/dist/{threadOptions.d-8x_1evAr.d.ts → threadOptions.d-BnhE7T8Y.d.ts} +6 -40
- package/dist/threadOptions.d-DTsJFkL-.d.ts +147 -0
- package/dist/threadOptions.d-GPJPprkn.d.cts +55 -0
- package/dist/threadOptions.d-GPJPprkn.d.ts +55 -0
- package/dist/{timelineRows.d-B6lLC8Ud.d.cts → timelineRows.d-BTcUdNeI.d.cts} +1 -1
- package/dist/{timelineRows.d-Brlkti-G.d.ts → timelineRows.d-kmBms1W5.d.ts} +1 -1
- package/dist/{planSignals.d-Dha2CMDF.d.cts → useHealthPlanSubscription.d-B_cth_iF.d.cts} +81 -3
- package/dist/{planSignals.d-CON9gTvJ.d.ts → useHealthPlanSubscription.d-BzNaVl89.d.ts} +81 -3
- package/dist/{usePresentation.d-Bne14SlX.d.ts → usePresentation.d-B7Uf44Ax.d.ts} +40 -40
- package/dist/{usePresentation.d-BcdCIuEU.d.cts → usePresentation.d-BkAMOfb5.d.cts} +40 -40
- package/dist/{useRecordsDepth.d-Cd6J03o5.d.ts → useRecordsDepth.d-BHkZi0tM.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-DAa169VY.d.cts → useRecordsDepth.d-BxHpKipf.d.cts} +1 -1
- package/dist/video/index.cjs +2 -2
- package/dist/video/index.js +2 -2
- package/dist/{view.d-DkGM8GNA.d.ts → view.d-2BYMRnWj.d.ts} +3 -3
- package/dist/{view.d-3d5_O7Xk.d.cts → view.d-CoDbnv0f.d.cts} +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 +5 -5
- package/dist/web/health-plan/index.d.cts +15 -69
- package/dist/web/health-plan/index.d.ts +15 -69
- package/dist/web/health-plan/index.js +5 -5
- package/dist/web/index.cjs +8 -8
- package/dist/web/index.d.cts +26 -43
- package/dist/web/index.d.ts +26 -43
- package/dist/web/index.js +8 -8
- 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 +17 -17
- package/dist/web/records-sheet/index.js +17 -17
- package/dist/web/shop/index.cjs +12 -12
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +12 -12
- 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 +22 -27
|
@@ -1,25 +1,27 @@
|
|
|
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
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import { a as CapabilityDecision } from '../resolve.d-CoQWUy1Y.cjs';
|
|
5
5
|
import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.cjs';
|
|
6
6
|
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.cjs';
|
|
7
7
|
import { P as PetRef } from '../ids.d-B2GAAifq.cjs';
|
|
8
8
|
export { B as Brand, C as ConversationId, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.cjs';
|
|
9
|
-
import { c as HealthPlanFocusCopy, e as HealthPlanFocusIcon, b as HealthPlanFocusDesign, f as HealthPlanItem, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from '../focus.d-
|
|
10
|
-
export {
|
|
9
|
+
import { c as HealthPlanFocusCopy, e as HealthPlanFocusIcon, b as HealthPlanFocusDesign, f as HealthPlanItem, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from '../focus.d-CXpIkIuU.cjs';
|
|
10
|
+
export { o as HEALTH_PLAN_FOCUS_COPY, p as HEALTH_PLAN_REASON_KINDS, q as HealthPlan, r as HealthPlanCartCheckoutRequest, s as HealthPlanCheckoutItem, t as HealthPlanCheckoutRefusal, u as HealthPlanCheckoutRequest, v as HealthPlanCheckoutSession, w as HealthPlanCheckoutState, x as HealthPlanCheckoutStatus, y as HealthPlanFocusExtra, z as HealthPlanFocusPrices, A as HealthPlanFocusReasonRow, B as HealthPlanFocusReview, C as HealthPlanFocusSign, D as HealthPlanFocusStep, E as HealthPlanFocusWait, F as HealthPlanOneBoxOffer, G as HealthPlanOneBoxOrderPage, I as HealthPlanOneBoxOrderPageOptions, J as HealthPlanOrderStatus, K as HealthPlanOrderTracking, L as HealthPlanOrderTrackingStatus, H as HealthPlanPage, n as HealthPlanPagePet, a as HealthPlanPetPronouns, M as HealthPlanPurchase, N as HealthPlanReason, O as HealthPlanReasonKind, P as HealthPlanRepository, Q as HealthPlanRepositoryDeps, R as HealthPlanRuntime, S as HealthPlanSubscriptionQuote, T as HealthPlanSubscriptionRenewal, U as HealthPlanSubscriptionStatus, V as HealthPlanSubscriptionStep, W as HealthPlanSubscriptionSupply, X as HealthPlanTrackStep, Y as createHealthPlanPageRepository, Z as createHealthPlanPageRepositoryOver, _ as createHealthPlanRepository, $ as createHealthPlanRepositoryOver, a0 as createHealthPlanSubscriptionRepository, a1 as createHealthPlanSubscriptionRepositoryOver, a2 as formatHealthPlanDay, a3 as healthPlanCheckoutRefusal, a4 as healthPlanCheckoutSessionFromWire, a5 as healthPlanCheckoutStateFromWire, a6 as healthPlanFocusCopyFor, a7 as healthPlanFocusDesignFromWire, a8 as healthPlanFromWire, a9 as healthPlanOneBoxOrderFromWire, aa as healthPlanOneBoxOrderPageFromWire, ab as healthPlanOrderTrackingFromWire, ac as healthPlanPageFromWire, ad as healthPlanPetWords, ae as healthPlanSubscriptionFromWire, af as healthPlanSubscriptionQuoteFromWire, ag as isHealthPlanSubscriptionUnavailable } from '../focus.d-CXpIkIuU.cjs';
|
|
11
11
|
import { i as EverfurPresentationInput } from '../presentation.d-vy8kTGfR.cjs';
|
|
12
12
|
export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, j as EverfurSafetyDisclaimerPlacement } from '../presentation.d-vy8kTGfR.cjs';
|
|
13
|
-
import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps,
|
|
14
|
-
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../usePresentation.d-
|
|
13
|
+
import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy, d as HealthPlanCardOptions, e as HealthPlanImageVariant, f as HealthPlanReasonVariant, g as HealthPlanCart } from '../usePresentation.d-BkAMOfb5.cjs';
|
|
14
|
+
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../usePresentation.d-BkAMOfb5.cjs';
|
|
15
15
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
|
|
16
16
|
import { E as EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
|
|
17
17
|
import { R as RecordsRecordWire } from '../ports.d-BX4f4UsB.cjs';
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
export { A as
|
|
18
|
+
import { C as HealthPlanTopCardOptions } from '../useHealthPlanSubscription.d-B_cth_iF.cjs';
|
|
19
|
+
export { a as HEALTH_PLAN_TOP_CARD_COPY, b as HealthPlanCartDock, c as HealthPlanCartScope, d as HealthPlanCartScopeProps, e as HealthPlanController, f as HealthPlanNoVetListener, g as HealthPlanPageOptions, h as HealthPlanPagePhase, i as HealthPlanPageState, j as HealthPlanPhase, D as HealthPlanPossessivePet, k as HealthPlanRecordsLandedListener, l as HealthPlanRecordsLandedSource, m as HealthPlanSnapshot, n as HealthPlanSubscriptionOptions, o as HealthPlanSubscriptionPhase, p as HealthPlanSubscriptionState, H as HealthPlanTopCardCopy, q as HealthPlanTopCardFocus, r as HealthPlanTopCardPet, s as healthPlanNoVet, E as healthPlanPossessive, F as healthPlanTopCard, t as notifyHealthPlanRecordsLanded, u as onHealthPlanNoVet, v as onHealthPlanRecordsLanded, w as setHealthPlanNoVet, x as useHealthPlanCartDock, y as useHealthPlanPage, z as useHealthPlanPageRepository, A as useHealthPlanSubscription, B as useHealthPlanSubscriptionRepository } from '../useHealthPlanSubscription.d-B_cth_iF.cjs';
|
|
20
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-COcNGuCJ.cjs';
|
|
21
|
+
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-D1xcxALX.cjs';
|
|
21
22
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
22
|
-
import '../
|
|
23
|
+
import { a as EverfurChatTopCard } from '../threadOptions.d-GPJPprkn.cjs';
|
|
24
|
+
import '../requestFunnel.d-BdpL7gwg.cjs';
|
|
23
25
|
import '../models.d-BSqvbTE1.cjs';
|
|
24
26
|
|
|
25
27
|
/** The pet facts the words are sized to. */
|
|
@@ -29,8 +31,7 @@ interface HealthPlanPetWords {
|
|
|
29
31
|
/** The partner texts tracking numbers (Q9): the "by text" lines are drawn. Absent = false. */
|
|
30
32
|
readonly trackingTexts?: boolean;
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
declare function healthPlanPossessive(pet: HealthPlanPetWords): string | null;
|
|
34
|
+
|
|
34
35
|
/** The words the React Native focus layout adds over `HealthPlanFocusCopy`. Each '' hides what it labels. */
|
|
35
36
|
interface HealthPlanFocusRnCopy extends HealthPlanFocusCopy {
|
|
36
37
|
/**
|
|
@@ -38,10 +39,6 @@ interface HealthPlanFocusRnCopy extends HealthPlanFocusCopy {
|
|
|
38
39
|
* app's own words (everfur-frontend app/lib/error-handler.ts:66).
|
|
39
40
|
*/
|
|
40
41
|
readonly checkoutFailed: string;
|
|
41
|
-
/** The weight sheet's error with `weightUnit="kg"`. No approved words yet: '' (a copy ask for Raph). */
|
|
42
|
-
readonly weightErrorKg: string;
|
|
43
|
-
/** The toast after a weight saved in kilograms. No approved words yet: returns '' and no toast shows. */
|
|
44
|
-
readonly weightSavedKg: (kilograms: string) => string;
|
|
45
42
|
/** The back control over a pushed screen when the host draws no header of its own (src/rn/records/ScreenHeader.tsx). */
|
|
46
43
|
readonly back: string;
|
|
47
44
|
}
|
|
@@ -100,8 +97,18 @@ interface HealthPlanFocusRnOptions {
|
|
|
100
97
|
readonly onOverlayChange?: (overlay: HealthPlanFocusRnOverlay, controls: HealthPlanFocusRnOverlayControls) => void;
|
|
101
98
|
readonly onSubscriptionChange?: (subscription: HealthPlanSubscription) => void;
|
|
102
99
|
readonly onOneBoxOrder?: (order: HealthPlanOneBoxOrder) => void;
|
|
103
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* The jump strip under the focus card was pressed: scroll your container to the pick. Omit it and the strip scrolls
|
|
102
|
+
* the surrounding `HealthPlanScrollScope` (EverfurTabs wraps its plan in one) to the pick; with neither the strip is
|
|
103
|
+
* not a control.
|
|
104
|
+
*/
|
|
104
105
|
readonly onJump?: () => void;
|
|
106
|
+
/**
|
|
107
|
+
* Q9: the partner texts tracking numbers, so the "Tracking comes by text" lines are drawn. Everfur's plan page says
|
|
108
|
+
* it itself (`trackingTextsEnabled`); with your own `design` this is yours to say (the web's option). Absent: the
|
|
109
|
+
* plan read's `trackingTextsEnabled`, else false.
|
|
110
|
+
*/
|
|
111
|
+
readonly trackingTexts?: boolean;
|
|
105
112
|
/** Number and date locale. */
|
|
106
113
|
readonly locale?: string;
|
|
107
114
|
readonly subscriptionRepository?: HealthPlanSubscriptionRepository;
|
|
@@ -181,11 +188,6 @@ interface HealthPlanFocusProps extends Omit<HealthPlanFocusRnOptions, 'design'>
|
|
|
181
188
|
readonly fromBackend?: boolean;
|
|
182
189
|
/** Q2: the page says its template is vet reviewed. Only then is a backend page's byline drawn. */
|
|
183
190
|
readonly vetReviewed?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Q9: the partner texts tracking numbers (`trackingTextsEnabled` on the plan page or the plan read). Only then are
|
|
186
|
-
* the "Tracking comes by text" lines drawn. Absent = false.
|
|
187
|
-
*/
|
|
188
|
-
readonly trackingTexts?: boolean;
|
|
189
191
|
readonly onCheckout?: (items: readonly HealthPlanItem[]) => void;
|
|
190
192
|
readonly priceFormat?: HealthPlanPriceFormat;
|
|
191
193
|
readonly style?: StyleProp<ViewStyle>;
|
|
@@ -223,10 +225,19 @@ interface EverfurHealthPlanProps extends HealthPlanLayoutProps {
|
|
|
223
225
|
*/
|
|
224
226
|
readonly focus?: HealthPlanFocusRnOptions;
|
|
225
227
|
/**
|
|
226
|
-
* Whether this pet has a plan to show (Q1): false for no plan (
|
|
227
|
-
* once the plan is drawn. Not called while it is still loading or after a refused read.
|
|
228
|
+
* Whether this pet has a plan to show (Q1), with the pet it is about: false for no plan (hide your tab or entry for
|
|
229
|
+
* that pet), true once the plan is drawn. Not called while it is still loading or after a refused read. The same
|
|
230
|
+
* name and signature as the web's.
|
|
231
|
+
*/
|
|
232
|
+
readonly onAvailability?: (available: boolean, petRef: PetRef | null) => void;
|
|
233
|
+
/**
|
|
234
|
+
* @deprecated Use `onAvailability(available, petRef)`, the web's name. Still called, with the same value.
|
|
228
235
|
*/
|
|
229
236
|
readonly onAvailabilityChange?: (available: boolean) => void;
|
|
237
|
+
/** The empty state's Ask control (drawn only when `emptyAsk` has words). */
|
|
238
|
+
readonly onAsk?: () => void;
|
|
239
|
+
/** Your words for the empty state, over the SDK's (empty until approved: then nothing is drawn). */
|
|
240
|
+
readonly emptyCopy?: Partial<HealthPlanEmptyCopy>;
|
|
230
241
|
}
|
|
231
242
|
/** One pet's Health Plan in a React Native app. Mount it under the `EverfurProvider` from "@everfur/sdk". */
|
|
232
243
|
declare function EverfurHealthPlan(props: EverfurHealthPlanProps): ReactNode;
|
|
@@ -265,6 +276,36 @@ interface HealthPlanCartBarProps {
|
|
|
265
276
|
/** The cart bar of a Health Plan. */
|
|
266
277
|
declare function HealthPlanCartBar(props: HealthPlanCartBarProps): ReactNode;
|
|
267
278
|
|
|
279
|
+
interface HealthPlanTopRiskProps {
|
|
280
|
+
/** The line over the sentence ("Her top risk"). */
|
|
281
|
+
readonly kicker: string;
|
|
282
|
+
/** The one sentence ("Georgia's top disease risk is IVDD, a back problem, so she should start a Health Plan for it."). */
|
|
283
|
+
readonly sentence: string;
|
|
284
|
+
/** The button's words ("Start her Health Plan"). */
|
|
285
|
+
readonly action: string;
|
|
286
|
+
readonly onOpenPlan: () => void;
|
|
287
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
288
|
+
}
|
|
289
|
+
/** The top-risk sentence with its way into the Health Plan. */
|
|
290
|
+
declare function HealthPlanTopRisk(props: HealthPlanTopRiskProps): ReactNode;
|
|
291
|
+
|
|
292
|
+
/** The minimal ScrollView surface the scope uses. */
|
|
293
|
+
interface HealthPlanScrollable {
|
|
294
|
+
scrollTo(options: {
|
|
295
|
+
readonly x?: number;
|
|
296
|
+
readonly y?: number;
|
|
297
|
+
readonly animated?: boolean;
|
|
298
|
+
}): void;
|
|
299
|
+
}
|
|
300
|
+
interface HealthPlanScrollScopeProps {
|
|
301
|
+
/** The ref of the ScrollView the plan sits in. */
|
|
302
|
+
readonly scrollRef: RefObject<HealthPlanScrollable | null>;
|
|
303
|
+
readonly children?: ReactNode;
|
|
304
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
305
|
+
}
|
|
306
|
+
/** Wrap your plan (inside your ScrollView) so the focus layout's jump strip scrolls it to the pick. */
|
|
307
|
+
declare function HealthPlanScrollScope({ scrollRef, children, style }: HealthPlanScrollScopeProps): ReactNode;
|
|
308
|
+
|
|
268
309
|
/** One row: the words before the blank, the value (null: still a blank), the words after it, and its source line. */
|
|
269
310
|
interface HealthPlanBlanksRow {
|
|
270
311
|
readonly key: string;
|
|
@@ -291,4 +332,16 @@ interface HealthPlanBlanksProps {
|
|
|
291
332
|
}
|
|
292
333
|
declare function HealthPlanBlanks(props: HealthPlanBlanksProps): ReactNode;
|
|
293
334
|
|
|
294
|
-
|
|
335
|
+
interface UseHealthPlanTopCardOptions extends HealthPlanTopCardOptions {
|
|
336
|
+
readonly petRef: PetRef | null;
|
|
337
|
+
/** False skips the page read (and the card). Defaults to true. */
|
|
338
|
+
readonly enabled?: boolean;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* The chat's top card for one pet, from its Health Plan page; undefined while the page loads, on a refused read, or
|
|
342
|
+
* when the page has no focus. Keep `onOpenPlan`, `copy` and `renderIcon` stable (module constants or memoised), so the
|
|
343
|
+
* card is rebuilt only when the page changes.
|
|
344
|
+
*/
|
|
345
|
+
declare function useHealthPlanTopCard(options: UseHealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
346
|
+
|
|
347
|
+
export { EverfurChatTopCard, EverfurError, EverfurHealthPlan, type EverfurHealthPlanProps, EverfurPresentationInput, EverfurResult, HEALTH_PLAN_FOCUS_RN_COPY, HealthPlanBlanks, HealthPlanBlanksFacts, type HealthPlanBlanksProps, type HealthPlanBlanksRow, HealthPlanCardOptions, HealthPlanCart, HealthPlanCartBar, type HealthPlanCartBarProps, HealthPlanCheckoutProvider, HealthPlanEmptyCopy, HealthPlanFocus, type HealthPlanFocusCheckoutRow, HealthPlanFocusCopy, HealthPlanFocusDesign, HealthPlanFocusIcon, type HealthPlanFocusProps, type HealthPlanFocusRnCopy, type HealthPlanFocusRnOptions, type HealthPlanFocusRnOverlay, type HealthPlanFocusRnOverlayControls, HealthPlanImageVariant, HealthPlanItem, HealthPlanItemCard, type HealthPlanItemCardProps, HealthPlanLayoutProps, HealthPlanOneBoxOrder, HealthPlanPageRepository, type HealthPlanPetWords, HealthPlanPriceFormat, HealthPlanReasonVariant, type HealthPlanRecordsReader, HealthPlanScrollScope, type HealthPlanScrollScopeProps, type HealthPlanScrollable, HealthPlanShopOrder, HealthPlanSubscription, HealthPlanSubscriptionRepository, HealthPlanTopCardOptions, HealthPlanTopRisk, type HealthPlanTopRiskProps, LifecyclePort, PetRef, RecordsRecordWire, type UseHealthPlanTopCardOptions, healthPlanPetCopy, useHealthPlanTopCard };
|
|
@@ -1,25 +1,27 @@
|
|
|
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
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import { a as CapabilityDecision } from '../resolve.d-CoQWUy1Y.js';
|
|
5
5
|
import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.js';
|
|
6
6
|
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.js';
|
|
7
7
|
import { P as PetRef } from '../ids.d-B2GAAifq.js';
|
|
8
8
|
export { B as Brand, C as ConversationId, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.js';
|
|
9
|
-
import { c as HealthPlanFocusCopy, e as HealthPlanFocusIcon, b as HealthPlanFocusDesign, f as HealthPlanItem, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from '../focus.d-
|
|
10
|
-
export {
|
|
9
|
+
import { c as HealthPlanFocusCopy, e as HealthPlanFocusIcon, b as HealthPlanFocusDesign, f as HealthPlanItem, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from '../focus.d-DzIgOqNB.js';
|
|
10
|
+
export { o as HEALTH_PLAN_FOCUS_COPY, p as HEALTH_PLAN_REASON_KINDS, q as HealthPlan, r as HealthPlanCartCheckoutRequest, s as HealthPlanCheckoutItem, t as HealthPlanCheckoutRefusal, u as HealthPlanCheckoutRequest, v as HealthPlanCheckoutSession, w as HealthPlanCheckoutState, x as HealthPlanCheckoutStatus, y as HealthPlanFocusExtra, z as HealthPlanFocusPrices, A as HealthPlanFocusReasonRow, B as HealthPlanFocusReview, C as HealthPlanFocusSign, D as HealthPlanFocusStep, E as HealthPlanFocusWait, F as HealthPlanOneBoxOffer, G as HealthPlanOneBoxOrderPage, I as HealthPlanOneBoxOrderPageOptions, J as HealthPlanOrderStatus, K as HealthPlanOrderTracking, L as HealthPlanOrderTrackingStatus, H as HealthPlanPage, n as HealthPlanPagePet, a as HealthPlanPetPronouns, M as HealthPlanPurchase, N as HealthPlanReason, O as HealthPlanReasonKind, P as HealthPlanRepository, Q as HealthPlanRepositoryDeps, R as HealthPlanRuntime, S as HealthPlanSubscriptionQuote, T as HealthPlanSubscriptionRenewal, U as HealthPlanSubscriptionStatus, V as HealthPlanSubscriptionStep, W as HealthPlanSubscriptionSupply, X as HealthPlanTrackStep, Y as createHealthPlanPageRepository, Z as createHealthPlanPageRepositoryOver, _ as createHealthPlanRepository, $ as createHealthPlanRepositoryOver, a0 as createHealthPlanSubscriptionRepository, a1 as createHealthPlanSubscriptionRepositoryOver, a2 as formatHealthPlanDay, a3 as healthPlanCheckoutRefusal, a4 as healthPlanCheckoutSessionFromWire, a5 as healthPlanCheckoutStateFromWire, a6 as healthPlanFocusCopyFor, a7 as healthPlanFocusDesignFromWire, a8 as healthPlanFromWire, a9 as healthPlanOneBoxOrderFromWire, aa as healthPlanOneBoxOrderPageFromWire, ab as healthPlanOrderTrackingFromWire, ac as healthPlanPageFromWire, ad as healthPlanPetWords, ae as healthPlanSubscriptionFromWire, af as healthPlanSubscriptionQuoteFromWire, ag as isHealthPlanSubscriptionUnavailable } from '../focus.d-DzIgOqNB.js';
|
|
11
11
|
import { i as EverfurPresentationInput } from '../presentation.d-vy8kTGfR.js';
|
|
12
12
|
export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, j as EverfurSafetyDisclaimerPlacement } from '../presentation.d-vy8kTGfR.js';
|
|
13
|
-
import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps,
|
|
14
|
-
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../usePresentation.d-
|
|
13
|
+
import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy, d as HealthPlanCardOptions, e as HealthPlanImageVariant, f as HealthPlanReasonVariant, g as HealthPlanCart } from '../usePresentation.d-B7Uf44Ax.js';
|
|
14
|
+
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../usePresentation.d-B7Uf44Ax.js';
|
|
15
15
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
|
|
16
16
|
import { E as EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
|
|
17
17
|
import { R as RecordsRecordWire } from '../ports.d-BX4f4UsB.js';
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
export { A as
|
|
18
|
+
import { C as HealthPlanTopCardOptions } from '../useHealthPlanSubscription.d-BzNaVl89.js';
|
|
19
|
+
export { a as HEALTH_PLAN_TOP_CARD_COPY, b as HealthPlanCartDock, c as HealthPlanCartScope, d as HealthPlanCartScopeProps, e as HealthPlanController, f as HealthPlanNoVetListener, g as HealthPlanPageOptions, h as HealthPlanPagePhase, i as HealthPlanPageState, j as HealthPlanPhase, D as HealthPlanPossessivePet, k as HealthPlanRecordsLandedListener, l as HealthPlanRecordsLandedSource, m as HealthPlanSnapshot, n as HealthPlanSubscriptionOptions, o as HealthPlanSubscriptionPhase, p as HealthPlanSubscriptionState, H as HealthPlanTopCardCopy, q as HealthPlanTopCardFocus, r as HealthPlanTopCardPet, s as healthPlanNoVet, E as healthPlanPossessive, F as healthPlanTopCard, t as notifyHealthPlanRecordsLanded, u as onHealthPlanNoVet, v as onHealthPlanRecordsLanded, w as setHealthPlanNoVet, x as useHealthPlanCartDock, y as useHealthPlanPage, z as useHealthPlanPageRepository, A as useHealthPlanSubscription, B as useHealthPlanSubscriptionRepository } from '../useHealthPlanSubscription.d-BzNaVl89.js';
|
|
20
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-BEJcHY-5.js';
|
|
21
|
+
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-jTVsAeky.js';
|
|
21
22
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
|
|
22
|
-
import '../
|
|
23
|
+
import { a as EverfurChatTopCard } from '../threadOptions.d-GPJPprkn.js';
|
|
24
|
+
import '../requestFunnel.d-BPsCHJWf.js';
|
|
23
25
|
import '../models.d-DOwnr8fi.js';
|
|
24
26
|
|
|
25
27
|
/** The pet facts the words are sized to. */
|
|
@@ -29,8 +31,7 @@ interface HealthPlanPetWords {
|
|
|
29
31
|
/** The partner texts tracking numbers (Q9): the "by text" lines are drawn. Absent = false. */
|
|
30
32
|
readonly trackingTexts?: boolean;
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
declare function healthPlanPossessive(pet: HealthPlanPetWords): string | null;
|
|
34
|
+
|
|
34
35
|
/** The words the React Native focus layout adds over `HealthPlanFocusCopy`. Each '' hides what it labels. */
|
|
35
36
|
interface HealthPlanFocusRnCopy extends HealthPlanFocusCopy {
|
|
36
37
|
/**
|
|
@@ -38,10 +39,6 @@ interface HealthPlanFocusRnCopy extends HealthPlanFocusCopy {
|
|
|
38
39
|
* app's own words (everfur-frontend app/lib/error-handler.ts:66).
|
|
39
40
|
*/
|
|
40
41
|
readonly checkoutFailed: string;
|
|
41
|
-
/** The weight sheet's error with `weightUnit="kg"`. No approved words yet: '' (a copy ask for Raph). */
|
|
42
|
-
readonly weightErrorKg: string;
|
|
43
|
-
/** The toast after a weight saved in kilograms. No approved words yet: returns '' and no toast shows. */
|
|
44
|
-
readonly weightSavedKg: (kilograms: string) => string;
|
|
45
42
|
/** The back control over a pushed screen when the host draws no header of its own (src/rn/records/ScreenHeader.tsx). */
|
|
46
43
|
readonly back: string;
|
|
47
44
|
}
|
|
@@ -100,8 +97,18 @@ interface HealthPlanFocusRnOptions {
|
|
|
100
97
|
readonly onOverlayChange?: (overlay: HealthPlanFocusRnOverlay, controls: HealthPlanFocusRnOverlayControls) => void;
|
|
101
98
|
readonly onSubscriptionChange?: (subscription: HealthPlanSubscription) => void;
|
|
102
99
|
readonly onOneBoxOrder?: (order: HealthPlanOneBoxOrder) => void;
|
|
103
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* The jump strip under the focus card was pressed: scroll your container to the pick. Omit it and the strip scrolls
|
|
102
|
+
* the surrounding `HealthPlanScrollScope` (EverfurTabs wraps its plan in one) to the pick; with neither the strip is
|
|
103
|
+
* not a control.
|
|
104
|
+
*/
|
|
104
105
|
readonly onJump?: () => void;
|
|
106
|
+
/**
|
|
107
|
+
* Q9: the partner texts tracking numbers, so the "Tracking comes by text" lines are drawn. Everfur's plan page says
|
|
108
|
+
* it itself (`trackingTextsEnabled`); with your own `design` this is yours to say (the web's option). Absent: the
|
|
109
|
+
* plan read's `trackingTextsEnabled`, else false.
|
|
110
|
+
*/
|
|
111
|
+
readonly trackingTexts?: boolean;
|
|
105
112
|
/** Number and date locale. */
|
|
106
113
|
readonly locale?: string;
|
|
107
114
|
readonly subscriptionRepository?: HealthPlanSubscriptionRepository;
|
|
@@ -181,11 +188,6 @@ interface HealthPlanFocusProps extends Omit<HealthPlanFocusRnOptions, 'design'>
|
|
|
181
188
|
readonly fromBackend?: boolean;
|
|
182
189
|
/** Q2: the page says its template is vet reviewed. Only then is a backend page's byline drawn. */
|
|
183
190
|
readonly vetReviewed?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Q9: the partner texts tracking numbers (`trackingTextsEnabled` on the plan page or the plan read). Only then are
|
|
186
|
-
* the "Tracking comes by text" lines drawn. Absent = false.
|
|
187
|
-
*/
|
|
188
|
-
readonly trackingTexts?: boolean;
|
|
189
191
|
readonly onCheckout?: (items: readonly HealthPlanItem[]) => void;
|
|
190
192
|
readonly priceFormat?: HealthPlanPriceFormat;
|
|
191
193
|
readonly style?: StyleProp<ViewStyle>;
|
|
@@ -223,10 +225,19 @@ interface EverfurHealthPlanProps extends HealthPlanLayoutProps {
|
|
|
223
225
|
*/
|
|
224
226
|
readonly focus?: HealthPlanFocusRnOptions;
|
|
225
227
|
/**
|
|
226
|
-
* Whether this pet has a plan to show (Q1): false for no plan (
|
|
227
|
-
* once the plan is drawn. Not called while it is still loading or after a refused read.
|
|
228
|
+
* Whether this pet has a plan to show (Q1), with the pet it is about: false for no plan (hide your tab or entry for
|
|
229
|
+
* that pet), true once the plan is drawn. Not called while it is still loading or after a refused read. The same
|
|
230
|
+
* name and signature as the web's.
|
|
231
|
+
*/
|
|
232
|
+
readonly onAvailability?: (available: boolean, petRef: PetRef | null) => void;
|
|
233
|
+
/**
|
|
234
|
+
* @deprecated Use `onAvailability(available, petRef)`, the web's name. Still called, with the same value.
|
|
228
235
|
*/
|
|
229
236
|
readonly onAvailabilityChange?: (available: boolean) => void;
|
|
237
|
+
/** The empty state's Ask control (drawn only when `emptyAsk` has words). */
|
|
238
|
+
readonly onAsk?: () => void;
|
|
239
|
+
/** Your words for the empty state, over the SDK's (empty until approved: then nothing is drawn). */
|
|
240
|
+
readonly emptyCopy?: Partial<HealthPlanEmptyCopy>;
|
|
230
241
|
}
|
|
231
242
|
/** One pet's Health Plan in a React Native app. Mount it under the `EverfurProvider` from "@everfur/sdk". */
|
|
232
243
|
declare function EverfurHealthPlan(props: EverfurHealthPlanProps): ReactNode;
|
|
@@ -265,6 +276,36 @@ interface HealthPlanCartBarProps {
|
|
|
265
276
|
/** The cart bar of a Health Plan. */
|
|
266
277
|
declare function HealthPlanCartBar(props: HealthPlanCartBarProps): ReactNode;
|
|
267
278
|
|
|
279
|
+
interface HealthPlanTopRiskProps {
|
|
280
|
+
/** The line over the sentence ("Her top risk"). */
|
|
281
|
+
readonly kicker: string;
|
|
282
|
+
/** The one sentence ("Georgia's top disease risk is IVDD, a back problem, so she should start a Health Plan for it."). */
|
|
283
|
+
readonly sentence: string;
|
|
284
|
+
/** The button's words ("Start her Health Plan"). */
|
|
285
|
+
readonly action: string;
|
|
286
|
+
readonly onOpenPlan: () => void;
|
|
287
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
288
|
+
}
|
|
289
|
+
/** The top-risk sentence with its way into the Health Plan. */
|
|
290
|
+
declare function HealthPlanTopRisk(props: HealthPlanTopRiskProps): ReactNode;
|
|
291
|
+
|
|
292
|
+
/** The minimal ScrollView surface the scope uses. */
|
|
293
|
+
interface HealthPlanScrollable {
|
|
294
|
+
scrollTo(options: {
|
|
295
|
+
readonly x?: number;
|
|
296
|
+
readonly y?: number;
|
|
297
|
+
readonly animated?: boolean;
|
|
298
|
+
}): void;
|
|
299
|
+
}
|
|
300
|
+
interface HealthPlanScrollScopeProps {
|
|
301
|
+
/** The ref of the ScrollView the plan sits in. */
|
|
302
|
+
readonly scrollRef: RefObject<HealthPlanScrollable | null>;
|
|
303
|
+
readonly children?: ReactNode;
|
|
304
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
305
|
+
}
|
|
306
|
+
/** Wrap your plan (inside your ScrollView) so the focus layout's jump strip scrolls it to the pick. */
|
|
307
|
+
declare function HealthPlanScrollScope({ scrollRef, children, style }: HealthPlanScrollScopeProps): ReactNode;
|
|
308
|
+
|
|
268
309
|
/** One row: the words before the blank, the value (null: still a blank), the words after it, and its source line. */
|
|
269
310
|
interface HealthPlanBlanksRow {
|
|
270
311
|
readonly key: string;
|
|
@@ -291,4 +332,16 @@ interface HealthPlanBlanksProps {
|
|
|
291
332
|
}
|
|
292
333
|
declare function HealthPlanBlanks(props: HealthPlanBlanksProps): ReactNode;
|
|
293
334
|
|
|
294
|
-
|
|
335
|
+
interface UseHealthPlanTopCardOptions extends HealthPlanTopCardOptions {
|
|
336
|
+
readonly petRef: PetRef | null;
|
|
337
|
+
/** False skips the page read (and the card). Defaults to true. */
|
|
338
|
+
readonly enabled?: boolean;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* The chat's top card for one pet, from its Health Plan page; undefined while the page loads, on a refused read, or
|
|
342
|
+
* when the page has no focus. Keep `onOpenPlan`, `copy` and `renderIcon` stable (module constants or memoised), so the
|
|
343
|
+
* card is rebuilt only when the page changes.
|
|
344
|
+
*/
|
|
345
|
+
declare function useHealthPlanTopCard(options: UseHealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
346
|
+
|
|
347
|
+
export { EverfurChatTopCard, EverfurError, EverfurHealthPlan, type EverfurHealthPlanProps, EverfurPresentationInput, EverfurResult, HEALTH_PLAN_FOCUS_RN_COPY, HealthPlanBlanks, HealthPlanBlanksFacts, type HealthPlanBlanksProps, type HealthPlanBlanksRow, HealthPlanCardOptions, HealthPlanCart, HealthPlanCartBar, type HealthPlanCartBarProps, HealthPlanCheckoutProvider, HealthPlanEmptyCopy, HealthPlanFocus, type HealthPlanFocusCheckoutRow, HealthPlanFocusCopy, HealthPlanFocusDesign, HealthPlanFocusIcon, type HealthPlanFocusProps, type HealthPlanFocusRnCopy, type HealthPlanFocusRnOptions, type HealthPlanFocusRnOverlay, type HealthPlanFocusRnOverlayControls, HealthPlanImageVariant, HealthPlanItem, HealthPlanItemCard, type HealthPlanItemCardProps, HealthPlanLayoutProps, HealthPlanOneBoxOrder, HealthPlanPageRepository, type HealthPlanPetWords, HealthPlanPriceFormat, HealthPlanReasonVariant, type HealthPlanRecordsReader, HealthPlanScrollScope, type HealthPlanScrollScopeProps, type HealthPlanScrollable, HealthPlanShopOrder, HealthPlanSubscription, HealthPlanSubscriptionRepository, HealthPlanTopCardOptions, HealthPlanTopRisk, type HealthPlanTopRiskProps, LifecyclePort, PetRef, RecordsRecordWire, type UseHealthPlanTopCardOptions, healthPlanPetCopy, useHealthPlanTopCard };
|