@everfur/sdk 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +220 -0
- package/README.md +9 -8
- package/dist/{Chat-BZZ-Py5l.d.ts → Chat-Rzplrf5M.d.ts} +17 -3
- package/dist/{Chat-Dq4fffIO.d.cts → Chat-ypo6miKm.d.cts} +17 -3
- package/dist/{DepthViews-BG3E25MD.d.ts → DepthViews-CeTfPUBX.d.ts} +1 -1
- package/dist/{DepthViews-B_hIypI6.d.cts → DepthViews-ClykXOJj.d.cts} +1 -1
- package/dist/{DepthViews-CL75jyRA.d.cts → DepthViews-Cui3oonj.d.cts} +1 -1
- package/dist/{DepthViews-CkYri51q.d.ts → DepthViews-baYLMNQ-.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-CwbfmxzJ.d.ts → ErrorPolicyPort-D22LUVrK.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-CNf4uQZP.d.cts → ErrorPolicyPort-D6CybiqJ.d.cts} +1 -1
- package/dist/{EverfurResult-DN9pL2Ab.d.cts → EverfurError-DmELDpXp.d.cts} +1 -67
- package/dist/{EverfurResult-DN9pL2Ab.d.ts → EverfurError-DmELDpXp.d.ts} +1 -67
- package/dist/EverfurResult-SGvHKsCB.d.ts +69 -0
- package/dist/EverfurResult-ZtH-YV1h.d.cts +69 -0
- package/dist/animations/index.cjs +1 -1
- package/dist/animations/index.d.cts +6 -5
- package/dist/animations/index.d.ts +6 -5
- package/dist/animations/index.js +1 -1
- package/dist/{attachments-D_SECjr1.d.cts → attachments-CwsR-bPN.d.cts} +7 -6
- package/dist/{attachments-BrUWQYNK.d.ts → attachments-CzZ7in24.d.ts} +7 -6
- package/dist/{attachments-DpldrvIW.d.ts → attachments-D3HCBmOE.d.ts} +3 -3
- package/dist/{attachments-BorG422I.d.cts → attachments-Nk73Lll8.d.cts} +3 -3
- package/dist/{bookingCopy-SREvkG19.d.cts → bookingCopy-Dv8rKqyV.d.cts} +417 -14
- package/dist/{bookingCopy-CqtDYvCR.d.ts → bookingCopy-SDkXaxDf.d.ts} +417 -14
- package/dist/branding-Xb_wL8N1.d.cts +212 -0
- package/dist/branding-xpQ056sM.d.ts +212 -0
- package/dist/callCopy-rDH9JTFo.d.cts +45 -0
- package/dist/callCopy-rDH9JTFo.d.ts +45 -0
- package/dist/callRoom-7wrE3RP2.d.ts +62 -0
- package/dist/callRoom-B_EqaUzx.d.cts +62 -0
- package/dist/{casesRepository-v6QczS9N.d.ts → casesRepository-BTAecTnF.d.ts} +14 -2
- package/dist/{casesRepository-DwtZVsbj.d.cts → casesRepository-aryld7fJ.d.cts} +14 -2
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.d.cts +12 -11
- package/dist/chat/index.d.ts +12 -11
- package/dist/chat/index.js +1 -1
- package/dist/client/index.cjs +5 -5
- package/dist/client/index.d.cts +14 -12
- package/dist/client/index.d.ts +14 -12
- package/dist/client/index.js +5 -5
- package/dist/{config-C7eb_IMD.d.ts → config-6qS7Sohy.d.cts} +3 -2
- package/dist/{config--Wu1Umhd.d.cts → config-X6BtwDwQ.d.ts} +3 -2
- package/dist/consent/index.cjs +1 -1
- package/dist/consent/index.d.cts +9 -8
- package/dist/consent/index.d.ts +9 -8
- package/dist/consent/index.js +1 -1
- package/dist/{context-CahAEha8.d.ts → context-7f3Nb_xE.d.ts} +9 -8
- package/dist/{context-CL3lyuy1.d.cts → context-CkqPM4Ml.d.cts} +9 -8
- package/dist/{copy-UeUJVk8X.d.cts → copy-Bd__Pw5s.d.cts} +5 -4
- package/dist/{copy-DdVFDL01.d.ts → copy-NgKgOOET.d.ts} +5 -4
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +19 -17
- package/dist/core/index.d.ts +19 -17
- package/dist/core/index.js +9 -9
- package/dist/{depth-DvPwPuT_.d.ts → depth-CYPH92jE.d.ts} +6 -5
- package/dist/{depth-D5HwcvKC.d.cts → depth-CyjaJJ6V.d.cts} +6 -5
- package/dist/{entitlementRepository-B7egEdW6.d.ts → entitlementRepository-DdeFuEKp.d.ts} +4 -4
- package/dist/{entitlementRepository-BpJ7tiwl.d.cts → entitlementRepository-Dl1qRLcJ.d.cts} +4 -4
- package/dist/{identity-C2-08BZW.d.cts → identity-DjqhDm5Z.d.cts} +2 -2
- package/dist/{identity-CEi9GRFZ.d.ts → identity-Dy_L7Yq4.d.ts} +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.js +6 -6
- package/dist/{models-D2EUxPZY.d.cts → models-Bn2z0NNo.d.cts} +1 -1
- package/dist/{models-B-Uh2LTf.d.ts → models-DSqA5Ahs.d.ts} +1 -1
- package/dist/notifications/index.cjs +2 -2
- package/dist/notifications/index.d.cts +5 -4
- package/dist/notifications/index.d.ts +5 -4
- package/dist/notifications/index.js +2 -2
- package/dist/{pets-JVCXgRgR.d.cts → pets-BSG2qbr_.d.cts} +2 -2
- package/dist/{pets-DJv2sj2H.d.ts → pets-D7cZutrX.d.ts} +2 -2
- package/dist/{petsRepository-B_gKbAzJ.d.cts → petsRepository-D1bnxDZg.d.cts} +2 -2
- package/dist/{petsRepository-Bk6GDwLs.d.ts → petsRepository-DhsX3GLw.d.ts} +2 -2
- package/dist/photo/index.cjs +1 -1
- package/dist/photo/index.d.cts +3 -2
- package/dist/photo/index.d.ts +3 -2
- package/dist/photo/index.js +1 -1
- package/dist/{ports-D7YW8qz9.d.ts → ports-C0m1G1fS.d.ts} +13 -6
- package/dist/{ports-BY2ph0_y.d.cts → ports-DNXyyzZF.d.cts} +13 -6
- package/dist/records/depth/index.cjs +2 -2
- package/dist/records/depth/index.d.cts +11 -10
- package/dist/records/depth/index.d.ts +11 -10
- package/dist/records/depth/index.js +2 -2
- package/dist/records/index.cjs +3 -3
- package/dist/records/index.d.cts +25 -14
- package/dist/records/index.d.ts +25 -14
- package/dist/records/index.js +3 -3
- package/dist/{requestFunnel-BjDpqqvm.d.cts → requestFunnel-Bqc1inM9.d.cts} +5 -4
- package/dist/{requestFunnel-DFMGcluw.d.ts → requestFunnel-FvE5yLDD.d.ts} +5 -4
- package/dist/{runtimeTypes-w5KqBMcs.d.ts → runtimeTypes-C0yPBz89.d.ts} +7 -7
- package/dist/{runtimeTypes-gZEJu-da.d.cts → runtimeTypes-RN-VXTFV.d.cts} +7 -7
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +4 -3
- package/dist/server/events/index.d.ts +4 -3
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +1 -1
- package/dist/televet/booking/index.cjs +1 -1
- package/dist/televet/booking/index.d.cts +310 -32
- package/dist/televet/booking/index.d.ts +310 -32
- package/dist/televet/booking/index.js +1 -1
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.d.cts +25 -5
- package/dist/televet/call/index.d.ts +25 -5
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +41 -71
- package/dist/televet/index.d.ts +41 -71
- package/dist/televet/index.js +1 -1
- package/dist/televetGlobal-CEk0_cW9.d.cts +34 -0
- package/dist/televetGlobal-Cs9Wbqsy.d.ts +34 -0
- package/dist/testing/index.cjs +3 -3
- package/dist/testing/index.d.cts +3 -2
- package/dist/testing/index.d.ts +3 -2
- package/dist/testing/index.js +3 -3
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -11
- package/dist/testing/rn/index.d.ts +13 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.cjs +1 -1
- package/dist/testing/web/index.d.cts +14 -13
- package/dist/testing/web/index.d.ts +14 -13
- package/dist/testing/web/index.js +1 -1
- package/dist/{timelineRows-C15jxFFH.d.ts → timelineRows-D4U6A8zE.d.ts} +1 -1
- package/dist/{timelineRows-odO8g9r2.d.cts → timelineRows-DAB5dpjF.d.cts} +1 -1
- package/dist/{branding-CsRdeNwK.d.cts → tokens-CIngRkvt.d.cts} +7 -211
- package/dist/{branding-CsRdeNwK.d.ts → tokens-CIngRkvt.d.ts} +7 -211
- package/dist/{typeStyle-DmoyacDG.d.ts → typeStyle-DHJzDaUo.d.cts} +2 -1
- package/dist/{typeStyle-CKqVYD6L.d.cts → typeStyle-YPS_MXeI.d.ts} +2 -1
- package/dist/{useRecordsDepth-crhBllQK.d.ts → useRecordsDepth--ObtMyjH.d.ts} +24 -5
- package/dist/{useRecordsDepth-C6rjEaLn.d.cts → useRecordsDepth-B35y8bV-.d.cts} +24 -5
- package/dist/{useVetVisit-CjmMa896.d.ts → useVetVisit-BsjoDO-n.d.ts} +21 -6
- package/dist/{useVetVisit-Bc84hWUU.d.cts → useVetVisit-Ds8f1peV.d.cts} +21 -6
- package/dist/video/index.cjs +1 -1
- package/dist/video/index.d.cts +3 -2
- package/dist/video/index.d.ts +3 -2
- package/dist/video/index.js +1 -1
- package/dist/{view-DyitEO0m.d.cts → view-B-Toym_j.d.cts} +5 -4
- package/dist/{view-Bxwxp4xD.d.ts → view-D9JqNQai.d.ts} +5 -4
- package/dist/web/consent/index.cjs +1 -1
- package/dist/web/consent/index.d.cts +9 -8
- package/dist/web/consent/index.d.ts +9 -8
- package/dist/web/consent/index.js +1 -1
- package/dist/web/index.cjs +10 -10
- package/dist/web/index.d.cts +42 -19
- package/dist/web/index.d.ts +42 -19
- package/dist/web/index.js +10 -10
- package/dist/web/notifications/index.cjs +2 -2
- package/dist/web/notifications/index.d.cts +7 -6
- package/dist/web/notifications/index.d.ts +7 -6
- package/dist/web/notifications/index.js +2 -2
- package/dist/web/records/depth/index.cjs +2 -2
- package/dist/web/records/depth/index.d.cts +11 -10
- package/dist/web/records/depth/index.d.ts +11 -10
- package/dist/web/records/depth/index.js +2 -2
- package/dist/web/records/index.cjs +3 -3
- package/dist/web/records/index.d.cts +53 -35
- package/dist/web/records/index.d.ts +53 -35
- package/dist/web/records/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +2 -1
- package/dist/web/televet/booking/index.d.cts +458 -33
- package/dist/web/televet/booking/index.d.ts +458 -33
- package/dist/web/televet/booking/index.js +2 -1
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.d.cts +3 -1
- package/dist/web/televet/call/index.d.ts +3 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.d.cts +40 -74
- package/dist/web/televet/index.d.ts +40 -74
- package/dist/web/televet/index.js +1 -1
- package/package.json +3 -2
- package/dist/callCopy-DoQKG3-L.d.cts +0 -40
- package/dist/callCopy-DoQKG3-L.d.ts +0 -40
package/dist/web/index.d.cts
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurProviderProps } from '../context-
|
|
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-
|
|
2
|
+
import { E as EverfurProviderProps } from '../context-CkqPM4Ml.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-CkqPM4Ml.cjs';
|
|
4
4
|
import { C as CapabilityName, a as CapabilityDecision } from '../resolve-D4Ywz5OS.cjs';
|
|
5
5
|
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve-D4Ywz5OS.cjs';
|
|
6
|
-
import { U as UrgencyDisplayLevel, L as LifecyclePort, E as EverfurChatDraftStore } from '../attachments-
|
|
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-
|
|
6
|
+
import { U as UrgencyDisplayLevel, L as LifecyclePort, E as EverfurChatDraftStore } from '../attachments-CwsR-bPN.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-CwsR-bPN.cjs';
|
|
8
8
|
import { P as PetRef, C as ConversationId } from '../ids-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-B2GAAifq.cjs';
|
|
10
|
-
import { a as ChatCheckinTarget } from '../ports-
|
|
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 ChatStatus, k as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-
|
|
12
|
-
import { P as PetProfileInput } from '../petsRepository-
|
|
13
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-
|
|
14
|
-
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
|
|
15
|
-
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-
|
|
16
|
-
export {
|
|
17
|
-
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports-DNXyyzZF.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 ChatStatus, k as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-DNXyyzZF.cjs';
|
|
12
|
+
import { P as PetProfileInput } from '../petsRepository-D1bnxDZg.cjs';
|
|
13
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-D1bnxDZg.cjs';
|
|
14
|
+
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-6qS7Sohy.cjs';
|
|
15
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-aryld7fJ.cjs';
|
|
16
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError-DmELDpXp.cjs';
|
|
17
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-Nk73Lll8.cjs';
|
|
18
18
|
import { U as UploadTransport, F as FileHandle } from '../ports-BN6RHF9W.cjs';
|
|
19
19
|
export { b as FilePort, a as UploadPolicyWire } from '../ports-BN6RHF9W.cjs';
|
|
20
20
|
import { K as KvPort } from '../cacheEpoch-DknKn3S0.cjs';
|
|
21
21
|
export { I as ImageCachePort } from '../cacheEpoch-DknKn3S0.cjs';
|
|
22
|
-
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../runtimeTypes-
|
|
22
|
+
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../runtimeTypes-RN-VXTFV.cjs';
|
|
23
23
|
export { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.cjs';
|
|
24
|
-
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-
|
|
24
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D6CybiqJ.cjs';
|
|
25
25
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort-Cv31Pz7g.cjs';
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult-ZtH-YV1h.cjs';
|
|
27
|
+
export { M as MintedToken, T as TokenProvider } from '../identity-DjqhDm5Z.cjs';
|
|
28
|
+
export { E as EverfurFaceStyle, f as face, p as previewTheme } from '../typeStyle-DHJzDaUo.cjs';
|
|
29
|
+
import { E as EverfurThemeInput } from '../branding-Xb_wL8N1.cjs';
|
|
30
|
+
export { a as EverfurThemeFontFaceKey, b as EverfurThemeFontUrlsInput, c as EverfurThemeFontsInput, d as EverfurThemeSlotInput, e as EverfurThemeSlotsInput } from '../branding-Xb_wL8N1.cjs';
|
|
30
31
|
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-CSs1wlXT.cjs';
|
|
31
32
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species-BXAIMh7I.cjs';
|
|
32
|
-
import '../
|
|
33
|
+
import { a as EverfurFontWeight, E as EverfurTheme, b as EverfurFontFaceKey } from '../tokens-CIngRkvt.cjs';
|
|
34
|
+
export { e as EverfurColorTokens, f as EverfurFontFamilies, g as EverfurLetterSpacingTokens, h as EverfurLineHeightTokens, i as EverfurMotionDurationTokens, j as EverfurMotionTokens, k as EverfurRadiusTokens, l as EverfurSpaceTokens, m as EverfurSpringToken, n as EverfurTextColorTokens, o as EverfurThemeMeta, p as EverfurThemeSlot, q as EverfurThemeSlotKey, c as EverfurThemeSlotName, d as EverfurThemeSlots, r as EverfurTypeSizeTokens, s as EverfurTypeTokens, t as EverfurWeightTokens, T as THEME_SLOT_KEYS, u as THEME_SLOT_NAMES } from '../tokens-CIngRkvt.cjs';
|
|
35
|
+
import '../requestFunnel-Bqc1inM9.cjs';
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
38
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -156,6 +159,26 @@ interface EverfurChatProps {
|
|
|
156
159
|
* is available there, so it is never offered to someone who could not book.
|
|
157
160
|
*/
|
|
158
161
|
readonly vetUsState?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Where every vet entry inside chat takes the member. Defaults to `'in-app'`: your registered presenter
|
|
164
|
+
* (`registerEverfurTelevetFlow`), else the in-page visit Everfur provides, which this surface mounts itself.
|
|
165
|
+
* `'redirect'` is the explicit opt-in to the hosted Everfur visit in a new tab.
|
|
166
|
+
*/
|
|
167
|
+
readonly vetPrefer?: 'in-app' | 'redirect';
|
|
168
|
+
/**
|
|
169
|
+
* Your opener for a web page chat links to: today, the source page behind a card in an answer's sources
|
|
170
|
+
* deck (`kind` `'citation'`, always an https URL). Absent (the default), a source card is read-only: its
|
|
171
|
+
* title, meta line and excerpt show, and nothing takes the member off your page. Given, the card is a real
|
|
172
|
+
* link and a click calls this instead of navigating, so you can show the page in your own viewer; pass
|
|
173
|
+
* `(url) => { window.open(url, '_blank', 'noopener'); }` for the Everfur web app's new tab. Inside the CDN
|
|
174
|
+
* frame, which cannot carry a function, a source card is always read-only.
|
|
175
|
+
*/
|
|
176
|
+
readonly onOpenUrl?: (url: string, kind: 'citation') => void | Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
|
|
179
|
+
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
180
|
+
*/
|
|
181
|
+
readonly headingLevel?: number;
|
|
159
182
|
}
|
|
160
183
|
/**
|
|
161
184
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurProviderProps } from '../context-
|
|
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-
|
|
2
|
+
import { E as EverfurProviderProps } from '../context-7f3Nb_xE.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-7f3Nb_xE.js';
|
|
4
4
|
import { C as CapabilityName, a as CapabilityDecision } from '../resolve-D4Ywz5OS.js';
|
|
5
5
|
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve-D4Ywz5OS.js';
|
|
6
|
-
import { U as UrgencyDisplayLevel, L as LifecyclePort, E as EverfurChatDraftStore } from '../attachments-
|
|
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-
|
|
6
|
+
import { U as UrgencyDisplayLevel, L as LifecyclePort, E as EverfurChatDraftStore } from '../attachments-CzZ7in24.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-CzZ7in24.js';
|
|
8
8
|
import { P as PetRef, C as ConversationId } from '../ids-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-B2GAAifq.js';
|
|
10
|
-
import { a as ChatCheckinTarget } from '../ports-
|
|
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 ChatStatus, k as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-
|
|
12
|
-
import { P as PetProfileInput } from '../petsRepository-
|
|
13
|
-
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-
|
|
14
|
-
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-
|
|
15
|
-
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-
|
|
16
|
-
export {
|
|
17
|
-
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports-C0m1G1fS.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 ChatStatus, k as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-C0m1G1fS.js';
|
|
12
|
+
import { P as PetProfileInput } from '../petsRepository-DhsX3GLw.js';
|
|
13
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-DhsX3GLw.js';
|
|
14
|
+
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-X6BtwDwQ.js';
|
|
15
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-BTAecTnF.js';
|
|
16
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError-DmELDpXp.js';
|
|
17
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-D3HCBmOE.js';
|
|
18
18
|
import { U as UploadTransport, F as FileHandle } from '../ports-BN6RHF9W.js';
|
|
19
19
|
export { b as FilePort, a as UploadPolicyWire } from '../ports-BN6RHF9W.js';
|
|
20
20
|
import { K as KvPort } from '../cacheEpoch-DknKn3S0.js';
|
|
21
21
|
export { I as ImageCachePort } from '../cacheEpoch-DknKn3S0.js';
|
|
22
|
-
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../runtimeTypes-
|
|
22
|
+
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../runtimeTypes-C0yPBz89.js';
|
|
23
23
|
export { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.js';
|
|
24
|
-
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-
|
|
24
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D22LUVrK.js';
|
|
25
25
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort-Cv31Pz7g.js';
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult-SGvHKsCB.js';
|
|
27
|
+
export { M as MintedToken, T as TokenProvider } from '../identity-Dy_L7Yq4.js';
|
|
28
|
+
export { E as EverfurFaceStyle, f as face, p as previewTheme } from '../typeStyle-YPS_MXeI.js';
|
|
29
|
+
import { E as EverfurThemeInput } from '../branding-xpQ056sM.js';
|
|
30
|
+
export { a as EverfurThemeFontFaceKey, b as EverfurThemeFontUrlsInput, c as EverfurThemeFontsInput, d as EverfurThemeSlotInput, e as EverfurThemeSlotsInput } from '../branding-xpQ056sM.js';
|
|
30
31
|
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-CSs1wlXT.js';
|
|
31
32
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species-BXAIMh7I.js';
|
|
32
|
-
import '../
|
|
33
|
+
import { a as EverfurFontWeight, E as EverfurTheme, b as EverfurFontFaceKey } from '../tokens-CIngRkvt.js';
|
|
34
|
+
export { e as EverfurColorTokens, f as EverfurFontFamilies, g as EverfurLetterSpacingTokens, h as EverfurLineHeightTokens, i as EverfurMotionDurationTokens, j as EverfurMotionTokens, k as EverfurRadiusTokens, l as EverfurSpaceTokens, m as EverfurSpringToken, n as EverfurTextColorTokens, o as EverfurThemeMeta, p as EverfurThemeSlot, q as EverfurThemeSlotKey, c as EverfurThemeSlotName, d as EverfurThemeSlots, r as EverfurTypeSizeTokens, s as EverfurTypeTokens, t as EverfurWeightTokens, T as THEME_SLOT_KEYS, u as THEME_SLOT_NAMES } from '../tokens-CIngRkvt.js';
|
|
35
|
+
import '../requestFunnel-FvE5yLDD.js';
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
38
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -156,6 +159,26 @@ interface EverfurChatProps {
|
|
|
156
159
|
* is available there, so it is never offered to someone who could not book.
|
|
157
160
|
*/
|
|
158
161
|
readonly vetUsState?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Where every vet entry inside chat takes the member. Defaults to `'in-app'`: your registered presenter
|
|
164
|
+
* (`registerEverfurTelevetFlow`), else the in-page visit Everfur provides, which this surface mounts itself.
|
|
165
|
+
* `'redirect'` is the explicit opt-in to the hosted Everfur visit in a new tab.
|
|
166
|
+
*/
|
|
167
|
+
readonly vetPrefer?: 'in-app' | 'redirect';
|
|
168
|
+
/**
|
|
169
|
+
* Your opener for a web page chat links to: today, the source page behind a card in an answer's sources
|
|
170
|
+
* deck (`kind` `'citation'`, always an https URL). Absent (the default), a source card is read-only: its
|
|
171
|
+
* title, meta line and excerpt show, and nothing takes the member off your page. Given, the card is a real
|
|
172
|
+
* link and a click calls this instead of navigating, so you can show the page in your own viewer; pass
|
|
173
|
+
* `(url) => { window.open(url, '_blank', 'noopener'); }` for the Everfur web app's new tab. Inside the CDN
|
|
174
|
+
* frame, which cannot carry a function, a source card is always read-only.
|
|
175
|
+
*/
|
|
176
|
+
readonly onOpenUrl?: (url: string, kind: 'citation') => void | Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
|
|
179
|
+
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
180
|
+
*/
|
|
181
|
+
readonly headingLevel?: number;
|
|
159
182
|
}
|
|
160
183
|
/**
|
|
161
184
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|