@apextelemed/partner-core 0.10.0-dev.21 → 0.10.0-dev.23

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 +21 -2
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +3 -3
  4. package/dist/api/index.jsx +5 -3
  5. package/dist/chunk/{NSEWFPUP.js → 7MCMXXYQ.js} +50 -3
  6. package/dist/chunk/7MCMXXYQ.js.map +1 -0
  7. package/dist/chunk/{TYXWVNC3.js → BNH4UOGN.js} +55 -12
  8. package/dist/chunk/BNH4UOGN.js.map +1 -0
  9. package/dist/chunk/{ET3GPUTR.jsx → CLNLTAG7.jsx} +59 -12
  10. package/dist/chunk/{BALHOD46.jsx → EZG74SQL.jsx} +49 -1
  11. package/dist/chunk/{DHVOZQQ2.js → FA4D2S5A.js} +3 -3
  12. package/dist/chunk/{DHVOZQQ2.js.map → FA4D2S5A.js.map} +1 -1
  13. package/dist/chunk/{OA3A3PUC.jsx → FM3JH2ZD.jsx} +1638 -860
  14. package/dist/chunk/{L2ZMGXWR.js → JKUWPGEW.js} +31 -6
  15. package/dist/chunk/JKUWPGEW.js.map +1 -0
  16. package/dist/chunk/{JL7B6RHG.js → M2LV5JQD.js} +3 -3
  17. package/dist/chunk/{JL7B6RHG.js.map → M2LV5JQD.js.map} +1 -1
  18. package/dist/chunk/{CYGHTTCA.js → NHNMRJL6.js} +1715 -905
  19. package/dist/chunk/NHNMRJL6.js.map +1 -0
  20. package/dist/chunk/{DBW2RWHV.jsx → RRKAKQ77.jsx} +2 -2
  21. package/dist/chunk/{QIBVNW2V.jsx → VF7FTWCG.jsx} +2 -2
  22. package/dist/chunk/{75F4YFYC.jsx → VG35MW6B.jsx} +33 -4
  23. package/dist/chunk/{ZW2HBOS5.jsx → XW4PEQPI.jsx} +2 -2
  24. package/dist/chunk/{4CTTOSOW.js → XZXPLS3K.js} +3 -3
  25. package/dist/chunk/{4CTTOSOW.js.map → XZXPLS3K.js.map} +1 -1
  26. package/dist/{client-CDpCqI4d.d.ts → client-DsIvVM5a.d.ts} +143 -1
  27. package/dist/flows/index.d.ts +213 -141
  28. package/dist/flows/index.js +6 -6
  29. package/dist/flows/index.jsx +16 -6
  30. package/dist/index/index.d.ts +2 -2
  31. package/dist/index/index.js +7 -7
  32. package/dist/index/index.jsx +19 -7
  33. package/dist/pages/index.d.ts +2 -2
  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/admin.css +2 -0
  40. package/package.json +2 -1
  41. package/dist/chunk/CYGHTTCA.js.map +0 -1
  42. package/dist/chunk/L2ZMGXWR.js.map +0 -1
  43. package/dist/chunk/NSEWFPUP.js.map +0 -1
  44. package/dist/chunk/TYXWVNC3.js.map +0 -1
@@ -1,10 +1,11 @@
1
1
  import "../chunk/ACE7M2YA.jsx";
2
2
  import {
3
+ OFFER_BEATS_PROMO_NOTICE,
3
4
  restoreCartFromLink,
4
5
  startCartCapture,
5
6
  useSubscriptionIntakeFlow,
6
7
  validateResumedPromo
7
- } from "../chunk/ET3GPUTR.jsx";
8
+ } from "../chunk/CLNLTAG7.jsx";
8
9
  import {
9
10
  adoptCartId,
10
11
  capturePromoCode,
@@ -18,7 +19,7 @@ import {
18
19
  resetCartConfigCache,
19
20
  resetCartId,
20
21
  stripCartToken
21
- } from "../chunk/QIBVNW2V.jsx";
22
+ } from "../chunk/VF7FTWCG.jsx";
22
23
  import {
23
24
  ADMIN_TAB_SEGMENTS,
24
25
  AFFILIATE_SUB_TAB_SEGMENTS,
@@ -46,7 +47,7 @@ import {
46
47
  adminTabPath,
47
48
  affiliateSubTabFromPath,
48
49
  affiliateSubTabPath
49
- } from "../chunk/OA3A3PUC.jsx";
50
+ } from "../chunk/FM3JH2ZD.jsx";
50
51
  import {
51
52
  EmbedApiError,
52
53
  EmbedApiError2,
@@ -71,6 +72,7 @@ import {
71
72
  applyPriceDrafts,
72
73
  availableStateOptions,
73
74
  availableStates,
75
+ bestOfferDiscount,
74
76
  buildFulfillmentRows,
75
77
  buildMatrixView,
76
78
  buildRefillView,
@@ -111,6 +113,9 @@ import {
111
113
  moveInOrder,
112
114
  normalizeState,
113
115
  normalizeStates,
116
+ offerBeatsPromo,
117
+ offerDurationText,
118
+ offerSummaryText,
114
119
  primarySubscription,
115
120
  readinessStatus,
116
121
  reconcileCartAgainstCatalog,
@@ -148,7 +153,7 @@ import {
148
153
  useSurveyV2Flow,
149
154
  useUpdatePaymentMethodFlow,
150
155
  validateAddress
151
- } from "../chunk/75F4YFYC.jsx";
156
+ } from "../chunk/VG35MW6B.jsx";
152
157
  import {
153
158
  adoptFunnelSessionId,
154
159
  captureAuthHeader,
@@ -161,7 +166,7 @@ import {
161
166
  resetFunnelConfigCache,
162
167
  saveFunnelDraft,
163
168
  stripResumeToken
164
- } from "../chunk/ZW2HBOS5.jsx";
169
+ } from "../chunk/XW4PEQPI.jsx";
165
170
  import {
166
171
  PrimitivesProvider,
167
172
  usePrimitives
@@ -175,7 +180,7 @@ import {
175
180
  auth_default,
176
181
  cart_default,
177
182
  medication_default
178
- } from "../chunk/DBW2RWHV.jsx";
183
+ } from "../chunk/RRKAKQ77.jsx";
179
184
  import {
180
185
  ApiError,
181
186
  SUPPORT_ATTACHMENT_MAX_BYTES,
@@ -200,6 +205,7 @@ import {
200
205
  membersApi,
201
206
  messagesApi,
202
207
  newIdempotencyKey,
208
+ offersApi,
203
209
  onTokensCleared,
204
210
  ordersApi,
205
211
  paymentsApi,
@@ -211,7 +217,7 @@ import {
211
217
  subscriptionsApi,
212
218
  supportApi,
213
219
  usersApi
214
- } from "../chunk/BALHOD46.jsx";
220
+ } from "../chunk/EZG74SQL.jsx";
215
221
  import {
216
222
  configure,
217
223
  getConfig
@@ -239,6 +245,7 @@ export {
239
245
  LIFECYCLE_TONE,
240
246
  LIVE_SUBSCRIPTION_STATUSES,
241
247
  MemberPortal,
248
+ OFFER_BEATS_PROMO_NOTICE,
242
249
  ORPHAN_REASON,
243
250
  PatientDashboardPreview,
244
251
  PrimitivesProvider,
@@ -278,6 +285,7 @@ export {
278
285
  auth_default as authStore,
279
286
  availableStateOptions,
280
287
  availableStates,
288
+ bestOfferDiscount,
281
289
  buildFulfillmentRows,
282
290
  buildMatrixView,
283
291
  buildRefillView,
@@ -345,6 +353,10 @@ export {
345
353
  newIdempotencyKey,
346
354
  normalizeState,
347
355
  normalizeStates,
356
+ offerBeatsPromo,
357
+ offerDurationText,
358
+ offerSummaryText,
359
+ offersApi,
348
360
  onTokensCleared,
349
361
  ordersApi,
350
362
  paymentsApi,
@@ -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 { s as AdminLifecycleBucket, z as AdminProduct } from '../client-CDpCqI4d.js';
5
+ import { s as AdminLifecycleBucket, F as AdminProduct } from '../client-DsIvVM5a.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' | 'features';
320
+ | 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'offers' | '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/CYGHTTCA.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/NHNMRJL6.js';
2
2
  import '../chunk/LZWA44KD.js';
3
- import '../chunk/L2ZMGXWR.js';
4
- import '../chunk/JL7B6RHG.js';
3
+ import '../chunk/JKUWPGEW.js';
4
+ import '../chunk/M2LV5JQD.js';
5
5
  import '../chunk/67KHO66G.js';
6
- import '../chunk/DHVOZQQ2.js';
7
- import '../chunk/NSEWFPUP.js';
6
+ import '../chunk/FA4D2S5A.js';
7
+ import '../chunk/7MCMXXYQ.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/OA3A3PUC.jsx";
27
+ } from "../chunk/FM3JH2ZD.jsx";
28
28
  import "../chunk/UZCST66N.jsx";
29
- import "../chunk/75F4YFYC.jsx";
30
- import "../chunk/ZW2HBOS5.jsx";
29
+ import "../chunk/VG35MW6B.jsx";
30
+ import "../chunk/XW4PEQPI.jsx";
31
31
  import "../chunk/J63XPQP4.jsx";
32
- import "../chunk/DBW2RWHV.jsx";
33
- import "../chunk/BALHOD46.jsx";
32
+ import "../chunk/RRKAKQ77.jsx";
33
+ import "../chunk/EZG74SQL.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 { a8 as AuthTokens, bu as User, b4 as RegisterPayload, b3 as RegisterAndSubscribePayload, R as AffiliateAuthTokens, Q as Affiliate, $ as AffiliateRegisterInput } from '../client-CDpCqI4d.js';
2
+ import { ad as AuthTokens, bB as User, bb as RegisterPayload, ba as RegisterAndSubscribePayload, W as AffiliateAuthTokens, V as Affiliate, a4 as AffiliateRegisterInput } from '../client-DsIvVM5a.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/DHVOZQQ2.js';
3
- import '../chunk/NSEWFPUP.js';
2
+ export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/FA4D2S5A.js';
3
+ import '../chunk/7MCMXXYQ.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/DBW2RWHV.jsx";
8
- import "../chunk/BALHOD46.jsx";
7
+ } from "../chunk/RRKAKQ77.jsx";
8
+ import "../chunk/EZG74SQL.jsx";
9
9
  import "../chunk/LDZIUFDM.jsx";
10
10
  export {
11
11
  affiliateAuth_default as affiliateAuthStore,
@@ -1684,6 +1684,8 @@
1684
1684
  .app-admin-email-chip.ProseMirror-selectednode {
1685
1685
  outline: 2px solid #2563eb;
1686
1686
  outline-offset: 1px;
1687
+ }
1688
+
1687
1689
  /* ── Product editor: catalog-backed sections ─────────────────────────────
1688
1690
  Strengths, pharmacies and readiness for a product laid over an Apex catalog
1689
1691
  item. Plain blocks on the admin tokens; no new variables. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apextelemed/partner-core",
3
- "version": "0.10.0-dev.21",
3
+ "version": "0.10.0-dev.23",
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": {
@@ -191,6 +191,7 @@
191
191
  "@supabase/supabase-js": "^2.110.9",
192
192
  "@testing-library/jest-dom": "^6.6.3",
193
193
  "jsdom": "^25.0.1",
194
+ "lightningcss": "1.33.0",
194
195
  "solid-js": "^1.9.5",
195
196
  "tsup": "^8.5.1",
196
197
  "tsup-preset-solid": "^2.2.0",