@apextelemed/partner-core 0.3.0 → 0.3.1
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/dist/chunk/{6HLXYY4F.jsx → 2EVGOW2Z.jsx} +2 -2
- package/dist/chunk/{SE6JHCPZ.js → 5RQ4ZIYB.js} +19 -9
- package/dist/chunk/5RQ4ZIYB.js.map +1 -0
- package/dist/chunk/{AAWNUGML.jsx → AC7FFU4J.jsx} +4 -6
- package/dist/chunk/{FBVNUFJM.js → D6GCJFQD.js} +3 -3
- package/dist/chunk/{FBVNUFJM.js.map → D6GCJFQD.js.map} +1 -1
- package/dist/chunk/{QSSVQ5PR.js → J4G52ET6.js} +4 -11
- package/dist/chunk/J4G52ET6.js.map +1 -0
- package/dist/chunk/{B63K5R7M.jsx → M6DZVPYZ.jsx} +18 -7
- package/dist/flows/index.js +2 -2
- package/dist/flows/index.jsx +2 -2
- package/dist/index/index.js +3 -3
- package/dist/index/index.jsx +3 -3
- package/dist/pages/index.js +2 -2
- package/dist/pages/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/QSSVQ5PR.js.map +0 -1
- package/dist/chunk/SE6JHCPZ.js.map +0 -1
|
@@ -2233,6 +2233,21 @@ function buildTrackingUrl(delivery) {
|
|
|
2233
2233
|
return builder ? builder(delivery.trackingNumber) : null;
|
|
2234
2234
|
}
|
|
2235
2235
|
|
|
2236
|
+
// src/utils/calendarDate.ts
|
|
2237
|
+
var DATE_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
2238
|
+
function parseCalendarDate(value) {
|
|
2239
|
+
if (!value) return null;
|
|
2240
|
+
const m = DATE_ONLY.exec(value.trim());
|
|
2241
|
+
const d = m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : new Date(value);
|
|
2242
|
+
return Number.isNaN(d.getTime()) ? null : d;
|
|
2243
|
+
}
|
|
2244
|
+
function formatCalendarDate(value, options = { year: "numeric", month: "long", day: "numeric" }) {
|
|
2245
|
+
if (!value) return "";
|
|
2246
|
+
const d = parseCalendarDate(value);
|
|
2247
|
+
if (!d) return value;
|
|
2248
|
+
return d.toLocaleDateString("en-US", options);
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2236
2251
|
// src/flows/tracker.ts
|
|
2237
2252
|
var PIPELINE = [
|
|
2238
2253
|
{ key: "submitted", label: "Submitted", heroWord: "Received", subCaption: "We\u2019ve received your request." },
|
|
@@ -2351,12 +2366,7 @@ function softRelative(date, now) {
|
|
|
2351
2366
|
const weeks = Math.round(diffDays / 7);
|
|
2352
2367
|
return `in ${weeks} weeks`;
|
|
2353
2368
|
}
|
|
2354
|
-
|
|
2355
|
-
if (!value) return null;
|
|
2356
|
-
const dateOnly = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
|
|
2357
|
-
const d = dateOnly ? new Date(Number(dateOnly[1]), Number(dateOnly[2]) - 1, Number(dateOnly[3])) : new Date(value);
|
|
2358
|
-
return Number.isNaN(d.getTime()) ? null : d;
|
|
2359
|
-
}
|
|
2369
|
+
var parseBackendDate = parseCalendarDate;
|
|
2360
2370
|
function buildRefillView(sub, now = Date.now()) {
|
|
2361
2371
|
if (!sub) return null;
|
|
2362
2372
|
if (sub.status === "cancelled" || sub.status === "expired" || sub.status === "suspended") {
|
|
@@ -3339,6 +3349,7 @@ export {
|
|
|
3339
3349
|
formatRelativeTime,
|
|
3340
3350
|
useDashboardData,
|
|
3341
3351
|
buildTrackingUrl,
|
|
3352
|
+
formatCalendarDate,
|
|
3342
3353
|
buildTrackerView,
|
|
3343
3354
|
buildRefillView,
|
|
3344
3355
|
formatStageDate,
|
|
@@ -3363,4 +3374,4 @@ export {
|
|
|
3363
3374
|
useSurveyV2Flow,
|
|
3364
3375
|
uploadPrescriptionPhoto
|
|
3365
3376
|
};
|
|
3366
|
-
//# sourceMappingURL=
|
|
3377
|
+
//# sourceMappingURL=M6DZVPYZ.jsx.map
|
package/dist/flows/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/
|
|
1
|
+
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/D6GCJFQD.js';
|
|
2
2
|
import '../chunk/XMYPS7PT.js';
|
|
3
|
-
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
3
|
+
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/5RQ4ZIYB.js';
|
|
4
4
|
import '../chunk/DS4E7FAI.js';
|
|
5
5
|
import '../chunk/FWUBNK42.js';
|
|
6
6
|
import '../chunk/UNAI6NBV.js';
|
package/dist/flows/index.jsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useMedicationSelect,
|
|
10
10
|
useProductDetail,
|
|
11
11
|
useSubscriptionIntakeFlow
|
|
12
|
-
} from "../chunk/
|
|
12
|
+
} from "../chunk/2EVGOW2Z.jsx";
|
|
13
13
|
import "../chunk/NP4CMOLW.jsx";
|
|
14
14
|
import {
|
|
15
15
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
useSurveyV2Flow,
|
|
59
59
|
useUpdatePaymentMethodFlow,
|
|
60
60
|
validateAddress
|
|
61
|
-
} from "../chunk/
|
|
61
|
+
} from "../chunk/M6DZVPYZ.jsx";
|
|
62
62
|
import "../chunk/I46Y2J5W.jsx";
|
|
63
63
|
import "../chunk/KMHMT6YP.jsx";
|
|
64
64
|
import "../chunk/DUVW24DM.jsx";
|
package/dist/index/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../chunk/JSHO46VZ.js';
|
|
2
|
-
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/
|
|
2
|
+
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/D6GCJFQD.js';
|
|
3
3
|
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/XMYPS7PT.js';
|
|
4
|
-
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } 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/J4G52ET6.js';
|
|
5
5
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
6
|
-
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
6
|
+
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/5RQ4ZIYB.js';
|
|
7
7
|
export { adoptFunnelSessionId, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/DS4E7FAI.js';
|
|
8
8
|
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
9
9
|
export { defaultPrimitives } from '../chunk/YJEHCCLY.js';
|
package/dist/index/index.jsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useMedicationSelect,
|
|
11
11
|
useProductDetail,
|
|
12
12
|
useSubscriptionIntakeFlow
|
|
13
|
-
} from "../chunk/
|
|
13
|
+
} from "../chunk/2EVGOW2Z.jsx";
|
|
14
14
|
import {
|
|
15
15
|
adoptCartId,
|
|
16
16
|
capturePromoCode,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
SurveyPage,
|
|
47
47
|
SurveyV2Page,
|
|
48
48
|
UpdatePaymentMethod
|
|
49
|
-
} from "../chunk/
|
|
49
|
+
} from "../chunk/AC7FFU4J.jsx";
|
|
50
50
|
import {
|
|
51
51
|
EmbedApiError,
|
|
52
52
|
EmbedApiError2,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
useSurveyV2Flow,
|
|
103
103
|
useUpdatePaymentMethodFlow,
|
|
104
104
|
validateAddress
|
|
105
|
-
} from "../chunk/
|
|
105
|
+
} from "../chunk/M6DZVPYZ.jsx";
|
|
106
106
|
import {
|
|
107
107
|
adoptFunnelSessionId,
|
|
108
108
|
fetchFunnelConfig,
|
package/dist/pages/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/J4G52ET6.js';
|
|
2
2
|
import '../chunk/LZWA44KD.js';
|
|
3
|
-
import '../chunk/
|
|
3
|
+
import '../chunk/5RQ4ZIYB.js';
|
|
4
4
|
import '../chunk/DS4E7FAI.js';
|
|
5
5
|
import '../chunk/67KHO66G.js';
|
|
6
6
|
import '../chunk/FWUBNK42.js';
|
package/dist/pages/index.jsx
CHANGED
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
SurveyPage,
|
|
19
19
|
SurveyV2Page,
|
|
20
20
|
UpdatePaymentMethod
|
|
21
|
-
} from "../chunk/
|
|
21
|
+
} from "../chunk/AC7FFU4J.jsx";
|
|
22
22
|
import "../chunk/UZCST66N.jsx";
|
|
23
|
-
import "../chunk/
|
|
23
|
+
import "../chunk/M6DZVPYZ.jsx";
|
|
24
24
|
import "../chunk/I46Y2J5W.jsx";
|
|
25
25
|
import "../chunk/J63XPQP4.jsx";
|
|
26
26
|
import "../chunk/KMHMT6YP.jsx";
|
package/package.json
CHANGED