@apextelemed/partner-core 0.6.3 → 0.6.4

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.
@@ -14350,7 +14350,7 @@ function daysAgo(iso) {
14350
14350
  }
14351
14351
 
14352
14352
  // src/pages/admin/Sequences.tsx
14353
- var LINKS = ["members", "resume_survey", "cart", "home", "none"];
14353
+ var FALLBACK_LINKS = ["members", "resume_survey", "home", "none"];
14354
14354
  var EMPTY_STEP = { waitHours: 24, templateId: "", link: "members" };
14355
14355
  function blankSequence() {
14356
14356
  return {
@@ -14548,7 +14548,14 @@ function StepRow(props) {
14548
14548
  Edit template
14549
14549
  </button>
14550
14550
  <select class="app-admin-input" aria-label={`Step ${props.index + 1} link`} value={props.step.link} onChange={(e) => set("link", e.currentTarget.value)}>
14551
- <For31 each={LINKS}>{(l) => <option value={l}>{LINK_LABEL[l]}</option>}</For31>
14551
+ {
14552
+ /* A saved step can name a destination this site no longer offers (its
14553
+ cart was removed); keep it visible so the rep sees what to fix. */
14554
+ }
14555
+ <Show43 when={props.step.link && !props.links.includes(props.step.link)}>
14556
+ <option value={props.step.link}>{LINK_LABEL[props.step.link]} (unavailable)</option>
14557
+ </Show43>
14558
+ <For31 each={props.links}>{(l) => <option value={l}>{LINK_LABEL[l]}</option>}</For31>
14552
14559
  </select>
14553
14560
  <div style={{ display: "flex", gap: "0.25rem" }}>
14554
14561
  <button type="button" class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm" disabled={!props.canTest} title={props.canTest ? "Email this step to me" : "Save first"} onClick={() => props.onTest()}>Test</button>
@@ -14731,6 +14738,7 @@ function SequenceEditor(props) {
14731
14738
  step={step()}
14732
14739
  count={draft().steps.length}
14733
14740
  templates={props.templates}
14741
+ links={props.links}
14734
14742
  canTest={!isNew()}
14735
14743
  onChange={(s) => setStep(i, s)}
14736
14744
  onRemove={() => update({ steps: draft().steps.filter((_, j) => j !== i) })}
@@ -14888,6 +14896,7 @@ function Sequences() {
14888
14896
  {(seq) => <SequenceEditor
14889
14897
  initial={seq()}
14890
14898
  templates={customTemplates()}
14899
+ links={list()?.links ?? FALLBACK_LINKS}
14891
14900
  onSaved={(saved) => {
14892
14901
  setEditing(saved);
14893
14902
  setReload(reload() + 1);
@@ -19930,4 +19939,4 @@ export {
19930
19939
  AffiliateForgotPassword,
19931
19940
  AffiliateResetPassword
19932
19941
  };
19933
- //# sourceMappingURL=WODHGSBM.jsx.map
19942
+ //# sourceMappingURL=ZDBW3JDO.jsx.map
@@ -1,7 +1,7 @@
1
1
  import '../chunk/JSHO46VZ.js';
2
2
  export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/NSRQXBHK.js';
3
3
  export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/BVLA7ATM.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/UCF2EXRL.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/MTCQREMZ.js';
5
5
  export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
6
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/WUE4VQBA.js';
7
7
  export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/QTGJY3YQ.js';
@@ -47,7 +47,7 @@ import {
47
47
  SurveyPage,
48
48
  SurveyV2Page,
49
49
  UpdatePaymentMethod
50
- } from "../chunk/WODHGSBM.jsx";
50
+ } from "../chunk/ZDBW3JDO.jsx";
51
51
  import {
52
52
  EmbedApiError,
53
53
  EmbedApiError2,
@@ -1,4 +1,4 @@
1
- export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/UCF2EXRL.js';
1
+ export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/MTCQREMZ.js';
2
2
  import '../chunk/LZWA44KD.js';
3
3
  import '../chunk/WUE4VQBA.js';
4
4
  import '../chunk/QTGJY3YQ.js';
@@ -18,7 +18,7 @@ import {
18
18
  SurveyPage,
19
19
  SurveyV2Page,
20
20
  UpdatePaymentMethod
21
- } from "../chunk/WODHGSBM.jsx";
21
+ } from "../chunk/ZDBW3JDO.jsx";
22
22
  import "../chunk/UZCST66N.jsx";
23
23
  import "../chunk/HXMLRDIJ.jsx";
24
24
  import "../chunk/NBB2VTQK.jsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apextelemed/partner-core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
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": {