@apextelemed/partner-core 0.6.4 → 0.8.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.
- package/README.md +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +5 -3
- package/dist/{cart-D4mVX_zx.d.ts → cart-o6DpAu5y.d.ts} +1 -0
- package/dist/chunk/{4ZSZHZQV.jsx → 2OOCTPLG.jsx} +2 -2
- package/dist/chunk/{MLXPHJLR.js → 4HOG2LES.js} +7 -3
- package/dist/chunk/4HOG2LES.js.map +1 -0
- package/dist/chunk/{5HNZ7SEM.jsx → 6UXFHBE2.jsx} +45 -219
- package/dist/chunk/{HXMLRDIJ.jsx → AW6DQGQR.jsx} +647 -122
- package/dist/chunk/{NSRQXBHK.js → EHKYRS2R.js} +25 -189
- package/dist/chunk/EHKYRS2R.js.map +1 -0
- package/dist/chunk/{YJEHCCLY.js → EXXI5Y7I.js} +4 -3
- package/dist/chunk/EXXI5Y7I.js.map +1 -0
- package/dist/chunk/{WLEIDQ5M.jsx → GL3OY7W5.jsx} +6 -2
- package/dist/chunk/{ZDBW3JDO.jsx → GNPMRN6O.jsx} +3348 -1428
- package/dist/chunk/{QTGJY3YQ.js → HEQMD3X4.js} +3 -3
- package/dist/chunk/{QTGJY3YQ.js.map → HEQMD3X4.js.map} +1 -1
- package/dist/chunk/{WUE4VQBA.js → HKXDH266.js} +520 -23
- package/dist/chunk/HKXDH266.js.map +1 -0
- package/dist/chunk/{MTCQREMZ.js → HYLIHVIE.js} +4176 -2111
- package/dist/chunk/HYLIHVIE.js.map +1 -0
- package/dist/chunk/{EVCGDF5D.jsx → JF2KCOOX.jsx} +18 -1
- package/dist/chunk/{NBB2VTQK.jsx → QAFLR3EN.jsx} +2 -2
- package/dist/chunk/{2OXI5TKO.jsx → RSMUKR4J.jsx} +3 -2
- package/dist/chunk/{BEDW4XUM.js → RUA3XYFO.js} +19 -3
- package/dist/chunk/RUA3XYFO.js.map +1 -0
- package/dist/chunk/{BVLA7ATM.js → ZOZBYBNI.js} +3 -3
- package/dist/chunk/{BVLA7ATM.js.map → ZOZBYBNI.js.map} +1 -1
- package/dist/{client-B6Kt7LWo.d.ts → client-ZnA3JEbd.d.ts} +91 -8
- package/dist/flows/index.d.ts +246 -13
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +31 -13
- package/dist/index/index.d.ts +4 -4
- package/dist/index/index.js +8 -8
- package/dist/index/index.jsx +48 -16
- package/dist/pages/index.d.ts +41 -6
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +19 -7
- package/dist/primitives/default/index.js +1 -1
- package/dist/primitives/default/index.jsx +1 -1
- package/dist/stores/index.d.ts +2 -2
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/dist/testing/seam-suite.js +1 -1
- package/dist/theme/admin.css +406 -1
- package/dist/theme/member-portal.css +5 -5
- package/package.json +1 -1
- package/dist/chunk/BEDW4XUM.js.map +0 -1
- package/dist/chunk/MLXPHJLR.js.map +0 -1
- package/dist/chunk/MTCQREMZ.js.map +0 -1
- package/dist/chunk/NSRQXBHK.js.map +0 -1
- package/dist/chunk/WUE4VQBA.js.map +0 -1
- package/dist/chunk/YJEHCCLY.js.map +0 -1
package/dist/index/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../chunk/JSHO46VZ.js';
|
|
2
|
-
export {
|
|
3
|
-
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/
|
|
4
|
-
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/
|
|
2
|
+
export { restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/EHKYRS2R.js';
|
|
3
|
+
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/ZOZBYBNI.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/HYLIHVIE.js';
|
|
5
5
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
6
|
-
export { 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, createFunnelTelemetry, deriveAttention, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lifecycleReason, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
7
|
-
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/
|
|
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/HKXDH266.js';
|
|
7
|
+
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/HEQMD3X4.js';
|
|
8
8
|
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
9
|
-
export { defaultPrimitives } from '../chunk/
|
|
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/
|
|
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/
|
|
11
|
+
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/4HOG2LES.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/RUA3XYFO.js';
|
|
13
13
|
export { configure, getConfig } from '../chunk/5XGPFYIJ.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index/index.jsx
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import "../chunk/ACE7M2YA.jsx";
|
|
2
2
|
import {
|
|
3
|
-
DEFAULT_COLOR_PALETTE,
|
|
4
|
-
categoryColor,
|
|
5
|
-
lowestPrice,
|
|
6
|
-
lowestSalePrice,
|
|
7
3
|
restoreCartFromLink,
|
|
8
4
|
startCartCapture,
|
|
9
|
-
useCatalog,
|
|
10
|
-
useMedicationSelect,
|
|
11
|
-
useProductDetail,
|
|
12
5
|
useSubscriptionIntakeFlow,
|
|
13
6
|
validateResumedPromo
|
|
14
|
-
} from "../chunk/
|
|
7
|
+
} from "../chunk/6UXFHBE2.jsx";
|
|
15
8
|
import {
|
|
16
9
|
adoptCartId,
|
|
17
10
|
capturePromoCode,
|
|
@@ -25,8 +18,10 @@ import {
|
|
|
25
18
|
resetCartConfigCache,
|
|
26
19
|
resetCartId,
|
|
27
20
|
stripCartToken
|
|
28
|
-
} from "../chunk/
|
|
21
|
+
} from "../chunk/2OOCTPLG.jsx";
|
|
29
22
|
import {
|
|
23
|
+
ADMIN_TAB_SEGMENTS,
|
|
24
|
+
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
30
25
|
AddressFields,
|
|
31
26
|
AdminDashboard,
|
|
32
27
|
AffiliateForgotPassword,
|
|
@@ -46,8 +41,12 @@ import {
|
|
|
46
41
|
SubscribePage,
|
|
47
42
|
SurveyPage,
|
|
48
43
|
SurveyV2Page,
|
|
49
|
-
UpdatePaymentMethod
|
|
50
|
-
|
|
44
|
+
UpdatePaymentMethod,
|
|
45
|
+
adminTabFromPath,
|
|
46
|
+
adminTabPath,
|
|
47
|
+
affiliateSubTabFromPath,
|
|
48
|
+
affiliateSubTabPath
|
|
49
|
+
} from "../chunk/GNPMRN6O.jsx";
|
|
51
50
|
import {
|
|
52
51
|
EmbedApiError,
|
|
53
52
|
EmbedApiError2,
|
|
@@ -57,6 +56,7 @@ import {
|
|
|
57
56
|
qualifiedDrugIds
|
|
58
57
|
} from "../chunk/UZCST66N.jsx";
|
|
59
58
|
import {
|
|
59
|
+
DEFAULT_COLOR_PALETTE,
|
|
60
60
|
LIFECYCLE_BUCKETS,
|
|
61
61
|
LIFECYCLE_LABEL,
|
|
62
62
|
LIFECYCLE_TONE,
|
|
@@ -72,8 +72,11 @@ import {
|
|
|
72
72
|
buildTrackerView,
|
|
73
73
|
buildTrackingUrl,
|
|
74
74
|
captureFunnelEmail,
|
|
75
|
+
catalogUnavailableMessage,
|
|
76
|
+
categoryColor,
|
|
75
77
|
createFunnelTelemetry,
|
|
76
78
|
deriveAttention,
|
|
79
|
+
deriveCatalogAvailabilityDecision,
|
|
77
80
|
deriveJourney,
|
|
78
81
|
emailGateAnswered,
|
|
79
82
|
formatCardNumber,
|
|
@@ -85,15 +88,22 @@ import {
|
|
|
85
88
|
formatRelativeTime,
|
|
86
89
|
formatStageDate,
|
|
87
90
|
hasErrors,
|
|
91
|
+
isCssColorValue,
|
|
88
92
|
isLive,
|
|
89
93
|
isQuestionVisible,
|
|
90
94
|
isReconcilable,
|
|
91
95
|
lifecycleReason,
|
|
96
|
+
lowestPrice,
|
|
97
|
+
lowestSalePrice,
|
|
92
98
|
markEmailGateAnswered,
|
|
93
99
|
normalizeState,
|
|
94
100
|
primarySubscription,
|
|
101
|
+
reconcileCartAgainstCatalog,
|
|
102
|
+
reconcileCartLines,
|
|
95
103
|
redeemResumeLink,
|
|
96
104
|
resetResumeRedemption,
|
|
105
|
+
resolveCategoryColor,
|
|
106
|
+
salePriceForBase,
|
|
97
107
|
stateAvailabilityNote,
|
|
98
108
|
toTrackerRequest,
|
|
99
109
|
useAddressPair,
|
|
@@ -102,10 +112,15 @@ import {
|
|
|
102
112
|
useAffiliateLinks,
|
|
103
113
|
useAffiliateStats,
|
|
104
114
|
useCartCheckoutFlow,
|
|
115
|
+
useCartReconcile,
|
|
116
|
+
useCatalog,
|
|
117
|
+
useCatalogAvailability,
|
|
105
118
|
useCheckoutFlow,
|
|
106
119
|
useDashboardData,
|
|
120
|
+
useMedicationSelect,
|
|
107
121
|
useMemberPortalData,
|
|
108
122
|
useMessagesThread,
|
|
123
|
+
useProductDetail,
|
|
109
124
|
useRegisterFlow,
|
|
110
125
|
useSignupFlow,
|
|
111
126
|
useSubscribeFlow,
|
|
@@ -113,7 +128,7 @@ import {
|
|
|
113
128
|
useSurveyV2Flow,
|
|
114
129
|
useUpdatePaymentMethodFlow,
|
|
115
130
|
validateAddress
|
|
116
|
-
} from "../chunk/
|
|
131
|
+
} from "../chunk/AW6DQGQR.jsx";
|
|
117
132
|
import {
|
|
118
133
|
adoptFunnelSessionId,
|
|
119
134
|
captureAuthHeader,
|
|
@@ -126,21 +141,21 @@ import {
|
|
|
126
141
|
resetFunnelConfigCache,
|
|
127
142
|
saveFunnelDraft,
|
|
128
143
|
stripResumeToken
|
|
129
|
-
} from "../chunk/
|
|
144
|
+
} from "../chunk/QAFLR3EN.jsx";
|
|
130
145
|
import {
|
|
131
146
|
PrimitivesProvider,
|
|
132
147
|
usePrimitives
|
|
133
148
|
} from "../chunk/J63XPQP4.jsx";
|
|
134
149
|
import {
|
|
135
150
|
defaultPrimitives
|
|
136
|
-
} from "../chunk/
|
|
151
|
+
} from "../chunk/RSMUKR4J.jsx";
|
|
137
152
|
import "../chunk/3A3MF7R2.jsx";
|
|
138
153
|
import {
|
|
139
154
|
affiliateAuth_default,
|
|
140
155
|
auth_default,
|
|
141
156
|
cart_default,
|
|
142
157
|
medication_default
|
|
143
|
-
} from "../chunk/
|
|
158
|
+
} from "../chunk/GL3OY7W5.jsx";
|
|
144
159
|
import {
|
|
145
160
|
ApiError,
|
|
146
161
|
SUPPORT_ATTACHMENT_MAX_BYTES,
|
|
@@ -155,6 +170,7 @@ import {
|
|
|
155
170
|
authApi,
|
|
156
171
|
authStorageKey,
|
|
157
172
|
captureAffiliateRef,
|
|
173
|
+
catalogApi,
|
|
158
174
|
clearAffiliateRef,
|
|
159
175
|
clearAffiliateTokens,
|
|
160
176
|
clearTokens,
|
|
@@ -174,12 +190,14 @@ import {
|
|
|
174
190
|
subscriptionsApi,
|
|
175
191
|
supportApi,
|
|
176
192
|
usersApi
|
|
177
|
-
} from "../chunk/
|
|
193
|
+
} from "../chunk/JF2KCOOX.jsx";
|
|
178
194
|
import {
|
|
179
195
|
configure,
|
|
180
196
|
getConfig
|
|
181
197
|
} from "../chunk/LDZIUFDM.jsx";
|
|
182
198
|
export {
|
|
199
|
+
ADMIN_TAB_SEGMENTS,
|
|
200
|
+
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
183
201
|
AddressFields,
|
|
184
202
|
AdminDashboard,
|
|
185
203
|
AffiliateForgotPassword,
|
|
@@ -218,11 +236,15 @@ export {
|
|
|
218
236
|
addressesApi,
|
|
219
237
|
adminAffiliatesApi,
|
|
220
238
|
adminApi,
|
|
239
|
+
adminTabFromPath,
|
|
240
|
+
adminTabPath,
|
|
221
241
|
adoptCartId,
|
|
222
242
|
adoptFunnelSessionId,
|
|
223
243
|
affiliateAuthStorageKey,
|
|
224
244
|
affiliateAuth_default as affiliateAuthStore,
|
|
225
245
|
affiliatePortalApi,
|
|
246
|
+
affiliateSubTabFromPath,
|
|
247
|
+
affiliateSubTabPath,
|
|
226
248
|
apexApi,
|
|
227
249
|
apiFetch,
|
|
228
250
|
authApi,
|
|
@@ -240,6 +262,8 @@ export {
|
|
|
240
262
|
capturePromoCode,
|
|
241
263
|
cartId,
|
|
242
264
|
cart_default as cartStore,
|
|
265
|
+
catalogApi,
|
|
266
|
+
catalogUnavailableMessage,
|
|
243
267
|
categoryColor,
|
|
244
268
|
clearAffiliateRef,
|
|
245
269
|
clearAffiliateTokens,
|
|
@@ -250,6 +274,7 @@ export {
|
|
|
250
274
|
createFunnelTelemetry,
|
|
251
275
|
defaultPrimitives,
|
|
252
276
|
deriveAttention,
|
|
277
|
+
deriveCatalogAvailabilityDecision,
|
|
253
278
|
deriveJourney,
|
|
254
279
|
disqualificationReasonText,
|
|
255
280
|
disqualifiedDrugIds,
|
|
@@ -271,6 +296,7 @@ export {
|
|
|
271
296
|
getConfig,
|
|
272
297
|
getTokens,
|
|
273
298
|
hasErrors,
|
|
299
|
+
isCssColorValue,
|
|
274
300
|
isLive,
|
|
275
301
|
isQuestionVisible,
|
|
276
302
|
isReconcilable,
|
|
@@ -297,12 +323,16 @@ export {
|
|
|
297
323
|
readCartToken,
|
|
298
324
|
readPromoCode,
|
|
299
325
|
readResumeToken,
|
|
326
|
+
reconcileCartAgainstCatalog,
|
|
327
|
+
reconcileCartLines,
|
|
300
328
|
redeemResumeLink,
|
|
301
329
|
resetCartConfigCache,
|
|
302
330
|
resetCartId,
|
|
303
331
|
resetFunnelConfigCache,
|
|
304
332
|
resetResumeRedemption,
|
|
333
|
+
resolveCategoryColor,
|
|
305
334
|
restoreCartFromLink,
|
|
335
|
+
salePriceForBase,
|
|
306
336
|
saveFunnelDraft,
|
|
307
337
|
setAffiliateTokens,
|
|
308
338
|
setTokens,
|
|
@@ -319,7 +349,9 @@ export {
|
|
|
319
349
|
useAffiliateLinks,
|
|
320
350
|
useAffiliateStats,
|
|
321
351
|
useCartCheckoutFlow,
|
|
352
|
+
useCartReconcile,
|
|
322
353
|
useCatalog,
|
|
354
|
+
useCatalogAvailability,
|
|
323
355
|
useCheckoutFlow,
|
|
324
356
|
useDashboardData,
|
|
325
357
|
useMedicationSelect,
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -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 {
|
|
5
|
+
import { r as AdminLifecycleBucket, w as AdminProduct } from '../client-ZnA3JEbd.js';
|
|
6
6
|
import '@apextelemed/survey-solid';
|
|
7
7
|
|
|
8
8
|
interface SurveyPageProps {
|
|
@@ -97,7 +97,7 @@ interface CheckoutPageProps {
|
|
|
97
97
|
* once a prescriber has approved the request — a `pending` request renders the
|
|
98
98
|
* "under review" screen. `'upfront'` (pay-before-review) shows the card form
|
|
99
99
|
* immediately on a `pending` request, so the customer pays right after the
|
|
100
|
-
* survey; the backend still holds
|
|
100
|
+
* survey; the backend still holds fulfillment until approval.
|
|
101
101
|
*/
|
|
102
102
|
paymentMode?: 'on_approval' | 'upfront';
|
|
103
103
|
}
|
|
@@ -154,6 +154,14 @@ interface SignupPageProps {
|
|
|
154
154
|
subtitle?: string;
|
|
155
155
|
/** Called after a successful signup — sites typically navigate to their survey/onboarding page. */
|
|
156
156
|
onComplete?: () => void;
|
|
157
|
+
/**
|
|
158
|
+
* Called when the cart is empty, on mount and again at submit. Supplying it
|
|
159
|
+
* turns on the cart guard: the page renders nothing and the site redirects
|
|
160
|
+
* (typically to its catalog) instead of walking the visitor through four
|
|
161
|
+
* steps the backend will reject. Leave it off for a membership tenant,
|
|
162
|
+
* whose signup legitimately starts with an empty cart.
|
|
163
|
+
*/
|
|
164
|
+
onNeedsCart?: () => void;
|
|
157
165
|
/** Href for the "Already have an account? Log in" footer link. Defaults to `/login`. */
|
|
158
166
|
loginHref?: string;
|
|
159
167
|
/**
|
|
@@ -210,7 +218,10 @@ interface RegisterPageProps {
|
|
|
210
218
|
declare function RegisterPage(props: RegisterPageProps): solid_js.JSX.Element;
|
|
211
219
|
|
|
212
220
|
interface SubscribePageProps {
|
|
213
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated The amount shown (and charged) comes from the backend's quote.
|
|
223
|
+
* Kept so existing sites keep compiling; only a last-resort estimate.
|
|
224
|
+
*/
|
|
214
225
|
membershipAmountCents: number;
|
|
215
226
|
/** Billing interval in days. Default 30. */
|
|
216
227
|
membershipIntervalDays?: number;
|
|
@@ -251,7 +262,7 @@ interface AffiliatesProps {
|
|
|
251
262
|
* directly. The shell (`AdminDashboard`) wires the consumer's toast prop
|
|
252
263
|
* via `setAdminToast` on mount; if no toast is passed, the adapter falls
|
|
253
264
|
* back to `alert()` on error and a no-op on success (matches existing
|
|
254
|
-
* package
|
|
265
|
+
* package behavior before this prop existed).
|
|
255
266
|
*/
|
|
256
267
|
interface AdminToast {
|
|
257
268
|
success(message: string): void;
|
|
@@ -378,7 +389,7 @@ interface AdminDashboardProps {
|
|
|
378
389
|
/**
|
|
379
390
|
* Optional toast adapter. When provided, admin tabs route non-blocking
|
|
380
391
|
* success / error notifications through it. When omitted, errors fall
|
|
381
|
-
* back to `alert()` and successes are silent (current
|
|
392
|
+
* back to `alert()` and successes are silent (current behavior).
|
|
382
393
|
*/
|
|
383
394
|
toast?: AdminToast;
|
|
384
395
|
/**
|
|
@@ -409,6 +420,30 @@ interface AdminDashboardProps {
|
|
|
409
420
|
*/
|
|
410
421
|
declare function AdminDashboard(props: AdminDashboardProps): solid_js.JSX.Element;
|
|
411
422
|
|
|
423
|
+
/**
|
|
424
|
+
* The canonical URL segment for every admin tab, so a site can route the
|
|
425
|
+
* dashboard with one helper each way instead of hand-maintaining a
|
|
426
|
+
* tab→path map and a path→tab switch that silently fall out of date whenever
|
|
427
|
+
* a tab is added (a stale switch sends the new tab to the dashboard).
|
|
428
|
+
*
|
|
429
|
+
* Segments are relative to the site's admin base (default `/admin`):
|
|
430
|
+
* `dashboard` is the base itself, everything else is `<base>/<segment>`.
|
|
431
|
+
*/
|
|
432
|
+
declare const ADMIN_TAB_SEGMENTS: Record<AdminTab, string>;
|
|
433
|
+
declare const AFFILIATE_SUB_TAB_SEGMENTS: Record<AffiliateSubTab, string>;
|
|
434
|
+
/** `/admin/products` for `products`; the base itself for `dashboard`. */
|
|
435
|
+
declare function adminTabPath(tab: AdminTab, base?: string): string;
|
|
436
|
+
/** The tab a pathname points at. Sub-paths belong to their tab
|
|
437
|
+
* (`/admin/affiliates/people` → `affiliates`; `/admin/customers/<id>` →
|
|
438
|
+
* `customers`). Anything unknown, including paths outside the base, falls
|
|
439
|
+
* back to `dashboard`. */
|
|
440
|
+
declare function adminTabFromPath(pathname: string, base?: string): AdminTab;
|
|
441
|
+
/** `/admin/affiliates/people` for `people`; `/admin/affiliates` for `overview`. */
|
|
442
|
+
declare function affiliateSubTabPath(sub: AffiliateSubTab, base?: string): string;
|
|
443
|
+
/** The affiliates sub-tab a pathname points at; `overview` for the affiliates
|
|
444
|
+
* root or anything unknown. */
|
|
445
|
+
declare function affiliateSubTabFromPath(pathname: string, base?: string): AffiliateSubTab;
|
|
446
|
+
|
|
412
447
|
interface EmailTemplatesProps {
|
|
413
448
|
/** Open on this custom (marketing) template — a sequence step's "Edit template" link. */
|
|
414
449
|
initialCustomTemplateId?: string | null;
|
|
@@ -661,4 +696,4 @@ interface AffiliateResetPasswordProps {
|
|
|
661
696
|
*/
|
|
662
697
|
declare function AffiliateResetPassword(props: AffiliateResetPasswordProps): solid_js.JSX.Element;
|
|
663
698
|
|
|
664
|
-
export { type AdminAuthAdapter, AdminDashboard, type AdminDashboardProps, type AdminTab, type AdminTabGroup, type AdminToast, type AffiliateAuthAdapter, AffiliateForgotPassword, type AffiliateForgotPasswordProps, AffiliateLogin, type AffiliateLoginProps, AffiliatePortal, type AffiliatePortalProps, type AffiliatePortalTab, AffiliateRegister, type AffiliateRegisterProps, AffiliateResetPassword, type AffiliateResetPasswordProps, type AffiliateSubTab, type AffiliatesProps, CartCheckoutPage, type CartCheckoutPageProps, CheckoutPage, type CheckoutPageProps, EmailTemplates, ForgotPasswordPage, type ForgotPasswordPageProps, type LegalLink, type MedicationGuideContent, type MedicationGuideResolver, type MemberAuthAdapter, MemberPortal, type MemberPortalBrand, type MemberPortalProps, type MemberPortalRoutes, PatientDashboardPreview, type PatientDashboardPreviewProps, RegisterPage, type RegisterPageProps, ResetPasswordPage, type ResetPasswordPageProps, SignupPage, type SignupPageProps, SubscribePage, type SubscribePageProps, SurveyPage, type SurveyPageProps, SurveyV2Page, type SurveyV2PageProps, UpdatePaymentMethod, type UpdatePaymentMethodProps };
|
|
699
|
+
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, type AdminAuthAdapter, AdminDashboard, type AdminDashboardProps, type AdminTab, type AdminTabGroup, type AdminToast, type AffiliateAuthAdapter, AffiliateForgotPassword, type AffiliateForgotPasswordProps, AffiliateLogin, type AffiliateLoginProps, AffiliatePortal, type AffiliatePortalProps, type AffiliatePortalTab, AffiliateRegister, type AffiliateRegisterProps, AffiliateResetPassword, type AffiliateResetPasswordProps, type AffiliateSubTab, type AffiliatesProps, CartCheckoutPage, type CartCheckoutPageProps, CheckoutPage, type CheckoutPageProps, EmailTemplates, ForgotPasswordPage, type ForgotPasswordPageProps, type LegalLink, type MedicationGuideContent, type MedicationGuideResolver, type MemberAuthAdapter, MemberPortal, type MemberPortalBrand, type MemberPortalProps, type MemberPortalRoutes, PatientDashboardPreview, type PatientDashboardPreviewProps, RegisterPage, type RegisterPageProps, ResetPasswordPage, type ResetPasswordPageProps, SignupPage, type SignupPageProps, SubscribePage, type SubscribePageProps, SurveyPage, type SurveyPageProps, SurveyV2Page, type SurveyV2PageProps, UpdatePaymentMethod, type UpdatePaymentMethodProps, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
|
package/dist/pages/index.js
CHANGED
|
@@ -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/
|
|
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';
|
|
2
2
|
import '../chunk/LZWA44KD.js';
|
|
3
|
-
import '../chunk/
|
|
4
|
-
import '../chunk/
|
|
3
|
+
import '../chunk/HKXDH266.js';
|
|
4
|
+
import '../chunk/HEQMD3X4.js';
|
|
5
5
|
import '../chunk/67KHO66G.js';
|
|
6
|
-
import '../chunk/
|
|
7
|
-
import '../chunk/
|
|
6
|
+
import '../chunk/4HOG2LES.js';
|
|
7
|
+
import '../chunk/RUA3XYFO.js';
|
|
8
8
|
import '../chunk/5XGPFYIJ.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/pages/index.jsx
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ADMIN_TAB_SEGMENTS,
|
|
3
|
+
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
2
4
|
AdminDashboard,
|
|
3
5
|
AffiliateForgotPassword,
|
|
4
6
|
AffiliateLogin,
|
|
@@ -17,16 +19,22 @@ import {
|
|
|
17
19
|
SubscribePage,
|
|
18
20
|
SurveyPage,
|
|
19
21
|
SurveyV2Page,
|
|
20
|
-
UpdatePaymentMethod
|
|
21
|
-
|
|
22
|
+
UpdatePaymentMethod,
|
|
23
|
+
adminTabFromPath,
|
|
24
|
+
adminTabPath,
|
|
25
|
+
affiliateSubTabFromPath,
|
|
26
|
+
affiliateSubTabPath
|
|
27
|
+
} from "../chunk/GNPMRN6O.jsx";
|
|
22
28
|
import "../chunk/UZCST66N.jsx";
|
|
23
|
-
import "../chunk/
|
|
24
|
-
import "../chunk/
|
|
29
|
+
import "../chunk/AW6DQGQR.jsx";
|
|
30
|
+
import "../chunk/QAFLR3EN.jsx";
|
|
25
31
|
import "../chunk/J63XPQP4.jsx";
|
|
26
|
-
import "../chunk/
|
|
27
|
-
import "../chunk/
|
|
32
|
+
import "../chunk/GL3OY7W5.jsx";
|
|
33
|
+
import "../chunk/JF2KCOOX.jsx";
|
|
28
34
|
import "../chunk/LDZIUFDM.jsx";
|
|
29
35
|
export {
|
|
36
|
+
ADMIN_TAB_SEGMENTS,
|
|
37
|
+
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
30
38
|
AdminDashboard,
|
|
31
39
|
AffiliateForgotPassword,
|
|
32
40
|
AffiliateLogin,
|
|
@@ -45,6 +53,10 @@ export {
|
|
|
45
53
|
SubscribePage,
|
|
46
54
|
SurveyPage,
|
|
47
55
|
SurveyV2Page,
|
|
48
|
-
UpdatePaymentMethod
|
|
56
|
+
UpdatePaymentMethod,
|
|
57
|
+
adminTabFromPath,
|
|
58
|
+
adminTabPath,
|
|
59
|
+
affiliateSubTabFromPath,
|
|
60
|
+
affiliateSubTabPath
|
|
49
61
|
};
|
|
50
62
|
//# sourceMappingURL=index.jsx.map
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
|
-
import {
|
|
3
|
-
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-
|
|
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';
|
|
3
|
+
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-o6DpAu5y.js';
|
|
4
4
|
|
|
5
5
|
declare const authStore: {
|
|
6
6
|
tokens: solid_js.Accessor<AuthTokens | null>;
|
package/dist/stores/index.js
CHANGED
|
@@ -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/
|
|
3
|
-
import '../chunk/
|
|
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';
|
|
4
4
|
import '../chunk/5XGPFYIJ.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/stores/index.jsx
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
auth_default,
|
|
5
5
|
cart_default,
|
|
6
6
|
medication_default
|
|
7
|
-
} from "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
} from "../chunk/GL3OY7W5.jsx";
|
|
8
|
+
import "../chunk/JF2KCOOX.jsx";
|
|
9
9
|
import "../chunk/LDZIUFDM.jsx";
|
|
10
10
|
export {
|
|
11
11
|
affiliateAuth_default as affiliateAuthStore,
|
|
@@ -121,7 +121,7 @@ export function defineSeamSuite(adapter, runner) {
|
|
|
121
121
|
expect(bare, 'these are package storage keys written WITHOUT this site\'s prefix, ' +
|
|
122
122
|
'so the site and the package are reading different storage').toEqual([]);
|
|
123
123
|
const foreign = keys.filter((k) => !k.startsWith(`${storagePrefix}-`) && !isAllowed(k));
|
|
124
|
-
expect(foreign, '
|
|
124
|
+
expect(foreign, 'unrecognized localStorage keys. If the site owns these, declare them ' +
|
|
125
125
|
'in the adapter\'s allowStorageKeys.').toEqual([]);
|
|
126
126
|
// Anything prefixed but not a key the package declares is either a site
|
|
127
127
|
// key that should be declared, or a core key missing from the contract.
|