@everfur/sdk 0.18.2 → 0.19.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 +124 -0
- package/README.md +6 -5
- package/dist/{Chat.d-BkLu9G00.d.ts → Chat.d-BHovj6Ku.d.ts} +1 -1
- package/dist/{Chat.d-B7iUVGmB.d.cts → Chat.d-BO-XtVYe.d.cts} +1 -1
- package/dist/{DepthViews.d-BiS-GTEf.d.cts → DepthViews.d-BwIkdmWZ.d.cts} +1 -1
- package/dist/{DepthViews.d-C-zs_BnZ.d.cts → DepthViews.d-Bx85LeiP.d.cts} +1 -1
- package/dist/{DepthViews.d-hXV6Ef0y.d.ts → DepthViews.d-CBUunxP1.d.ts} +1 -1
- package/dist/{DepthViews.d-C0DVqywN.d.ts → DepthViews.d-DKoZgF8l.d.ts} +1 -1
- package/dist/{IntakeMedia.d-4a89XrP7.d.ts → IntakeMedia.d-B_ZVDxh3.d.ts} +1 -1
- package/dist/{IntakeMedia.d-JJCUvQu7.d.cts → IntakeMedia.d-CnGzpllr.d.cts} +1 -1
- package/dist/{IntakeMedia.d-DGxrhgIW.d.ts → IntakeMedia.d-DNUAks9E.d.ts} +1 -1
- package/dist/{IntakeMedia.d-DUPR4lVM.d.cts → IntakeMedia.d-Dqc5V_YH.d.cts} +1 -1
- package/dist/{RecordsPage.d-BG_RDR1V.d.ts → RecordsPage.d-CsvBhU0f.d.ts} +1 -1
- package/dist/{RecordsPage.d-5rHMTDyY.d.cts → RecordsPage.d-DRFp2LXH.d.cts} +1 -1
- package/dist/animations/index.cjs +1 -94
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +1 -94
- package/dist/{attachments.d-_mgNU-ur.d.ts → attachments.d-DOZjCdkb.d.ts} +2 -2
- package/dist/{attachments.d-DFbXLAYK.d.cts → attachments.d-DWUsHPf9.d.cts} +2 -2
- package/dist/{bookingCopy.d-RU8lNYJ4.d.ts → bookingCopy.d-BlMWlvgv.d.ts} +10 -3
- package/dist/{bookingCopy.d-0K1trjxx.d.cts → bookingCopy.d-tvO7y6MK.d.cts} +10 -3
- package/dist/{casesRepository.d-D2SQFL27.d.ts → casesRepository.d-C7qbrOL-.d.ts} +1 -1
- package/dist/{casesRepository.d-D7vIZ9oX.d.cts → casesRepository.d-sSo6oakf.d.cts} +1 -1
- package/dist/chat/index.cjs +29 -119
- package/dist/chat/index.d.cts +11 -10
- package/dist/chat/index.d.ts +11 -10
- package/dist/chat/index.js +30 -120
- package/dist/chat/lite/index.cjs +29 -119
- package/dist/chat/lite/index.d.cts +11 -10
- package/dist/chat/lite/index.d.ts +11 -10
- package/dist/chat/lite/index.js +30 -120
- package/dist/{attachments.d-D7f7OfPE.d.ts → chatHandoffToken.d-C4tEyuCT.d.ts} +33 -9
- package/dist/{attachments.d-HmRqizDG.d.cts → chatHandoffToken.d-D6GUoBvs.d.cts} +33 -9
- package/dist/{ports.d-RKc2C07X.d.ts → chatTypes.d-BI4vidgu.d.ts} +41 -52
- package/dist/{ports.d-CB9YZT2L.d.cts → chatTypes.d-CSyw9em_.d.cts} +41 -52
- package/dist/client/index.cjs +2 -95
- package/dist/client/index.d.cts +7 -7
- package/dist/client/index.d.ts +7 -7
- package/dist/client/index.js +2 -95
- package/dist/{clinicBatch.d-BN1jfVGo.d.cts → clinicBatch.d-BxA_uGBb.d.cts} +2 -2
- package/dist/{clinicBatch.d-BhaCdstU.d.ts → clinicBatch.d-T5oSAhY-.d.ts} +2 -2
- package/dist/{config.d-D_k_rNZZ.d.ts → config.d-N5Xzy53V.d.ts} +1 -1
- package/dist/{config.d-BFTqU7ft.d.cts → config.d-jCmrhM4a.d.cts} +1 -1
- package/dist/consent/index.cjs +1 -94
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +1 -94
- package/dist/{context.d-B4LODPF1.d.ts → context.d-BJEpEERH.d.ts} +7 -6
- package/dist/{context.d-D2fhrjAM.d.cts → context.d-l4HkFJI8.d.cts} +7 -6
- package/dist/{copy.d-Bn9eIgkW.d.ts → copy.d-hFRaovog.d.ts} +2 -2
- package/dist/{copy.d-DjYhMxxS.d.cts → copy.d-hS49oJ4w.d.cts} +2 -2
- package/dist/core/index.cjs +6 -99
- package/dist/core/index.d.cts +14 -13
- package/dist/core/index.d.ts +14 -13
- package/dist/core/index.js +6 -99
- package/dist/{depth.d-CsKZkLNi.d.cts → depth.d-BYwddMNU.d.cts} +2 -2
- package/dist/{depth.d-DlaIV8TV.d.ts → depth.d-C99_xup2.d.ts} +2 -2
- package/dist/{entitlementRepository.d-CpIRpfzy.d.cts → entitlementRepository.d-CiU_QIPL.d.cts} +2 -2
- package/dist/{entitlementRepository.d-C5d_6QMi.d.ts → entitlementRepository.d-qZAlET7C.d.ts} +2 -2
- package/dist/{focus.d-DOlAaNIU.d.ts → focus.d-CG6KhDBK.d.ts} +2 -2
- package/dist/{focus.d-DdBbwzjP.d.cts → focus.d-RJMXplJc.d.cts} +2 -2
- package/dist/health-plan/index.cjs +1 -94
- package/dist/health-plan/index.d.cts +9 -9
- package/dist/health-plan/index.d.ts +9 -9
- package/dist/health-plan/index.js +1 -94
- package/dist/{idempotency.d-CmQc1OUv.d.ts → idempotency.d-D-ZWpO9p.d.ts} +1 -1
- package/dist/{idempotency.d-P4O5lNBq.d.cts → idempotency.d-DJyOZDPb.d.cts} +1 -1
- package/dist/{identity.d-BmbAwQYx.d.cts → identity.d-CA7mW59I.d.cts} +1 -1
- package/dist/{identity.d-BZXPu9Hi.d.ts → identity.d-DIOnFzXL.d.ts} +1 -1
- package/dist/index.cjs +30 -120
- package/dist/index.d.cts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.js +31 -121
- package/dist/{introEvents.d-Bqw2Hcpt.d.cts → introEvents.d-7wNDMhEF.d.cts} +1 -1
- package/dist/{introEvents.d-Cy8yxOoe.d.ts → introEvents.d-BjqfFgE1.d.ts} +1 -1
- package/dist/notifications/inbox/index.cjs +44 -0
- package/dist/notifications/inbox/index.d.cts +50 -0
- package/dist/notifications/inbox/index.d.ts +50 -0
- package/dist/notifications/inbox/index.js +44 -0
- package/dist/notifications/index.cjs +18 -98
- package/dist/notifications/index.d.cts +12 -6
- package/dist/notifications/index.d.ts +12 -6
- package/dist/notifications/index.js +18 -98
- package/dist/{optInView.d-wGSNOB86.d.ts → optInView.d-B5v4cDDW.d.ts} +2 -2
- package/dist/{optInView.d-DXj2w4KU.d.cts → optInView.d-BQhHPleh.d.cts} +2 -2
- package/dist/parse.d-DYsx1Q2V.d.cts +168 -0
- package/dist/parse.d-Do0sdAgm.d.ts +168 -0
- package/dist/{pets.d-CP13kAFa.d.cts → pets.d-DRqMaP8A.d.cts} +1 -1
- package/dist/{pets.d-tqGZP3Co.d.ts → pets.d-DVrOb-Bj.d.ts} +1 -1
- package/dist/{petsRepository.d-CLyzuoo4.d.ts → petsRepository.d-CpYWRWFq.d.ts} +1 -1
- package/dist/{petsRepository.d-CyerzD5G.d.cts → petsRepository.d-tZADfKA1.d.cts} +1 -1
- package/dist/photo/index.cjs +1 -94
- package/dist/photo/index.js +1 -94
- package/dist/records/depth/index.cjs +1 -94
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +1 -94
- package/dist/records/index.cjs +2 -95
- package/dist/records/index.d.cts +10 -10
- package/dist/records/index.d.ts +10 -10
- package/dist/records/index.js +2 -95
- package/dist/{requestFunnel.d-BPWf5SQf.d.ts → requestFunnel.d-B8OVGh0p.d.ts} +2 -2
- package/dist/{requestFunnel.d-DocT7FXR.d.cts → requestFunnel.d-C4abgvt9.d.cts} +2 -2
- package/dist/{parse.d-MQST1RP3.d.ts → route.d-BAZqGLfl.d.ts} +90 -53
- package/dist/{parse.d-C9_UMXfA.d.cts → route.d-CTf8h9vS.d.cts} +90 -53
- package/dist/{runtimeTypes.d-CkwEMpy8.d.cts → runtimeTypes.d-DbaQKGLv.d.cts} +39 -5
- package/dist/{runtimeTypes.d-D4Cjjf_C.d.ts → runtimeTypes.d-DrIz5e6L.d.ts} +39 -5
- package/dist/{screenProps.d-DNTTp7hU.d.ts → screenProps.d-BP8LAZWn.d.ts} +1 -1
- package/dist/{screenProps.d-Byla6nJL.d.cts → screenProps.d-Di3wYGCn.d.cts} +1 -1
- package/dist/server/events/index.cjs +2 -95
- package/dist/server/events/index.d.cts +122 -4
- package/dist/server/events/index.d.ts +122 -4
- package/dist/server/events/index.js +2 -95
- package/dist/server/index.cjs +2 -95
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +2 -95
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/tabs/index.cjs +3 -96
- package/dist/tabs/index.d.cts +6 -6
- package/dist/tabs/index.d.ts +6 -6
- package/dist/tabs/index.js +3 -96
- package/dist/televet/booking/index.cjs +11 -103
- package/dist/televet/booking/index.d.cts +13 -11
- package/dist/televet/booking/index.d.ts +13 -11
- package/dist/televet/booking/index.js +11 -103
- package/dist/televet/index.cjs +1 -94
- package/dist/televet/index.d.cts +3 -3
- package/dist/televet/index.d.ts +3 -3
- package/dist/televet/index.js +1 -94
- package/dist/{televetGlobal.d-CC-DrqkQ.d.ts → televetGlobal.d-B0_jbCtC.d.ts} +7 -0
- package/dist/{televetGlobal.d-CKwDCbmN.d.cts → televetGlobal.d-BWYJR391.d.cts} +7 -0
- package/dist/testing/index.cjs +1 -94
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -94
- package/dist/testing/rn/index.cjs +1 -94
- package/dist/testing/rn/index.d.cts +8 -7
- package/dist/testing/rn/index.d.ts +8 -7
- package/dist/testing/rn/index.js +1 -94
- package/dist/testing/web/index.cjs +1 -94
- package/dist/testing/web/index.d.cts +8 -7
- package/dist/testing/web/index.d.ts +8 -7
- package/dist/testing/web/index.js +1 -94
- package/dist/texting/index.cjs +1 -94
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +1 -94
- package/dist/{threadOptions.d-jgk_sHrj.d.ts → threadOptions.d-Cwmyu8pc.d.ts} +2 -2
- package/dist/{threadOptions.d-CIrevUL8.d.cts → threadOptions.d-REwBuXAY.d.cts} +2 -2
- package/dist/{timelineRows.d-BST14weg.d.ts → timelineRows.d-CTlGQTB0.d.ts} +1 -1
- package/dist/{timelineRows.d-BEjiHpkP.d.cts → timelineRows.d-CongJG58.d.cts} +1 -1
- package/dist/unreadStore.d-gCsleb6l.d.ts +74 -0
- package/dist/unreadStore.d-w5x6lEpR.d.cts +74 -0
- package/dist/{useHealthPlanSubscription.d-C9kh4mvk.d.ts → useHealthPlanSubscription.d-BSo5kFT9.d.ts} +2 -2
- package/dist/{useHealthPlanSubscription.d-CYJi9ZNE.d.cts → useHealthPlanSubscription.d-Br7GKHTt.d.cts} +2 -2
- package/dist/useInboxUnread.d-Blxu00eY.d.ts +206 -0
- package/dist/useInboxUnread.d-pi6FNnK-.d.cts +206 -0
- package/dist/{usePresentation.d-COEh8Xa1.d.cts → usePresentation.d-C6ci1s3j.d.cts} +1 -1
- package/dist/{usePresentation.d-WA3sfMpz.d.ts → usePresentation.d-yd9Gh4GB.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-DZfdRdIU.d.cts → useRecordsDepth.d-BIDVPfx7.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-CAYnVYl1.d.ts → useRecordsDepth.d-C5snbNxR.d.ts} +1 -1
- package/dist/{appStateLifecycle.d-_TM06yEk.d.cts → useUnread.d-CORommFJ.d.cts} +49 -14
- package/dist/{appStateLifecycle.d-7H_2a9it.d.ts → useUnread.d-w0dKMnx7.d.ts} +49 -14
- package/dist/video/index.cjs +1 -94
- package/dist/video/index.js +1 -94
- package/dist/{view.d-D8soknYh.d.ts → view.d-CK2UN4qn.d.ts} +3 -3
- package/dist/{view.d-eM315KIZ.d.cts → view.d-DUhKppyl.d.cts} +3 -3
- package/dist/web/consent/index.cjs +1 -94
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +1 -94
- package/dist/web/health-plan/index.cjs +1 -94
- package/dist/web/health-plan/index.d.cts +11 -11
- package/dist/web/health-plan/index.d.ts +11 -11
- package/dist/web/health-plan/index.js +1 -94
- package/dist/web/inbox/index.cjs +49 -0
- package/dist/web/inbox/index.d.cts +191 -0
- package/dist/web/inbox/index.d.ts +191 -0
- package/dist/web/inbox/index.js +49 -0
- package/dist/web/index.cjs +28 -118
- package/dist/web/index.d.cts +76 -36
- package/dist/web/index.d.ts +76 -36
- package/dist/web/index.js +28 -118
- package/dist/web/intro/index.cjs +3 -96
- package/dist/web/intro/index.d.cts +6 -6
- package/dist/web/intro/index.d.ts +6 -6
- package/dist/web/intro/index.js +3 -96
- package/dist/web/notifications/index.cjs +16 -96
- package/dist/web/notifications/index.d.cts +8 -3
- package/dist/web/notifications/index.d.ts +8 -3
- package/dist/web/notifications/index.js +16 -96
- package/dist/web/records/depth/index.cjs +1 -94
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/depth/index.js +1 -94
- package/dist/web/records/index.cjs +1 -94
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +1 -94
- package/dist/web/records-sheet/index.cjs +2 -95
- package/dist/web/records-sheet/index.js +2 -95
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/televet/booking/index.cjs +9 -102
- package/dist/web/televet/booking/index.d.cts +18 -11
- package/dist/web/televet/booking/index.d.ts +18 -11
- package/dist/web/televet/booking/index.js +9 -102
- package/dist/web/televet/index.cjs +1 -94
- package/dist/web/televet/index.d.cts +3 -3
- package/dist/web/televet/index.d.ts +3 -3
- package/dist/web/televet/index.js +1 -94
- package/dist/web/texting/index.cjs +1 -94
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +1 -94
- package/notifications/inbox/package.json +8 -0
- package/package.json +29 -1
- package/web/inbox/native-blocked.cjs +12 -0
- package/web/inbox/package.json +8 -0
package/dist/web/index.d.cts
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { E as EverfurProviderProps } from '../context.d-
|
|
4
|
-
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-
|
|
3
|
+
import { E as EverfurProviderProps } from '../context.d-l4HkFJI8.cjs';
|
|
4
|
+
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-l4HkFJI8.cjs';
|
|
5
5
|
import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.cjs';
|
|
6
6
|
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-BTC3b6FW.cjs';
|
|
7
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy } from '../
|
|
8
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment,
|
|
7
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from '../chatHandoffToken.d-D6GUoBvs.cjs';
|
|
8
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-D6GUoBvs.cjs';
|
|
9
9
|
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.cjs';
|
|
10
10
|
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';
|
|
11
|
-
import { a as ChatCheckinTarget } from '../
|
|
12
|
-
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions,
|
|
11
|
+
import { a as ChatCheckinTarget } from '../chatTypes.d-CSyw9em_.cjs';
|
|
12
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, j as ChatMessage, h as ChatMessagePage, k as ChatMessageRole, l as ChatMessageSender, i as ChatRefreshOptions, m as ChatStatus, n as Citation, S as SendOptions } from '../chatTypes.d-CSyw9em_.cjs';
|
|
13
13
|
import { i as EverfurPresentationInput } from '../presentation.d-Bs8xQ4gD.cjs';
|
|
14
14
|
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-Bs8xQ4gD.cjs';
|
|
15
|
-
import { P as PetProfileInput } from '../petsRepository.d-
|
|
16
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-
|
|
15
|
+
import { P as PetProfileInput } from '../petsRepository.d-tZADfKA1.cjs';
|
|
16
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-tZADfKA1.cjs';
|
|
17
17
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
|
|
18
18
|
import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
|
|
19
|
-
import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-
|
|
20
|
-
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-
|
|
21
|
-
import { e as HealthPlanTopCardResults } from '../usePresentation.d-
|
|
22
|
-
export { u as useEverfurPresentation } from '../usePresentation.d-
|
|
19
|
+
import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-REwBuXAY.cjs';
|
|
20
|
+
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-REwBuXAY.cjs';
|
|
21
|
+
import { e as HealthPlanTopCardResults } from '../usePresentation.d-C6ci1s3j.cjs';
|
|
22
|
+
export { u as useEverfurPresentation } from '../usePresentation.d-C6ci1s3j.cjs';
|
|
23
23
|
import { E as EverfurChatEmptyHeaderContext } from '../threadOptions.d-CW51PyVd.cjs';
|
|
24
24
|
export { c as EverfurChatTopCardRow } from '../threadOptions.d-CW51PyVd.cjs';
|
|
25
|
-
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-
|
|
26
|
-
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-
|
|
25
|
+
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-jCmrhM4a.cjs';
|
|
26
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-sSo6oakf.cjs';
|
|
27
27
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.cjs';
|
|
28
|
-
export {
|
|
28
|
+
export { E as EverfurUnread, P as PresignedPolicy, U as UploadPort } from '../unreadStore.d-w5x6lEpR.cjs';
|
|
29
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DWUsHPf9.cjs';
|
|
29
30
|
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.cjs';
|
|
30
31
|
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.cjs';
|
|
31
32
|
import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-1dCtouGA.cjs';
|
|
32
|
-
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-
|
|
33
|
-
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-
|
|
33
|
+
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-DRFp2LXH.cjs';
|
|
34
|
+
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-7wNDMhEF.cjs';
|
|
34
35
|
import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.cjs';
|
|
35
36
|
export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.cjs';
|
|
36
37
|
export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.cjs';
|
|
37
38
|
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
38
39
|
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
39
|
-
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-
|
|
40
|
+
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-DbaQKGLv.cjs';
|
|
40
41
|
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.cjs';
|
|
41
42
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
42
43
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.cjs';
|
|
43
44
|
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';
|
|
44
|
-
export { M as MintedToken, T as TokenProvider } from '../identity.d-
|
|
45
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-CA7mW59I.cjs';
|
|
45
46
|
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-Ckdh_S-t.cjs';
|
|
46
47
|
import { E as EverfurThemeInput } from '../branding.d-BFauULV6.cjs';
|
|
47
48
|
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-BFauULV6.cjs';
|
|
@@ -49,14 +50,14 @@ import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } fr
|
|
|
49
50
|
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-BUVqme2D.cjs';
|
|
50
51
|
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';
|
|
51
52
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
|
|
52
|
-
import '../requestFunnel.d-
|
|
53
|
-
import '../focus.d-
|
|
53
|
+
import '../requestFunnel.d-C4abgvt9.cjs';
|
|
54
|
+
import '../focus.d-RJMXplJc.cjs';
|
|
54
55
|
import '../models.d-BSqvbTE1.cjs';
|
|
55
56
|
import '../clinicModels.d-BXgKZqDb.cjs';
|
|
56
57
|
import '../useRecords.d-BYNX01El.cjs';
|
|
57
58
|
import '../features.d-DrQxTw3-.cjs';
|
|
58
|
-
import '../screenProps.d-
|
|
59
|
-
import '../clinicBatch.d-
|
|
59
|
+
import '../screenProps.d-Di3wYGCn.cjs';
|
|
60
|
+
import '../clinicBatch.d-BxA_uGBb.cjs';
|
|
60
61
|
import '../recordsAsk.d-C5CGSi3j.cjs';
|
|
61
62
|
import '../sheetSeam.d-BBuEIVsa.cjs';
|
|
62
63
|
|
|
@@ -100,8 +101,9 @@ interface EverfurChatProps {
|
|
|
100
101
|
*/
|
|
101
102
|
readonly renderPending?: () => ReactNode;
|
|
102
103
|
/**
|
|
103
|
-
* Called after the owner picks another pet in the header's switcher
|
|
104
|
-
* been switched through `handle.setActivePet`), so your own
|
|
104
|
+
* Called after the owner picks another pet in the header's switcher, or a `checkinTarget` moved the chat to
|
|
105
|
+
* its pet (the provider's active pet has already been switched through `handle.setActivePet`), so your own
|
|
106
|
+
* screen can follow.
|
|
105
107
|
*/
|
|
106
108
|
readonly onPetChange?: (petRef: PetRef) => void;
|
|
107
109
|
/**
|
|
@@ -144,11 +146,21 @@ interface EverfurChatProps {
|
|
|
144
146
|
*/
|
|
145
147
|
readonly onAddPet?: () => void;
|
|
146
148
|
/**
|
|
147
|
-
* The
|
|
148
|
-
* opens that thread
|
|
149
|
-
* sees instead of something they would have to find in the
|
|
149
|
+
* The thread a tapped Everfur push is about: the `case` or `chat` target `parseEverfurNotification` returned.
|
|
150
|
+
* Chat opens that thread once per target, after it has finished opening, so a due follow-up question or a
|
|
151
|
+
* message Everfur left is the first thing the member sees instead of something they would have to find in the
|
|
152
|
+
* history drawer. A target without a conversation opens the newest thread of its pet, and reading that pet's
|
|
153
|
+
* list is what places the message in it. Without your own `petRef`, a target for another pet first switches
|
|
154
|
+
* the chat to that pet, as the header's switcher does (`onPetChange` is called). Absent, chat opens as usual.
|
|
150
155
|
*/
|
|
151
156
|
readonly checkinTarget?: ChatCheckinTarget;
|
|
157
|
+
/**
|
|
158
|
+
* The token of a chat handoff link Everfur texted the member (`#efch=` on your app link): read it with
|
|
159
|
+
* `takeChatHandoffToken()` and pass it here. Chat redeems it with the member's session and opens that conversation, on its
|
|
160
|
+
* pet, once. A link that is no longer valid (expired, already replaced, another member's) opens chat as usual
|
|
161
|
+
* and shows nothing about the link. A `checkinTarget` wins over it. Never store or log the token.
|
|
162
|
+
*/
|
|
163
|
+
readonly handoffToken?: string;
|
|
152
164
|
/**
|
|
153
165
|
* A question to ask on arrival, in a conversation of its own: the prompt one of your own screens built
|
|
154
166
|
* (an Everfur records "Ask Everfur" pill hands you one). It is asked once, after chat has finished
|
|
@@ -177,6 +189,12 @@ interface EverfurChatProps {
|
|
|
177
189
|
* in which case chat refreshes only when the user does something.
|
|
178
190
|
*/
|
|
179
191
|
readonly lifecycle?: LifecyclePort | null;
|
|
192
|
+
/**
|
|
193
|
+
* With no thread open (a blank chat), let a refresh (your app coming back, connectivity returning, a push you
|
|
194
|
+
* announce through `lifecycle`) open the newest thread when it has an unread reply, as the chat already does when
|
|
195
|
+
* it mounts. Default false: a blank chat stays blank until the member opens a thread.
|
|
196
|
+
*/
|
|
197
|
+
readonly openUnreadOnRefresh?: boolean;
|
|
180
198
|
/**
|
|
181
199
|
* Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
|
|
182
200
|
* screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
|
|
@@ -201,14 +219,23 @@ interface EverfurChatProps {
|
|
|
201
219
|
*/
|
|
202
220
|
readonly vetPrefer?: 'in-app' | 'redirect';
|
|
203
221
|
/**
|
|
204
|
-
* Your opener for a web page chat links to:
|
|
205
|
-
* deck (`kind` `'citation'
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* `(url) => { window.open(url, '_blank', 'noopener'); }` for
|
|
209
|
-
* frame, which cannot carry a function, a source card is always
|
|
222
|
+
* Your opener for a web page chat links to, always an https URL: the source page behind a card in an answer's
|
|
223
|
+
* sources deck (`kind` `'citation'`), or a link in a message when `linkHosts` turns those on (`kind` `'message'`).
|
|
224
|
+
* Absent (the default), a source card is read-only (its title, meta line and excerpt show) and a message link
|
|
225
|
+
* opens in a new tab. Given, the card is a real link too, and a click on either calls this instead of navigating,
|
|
226
|
+
* so you can show the page in your own viewer; pass `(url) => { window.open(url, '_blank', 'noopener'); }` for
|
|
227
|
+
* the Everfur web app's new tab. Inside the CDN frame, which cannot carry a function, a source card is always
|
|
228
|
+
* read-only and a message link is opened by the loader on your page.
|
|
229
|
+
*/
|
|
230
|
+
readonly onOpenUrl?: (url: string, kind: 'citation' | 'message') => void | Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Turns links in messages on. Absent (the default), every address in a reply stays plain text, as before this
|
|
233
|
+
* option existed. Given, an https address in a settled reply is a link when its host is Everfur's own (everfur.com
|
|
234
|
+
* and its subdomains) or one listed here; pass `[]` for Everfur's own alone. An entry is a host matched exactly
|
|
235
|
+
* (`shop.example.com`) or `*.` and a host for its subdomains (`*.example.com`). Any other address, and anything
|
|
236
|
+
* that is not https, stays plain text.
|
|
210
237
|
*/
|
|
211
|
-
readonly
|
|
238
|
+
readonly linkHosts?: readonly string[];
|
|
212
239
|
/**
|
|
213
240
|
* The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
|
|
214
241
|
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
@@ -318,6 +345,19 @@ declare function EverfurPoweredBy({ children, className, style }: EverfurPowered
|
|
|
318
345
|
*/
|
|
319
346
|
declare function createBrowserLifecycle(): LifecyclePort;
|
|
320
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Whether the member has unread Everfur chat for a pet (absent, the provider's active pet). Reads the pet's chat
|
|
350
|
+
* list on mount and when the page becomes visible again; a mounted `EverfurChat` keeps it current too. Every
|
|
351
|
+
* field is null until the first read answers, and while signed out.
|
|
352
|
+
*/
|
|
353
|
+
declare function useEverfurUnread(options?: UseEverfurUnreadOptions): EverfurUnreadState;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The chat handoff token in this page's URL, taken out of the address bar as it is read; null when there is none.
|
|
357
|
+
* Call it once, early (before your router reads the URL), and keep the value in memory only. Never throws.
|
|
358
|
+
*/
|
|
359
|
+
declare function takeChatHandoffToken(): string | null;
|
|
360
|
+
|
|
321
361
|
interface WebAttachmentTransportOptions {
|
|
322
362
|
/** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
|
|
323
363
|
readonly fetch?: typeof fetch;
|
|
@@ -516,4 +556,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
516
556
|
*/
|
|
517
557
|
declare function createLocalStorageKv(): KvPort;
|
|
518
558
|
|
|
519
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, 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 };
|
|
559
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, 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, EverfurUnreadState, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, UseEverfurUnreadOptions, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, takeChatHandoffToken, useEverfurTabs, useEverfurUnread, useHostPoweredBy };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { E as EverfurProviderProps } from '../context.d-
|
|
4
|
-
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-
|
|
3
|
+
import { E as EverfurProviderProps } from '../context.d-BJEpEERH.js';
|
|
4
|
+
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-BJEpEERH.js';
|
|
5
5
|
import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.js';
|
|
6
6
|
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-BTC3b6FW.js';
|
|
7
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy } from '../
|
|
8
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment,
|
|
7
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from '../chatHandoffToken.d-C4tEyuCT.js';
|
|
8
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-C4tEyuCT.js';
|
|
9
9
|
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.js';
|
|
10
10
|
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';
|
|
11
|
-
import { a as ChatCheckinTarget } from '../
|
|
12
|
-
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions,
|
|
11
|
+
import { a as ChatCheckinTarget } from '../chatTypes.d-BI4vidgu.js';
|
|
12
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, j as ChatMessage, h as ChatMessagePage, k as ChatMessageRole, l as ChatMessageSender, i as ChatRefreshOptions, m as ChatStatus, n as Citation, S as SendOptions } from '../chatTypes.d-BI4vidgu.js';
|
|
13
13
|
import { i as EverfurPresentationInput } from '../presentation.d-Bs8xQ4gD.js';
|
|
14
14
|
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-Bs8xQ4gD.js';
|
|
15
|
-
import { P as PetProfileInput } from '../petsRepository.d-
|
|
16
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-
|
|
15
|
+
import { P as PetProfileInput } from '../petsRepository.d-CpYWRWFq.js';
|
|
16
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-CpYWRWFq.js';
|
|
17
17
|
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
|
|
18
18
|
import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
|
|
19
|
-
import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-
|
|
20
|
-
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-
|
|
21
|
-
import { e as HealthPlanTopCardResults } from '../usePresentation.d-
|
|
22
|
-
export { u as useEverfurPresentation } from '../usePresentation.d-
|
|
19
|
+
import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-Cwmyu8pc.js';
|
|
20
|
+
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-Cwmyu8pc.js';
|
|
21
|
+
import { e as HealthPlanTopCardResults } from '../usePresentation.d-yd9Gh4GB.js';
|
|
22
|
+
export { u as useEverfurPresentation } from '../usePresentation.d-yd9Gh4GB.js';
|
|
23
23
|
import { E as EverfurChatEmptyHeaderContext } from '../threadOptions.d-CW51PyVd.js';
|
|
24
24
|
export { c as EverfurChatTopCardRow } from '../threadOptions.d-CW51PyVd.js';
|
|
25
|
-
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-
|
|
26
|
-
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-
|
|
25
|
+
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-N5Xzy53V.js';
|
|
26
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-C7qbrOL-.js';
|
|
27
27
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.js';
|
|
28
|
-
export {
|
|
28
|
+
export { E as EverfurUnread, P as PresignedPolicy, U as UploadPort } from '../unreadStore.d-gCsleb6l.js';
|
|
29
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DOZjCdkb.js';
|
|
29
30
|
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.js';
|
|
30
31
|
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.js';
|
|
31
32
|
import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-CjsMg_OD.js';
|
|
32
|
-
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-
|
|
33
|
-
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-
|
|
33
|
+
import { E as EverfurRecordsPageProps } from '../RecordsPage.d-CsvBhU0f.js';
|
|
34
|
+
import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-BjqfFgE1.js';
|
|
34
35
|
import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.js';
|
|
35
36
|
export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.js';
|
|
36
37
|
export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.js';
|
|
37
38
|
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
38
39
|
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
39
|
-
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-
|
|
40
|
+
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-DrIz5e6L.js';
|
|
40
41
|
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.js';
|
|
41
42
|
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
|
|
42
43
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.js';
|
|
43
44
|
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';
|
|
44
|
-
export { M as MintedToken, T as TokenProvider } from '../identity.d-
|
|
45
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-DIOnFzXL.js';
|
|
45
46
|
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-B9Jo5mDX.js';
|
|
46
47
|
import { E as EverfurThemeInput } from '../branding.d-DpNGEdDL.js';
|
|
47
48
|
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-DpNGEdDL.js';
|
|
@@ -49,14 +50,14 @@ import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } fr
|
|
|
49
50
|
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-BUVqme2D.js';
|
|
50
51
|
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';
|
|
51
52
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
|
|
52
|
-
import '../requestFunnel.d-
|
|
53
|
-
import '../focus.d-
|
|
53
|
+
import '../requestFunnel.d-B8OVGh0p.js';
|
|
54
|
+
import '../focus.d-CG6KhDBK.js';
|
|
54
55
|
import '../models.d-DOwnr8fi.js';
|
|
55
56
|
import '../clinicModels.d-CaS64-P-.js';
|
|
56
57
|
import '../useRecords.d-DWk61a4c.js';
|
|
57
58
|
import '../features.d-DrQxTw3-.js';
|
|
58
|
-
import '../screenProps.d-
|
|
59
|
-
import '../clinicBatch.d-
|
|
59
|
+
import '../screenProps.d-BP8LAZWn.js';
|
|
60
|
+
import '../clinicBatch.d-T5oSAhY-.js';
|
|
60
61
|
import '../recordsAsk.d-C5CGSi3j.js';
|
|
61
62
|
import '../sheetSeam.d-B09jf4YC.js';
|
|
62
63
|
|
|
@@ -100,8 +101,9 @@ interface EverfurChatProps {
|
|
|
100
101
|
*/
|
|
101
102
|
readonly renderPending?: () => ReactNode;
|
|
102
103
|
/**
|
|
103
|
-
* Called after the owner picks another pet in the header's switcher
|
|
104
|
-
* been switched through `handle.setActivePet`), so your own
|
|
104
|
+
* Called after the owner picks another pet in the header's switcher, or a `checkinTarget` moved the chat to
|
|
105
|
+
* its pet (the provider's active pet has already been switched through `handle.setActivePet`), so your own
|
|
106
|
+
* screen can follow.
|
|
105
107
|
*/
|
|
106
108
|
readonly onPetChange?: (petRef: PetRef) => void;
|
|
107
109
|
/**
|
|
@@ -144,11 +146,21 @@ interface EverfurChatProps {
|
|
|
144
146
|
*/
|
|
145
147
|
readonly onAddPet?: () => void;
|
|
146
148
|
/**
|
|
147
|
-
* The
|
|
148
|
-
* opens that thread
|
|
149
|
-
* sees instead of something they would have to find in the
|
|
149
|
+
* The thread a tapped Everfur push is about: the `case` or `chat` target `parseEverfurNotification` returned.
|
|
150
|
+
* Chat opens that thread once per target, after it has finished opening, so a due follow-up question or a
|
|
151
|
+
* message Everfur left is the first thing the member sees instead of something they would have to find in the
|
|
152
|
+
* history drawer. A target without a conversation opens the newest thread of its pet, and reading that pet's
|
|
153
|
+
* list is what places the message in it. Without your own `petRef`, a target for another pet first switches
|
|
154
|
+
* the chat to that pet, as the header's switcher does (`onPetChange` is called). Absent, chat opens as usual.
|
|
150
155
|
*/
|
|
151
156
|
readonly checkinTarget?: ChatCheckinTarget;
|
|
157
|
+
/**
|
|
158
|
+
* The token of a chat handoff link Everfur texted the member (`#efch=` on your app link): read it with
|
|
159
|
+
* `takeChatHandoffToken()` and pass it here. Chat redeems it with the member's session and opens that conversation, on its
|
|
160
|
+
* pet, once. A link that is no longer valid (expired, already replaced, another member's) opens chat as usual
|
|
161
|
+
* and shows nothing about the link. A `checkinTarget` wins over it. Never store or log the token.
|
|
162
|
+
*/
|
|
163
|
+
readonly handoffToken?: string;
|
|
152
164
|
/**
|
|
153
165
|
* A question to ask on arrival, in a conversation of its own: the prompt one of your own screens built
|
|
154
166
|
* (an Everfur records "Ask Everfur" pill hands you one). It is asked once, after chat has finished
|
|
@@ -177,6 +189,12 @@ interface EverfurChatProps {
|
|
|
177
189
|
* in which case chat refreshes only when the user does something.
|
|
178
190
|
*/
|
|
179
191
|
readonly lifecycle?: LifecyclePort | null;
|
|
192
|
+
/**
|
|
193
|
+
* With no thread open (a blank chat), let a refresh (your app coming back, connectivity returning, a push you
|
|
194
|
+
* announce through `lifecycle`) open the newest thread when it has an unread reply, as the chat already does when
|
|
195
|
+
* it mounts. Default false: a blank chat stays blank until the member opens a thread.
|
|
196
|
+
*/
|
|
197
|
+
readonly openUnreadOnRefresh?: boolean;
|
|
180
198
|
/**
|
|
181
199
|
* Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
|
|
182
200
|
* screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
|
|
@@ -201,14 +219,23 @@ interface EverfurChatProps {
|
|
|
201
219
|
*/
|
|
202
220
|
readonly vetPrefer?: 'in-app' | 'redirect';
|
|
203
221
|
/**
|
|
204
|
-
* Your opener for a web page chat links to:
|
|
205
|
-
* deck (`kind` `'citation'
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* `(url) => { window.open(url, '_blank', 'noopener'); }` for
|
|
209
|
-
* frame, which cannot carry a function, a source card is always
|
|
222
|
+
* Your opener for a web page chat links to, always an https URL: the source page behind a card in an answer's
|
|
223
|
+
* sources deck (`kind` `'citation'`), or a link in a message when `linkHosts` turns those on (`kind` `'message'`).
|
|
224
|
+
* Absent (the default), a source card is read-only (its title, meta line and excerpt show) and a message link
|
|
225
|
+
* opens in a new tab. Given, the card is a real link too, and a click on either calls this instead of navigating,
|
|
226
|
+
* so you can show the page in your own viewer; pass `(url) => { window.open(url, '_blank', 'noopener'); }` for
|
|
227
|
+
* the Everfur web app's new tab. Inside the CDN frame, which cannot carry a function, a source card is always
|
|
228
|
+
* read-only and a message link is opened by the loader on your page.
|
|
229
|
+
*/
|
|
230
|
+
readonly onOpenUrl?: (url: string, kind: 'citation' | 'message') => void | Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Turns links in messages on. Absent (the default), every address in a reply stays plain text, as before this
|
|
233
|
+
* option existed. Given, an https address in a settled reply is a link when its host is Everfur's own (everfur.com
|
|
234
|
+
* and its subdomains) or one listed here; pass `[]` for Everfur's own alone. An entry is a host matched exactly
|
|
235
|
+
* (`shop.example.com`) or `*.` and a host for its subdomains (`*.example.com`). Any other address, and anything
|
|
236
|
+
* that is not https, stays plain text.
|
|
210
237
|
*/
|
|
211
|
-
readonly
|
|
238
|
+
readonly linkHosts?: readonly string[];
|
|
212
239
|
/**
|
|
213
240
|
* The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
|
|
214
241
|
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
@@ -318,6 +345,19 @@ declare function EverfurPoweredBy({ children, className, style }: EverfurPowered
|
|
|
318
345
|
*/
|
|
319
346
|
declare function createBrowserLifecycle(): LifecyclePort;
|
|
320
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Whether the member has unread Everfur chat for a pet (absent, the provider's active pet). Reads the pet's chat
|
|
350
|
+
* list on mount and when the page becomes visible again; a mounted `EverfurChat` keeps it current too. Every
|
|
351
|
+
* field is null until the first read answers, and while signed out.
|
|
352
|
+
*/
|
|
353
|
+
declare function useEverfurUnread(options?: UseEverfurUnreadOptions): EverfurUnreadState;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The chat handoff token in this page's URL, taken out of the address bar as it is read; null when there is none.
|
|
357
|
+
* Call it once, early (before your router reads the URL), and keep the value in memory only. Never throws.
|
|
358
|
+
*/
|
|
359
|
+
declare function takeChatHandoffToken(): string | null;
|
|
360
|
+
|
|
321
361
|
interface WebAttachmentTransportOptions {
|
|
322
362
|
/** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
|
|
323
363
|
readonly fetch?: typeof fetch;
|
|
@@ -516,4 +556,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
516
556
|
*/
|
|
517
557
|
declare function createLocalStorageKv(): KvPort;
|
|
518
558
|
|
|
519
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, 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 };
|
|
559
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, 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, EverfurUnreadState, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, UseEverfurUnreadOptions, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, takeChatHandoffToken, useEverfurTabs, useEverfurUnread, useHostPoweredBy };
|