@everfur/sdk 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -0
- package/README.md +11 -10
- package/dist/{Chat.d-Dts8u_1a.d.cts → Chat.d-aycmX1CA.d.cts} +12 -4
- package/dist/{Chat.d-DUNTfzqC.d.ts → Chat.d-puminpyi.d.ts} +12 -4
- package/dist/{DepthViews.d-CubkMPbU.d.ts → DepthViews.d-BdvFZgPs.d.cts} +1 -1
- package/dist/{DepthViews.d-Ce2Zhnrb.d.ts → DepthViews.d-DIvxzLDf.d.ts} +1 -1
- package/dist/{DepthViews.d-BMU2jFPw.d.cts → DepthViews.d-Dy0Zl-s-.d.ts} +1 -1
- package/dist/{DepthViews.d-BIp599lz.d.cts → DepthViews.d-wLNkzk9f.d.cts} +1 -1
- package/dist/RecordsPage.d-9Ank15PT.d.ts +93 -0
- package/dist/RecordsPage.d-DMKU0IKc.d.cts +93 -0
- package/dist/animations/index.d.cts +5 -5
- package/dist/animations/index.d.ts +5 -5
- package/dist/{attachments.d-D1yhJjcZ.d.ts → attachments.d--sIsfk6e.d.ts} +2 -2
- package/dist/{attachments.d-Bp2qbHxn.d.cts → attachments.d-DNUCiyy5.d.cts} +6 -24
- package/dist/{attachments.d-DisnvB9R.d.cts → attachments.d-ZEpTUeWN.d.cts} +2 -2
- package/dist/{attachments.d-Djy9z_0Z.d.ts → attachments.d-rp3xs-Q3.d.ts} +6 -24
- package/dist/{bookingCopy.d-BJF6gd1A.d.ts → bookingCopy.d-D0uIIFAJ.d.ts} +2 -2
- package/dist/{bookingCopy.d-BlBmhAJc.d.cts → bookingCopy.d-DUrmVcLs.d.cts} +2 -2
- package/dist/{branding.d-DI8S400y.d.cts → branding.d-CTXTUg_8.d.cts} +1 -1
- package/dist/{branding.d-OIGLbQeM.d.ts → branding.d-DxJSoFce.d.ts} +1 -1
- package/dist/{casesRepository.d-CT2LTicS.d.cts → casesRepository.d-DCnix2pT.d.cts} +1 -1
- package/dist/{casesRepository.d-UsWOz9bv.d.ts → casesRepository.d-DbirgbyH.d.ts} +1 -1
- package/dist/chat/index.cjs +43 -41
- package/dist/chat/index.d.cts +26 -13
- package/dist/chat/index.d.ts +26 -13
- package/dist/chat/index.js +43 -41
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +10 -10
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +2 -2
- package/dist/clinicBatch.d-Ccmrngcu.d.cts +71 -0
- package/dist/clinicBatch.d-D9Ci7IpP.d.ts +71 -0
- package/dist/clinicModels.d-BXgKZqDb.d.cts +68 -0
- package/dist/clinicModels.d-CaS64-P-.d.ts +68 -0
- package/dist/clinicRequestProps.d-1dCtouGA.d.cts +65 -0
- package/dist/clinicRequestProps.d-CjsMg_OD.d.ts +65 -0
- package/dist/{config.d-BR3DT9ho.d.cts → config.d-DJ4mvf_w.d.cts} +1 -1
- package/dist/{config.d-Dy6igYlH.d.ts → config.d-MX7IKP2f.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-QcCgguzA.d.ts → context.d-BdnBe8Oe.d.ts} +7 -7
- package/dist/{context.d-Cwks0p3C.d.cts → context.d-C6MJsMpN.d.cts} +7 -7
- package/dist/{copy.d-CiMn2IIt.d.ts → copy.d-BIfQOoDB.d.ts} +2 -2
- package/dist/{copy.d-DLJTyRfT.d.cts → copy.d-C_u7shha.d.cts} +2 -2
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.cts +20 -18
- package/dist/core/index.d.ts +20 -18
- package/dist/core/index.js +3 -3
- package/dist/{depth.d-OSALbYM7.d.ts → depth.d-COFxYWLU.d.ts} +6 -133
- package/dist/{depth.d-CjPGVPDL.d.cts → depth.d-D2e5WZuE.d.cts} +6 -133
- package/dist/{entitlementRepository.d-CVQa1DA1.d.cts → entitlementRepository.d-BP15dFbe.d.cts} +4 -4
- package/dist/{entitlementRepository.d-Cf3LbTwD.d.ts → entitlementRepository.d-DLuxnGi5.d.ts} +4 -4
- package/dist/{features.d-fNsGcg0R.d.ts → features.d-DrQxTw3-.d.cts} +1 -1
- package/dist/{features.d-fNsGcg0R.d.cts → features.d-DrQxTw3-.d.ts} +1 -1
- package/dist/{focus.d-DMg2ngHI.d.ts → focus.d-C0Tr0oVJ.d.ts} +109 -348
- package/dist/{focus.d-az9cqUz3.d.cts → focus.d-jQWp0hdK.d.cts} +109 -348
- package/dist/health-plan/index.cjs +165 -151
- package/dist/health-plan/index.d.cts +53 -11
- package/dist/health-plan/index.d.ts +53 -11
- package/dist/health-plan/index.js +169 -155
- package/dist/{idempotency.d-D461_DPD.d.cts → idempotency.d-DXb1BN2A.d.ts} +151 -6
- package/dist/{idempotency.d-WpXx9zQo.d.ts → idempotency.d-HF6fyRt2.d.cts} +151 -6
- package/dist/{identity.d-DzTijonw.d.ts → identity.d-BePPZ7Uv.d.ts} +1 -1
- package/dist/{identity.d-60LeJt_s.d.cts → identity.d-CJfnWOdH.d.cts} +1 -1
- package/dist/index.cjs +46 -44
- package/dist/index.d.cts +19 -18
- package/dist/index.d.ts +19 -18
- package/dist/index.js +46 -44
- package/dist/introEvents.d-BkGDT_kG.d.cts +175 -0
- package/dist/introEvents.d-DHlMvmC7.d.ts +175 -0
- package/dist/introEvents.d-dS3fJCH1.d.cts +5 -0
- package/dist/introEvents.d-dS3fJCH1.d.ts +5 -0
- package/dist/{models.d-BnLm3VAA.d.cts → models.d-BSqvbTE1.d.cts} +8 -1
- package/dist/{models.d-BagXhafD.d.ts → models.d-DOwnr8fi.d.ts} +8 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-CEyHR6PK.d.cts → optInView.d-0iI5JoAf.d.cts} +119 -3
- package/dist/{optInView.d-acKpV8V2.d.ts → optInView.d-s-w4aGN3.d.ts} +119 -3
- package/dist/{parse.d-C8CXyS58.d.ts → parse.d-COt1qVA6.d.ts} +1 -1
- package/dist/{parse.d-tEzufgJX.d.cts → parse.d-EmsgOUMQ.d.cts} +1 -1
- package/dist/{pets.d-C_53_fzo.d.ts → pets.d-BFT_b53y.d.ts} +1 -1
- package/dist/{pets.d-NbJvP_kh.d.cts → pets.d-nNAVnw7f.d.cts} +1 -1
- package/dist/{petsRepository.d-lp1BHRqM.d.cts → petsRepository.d-B2TpRE7r.d.cts} +1 -1
- package/dist/{petsRepository.d-BuGHymNx.d.ts → petsRepository.d-RGwSZcYl.d.ts} +1 -1
- package/dist/planSignals.d-BDbp2e-k.d.cts +126 -0
- package/dist/planSignals.d-DSnxKoWe.d.ts +126 -0
- package/dist/{ports.d-COIyN624.d.ts → ports.d-D2n4HRUy.d.ts} +4 -4
- package/dist/{ports.d-CEROoqnA.d.cts → ports.d-DBA_gsq5.d.cts} +4 -4
- package/dist/{presentation.d-DMbdad7G.d.cts → presentation.d-vy8kTGfR.d.cts} +6 -0
- package/dist/{presentation.d-DMbdad7G.d.ts → presentation.d-vy8kTGfR.d.ts} +6 -0
- package/dist/quickPrompts.d-NM_81Jc1.d.cts +19 -0
- package/dist/quickPrompts.d-NM_81Jc1.d.ts +19 -0
- package/dist/records/depth/index.d.cts +13 -9
- package/dist/records/depth/index.d.ts +13 -9
- package/dist/records/index.cjs +252 -138
- package/dist/records/index.d.cts +88 -23
- package/dist/records/index.d.ts +88 -23
- package/dist/records/index.js +253 -139
- package/dist/{requestFunnel.d-CXUMPw1K.d.ts → requestFunnel.d-D9edIEjZ.d.ts} +2 -2
- package/dist/{requestFunnel.d-DWQQpjFR.d.cts → requestFunnel.d-RZex94XX.d.cts} +2 -2
- package/dist/{resolve.d-jI8FmBj3.d.cts → resolve.d-CoQWUy1Y.d.cts} +1 -1
- package/dist/{resolve.d-jI8FmBj3.d.ts → resolve.d-CoQWUy1Y.d.ts} +1 -1
- package/dist/{runtimeTypes.d-4yFNNuYR.d.ts → runtimeTypes.d-BYq38b17.d.ts} +6 -6
- package/dist/{runtimeTypes.d-D6N_fhxx.d.cts → runtimeTypes.d-LkwZaF7z.d.cts} +6 -6
- package/dist/{useRecordsDepth.d-DFcCfiXm.d.ts → screenProps.d-BVzRzowC.d.ts} +5 -91
- package/dist/{useRecordsDepth.d-sAq2Qkhr.d.cts → screenProps.d-CQ0qZJkr.d.cts} +5 -91
- 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/{sheetSeam.d-Cviqk89n.d.ts → sheetSeam.d-B09jf4YC.d.ts} +8 -4
- package/dist/{sheetSeam.d-DCS3LW8g.d.cts → sheetSeam.d-BBuEIVsa.d.cts} +8 -4
- package/dist/shop/index.cjs +224 -58
- package/dist/shop/index.d.cts +23 -5
- package/dist/shop/index.d.ts +23 -5
- package/dist/shop/index.js +225 -59
- package/dist/tabs/index.cjs +195 -0
- package/dist/tabs/index.d.cts +174 -0
- package/dist/tabs/index.d.ts +174 -0
- package/dist/tabs/index.js +195 -0
- package/dist/tabsModel.d-BfIQg6yS.d.cts +31 -0
- package/dist/tabsModel.d-BfIQg6yS.d.ts +31 -0
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +11 -11
- package/dist/testing/rn/index.d.ts +11 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +12 -12
- package/dist/testing/web/index.d.ts +12 -12
- package/dist/texting/index.cjs +40 -5
- package/dist/texting/index.d.cts +40 -7
- package/dist/texting/index.d.ts +40 -7
- package/dist/texting/index.js +40 -5
- package/dist/threadOptions.d-9r4Csa7k.d.cts +458 -0
- package/dist/threadOptions.d-B6GA09aM.d.ts +458 -0
- package/dist/{timelineRows.d-CU5GvvLk.d.ts → timelineRows.d-Bes8ip2v.d.ts} +1 -1
- package/dist/{timelineRows.d-BNxgzYRW.d.cts → timelineRows.d-BvM2A7_G.d.cts} +1 -1
- package/dist/{typeStyle.d-C1HBRAI3.d.ts → typeStyle.d-Co5KF0up.d.ts} +1 -1
- package/dist/{typeStyle.d-Bl8pzbBy.d.cts → typeStyle.d-xIZj02Ru.d.cts} +1 -1
- package/dist/useIntroSeen.d-CTWFUthO.d.cts +35 -0
- package/dist/useIntroSeen.d-CTWFUthO.d.ts +35 -0
- package/dist/usePresentation.d-BGz32Vlm.d.ts +285 -0
- package/dist/usePresentation.d-DYTF_ZGf.d.cts +285 -0
- package/dist/{useRecords.d-Cb-36SF5.d.cts → useRecords.d-BYNX01El.d.cts} +2 -2
- package/dist/{useRecords.d-aQTzQZoV.d.ts → useRecords.d-DWk61a4c.d.ts} +2 -2
- package/dist/useRecordsDepth.d--LLA_4ga.d.cts +32 -0
- package/dist/useRecordsDepth.d-BQRL0Hez.d.ts +32 -0
- package/dist/{view.d-Dps5C8-s.d.cts → view.d-0yBjLTV3.d.cts} +6 -4
- package/dist/{view.d-C-SNpDJX.d.ts → view.d-DqbCADFa.d.ts} +6 -4
- 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 +50 -43
- package/dist/web/health-plan/index.d.cts +46 -192
- package/dist/web/health-plan/index.d.ts +46 -192
- package/dist/web/health-plan/index.js +65 -58
- package/dist/web/index.cjs +61 -45
- package/dist/web/index.d.cts +165 -25
- package/dist/web/index.d.ts +165 -25
- package/dist/web/index.js +62 -46
- package/dist/web/intro/index.cjs +167 -0
- package/dist/web/intro/index.d.cts +79 -0
- package/dist/web/intro/index.d.ts +79 -0
- package/dist/web/intro/index.js +167 -0
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +13 -9
- package/dist/web/records/depth/index.d.ts +13 -9
- package/dist/web/records/index.cjs +7 -7
- package/dist/web/records/index.d.cts +21 -82
- package/dist/web/records/index.d.ts +21 -82
- package/dist/web/records/index.js +7 -7
- package/dist/web/records-sheet/index.cjs +181 -127
- package/dist/web/records-sheet/index.d.cts +18 -16
- package/dist/web/records-sheet/index.d.ts +18 -16
- package/dist/web/records-sheet/index.js +181 -127
- package/dist/web/shop/index.cjs +191 -76
- package/dist/web/shop/index.d.cts +21 -4
- package/dist/web/shop/index.d.ts +21 -4
- package/dist/web/shop/index.js +191 -76
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/texting/index.cjs +36 -5
- package/dist/web/texting/index.d.cts +40 -7
- package/dist/web/texting/index.d.ts +40 -7
- package/dist/web/texting/index.js +36 -5
- package/package.json +35 -4
- package/tabs/package.json +8 -0
- package/web/intro/native-blocked.cjs +12 -0
- package/web/intro/package.json +8 -0
- package/dist/threadOptions.d-B1pTMmDF.d.cts +0 -260
- package/dist/threadOptions.d-B1pTMmDF.d.ts +0 -260
- package/dist/usePresentation.d-D6qsFzBz.d.cts +0 -9
- package/dist/usePresentation.d-DuGQe_Do.d.ts +0 -9
package/dist/web/index.d.cts
CHANGED
|
@@ -1,44 +1,60 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurProviderProps } from '../context.d-
|
|
3
|
-
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-
|
|
4
|
-
import {
|
|
5
|
-
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-
|
|
6
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore
|
|
7
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment,
|
|
2
|
+
import { E as EverfurProviderProps } from '../context.d-C6MJsMpN.cjs';
|
|
3
|
+
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-C6MJsMpN.cjs';
|
|
4
|
+
import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-CoQWUy1Y.cjs';
|
|
5
|
+
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-CoQWUy1Y.cjs';
|
|
6
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore } from '../attachments.d-DNUCiyy5.cjs';
|
|
7
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, c as UseChatAttachmentsOptions, d as UseChatAttachmentsState, e as UseEverfurChatState, f as UseEverfurPetsState, u as useChatAttachments, g as useEverfurChat, h as useEverfurPets } from '../attachments.d-DNUCiyy5.cjs';
|
|
8
8
|
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.cjs';
|
|
9
9
|
export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.cjs';
|
|
10
|
-
import { a as ChatCheckinTarget } from '../ports.d-
|
|
11
|
-
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-
|
|
12
|
-
import { i as EverfurPresentationInput } from '../presentation.d-
|
|
13
|
-
export { D as DEFAULT_PRESENTATION, 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, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-
|
|
14
|
-
import { P as PetProfileInput } from '../petsRepository.d-
|
|
15
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports.d-DBA_gsq5.cjs';
|
|
11
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-DBA_gsq5.cjs';
|
|
12
|
+
import { i as EverfurPresentationInput } from '../presentation.d-vy8kTGfR.cjs';
|
|
13
|
+
export { D as DEFAULT_PRESENTATION, 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, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-vy8kTGfR.cjs';
|
|
14
|
+
import { P as PetProfileInput } from '../petsRepository.d-B2TpRE7r.cjs';
|
|
15
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-B2TpRE7r.cjs';
|
|
16
16
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
17
|
+
import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
|
|
18
|
+
import { h as EverfurChatEmptyHeaderContext, i as EverfurChatEmptyState, j as EverfurChatHistoryBar, k as EverfurChatOpeningCard, l as EverfurChatAnswerCards, E as EverfurChatTopCard, m as EverfurChatHistorySheet, b as EverfurHealthPlanProps } from '../threadOptions.d-9r4Csa7k.cjs';
|
|
19
|
+
export { n as EverfurChatAnswerCard, o as EverfurChatAnswerContext, p as EverfurChatFollowUpAction } from '../threadOptions.d-9r4Csa7k.cjs';
|
|
20
|
+
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-DJ4mvf_w.cjs';
|
|
21
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-DCnix2pT.cjs';
|
|
21
22
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.cjs';
|
|
22
|
-
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-
|
|
23
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-ZEpTUeWN.cjs';
|
|
23
24
|
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.cjs';
|
|
24
25
|
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.cjs';
|
|
25
|
-
|
|
26
|
+
import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-1dCtouGA.cjs';
|
|
27
|
+
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-DMKU0IKc.cjs';
|
|
28
|
+
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-BkGDT_kG.cjs';
|
|
29
|
+
import { a as EverfurTabId, E as EverfurTabsCopy } from '../tabsModel.d-BfIQg6yS.cjs';
|
|
30
|
+
export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-BfIQg6yS.cjs';
|
|
31
|
+
export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.cjs';
|
|
32
|
+
export { L as useEverfurPresentation } from '../usePresentation.d-DYTF_ZGf.cjs';
|
|
26
33
|
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
27
34
|
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
28
|
-
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-
|
|
35
|
+
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-LkwZaF7z.cjs';
|
|
29
36
|
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.cjs';
|
|
30
37
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
31
38
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.cjs';
|
|
32
39
|
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-BFH-3s6E.cjs';
|
|
33
|
-
export { M as MintedToken, T as TokenProvider } from '../identity.d-
|
|
34
|
-
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-
|
|
35
|
-
import { E as EverfurThemeInput } from '../branding.d-
|
|
36
|
-
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-
|
|
40
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-CJfnWOdH.cjs';
|
|
41
|
+
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-xIZj02Ru.cjs';
|
|
42
|
+
import { E as EverfurThemeInput } from '../branding.d-CTXTUg_8.cjs';
|
|
43
|
+
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-CTXTUg_8.cjs';
|
|
37
44
|
import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } from '../tokens.d-DarDaV39.cjs';
|
|
38
45
|
export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-DarDaV39.cjs';
|
|
39
46
|
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.cjs';
|
|
40
47
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
|
|
41
|
-
import '../requestFunnel.d-
|
|
48
|
+
import '../requestFunnel.d-RZex94XX.cjs';
|
|
49
|
+
import '../focus.d-jQWp0hdK.cjs';
|
|
50
|
+
import '../clinicModels.d-BXgKZqDb.cjs';
|
|
51
|
+
import '../models.d-BSqvbTE1.cjs';
|
|
52
|
+
import '../useRecords.d-BYNX01El.cjs';
|
|
53
|
+
import '../features.d-DrQxTw3-.cjs';
|
|
54
|
+
import '../screenProps.d-CQ0qZJkr.cjs';
|
|
55
|
+
import '../clinicBatch.d-Ccmrngcu.cjs';
|
|
56
|
+
import '../recordsAsk.d-C5CGSi3j.cjs';
|
|
57
|
+
import '../sheetSeam.d-BBuEIVsa.cjs';
|
|
42
58
|
|
|
43
59
|
/**
|
|
44
60
|
* A host's rule for the follow-ups under a reply (`EverfurChat`'s `followUpPolicy`, opt-in). Without one the
|
|
@@ -318,6 +334,130 @@ declare function createWebAttachmentTransport(options?: WebAttachmentTransportOp
|
|
|
318
334
|
*/
|
|
319
335
|
declare function fileToAttachmentHandle(file: File): FileHandle;
|
|
320
336
|
|
|
337
|
+
/**
|
|
338
|
+
* How the member got here, said by the host (explicit, owner decision (a)): a plain open from the app's own tab
|
|
339
|
+
* bar, or a deep link (a push, a text, a web card, a "See her plan" button) that names a tab and maybe a question.
|
|
340
|
+
* Change `key` for each new open, so the same link twice is two opens.
|
|
341
|
+
*/
|
|
342
|
+
type EverfurTabsOpened = {
|
|
343
|
+
readonly via: 'plain';
|
|
344
|
+
readonly key?: string | number;
|
|
345
|
+
} | {
|
|
346
|
+
readonly via: 'link';
|
|
347
|
+
readonly tab: EverfurTabId;
|
|
348
|
+
/** A question to start a chat with (the tab is then Ask), and the card the chat opens under (a push's own). */
|
|
349
|
+
readonly ask?: {
|
|
350
|
+
readonly prompt: string;
|
|
351
|
+
readonly card?: EverfurChatOpeningCard;
|
|
352
|
+
};
|
|
353
|
+
readonly key?: string | number;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/** EverfurChat's own props, passed through; the shell sets the pet, the question a link carries and the plan door. */
|
|
357
|
+
type EverfurTabsChatProps = Omit<EverfurChatProps, 'petRef' | 'initialAsk' | 'initialAskKey' | 'initialAskCard' | 'onOpenHealthPlan'>;
|
|
358
|
+
/** EverfurHealthPlan's own props, passed through; the shell sets the pet and remounts it on a changed plan. */
|
|
359
|
+
type EverfurTabsPlanProps = Omit<EverfurHealthPlanProps, 'petRef'>;
|
|
360
|
+
/** EverfurRecordsPage's own props, passed through; the shell sets the pet, its name, Ask and the plan door. */
|
|
361
|
+
type EverfurTabsRecordsProps = Omit<EverfurRecordsPageProps, 'petRef' | 'petName'>;
|
|
362
|
+
/** The intro's options (`EverfurTabs intro=`). Every one is optional; `intro={false}` never plays it. */
|
|
363
|
+
interface EverfurTabsIntro {
|
|
364
|
+
/** Your own words in the intro (each defaults to empty, and an empty line is not drawn). */
|
|
365
|
+
readonly copy?: Partial<EverfurIntroCopy>;
|
|
366
|
+
/** The plan's blanks the records ask shows. Absent: the pet's weight and next shots. */
|
|
367
|
+
readonly blanks?: readonly EverfurIntroBlank[];
|
|
368
|
+
/** Sent's "Turn on notifications": your app's permission ask; resolve true once on. Absent: Everfur's preferences. */
|
|
369
|
+
readonly onEnableNotifications?: () => boolean | Promise<boolean>;
|
|
370
|
+
/** The clinic frame's "Upload a PDF or a photo instead", run once the intro closes. Absent: the Records tab opens. */
|
|
371
|
+
readonly onUpload?: () => void;
|
|
372
|
+
/** The consent step's owner name, and your own signature capture. */
|
|
373
|
+
readonly ownerName?: string;
|
|
374
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
375
|
+
/** The records-landed banner's app tile (your app's mark). */
|
|
376
|
+
readonly bannerIcon?: ReactNode;
|
|
377
|
+
/**
|
|
378
|
+
* The intro plays only while the page is narrower than this (Raph's intro is the phone's; his web view has none, and
|
|
379
|
+
* a shell in a desktop column can be phone-narrow). Default 600.
|
|
380
|
+
*/
|
|
381
|
+
readonly maxWidth?: number;
|
|
382
|
+
}
|
|
383
|
+
/** Class names for a host that keeps its own CSS hooks on the shell's parts (the look itself is inline). */
|
|
384
|
+
interface EverfurTabsClassNames {
|
|
385
|
+
readonly root?: string;
|
|
386
|
+
readonly bar?: string;
|
|
387
|
+
readonly tab?: string;
|
|
388
|
+
readonly panes?: string;
|
|
389
|
+
readonly pane?: string;
|
|
390
|
+
/** The box the chat fills in the Ask pane. */
|
|
391
|
+
readonly ask?: string;
|
|
392
|
+
/** The scroller of the Health Plan and Records panes. */
|
|
393
|
+
readonly scroll?: string;
|
|
394
|
+
}
|
|
395
|
+
interface EverfurTabsProps {
|
|
396
|
+
/** The pet the three tabs are about. Null: no pet yet (the chat starts unscoped, the plan and records wait). */
|
|
397
|
+
readonly petRef: PetRef | null;
|
|
398
|
+
/** The pet's name, for Records and the intro until the plan page names it. */
|
|
399
|
+
readonly petName?: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* How the member got here (explicit): `{ via: 'plain' }` from your app's own tab bar, `{ via: 'link', tab }` from a
|
|
402
|
+
* push, a text, a web card or a "See her plan" button. A new `key` is a new open. A plain open lands on Health Plan
|
|
403
|
+
* and may play the intro; a link opens where it points, and the intro waits for the next plain open.
|
|
404
|
+
*/
|
|
405
|
+
readonly opened: EverfurTabsOpened;
|
|
406
|
+
/** Whether the shell is on screen (your app's own tab is this one). Default true. */
|
|
407
|
+
readonly visible?: boolean;
|
|
408
|
+
readonly copy?: Partial<EverfurTabsCopy>;
|
|
409
|
+
readonly chat?: EverfurTabsChatProps;
|
|
410
|
+
readonly plan?: EverfurTabsPlanProps;
|
|
411
|
+
readonly records?: EverfurTabsRecordsProps;
|
|
412
|
+
/** Your content around the records page (your own top section over it). Absent: the page alone. */
|
|
413
|
+
readonly renderRecords?: (page: ReactNode) => ReactNode;
|
|
414
|
+
/** Your content under a pane (a composer), drawn inside the pane after the SDK's surface. */
|
|
415
|
+
readonly paneFooter?: Partial<Record<EverfurTabId, ReactNode>>;
|
|
416
|
+
/**
|
|
417
|
+
* The pet's results are not back yet (your data): Ask draws no focus card and no pill and offers
|
|
418
|
+
* `pendingStarterPrompts`, and the intro uses its waiting lines.
|
|
419
|
+
*/
|
|
420
|
+
readonly resultsPending?: boolean;
|
|
421
|
+
/** Ask's starters while the results are not back (your words). */
|
|
422
|
+
readonly pendingStarterPrompts?: readonly EverfurStarterPrompt[];
|
|
423
|
+
/** The first-open intro. Default on (it plays once per member); false never plays it. */
|
|
424
|
+
readonly intro?: EverfurTabsIntro | false;
|
|
425
|
+
/**
|
|
426
|
+
* The element the intro, the toast and the banner cover (your phone screen, positioned). Absent: the shell itself,
|
|
427
|
+
* which is then positioned.
|
|
428
|
+
*/
|
|
429
|
+
readonly overlayContainer?: HTMLElement | null;
|
|
430
|
+
/** Names the page after the open tab while `visible` (Raph's titles are the tab labels). Default false. */
|
|
431
|
+
readonly documentTitle?: boolean;
|
|
432
|
+
readonly onTabChange?: (tab: EverfurTabId) => void;
|
|
433
|
+
readonly onRecordsRequested?: (event: EverfurRecordsRequested) => void;
|
|
434
|
+
readonly onRecordsLanded?: (event: EverfurRecordsLanded) => void;
|
|
435
|
+
/** Your own toast. Absent: Raph's, drawn over the tab bar. */
|
|
436
|
+
readonly onToast?: (message: string) => void;
|
|
437
|
+
/**
|
|
438
|
+
* A ref the shell fills with its handle (open a tab, ask, request records), for your callbacks that live outside its
|
|
439
|
+
* content, such as a button on a card you pass in `chat`. Content inside the shell reads it with useEverfurTabs().
|
|
440
|
+
*/
|
|
441
|
+
readonly tabsRef?: {
|
|
442
|
+
current: EverfurTabsHandle | null;
|
|
443
|
+
};
|
|
444
|
+
readonly className?: string;
|
|
445
|
+
readonly style?: CSSProperties;
|
|
446
|
+
readonly classNames?: EverfurTabsClassNames;
|
|
447
|
+
}
|
|
448
|
+
/** What the content inside the shell can do: open a tab, ask in the chat, open the records request sheet. */
|
|
449
|
+
interface EverfurTabsHandle {
|
|
450
|
+
readonly tab: EverfurTabId;
|
|
451
|
+
open(tab: EverfurTabId): void;
|
|
452
|
+
/** Opens Ask with a question in a fresh chat. An empty question only opens Ask. */
|
|
453
|
+
ask(prompt: string, card?: EverfurChatOpeningCard): void;
|
|
454
|
+
/** Raph's records request sheet (his 2a and 2b): her clinic, the consent, Sent. Backing out stays where you are. */
|
|
455
|
+
requestRecords(): void;
|
|
456
|
+
}
|
|
457
|
+
/** The shell around you, inside EverfurTabs (a pane footer, your records section); null outside it. */
|
|
458
|
+
declare function useEverfurTabs(): EverfurTabsHandle | null;
|
|
459
|
+
declare function EverfurTabs(props: EverfurTabsProps): ReactNode;
|
|
460
|
+
|
|
321
461
|
interface EverfurThemeProviderProps {
|
|
322
462
|
/**
|
|
323
463
|
* The clamped client `theme` prop. It wins over the console's branding field by field, except for a field
|
|
@@ -360,4 +500,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
360
500
|
*/
|
|
361
501
|
declare function createLocalStorageKv(): KvPort;
|
|
362
502
|
|
|
363
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurStarterPrompt, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useHostPoweredBy };
|
|
503
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useEverfurTabs, useHostPoweredBy };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,44 +1,60 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurProviderProps } from '../context.d-
|
|
3
|
-
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-
|
|
4
|
-
import {
|
|
5
|
-
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-
|
|
6
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore
|
|
7
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment,
|
|
2
|
+
import { E as EverfurProviderProps } from '../context.d-BdnBe8Oe.js';
|
|
3
|
+
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-BdnBe8Oe.js';
|
|
4
|
+
import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-CoQWUy1Y.js';
|
|
5
|
+
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-CoQWUy1Y.js';
|
|
6
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore } from '../attachments.d-rp3xs-Q3.js';
|
|
7
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, c as UseChatAttachmentsOptions, d as UseChatAttachmentsState, e as UseEverfurChatState, f as UseEverfurPetsState, u as useChatAttachments, g as useEverfurChat, h as useEverfurPets } from '../attachments.d-rp3xs-Q3.js';
|
|
8
8
|
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.js';
|
|
9
9
|
export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.js';
|
|
10
|
-
import { a as ChatCheckinTarget } from '../ports.d-
|
|
11
|
-
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-
|
|
12
|
-
import { i as EverfurPresentationInput } from '../presentation.d-
|
|
13
|
-
export { D as DEFAULT_PRESENTATION, 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, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-
|
|
14
|
-
import { P as PetProfileInput } from '../petsRepository.d-
|
|
15
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports.d-D2n4HRUy.js';
|
|
11
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-D2n4HRUy.js';
|
|
12
|
+
import { i as EverfurPresentationInput } from '../presentation.d-vy8kTGfR.js';
|
|
13
|
+
export { D as DEFAULT_PRESENTATION, 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, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-vy8kTGfR.js';
|
|
14
|
+
import { P as PetProfileInput } from '../petsRepository.d-RGwSZcYl.js';
|
|
15
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-RGwSZcYl.js';
|
|
16
16
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
17
|
+
import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
|
|
18
|
+
import { h as EverfurChatEmptyHeaderContext, i as EverfurChatEmptyState, j as EverfurChatHistoryBar, k as EverfurChatOpeningCard, l as EverfurChatAnswerCards, E as EverfurChatTopCard, m as EverfurChatHistorySheet, b as EverfurHealthPlanProps } from '../threadOptions.d-B6GA09aM.js';
|
|
19
|
+
export { n as EverfurChatAnswerCard, o as EverfurChatAnswerContext, p as EverfurChatFollowUpAction } from '../threadOptions.d-B6GA09aM.js';
|
|
20
|
+
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-MX7IKP2f.js';
|
|
21
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-DbirgbyH.js';
|
|
21
22
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.js';
|
|
22
|
-
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d
|
|
23
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d--sIsfk6e.js';
|
|
23
24
|
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.js';
|
|
24
25
|
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.js';
|
|
25
|
-
|
|
26
|
+
import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-CjsMg_OD.js';
|
|
27
|
+
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-9Ank15PT.js';
|
|
28
|
+
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-DHlMvmC7.js';
|
|
29
|
+
import { a as EverfurTabId, E as EverfurTabsCopy } from '../tabsModel.d-BfIQg6yS.js';
|
|
30
|
+
export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-BfIQg6yS.js';
|
|
31
|
+
export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.js';
|
|
32
|
+
export { L as useEverfurPresentation } from '../usePresentation.d-BGz32Vlm.js';
|
|
26
33
|
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
27
34
|
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
28
|
-
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-
|
|
35
|
+
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-BYq38b17.js';
|
|
29
36
|
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.js';
|
|
30
37
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
|
|
31
38
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.js';
|
|
32
39
|
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-D_-254ZY.js';
|
|
33
|
-
export { M as MintedToken, T as TokenProvider } from '../identity.d-
|
|
34
|
-
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-
|
|
35
|
-
import { E as EverfurThemeInput } from '../branding.d-
|
|
36
|
-
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-
|
|
40
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-BePPZ7Uv.js';
|
|
41
|
+
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-Co5KF0up.js';
|
|
42
|
+
import { E as EverfurThemeInput } from '../branding.d-DxJSoFce.js';
|
|
43
|
+
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-DxJSoFce.js';
|
|
37
44
|
import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } from '../tokens.d-DarDaV39.js';
|
|
38
45
|
export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-DarDaV39.js';
|
|
39
46
|
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.js';
|
|
40
47
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
|
|
41
|
-
import '../requestFunnel.d-
|
|
48
|
+
import '../requestFunnel.d-D9edIEjZ.js';
|
|
49
|
+
import '../focus.d-C0Tr0oVJ.js';
|
|
50
|
+
import '../clinicModels.d-CaS64-P-.js';
|
|
51
|
+
import '../models.d-DOwnr8fi.js';
|
|
52
|
+
import '../useRecords.d-DWk61a4c.js';
|
|
53
|
+
import '../features.d-DrQxTw3-.js';
|
|
54
|
+
import '../screenProps.d-BVzRzowC.js';
|
|
55
|
+
import '../clinicBatch.d-D9Ci7IpP.js';
|
|
56
|
+
import '../recordsAsk.d-C5CGSi3j.js';
|
|
57
|
+
import '../sheetSeam.d-B09jf4YC.js';
|
|
42
58
|
|
|
43
59
|
/**
|
|
44
60
|
* A host's rule for the follow-ups under a reply (`EverfurChat`'s `followUpPolicy`, opt-in). Without one the
|
|
@@ -318,6 +334,130 @@ declare function createWebAttachmentTransport(options?: WebAttachmentTransportOp
|
|
|
318
334
|
*/
|
|
319
335
|
declare function fileToAttachmentHandle(file: File): FileHandle;
|
|
320
336
|
|
|
337
|
+
/**
|
|
338
|
+
* How the member got here, said by the host (explicit, owner decision (a)): a plain open from the app's own tab
|
|
339
|
+
* bar, or a deep link (a push, a text, a web card, a "See her plan" button) that names a tab and maybe a question.
|
|
340
|
+
* Change `key` for each new open, so the same link twice is two opens.
|
|
341
|
+
*/
|
|
342
|
+
type EverfurTabsOpened = {
|
|
343
|
+
readonly via: 'plain';
|
|
344
|
+
readonly key?: string | number;
|
|
345
|
+
} | {
|
|
346
|
+
readonly via: 'link';
|
|
347
|
+
readonly tab: EverfurTabId;
|
|
348
|
+
/** A question to start a chat with (the tab is then Ask), and the card the chat opens under (a push's own). */
|
|
349
|
+
readonly ask?: {
|
|
350
|
+
readonly prompt: string;
|
|
351
|
+
readonly card?: EverfurChatOpeningCard;
|
|
352
|
+
};
|
|
353
|
+
readonly key?: string | number;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/** EverfurChat's own props, passed through; the shell sets the pet, the question a link carries and the plan door. */
|
|
357
|
+
type EverfurTabsChatProps = Omit<EverfurChatProps, 'petRef' | 'initialAsk' | 'initialAskKey' | 'initialAskCard' | 'onOpenHealthPlan'>;
|
|
358
|
+
/** EverfurHealthPlan's own props, passed through; the shell sets the pet and remounts it on a changed plan. */
|
|
359
|
+
type EverfurTabsPlanProps = Omit<EverfurHealthPlanProps, 'petRef'>;
|
|
360
|
+
/** EverfurRecordsPage's own props, passed through; the shell sets the pet, its name, Ask and the plan door. */
|
|
361
|
+
type EverfurTabsRecordsProps = Omit<EverfurRecordsPageProps, 'petRef' | 'petName'>;
|
|
362
|
+
/** The intro's options (`EverfurTabs intro=`). Every one is optional; `intro={false}` never plays it. */
|
|
363
|
+
interface EverfurTabsIntro {
|
|
364
|
+
/** Your own words in the intro (each defaults to empty, and an empty line is not drawn). */
|
|
365
|
+
readonly copy?: Partial<EverfurIntroCopy>;
|
|
366
|
+
/** The plan's blanks the records ask shows. Absent: the pet's weight and next shots. */
|
|
367
|
+
readonly blanks?: readonly EverfurIntroBlank[];
|
|
368
|
+
/** Sent's "Turn on notifications": your app's permission ask; resolve true once on. Absent: Everfur's preferences. */
|
|
369
|
+
readonly onEnableNotifications?: () => boolean | Promise<boolean>;
|
|
370
|
+
/** The clinic frame's "Upload a PDF or a photo instead", run once the intro closes. Absent: the Records tab opens. */
|
|
371
|
+
readonly onUpload?: () => void;
|
|
372
|
+
/** The consent step's owner name, and your own signature capture. */
|
|
373
|
+
readonly ownerName?: string;
|
|
374
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
375
|
+
/** The records-landed banner's app tile (your app's mark). */
|
|
376
|
+
readonly bannerIcon?: ReactNode;
|
|
377
|
+
/**
|
|
378
|
+
* The intro plays only while the page is narrower than this (Raph's intro is the phone's; his web view has none, and
|
|
379
|
+
* a shell in a desktop column can be phone-narrow). Default 600.
|
|
380
|
+
*/
|
|
381
|
+
readonly maxWidth?: number;
|
|
382
|
+
}
|
|
383
|
+
/** Class names for a host that keeps its own CSS hooks on the shell's parts (the look itself is inline). */
|
|
384
|
+
interface EverfurTabsClassNames {
|
|
385
|
+
readonly root?: string;
|
|
386
|
+
readonly bar?: string;
|
|
387
|
+
readonly tab?: string;
|
|
388
|
+
readonly panes?: string;
|
|
389
|
+
readonly pane?: string;
|
|
390
|
+
/** The box the chat fills in the Ask pane. */
|
|
391
|
+
readonly ask?: string;
|
|
392
|
+
/** The scroller of the Health Plan and Records panes. */
|
|
393
|
+
readonly scroll?: string;
|
|
394
|
+
}
|
|
395
|
+
interface EverfurTabsProps {
|
|
396
|
+
/** The pet the three tabs are about. Null: no pet yet (the chat starts unscoped, the plan and records wait). */
|
|
397
|
+
readonly petRef: PetRef | null;
|
|
398
|
+
/** The pet's name, for Records and the intro until the plan page names it. */
|
|
399
|
+
readonly petName?: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* How the member got here (explicit): `{ via: 'plain' }` from your app's own tab bar, `{ via: 'link', tab }` from a
|
|
402
|
+
* push, a text, a web card or a "See her plan" button. A new `key` is a new open. A plain open lands on Health Plan
|
|
403
|
+
* and may play the intro; a link opens where it points, and the intro waits for the next plain open.
|
|
404
|
+
*/
|
|
405
|
+
readonly opened: EverfurTabsOpened;
|
|
406
|
+
/** Whether the shell is on screen (your app's own tab is this one). Default true. */
|
|
407
|
+
readonly visible?: boolean;
|
|
408
|
+
readonly copy?: Partial<EverfurTabsCopy>;
|
|
409
|
+
readonly chat?: EverfurTabsChatProps;
|
|
410
|
+
readonly plan?: EverfurTabsPlanProps;
|
|
411
|
+
readonly records?: EverfurTabsRecordsProps;
|
|
412
|
+
/** Your content around the records page (your own top section over it). Absent: the page alone. */
|
|
413
|
+
readonly renderRecords?: (page: ReactNode) => ReactNode;
|
|
414
|
+
/** Your content under a pane (a composer), drawn inside the pane after the SDK's surface. */
|
|
415
|
+
readonly paneFooter?: Partial<Record<EverfurTabId, ReactNode>>;
|
|
416
|
+
/**
|
|
417
|
+
* The pet's results are not back yet (your data): Ask draws no focus card and no pill and offers
|
|
418
|
+
* `pendingStarterPrompts`, and the intro uses its waiting lines.
|
|
419
|
+
*/
|
|
420
|
+
readonly resultsPending?: boolean;
|
|
421
|
+
/** Ask's starters while the results are not back (your words). */
|
|
422
|
+
readonly pendingStarterPrompts?: readonly EverfurStarterPrompt[];
|
|
423
|
+
/** The first-open intro. Default on (it plays once per member); false never plays it. */
|
|
424
|
+
readonly intro?: EverfurTabsIntro | false;
|
|
425
|
+
/**
|
|
426
|
+
* The element the intro, the toast and the banner cover (your phone screen, positioned). Absent: the shell itself,
|
|
427
|
+
* which is then positioned.
|
|
428
|
+
*/
|
|
429
|
+
readonly overlayContainer?: HTMLElement | null;
|
|
430
|
+
/** Names the page after the open tab while `visible` (Raph's titles are the tab labels). Default false. */
|
|
431
|
+
readonly documentTitle?: boolean;
|
|
432
|
+
readonly onTabChange?: (tab: EverfurTabId) => void;
|
|
433
|
+
readonly onRecordsRequested?: (event: EverfurRecordsRequested) => void;
|
|
434
|
+
readonly onRecordsLanded?: (event: EverfurRecordsLanded) => void;
|
|
435
|
+
/** Your own toast. Absent: Raph's, drawn over the tab bar. */
|
|
436
|
+
readonly onToast?: (message: string) => void;
|
|
437
|
+
/**
|
|
438
|
+
* A ref the shell fills with its handle (open a tab, ask, request records), for your callbacks that live outside its
|
|
439
|
+
* content, such as a button on a card you pass in `chat`. Content inside the shell reads it with useEverfurTabs().
|
|
440
|
+
*/
|
|
441
|
+
readonly tabsRef?: {
|
|
442
|
+
current: EverfurTabsHandle | null;
|
|
443
|
+
};
|
|
444
|
+
readonly className?: string;
|
|
445
|
+
readonly style?: CSSProperties;
|
|
446
|
+
readonly classNames?: EverfurTabsClassNames;
|
|
447
|
+
}
|
|
448
|
+
/** What the content inside the shell can do: open a tab, ask in the chat, open the records request sheet. */
|
|
449
|
+
interface EverfurTabsHandle {
|
|
450
|
+
readonly tab: EverfurTabId;
|
|
451
|
+
open(tab: EverfurTabId): void;
|
|
452
|
+
/** Opens Ask with a question in a fresh chat. An empty question only opens Ask. */
|
|
453
|
+
ask(prompt: string, card?: EverfurChatOpeningCard): void;
|
|
454
|
+
/** Raph's records request sheet (his 2a and 2b): her clinic, the consent, Sent. Backing out stays where you are. */
|
|
455
|
+
requestRecords(): void;
|
|
456
|
+
}
|
|
457
|
+
/** The shell around you, inside EverfurTabs (a pane footer, your records section); null outside it. */
|
|
458
|
+
declare function useEverfurTabs(): EverfurTabsHandle | null;
|
|
459
|
+
declare function EverfurTabs(props: EverfurTabsProps): ReactNode;
|
|
460
|
+
|
|
321
461
|
interface EverfurThemeProviderProps {
|
|
322
462
|
/**
|
|
323
463
|
* The clamped client `theme` prop. It wins over the console's branding field by field, except for a field
|
|
@@ -360,4 +500,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
360
500
|
*/
|
|
361
501
|
declare function createLocalStorageKv(): KvPort;
|
|
362
502
|
|
|
363
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurStarterPrompt, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useHostPoweredBy };
|
|
503
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useEverfurTabs, useHostPoweredBy };
|