@everfur/sdk 0.12.0 → 0.13.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 +174 -0
- package/README.md +2 -1
- package/dist/{Chat-BOG0SXKV.d.cts → Chat.d-DUNTfzqC.d.ts} +170 -8
- package/dist/{Chat-CIolBgjJ.d.ts → Chat.d-Dts8u_1a.d.cts} +170 -8
- package/dist/{DepthViews-BR6VQ3Ta.d.cts → DepthViews.d-BIp599lz.d.cts} +1 -1
- package/dist/{DepthViews-280t3BcQ.d.ts → DepthViews.d-BMU2jFPw.d.cts} +1 -1
- package/dist/{DepthViews-DlBuFsgN.d.ts → DepthViews.d-Ce2Zhnrb.d.ts} +1 -1
- package/dist/{DepthViews-BTbF_DJY.d.cts → DepthViews.d-CubkMPbU.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-10s3HJCt.d.cts → ErrorPolicyPort.d-68yrE3BE.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-C3nNSS_j.d.ts → ErrorPolicyPort.d-DirW9hgO.d.cts} +1 -1
- package/dist/{EverfurError-DeBqRpQV.d.cts → EverfurError.d-8NHtlgzA.d.cts} +11 -1
- package/dist/{EverfurError-DeBqRpQV.d.ts → EverfurError.d-8NHtlgzA.d.ts} +11 -1
- package/dist/{EverfurResult-ClPTS0P2.d.ts → EverfurResult.d-BFH-3s6E.d.cts} +1 -1
- package/dist/{EverfurResult-COlXj1wq.d.cts → EverfurResult.d-D_-254ZY.d.ts} +1 -1
- package/dist/{IntakeMedia-BH0fYDT2.d.cts → IntakeMedia.d-4a89XrP7.d.ts} +1 -1
- package/dist/{IntakeMedia-B-_vA9ZB.d.cts → IntakeMedia.d-DGxrhgIW.d.ts} +1 -1
- package/dist/{IntakeMedia-CIoTXAWs.d.ts → IntakeMedia.d-DUPR4lVM.d.cts} +1 -1
- package/dist/{IntakeMedia-Bavl7E4Z.d.ts → IntakeMedia.d-JJCUvQu7.d.cts} +1 -1
- package/dist/LifecyclePort.d-Cr1p33a7.d.cts +23 -0
- package/dist/LifecyclePort.d-Cr1p33a7.d.ts +23 -0
- package/dist/{PhotoController-vzY5bfY_.d.ts → PhotoController.d-BzCJOE7e.d.cts} +2 -2
- package/dist/{PhotoController-3l7MT9jA.d.cts → PhotoController.d-D0XiUUOl.d.ts} +2 -2
- package/dist/animations/index.cjs +5 -1
- package/dist/animations/index.d.cts +24 -24
- package/dist/animations/index.d.ts +24 -24
- package/dist/animations/index.js +5 -1
- package/dist/{attachments-CGxvnYu4.d.ts → attachments.d-Bp2qbHxn.d.cts} +22 -26
- package/dist/{attachments-CWNj1ZkM.d.ts → attachments.d-D1yhJjcZ.d.ts} +4 -4
- package/dist/{attachments-waXcJWCp.d.cts → attachments.d-DisnvB9R.d.cts} +4 -4
- package/dist/{attachments-B6h4cJU-.d.cts → attachments.d-Djy9z_0Z.d.ts} +22 -26
- package/dist/{bookingCopy-CjPKeg75.d.ts → bookingCopy.d-BJF6gd1A.d.ts} +24 -9
- package/dist/{bookingCopy-8aEU6ZmR.d.cts → bookingCopy.d-BlBmhAJc.d.cts} +24 -9
- package/dist/{branding-DJf4h12Q.d.ts → branding.d-DI8S400y.d.cts} +9 -2
- package/dist/{branding-BCfwLj0h.d.cts → branding.d-OIGLbQeM.d.ts} +9 -2
- package/dist/{callRoom-BhIdadyV.d.cts → callRoom.d-B1DoYdJe.d.cts} +1 -1
- package/dist/{callRoom-B92eH_ij.d.ts → callRoom.d-Dqm1rUqT.d.ts} +1 -1
- package/dist/{casesRepository-CGdhvzTu.d.cts → casesRepository.d-CT2LTicS.d.cts} +3 -3
- package/dist/{casesRepository-ZG9Sg0e4.d.ts → casesRepository.d-UsWOz9bv.d.ts} +3 -3
- package/dist/chat/index.cjs +132 -57
- package/dist/chat/index.d.cts +18 -16
- package/dist/chat/index.d.ts +18 -16
- package/dist/chat/index.js +133 -58
- package/dist/client/index.cjs +15 -10
- package/dist/client/index.d.cts +19 -18
- package/dist/client/index.d.ts +19 -18
- package/dist/client/index.js +15 -10
- package/dist/{config-B0p6Lygh.d.cts → config.d-BR3DT9ho.d.cts} +3 -3
- package/dist/{config-DmFAZJOx.d.ts → config.d-Dy6igYlH.d.ts} +3 -3
- package/dist/consent/index.cjs +5 -1
- package/dist/consent/index.d.cts +10 -10
- package/dist/consent/index.d.ts +10 -10
- package/dist/consent/index.js +5 -1
- package/dist/{context-BNreNLtL.d.ts → context.d-Cwks0p3C.d.cts} +15 -15
- package/dist/{context-BgS2a57J.d.cts → context.d-QcCgguzA.d.ts} +15 -15
- package/dist/{copy-DLJriGQS.d.ts → copy.d-CiMn2IIt.d.ts} +6 -6
- package/dist/{copy-lWp-Lkv5.d.cts → copy.d-DLJTyRfT.d.cts} +6 -6
- package/dist/core/index.cjs +17 -13
- package/dist/core/index.d.cts +33 -29
- package/dist/core/index.d.ts +33 -29
- package/dist/core/index.js +17 -13
- package/dist/{depth-BYb3RXoA.d.cts → depth.d-CjPGVPDL.d.cts} +9 -115
- package/dist/{depth-COz-sSG5.d.ts → depth.d-OSALbYM7.d.ts} +9 -115
- package/dist/{entitlementRepository-D-Lse67w.d.cts → entitlementRepository.d-CVQa1DA1.d.cts} +10 -5
- package/dist/{entitlementRepository-CrTOP_-o.d.ts → entitlementRepository.d-Cf3LbTwD.d.ts} +10 -5
- package/dist/features.d-fNsGcg0R.d.cts +108 -0
- package/dist/features.d-fNsGcg0R.d.ts +108 -0
- package/dist/focus.d-DMg2ngHI.d.ts +1178 -0
- package/dist/focus.d-az9cqUz3.d.cts +1178 -0
- package/dist/health-plan/index.cjs +370 -0
- package/dist/health-plan/index.d.cts +251 -0
- package/dist/health-plan/index.d.ts +251 -0
- package/dist/health-plan/index.js +370 -0
- package/dist/idempotency.d-D461_DPD.d.cts +910 -0
- package/dist/idempotency.d-WpXx9zQo.d.ts +910 -0
- package/dist/{identity-Cw07BKZp.d.ts → identity.d-60LeJt_s.d.cts} +3 -3
- package/dist/{identity-DFVGYn1o.d.cts → identity.d-DzTijonw.d.ts} +3 -3
- package/dist/index.cjs +141 -66
- package/dist/index.d.cts +31 -29
- package/dist/index.d.ts +31 -29
- package/dist/index.js +142 -67
- package/dist/{models-A4A5S7AG.d.cts → models.d-BagXhafD.d.ts} +8 -3
- package/dist/{models-CnXY5LuO.d.ts → models.d-BnLm3VAA.d.cts} +8 -3
- package/dist/notifications/index.cjs +5 -1
- package/dist/notifications/index.d.cts +9 -9
- package/dist/notifications/index.d.ts +9 -9
- package/dist/notifications/index.js +5 -1
- package/dist/optInView.d-CEyHR6PK.d.cts +325 -0
- package/dist/optInView.d-acKpV8V2.d.ts +325 -0
- package/dist/parse.d-C8CXyS58.d.ts +210 -0
- package/dist/parse.d-tEzufgJX.d.cts +210 -0
- package/dist/{pets-BYALZTSu.d.ts → pets.d-C_53_fzo.d.ts} +3 -3
- package/dist/{pets-CcyPQS-H.d.cts → pets.d-NbJvP_kh.d.cts} +3 -3
- package/dist/{petsRepository-B_Q1gFkE.d.cts → petsRepository.d-BuGHymNx.d.ts} +4 -4
- package/dist/{petsRepository-518QkPxH.d.ts → petsRepository.d-lp1BHRqM.d.cts} +4 -4
- package/dist/photo/index.cjs +6 -2
- package/dist/photo/index.d.cts +9 -9
- package/dist/photo/index.d.ts +9 -9
- package/dist/photo/index.js +6 -2
- package/dist/{ports-BN6RHF9W.d.ts → ports.d-BX4f4UsB.d.cts} +14 -1
- package/dist/{ports-BN6RHF9W.d.cts → ports.d-BX4f4UsB.d.ts} +14 -1
- package/dist/{ports-RuNJmBA-.d.cts → ports.d-CEROoqnA.d.cts} +16 -10
- package/dist/{ports-DmQeMArX.d.ts → ports.d-COIyN624.d.ts} +16 -10
- package/dist/presentation.d-DMbdad7G.d.cts +90 -0
- package/dist/presentation.d-DMbdad7G.d.ts +90 -0
- package/dist/records/depth/index.cjs +11 -7
- package/dist/records/depth/index.d.cts +14 -12
- package/dist/records/depth/index.d.ts +14 -12
- package/dist/records/depth/index.js +11 -7
- package/dist/records/index.cjs +225 -62
- package/dist/records/index.d.cts +159 -20
- package/dist/records/index.d.ts +159 -20
- package/dist/records/index.js +225 -62
- package/dist/recordsAsk.d-C5CGSi3j.d.cts +14 -0
- package/dist/recordsAsk.d-C5CGSi3j.d.ts +14 -0
- package/dist/{requestFunnel-B9fdXMi5.d.ts → requestFunnel.d-CXUMPw1K.d.ts} +5 -5
- package/dist/{requestFunnel-BBjNNwc9.d.cts → requestFunnel.d-DWQQpjFR.d.cts} +5 -5
- package/dist/{resolve-D4Ywz5OS.d.ts → resolve.d-jI8FmBj3.d.cts} +3 -3
- package/dist/{resolve-D4Ywz5OS.d.cts → resolve.d-jI8FmBj3.d.ts} +3 -3
- package/dist/{runtimeTypes-CstDBX8w.d.cts → runtimeTypes.d-4yFNNuYR.d.ts} +20 -13
- package/dist/{runtimeTypes-N_K4BVZB.d.ts → runtimeTypes.d-D6N_fhxx.d.cts} +20 -13
- package/dist/server/events/index.cjs +7 -3
- package/dist/server/events/index.d.cts +51 -9
- package/dist/server/events/index.d.ts +51 -9
- package/dist/server/events/index.js +7 -3
- package/dist/server/index.cjs +12 -6
- package/dist/server/index.d.cts +152 -8
- package/dist/server/index.d.ts +152 -8
- package/dist/server/index.js +12 -6
- package/dist/sheetCopy.d-CAhLOxjc.d.cts +4 -0
- package/dist/sheetCopy.d-CAhLOxjc.d.ts +4 -0
- package/dist/sheetSeam.d-Cviqk89n.d.ts +45 -0
- package/dist/sheetSeam.d-DCS3LW8g.d.cts +45 -0
- package/dist/shop/index.cjs +262 -0
- package/dist/shop/index.d.cts +193 -0
- package/dist/shop/index.d.ts +193 -0
- package/dist/shop/index.js +262 -0
- package/dist/televet/booking/index.cjs +16 -12
- package/dist/televet/booking/index.d.cts +36 -22
- package/dist/televet/booking/index.d.ts +36 -22
- package/dist/televet/booking/index.js +16 -12
- package/dist/televet/call/index.d.cts +5 -5
- package/dist/televet/call/index.d.ts +5 -5
- package/dist/televet/index.cjs +7 -3
- package/dist/televet/index.d.cts +12 -12
- package/dist/televet/index.d.ts +12 -12
- package/dist/televet/index.js +7 -3
- package/dist/{televetGlobal-C5dTUACe.d.cts → televetGlobal.d-CC-DrqkQ.d.ts} +7 -2
- package/dist/{televetGlobal-CnjrfhT4.d.ts → televetGlobal.d-CKwDCbmN.d.cts} +7 -2
- package/dist/testing/index.cjs +7 -3
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +7 -3
- package/dist/testing/rn/index.cjs +5 -1
- package/dist/testing/rn/index.d.cts +23 -22
- package/dist/testing/rn/index.d.ts +23 -22
- package/dist/testing/rn/index.js +5 -1
- package/dist/testing/web/index.cjs +5 -1
- package/dist/testing/web/index.d.cts +23 -22
- package/dist/testing/web/index.d.ts +23 -22
- package/dist/testing/web/index.js +5 -1
- package/dist/texting/index.cjs +158 -0
- package/dist/texting/index.d.cts +36 -0
- package/dist/texting/index.d.ts +36 -0
- package/dist/texting/index.js +158 -0
- package/dist/threadOptions.d-B1pTMmDF.d.cts +260 -0
- package/dist/threadOptions.d-B1pTMmDF.d.ts +260 -0
- package/dist/{timelineRows-7yjHyh8i.d.ts → timelineRows.d-BNxgzYRW.d.cts} +1 -1
- package/dist/{timelineRows-WvnL-Lds.d.cts → timelineRows.d-CU5GvvLk.d.ts} +1 -1
- package/dist/{tokens-DLj8OnLH.d.cts → tokens.d-DarDaV39.d.cts} +10 -2
- package/dist/{tokens-DLj8OnLH.d.ts → tokens.d-DarDaV39.d.ts} +10 -2
- package/dist/{typeStyle-BxVyF71R.d.ts → typeStyle.d-Bl8pzbBy.d.cts} +2 -2
- package/dist/{typeStyle-DJedEu14.d.cts → typeStyle.d-C1HBRAI3.d.ts} +2 -2
- package/dist/{uploadTransport-BM_pnEWj.d.cts → uploadTransport.d-CWL7CdWP.d.cts} +1 -1
- package/dist/{uploadTransport-C6kGP1Kd.d.ts → uploadTransport.d-EGoUl7gX.d.ts} +1 -1
- package/dist/usePresentation.d-D6qsFzBz.d.cts +9 -0
- package/dist/usePresentation.d-DuGQe_Do.d.ts +9 -0
- package/dist/useRecords.d-Cb-36SF5.d.cts +121 -0
- package/dist/useRecords.d-aQTzQZoV.d.ts +121 -0
- package/dist/{useRecordsDepth-Bp6L4M5P.d.ts → useRecordsDepth.d-DFcCfiXm.d.ts} +8 -20
- package/dist/{useRecordsDepth-DPdAK_81.d.cts → useRecordsDepth.d-sAq2Qkhr.d.cts} +8 -20
- package/dist/{useVetVisit-DmWa7lt1.d.ts → useVetVisit.d-BtdwhmgD.d.cts} +15 -4
- package/dist/{useVetVisit-PtBjNwZr.d.cts → useVetVisit.d-DoYQimyt.d.ts} +15 -4
- package/dist/video/index.cjs +6 -2
- package/dist/video/index.d.cts +7 -7
- package/dist/video/index.d.ts +7 -7
- package/dist/video/index.js +6 -2
- package/dist/{view-C6go2uUt.d.ts → view.d-C-SNpDJX.d.ts} +10 -122
- package/dist/{view-CiF_HVFQ.d.cts → view.d-Dps5C8-s.d.cts} +10 -122
- package/dist/web/consent/index.cjs +5 -1
- package/dist/web/consent/index.d.cts +10 -10
- package/dist/web/consent/index.d.ts +10 -10
- package/dist/web/consent/index.js +5 -1
- package/dist/web/health-plan/index.cjs +414 -0
- package/dist/web/health-plan/index.d.cts +335 -0
- package/dist/web/health-plan/index.d.ts +335 -0
- package/dist/web/health-plan/index.js +414 -0
- package/dist/web/index.cjs +150 -82
- package/dist/web/index.d.cts +152 -38
- package/dist/web/index.d.ts +152 -38
- package/dist/web/index.js +150 -82
- package/dist/web/notifications/index.cjs +16 -3
- package/dist/web/notifications/index.d.cts +39 -209
- package/dist/web/notifications/index.d.ts +39 -209
- package/dist/web/notifications/index.js +16 -3
- package/dist/web/records/depth/index.cjs +11 -7
- package/dist/web/records/depth/index.d.cts +14 -12
- package/dist/web/records/depth/index.d.ts +14 -12
- package/dist/web/records/depth/index.js +11 -7
- package/dist/web/records/index.cjs +95 -68
- package/dist/web/records/index.d.cts +66 -21
- package/dist/web/records/index.d.ts +66 -21
- package/dist/web/records/index.js +95 -68
- package/dist/web/records/upload/index.d.cts +2 -2
- package/dist/web/records/upload/index.d.ts +2 -2
- package/dist/web/records-sheet/index.cjs +278 -0
- package/dist/web/records-sheet/index.d.cts +102 -0
- package/dist/web/records-sheet/index.d.ts +102 -0
- package/dist/web/records-sheet/index.js +278 -0
- package/dist/web/shop/index.cjs +301 -0
- package/dist/web/shop/index.d.cts +42 -0
- package/dist/web/shop/index.d.ts +42 -0
- package/dist/web/shop/index.js +301 -0
- package/dist/web/televet/booking/index.cjs +16 -12
- package/dist/web/televet/booking/index.d.cts +37 -23
- package/dist/web/televet/booking/index.d.ts +37 -23
- package/dist/web/televet/booking/index.js +16 -12
- package/dist/web/televet/call/index.d.cts +4 -4
- package/dist/web/televet/call/index.d.ts +4 -4
- package/dist/web/televet/index.cjs +7 -3
- package/dist/web/televet/index.d.cts +12 -12
- package/dist/web/televet/index.d.ts +12 -12
- package/dist/web/televet/index.js +7 -3
- package/dist/web/texting/index.cjs +157 -0
- package/dist/web/texting/index.d.cts +36 -0
- package/dist/web/texting/index.d.ts +36 -0
- package/dist/web/texting/index.js +157 -0
- package/health-plan/package.json +8 -0
- package/package.json +106 -4
- package/shop/package.json +8 -0
- package/texting/package.json +8 -0
- package/web/health-plan/native-blocked.cjs +12 -0
- package/web/health-plan/package.json +8 -0
- package/web/records-sheet/native-blocked.cjs +12 -0
- package/web/records-sheet/package.json +8 -0
- package/web/shop/native-blocked.cjs +12 -0
- package/web/shop/package.json +8 -0
- package/web/texting/native-blocked.cjs +12 -0
- package/web/texting/package.json +8 -0
- /package/dist/{CameraPort-Cv31Pz7g.d.cts → CameraPort.d-Cv31Pz7g.d.cts} +0 -0
- /package/dist/{CameraPort-Cv31Pz7g.d.ts → CameraPort.d-Cv31Pz7g.d.ts} +0 -0
- /package/dist/{TelemetryPort-BDNr00hu.d.cts → TelemetryPort.d-BDNr00hu.d.cts} +0 -0
- /package/dist/{TelemetryPort-BDNr00hu.d.ts → TelemetryPort.d-BDNr00hu.d.ts} +0 -0
- /package/dist/{cacheEpoch-DknKn3S0.d.cts → cacheEpoch.d-DknKn3S0.d.cts} +0 -0
- /package/dist/{cacheEpoch-DknKn3S0.d.ts → cacheEpoch.d-DknKn3S0.d.ts} +0 -0
- /package/dist/{callCopy-Bw6oZT54.d.cts → callCopy.d-Bw6oZT54.d.cts} +0 -0
- /package/dist/{callCopy-Bw6oZT54.d.ts → callCopy.d-Bw6oZT54.d.ts} +0 -0
- /package/dist/{ids-B2GAAifq.d.cts → ids.d-B2GAAifq.d.cts} +0 -0
- /package/dist/{ids-B2GAAifq.d.ts → ids.d-B2GAAifq.d.ts} +0 -0
- /package/dist/{optionalModule-DbJmsq5f.d.cts → optionalModule.d-DbJmsq5f.d.cts} +0 -0
- /package/dist/{optionalModule-DbJmsq5f.d.ts → optionalModule.d-DbJmsq5f.d.ts} +0 -0
- /package/dist/{profile-CSs1wlXT.d.cts → profile.d-CSs1wlXT.d.cts} +0 -0
- /package/dist/{profile-CSs1wlXT.d.ts → profile.d-CSs1wlXT.d.ts} +0 -0
- /package/dist/{projection-CeIUsbSk.d.cts → projection.d-CeIUsbSk.d.cts} +0 -0
- /package/dist/{projection-CeIUsbSk.d.ts → projection.d-CeIUsbSk.d.ts} +0 -0
- /package/dist/{species-BXAIMh7I.d.cts → species.d-BXAIMh7I.d.cts} +0 -0
- /package/dist/{species-BXAIMh7I.d.ts → species.d-BXAIMh7I.d.ts} +0 -0
- /package/dist/{visitIntent-D7_yVp1I.d.cts → visitIntent.d-D7_yVp1I.d.cts} +0 -0
- /package/dist/{visitIntent-D7_yVp1I.d.ts → visitIntent.d-D7_yVp1I.d.ts} +0 -0
package/dist/web/index.d.cts
CHANGED
|
@@ -1,38 +1,62 @@
|
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve-
|
|
6
|
-
import { U as UrgencyDisplayLevel,
|
|
7
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment,
|
|
8
|
-
import { P as PetRef, C as ConversationId } from '../ids-B2GAAifq.cjs';
|
|
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 ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
export { E as
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
import '../
|
|
2
|
+
import { E as EverfurProviderProps } from '../context.d-Cwks0p3C.cjs';
|
|
3
|
+
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-Cwks0p3C.cjs';
|
|
4
|
+
import { a as CapabilityName, C as CapabilityDecision } from '../resolve.d-jI8FmBj3.cjs';
|
|
5
|
+
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-jI8FmBj3.cjs';
|
|
6
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, c as EverfurStarterPrompt } from '../attachments.d-Bp2qbHxn.cjs';
|
|
7
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, d as UseChatAttachmentsOptions, e as UseChatAttachmentsState, f as UseEverfurChatState, g as UseEverfurPetsState, u as useChatAttachments, h as useEverfurChat, i as useEverfurPets } from '../attachments.d-Bp2qbHxn.cjs';
|
|
8
|
+
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.cjs';
|
|
9
|
+
export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.cjs';
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports.d-CEROoqnA.cjs';
|
|
11
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-CEROoqnA.cjs';
|
|
12
|
+
import { i as EverfurPresentationInput } from '../presentation.d-DMbdad7G.cjs';
|
|
13
|
+
export { D as DEFAULT_PRESENTATION, E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-DMbdad7G.cjs';
|
|
14
|
+
import { P as PetProfileInput } from '../petsRepository.d-lp1BHRqM.cjs';
|
|
15
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-lp1BHRqM.cjs';
|
|
16
|
+
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
|
|
17
|
+
import { a as EverfurChatEmptyHeaderContext, b as EverfurChatEmptyState, c as EverfurChatHistoryBar, d as EverfurChatOpeningCard, e as EverfurChatAnswerCards, E as EverfurChatTopCard, f as EverfurChatHistorySheet } from '../threadOptions.d-B1pTMmDF.cjs';
|
|
18
|
+
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-B1pTMmDF.cjs';
|
|
19
|
+
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-BR3DT9ho.cjs';
|
|
20
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-CT2LTicS.cjs';
|
|
21
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.cjs';
|
|
22
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DisnvB9R.cjs';
|
|
23
|
+
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.cjs';
|
|
24
|
+
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.cjs';
|
|
25
|
+
export { u as useEverfurPresentation } from '../usePresentation.d-D6qsFzBz.cjs';
|
|
26
|
+
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
27
|
+
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.cjs';
|
|
28
|
+
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-D6N_fhxx.cjs';
|
|
29
|
+
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.cjs';
|
|
30
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
31
|
+
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.cjs';
|
|
32
|
+
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-BFH-3s6E.cjs';
|
|
33
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-60LeJt_s.cjs';
|
|
34
|
+
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-Bl8pzbBy.cjs';
|
|
35
|
+
import { E as EverfurThemeInput } from '../branding.d-DI8S400y.cjs';
|
|
36
|
+
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-DI8S400y.cjs';
|
|
37
|
+
import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } from '../tokens.d-DarDaV39.cjs';
|
|
38
|
+
export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-DarDaV39.cjs';
|
|
39
|
+
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.cjs';
|
|
40
|
+
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
|
|
41
|
+
import '../requestFunnel.d-DWQQpjFR.cjs';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A host's rule for the follow-ups under a reply (`EverfurChat`'s `followUpPolicy`, opt-in). Without one the
|
|
45
|
+
* surface draws `visibleFollowUps` exactly as before.
|
|
46
|
+
*/
|
|
47
|
+
interface ChatFollowUpPolicy {
|
|
48
|
+
/** How many to draw, 1 to 5. With `fill` the surface draws exactly this many whenever it can. Default 3. */
|
|
49
|
+
readonly count?: number;
|
|
50
|
+
/** Drop a backend prompt this matches (a visit or booking follow-up a host does not offer). */
|
|
51
|
+
readonly exclude?: RegExp | ((prompt: string) => boolean);
|
|
52
|
+
/**
|
|
53
|
+
* The host's own prompts that top the list up to `count` after the backend's (in order, de-duplicated, the
|
|
54
|
+
* `exclude` rule applied too). A function receives the member's last question, so the top-ups can follow it.
|
|
55
|
+
*/
|
|
56
|
+
readonly fill?: readonly string[] | ((lastQuestion: string | null) => readonly string[]);
|
|
57
|
+
/** A visible label over the follow-ups ("Follow-up questions"). Absent, the list keeps only its accessible name. */
|
|
58
|
+
readonly label?: string;
|
|
59
|
+
}
|
|
36
60
|
|
|
37
61
|
/**
|
|
38
62
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -130,6 +154,12 @@ interface EverfurChatProps {
|
|
|
130
154
|
* conversation. Pass `composerSeed` instead when the user should decide whether to send it.
|
|
131
155
|
*/
|
|
132
156
|
readonly initialAsk?: string;
|
|
157
|
+
/**
|
|
158
|
+
* The identity of this `initialAsk`, when the same words can be asked again: your own id for each tap of an
|
|
159
|
+
* "Ask Everfur" pill or each push opened. A new key asks again even with the same words. Absent, the
|
|
160
|
+
* question's own words are the key, so the same question twice in a row is asked once.
|
|
161
|
+
*/
|
|
162
|
+
readonly initialAskKey?: string | number;
|
|
133
163
|
/**
|
|
134
164
|
* Text to put in the composer on arrival. It is never sent for the user: they edit it, send it or clear
|
|
135
165
|
* it. Only an empty composer is seeded, so nothing they typed is ever replaced.
|
|
@@ -139,10 +169,12 @@ interface EverfurChatProps {
|
|
|
139
169
|
* Your app's lifecycle signals. Everfur has no socket and no polling here, so a message the platform
|
|
140
170
|
* writes into the thread (a follow-up check-in, a reminder) is not visible until something re-reads it.
|
|
141
171
|
* Tell Everfur when your page becomes visible again, when connectivity returns and when a push announced a
|
|
142
|
-
* change, and the thread and the unread dot catch up on that signal alone.
|
|
143
|
-
*
|
|
172
|
+
* change, and the thread and the unread dot catch up on that signal alone. Absent, Everfur uses the browser's
|
|
173
|
+
* own signals (the page becoming visible again, the window `online` event, `navigator.onLine`; see
|
|
174
|
+
* `createBrowserLifecycle`). Pass your own port to add a push announcement, or `null` to turn the re-read off,
|
|
175
|
+
* in which case chat refreshes only when the user does something.
|
|
144
176
|
*/
|
|
145
|
-
readonly lifecycle?: LifecyclePort;
|
|
177
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
146
178
|
/**
|
|
147
179
|
* Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
|
|
148
180
|
* screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
|
|
@@ -180,6 +212,71 @@ interface EverfurChatProps {
|
|
|
180
212
|
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
181
213
|
*/
|
|
182
214
|
readonly headingLevel?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Whether the surface draws its own header bar (the history control, your logo, the pet and its switcher, a new
|
|
217
|
+
* chat and the vet entry). Default `true`. Pass `false` when your own screen already has a header over chat: the
|
|
218
|
+
* thread, the urgency banner and the composer are unchanged, and on a wide box the history rail still shows.
|
|
219
|
+
* Without the header there is no control that opens the history drawer on a narrow box.
|
|
220
|
+
*/
|
|
221
|
+
readonly header?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Your own starter chips for the empty thread, in place of Everfur's four (the vet-prep chip included). Each chip
|
|
224
|
+
* shows its `label`, sends its `prompt` (the label when absent) as the member's next message, and is filled with
|
|
225
|
+
* its `tint` (any CSS colour) under its `ink`; without a `tint` it takes your theme's highlight. A chip with a blank
|
|
226
|
+
* label is dropped and at most 8 are drawn. Absent or empty, Everfur's own chips. The words are yours.
|
|
227
|
+
*/
|
|
228
|
+
readonly starterPrompts?: readonly EverfurStarterPrompt[];
|
|
229
|
+
/**
|
|
230
|
+
* Your own content for the top of the empty thread, above its title and starter chips (for example a card of the
|
|
231
|
+
* pet's top findings). Rendered only while the thread is empty; if it throws, the empty state draws as usual.
|
|
232
|
+
* Absent, the empty state is Everfur's own. It receives `{ ask }`: a row of your card can ask its question in
|
|
233
|
+
* this thread directly, with no screen in between.
|
|
234
|
+
*/
|
|
235
|
+
readonly renderEmptyHeader?: (context: EverfurChatEmptyHeaderContext) => ReactNode;
|
|
236
|
+
/**
|
|
237
|
+
* The empty thread's title and layout your way: your title words in place of Everfur's, and classes for the
|
|
238
|
+
* block, the title, the chip list and each chip (a class drops that element's inline layout). Absent, as before.
|
|
239
|
+
*/
|
|
240
|
+
readonly emptyState?: EverfurChatEmptyState;
|
|
241
|
+
/**
|
|
242
|
+
* Your rule for the follow-ups under a reply: how many (exactly, with `fill`), which backend prompts to drop
|
|
243
|
+
* (`exclude`, for example visit or booking prompts you do not offer) and your own prompts to top up with.
|
|
244
|
+
* Absent, at most three of the backend's, as before.
|
|
245
|
+
*/
|
|
246
|
+
readonly followUpPolicy?: ChatFollowUpPolicy;
|
|
247
|
+
/**
|
|
248
|
+
* A history bar over the thread ("Chats" with the thread count, and "New chat"), for a surface with
|
|
249
|
+
* `header={false}`. The words are yours. Absent, no bar.
|
|
250
|
+
*/
|
|
251
|
+
readonly historyBar?: EverfurChatHistoryBar;
|
|
252
|
+
/**
|
|
253
|
+
* The card a notification-opened thread starts with: drawn in place of the first bubble while that bubble is
|
|
254
|
+
* `initialAsk`. Pair it with `initialAsk` (the notification's question). Absent, the bubble draws as usual.
|
|
255
|
+
*/
|
|
256
|
+
readonly initialAskCard?: EverfurChatOpeningCard;
|
|
257
|
+
/**
|
|
258
|
+
* Opens the pet's Health Plan (your tab or screen), called with the pet. The focus card the chat draws from the pet's
|
|
259
|
+
* Health Plan page (when you pass no `topCard`) uses it for its "See her Health Plan" button; without it that card
|
|
260
|
+
* has no plan button. Also RESERVED for a Health Plan card in an answer, which the chat stream does not carry yet.
|
|
261
|
+
*/
|
|
262
|
+
readonly onOpenHealthPlan?: (petRef: PetRef | null) => void;
|
|
263
|
+
/**
|
|
264
|
+
* The layout settings (PRESENTATION-CONTRACT): answer style, history style, top card, follow-ups, composer mic and
|
|
265
|
+
* upload, disclaimer placement. Each also comes from your console (render_hints.branding.presentation); a field you
|
|
266
|
+
* set here wins over the console unless the console locks it. Absent everywhere, the chat draws exactly as before.
|
|
267
|
+
* `dictation`, `attachments` and `followUpPolicy` count as your explicit values for their fields; `topCard`,
|
|
268
|
+
* `answerCards` and `historySheet` are content only and never switch a layout on by themselves.
|
|
269
|
+
*/
|
|
270
|
+
readonly presentation?: EverfurPresentationInput;
|
|
271
|
+
/** The cards answer style's content and classes (used while `chatAnswerStyle` resolves to `cards`). */
|
|
272
|
+
readonly answerCards?: EverfurChatAnswerCards;
|
|
273
|
+
/**
|
|
274
|
+
* The top card of the empty thread's content (drawn while `chatTopCard` resolves to `focus`, the default). Absent,
|
|
275
|
+
* the chat reads the pet's Health Plan page and draws its focus when there is one; yours always wins.
|
|
276
|
+
*/
|
|
277
|
+
readonly topCard?: EverfurChatTopCard;
|
|
278
|
+
/** The history bottom sheet's words and classes (used while `chatHistoryStyle` resolves to `sheet`). */
|
|
279
|
+
readonly historySheet?: EverfurChatHistorySheet;
|
|
183
280
|
}
|
|
184
281
|
/**
|
|
185
282
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|
|
@@ -188,6 +285,23 @@ interface EverfurChatProps {
|
|
|
188
285
|
*/
|
|
189
286
|
declare function EverfurChat(props: EverfurChatProps): ReactNode;
|
|
190
287
|
|
|
288
|
+
/** True while the host shows Everfur's attribution itself (an `EverfurPoweredBy` is mounted). */
|
|
289
|
+
declare function useHostPoweredBy(): boolean;
|
|
290
|
+
interface EverfurPoweredByProps {
|
|
291
|
+
/** Your lockup (for example a mark, "powered by" and the everfur wordmark). Absent, Everfur's own words. */
|
|
292
|
+
readonly children?: ReactNode;
|
|
293
|
+
readonly className?: string;
|
|
294
|
+
readonly style?: CSSProperties;
|
|
295
|
+
}
|
|
296
|
+
/** Everfur's attribution where your design puts it; the chat then leaves out its own line. */
|
|
297
|
+
declare function EverfurPoweredBy({ children, className, style }: EverfurPoweredByProps): ReactNode;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The browser's lifecycle signals for EverfurChat: `visibilitychange` from hidden to visible is the foreground
|
|
301
|
+
* edge, the window `online` event is connectivity returning, and `navigator.onLine === false` reads as offline.
|
|
302
|
+
*/
|
|
303
|
+
declare function createBrowserLifecycle(): LifecyclePort;
|
|
304
|
+
|
|
191
305
|
interface WebAttachmentTransportOptions {
|
|
192
306
|
/** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
|
|
193
307
|
readonly fetch?: typeof fetch;
|
|
@@ -246,4 +360,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
246
360
|
*/
|
|
247
361
|
declare function createLocalStorageKv(): KvPort;
|
|
248
362
|
|
|
249
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ConversationId, EverfurChat, EverfurChatDraftStore, type EverfurChatProps, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurProvider, EverfurProviderProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss };
|
|
363
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurStarterPrompt, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useHostPoweredBy };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,38 +1,62 @@
|
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve-
|
|
6
|
-
import { U as UrgencyDisplayLevel,
|
|
7
|
-
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment,
|
|
8
|
-
import { P as PetRef, C as ConversationId } from '../ids-B2GAAifq.js';
|
|
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 ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports-
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
export { E as
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
import '../
|
|
2
|
+
import { E as EverfurProviderProps } from '../context.d-QcCgguzA.js';
|
|
3
|
+
export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-QcCgguzA.js';
|
|
4
|
+
import { a as CapabilityName, C as CapabilityDecision } from '../resolve.d-jI8FmBj3.js';
|
|
5
|
+
export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-jI8FmBj3.js';
|
|
6
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, c as EverfurStarterPrompt } from '../attachments.d-Djy9z_0Z.js';
|
|
7
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, d as UseChatAttachmentsOptions, e as UseChatAttachmentsState, f as UseEverfurChatState, g as UseEverfurPetsState, u as useChatAttachments, h as useEverfurChat, i as useEverfurPets } from '../attachments.d-Djy9z_0Z.js';
|
|
8
|
+
import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.js';
|
|
9
|
+
export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.js';
|
|
10
|
+
import { a as ChatCheckinTarget } from '../ports.d-COIyN624.js';
|
|
11
|
+
export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-COIyN624.js';
|
|
12
|
+
import { i as EverfurPresentationInput } from '../presentation.d-DMbdad7G.js';
|
|
13
|
+
export { D as DEFAULT_PRESENTATION, E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-DMbdad7G.js';
|
|
14
|
+
import { P as PetProfileInput } from '../petsRepository.d-BuGHymNx.js';
|
|
15
|
+
export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-BuGHymNx.js';
|
|
16
|
+
import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
|
|
17
|
+
import { a as EverfurChatEmptyHeaderContext, b as EverfurChatEmptyState, c as EverfurChatHistoryBar, d as EverfurChatOpeningCard, e as EverfurChatAnswerCards, E as EverfurChatTopCard, f as EverfurChatHistorySheet } from '../threadOptions.d-B1pTMmDF.js';
|
|
18
|
+
export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-B1pTMmDF.js';
|
|
19
|
+
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-Dy6igYlH.js';
|
|
20
|
+
export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-UsWOz9bv.js';
|
|
21
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.js';
|
|
22
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-D1yhJjcZ.js';
|
|
23
|
+
import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.js';
|
|
24
|
+
export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.js';
|
|
25
|
+
export { u as useEverfurPresentation } from '../usePresentation.d-DuGQe_Do.js';
|
|
26
|
+
import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
27
|
+
export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.js';
|
|
28
|
+
export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-4yFNNuYR.js';
|
|
29
|
+
export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.js';
|
|
30
|
+
export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
|
|
31
|
+
export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.js';
|
|
32
|
+
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-D_-254ZY.js';
|
|
33
|
+
export { M as MintedToken, T as TokenProvider } from '../identity.d-DzTijonw.js';
|
|
34
|
+
export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-C1HBRAI3.js';
|
|
35
|
+
import { E as EverfurThemeInput } from '../branding.d-OIGLbQeM.js';
|
|
36
|
+
export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-OIGLbQeM.js';
|
|
37
|
+
import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } from '../tokens.d-DarDaV39.js';
|
|
38
|
+
export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-DarDaV39.js';
|
|
39
|
+
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.js';
|
|
40
|
+
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
|
|
41
|
+
import '../requestFunnel.d-CXUMPw1K.js';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A host's rule for the follow-ups under a reply (`EverfurChat`'s `followUpPolicy`, opt-in). Without one the
|
|
45
|
+
* surface draws `visibleFollowUps` exactly as before.
|
|
46
|
+
*/
|
|
47
|
+
interface ChatFollowUpPolicy {
|
|
48
|
+
/** How many to draw, 1 to 5. With `fill` the surface draws exactly this many whenever it can. Default 3. */
|
|
49
|
+
readonly count?: number;
|
|
50
|
+
/** Drop a backend prompt this matches (a visit or booking follow-up a host does not offer). */
|
|
51
|
+
readonly exclude?: RegExp | ((prompt: string) => boolean);
|
|
52
|
+
/**
|
|
53
|
+
* The host's own prompts that top the list up to `count` after the backend's (in order, de-duplicated, the
|
|
54
|
+
* `exclude` rule applied too). A function receives the member's last question, so the top-ups can follow it.
|
|
55
|
+
*/
|
|
56
|
+
readonly fill?: readonly string[] | ((lastQuestion: string | null) => readonly string[]);
|
|
57
|
+
/** A visible label over the follow-ups ("Follow-up questions"). Absent, the list keeps only its accessible name. */
|
|
58
|
+
readonly label?: string;
|
|
59
|
+
}
|
|
36
60
|
|
|
37
61
|
/**
|
|
38
62
|
* Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
|
|
@@ -130,6 +154,12 @@ interface EverfurChatProps {
|
|
|
130
154
|
* conversation. Pass `composerSeed` instead when the user should decide whether to send it.
|
|
131
155
|
*/
|
|
132
156
|
readonly initialAsk?: string;
|
|
157
|
+
/**
|
|
158
|
+
* The identity of this `initialAsk`, when the same words can be asked again: your own id for each tap of an
|
|
159
|
+
* "Ask Everfur" pill or each push opened. A new key asks again even with the same words. Absent, the
|
|
160
|
+
* question's own words are the key, so the same question twice in a row is asked once.
|
|
161
|
+
*/
|
|
162
|
+
readonly initialAskKey?: string | number;
|
|
133
163
|
/**
|
|
134
164
|
* Text to put in the composer on arrival. It is never sent for the user: they edit it, send it or clear
|
|
135
165
|
* it. Only an empty composer is seeded, so nothing they typed is ever replaced.
|
|
@@ -139,10 +169,12 @@ interface EverfurChatProps {
|
|
|
139
169
|
* Your app's lifecycle signals. Everfur has no socket and no polling here, so a message the platform
|
|
140
170
|
* writes into the thread (a follow-up check-in, a reminder) is not visible until something re-reads it.
|
|
141
171
|
* Tell Everfur when your page becomes visible again, when connectivity returns and when a push announced a
|
|
142
|
-
* change, and the thread and the unread dot catch up on that signal alone.
|
|
143
|
-
*
|
|
172
|
+
* change, and the thread and the unread dot catch up on that signal alone. Absent, Everfur uses the browser's
|
|
173
|
+
* own signals (the page becoming visible again, the window `online` event, `navigator.onLine`; see
|
|
174
|
+
* `createBrowserLifecycle`). Pass your own port to add a push announcement, or `null` to turn the re-read off,
|
|
175
|
+
* in which case chat refreshes only when the user does something.
|
|
144
176
|
*/
|
|
145
|
-
readonly lifecycle?: LifecyclePort;
|
|
177
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
146
178
|
/**
|
|
147
179
|
* Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
|
|
148
180
|
* screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
|
|
@@ -180,6 +212,71 @@ interface EverfurChatProps {
|
|
|
180
212
|
* 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
|
|
181
213
|
*/
|
|
182
214
|
readonly headingLevel?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Whether the surface draws its own header bar (the history control, your logo, the pet and its switcher, a new
|
|
217
|
+
* chat and the vet entry). Default `true`. Pass `false` when your own screen already has a header over chat: the
|
|
218
|
+
* thread, the urgency banner and the composer are unchanged, and on a wide box the history rail still shows.
|
|
219
|
+
* Without the header there is no control that opens the history drawer on a narrow box.
|
|
220
|
+
*/
|
|
221
|
+
readonly header?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Your own starter chips for the empty thread, in place of Everfur's four (the vet-prep chip included). Each chip
|
|
224
|
+
* shows its `label`, sends its `prompt` (the label when absent) as the member's next message, and is filled with
|
|
225
|
+
* its `tint` (any CSS colour) under its `ink`; without a `tint` it takes your theme's highlight. A chip with a blank
|
|
226
|
+
* label is dropped and at most 8 are drawn. Absent or empty, Everfur's own chips. The words are yours.
|
|
227
|
+
*/
|
|
228
|
+
readonly starterPrompts?: readonly EverfurStarterPrompt[];
|
|
229
|
+
/**
|
|
230
|
+
* Your own content for the top of the empty thread, above its title and starter chips (for example a card of the
|
|
231
|
+
* pet's top findings). Rendered only while the thread is empty; if it throws, the empty state draws as usual.
|
|
232
|
+
* Absent, the empty state is Everfur's own. It receives `{ ask }`: a row of your card can ask its question in
|
|
233
|
+
* this thread directly, with no screen in between.
|
|
234
|
+
*/
|
|
235
|
+
readonly renderEmptyHeader?: (context: EverfurChatEmptyHeaderContext) => ReactNode;
|
|
236
|
+
/**
|
|
237
|
+
* The empty thread's title and layout your way: your title words in place of Everfur's, and classes for the
|
|
238
|
+
* block, the title, the chip list and each chip (a class drops that element's inline layout). Absent, as before.
|
|
239
|
+
*/
|
|
240
|
+
readonly emptyState?: EverfurChatEmptyState;
|
|
241
|
+
/**
|
|
242
|
+
* Your rule for the follow-ups under a reply: how many (exactly, with `fill`), which backend prompts to drop
|
|
243
|
+
* (`exclude`, for example visit or booking prompts you do not offer) and your own prompts to top up with.
|
|
244
|
+
* Absent, at most three of the backend's, as before.
|
|
245
|
+
*/
|
|
246
|
+
readonly followUpPolicy?: ChatFollowUpPolicy;
|
|
247
|
+
/**
|
|
248
|
+
* A history bar over the thread ("Chats" with the thread count, and "New chat"), for a surface with
|
|
249
|
+
* `header={false}`. The words are yours. Absent, no bar.
|
|
250
|
+
*/
|
|
251
|
+
readonly historyBar?: EverfurChatHistoryBar;
|
|
252
|
+
/**
|
|
253
|
+
* The card a notification-opened thread starts with: drawn in place of the first bubble while that bubble is
|
|
254
|
+
* `initialAsk`. Pair it with `initialAsk` (the notification's question). Absent, the bubble draws as usual.
|
|
255
|
+
*/
|
|
256
|
+
readonly initialAskCard?: EverfurChatOpeningCard;
|
|
257
|
+
/**
|
|
258
|
+
* Opens the pet's Health Plan (your tab or screen), called with the pet. The focus card the chat draws from the pet's
|
|
259
|
+
* Health Plan page (when you pass no `topCard`) uses it for its "See her Health Plan" button; without it that card
|
|
260
|
+
* has no plan button. Also RESERVED for a Health Plan card in an answer, which the chat stream does not carry yet.
|
|
261
|
+
*/
|
|
262
|
+
readonly onOpenHealthPlan?: (petRef: PetRef | null) => void;
|
|
263
|
+
/**
|
|
264
|
+
* The layout settings (PRESENTATION-CONTRACT): answer style, history style, top card, follow-ups, composer mic and
|
|
265
|
+
* upload, disclaimer placement. Each also comes from your console (render_hints.branding.presentation); a field you
|
|
266
|
+
* set here wins over the console unless the console locks it. Absent everywhere, the chat draws exactly as before.
|
|
267
|
+
* `dictation`, `attachments` and `followUpPolicy` count as your explicit values for their fields; `topCard`,
|
|
268
|
+
* `answerCards` and `historySheet` are content only and never switch a layout on by themselves.
|
|
269
|
+
*/
|
|
270
|
+
readonly presentation?: EverfurPresentationInput;
|
|
271
|
+
/** The cards answer style's content and classes (used while `chatAnswerStyle` resolves to `cards`). */
|
|
272
|
+
readonly answerCards?: EverfurChatAnswerCards;
|
|
273
|
+
/**
|
|
274
|
+
* The top card of the empty thread's content (drawn while `chatTopCard` resolves to `focus`, the default). Absent,
|
|
275
|
+
* the chat reads the pet's Health Plan page and draws its focus when there is one; yours always wins.
|
|
276
|
+
*/
|
|
277
|
+
readonly topCard?: EverfurChatTopCard;
|
|
278
|
+
/** The history bottom sheet's words and classes (used while `chatHistoryStyle` resolves to `sheet`). */
|
|
279
|
+
readonly historySheet?: EverfurChatHistorySheet;
|
|
183
280
|
}
|
|
184
281
|
/**
|
|
185
282
|
* Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState; otherwise
|
|
@@ -188,6 +285,23 @@ interface EverfurChatProps {
|
|
|
188
285
|
*/
|
|
189
286
|
declare function EverfurChat(props: EverfurChatProps): ReactNode;
|
|
190
287
|
|
|
288
|
+
/** True while the host shows Everfur's attribution itself (an `EverfurPoweredBy` is mounted). */
|
|
289
|
+
declare function useHostPoweredBy(): boolean;
|
|
290
|
+
interface EverfurPoweredByProps {
|
|
291
|
+
/** Your lockup (for example a mark, "powered by" and the everfur wordmark). Absent, Everfur's own words. */
|
|
292
|
+
readonly children?: ReactNode;
|
|
293
|
+
readonly className?: string;
|
|
294
|
+
readonly style?: CSSProperties;
|
|
295
|
+
}
|
|
296
|
+
/** Everfur's attribution where your design puts it; the chat then leaves out its own line. */
|
|
297
|
+
declare function EverfurPoweredBy({ children, className, style }: EverfurPoweredByProps): ReactNode;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The browser's lifecycle signals for EverfurChat: `visibilitychange` from hidden to visible is the foreground
|
|
301
|
+
* edge, the window `online` event is connectivity returning, and `navigator.onLine === false` reads as offline.
|
|
302
|
+
*/
|
|
303
|
+
declare function createBrowserLifecycle(): LifecyclePort;
|
|
304
|
+
|
|
191
305
|
interface WebAttachmentTransportOptions {
|
|
192
306
|
/** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
|
|
193
307
|
readonly fetch?: typeof fetch;
|
|
@@ -246,4 +360,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
|
|
|
246
360
|
*/
|
|
247
361
|
declare function createLocalStorageKv(): KvPort;
|
|
248
362
|
|
|
249
|
-
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ConversationId, EverfurChat, EverfurChatDraftStore, type EverfurChatProps, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurProvider, EverfurProviderProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss };
|
|
363
|
+
export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, type ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurStarterPrompt, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useHostPoweredBy };
|