@everfur/sdk 0.17.0 → 0.18.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 +167 -26
- package/care/package.json +8 -0
- package/dist/{Chat.d-uETscjrL.d.ts → Chat.d-Bz4iJ7d2.d.ts} +1 -1
- package/dist/{Chat.d-BYY1U61e.d.cts → Chat.d-C2ddC2u7.d.cts} +1 -1
- package/dist/{DepthViews.d-BsZ73mzL.d.ts → DepthViews.d-C6-Kzs6H.d.ts} +1 -1
- package/dist/{DepthViews.d-D_Qp4glO.d.cts → DepthViews.d-Chjs8H9V.d.cts} +1 -1
- package/dist/{DepthViews.d-DL8MP_kA.d.cts → DepthViews.d-pFL_ZBZT.d.cts} +1 -1
- package/dist/{DepthViews.d-B4SE5GUD.d.ts → DepthViews.d-qXt9OMgz.d.ts} +1 -1
- package/dist/{RecordsPage.d-CYotk2R9.d.cts → RecordsPage.d-Cmny6Q7g.d.cts} +2 -2
- package/dist/{RecordsPage.d-D4gP4leq.d.ts → RecordsPage.d-sNRolVdy.d.ts} +2 -2
- package/dist/animations/index.d.cts +5 -5
- package/dist/animations/index.d.ts +5 -5
- package/dist/{appStateLifecycle.d-DJXdDOJY.d.cts → appStateLifecycle.d-Bt70TQog.d.cts} +7 -7
- package/dist/{appStateLifecycle.d-CXJzBS3c.d.ts → appStateLifecycle.d-Jdg9_PFt.d.ts} +7 -7
- package/dist/{attachments.d-B8kOCb6q.d.cts → attachments.d-BVp3r6Ms.d.cts} +5 -5
- package/dist/{attachments.d-C61URT8r.d.cts → attachments.d-CF4_n-DZ.d.cts} +2 -2
- package/dist/{attachments.d-BTIGzXWD.d.ts → attachments.d-DnSCMjH0.d.ts} +5 -5
- package/dist/{attachments.d-BgatKf7d.d.ts → attachments.d-DsUZpMad.d.ts} +2 -2
- package/dist/{bookingCopy.d-B-bSYgqS.d.cts → bookingCopy.d-BHqE9Ozq.d.cts} +16 -16
- package/dist/{bookingCopy.d-JQW2SLM-.d.ts → bookingCopy.d-Ca4AQGZ7.d.ts} +16 -16
- package/dist/{branding.d-Bbc6p1XY.d.cts → branding.d-BFauULV6.d.cts} +1 -1
- package/dist/{branding.d-y6c0UwhE.d.ts → branding.d-DpNGEdDL.d.ts} +1 -1
- package/dist/care/index.cjs +3 -0
- package/dist/care/index.d.cts +434 -0
- package/dist/care/index.d.ts +434 -0
- package/dist/care/index.js +3 -0
- package/dist/{casesRepository.d-CVG2EXcg.d.cts → casesRepository.d-DFwD2kiS.d.cts} +1 -1
- package/dist/{casesRepository.d-CHEjzT4h.d.ts → casesRepository.d-VzxEyq2N.d.ts} +1 -1
- package/dist/chat/index.cjs +14 -13
- package/dist/chat/index.d.cts +13 -13
- package/dist/chat/index.d.ts +13 -13
- package/dist/chat/index.js +14 -13
- package/dist/chat/lite/index.cjs +14 -13
- package/dist/chat/lite/index.d.cts +13 -13
- package/dist/chat/lite/index.d.ts +13 -13
- package/dist/chat/lite/index.js +14 -13
- package/dist/chunk-Y3Q4GW47.js +31 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +10 -10
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +1 -1
- package/dist/{clinicBatch.d-DdlFy4pD.d.cts → clinicBatch.d-CLqaih2C.d.cts} +2 -2
- package/dist/{clinicBatch.d-oNwH_dbI.d.ts → clinicBatch.d-DXDIL1lC.d.ts} +2 -2
- package/dist/{config.d-Cy_hJBJG.d.cts → config.d-7bCXvOGn.d.cts} +1 -1
- package/dist/{config.d-DopRLD4f.d.ts → config.d-cqyvpzDb.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-C42juGn6.d.cts → context.d-BeRanUXQ.d.cts} +7 -7
- package/dist/{context.d-Ban-Hhqu.d.ts → context.d-DAnmDYGr.d.ts} +7 -7
- package/dist/{copy.d-BTS5l6Ri.d.cts → copy.d-BPqs8swm.d.cts} +2 -2
- package/dist/{copy.d-qdbygul9.d.ts → copy.d-CxFzeuvo.d.ts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +17 -17
- package/dist/core/index.d.ts +17 -17
- package/dist/core/index.js +1 -1
- package/dist/{depth.d-BGkHm2Se.d.ts → depth.d-C6XbnFig.d.ts} +2 -2
- package/dist/{depth.d-BfVrhq9o.d.cts → depth.d-qHdXHDd-.d.cts} +2 -2
- package/dist/{entitlementRepository.d-npT7L_7_.d.cts → entitlementRepository.d-C6uTDswj.d.cts} +4 -4
- package/dist/{entitlementRepository.d-CjwqCyhS.d.ts → entitlementRepository.d-D_cc7g4l.d.ts} +4 -4
- package/dist/{focus.d-S0nq_k1A.d.ts → focus.d-DiWvQR2j.d.ts} +193 -21
- package/dist/{focus.d-DS7Ze1Pp.d.cts → focus.d-HSkMHd-i.d.cts} +193 -21
- package/dist/health-plan/index.cjs +261 -176
- package/dist/health-plan/index.d.cts +627 -19
- package/dist/health-plan/index.d.ts +627 -19
- package/dist/health-plan/index.js +261 -176
- package/dist/{idempotency.d-COIrwuCb.d.ts → idempotency.d-CF5AvlYp.d.ts} +18 -639
- package/dist/{idempotency.d-gfiN4Qnp.d.cts → idempotency.d-DrO2zEZO.d.cts} +18 -639
- package/dist/{identity.d-D76vXtkJ.d.cts → identity.d-84x0dV7-.d.cts} +1 -1
- package/dist/{identity.d-B3mFvvRq.d.ts → identity.d-BXztMVYM.d.ts} +1 -1
- package/dist/index.cjs +12 -11
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +12 -11
- package/dist/{introEvents.d-3FLEemX3.d.cts → introEvents.d-Cwv72ER-.d.cts} +11 -11
- package/dist/{introEvents.d-BYnr37bd.d.ts → introEvents.d-DYU3znJs.d.ts} +11 -11
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/omsErrors.d-VF5tnr20.d.cts +633 -0
- package/dist/omsErrors.d-VF5tnr20.d.ts +633 -0
- package/dist/omsFields.d-BHntKIAH.d.cts +153 -0
- package/dist/omsFields.d-Cvfw8wWU.d.ts +153 -0
- package/dist/{optInView.d-DXRUGDiD.d.cts → optInView.d-4Hl4HbQh.d.cts} +3 -3
- package/dist/{optInView.d-BqFMcum4.d.ts → optInView.d-pq8tUTf6.d.ts} +3 -3
- package/dist/{parse.d-CY22hFxb.d.ts → parse.d-BJhhYfkv.d.ts} +1 -1
- package/dist/{parse.d-rvA_aRSO.d.cts → parse.d-D0v06qxx.d.cts} +1 -1
- package/dist/{pets.d-Cicz-aIO.d.ts → pets.d-1_CHpfgB.d.ts} +1 -1
- package/dist/{pets.d-RoHTZsaV.d.cts → pets.d-C4n-MDC4.d.cts} +1 -1
- package/dist/{petsRepository.d-DtAZf_Ja.d.ts → petsRepository.d-BuomdFjZ.d.ts} +1 -1
- package/dist/{petsRepository.d-BxMyt6Aj.d.cts → petsRepository.d-Dd95xh-M.d.cts} +1 -1
- package/dist/{ports.d-D7cjFUoL.d.cts → ports.d-Bf3tp7Pn.d.cts} +4 -4
- package/dist/{ports.d-DrgKa73F.d.ts → ports.d-ChZHFd-q.d.ts} +4 -4
- package/dist/{presentation.d-vy8kTGfR.d.cts → presentation.d-Bs8xQ4gD.d.cts} +4 -4
- package/dist/{presentation.d-vy8kTGfR.d.ts → presentation.d-Bs8xQ4gD.d.ts} +4 -4
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/index.cjs +11 -10
- package/dist/records/index.d.cts +24 -23
- package/dist/records/index.d.ts +24 -23
- package/dist/records/index.js +11 -10
- package/dist/{requestFunnel.d-BdQf53zs.d.cts → requestFunnel.d-CWI2pD3V.d.cts} +2 -2
- package/dist/{requestFunnel.d-B5y7Py8Z.d.ts → requestFunnel.d-DcQIAs45.d.ts} +2 -2
- package/dist/{resolve.d-CoQWUy1Y.d.cts → resolve.d-BTC3b6FW.d.cts} +1 -1
- package/dist/{resolve.d-CoQWUy1Y.d.ts → resolve.d-BTC3b6FW.d.ts} +1 -1
- package/dist/{runtimeTypes.d-r4Q5vASZ.d.cts → runtimeTypes.d-CIOVzjEK.d.cts} +6 -6
- package/dist/{runtimeTypes.d-D5EDgS3Y.d.ts → runtimeTypes.d-rbuONrIv.d.ts} +6 -6
- package/dist/{screenProps.d-v4a4kzxA.d.cts → screenProps.d-CFZe27oI.d.cts} +1 -1
- package/dist/{screenProps.d-KLCrP43b.d.ts → screenProps.d-yUA4k6yK.d.ts} +1 -1
- package/dist/server/events/index.cjs +2 -2
- package/dist/server/events/index.d.cts +49 -6
- package/dist/server/events/index.d.ts +49 -6
- package/dist/server/events/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +6 -6
- package/dist/shop/index.d.cts +9 -8
- package/dist/shop/index.d.ts +9 -8
- package/dist/shop/index.js +6 -6
- package/dist/shop/orders-v2/index.d.cts +2 -2
- package/dist/shop/orders-v2/index.d.ts +2 -2
- package/dist/tabs/index.cjs +4 -4
- package/dist/tabs/index.d.cts +14 -14
- package/dist/tabs/index.d.ts +14 -14
- package/dist/tabs/index.js +4 -4
- package/dist/{tabsModel.d-B7QMug1u.d.ts → tabsModel.d-D9GWPFrL.d.cts} +1 -1
- package/dist/{tabsModel.d-B7QMug1u.d.cts → tabsModel.d-D9GWPFrL.d.ts} +1 -1
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.d.cts +85 -2
- package/dist/testing/index.d.ts +85 -2
- package/dist/testing/index.js +1 -1
- package/dist/testing/rn/index.d.cts +10 -10
- package/dist/testing/rn/index.d.ts +10 -10
- package/dist/testing/web/index.d.cts +10 -10
- package/dist/testing/web/index.d.ts +10 -10
- package/dist/texting/index.d.cts +6 -6
- package/dist/texting/index.d.ts +6 -6
- package/dist/{threadOptions.d-EFJaNBP1.d.cts → threadOptions.d-CRbFXnlq.d.cts} +66 -11
- package/dist/{threadOptions.d-GPJPprkn.d.cts → threadOptions.d-CW51PyVd.d.cts} +28 -1
- package/dist/{threadOptions.d-GPJPprkn.d.ts → threadOptions.d-CW51PyVd.d.ts} +28 -1
- package/dist/{threadOptions.d-B0folrKm.d.cts → threadOptions.d-U5YBUKM-.d.ts} +2 -2
- package/dist/{threadOptions.d-Crh_LiDe.d.ts → threadOptions.d-aK8FkszA.d.ts} +66 -11
- package/dist/{threadOptions.d-DTsJFkL-.d.ts → threadOptions.d-bEAFkIsC.d.cts} +2 -2
- package/dist/{timelineRows.d-DpSis9HR.d.ts → timelineRows.d-BbCLvjy1.d.ts} +1 -1
- package/dist/{timelineRows.d-6-Cw8xGd.d.cts → timelineRows.d-BvA_BoOe.d.cts} +1 -1
- package/dist/{typeStyle.d-B3Kdtjie.d.ts → typeStyle.d-B9Jo5mDX.d.ts} +1 -1
- package/dist/{typeStyle.d-DmlwyJq-.d.cts → typeStyle.d-Ckdh_S-t.d.cts} +1 -1
- package/dist/types.d-d3RdaeAA.d.cts +317 -0
- package/dist/types.d-d3RdaeAA.d.ts +317 -0
- package/dist/ui/index.cjs +68 -0
- package/dist/ui/index.d.cts +73 -0
- package/dist/ui/index.d.ts +73 -0
- package/dist/ui/index.js +68 -0
- package/dist/useHealthPlanSubscription.d-BN40CVK6.d.cts +756 -0
- package/dist/useHealthPlanSubscription.d-BYehTI7R.d.ts +756 -0
- package/dist/{usePresentation.d-CRG3Gaaq.d.ts → usePresentation.d-BfcyAEFt.d.ts} +66 -7
- package/dist/{usePresentation.d-C8rqY56C.d.cts → usePresentation.d-C39kKhoO.d.cts} +66 -7
- package/dist/{useRecordsDepth.d-DlRda5jp.d.ts → useRecordsDepth.d-B2ewVbRm.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-BYk7m7gF.d.cts → useRecordsDepth.d-CKXAAHXI.d.cts} +1 -1
- package/dist/{view.d-DuIXHr08.d.ts → view.d-BnUDSQXz.d.ts} +3 -3
- package/dist/{view.d-B31M8rCG.d.cts → view.d-CbcJKNJj.d.cts} +1 -1
- package/dist/{view.d-B31M8rCG.d.ts → view.d-CbcJKNJj.d.ts} +1 -1
- package/dist/{view.d-CLpEHKOp.d.cts → view.d-DTNPjiZ1.d.cts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +335 -180
- package/dist/web/health-plan/index.d.cts +576 -19
- package/dist/web/health-plan/index.d.ts +576 -19
- package/dist/web/health-plan/index.js +297 -162
- package/dist/web/health-plan/styles.css +233 -0
- package/dist/web/health-plan/today/index.cjs +7 -0
- package/dist/web/health-plan/today/index.d.cts +15 -0
- package/dist/web/health-plan/today/index.d.ts +15 -0
- package/dist/web/health-plan/today/index.js +7 -0
- package/dist/web/index.cjs +36 -33
- package/dist/web/index.d.cts +60 -37
- package/dist/web/index.d.ts +60 -37
- package/dist/web/index.js +36 -33
- package/dist/web/intro/index.cjs +2 -2
- package/dist/web/intro/index.d.cts +8 -8
- package/dist/web/intro/index.d.ts +8 -8
- package/dist/web/intro/index.js +2 -2
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.cjs +1 -1
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +1 -1
- package/dist/web/records-sheet/index.cjs +13 -12
- package/dist/web/records-sheet/index.d.cts +13 -10
- package/dist/web/records-sheet/index.d.ts +13 -10
- package/dist/web/records-sheet/index.js +13 -12
- package/dist/web/shop/index.cjs +6 -6
- package/dist/web/shop/index.d.cts +8 -7
- package/dist/web/shop/index.d.ts +8 -7
- package/dist/web/shop/index.js +6 -6
- package/dist/web/shop/orders-v2/index.d.cts +1 -1
- package/dist/web/shop/orders-v2/index.d.ts +1 -1
- package/dist/web/televet/booking/index.cjs +1 -1
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/televet/booking/index.js +1 -1
- package/dist/web/texting/index.cjs +1 -1
- package/dist/web/texting/index.d.cts +6 -6
- package/dist/web/texting/index.d.ts +6 -6
- package/dist/web/texting/index.js +1 -1
- package/dist/web/ui/index.cjs +70 -0
- package/dist/web/ui/index.d.cts +78 -0
- package/dist/web/ui/index.d.ts +78 -0
- package/dist/web/ui/index.js +48 -0
- package/dist/web/ui/styles.css +244 -0
- package/package.json +71 -5
- package/ui/package.json +8 -0
- package/web/health-plan/today/native-blocked.cjs +12 -0
- package/web/health-plan/today/package.json +8 -0
- package/web/ui/native-blocked.cjs +12 -0
- package/web/ui/package.json +8 -0
- package/dist/useHealthPlanSubscription.d-DD30EkUR.d.ts +0 -205
- package/dist/useHealthPlanSubscription.d-DWrzUXf4.d.cts +0 -205
|
@@ -12,11 +12,14 @@ import '../../EverfurResult.d-BFH-3s6E.cjs';
|
|
|
12
12
|
import '../../ports.d-BX4f4UsB.cjs';
|
|
13
13
|
import '../../features.d-DrQxTw3-.cjs';
|
|
14
14
|
|
|
15
|
-
/** The unit the sheet shows a weight in first: lb (the default, as
|
|
15
|
+
/** The unit the sheet shows a weight in first: lb (the default, as the designer draws it) or kg. */
|
|
16
16
|
type SheetWeightUnit = 'lb' | 'kg';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Whose colours the sheet paints: `'theme'` (Q4, the default) or `'everfur'`, the design's own, whatever the theme.
|
|
20
|
+
* `'raph'` is the deprecated name of `'everfur'` and reads the same.
|
|
21
|
+
*/
|
|
22
|
+
type RecordsSheetPalette = 'theme' | 'everfur' | 'raph';
|
|
20
23
|
|
|
21
24
|
/** The four font stacks the sheet uses: body, mono (labels, dates), hand (the no-records line), sans (the DNA slot). */
|
|
22
25
|
interface RecordsSheetFonts {
|
|
@@ -26,7 +29,7 @@ interface RecordsSheetFonts {
|
|
|
26
29
|
readonly sans: string;
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* The design's row button (`.efh-btn .efh-btn--ink .efh-btn--row`, his "Speak to vet" on the overdue care row) with his
|
|
30
33
|
* fonts, for the host's own action in `renderUpcomingCareAction` (pass it as that control's `style`).
|
|
31
34
|
*/
|
|
32
35
|
declare const RECORDS_SHEET_ROW_BUTTON_STYLE: CSSProperties;
|
|
@@ -51,7 +54,7 @@ interface EverfurRecordsSheetOptions {
|
|
|
51
54
|
readonly pronoun?: RecordsSheetPronoun;
|
|
52
55
|
/**
|
|
53
56
|
* Whose colours: `'theme'` (the default) keeps the Everfur web app's neutrals and status colours and paints its
|
|
54
|
-
* brand green and accents in your theme's primary and accent (dark mode included); `'
|
|
57
|
+
* brand green and accents in your theme's primary and accent (dark mode included); `'everfur'` keeps all of Everfur's
|
|
55
58
|
* colours.
|
|
56
59
|
*/
|
|
57
60
|
readonly palette?: RecordsSheetPalette;
|
|
@@ -86,21 +89,21 @@ interface EverfurRecordsLabDetailProps {
|
|
|
86
89
|
readonly petName?: string;
|
|
87
90
|
/** The lab value to show (a `markerId` from the records sheet's `onOpenMarker`). */
|
|
88
91
|
readonly markerId: string;
|
|
89
|
-
/** Font stacks over
|
|
92
|
+
/** Font stacks over the design's; match the page's `sheet.fonts`. */
|
|
90
93
|
readonly fonts?: Partial<RecordsSheetFonts>;
|
|
91
|
-
/** Whose colours, as the sheet's `palette`: the theme's (the default) or
|
|
94
|
+
/** Whose colours, as the sheet's `palette`: the theme's (the default) or the design's own. Match the page's sheet. */
|
|
92
95
|
readonly palette?: RecordsSheetPalette;
|
|
93
|
-
/** Your content after the latest reading (
|
|
96
|
+
/** Your content after the latest reading (the design's place for a partner's own result about this value). */
|
|
94
97
|
readonly renderExtra?: (markerId: string) => ReactNode;
|
|
95
98
|
/** Ask about this value in your chat; without it there is no Ask button. */
|
|
96
99
|
readonly onAsk?: RecordsAskHandler;
|
|
97
100
|
/**
|
|
98
|
-
* Draw the Ask control yourself (
|
|
101
|
+
* Draw the Ask control yourself (the design's shell floats his ask-pill over the screen): call `ask` on its press, and
|
|
99
102
|
* label it with `label` ("Ask about this"). Without it the SDK draws the button at the end of the screen.
|
|
100
103
|
*/
|
|
101
104
|
readonly renderAskButton?: (ask: () => void, label: string) => ReactNode;
|
|
102
105
|
}
|
|
103
|
-
/**
|
|
106
|
+
/** The design's lab screen for one value. Renders nothing until the markers read lands, and nothing for an unknown id. */
|
|
104
107
|
declare function EverfurRecordsLabDetail({ petRef, petName, markerId, fonts, palette, renderExtra, onAsk, renderAskButton }: EverfurRecordsLabDetailProps): ReactNode;
|
|
105
108
|
|
|
106
109
|
/**
|
|
@@ -12,11 +12,14 @@ import '../../EverfurResult.d-D_-254ZY.js';
|
|
|
12
12
|
import '../../ports.d-BX4f4UsB.js';
|
|
13
13
|
import '../../features.d-DrQxTw3-.js';
|
|
14
14
|
|
|
15
|
-
/** The unit the sheet shows a weight in first: lb (the default, as
|
|
15
|
+
/** The unit the sheet shows a weight in first: lb (the default, as the designer draws it) or kg. */
|
|
16
16
|
type SheetWeightUnit = 'lb' | 'kg';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Whose colours the sheet paints: `'theme'` (Q4, the default) or `'everfur'`, the design's own, whatever the theme.
|
|
20
|
+
* `'raph'` is the deprecated name of `'everfur'` and reads the same.
|
|
21
|
+
*/
|
|
22
|
+
type RecordsSheetPalette = 'theme' | 'everfur' | 'raph';
|
|
20
23
|
|
|
21
24
|
/** The four font stacks the sheet uses: body, mono (labels, dates), hand (the no-records line), sans (the DNA slot). */
|
|
22
25
|
interface RecordsSheetFonts {
|
|
@@ -26,7 +29,7 @@ interface RecordsSheetFonts {
|
|
|
26
29
|
readonly sans: string;
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* The design's row button (`.efh-btn .efh-btn--ink .efh-btn--row`, his "Speak to vet" on the overdue care row) with his
|
|
30
33
|
* fonts, for the host's own action in `renderUpcomingCareAction` (pass it as that control's `style`).
|
|
31
34
|
*/
|
|
32
35
|
declare const RECORDS_SHEET_ROW_BUTTON_STYLE: CSSProperties;
|
|
@@ -51,7 +54,7 @@ interface EverfurRecordsSheetOptions {
|
|
|
51
54
|
readonly pronoun?: RecordsSheetPronoun;
|
|
52
55
|
/**
|
|
53
56
|
* Whose colours: `'theme'` (the default) keeps the Everfur web app's neutrals and status colours and paints its
|
|
54
|
-
* brand green and accents in your theme's primary and accent (dark mode included); `'
|
|
57
|
+
* brand green and accents in your theme's primary and accent (dark mode included); `'everfur'` keeps all of Everfur's
|
|
55
58
|
* colours.
|
|
56
59
|
*/
|
|
57
60
|
readonly palette?: RecordsSheetPalette;
|
|
@@ -86,21 +89,21 @@ interface EverfurRecordsLabDetailProps {
|
|
|
86
89
|
readonly petName?: string;
|
|
87
90
|
/** The lab value to show (a `markerId` from the records sheet's `onOpenMarker`). */
|
|
88
91
|
readonly markerId: string;
|
|
89
|
-
/** Font stacks over
|
|
92
|
+
/** Font stacks over the design's; match the page's `sheet.fonts`. */
|
|
90
93
|
readonly fonts?: Partial<RecordsSheetFonts>;
|
|
91
|
-
/** Whose colours, as the sheet's `palette`: the theme's (the default) or
|
|
94
|
+
/** Whose colours, as the sheet's `palette`: the theme's (the default) or the design's own. Match the page's sheet. */
|
|
92
95
|
readonly palette?: RecordsSheetPalette;
|
|
93
|
-
/** Your content after the latest reading (
|
|
96
|
+
/** Your content after the latest reading (the design's place for a partner's own result about this value). */
|
|
94
97
|
readonly renderExtra?: (markerId: string) => ReactNode;
|
|
95
98
|
/** Ask about this value in your chat; without it there is no Ask button. */
|
|
96
99
|
readonly onAsk?: RecordsAskHandler;
|
|
97
100
|
/**
|
|
98
|
-
* Draw the Ask control yourself (
|
|
101
|
+
* Draw the Ask control yourself (the design's shell floats his ask-pill over the screen): call `ask` on its press, and
|
|
99
102
|
* label it with `label` ("Ask about this"). Without it the SDK draws the button at the end of the screen.
|
|
100
103
|
*/
|
|
101
104
|
readonly renderAskButton?: (ask: () => void, label: string) => ReactNode;
|
|
102
105
|
}
|
|
103
|
-
/**
|
|
106
|
+
/** The design's lab screen for one value. Renders nothing until the markers read lands, and nothing for an unknown id. */
|
|
104
107
|
declare function EverfurRecordsLabDetail({ petRef, petName, markerId, fonts, palette, renderExtra, onAsk, renderAskButton }: EverfurRecordsLabDetailProps): ReactNode;
|
|
105
108
|
|
|
106
109
|
/**
|