@everfur/sdk 0.3.0 → 0.5.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 +251 -4
- package/README.md +9 -3
- package/dist/{Chat-DwAC2vhB.d.ts → Chat-BOX-03ho.d.ts} +17 -3
- package/dist/{Chat-DPUD6dnc.d.cts → Chat-TA-aTcVF.d.cts} +17 -3
- package/dist/{DepthViews-DP0R-DhB.d.cts → DepthViews-CgjX2AJ5.d.ts} +1 -1
- package/dist/{DepthViews-DbFhR4Du.d.cts → DepthViews-Cviea-ri.d.cts} +1 -1
- package/dist/{DepthViews-DNEM96Se.d.ts → DepthViews-D2dRqWRq.d.ts} +1 -1
- package/dist/{DepthViews-D_3hl4xk.d.ts → DepthViews-DSFyaSeL.d.cts} +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-5NeobOCd.d.ts → attachments-C_vtFu2f.d.ts} +7 -5
- package/dist/{attachments-D8T5re7e.d.cts → attachments-DHvnITuE.d.cts} +7 -5
- package/dist/{attachments-Bw3iMQgu.d.ts → attachments-oD5U2fXI.d.ts} +3 -3
- package/dist/{attachments-CQgFrEQ7.d.cts → attachments-pIdGOQfm.d.cts} +3 -3
- package/dist/bookingCopy-CJir9mjb.d.ts +1135 -0
- package/dist/bookingCopy-DfuA13dh.d.cts +1135 -0
- 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-B-Eg8ZJ3.d.cts +63 -0
- package/dist/casesRepository-DHgIYKN9.d.ts +63 -0
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.d.cts +12 -10
- package/dist/chat/index.d.ts +12 -10
- package/dist/chat/index.js +1 -1
- package/dist/client/index.cjs +5 -5
- package/dist/client/index.d.cts +15 -11
- package/dist/client/index.d.ts +15 -11
- package/dist/client/index.js +5 -5
- package/dist/{config-CzTZGlfF.d.cts → config-ClI7QxB0.d.ts} +4 -3
- package/dist/{config-DW60uRb9.d.ts → config-DAFbf721.d.cts} +4 -3
- 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-XvTzq1tE.d.cts → context-B-dUM1Qf.d.cts} +9 -8
- package/dist/{context-DXhqHlPU.d.ts → context-CZbgF_OH.d.ts} +9 -8
- package/dist/{copy-Mjoo91aS.d.ts → copy-CeRH3NXy.d.ts} +5 -4
- package/dist/{copy-bKDNigLb.d.cts → copy-CneuYdrO.d.cts} +5 -4
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +123 -32
- package/dist/core/index.d.ts +123 -32
- package/dist/core/index.js +9 -9
- package/dist/{depth-CErXCU8J.d.cts → depth-B3NFKlF9.d.cts} +38 -6
- package/dist/{depth-DjDcJ6kH.d.ts → depth-DO3Ko_qs.d.ts} +38 -6
- package/dist/entitlementRepository-74kW5mK0.d.ts +43 -0
- package/dist/entitlementRepository-m6zLUmiB.d.cts +43 -0
- package/dist/{identity-DI4eVx9S.d.cts → identity-C7uxGwfT.d.cts} +3 -3
- package/dist/{identity-BMx2SUOM.d.ts → identity-CLAUq-K4.d.ts} +3 -3
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +20 -17
- package/dist/index.d.ts +20 -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/optionalModule-DbJmsq5f.d.cts +21 -0
- package/dist/optionalModule-DbJmsq5f.d.ts +21 -0
- package/dist/{pets-aB8q0JyX.d.cts → pets-BoB5B7kp.d.cts} +2 -2
- package/dist/{pets-CtQdRpWo.d.ts → pets-w4M9d-Dn.d.ts} +2 -2
- package/dist/{casesRepository-ClLv6qMl.d.ts → petsRepository-BjKJ8UsN.d.ts} +3 -49
- package/dist/{casesRepository-DHwtGRYY.d.cts → petsRepository-DZZoEG3r.d.cts} +3 -49
- 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-DMolTRzU.d.ts → ports-BO3bzTJg.d.ts} +14 -17
- package/dist/{ports-DEBzEhbp.d.cts → ports-C2EVK416.d.cts} +14 -17
- 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-CjW7uDuA.d.ts → requestFunnel-D7ipek3e.d.ts} +28 -4
- package/dist/{requestFunnel-L-BQfi0z.d.cts → requestFunnel-Djjwgoe9.d.cts} +28 -4
- package/dist/{runtime-BR9ysG0J.d.ts → runtimeTypes-CTL3yToK.d.ts} +10 -100
- package/dist/{runtime-B8s-_hv8.d.cts → runtimeTypes-D2C9uD85.d.cts} +10 -100
- 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 -0
- package/dist/televet/booking/index.d.cts +566 -0
- package/dist/televet/booking/index.d.ts +566 -0
- package/dist/televet/booking/index.js +1 -0
- package/dist/televet/call/index.cjs +1 -0
- package/dist/televet/call/index.d.cts +161 -0
- package/dist/televet/call/index.d.ts +161 -0
- package/dist/televet/call/index.js +1 -0
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +64 -12
- package/dist/televet/index.d.ts +64 -12
- 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 +4 -4
- package/dist/testing/index.d.cts +4 -3
- package/dist/testing/index.d.ts +4 -3
- package/dist/testing/index.js +4 -4
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -10
- package/dist/testing/rn/index.d.ts +13 -10
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.cjs +1 -1
- package/dist/testing/web/index.d.cts +14 -12
- package/dist/testing/web/index.d.ts +14 -12
- package/dist/testing/web/index.js +1 -1
- package/dist/{timelineRows-DZed6dAM.d.ts → timelineRows-7yFNK_rU.d.ts} +1 -1
- package/dist/{timelineRows-CaohZzXS.d.cts → timelineRows-CzR1T2DR.d.cts} +1 -1
- package/dist/tokens-CIngRkvt.d.cts +362 -0
- package/dist/tokens-CIngRkvt.d.ts +362 -0
- package/dist/typeStyle-DHJzDaUo.d.cts +112 -0
- package/dist/typeStyle-YPS_MXeI.d.ts +112 -0
- package/dist/{useRecordsDepth-BHBzJ76R.d.cts → useRecordsDepth-Bnw36jPr.d.cts} +24 -5
- package/dist/{useRecordsDepth-BU-OhzH6.d.ts → useRecordsDepth-DFF7Faxx.d.ts} +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-DtSPYpKa.d.ts → view-BqcOYFTr.d.ts} +5 -4
- package/dist/{view-C3qPIXGX.d.cts → view-CaJs8WFH.d.cts} +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 +43 -19
- package/dist/web/index.d.ts +43 -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 +123 -14
- package/dist/web/records/index.d.ts +123 -14
- package/dist/web/records/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +2 -0
- package/dist/web/televet/booking/index.d.cts +770 -0
- package/dist/web/televet/booking/index.d.ts +770 -0
- package/dist/web/televet/booking/index.js +2 -0
- package/dist/web/televet/call/index.cjs +1 -0
- package/dist/web/televet/call/index.d.cts +144 -0
- package/dist/web/televet/call/index.d.ts +144 -0
- package/dist/web/televet/call/index.js +1 -0
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.d.cts +61 -9
- package/dist/web/televet/index.d.ts +61 -9
- package/dist/web/televet/index.js +1 -1
- package/package.json +74 -5
- package/televet/booking/package.json +8 -0
- package/televet/call/package.json +8 -0
- package/web/televet/booking/native-blocked.cjs +12 -0
- package/web/televet/booking/package.json +8 -0
- package/web/televet/call/native-blocked.cjs +12 -0
- package/web/televet/call/package.json +8 -0
- package/dist/entitlementRepository-DKdXFgTo.d.cts +0 -698
- package/dist/entitlementRepository-DSbzuyAW.d.ts +0 -698
- package/dist/typeStyle-0TydiZ1w.d.cts +0 -19
- package/dist/typeStyle-CWMsoe6b.d.ts +0 -19
package/dist/web/index.d.cts
CHANGED
|
@@ -1,34 +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-B-dUM1Qf.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-B-dUM1Qf.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-DHvnITuE.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-DHvnITuE.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 '../
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports-C2EVK416.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-C2EVK416.cjs';
|
|
12
|
+
import { P as PetProfileInput } from '../petsRepository-DZZoEG3r.cjs';
|
|
13
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-DZZoEG3r.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-DAFbf721.cjs';
|
|
15
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-B-Eg8ZJ3.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-pIdGOQfm.cjs';
|
|
16
18
|
import { U as UploadTransport, F as FileHandle } from '../ports-BN6RHF9W.cjs';
|
|
17
19
|
export { b as FilePort, a as UploadPolicyWire } from '../ports-BN6RHF9W.cjs';
|
|
18
20
|
import { K as KvPort } from '../cacheEpoch-DknKn3S0.cjs';
|
|
19
21
|
export { I as ImageCachePort } from '../cacheEpoch-DknKn3S0.cjs';
|
|
20
|
-
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../
|
|
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-D2C9uD85.cjs';
|
|
21
23
|
export { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.cjs';
|
|
22
|
-
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-
|
|
24
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D6CybiqJ.cjs';
|
|
23
25
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort-Cv31Pz7g.cjs';
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
|
|
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-C7uxGwfT.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';
|
|
28
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';
|
|
29
32
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species-BXAIMh7I.cjs';
|
|
30
|
-
|
|
31
|
-
|
|
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-Djjwgoe9.cjs';
|
|
32
36
|
|
|
33
37
|
/**
|
|
34
38
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -155,6 +159,26 @@ interface EverfurChatProps {
|
|
|
155
159
|
* is available there, so it is never offered to someone who could not book.
|
|
156
160
|
*/
|
|
157
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;
|
|
158
182
|
}
|
|
159
183
|
/**
|
|
160
184
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|
|
@@ -175,7 +199,7 @@ declare function createWebAttachmentTransport(options?: WebAttachmentTransportOp
|
|
|
175
199
|
/**
|
|
176
200
|
* The chat `FileHandle` for a picked browser `File`: the bytes, the real size, the browser's type (the queue
|
|
177
201
|
* validates it against the accepted image types) and the local name, with a `blob:` preview URL as the `uri`.
|
|
178
|
-
* The caller owns the URL: `
|
|
202
|
+
* The caller owns the URL: `revokeObjectUrl(handle.uri)` when the preview is no longer shown.
|
|
179
203
|
*/
|
|
180
204
|
declare function fileToAttachmentHandle(file: File): FileHandle;
|
|
181
205
|
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,34 +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-CZbgF_OH.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-CZbgF_OH.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-C_vtFu2f.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-C_vtFu2f.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 '../
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports-BO3bzTJg.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-BO3bzTJg.js';
|
|
12
|
+
import { P as PetProfileInput } from '../petsRepository-BjKJ8UsN.js';
|
|
13
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository-BjKJ8UsN.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-ClI7QxB0.js';
|
|
15
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-DHgIYKN9.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-oD5U2fXI.js';
|
|
16
18
|
import { U as UploadTransport, F as FileHandle } from '../ports-BN6RHF9W.js';
|
|
17
19
|
export { b as FilePort, a as UploadPolicyWire } from '../ports-BN6RHF9W.js';
|
|
18
20
|
import { K as KvPort } from '../cacheEpoch-DknKn3S0.js';
|
|
19
21
|
export { I as ImageCachePort } from '../cacheEpoch-DknKn3S0.js';
|
|
20
|
-
export { L as LogLevel, a as LogRecord, b as LogSink, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, S as SecureStorePort } from '../
|
|
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-CTL3yToK.js';
|
|
21
23
|
export { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.js';
|
|
22
|
-
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-
|
|
24
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D22LUVrK.js';
|
|
23
25
|
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort-Cv31Pz7g.js';
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
|
|
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-CLAUq-K4.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';
|
|
28
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';
|
|
29
32
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species-BXAIMh7I.js';
|
|
30
|
-
|
|
31
|
-
|
|
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-D7ipek3e.js';
|
|
32
36
|
|
|
33
37
|
/**
|
|
34
38
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -155,6 +159,26 @@ interface EverfurChatProps {
|
|
|
155
159
|
* is available there, so it is never offered to someone who could not book.
|
|
156
160
|
*/
|
|
157
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;
|
|
158
182
|
}
|
|
159
183
|
/**
|
|
160
184
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|
|
@@ -175,7 +199,7 @@ declare function createWebAttachmentTransport(options?: WebAttachmentTransportOp
|
|
|
175
199
|
/**
|
|
176
200
|
* The chat `FileHandle` for a picked browser `File`: the bytes, the real size, the browser's type (the queue
|
|
177
201
|
* validates it against the accepted image types) and the local name, with a `blob:` preview URL as the `uri`.
|
|
178
|
-
* The caller owns the URL: `
|
|
202
|
+
* The caller owns the URL: `revokeObjectUrl(handle.uri)` when the preview is no longer shown.
|
|
179
203
|
*/
|
|
180
204
|
declare function fileToAttachmentHandle(file: File): FileHandle;
|
|
181
205
|
|