@apextelemed/partner-core 0.7.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 (43) 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 +5 -3
  4. package/dist/chunk/{4SFB2SS2.jsx → 33QXG46Z.jsx} +2 -2
  5. package/dist/chunk/{J3IRPONP.js → 35C2PAUI.js} +143 -10
  6. package/dist/chunk/35C2PAUI.js.map +1 -0
  7. package/dist/chunk/{J3OK2PQA.js → 65LD7XAZ.js} +3 -3
  8. package/dist/chunk/{J3OK2PQA.js.map → 65LD7XAZ.js.map} +1 -1
  9. package/dist/chunk/{UPZPR5TU.js → 75B7QHIN.js} +32 -7
  10. package/dist/chunk/75B7QHIN.js.map +1 -0
  11. package/dist/chunk/{64RJJFEH.js → AJR7CBZ3.js} +3 -3
  12. package/dist/chunk/{64RJJFEH.js.map → AJR7CBZ3.js.map} +1 -1
  13. package/dist/chunk/{SHXH72AC.jsx → C7RXQWXM.jsx} +24 -5
  14. package/dist/chunk/{CBOGAYTL.jsx → DEDIHIWD.jsx} +2 -2
  15. package/dist/chunk/{7AMVRNYX.jsx → IYLVDYRI.jsx} +1591 -819
  16. package/dist/chunk/{KXO4U2C6.js → JOX6EJMB.js} +23 -6
  17. package/dist/chunk/JOX6EJMB.js.map +1 -0
  18. package/dist/chunk/{F34QLV7Z.js → MCSS436N.js} +1816 -754
  19. package/dist/chunk/MCSS436N.js.map +1 -0
  20. package/dist/chunk/{4S4MTN2K.jsx → MUEGVUP2.jsx} +2 -2
  21. package/dist/chunk/{7AFUT5S3.jsx → NTYUIUQO.jsx} +31 -5
  22. package/dist/chunk/{PA66KUAU.jsx → VKSLQCMA.jsx} +251 -110
  23. package/dist/chunk/{GODF2NJN.js → Y2VD7NYA.js} +3 -3
  24. package/dist/chunk/{GODF2NJN.js.map → Y2VD7NYA.js.map} +1 -1
  25. package/dist/{client-CiHb-dIf.d.ts → client-RY9ghN5Q.d.ts} +80 -5
  26. package/dist/flows/index.d.ts +91 -7
  27. package/dist/flows/index.js +6 -6
  28. package/dist/flows/index.jsx +12 -6
  29. package/dist/index/index.d.ts +2 -2
  30. package/dist/index/index.js +7 -7
  31. package/dist/index/index.jsx +15 -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/F34QLV7Z.js.map +0 -1
  41. package/dist/chunk/J3IRPONP.js.map +0 -1
  42. package/dist/chunk/KXO4U2C6.js.map +0 -1
  43. package/dist/chunk/UPZPR5TU.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import '../chunk/JSHO46VZ.js';
2
- export { restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/KXO4U2C6.js';
3
- export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/64RJJFEH.js';
4
- export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AddressFields, 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/F34QLV7Z.js';
2
+ export { restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/JOX6EJMB.js';
3
+ export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/AJR7CBZ3.js';
4
+ export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AddressFields, 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';
5
5
  export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
6
- export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, deriveAttention, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, resetResumeRedemption, resolveCategoryColor, salePriceForBase, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/J3IRPONP.js';
7
- export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/J3OK2PQA.js';
6
+ export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, resetResumeRedemption, resolveCategoryColor, salePriceForBase, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/35C2PAUI.js';
7
+ export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/65LD7XAZ.js';
8
8
  export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
9
9
  export { defaultPrimitives } from '../chunk/EXXI5Y7I.js';
10
10
  import '../chunk/NVRAOAVV.js';
11
- export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/GODF2NJN.js';
12
- export { ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/UPZPR5TU.js';
11
+ export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/Y2VD7NYA.js';
12
+ export { ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/75B7QHIN.js';
13
13
  export { configure, getConfig } from '../chunk/5XGPFYIJ.js';
14
14
  //# sourceMappingURL=index.js.map
15
15
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@ import {
4
4
  startCartCapture,
5
5
  useSubscriptionIntakeFlow,
6
6
  validateResumedPromo
7
- } from "../chunk/SHXH72AC.jsx";
7
+ } from "../chunk/C7RXQWXM.jsx";
8
8
  import {
9
9
  adoptCartId,
10
10
  capturePromoCode,
@@ -18,7 +18,7 @@ import {
18
18
  resetCartConfigCache,
19
19
  resetCartId,
20
20
  stripCartToken
21
- } from "../chunk/CBOGAYTL.jsx";
21
+ } from "../chunk/DEDIHIWD.jsx";
22
22
  import {
23
23
  ADMIN_TAB_SEGMENTS,
24
24
  AFFILIATE_SUB_TAB_SEGMENTS,
@@ -46,7 +46,7 @@ import {
46
46
  adminTabPath,
47
47
  affiliateSubTabFromPath,
48
48
  affiliateSubTabPath
49
- } from "../chunk/7AMVRNYX.jsx";
49
+ } from "../chunk/IYLVDYRI.jsx";
50
50
  import {
51
51
  EmbedApiError,
52
52
  EmbedApiError2,
@@ -72,9 +72,11 @@ import {
72
72
  buildTrackerView,
73
73
  buildTrackingUrl,
74
74
  captureFunnelEmail,
75
+ catalogUnavailableMessage,
75
76
  categoryColor,
76
77
  createFunnelTelemetry,
77
78
  deriveAttention,
79
+ deriveCatalogAvailabilityDecision,
78
80
  deriveJourney,
79
81
  emailGateAnswered,
80
82
  formatCardNumber,
@@ -112,6 +114,7 @@ import {
112
114
  useCartCheckoutFlow,
113
115
  useCartReconcile,
114
116
  useCatalog,
117
+ useCatalogAvailability,
115
118
  useCheckoutFlow,
116
119
  useDashboardData,
117
120
  useMedicationSelect,
@@ -125,7 +128,7 @@ import {
125
128
  useSurveyV2Flow,
126
129
  useUpdatePaymentMethodFlow,
127
130
  validateAddress
128
- } from "../chunk/PA66KUAU.jsx";
131
+ } from "../chunk/VKSLQCMA.jsx";
129
132
  import {
130
133
  adoptFunnelSessionId,
131
134
  captureAuthHeader,
@@ -138,7 +141,7 @@ import {
138
141
  resetFunnelConfigCache,
139
142
  saveFunnelDraft,
140
143
  stripResumeToken
141
- } from "../chunk/4SFB2SS2.jsx";
144
+ } from "../chunk/33QXG46Z.jsx";
142
145
  import {
143
146
  PrimitivesProvider,
144
147
  usePrimitives
@@ -152,7 +155,7 @@ import {
152
155
  auth_default,
153
156
  cart_default,
154
157
  medication_default
155
- } from "../chunk/4S4MTN2K.jsx";
158
+ } from "../chunk/MUEGVUP2.jsx";
156
159
  import {
157
160
  ApiError,
158
161
  SUPPORT_ATTACHMENT_MAX_BYTES,
@@ -167,6 +170,7 @@ import {
167
170
  authApi,
168
171
  authStorageKey,
169
172
  captureAffiliateRef,
173
+ catalogApi,
170
174
  clearAffiliateRef,
171
175
  clearAffiliateTokens,
172
176
  clearTokens,
@@ -186,7 +190,7 @@ import {
186
190
  subscriptionsApi,
187
191
  supportApi,
188
192
  usersApi
189
- } from "../chunk/7AFUT5S3.jsx";
193
+ } from "../chunk/NTYUIUQO.jsx";
190
194
  import {
191
195
  configure,
192
196
  getConfig
@@ -258,6 +262,8 @@ export {
258
262
  capturePromoCode,
259
263
  cartId,
260
264
  cart_default as cartStore,
265
+ catalogApi,
266
+ catalogUnavailableMessage,
261
267
  categoryColor,
262
268
  clearAffiliateRef,
263
269
  clearAffiliateTokens,
@@ -268,6 +274,7 @@ export {
268
274
  createFunnelTelemetry,
269
275
  defaultPrimitives,
270
276
  deriveAttention,
277
+ deriveCatalogAvailabilityDecision,
271
278
  deriveJourney,
272
279
  disqualificationReasonText,
273
280
  disqualifiedDrugIds,
@@ -344,6 +351,7 @@ export {
344
351
  useCartCheckoutFlow,
345
352
  useCartReconcile,
346
353
  useCatalog,
354
+ useCatalogAvailability,
347
355
  useCheckoutFlow,
348
356
  useDashboardData,
349
357
  useMedicationSelect,
@@ -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-CiHb-dIf.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/F34QLV7Z.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/J3IRPONP.js';
4
- import '../chunk/J3OK2PQA.js';
3
+ import '../chunk/35C2PAUI.js';
4
+ import '../chunk/65LD7XAZ.js';
5
5
  import '../chunk/67KHO66G.js';
6
- import '../chunk/GODF2NJN.js';
7
- import '../chunk/UPZPR5TU.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/7AMVRNYX.jsx";
27
+ } from "../chunk/IYLVDYRI.jsx";
28
28
  import "../chunk/UZCST66N.jsx";
29
- import "../chunk/PA66KUAU.jsx";
30
- import "../chunk/4SFB2SS2.jsx";
29
+ import "../chunk/VKSLQCMA.jsx";
30
+ import "../chunk/33QXG46Z.jsx";
31
31
  import "../chunk/J63XPQP4.jsx";
32
- import "../chunk/4S4MTN2K.jsx";
33
- import "../chunk/7AFUT5S3.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, b5 as User, aJ as RegisterPayload, aI as RegisterAndSubscribePayload, M as AffiliateAuthTokens, L as Affiliate, W as AffiliateRegisterInput } from '../client-CiHb-dIf.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/GODF2NJN.js';
3
- import '../chunk/UPZPR5TU.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/4S4MTN2K.jsx";
8
- import "../chunk/7AFUT5S3.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.7.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": {