@everfur/sdk 1.5.1 → 1.5.2

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.
Files changed (79) hide show
  1. package/dist/care/index.cjs +2 -2
  2. package/dist/care/index.js +2 -2
  3. package/dist/chat/index.cjs +235 -234
  4. package/dist/chat/index.js +311 -310
  5. package/dist/chat/lite/index.cjs +339 -338
  6. package/dist/chat/lite/index.js +314 -313
  7. package/dist/{chunk-NBAOR5TJ.js → chunk-2T5CB5MW.js} +21 -21
  8. package/dist/{chunk-RD6ZGYEJ.js → chunk-ASE36WGP.js} +7 -7
  9. package/dist/{chunk-IO4CGYHT.js → chunk-CMDCBYUH.js} +1 -1
  10. package/dist/{chunk-ZYHPCQVM.js → chunk-K7YHXFPQ.js} +1 -1
  11. package/dist/client/index.cjs +1 -1
  12. package/dist/client/index.d.cts +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.js +1 -1
  15. package/dist/core/index.cjs +31 -31
  16. package/dist/core/index.js +31 -31
  17. package/dist/health-plan/index.cjs +266 -266
  18. package/dist/health-plan/index.js +443 -443
  19. package/dist/{inbox.d-DJ9xgU1Z.d.ts → inbox.d-B2JXK0uI.d.ts} +1 -1
  20. package/dist/{inbox.d-CPcMMz-Y.d.cts → inbox.d-CwA1ogzV.d.cts} +1 -1
  21. package/dist/index.cjs +257 -256
  22. package/dist/index.js +364 -363
  23. package/dist/notifications/inbox/index.cjs +28 -28
  24. package/dist/notifications/inbox/index.d.cts +5 -5
  25. package/dist/notifications/inbox/index.d.ts +5 -5
  26. package/dist/notifications/inbox/index.js +53 -53
  27. package/dist/notifications/index.cjs +1 -1
  28. package/dist/notifications/index.d.cts +3 -3
  29. package/dist/notifications/index.d.ts +3 -3
  30. package/dist/notifications/index.js +1 -1
  31. package/dist/{parse.d-Cj3fURer.d.ts → parse.d-QjB2LJCd.d.ts} +19 -10
  32. package/dist/{parse.d-cH7ZmMeo.d.cts → parse.d-_Ttu2h5g.d.cts} +19 -10
  33. package/dist/records/depth/index.cjs +80 -80
  34. package/dist/records/depth/index.js +115 -115
  35. package/dist/records/index.cjs +653 -653
  36. package/dist/records/index.js +1074 -1074
  37. package/dist/{route.d-DSYEd2MR.d.ts → route.d-DtuKY5dM.d.ts} +1 -1
  38. package/dist/{route.d-DCzQh4ix.d.cts → route.d-Nt-r-7IO.d.cts} +1 -1
  39. package/dist/server/events/index.cjs +1 -1
  40. package/dist/server/events/index.js +1 -1
  41. package/dist/server/index.cjs +1 -1
  42. package/dist/server/index.js +1 -1
  43. package/dist/shop/index.cjs +188 -188
  44. package/dist/shop/index.js +386 -386
  45. package/dist/shop/orders-v2/index.cjs +72 -72
  46. package/dist/shop/orders-v2/index.js +126 -126
  47. package/dist/tabs/index.cjs +114 -111
  48. package/dist/tabs/index.d.cts +18 -5
  49. package/dist/tabs/index.d.ts +18 -5
  50. package/dist/tabs/index.js +191 -188
  51. package/dist/televet/booking/index.cjs +214 -211
  52. package/dist/televet/booking/index.js +344 -341
  53. package/dist/televet/call/index.cjs +53 -53
  54. package/dist/televet/call/index.js +67 -67
  55. package/dist/{useInboxUnread.d-CXiaR3BZ.d.ts → useInboxUnread.d-0DrQPn7J.d.ts} +1 -1
  56. package/dist/{useInboxUnread.d-DERpMelw.d.cts → useInboxUnread.d-CRcOTkmu.d.cts} +1 -1
  57. package/dist/web/health-plan/index.cjs +1 -1
  58. package/dist/web/health-plan/index.js +1 -1
  59. package/dist/web/inbox/index.cjs +1 -1
  60. package/dist/web/inbox/index.d.cts +6 -6
  61. package/dist/web/inbox/index.d.ts +6 -6
  62. package/dist/web/inbox/index.js +1 -1
  63. package/dist/web/index.cjs +184 -184
  64. package/dist/web/index.js +181 -181
  65. package/dist/web/notifications/index.cjs +1 -1
  66. package/dist/web/notifications/index.d.cts +2 -2
  67. package/dist/web/notifications/index.d.ts +2 -2
  68. package/dist/web/notifications/index.js +1 -1
  69. package/dist/web/records-sheet/index.cjs +1 -1
  70. package/dist/web/records-sheet/index.js +1 -1
  71. package/dist/web/shop/index.cjs +1 -1
  72. package/dist/web/shop/index.js +2 -2
  73. package/dist/web/televet/booking/index.cjs +1 -1
  74. package/dist/web/televet/booking/index.js +1 -1
  75. package/dist/web/televet/call/index.cjs +1 -1
  76. package/dist/web/televet/call/index.js +1 -1
  77. package/dist/web/ui/index.cjs +1 -1
  78. package/dist/web/ui/index.js +16 -16
  79. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { EverfurRecordsProps } from '@everfur/sdk/records';
5
5
  import { ReactNode, ComponentType } from 'react';
6
6
  import { StyleProp, ViewStyle } from 'react-native';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.cjs';
8
- import { b as EverfurInboxOpen } from '../inbox.d-CPcMMz-Y.cjs';
8
+ import { b as EverfurInboxOpen } from '../inbox.d-CwA1ogzV.cjs';
9
9
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
10
10
  import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-B7acmGwf.cjs';
11
11
  export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-B7acmGwf.cjs';
@@ -26,7 +26,7 @@ import '../EverfurError.d-8NHtlgzA.cjs';
26
26
  import '../ErrorPolicyPort.d-BIdmYQnk.cjs';
27
27
  import '../identity.d-DDpXOtas.cjs';
28
28
  import '../config.d-ClAI2RZ6.cjs';
29
- import '../parse.d-cH7ZmMeo.cjs';
29
+ import '../parse.d-_Ttu2h5g.cjs';
30
30
  import '../visitIntent.d-CY7mrflo.cjs';
31
31
  import '../clinicModels.d-BXgKZqDb.cjs';
32
32
  import '../models.d-D75NFs32.cjs';
@@ -316,10 +316,23 @@ interface EverfurSdkHost {
316
316
  /** Close: the full-screen × and the chat_first down arrow return to the screen the person was on. */
317
317
  readonly onClose?: () => void;
318
318
  }
319
+ /**
320
+ * A request to open a section: the section alone, or with a `key` you change for each new open. A plain section opens
321
+ * when the value changes; with a `key`, asking for the same section again (a second push for Ask after the member moved
322
+ * to Records) opens it again.
323
+ */
324
+ type EverfurSdkSectionRequest = SdkSection | {
325
+ readonly section: SdkSection;
326
+ readonly key: string | number;
327
+ };
319
328
  interface EverfurSdkAppProps {
320
329
  readonly host: EverfurSdkHost;
321
- /** Open a section directly (a notification, the host's own link). A new value is a new open. */
322
- readonly section?: SdkSection;
330
+ /**
331
+ * Open a section directly (a notification, the host's own link). A changed section is a new open, and so is a changed
332
+ * `key` on `{ section, key }`, even for the section already asked for. Without a v3 config (the legacy tabs) Ask and
333
+ * Records open the same way; Vet has no legacy tab and opens nothing there.
334
+ */
335
+ readonly section?: EverfurSdkSectionRequest;
323
336
  /** The section on screen changed. */
324
337
  readonly onSectionChange?: (section: SdkSection) => void;
325
338
  /** Extra props for the chat, under the config's own (the config's look and words win). */
@@ -382,4 +395,4 @@ interface EverfurSvgModule {
382
395
  */
383
396
  declare function registerEverfurSvg(load: (() => unknown) | null): boolean;
384
397
 
385
- export { EVERFUR_TABS_SHELL_COPY, EverfurChatOpeningCard, EverfurIntro, EverfurIntroBlank, EverfurIntroClose, EverfurIntroCopy, EverfurIntroFrame, EverfurIntroMode, type EverfurIntroProps, type EverfurIntroTabBar, EverfurIntroTabLabels, EverfurRecordsLanded, EverfurRecordsLandedBanner, type EverfurRecordsLandedBannerProps, EverfurRecordsRequested, EverfurSdkApp, type EverfurSdkAppProps, type EverfurSdkHost, EverfurSdkLauncher, type EverfurSdkLauncherProps, type EverfurSdkPartnerItem, type EverfurSdkPet, type EverfurSdkPlanReason, type EverfurSvgModule, type EverfurSvgUriProps, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsHeader, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, type EverfurTabsShellCopy, IntroText, RECORDS_BANNER_MS, SdkConfigSnapshot, registerEverfurSvg, useEverfurSdkConfig, useEverfurTabs, useLoadEverfurSdkConfig };
398
+ export { EVERFUR_TABS_SHELL_COPY, EverfurChatOpeningCard, EverfurIntro, EverfurIntroBlank, EverfurIntroClose, EverfurIntroCopy, EverfurIntroFrame, EverfurIntroMode, type EverfurIntroProps, type EverfurIntroTabBar, EverfurIntroTabLabels, EverfurRecordsLanded, EverfurRecordsLandedBanner, type EverfurRecordsLandedBannerProps, EverfurRecordsRequested, EverfurSdkApp, type EverfurSdkAppProps, type EverfurSdkHost, EverfurSdkLauncher, type EverfurSdkLauncherProps, type EverfurSdkPartnerItem, type EverfurSdkPet, type EverfurSdkPlanReason, type EverfurSdkSectionRequest, type EverfurSvgModule, type EverfurSvgUriProps, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsHeader, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, type EverfurTabsShellCopy, IntroText, RECORDS_BANNER_MS, SdkConfigSnapshot, registerEverfurSvg, useEverfurSdkConfig, useEverfurTabs, useLoadEverfurSdkConfig };
@@ -5,7 +5,7 @@ import { EverfurRecordsProps } from '@everfur/sdk/records';
5
5
  import { ReactNode, ComponentType } from 'react';
6
6
  import { StyleProp, ViewStyle } from 'react-native';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.js';
8
- import { b as EverfurInboxOpen } from '../inbox.d-DJ9xgU1Z.js';
8
+ import { b as EverfurInboxOpen } from '../inbox.d-B2JXK0uI.js';
9
9
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
10
10
  import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-DW3gLljE.js';
11
11
  export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-DW3gLljE.js';
@@ -26,7 +26,7 @@ import '../EverfurError.d-8NHtlgzA.js';
26
26
  import '../ErrorPolicyPort.d-BnI5qWg4.js';
27
27
  import '../identity.d-D4VtpqRr.js';
28
28
  import '../config.d-B7Z-KTGq.js';
29
- import '../parse.d-Cj3fURer.js';
29
+ import '../parse.d-QjB2LJCd.js';
30
30
  import '../visitIntent.d-CY7mrflo.js';
31
31
  import '../clinicModels.d-CaS64-P-.js';
32
32
  import '../models.d-C7d9Li6n.js';
@@ -316,10 +316,23 @@ interface EverfurSdkHost {
316
316
  /** Close: the full-screen × and the chat_first down arrow return to the screen the person was on. */
317
317
  readonly onClose?: () => void;
318
318
  }
319
+ /**
320
+ * A request to open a section: the section alone, or with a `key` you change for each new open. A plain section opens
321
+ * when the value changes; with a `key`, asking for the same section again (a second push for Ask after the member moved
322
+ * to Records) opens it again.
323
+ */
324
+ type EverfurSdkSectionRequest = SdkSection | {
325
+ readonly section: SdkSection;
326
+ readonly key: string | number;
327
+ };
319
328
  interface EverfurSdkAppProps {
320
329
  readonly host: EverfurSdkHost;
321
- /** Open a section directly (a notification, the host's own link). A new value is a new open. */
322
- readonly section?: SdkSection;
330
+ /**
331
+ * Open a section directly (a notification, the host's own link). A changed section is a new open, and so is a changed
332
+ * `key` on `{ section, key }`, even for the section already asked for. Without a v3 config (the legacy tabs) Ask and
333
+ * Records open the same way; Vet has no legacy tab and opens nothing there.
334
+ */
335
+ readonly section?: EverfurSdkSectionRequest;
323
336
  /** The section on screen changed. */
324
337
  readonly onSectionChange?: (section: SdkSection) => void;
325
338
  /** Extra props for the chat, under the config's own (the config's look and words win). */
@@ -382,4 +395,4 @@ interface EverfurSvgModule {
382
395
  */
383
396
  declare function registerEverfurSvg(load: (() => unknown) | null): boolean;
384
397
 
385
- export { EVERFUR_TABS_SHELL_COPY, EverfurChatOpeningCard, EverfurIntro, EverfurIntroBlank, EverfurIntroClose, EverfurIntroCopy, EverfurIntroFrame, EverfurIntroMode, type EverfurIntroProps, type EverfurIntroTabBar, EverfurIntroTabLabels, EverfurRecordsLanded, EverfurRecordsLandedBanner, type EverfurRecordsLandedBannerProps, EverfurRecordsRequested, EverfurSdkApp, type EverfurSdkAppProps, type EverfurSdkHost, EverfurSdkLauncher, type EverfurSdkLauncherProps, type EverfurSdkPartnerItem, type EverfurSdkPet, type EverfurSdkPlanReason, type EverfurSvgModule, type EverfurSvgUriProps, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsHeader, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, type EverfurTabsShellCopy, IntroText, RECORDS_BANNER_MS, SdkConfigSnapshot, registerEverfurSvg, useEverfurSdkConfig, useEverfurTabs, useLoadEverfurSdkConfig };
398
+ export { EVERFUR_TABS_SHELL_COPY, EverfurChatOpeningCard, EverfurIntro, EverfurIntroBlank, EverfurIntroClose, EverfurIntroCopy, EverfurIntroFrame, EverfurIntroMode, type EverfurIntroProps, type EverfurIntroTabBar, EverfurIntroTabLabels, EverfurRecordsLanded, EverfurRecordsLandedBanner, type EverfurRecordsLandedBannerProps, EverfurRecordsRequested, EverfurSdkApp, type EverfurSdkAppProps, type EverfurSdkHost, EverfurSdkLauncher, type EverfurSdkLauncherProps, type EverfurSdkPartnerItem, type EverfurSdkPet, type EverfurSdkPlanReason, type EverfurSdkSectionRequest, type EverfurSvgModule, type EverfurSvgUriProps, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsHeader, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, type EverfurTabsShellCopy, IntroText, RECORDS_BANNER_MS, SdkConfigSnapshot, registerEverfurSvg, useEverfurSdkConfig, useEverfurTabs, useLoadEverfurSdkConfig };