@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everfur/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Embed Everfur veterinary chat, health records, and pet-state surfaces in your React Native app.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"author": "Everfur Health, Inc.",
|
|
15
15
|
"type": "module",
|
|
16
|
-
"sideEffects":
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"*.css"
|
|
18
|
+
],
|
|
17
19
|
"files": [
|
|
18
20
|
"CHANGELOG.md",
|
|
19
21
|
"LICENSE.md",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"!dist/**/*.map",
|
|
24
26
|
"animations",
|
|
25
27
|
"chat",
|
|
28
|
+
"care",
|
|
26
29
|
"consent",
|
|
27
30
|
"client",
|
|
28
31
|
"health-plan",
|
|
@@ -36,6 +39,7 @@
|
|
|
36
39
|
"televet",
|
|
37
40
|
"testing",
|
|
38
41
|
"texting",
|
|
42
|
+
"ui",
|
|
39
43
|
"video",
|
|
40
44
|
"web"
|
|
41
45
|
],
|
|
@@ -51,6 +55,9 @@
|
|
|
51
55
|
"client": [
|
|
52
56
|
"./dist/client/index.d.ts"
|
|
53
57
|
],
|
|
58
|
+
"care": [
|
|
59
|
+
"./dist/care/index.d.ts"
|
|
60
|
+
],
|
|
54
61
|
"server": [
|
|
55
62
|
"./dist/server/index.d.ts"
|
|
56
63
|
],
|
|
@@ -144,6 +151,12 @@
|
|
|
144
151
|
"web/texting": [
|
|
145
152
|
"./dist/web/texting/index.d.ts"
|
|
146
153
|
],
|
|
154
|
+
"ui": [
|
|
155
|
+
"./dist/ui/index.d.ts"
|
|
156
|
+
],
|
|
157
|
+
"web/ui": [
|
|
158
|
+
"./dist/web/ui/index.d.ts"
|
|
159
|
+
],
|
|
147
160
|
"health-plan": [
|
|
148
161
|
"./dist/health-plan/index.d.ts"
|
|
149
162
|
],
|
|
@@ -153,6 +166,9 @@
|
|
|
153
166
|
"web/health-plan": [
|
|
154
167
|
"./dist/web/health-plan/index.d.ts"
|
|
155
168
|
],
|
|
169
|
+
"web/health-plan/today": [
|
|
170
|
+
"./dist/web/health-plan/today/index.d.ts"
|
|
171
|
+
],
|
|
156
172
|
"web/shop": [
|
|
157
173
|
"./dist/web/shop/index.d.ts"
|
|
158
174
|
],
|
|
@@ -190,6 +206,17 @@
|
|
|
190
206
|
"default": "./dist/client/index.cjs"
|
|
191
207
|
}
|
|
192
208
|
},
|
|
209
|
+
"./care": {
|
|
210
|
+
"react-native": "./dist/care/index.js",
|
|
211
|
+
"import": {
|
|
212
|
+
"types": "./dist/care/index.d.ts",
|
|
213
|
+
"default": "./dist/care/index.js"
|
|
214
|
+
},
|
|
215
|
+
"require": {
|
|
216
|
+
"types": "./dist/care/index.d.cts",
|
|
217
|
+
"default": "./dist/care/index.cjs"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
193
220
|
"./server": {
|
|
194
221
|
"react-native": null,
|
|
195
222
|
"node": {
|
|
@@ -452,6 +479,29 @@
|
|
|
452
479
|
"default": "./dist/web/texting/index.cjs"
|
|
453
480
|
}
|
|
454
481
|
},
|
|
482
|
+
"./ui": {
|
|
483
|
+
"react-native": "./dist/ui/index.js",
|
|
484
|
+
"import": {
|
|
485
|
+
"types": "./dist/ui/index.d.ts",
|
|
486
|
+
"default": "./dist/ui/index.js"
|
|
487
|
+
},
|
|
488
|
+
"require": {
|
|
489
|
+
"types": "./dist/ui/index.d.cts",
|
|
490
|
+
"default": "./dist/ui/index.cjs"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"./web/ui": {
|
|
494
|
+
"react-native": null,
|
|
495
|
+
"import": {
|
|
496
|
+
"types": "./dist/web/ui/index.d.ts",
|
|
497
|
+
"default": "./dist/web/ui/index.js"
|
|
498
|
+
},
|
|
499
|
+
"require": {
|
|
500
|
+
"types": "./dist/web/ui/index.d.cts",
|
|
501
|
+
"default": "./dist/web/ui/index.cjs"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"./web/ui/styles.css": "./dist/web/ui/styles.css",
|
|
455
505
|
"./health-plan": {
|
|
456
506
|
"react-native": "./dist/health-plan/index.js",
|
|
457
507
|
"import": {
|
|
@@ -485,6 +535,18 @@
|
|
|
485
535
|
"default": "./dist/web/health-plan/index.cjs"
|
|
486
536
|
}
|
|
487
537
|
},
|
|
538
|
+
"./web/health-plan/styles.css": "./dist/web/health-plan/styles.css",
|
|
539
|
+
"./web/health-plan/today": {
|
|
540
|
+
"react-native": null,
|
|
541
|
+
"import": {
|
|
542
|
+
"types": "./dist/web/health-plan/today/index.d.ts",
|
|
543
|
+
"default": "./dist/web/health-plan/today/index.js"
|
|
544
|
+
},
|
|
545
|
+
"require": {
|
|
546
|
+
"types": "./dist/web/health-plan/today/index.d.cts",
|
|
547
|
+
"default": "./dist/web/health-plan/today/index.cjs"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
488
550
|
"./shop": {
|
|
489
551
|
"react-native": "./dist/shop/index.js",
|
|
490
552
|
"import": {
|
|
@@ -631,7 +693,7 @@
|
|
|
631
693
|
"./package.json": "./package.json"
|
|
632
694
|
},
|
|
633
695
|
"scripts": {
|
|
634
|
-
"build": "tsup && npm run build:dts && node scripts/strip-sourcemap-pragma.mjs && node scripts/add-use-client.mjs && node scripts/generate-subpath-shims.mjs && node scripts/package-license.mjs --dir dist",
|
|
696
|
+
"build": "rm -rf dist && tsup && node scripts/build-ds-styles.mjs && npm run build:dts && node scripts/strip-sourcemap-pragma.mjs && node scripts/add-use-client.mjs && node scripts/generate-subpath-shims.mjs && node scripts/package-license.mjs --dir dist",
|
|
635
697
|
"build:dts": "rm -rf temp/dts && tsc -p tsconfig.dts.json && tsup --config tsup.dts.config.ts",
|
|
636
698
|
"build:cdn": "rm -rf dist-cdn && tsup --config tsup.cdn.config.ts && node scripts/strip-sourcemap-pragma.mjs --dir dist-cdn && node scripts/build-public-docs.mjs && node scripts/package-license.mjs --dir dist-cdn",
|
|
637
699
|
"clean": "rm -rf dist dist-cdn lib temp && node scripts/generate-subpath-shims.mjs --clean",
|
|
@@ -647,7 +709,7 @@
|
|
|
647
709
|
"contract:check": "npm run contract:types:check && npm run contract:errors:check",
|
|
648
710
|
"api:check": "node scripts/api-extractor-all.mjs",
|
|
649
711
|
"api:update": "node scripts/api-extractor-all.mjs --update",
|
|
650
|
-
"attw": "attw
|
|
712
|
+
"attw": "node scripts/attw-pack.mjs",
|
|
651
713
|
"verify:pack": "node scripts/verify-packed-install.mjs",
|
|
652
714
|
"license:check": "node scripts/package-license.mjs --dir dist --check",
|
|
653
715
|
"license:check:cdn": "node scripts/package-license.mjs --dir dist-cdn --check",
|
|
@@ -670,7 +732,7 @@
|
|
|
670
732
|
"react-native-safe-area-context": ">=5",
|
|
671
733
|
"react-native-vision-camera": ">=4",
|
|
672
734
|
"@daily-co/react-native-daily-js": ">=0.87",
|
|
673
|
-
"@daily-co/react-native-webrtc": ">=124.0.6-daily.1",
|
|
735
|
+
"@daily-co/react-native-webrtc": ">=124.0.6-daily.1 || >=155.0.1-daily.1",
|
|
674
736
|
"expo-speech-recognition": ">=1"
|
|
675
737
|
},
|
|
676
738
|
"peerDependenciesMeta": {
|
|
@@ -702,6 +764,10 @@
|
|
|
702
764
|
"devDependencies": {
|
|
703
765
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
704
766
|
"@eslint/js": "^9.9.0",
|
|
767
|
+
"@everfur-health/tokens": "file:vendor/everfur-health/everfur-health-tokens-0.0.0-e8c23eb.tgz",
|
|
768
|
+
"@everfur-health/ui-core": "file:vendor/everfur-health/everfur-health-ui-core-0.0.0-e8c23eb.tgz",
|
|
769
|
+
"@everfur-health/ui-native": "file:vendor/everfur-health/everfur-health-ui-native-0.0.0-e8c23eb.tgz",
|
|
770
|
+
"@everfur-health/ui-web": "file:vendor/everfur-health/everfur-health-ui-web-0.0.0-e8c23eb.tgz",
|
|
705
771
|
"@microsoft/api-extractor": "^7.47.0",
|
|
706
772
|
"@testing-library/react": "^14.3.1",
|
|
707
773
|
"@types/jsdom": "^21.1.7",
|
package/ui/package.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
|
|
3
|
+
"react-native": "../dist/ui/index.js",
|
|
4
|
+
"module": "../dist/ui/index.js",
|
|
5
|
+
"main": "../dist/ui/index.cjs",
|
|
6
|
+
"types": "../dist/ui/index.d.ts",
|
|
7
|
+
"sideEffects": false
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// GENERATED by scripts/subpath-shims.mjs from the package.json "exports" map. Do not edit by hand; run `npm run build`.
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* "@everfur/sdk/web" is the WEB host layer: it renders with react-dom. It must never enter a React Native
|
|
6
|
+
* bundle, where there is no DOM to render into. Import "@everfur/sdk" (React Native) or "@everfur/sdk/chat"
|
|
7
|
+
* in a native app; import "@everfur/sdk/web" only from a web build.
|
|
8
|
+
*/
|
|
9
|
+
throw new Error(
|
|
10
|
+
'@everfur/sdk/web is the web (react-dom) entry point and cannot be bundled into a React Native app. ' +
|
|
11
|
+
'Import @everfur/sdk in a React Native app instead.',
|
|
12
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
|
|
3
|
+
"react-native": "./native-blocked.cjs",
|
|
4
|
+
"module": "../../../dist/web/health-plan/today/index.js",
|
|
5
|
+
"main": "../../../dist/web/health-plan/today/index.cjs",
|
|
6
|
+
"types": "../../../dist/web/health-plan/today/index.d.ts",
|
|
7
|
+
"sideEffects": false
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// GENERATED by scripts/subpath-shims.mjs from the package.json "exports" map. Do not edit by hand; run `npm run build`.
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* "@everfur/sdk/web" is the WEB host layer: it renders with react-dom. It must never enter a React Native
|
|
6
|
+
* bundle, where there is no DOM to render into. Import "@everfur/sdk" (React Native) or "@everfur/sdk/chat"
|
|
7
|
+
* in a native app; import "@everfur/sdk/web" only from a web build.
|
|
8
|
+
*/
|
|
9
|
+
throw new Error(
|
|
10
|
+
'@everfur/sdk/web is the web (react-dom) entry point and cannot be bundled into a React Native app. ' +
|
|
11
|
+
'Import @everfur/sdk in a React Native app instead.',
|
|
12
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
|
|
3
|
+
"react-native": "./native-blocked.cjs",
|
|
4
|
+
"module": "../../dist/web/ui/index.js",
|
|
5
|
+
"main": "../../dist/web/ui/index.cjs",
|
|
6
|
+
"types": "../../dist/web/ui/index.d.ts",
|
|
7
|
+
"sideEffects": false
|
|
8
|
+
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { n as HealthPlanPagePet, b as HealthPlanFocusDesign, H as HealthPlanPage, q as HealthPlan, j as HealthPlanPageRepository, P as HealthPlanRepository, i as HealthPlanSubscriptionRepository, S as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-S0nq_k1A.js';
|
|
4
|
-
import { a as EverfurChatTopCard } from './threadOptions.d-GPJPprkn.js';
|
|
5
|
-
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
6
|
-
import { g as HealthPlanCart } from './usePresentation.d-CRG3Gaaq.js';
|
|
7
|
-
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
8
|
-
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
|
|
9
|
-
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
10
|
-
|
|
11
|
-
/** The page's focus, as the copy functions receive it. */
|
|
12
|
-
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
13
|
-
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "Georgia's"), or null. */
|
|
14
|
-
interface HealthPlanTopCardPet {
|
|
15
|
-
readonly pet: HealthPlanPagePet;
|
|
16
|
-
readonly possessive: string | null;
|
|
17
|
-
}
|
|
18
|
-
/** The card's own words. Defaults: Raph's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
19
|
-
interface HealthPlanTopCardCopy {
|
|
20
|
-
/** The plan button ("See her Health Plan"); null draws none. */
|
|
21
|
-
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
22
|
-
/** The question link ("What does it mean?"). */
|
|
23
|
-
readonly ask: string;
|
|
24
|
-
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
25
|
-
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
26
|
-
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
27
|
-
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
28
|
-
}
|
|
29
|
-
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
30
|
-
/** The pet facts the possessive reads: its name and sex (a plan page's pet, or the focus words' pet). */
|
|
31
|
-
interface HealthPlanPossessivePet {
|
|
32
|
-
readonly name?: string | null;
|
|
33
|
-
readonly sex?: string | null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* "her" for a female, "his" for a male, "Georgia's" for a named pet of unknown sex, else null. The sex is read
|
|
37
|
-
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
38
|
-
*/
|
|
39
|
-
declare function healthPlanPossessive(pet: HealthPlanPossessivePet): string | null;
|
|
40
|
-
interface HealthPlanTopCardOptions {
|
|
41
|
-
/** Opens the pet's Health Plan (your tab or screen). Absent, the card has no plan button. */
|
|
42
|
-
readonly onOpenPlan?: (() => void) | undefined;
|
|
43
|
-
readonly copy?: Partial<HealthPlanTopCardCopy>;
|
|
44
|
-
/** Draw the close icon your way. */
|
|
45
|
-
readonly renderIcon?: (icon: 'close') => ReactNode;
|
|
46
|
-
}
|
|
47
|
-
/** The top card for a page, or undefined when the page has no focus to show. Pure. */
|
|
48
|
-
declare function healthPlanTopCard(page: HealthPlanPage | null, options?: HealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
49
|
-
|
|
50
|
-
/** What a docked bar needs, as the plan page last published it. */
|
|
51
|
-
interface HealthPlanCartDock {
|
|
52
|
-
/** The member's cart: the items in the plan, their count and subtotal. */
|
|
53
|
-
readonly cart: HealthPlanCart;
|
|
54
|
-
/** True while an add or remove is in flight (draw the checkout control disabled). */
|
|
55
|
-
readonly busy: boolean;
|
|
56
|
-
/** The pet whose plan the page shows, or null. */
|
|
57
|
-
readonly petRef: PetRef | null;
|
|
58
|
-
/** The plan the page shows, or null before it loads. */
|
|
59
|
-
readonly plan: HealthPlan | null;
|
|
60
|
-
/** Adds (`true`) or removes (`false`) one product, as the page's own control does. Resolves true when it took. */
|
|
61
|
-
readonly setInPlan: (productId: string, inPlan: boolean) => Promise<boolean>;
|
|
62
|
-
/** Adds every product not yet in the plan. Resolves true when every add took. */
|
|
63
|
-
readonly addAll: () => Promise<boolean>;
|
|
64
|
-
}
|
|
65
|
-
interface HealthPlanCartScopeProps {
|
|
66
|
-
readonly children?: ReactNode;
|
|
67
|
-
}
|
|
68
|
-
/** The scope a plan page with `cartBarPlacement: 'none'` publishes its cart to. Wrap the page and your bar in it. */
|
|
69
|
-
declare function HealthPlanCartScope({ children }: HealthPlanCartScopeProps): ReactNode;
|
|
70
|
-
/** The cart the plan page in the nearest `HealthPlanCartScope` published, or null (no scope, or no page yet). */
|
|
71
|
-
declare function useHealthPlanCartDock(): HealthPlanCartDock | null;
|
|
72
|
-
|
|
73
|
-
type HealthPlanPagePhase = 'idle' | 'loading' | 'failed' | 'ready';
|
|
74
|
-
interface HealthPlanPageOptions {
|
|
75
|
-
readonly petRef: PetRef | null;
|
|
76
|
-
/** False skips the read. Defaults to true. */
|
|
77
|
-
readonly enabled?: boolean;
|
|
78
|
-
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
79
|
-
readonly repository?: HealthPlanPageRepository;
|
|
80
|
-
/** Coming back to the foreground re-reads a page shown for more than a minute, quietly. Absent, it does not. */
|
|
81
|
-
readonly lifecycle?: LifecyclePort | null;
|
|
82
|
-
/** Change it to re-read the page now, quietly. */
|
|
83
|
-
readonly refreshKey?: string | number;
|
|
84
|
-
}
|
|
85
|
-
interface HealthPlanPageState {
|
|
86
|
-
readonly phase: HealthPlanPagePhase;
|
|
87
|
-
/** The answer for `petRef`, or null until it lands. */
|
|
88
|
-
readonly page: HealthPlanPage | null;
|
|
89
|
-
readonly error: EverfurError | null;
|
|
90
|
-
/** True when the read answered not found: this pet has no plan page. `phase` is then `ready` and `page` null. */
|
|
91
|
-
readonly missing: boolean;
|
|
92
|
-
refresh(): Promise<void>;
|
|
93
|
-
}
|
|
94
|
-
/** The plan page repository bound to the runtime under your provider. */
|
|
95
|
-
declare function useHealthPlanPageRepository(): HealthPlanPageRepository;
|
|
96
|
-
/** One pet's Health Plan page. Re-read when the pet changes. */
|
|
97
|
-
declare function useHealthPlanPage(options: HealthPlanPageOptions): HealthPlanPageState;
|
|
98
|
-
|
|
99
|
-
type HealthPlanPhase = 'idle' | 'loading' | 'failed' | 'ready';
|
|
100
|
-
interface HealthPlanSnapshot {
|
|
101
|
-
readonly phase: HealthPlanPhase;
|
|
102
|
-
readonly petRef: PetRef | null;
|
|
103
|
-
readonly plan: HealthPlan | null;
|
|
104
|
-
/** Product ids whose add or remove is in flight. */
|
|
105
|
-
readonly pending: readonly string[];
|
|
106
|
-
/** The last refused write per product id. */
|
|
107
|
-
readonly itemErrors: Readonly<Record<string, EverfurError>>;
|
|
108
|
-
/** The refused read, or null. */
|
|
109
|
-
readonly error: EverfurError | null;
|
|
110
|
-
}
|
|
111
|
-
declare class HealthPlanController {
|
|
112
|
-
private readonly repository;
|
|
113
|
-
private snapshot;
|
|
114
|
-
private readonly listeners;
|
|
115
|
-
private generation;
|
|
116
|
-
/** Bumped by every add or remove, so a quiet re-read that started before one never overwrites it. */
|
|
117
|
-
private writes;
|
|
118
|
-
/** Bumped by every quiet re-read, so an older one that settles after a newer one never overwrites it. */
|
|
119
|
-
private revalidations;
|
|
120
|
-
/** A host refresh asked for while a write was in flight: the quiet re-read runs once the last write settles. */
|
|
121
|
-
private refreshAfterWrites;
|
|
122
|
-
private disposed;
|
|
123
|
-
constructor(repository: HealthPlanRepository);
|
|
124
|
-
readonly subscribe: (listener: () => void) => (() => void);
|
|
125
|
-
readonly getSnapshot: () => HealthPlanSnapshot;
|
|
126
|
-
private set;
|
|
127
|
-
/** Read the plan for `petRef` (null clears to `idle`). A different pet drops the old plan before the read lands. */
|
|
128
|
-
load(petRef: PetRef | null): Promise<void>;
|
|
129
|
-
/**
|
|
130
|
-
* Re-read the shown plan WITHOUT a loading state (a member coming back to a page that sat open, a host's
|
|
131
|
-
* `refreshKey`). Only from `ready` with nothing in flight; the answer replaces the plan only while the same pet is
|
|
132
|
-
* shown and no add, remove or full read happened meanwhile. A refused re-read keeps the plan on screen.
|
|
133
|
-
*/
|
|
134
|
-
revalidate(): Promise<void>;
|
|
135
|
-
/**
|
|
136
|
-
* The host says the plan changed (its `refreshKey`), so the request is never dropped: from `ready` a quiet
|
|
137
|
-
* re-read, held until the last add or remove in flight settles; from `failed` or `loading` a full read for the
|
|
138
|
-
* shown pet (there is no plan to keep on screen, and a read in flight may predate the change).
|
|
139
|
-
*/
|
|
140
|
-
refresh(): Promise<void>;
|
|
141
|
-
private settleWrite;
|
|
142
|
-
/** Put an item in the plan (`true`) or take it out (`false`). Settles true when the server accepted it. */
|
|
143
|
-
setInPlan(productId: string, inPlan: boolean): Promise<boolean>;
|
|
144
|
-
dispose(): void;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/** Who said her records landed: the plan's own records read, or the host (a notification, the intro). */
|
|
148
|
-
type HealthPlanRecordsLandedSource = 'plan' | 'host';
|
|
149
|
-
/** Hears `notifyHealthPlanRecordsLanded`: which pet, and who said it. */
|
|
150
|
-
type HealthPlanRecordsLandedListener = (petRef: PetRef, source: HealthPlanRecordsLandedSource) => void;
|
|
151
|
-
/** Hears `setHealthPlanNoVet`: which pet, and whether it now has no vet. */
|
|
152
|
-
type HealthPlanNoVetListener = (petRef: PetRef, noVet: boolean) => void;
|
|
153
|
-
/**
|
|
154
|
-
* Says her records landed. The Health Plan reads her records again and, once they hold what her three blanks need,
|
|
155
|
-
* fills them with one yellow flash and the "Her records are in" toast. The plan calls it with `'plan'` when its own
|
|
156
|
-
* read sees them land; a host calls it (default `'host'`) from a notification or the intro.
|
|
157
|
-
*/
|
|
158
|
-
declare function notifyHealthPlanRecordsLanded(petRef: PetRef, source?: HealthPlanRecordsLandedSource): void;
|
|
159
|
-
/** Listens for `notifyHealthPlanRecordsLanded`. Returns the unsubscribe. */
|
|
160
|
-
declare function onHealthPlanRecordsLanded(listener: HealthPlanRecordsLandedListener): () => void;
|
|
161
|
-
/** Records that the member has no vet for this pet yet (true), or has one again (false). */
|
|
162
|
-
declare function setHealthPlanNoVet(petRef: PetRef, noVet: boolean): void;
|
|
163
|
-
/** True when `setHealthPlanNoVet(petRef, true)` was said for this pet on this page. */
|
|
164
|
-
declare function healthPlanNoVet(petRef: PetRef): boolean;
|
|
165
|
-
/** Listens for `setHealthPlanNoVet`. Returns the unsubscribe. */
|
|
166
|
-
declare function onHealthPlanNoVet(listener: HealthPlanNoVetListener): () => void;
|
|
167
|
-
|
|
168
|
-
type HealthPlanSubscriptionPhase = 'idle' | 'loading' | 'unavailable' | 'failed' | 'ready';
|
|
169
|
-
interface HealthPlanSubscriptionOptions {
|
|
170
|
-
readonly petRef: PetRef | null;
|
|
171
|
-
readonly productId: string | null;
|
|
172
|
-
/** False skips every read (a host that has not opted in). Defaults to true. */
|
|
173
|
-
readonly enabled?: boolean;
|
|
174
|
-
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
175
|
-
readonly repository?: HealthPlanSubscriptionRepository;
|
|
176
|
-
/** Coming back to the foreground re-reads a quote shown for more than a minute, quietly. Absent, it does not. */
|
|
177
|
-
readonly lifecycle?: LifecyclePort | null;
|
|
178
|
-
/** Change it to re-read the quote now, quietly (for example after your checkout completed). */
|
|
179
|
-
readonly refreshKey?: string | number;
|
|
180
|
-
}
|
|
181
|
-
interface HealthPlanSubscriptionState {
|
|
182
|
-
readonly phase: HealthPlanSubscriptionPhase;
|
|
183
|
-
readonly quote: HealthPlanSubscriptionQuote | null;
|
|
184
|
-
/** The member's row for this pet and product (active or cancelled), or null. */
|
|
185
|
-
readonly subscription: HealthPlanSubscription | null;
|
|
186
|
-
/** A write is in flight. */
|
|
187
|
-
readonly busy: boolean;
|
|
188
|
-
/** The last refused read or write, or null. */
|
|
189
|
-
readonly error: EverfurError | null;
|
|
190
|
-
/** Each write settles the server's new state, or the refusal (a write before the quote is ready is refused). */
|
|
191
|
-
subscribe(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
192
|
-
changeInterval(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
193
|
-
skip(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
194
|
-
cancel(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
195
|
-
restart(intervalDays?: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
196
|
-
/** Buy one box (no renewal), then re-read the quote: a one-box order spends the first-box offer. */
|
|
197
|
-
buyOneBox(tapKey?: string): Promise<EverfurResult<HealthPlanOneBoxOrder>>;
|
|
198
|
-
refresh(): Promise<void>;
|
|
199
|
-
}
|
|
200
|
-
/** The subscription repository bound to the runtime under your provider. */
|
|
201
|
-
declare function useHealthPlanSubscriptionRepository(): HealthPlanSubscriptionRepository;
|
|
202
|
-
/** One product's subscription for one pet. `EverfurHealthPlan` with `layout="focus"` paints it. */
|
|
203
|
-
declare function useHealthPlanSubscription(options: HealthPlanSubscriptionOptions): HealthPlanSubscriptionState;
|
|
204
|
-
|
|
205
|
-
export { useHealthPlanSubscription as A, useHealthPlanSubscriptionRepository as B, type HealthPlanTopCardOptions as C, type HealthPlanPossessivePet as D, healthPlanPossessive as E, healthPlanTopCard as F, type HealthPlanTopCardCopy as H, HEALTH_PLAN_TOP_CARD_COPY as a, type HealthPlanCartDock as b, HealthPlanCartScope as c, type HealthPlanCartScopeProps as d, HealthPlanController as e, type HealthPlanNoVetListener as f, type HealthPlanPageOptions as g, type HealthPlanPagePhase as h, type HealthPlanPageState as i, type HealthPlanPhase as j, type HealthPlanRecordsLandedListener as k, type HealthPlanRecordsLandedSource as l, type HealthPlanSnapshot as m, type HealthPlanSubscriptionOptions as n, type HealthPlanSubscriptionPhase as o, type HealthPlanSubscriptionState as p, type HealthPlanTopCardFocus as q, type HealthPlanTopCardPet as r, healthPlanNoVet as s, notifyHealthPlanRecordsLanded as t, onHealthPlanNoVet as u, onHealthPlanRecordsLanded as v, setHealthPlanNoVet as w, useHealthPlanCartDock as x, useHealthPlanPage as y, useHealthPlanPageRepository as z };
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { n as HealthPlanPagePet, b as HealthPlanFocusDesign, H as HealthPlanPage, q as HealthPlan, j as HealthPlanPageRepository, P as HealthPlanRepository, i as HealthPlanSubscriptionRepository, S as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-DS7Ze1Pp.cjs';
|
|
4
|
-
import { a as EverfurChatTopCard } from './threadOptions.d-GPJPprkn.cjs';
|
|
5
|
-
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
6
|
-
import { g as HealthPlanCart } from './usePresentation.d-C8rqY56C.cjs';
|
|
7
|
-
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
8
|
-
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
9
|
-
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
10
|
-
|
|
11
|
-
/** The page's focus, as the copy functions receive it. */
|
|
12
|
-
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
13
|
-
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "Georgia's"), or null. */
|
|
14
|
-
interface HealthPlanTopCardPet {
|
|
15
|
-
readonly pet: HealthPlanPagePet;
|
|
16
|
-
readonly possessive: string | null;
|
|
17
|
-
}
|
|
18
|
-
/** The card's own words. Defaults: Raph's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
19
|
-
interface HealthPlanTopCardCopy {
|
|
20
|
-
/** The plan button ("See her Health Plan"); null draws none. */
|
|
21
|
-
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
22
|
-
/** The question link ("What does it mean?"). */
|
|
23
|
-
readonly ask: string;
|
|
24
|
-
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
25
|
-
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
26
|
-
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
27
|
-
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
28
|
-
}
|
|
29
|
-
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
30
|
-
/** The pet facts the possessive reads: its name and sex (a plan page's pet, or the focus words' pet). */
|
|
31
|
-
interface HealthPlanPossessivePet {
|
|
32
|
-
readonly name?: string | null;
|
|
33
|
-
readonly sex?: string | null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* "her" for a female, "his" for a male, "Georgia's" for a named pet of unknown sex, else null. The sex is read
|
|
37
|
-
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
38
|
-
*/
|
|
39
|
-
declare function healthPlanPossessive(pet: HealthPlanPossessivePet): string | null;
|
|
40
|
-
interface HealthPlanTopCardOptions {
|
|
41
|
-
/** Opens the pet's Health Plan (your tab or screen). Absent, the card has no plan button. */
|
|
42
|
-
readonly onOpenPlan?: (() => void) | undefined;
|
|
43
|
-
readonly copy?: Partial<HealthPlanTopCardCopy>;
|
|
44
|
-
/** Draw the close icon your way. */
|
|
45
|
-
readonly renderIcon?: (icon: 'close') => ReactNode;
|
|
46
|
-
}
|
|
47
|
-
/** The top card for a page, or undefined when the page has no focus to show. Pure. */
|
|
48
|
-
declare function healthPlanTopCard(page: HealthPlanPage | null, options?: HealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
49
|
-
|
|
50
|
-
/** What a docked bar needs, as the plan page last published it. */
|
|
51
|
-
interface HealthPlanCartDock {
|
|
52
|
-
/** The member's cart: the items in the plan, their count and subtotal. */
|
|
53
|
-
readonly cart: HealthPlanCart;
|
|
54
|
-
/** True while an add or remove is in flight (draw the checkout control disabled). */
|
|
55
|
-
readonly busy: boolean;
|
|
56
|
-
/** The pet whose plan the page shows, or null. */
|
|
57
|
-
readonly petRef: PetRef | null;
|
|
58
|
-
/** The plan the page shows, or null before it loads. */
|
|
59
|
-
readonly plan: HealthPlan | null;
|
|
60
|
-
/** Adds (`true`) or removes (`false`) one product, as the page's own control does. Resolves true when it took. */
|
|
61
|
-
readonly setInPlan: (productId: string, inPlan: boolean) => Promise<boolean>;
|
|
62
|
-
/** Adds every product not yet in the plan. Resolves true when every add took. */
|
|
63
|
-
readonly addAll: () => Promise<boolean>;
|
|
64
|
-
}
|
|
65
|
-
interface HealthPlanCartScopeProps {
|
|
66
|
-
readonly children?: ReactNode;
|
|
67
|
-
}
|
|
68
|
-
/** The scope a plan page with `cartBarPlacement: 'none'` publishes its cart to. Wrap the page and your bar in it. */
|
|
69
|
-
declare function HealthPlanCartScope({ children }: HealthPlanCartScopeProps): ReactNode;
|
|
70
|
-
/** The cart the plan page in the nearest `HealthPlanCartScope` published, or null (no scope, or no page yet). */
|
|
71
|
-
declare function useHealthPlanCartDock(): HealthPlanCartDock | null;
|
|
72
|
-
|
|
73
|
-
type HealthPlanPagePhase = 'idle' | 'loading' | 'failed' | 'ready';
|
|
74
|
-
interface HealthPlanPageOptions {
|
|
75
|
-
readonly petRef: PetRef | null;
|
|
76
|
-
/** False skips the read. Defaults to true. */
|
|
77
|
-
readonly enabled?: boolean;
|
|
78
|
-
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
79
|
-
readonly repository?: HealthPlanPageRepository;
|
|
80
|
-
/** Coming back to the foreground re-reads a page shown for more than a minute, quietly. Absent, it does not. */
|
|
81
|
-
readonly lifecycle?: LifecyclePort | null;
|
|
82
|
-
/** Change it to re-read the page now, quietly. */
|
|
83
|
-
readonly refreshKey?: string | number;
|
|
84
|
-
}
|
|
85
|
-
interface HealthPlanPageState {
|
|
86
|
-
readonly phase: HealthPlanPagePhase;
|
|
87
|
-
/** The answer for `petRef`, or null until it lands. */
|
|
88
|
-
readonly page: HealthPlanPage | null;
|
|
89
|
-
readonly error: EverfurError | null;
|
|
90
|
-
/** True when the read answered not found: this pet has no plan page. `phase` is then `ready` and `page` null. */
|
|
91
|
-
readonly missing: boolean;
|
|
92
|
-
refresh(): Promise<void>;
|
|
93
|
-
}
|
|
94
|
-
/** The plan page repository bound to the runtime under your provider. */
|
|
95
|
-
declare function useHealthPlanPageRepository(): HealthPlanPageRepository;
|
|
96
|
-
/** One pet's Health Plan page. Re-read when the pet changes. */
|
|
97
|
-
declare function useHealthPlanPage(options: HealthPlanPageOptions): HealthPlanPageState;
|
|
98
|
-
|
|
99
|
-
type HealthPlanPhase = 'idle' | 'loading' | 'failed' | 'ready';
|
|
100
|
-
interface HealthPlanSnapshot {
|
|
101
|
-
readonly phase: HealthPlanPhase;
|
|
102
|
-
readonly petRef: PetRef | null;
|
|
103
|
-
readonly plan: HealthPlan | null;
|
|
104
|
-
/** Product ids whose add or remove is in flight. */
|
|
105
|
-
readonly pending: readonly string[];
|
|
106
|
-
/** The last refused write per product id. */
|
|
107
|
-
readonly itemErrors: Readonly<Record<string, EverfurError>>;
|
|
108
|
-
/** The refused read, or null. */
|
|
109
|
-
readonly error: EverfurError | null;
|
|
110
|
-
}
|
|
111
|
-
declare class HealthPlanController {
|
|
112
|
-
private readonly repository;
|
|
113
|
-
private snapshot;
|
|
114
|
-
private readonly listeners;
|
|
115
|
-
private generation;
|
|
116
|
-
/** Bumped by every add or remove, so a quiet re-read that started before one never overwrites it. */
|
|
117
|
-
private writes;
|
|
118
|
-
/** Bumped by every quiet re-read, so an older one that settles after a newer one never overwrites it. */
|
|
119
|
-
private revalidations;
|
|
120
|
-
/** A host refresh asked for while a write was in flight: the quiet re-read runs once the last write settles. */
|
|
121
|
-
private refreshAfterWrites;
|
|
122
|
-
private disposed;
|
|
123
|
-
constructor(repository: HealthPlanRepository);
|
|
124
|
-
readonly subscribe: (listener: () => void) => (() => void);
|
|
125
|
-
readonly getSnapshot: () => HealthPlanSnapshot;
|
|
126
|
-
private set;
|
|
127
|
-
/** Read the plan for `petRef` (null clears to `idle`). A different pet drops the old plan before the read lands. */
|
|
128
|
-
load(petRef: PetRef | null): Promise<void>;
|
|
129
|
-
/**
|
|
130
|
-
* Re-read the shown plan WITHOUT a loading state (a member coming back to a page that sat open, a host's
|
|
131
|
-
* `refreshKey`). Only from `ready` with nothing in flight; the answer replaces the plan only while the same pet is
|
|
132
|
-
* shown and no add, remove or full read happened meanwhile. A refused re-read keeps the plan on screen.
|
|
133
|
-
*/
|
|
134
|
-
revalidate(): Promise<void>;
|
|
135
|
-
/**
|
|
136
|
-
* The host says the plan changed (its `refreshKey`), so the request is never dropped: from `ready` a quiet
|
|
137
|
-
* re-read, held until the last add or remove in flight settles; from `failed` or `loading` a full read for the
|
|
138
|
-
* shown pet (there is no plan to keep on screen, and a read in flight may predate the change).
|
|
139
|
-
*/
|
|
140
|
-
refresh(): Promise<void>;
|
|
141
|
-
private settleWrite;
|
|
142
|
-
/** Put an item in the plan (`true`) or take it out (`false`). Settles true when the server accepted it. */
|
|
143
|
-
setInPlan(productId: string, inPlan: boolean): Promise<boolean>;
|
|
144
|
-
dispose(): void;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/** Who said her records landed: the plan's own records read, or the host (a notification, the intro). */
|
|
148
|
-
type HealthPlanRecordsLandedSource = 'plan' | 'host';
|
|
149
|
-
/** Hears `notifyHealthPlanRecordsLanded`: which pet, and who said it. */
|
|
150
|
-
type HealthPlanRecordsLandedListener = (petRef: PetRef, source: HealthPlanRecordsLandedSource) => void;
|
|
151
|
-
/** Hears `setHealthPlanNoVet`: which pet, and whether it now has no vet. */
|
|
152
|
-
type HealthPlanNoVetListener = (petRef: PetRef, noVet: boolean) => void;
|
|
153
|
-
/**
|
|
154
|
-
* Says her records landed. The Health Plan reads her records again and, once they hold what her three blanks need,
|
|
155
|
-
* fills them with one yellow flash and the "Her records are in" toast. The plan calls it with `'plan'` when its own
|
|
156
|
-
* read sees them land; a host calls it (default `'host'`) from a notification or the intro.
|
|
157
|
-
*/
|
|
158
|
-
declare function notifyHealthPlanRecordsLanded(petRef: PetRef, source?: HealthPlanRecordsLandedSource): void;
|
|
159
|
-
/** Listens for `notifyHealthPlanRecordsLanded`. Returns the unsubscribe. */
|
|
160
|
-
declare function onHealthPlanRecordsLanded(listener: HealthPlanRecordsLandedListener): () => void;
|
|
161
|
-
/** Records that the member has no vet for this pet yet (true), or has one again (false). */
|
|
162
|
-
declare function setHealthPlanNoVet(petRef: PetRef, noVet: boolean): void;
|
|
163
|
-
/** True when `setHealthPlanNoVet(petRef, true)` was said for this pet on this page. */
|
|
164
|
-
declare function healthPlanNoVet(petRef: PetRef): boolean;
|
|
165
|
-
/** Listens for `setHealthPlanNoVet`. Returns the unsubscribe. */
|
|
166
|
-
declare function onHealthPlanNoVet(listener: HealthPlanNoVetListener): () => void;
|
|
167
|
-
|
|
168
|
-
type HealthPlanSubscriptionPhase = 'idle' | 'loading' | 'unavailable' | 'failed' | 'ready';
|
|
169
|
-
interface HealthPlanSubscriptionOptions {
|
|
170
|
-
readonly petRef: PetRef | null;
|
|
171
|
-
readonly productId: string | null;
|
|
172
|
-
/** False skips every read (a host that has not opted in). Defaults to true. */
|
|
173
|
-
readonly enabled?: boolean;
|
|
174
|
-
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
175
|
-
readonly repository?: HealthPlanSubscriptionRepository;
|
|
176
|
-
/** Coming back to the foreground re-reads a quote shown for more than a minute, quietly. Absent, it does not. */
|
|
177
|
-
readonly lifecycle?: LifecyclePort | null;
|
|
178
|
-
/** Change it to re-read the quote now, quietly (for example after your checkout completed). */
|
|
179
|
-
readonly refreshKey?: string | number;
|
|
180
|
-
}
|
|
181
|
-
interface HealthPlanSubscriptionState {
|
|
182
|
-
readonly phase: HealthPlanSubscriptionPhase;
|
|
183
|
-
readonly quote: HealthPlanSubscriptionQuote | null;
|
|
184
|
-
/** The member's row for this pet and product (active or cancelled), or null. */
|
|
185
|
-
readonly subscription: HealthPlanSubscription | null;
|
|
186
|
-
/** A write is in flight. */
|
|
187
|
-
readonly busy: boolean;
|
|
188
|
-
/** The last refused read or write, or null. */
|
|
189
|
-
readonly error: EverfurError | null;
|
|
190
|
-
/** Each write settles the server's new state, or the refusal (a write before the quote is ready is refused). */
|
|
191
|
-
subscribe(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
192
|
-
changeInterval(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
193
|
-
skip(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
194
|
-
cancel(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
195
|
-
restart(intervalDays?: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
196
|
-
/** Buy one box (no renewal), then re-read the quote: a one-box order spends the first-box offer. */
|
|
197
|
-
buyOneBox(tapKey?: string): Promise<EverfurResult<HealthPlanOneBoxOrder>>;
|
|
198
|
-
refresh(): Promise<void>;
|
|
199
|
-
}
|
|
200
|
-
/** The subscription repository bound to the runtime under your provider. */
|
|
201
|
-
declare function useHealthPlanSubscriptionRepository(): HealthPlanSubscriptionRepository;
|
|
202
|
-
/** One product's subscription for one pet. `EverfurHealthPlan` with `layout="focus"` paints it. */
|
|
203
|
-
declare function useHealthPlanSubscription(options: HealthPlanSubscriptionOptions): HealthPlanSubscriptionState;
|
|
204
|
-
|
|
205
|
-
export { useHealthPlanSubscription as A, useHealthPlanSubscriptionRepository as B, type HealthPlanTopCardOptions as C, type HealthPlanPossessivePet as D, healthPlanPossessive as E, healthPlanTopCard as F, type HealthPlanTopCardCopy as H, HEALTH_PLAN_TOP_CARD_COPY as a, type HealthPlanCartDock as b, HealthPlanCartScope as c, type HealthPlanCartScopeProps as d, HealthPlanController as e, type HealthPlanNoVetListener as f, type HealthPlanPageOptions as g, type HealthPlanPagePhase as h, type HealthPlanPageState as i, type HealthPlanPhase as j, type HealthPlanRecordsLandedListener as k, type HealthPlanRecordsLandedSource as l, type HealthPlanSnapshot as m, type HealthPlanSubscriptionOptions as n, type HealthPlanSubscriptionPhase as o, type HealthPlanSubscriptionState as p, type HealthPlanTopCardFocus as q, type HealthPlanTopCardPet as r, healthPlanNoVet as s, notifyHealthPlanRecordsLanded as t, onHealthPlanNoVet as u, onHealthPlanRecordsLanded as v, setHealthPlanNoVet as w, useHealthPlanCartDock as x, useHealthPlanPage as y, useHealthPlanPageRepository as z };
|