@apextelemed/partner-core 0.5.2 → 0.6.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.
Files changed (44) hide show
  1. package/README.md +83 -14
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +3 -3
  4. package/dist/api/index.jsx +3 -3
  5. package/dist/chunk/{FUOUTRAO.jsx → 4ZSZHZQV.jsx} +2 -2
  6. package/dist/chunk/{ZJENZPAM.jsx → 5HNZ7SEM.jsx} +12 -8
  7. package/dist/chunk/{5D7SGF46.js → BEDW4XUM.js} +61 -5
  8. package/dist/chunk/BEDW4XUM.js.map +1 -0
  9. package/dist/chunk/{XHOD3HUQ.js → BVLA7ATM.js} +3 -3
  10. package/dist/chunk/{XHOD3HUQ.js.map → BVLA7ATM.js.map} +1 -1
  11. package/dist/chunk/{DQE4K55D.jsx → EVCGDF5D.jsx} +60 -4
  12. package/dist/chunk/{KO2JPCIP.js → HKNTNZRW.js} +3443 -1482
  13. package/dist/chunk/HKNTNZRW.js.map +1 -0
  14. package/dist/chunk/{JTG4H4I5.jsx → HXMLRDIJ.jsx} +92 -12
  15. package/dist/chunk/{C7TELVJF.js → MLXPHJLR.js} +3 -3
  16. package/dist/chunk/{C7TELVJF.js.map → MLXPHJLR.js.map} +1 -1
  17. package/dist/chunk/{2UWULNSX.jsx → NBB2VTQK.jsx} +2 -2
  18. package/dist/chunk/{ZD2MMEXL.js → NSRQXBHK.js} +13 -9
  19. package/dist/chunk/NSRQXBHK.js.map +1 -0
  20. package/dist/chunk/{7ZESUC4Q.js → QTGJY3YQ.js} +3 -3
  21. package/dist/chunk/{7ZESUC4Q.js.map → QTGJY3YQ.js.map} +1 -1
  22. package/dist/chunk/{I322BQIU.jsx → SSVJ27MR.jsx} +2650 -1224
  23. package/dist/chunk/{GNG53L37.jsx → WLEIDQ5M.jsx} +2 -2
  24. package/dist/chunk/{GPVYUP3H.js → WUE4VQBA.js} +92 -14
  25. package/dist/chunk/WUE4VQBA.js.map +1 -0
  26. package/dist/{client-BD9_HCZY.d.ts → client-B6Kt7LWo.d.ts} +129 -2
  27. package/dist/flows/index.d.ts +99 -7
  28. package/dist/flows/index.js +6 -6
  29. package/dist/flows/index.jsx +6 -6
  30. package/dist/index/index.d.ts +2 -2
  31. package/dist/index/index.js +7 -7
  32. package/dist/index/index.jsx +7 -7
  33. package/dist/pages/index.d.ts +13 -3
  34. package/dist/pages/index.js +5 -5
  35. package/dist/pages/index.jsx +5 -5
  36. package/dist/stores/index.d.ts +1 -1
  37. package/dist/stores/index.js +2 -2
  38. package/dist/stores/index.jsx +2 -2
  39. package/dist/theme/member-portal.css +213 -0
  40. package/package.json +1 -1
  41. package/dist/chunk/5D7SGF46.js.map +0 -1
  42. package/dist/chunk/GPVYUP3H.js.map +0 -1
  43. package/dist/chunk/KO2JPCIP.js.map +0 -1
  44. package/dist/chunk/ZD2MMEXL.js.map +0 -1
@@ -2,7 +2,7 @@ import * as solid_js from 'solid-js';
2
2
  import { JSX } from 'solid-js';
3
3
  import { U as UseSurveyV2FlowOptions } from '../surveyV2-BgQHK0GE.js';
4
4
  import { V2SubmitResult, PatientInfo, V2DrugResult } from '@apextelemed/survey-core';
5
- import { q as AdminLifecycleBucket, v as AdminProduct } from '../client-BD9_HCZY.js';
5
+ import { q as AdminLifecycleBucket, v as AdminProduct } from '../client-B6Kt7LWo.js';
6
6
  import '@apextelemed/survey-solid';
7
7
 
8
8
  interface SurveyPageProps {
@@ -18,6 +18,11 @@ interface SurveyPageProps {
18
18
  * through the consumer site's primitive components (`usePrimitives`).
19
19
  *
20
20
  * Sites must provide medication-select / dashboard navigation via callbacks.
21
+ *
22
+ * @deprecated Use {@link SurveyV2Page} instead. It is backed by the v1
23
+ * {@link useSurveyFlow}, so it needs a medication chosen before it can compose
24
+ * a questionnaire; `SurveyV2Page` takes `drugIds` explicitly and can qualify a
25
+ * guest before an account exists. Kept for sites that have not migrated.
21
26
  */
22
27
  declare function SurveyPage(props: SurveyPageProps): solid_js.JSX.Element;
23
28
 
@@ -301,7 +306,7 @@ interface AdminAuthAdapter {
301
306
  }
302
307
  type AdminTab = 'dashboard' | 'customers' | 'payments'
303
308
  /** @deprecated Subscriptions live in the customer 360; this id renders the Customers tab filtered to active subscribers. */
304
- | 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'affiliates' | 'support' | 'webhooks' | 'email-templates' | 'funnel';
309
+ | 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'affiliates' | 'support' | 'webhooks' | 'email-templates' | 'funnel' | 'sequences' | 'email-notifications';
305
310
  interface AdminTabGroup {
306
311
  /** Section header rendered above the items (uppercase, muted). */
307
312
  label: string;
@@ -589,7 +594,12 @@ interface ForgotPasswordPageProps {
589
594
  * which appends `?token=…&email=…` before emailing the reset link. Required.
590
595
  */
591
596
  redirectUrl: string;
592
- /** Fired after the request is submitted (always, per anti-enumeration). */
597
+ /**
598
+ * "Back to sign in" after the request is submitted. Fired when the person
599
+ * clicks it — never automatically, so the "check your email" confirmation is
600
+ * actually seen. (It used to fire in the same tick the message was set, and
601
+ * a host that navigated in it unmounted the message before it rendered.)
602
+ */
593
603
  onDone?: () => void;
594
604
  }
595
605
  /**
@@ -1,10 +1,10 @@
1
- export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/KO2JPCIP.js';
1
+ export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/HKNTNZRW.js';
2
2
  import '../chunk/LZWA44KD.js';
3
- import '../chunk/GPVYUP3H.js';
4
- import '../chunk/7ZESUC4Q.js';
3
+ import '../chunk/WUE4VQBA.js';
4
+ import '../chunk/QTGJY3YQ.js';
5
5
  import '../chunk/67KHO66G.js';
6
- import '../chunk/C7TELVJF.js';
7
- import '../chunk/5D7SGF46.js';
6
+ import '../chunk/MLXPHJLR.js';
7
+ import '../chunk/BEDW4XUM.js';
8
8
  import '../chunk/5XGPFYIJ.js';
9
9
  //# sourceMappingURL=index.js.map
10
10
  //# sourceMappingURL=index.js.map
@@ -18,13 +18,13 @@ import {
18
18
  SurveyPage,
19
19
  SurveyV2Page,
20
20
  UpdatePaymentMethod
21
- } from "../chunk/I322BQIU.jsx";
21
+ } from "../chunk/SSVJ27MR.jsx";
22
22
  import "../chunk/UZCST66N.jsx";
23
- import "../chunk/JTG4H4I5.jsx";
24
- import "../chunk/2UWULNSX.jsx";
23
+ import "../chunk/HXMLRDIJ.jsx";
24
+ import "../chunk/NBB2VTQK.jsx";
25
25
  import "../chunk/J63XPQP4.jsx";
26
- import "../chunk/GNG53L37.jsx";
27
- import "../chunk/DQE4K55D.jsx";
26
+ import "../chunk/WLEIDQ5M.jsx";
27
+ import "../chunk/EVCGDF5D.jsx";
28
28
  import "../chunk/LDZIUFDM.jsx";
29
29
  export {
30
30
  AdminDashboard,
@@ -1,5 +1,5 @@
1
1
  import * as solid_js from 'solid-js';
2
- import { a2 as AuthTokens, aX as User, aD as RegisterPayload, aC as RegisterAndSubscribePayload, L as AffiliateAuthTokens, K as Affiliate, V as AffiliateRegisterInput } from '../client-BD9_HCZY.js';
2
+ import { a2 as AuthTokens, b0 as User, aH as RegisterPayload, aG as RegisterAndSubscribePayload, L as AffiliateAuthTokens, K as Affiliate, V as AffiliateRegisterInput } from '../client-B6Kt7LWo.js';
3
3
  export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-D4mVX_zx.js';
4
4
 
5
5
  declare const authStore: {
@@ -1,6 +1,6 @@
1
1
  import '../chunk/NVRAOAVV.js';
2
- export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/C7TELVJF.js';
3
- import '../chunk/5D7SGF46.js';
2
+ export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/MLXPHJLR.js';
3
+ import '../chunk/BEDW4XUM.js';
4
4
  import '../chunk/5XGPFYIJ.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ import {
4
4
  auth_default,
5
5
  cart_default,
6
6
  medication_default
7
- } from "../chunk/GNG53L37.jsx";
8
- import "../chunk/DQE4K55D.jsx";
7
+ } from "../chunk/WLEIDQ5M.jsx";
8
+ import "../chunk/EVCGDF5D.jsx";
9
9
  import "../chunk/LDZIUFDM.jsx";
10
10
  export {
11
11
  affiliateAuth_default as affiliateAuthStore,
@@ -952,6 +952,18 @@
952
952
  .plan__link-btn--quiet { color: var(--app-portal-fg-muted); }
953
953
  .plan__link-btn:disabled { opacity: 0.5; cursor: default; }
954
954
  .plan__error { color: var(--app-portal-danger); font-size: 14px; margin: 12px 0; }
955
+ .plan__note { margin: 0 0 22px; font-size: 14px; color: var(--app-portal-fg-muted); }
956
+ .plan__note-link {
957
+ background: none;
958
+ border: none;
959
+ padding: 0;
960
+ cursor: pointer;
961
+ font: inherit;
962
+ font-weight: 600;
963
+ color: var(--app-portal-accent);
964
+ text-decoration: none;
965
+ }
966
+ .plan__note-link:hover { text-decoration: underline; }
955
967
 
956
968
  .plan__empty, .account__empty { text-align: center; padding: 48px 20px; color: var(--app-portal-fg-muted); }
957
969
  .plan__empty-title { font-family: var(--app-portal-font-display); font-size: 22px; color: var(--app-portal-fg); margin-bottom: 10px; }
@@ -1053,6 +1065,28 @@
1053
1065
  padding: 16px 20px;
1054
1066
  border-bottom: 1px solid var(--app-portal-border);
1055
1067
  }
1068
+ .msg-list__header-title {
1069
+ display: flex;
1070
+ align-items: center;
1071
+ gap: 8px;
1072
+ min-width: 0;
1073
+ }
1074
+ /* "Choose a different team" — always visible (unlike .msg-thread__back-btn,
1075
+ which is mobile-only): the gate<->list step applies on desktop too, since
1076
+ there's no side-by-side gate+list, only list+thread. */
1077
+ .msg-list__back {
1078
+ flex-shrink: 0;
1079
+ display: flex;
1080
+ align-items: center;
1081
+ background: none;
1082
+ border: none;
1083
+ padding: 0;
1084
+ font-size: 16px;
1085
+ line-height: 1;
1086
+ color: var(--app-portal-fg-muted);
1087
+ cursor: pointer;
1088
+ }
1089
+ .msg-list__back:hover { color: var(--app-portal-fg); }
1056
1090
  .msg-list__title {
1057
1091
  margin: 0;
1058
1092
  font-family: var(--app-portal-font-display);
@@ -1221,6 +1255,25 @@
1221
1255
  font-weight: 500;
1222
1256
  color: var(--app-portal-fg-muted);
1223
1257
  }
1258
+ /* "Continue with your care team" — offered on a closed/transferred support
1259
+ thread as a shortcut into Care, instead of making the customer find the
1260
+ gate themselves. */
1261
+ .msg-thread__banner {
1262
+ padding: 10px 20px;
1263
+ border-bottom: 1px solid var(--app-portal-border);
1264
+ background: var(--app-portal-surface-alt, rgba(0, 0, 0, 0.03));
1265
+ }
1266
+ .msg-thread__banner-link {
1267
+ background: none;
1268
+ border: none;
1269
+ padding: 0;
1270
+ font: inherit;
1271
+ font-size: 12px;
1272
+ font-weight: 600;
1273
+ color: var(--app-portal-accent);
1274
+ text-decoration: underline;
1275
+ cursor: pointer;
1276
+ }
1224
1277
 
1225
1278
  /* Message attachments.
1226
1279
  Ported from the per-site implementations these components replaced; the
@@ -1501,6 +1554,166 @@
1501
1554
  cursor: not-allowed;
1502
1555
  }
1503
1556
 
1557
+ /* Channel chip — "Care team" / "Support", shown on list rows and the thread
1558
+ header so it's clear at a glance which inbox a conversation belongs to. */
1559
+ .channel-chip {
1560
+ display: inline-flex;
1561
+ align-items: center;
1562
+ gap: 4px;
1563
+ flex-shrink: 0;
1564
+ padding: 2px 8px;
1565
+ border-radius: 999px;
1566
+ background: var(--app-portal-surface-alt, rgba(0, 0, 0, 0.05));
1567
+ font-size: 10px;
1568
+ font-weight: 600;
1569
+ letter-spacing: 0.02em;
1570
+ text-transform: uppercase;
1571
+ color: var(--app-portal-fg-muted);
1572
+ white-space: nowrap;
1573
+ }
1574
+ .channel-chip--clinical {
1575
+ background: var(--app-portal-consult-soft, var(--app-portal-surface-alt));
1576
+ color: var(--app-portal-consult);
1577
+ }
1578
+ .channel-chip__category {
1579
+ padding-left: 4px;
1580
+ border-left: 1px solid currentColor;
1581
+ opacity: 0.75;
1582
+ text-transform: none;
1583
+ letter-spacing: normal;
1584
+ }
1585
+ .msg-list__name-group {
1586
+ display: flex;
1587
+ align-items: center;
1588
+ gap: 6px;
1589
+ min-width: 0;
1590
+ overflow: hidden;
1591
+ }
1592
+ .msg-thread__title-row {
1593
+ display: flex;
1594
+ align-items: center;
1595
+ gap: 8px;
1596
+ }
1597
+
1598
+ /* Compose step 0 — channel choice cards */
1599
+ .msg-choice__options {
1600
+ display: flex;
1601
+ flex-direction: column;
1602
+ gap: 12px;
1603
+ padding: 20px;
1604
+ overflow-y: auto;
1605
+ }
1606
+ .msg-choice__option {
1607
+ display: flex;
1608
+ flex-direction: column;
1609
+ align-items: flex-start;
1610
+ gap: 4px;
1611
+ padding: 18px 20px;
1612
+ border: 1px solid var(--app-portal-border);
1613
+ border-radius: 14px;
1614
+ background: var(--app-portal-surface, #fff);
1615
+ text-align: left;
1616
+ font-family: inherit;
1617
+ cursor: pointer;
1618
+ transition: border-color 0.15s ease, background 0.15s ease;
1619
+ }
1620
+ .msg-choice__option:hover {
1621
+ border-color: var(--app-portal-fg-muted);
1622
+ background: var(--app-portal-surface-alt, rgba(0, 0, 0, 0.03));
1623
+ }
1624
+ .msg-choice__option-icon {
1625
+ font-size: 22px;
1626
+ margin-bottom: 4px;
1627
+ color: var(--app-portal-accent);
1628
+ }
1629
+ .msg-choice__option-title {
1630
+ font-size: 15px;
1631
+ font-weight: 600;
1632
+ color: var(--app-portal-fg);
1633
+ }
1634
+ .msg-choice__option-sub {
1635
+ font-size: 12px;
1636
+ color: var(--app-portal-fg-muted);
1637
+ }
1638
+ /* Unread count on a gate card, or a spinner in its place while the
1639
+ conversation lists are still loading. */
1640
+ .msg-choice__option-badge {
1641
+ align-self: flex-end;
1642
+ margin-top: -18px;
1643
+ min-width: 20px;
1644
+ height: 20px;
1645
+ padding: 0 6px;
1646
+ border-radius: 999px;
1647
+ background: var(--app-portal-consult);
1648
+ color: #fff;
1649
+ font-size: 11px;
1650
+ font-weight: 700;
1651
+ display: inline-flex;
1652
+ align-items: center;
1653
+ justify-content: center;
1654
+ line-height: 1;
1655
+ }
1656
+ .msg-choice__option-spinner {
1657
+ align-self: flex-end;
1658
+ margin-top: -18px;
1659
+ width: 14px;
1660
+ height: 14px;
1661
+ }
1662
+
1663
+ /* The gate itself fills the layout's full width — unlike the sidebar/main
1664
+ split it replaces, there's only one pane until a channel is chosen. */
1665
+ .msg-panel__layout--gate {
1666
+ flex-direction: column;
1667
+ }
1668
+
1669
+ /* Care-team notice (no clinical conversation to route to yet) */
1670
+ .msg-choice__notice {
1671
+ display: flex;
1672
+ flex-direction: column;
1673
+ align-items: flex-start;
1674
+ gap: 14px;
1675
+ padding: 20px;
1676
+ }
1677
+ .msg-choice__notice-text {
1678
+ margin: 0;
1679
+ font-size: 14px;
1680
+ line-height: 1.55;
1681
+ color: var(--app-portal-fg);
1682
+ }
1683
+
1684
+ /* Support-compose category chips */
1685
+ .msg-compose__label-optional {
1686
+ font-weight: 400;
1687
+ text-transform: none;
1688
+ color: var(--app-portal-fg-muted);
1689
+ }
1690
+ .msg-compose__categories {
1691
+ display: flex;
1692
+ flex-wrap: wrap;
1693
+ gap: 8px;
1694
+ margin-bottom: 10px;
1695
+ }
1696
+ .msg-compose__category-chip {
1697
+ padding: 6px 12px;
1698
+ border: 1px solid var(--app-portal-border);
1699
+ border-radius: 999px;
1700
+ background: transparent;
1701
+ font-family: inherit;
1702
+ font-size: 12px;
1703
+ font-weight: 500;
1704
+ color: var(--app-portal-fg-muted);
1705
+ cursor: pointer;
1706
+ transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
1707
+ }
1708
+ .msg-compose__category-chip:hover {
1709
+ border-color: var(--app-portal-fg-muted);
1710
+ }
1711
+ .msg-compose__category-chip.is-selected {
1712
+ border-color: var(--app-portal-fg);
1713
+ background: var(--app-portal-fg);
1714
+ color: var(--app-portal-surface-raised);
1715
+ }
1716
+
1504
1717
  /* ── Mobile ─────────────────────────────────────────────── */
1505
1718
  @media (max-width: 900px) {
1506
1719
  .portal { grid-template-columns: 1fr; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apextelemed/partner-core",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Shared frontend library for telehealth patient portals (api client, stores, headless flows).",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {