@apextelemed/partner-core 0.8.0 → 0.9.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 (41) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/api/index.jsx +3 -3
  4. package/dist/chunk/{QAFLR3EN.jsx → 33QXG46Z.jsx} +2 -2
  5. package/dist/chunk/{HKXDH266.js → 35C2PAUI.js} +14 -7
  6. package/dist/chunk/{HKXDH266.js.map → 35C2PAUI.js.map} +1 -1
  7. package/dist/chunk/{HEQMD3X4.js → 65LD7XAZ.js} +3 -3
  8. package/dist/chunk/{HEQMD3X4.js.map → 65LD7XAZ.js.map} +1 -1
  9. package/dist/chunk/{RUA3XYFO.js → 75B7QHIN.js} +23 -6
  10. package/dist/chunk/75B7QHIN.js.map +1 -0
  11. package/dist/chunk/{ZOZBYBNI.js → AJR7CBZ3.js} +3 -3
  12. package/dist/chunk/{ZOZBYBNI.js.map → AJR7CBZ3.js.map} +1 -1
  13. package/dist/chunk/{6UXFHBE2.jsx → C7RXQWXM.jsx} +5 -5
  14. package/dist/chunk/{2OOCTPLG.jsx → DEDIHIWD.jsx} +2 -2
  15. package/dist/chunk/{GNPMRN6O.jsx → IYLVDYRI.jsx} +1504 -789
  16. package/dist/chunk/{EHKYRS2R.js → JOX6EJMB.js} +6 -6
  17. package/dist/chunk/{EHKYRS2R.js.map → JOX6EJMB.js.map} +1 -1
  18. package/dist/chunk/{HYLIHVIE.js → MCSS436N.js} +1592 -590
  19. package/dist/chunk/MCSS436N.js.map +1 -0
  20. package/dist/chunk/{GL3OY7W5.jsx → MUEGVUP2.jsx} +2 -2
  21. package/dist/chunk/{JF2KCOOX.jsx → NTYUIUQO.jsx} +22 -5
  22. package/dist/chunk/{AW6DQGQR.jsx → VKSLQCMA.jsx} +13 -5
  23. package/dist/chunk/{4HOG2LES.js → Y2VD7NYA.js} +3 -3
  24. package/dist/chunk/{4HOG2LES.js.map → Y2VD7NYA.js.map} +1 -1
  25. package/dist/{client-ZnA3JEbd.d.ts → client-RY9ghN5Q.d.ts} +53 -5
  26. package/dist/flows/index.d.ts +1 -6
  27. package/dist/flows/index.js +6 -6
  28. package/dist/flows/index.jsx +6 -6
  29. package/dist/index/index.d.ts +1 -1
  30. package/dist/index/index.js +7 -7
  31. package/dist/index/index.jsx +7 -7
  32. package/dist/pages/index.d.ts +2 -2
  33. package/dist/pages/index.js +5 -5
  34. package/dist/pages/index.jsx +5 -5
  35. package/dist/stores/index.d.ts +1 -1
  36. package/dist/stores/index.js +2 -2
  37. package/dist/stores/index.jsx +2 -2
  38. package/dist/theme/admin.css +262 -0
  39. package/package.json +4 -1
  40. package/dist/chunk/HYLIHVIE.js.map +0 -1
  41. package/dist/chunk/RUA3XYFO.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 { r as AdminLifecycleBucket, w as AdminProduct } from '../client-ZnA3JEbd.js';
5
+ import { r as AdminLifecycleBucket, w as AdminProduct } from '../client-RY9ghN5Q.js';
6
6
  import '@apextelemed/survey-solid';
7
7
 
8
8
  interface SurveyPageProps {
@@ -317,7 +317,7 @@ interface AdminAuthAdapter {
317
317
  }
318
318
  type AdminTab = 'dashboard' | 'customers' | 'payments'
319
319
  /** @deprecated Subscriptions live in the customer 360; this id renders the Customers tab filtered to active subscribers. */
320
- | 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'affiliates' | 'support' | 'webhooks' | 'email-templates' | 'funnel' | 'sequences' | 'email-notifications';
320
+ | 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'affiliates' | 'support' | 'webhooks' | 'email-templates' | 'funnel' | 'sequences' | 'email-notifications' | 'features';
321
321
  interface AdminTabGroup {
322
322
  /** Section header rendered above the items (uppercase, muted). */
323
323
  label: string;
@@ -1,10 +1,10 @@
1
- export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/HYLIHVIE.js';
1
+ export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/MCSS436N.js';
2
2
  import '../chunk/LZWA44KD.js';
3
- import '../chunk/HKXDH266.js';
4
- import '../chunk/HEQMD3X4.js';
3
+ import '../chunk/35C2PAUI.js';
4
+ import '../chunk/65LD7XAZ.js';
5
5
  import '../chunk/67KHO66G.js';
6
- import '../chunk/4HOG2LES.js';
7
- import '../chunk/RUA3XYFO.js';
6
+ import '../chunk/Y2VD7NYA.js';
7
+ import '../chunk/75B7QHIN.js';
8
8
  import '../chunk/5XGPFYIJ.js';
9
9
  //# sourceMappingURL=index.js.map
10
10
  //# sourceMappingURL=index.js.map
@@ -24,13 +24,13 @@ import {
24
24
  adminTabPath,
25
25
  affiliateSubTabFromPath,
26
26
  affiliateSubTabPath
27
- } from "../chunk/GNPMRN6O.jsx";
27
+ } from "../chunk/IYLVDYRI.jsx";
28
28
  import "../chunk/UZCST66N.jsx";
29
- import "../chunk/AW6DQGQR.jsx";
30
- import "../chunk/QAFLR3EN.jsx";
29
+ import "../chunk/VKSLQCMA.jsx";
30
+ import "../chunk/33QXG46Z.jsx";
31
31
  import "../chunk/J63XPQP4.jsx";
32
- import "../chunk/GL3OY7W5.jsx";
33
- import "../chunk/JF2KCOOX.jsx";
32
+ import "../chunk/MUEGVUP2.jsx";
33
+ import "../chunk/NTYUIUQO.jsx";
34
34
  import "../chunk/LDZIUFDM.jsx";
35
35
  export {
36
36
  ADMIN_TAB_SEGMENTS,
@@ -1,5 +1,5 @@
1
1
  import * as solid_js from 'solid-js';
2
- import { a3 as AuthTokens, b8 as User, aM as RegisterPayload, aL as RegisterAndSubscribePayload, M as AffiliateAuthTokens, L as Affiliate, W as AffiliateRegisterInput } from '../client-ZnA3JEbd.js';
2
+ import { a3 as AuthTokens, bb as User, aN as RegisterPayload, aM as RegisterAndSubscribePayload, M as AffiliateAuthTokens, L as Affiliate, W as AffiliateRegisterInput } from '../client-RY9ghN5Q.js';
3
3
  export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-o6DpAu5y.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/4HOG2LES.js';
3
- import '../chunk/RUA3XYFO.js';
2
+ export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/Y2VD7NYA.js';
3
+ import '../chunk/75B7QHIN.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/GL3OY7W5.jsx";
8
- import "../chunk/JF2KCOOX.jsx";
7
+ } from "../chunk/MUEGVUP2.jsx";
8
+ import "../chunk/NTYUIUQO.jsx";
9
9
  import "../chunk/LDZIUFDM.jsx";
10
10
  export {
11
11
  affiliateAuth_default as affiliateAuthStore,
@@ -1416,3 +1416,265 @@
1416
1416
  display: flex;
1417
1417
  }
1418
1418
  }
1419
+
1420
+ /* ── Email template editor ───────────────────────────────────────────
1421
+ * The frame (toolbar, link panel, canvas) follows the admin theme. The page
1422
+ * inside it deliberately does not: it is a preview of the email, which is
1423
+ * dark text on white whatever the admin console looks like. */
1424
+
1425
+ .app-admin-email-editor {
1426
+ border: 1px solid var(--app-admin-border-strong);
1427
+ border-radius: var(--app-admin-radius-sm);
1428
+ background: var(--app-admin-surface);
1429
+ }
1430
+
1431
+ .app-admin-email-toolbar {
1432
+ display: flex;
1433
+ flex-wrap: wrap;
1434
+ align-items: center;
1435
+ gap: 0.25rem;
1436
+ padding: 0.375rem;
1437
+ border-bottom: 1px solid var(--app-admin-border);
1438
+ }
1439
+
1440
+ .app-admin-email-tool {
1441
+ min-width: 2rem;
1442
+ height: 2rem;
1443
+ padding: 0 0.55rem;
1444
+ font: inherit;
1445
+ font-size: 0.8rem;
1446
+ line-height: 1;
1447
+ color: var(--app-admin-fg-muted);
1448
+ background: transparent;
1449
+ border: 1px solid transparent;
1450
+ border-radius: var(--app-admin-radius-sm);
1451
+ cursor: pointer;
1452
+ white-space: nowrap;
1453
+ }
1454
+ .app-admin-email-tool:hover:not(:disabled) {
1455
+ color: var(--app-admin-fg);
1456
+ background: var(--app-admin-surface-light);
1457
+ }
1458
+ .app-admin-email-tool[aria-pressed='true'],
1459
+ .app-admin-email-tool[aria-expanded='true'] {
1460
+ color: var(--app-admin-primary-soft-fg);
1461
+ background: var(--app-admin-primary-soft);
1462
+ }
1463
+ .app-admin-email-tool:focus-visible,
1464
+ .app-admin-email-menu-item:focus-visible,
1465
+ .app-admin-email-token-btn:focus-visible {
1466
+ outline: 2px solid var(--app-admin-primary);
1467
+ outline-offset: 1px;
1468
+ }
1469
+ .app-admin-email-tool:disabled {
1470
+ opacity: 0.45;
1471
+ cursor: not-allowed;
1472
+ }
1473
+
1474
+ .app-admin-email-tool-sep {
1475
+ width: 1px;
1476
+ height: 1.25rem;
1477
+ margin: 0 0.25rem;
1478
+ background: var(--app-admin-border-strong);
1479
+ }
1480
+
1481
+ .app-admin-email-menu-wrap {
1482
+ position: relative;
1483
+ }
1484
+ .app-admin-email-menu {
1485
+ position: absolute;
1486
+ top: calc(100% + 0.25rem);
1487
+ left: 0;
1488
+ z-index: 20;
1489
+ display: flex;
1490
+ flex-direction: column;
1491
+ width: max-content;
1492
+ max-width: min(24rem, 80vw);
1493
+ max-height: 18rem;
1494
+ overflow-y: auto;
1495
+ padding: 0.25rem;
1496
+ background: var(--app-admin-surface);
1497
+ border: 1px solid var(--app-admin-border-strong);
1498
+ border-radius: var(--app-admin-radius-sm);
1499
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
1500
+ }
1501
+ .app-admin-email-menu-item {
1502
+ display: flex;
1503
+ flex-direction: column;
1504
+ gap: 0.125rem;
1505
+ padding: 0.4rem 0.6rem;
1506
+ font: inherit;
1507
+ text-align: left;
1508
+ color: var(--app-admin-fg);
1509
+ background: transparent;
1510
+ border: none;
1511
+ border-radius: var(--app-admin-radius-sm);
1512
+ cursor: pointer;
1513
+ }
1514
+ .app-admin-email-menu-item:hover,
1515
+ .app-admin-email-menu-item:focus {
1516
+ background: var(--app-admin-surface-light);
1517
+ }
1518
+ .app-admin-email-menu-token {
1519
+ font-family: var(--app-admin-font-mono);
1520
+ font-size: 0.75rem;
1521
+ }
1522
+ .app-admin-email-menu-desc {
1523
+ font-size: 0.72rem;
1524
+ color: var(--app-admin-fg-muted);
1525
+ }
1526
+
1527
+ /* The placeholder bar above the subject line. */
1528
+ .app-admin-email-token-btn {
1529
+ font-family: var(--app-admin-font-mono);
1530
+ font-size: 0.72rem;
1531
+ padding: 0.2rem 0.45rem;
1532
+ color: var(--app-admin-fg);
1533
+ background: var(--app-admin-surface);
1534
+ border: 1px solid var(--app-admin-border);
1535
+ border-radius: var(--app-admin-radius-sm);
1536
+ cursor: pointer;
1537
+ }
1538
+ .app-admin-email-token-btn:disabled {
1539
+ opacity: 0.45;
1540
+ cursor: not-allowed;
1541
+ }
1542
+
1543
+ /* Link / button target panel, between the toolbar and the page. */
1544
+ .app-admin-email-dialog {
1545
+ display: flex;
1546
+ flex-wrap: wrap;
1547
+ align-items: flex-end;
1548
+ gap: 0.75rem;
1549
+ padding: 0.75rem;
1550
+ background: var(--app-admin-surface-light);
1551
+ border-bottom: 1px solid var(--app-admin-border);
1552
+ }
1553
+ .app-admin-email-dialog-field {
1554
+ display: flex;
1555
+ flex: 1 1 14rem;
1556
+ flex-direction: column;
1557
+ gap: 0.25rem;
1558
+ font-size: 0.75rem;
1559
+ color: var(--app-admin-fg-muted);
1560
+ }
1561
+ .app-admin-email-dialog-field .app-admin-input {
1562
+ box-sizing: border-box;
1563
+ width: 100%;
1564
+ }
1565
+ .app-admin-email-dialog-actions {
1566
+ display: flex;
1567
+ flex-wrap: wrap;
1568
+ gap: 0.5rem;
1569
+ }
1570
+ .app-admin-email-dialog .app-admin-field-error {
1571
+ flex-basis: 100%;
1572
+ margin: 0;
1573
+ }
1574
+
1575
+ .app-admin-email-canvas {
1576
+ padding: 1rem;
1577
+ background: var(--app-admin-bg);
1578
+ border-radius: 0 0 var(--app-admin-radius-sm) var(--app-admin-radius-sm);
1579
+ }
1580
+ .app-admin-email-page {
1581
+ max-width: 600px;
1582
+ margin: 0 auto;
1583
+ background: #ffffff;
1584
+ border-radius: 4px;
1585
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
1586
+ }
1587
+
1588
+ .app-admin-email-surface {
1589
+ min-height: 16rem;
1590
+ padding: 2rem;
1591
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
1592
+ font-size: 16px;
1593
+ line-height: 1.6;
1594
+ color: #1f2933;
1595
+ outline: none;
1596
+ white-space: pre-wrap;
1597
+ overflow-wrap: anywhere;
1598
+ }
1599
+ .app-admin-email-page:focus-within {
1600
+ box-shadow: 0 0 0 2px var(--app-admin-primary);
1601
+ }
1602
+ .app-admin-email-surface > :first-child {
1603
+ margin-top: 0;
1604
+ }
1605
+ .app-admin-email-surface > :last-child {
1606
+ margin-bottom: 0;
1607
+ }
1608
+ .app-admin-email-surface p {
1609
+ margin: 0 0 1em;
1610
+ }
1611
+ .app-admin-email-surface h2 {
1612
+ margin: 1.25em 0 0.5em;
1613
+ font-size: 1.375rem;
1614
+ font-weight: 700;
1615
+ line-height: 1.3;
1616
+ color: #111827;
1617
+ }
1618
+ .app-admin-email-surface ul,
1619
+ .app-admin-email-surface ol {
1620
+ margin: 0 0 1em;
1621
+ padding-left: 1.5em;
1622
+ }
1623
+ .app-admin-email-surface ul {
1624
+ list-style: disc;
1625
+ }
1626
+ .app-admin-email-surface ol {
1627
+ list-style: decimal;
1628
+ }
1629
+ .app-admin-email-surface li > p {
1630
+ margin: 0;
1631
+ }
1632
+ .app-admin-email-surface a:not(.app-admin-email-button) {
1633
+ color: #1d4ed8;
1634
+ text-decoration: underline;
1635
+ cursor: text;
1636
+ }
1637
+ .app-admin-email-surface .app-admin-email-button {
1638
+ display: block;
1639
+ width: fit-content;
1640
+ min-width: 6rem;
1641
+ margin: 1.25em 0;
1642
+ padding: 0.7em 1.5em;
1643
+ font-weight: 600;
1644
+ text-align: center;
1645
+ text-decoration: none;
1646
+ color: #ffffff;
1647
+ background: #1f2933;
1648
+ border-radius: 6px;
1649
+ cursor: text;
1650
+ }
1651
+
1652
+ .app-admin-email-chip {
1653
+ display: inline-block;
1654
+ padding: 0 0.35em;
1655
+ font-family: ui-monospace, 'SF Mono', Menlo, monospace;
1656
+ font-size: 0.8em;
1657
+ line-height: 1.5;
1658
+ white-space: nowrap;
1659
+ color: #1e3a8a;
1660
+ background: #dbeafe;
1661
+ border: 1px solid #93c5fd;
1662
+ border-radius: 4px;
1663
+ cursor: default;
1664
+ user-select: none;
1665
+ }
1666
+ .app-admin-email-button .app-admin-email-chip {
1667
+ color: #ffffff;
1668
+ background: rgba(255, 255, 255, 0.18);
1669
+ border-color: rgba(255, 255, 255, 0.45);
1670
+ }
1671
+ .app-admin-email-chip--unknown {
1672
+ color: #991b1b;
1673
+ background: #fee2e2;
1674
+ border-color: #f87171;
1675
+ text-decoration: line-through;
1676
+ }
1677
+ .app-admin-email-chip.ProseMirror-selectednode {
1678
+ outline: 2px solid #2563eb;
1679
+ outline-offset: 1px;
1680
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apextelemed/partner-core",
3
- "version": "0.8.0",
3
+ "version": "0.9.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": {
@@ -167,6 +167,9 @@
167
167
  "dependencies": {
168
168
  "@apextelemed/survey-core": "^0.2.0",
169
169
  "@apextelemed/survey-solid": "^0.2.0",
170
+ "@tiptap/core": "^3.31.4",
171
+ "@tiptap/pm": "^3.31.4",
172
+ "@tiptap/starter-kit": "^3.31.4",
170
173
  "dompurify": "^3.4.14"
171
174
  },
172
175
  "peerDependencies": {