@odla-ai/chapter 0.58.1 → 0.59.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/README.md +66 -0
- package/dist/{chunk-FHKZVF5G.js → chunk-GADLTNJF.js} +4 -2
- package/dist/{chunk-FHKZVF5G.js.map → chunk-GADLTNJF.js.map} +1 -1
- package/dist/{chunk-L2IPS2FQ.js → chunk-P6X3W2XP.js} +147 -56
- package/dist/chunk-P6X3W2XP.js.map +1 -0
- package/dist/{chunk-CKC6X5H2.js → chunk-SDGVPIXF.js} +401 -309
- package/dist/chunk-SDGVPIXF.js.map +1 -0
- package/dist/{copy-context-DE4YMAbz.d.ts → copy-context-BuJBQafl.d.ts} +4 -0
- package/dist/index.cjs +285 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +281 -81
- package/dist/index.js.map +1 -1
- package/dist/ui/admin/index.d.ts +40 -3
- package/dist/ui/admin/index.js +6 -2
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +15 -3
- package/dist/ui/member/index.d.ts +34 -6
- package/dist/ui/member/index.js +10 -2
- package/dist/worker/index.cjs +694 -184
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +173 -3
- package/dist/worker/index.d.ts +173 -3
- package/dist/worker/index.js +687 -177
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CKC6X5H2.js.map +0 -1
- package/dist/chunk-L2IPS2FQ.js.map +0 -1
package/dist/ui/admin/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
2
|
import { ComponentChildren, JSX } from 'preact';
|
|
3
3
|
import { CrmClient, Crm, CrmRecord, FieldType } from '@odla-ai/crm';
|
|
4
|
-
import { a as Chapter, b as ChapterCopy, M as MemberContentDocument, E as EffectiveMemberContent, c as MemberContentTierAuthority } from '../../copy-context-
|
|
5
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-
|
|
4
|
+
import { a as Chapter, b as ChapterCopy, M as MemberContentDocument, E as EffectiveMemberContent, c as MemberContentTierAuthority } from '../../copy-context-BuJBQafl.js';
|
|
5
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-BuJBQafl.js';
|
|
6
6
|
import { CrmLifecycleAdapter, CrmWorkspaceMasterContext, CrmWorkspaceRecordContext, RecordPanelTab } from '@odla-ai/crm/ui';
|
|
7
7
|
|
|
8
8
|
/** Normalized public auth configuration consumed by the Clerk gate. */
|
|
@@ -597,6 +597,43 @@ declare function NetworkSeatBilling(props: {
|
|
|
597
597
|
getToken: () => Promise<string | null>;
|
|
598
598
|
}): preact.JSX.Element;
|
|
599
599
|
|
|
600
|
+
/** One membership that carries a card-network dispute, as `GET /api/admin/membership-disputes` returns it. */
|
|
601
|
+
interface MembershipDisputeRow {
|
|
602
|
+
id: string;
|
|
603
|
+
chapterId: string;
|
|
604
|
+
runtime: string;
|
|
605
|
+
applicationId: string;
|
|
606
|
+
status: string;
|
|
607
|
+
memberNumber?: number;
|
|
608
|
+
/** `seat` when the disputed charge paid a named seat; the row's id is then the seat id and the primary membership is untouched. */
|
|
609
|
+
kind?: "membership" | "seat";
|
|
610
|
+
recipientName?: string;
|
|
611
|
+
primaryMembershipId?: string;
|
|
612
|
+
amountCents: number;
|
|
613
|
+
currency: string;
|
|
614
|
+
disputeId: string;
|
|
615
|
+
disputeStatus: string;
|
|
616
|
+
disputeReason?: string;
|
|
617
|
+
disputeAmountCents?: number;
|
|
618
|
+
disputedAt?: number;
|
|
619
|
+
disputeClosedAt?: number;
|
|
620
|
+
disputePriorStatus?: string;
|
|
621
|
+
rechargePaymentIntentId?: string;
|
|
622
|
+
rechargedAt?: number;
|
|
623
|
+
rechargeAttempt?: {
|
|
624
|
+
startedAt: number | null;
|
|
625
|
+
finishedAt: number | null;
|
|
626
|
+
outcome: string | null;
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
/** What an operator reads for Stripe's dispute status. */
|
|
630
|
+
declare const DISPUTE_STATUS_WORDS: Record<string, string>;
|
|
631
|
+
/** Card-network disputes on network memberships, with the super admin's re-charge after a lost dispute. A dispute suspends
|
|
632
|
+
* the member's access the moment the hub retains it; nothing here charges a card without the operator's second click. */
|
|
633
|
+
declare function MembershipDisputes(props: {
|
|
634
|
+
getToken: () => Promise<string | null>;
|
|
635
|
+
}): preact.JSX.Element;
|
|
636
|
+
|
|
600
637
|
/** Props for {@link MembershipPolicyVersions}. */
|
|
601
638
|
interface MembershipPolicyVersionsProps {
|
|
602
639
|
getToken: () => Promise<string | null>;
|
|
@@ -609,4 +646,4 @@ interface MembershipPolicyVersionsProps {
|
|
|
609
646
|
* while-active discount version: moving the cohort's already-paid members onto it, which only ever widens a benefit. */
|
|
610
647
|
declare function MembershipPolicyVersions(props: MembershipPolicyVersionsProps): preact.JSX.Element;
|
|
611
648
|
|
|
612
|
-
export { APPLICATION_STAGES, type AdminAccountMenuProps, type AdminBuilderLibraryData, type AdminChrome, type AdminMemberContentData, AdminNote, AdminPage, type AdminResource, type AdminRouteState, type AdminRouteTarget, type AdminRouting, type AdminSection, type AdminSectionContext, type AdminWorkspace, type AdminWorkspaceFrameProps, type AdminWorkspaceNavProps, AdmissionGrantsWorkspace, type AvailabilitySectionOptions, type BillingSectionOptions, BuilderLibraryAdmin, CandidateStagePanel, type CandidateStagePanelProps, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, type DashboardSectionOptions, type EmailSectionOptions, LeaderAdmissionAction, type LeaderAdmissionActionProps, LeaderNetworkOverview, type MeetingsSectionOptions, MemberContentAdmin, MembershipPolicyVersions, type MembershipPolicyVersionsProps, NamedSeatRecordPanel, type NamedSeatRecordPanelProps, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, type NetworkShareActionsProps, Panel, PaymentRecoveryQueue, type PeopleSectionOptions, RecordActions, type RecordActionsProps, RecordAdmissionPanel, type RecordAdmissionPanelProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource };
|
|
649
|
+
export { APPLICATION_STAGES, type AdminAccountMenuProps, type AdminBuilderLibraryData, type AdminChrome, type AdminMemberContentData, AdminNote, AdminPage, type AdminResource, type AdminRouteState, type AdminRouteTarget, type AdminRouting, type AdminSection, type AdminSectionContext, type AdminWorkspace, type AdminWorkspaceFrameProps, type AdminWorkspaceNavProps, AdmissionGrantsWorkspace, type AvailabilitySectionOptions, type BillingSectionOptions, BuilderLibraryAdmin, CandidateStagePanel, type CandidateStagePanelProps, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, DISPUTE_STATUS_WORDS, type DashboardSectionOptions, type EmailSectionOptions, LeaderAdmissionAction, type LeaderAdmissionActionProps, LeaderNetworkOverview, type MeetingsSectionOptions, MemberContentAdmin, type MembershipDisputeRow, MembershipDisputes, MembershipPolicyVersions, type MembershipPolicyVersionsProps, NamedSeatRecordPanel, type NamedSeatRecordPanelProps, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, type NetworkShareActionsProps, Panel, PaymentRecoveryQueue, type PeopleSectionOptions, RecordActions, type RecordActionsProps, RecordAdmissionPanel, type RecordAdmissionPanelProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource };
|
package/dist/ui/admin/index.js
CHANGED
|
@@ -6,9 +6,11 @@ import {
|
|
|
6
6
|
BuilderLibraryAdmin,
|
|
7
7
|
CandidateStagePanel,
|
|
8
8
|
ChapterAdmin,
|
|
9
|
+
DISPUTE_STATUS_WORDS,
|
|
9
10
|
LeaderAdmissionAction,
|
|
10
11
|
LeaderNetworkOverview,
|
|
11
12
|
MemberContentAdmin,
|
|
13
|
+
MembershipDisputes,
|
|
12
14
|
MembershipPolicyVersions,
|
|
13
15
|
NamedSeatRecordPanel,
|
|
14
16
|
NetworkRecordEditor,
|
|
@@ -42,11 +44,11 @@ import {
|
|
|
42
44
|
networkRecordsWorkspace,
|
|
43
45
|
peopleSection,
|
|
44
46
|
useAdminResource
|
|
45
|
-
} from "../../chunk-
|
|
47
|
+
} from "../../chunk-P6X3W2XP.js";
|
|
46
48
|
import {
|
|
47
49
|
ChapterCopyProvider,
|
|
48
50
|
useChapterCopy
|
|
49
|
-
} from "../../chunk-
|
|
51
|
+
} from "../../chunk-GADLTNJF.js";
|
|
50
52
|
export {
|
|
51
53
|
APPLICATION_STAGES,
|
|
52
54
|
AdminNote,
|
|
@@ -56,9 +58,11 @@ export {
|
|
|
56
58
|
CandidateStagePanel,
|
|
57
59
|
ChapterAdmin,
|
|
58
60
|
ChapterCopyProvider,
|
|
61
|
+
DISPUTE_STATUS_WORDS,
|
|
59
62
|
LeaderAdmissionAction,
|
|
60
63
|
LeaderNetworkOverview,
|
|
61
64
|
MemberContentAdmin,
|
|
65
|
+
MembershipDisputes,
|
|
62
66
|
MembershipPolicyVersions,
|
|
63
67
|
NamedSeatRecordPanel,
|
|
64
68
|
NetworkRecordEditor,
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { APPLICATION_STAGES, AdminAccountMenuProps, AdminBuilderLibraryData, AdminChrome, AdminMemberContentData, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceFrameProps, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, BuilderLibraryAdmin, CandidateStagePanel, CandidateStagePanelProps, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderAdmissionAction, LeaderAdmissionActionProps, LeaderNetworkOverview, MeetingsSectionOptions, MemberContentAdmin, MembershipPolicyVersions, MembershipPolicyVersionsProps, NamedSeatRecordPanel, NamedSeatRecordPanelProps, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, NetworkShareActionsProps, Panel, PaymentRecoveryQueue, PeopleSectionOptions, RecordActions, RecordActionsProps, RecordAdmissionPanel, RecordAdmissionPanelProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource } from './admin/index.js';
|
|
2
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../copy-context-
|
|
3
|
-
export { ADDITIONAL_MEMBER_COPY, AdditionalMemberCopy, AdditionalMemberDraft, AdditionalMemberEditor, AdditionalMemberEditorOptions, AdditionalMemberEditorProps, AdditionalMemberFieldNames, AdditionalMemberFields, AdditionalMemberFieldsProps, AdditionalMemberOffer, AdditionalMemberOptions, ApiFn, BrandStyle, BrandStyleProps, CheckoutSeatEditor, CheckoutSeatEditorContext, GiftCodeRedeemResult, GiftCodeRedeemer, GiftCodeRedeemerCopy, GiftCodeRedeemerProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, GiftPurchases, GiftPurchasesProps, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitButton, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, JourneyFrame, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, MemberContentAreaProps, MemberGifts, MemberProvisionalRenderContext, MemberRestart, MembersArea, MembersAreaProps, MembershipCardTokenName, MembershipCards, MembershipCardsMode, MembershipCardsProps, NAMED_SEAT_RECIPIENT_WORDS, NamedSeatPurchase, NamedSeatRecipientLine, PaymentPriceLines, PaymentStep, PaymentStepProps, PaymentStepSimulation, RescheduleProps, Rescheduler, Slot, SlotPicker, SlotPickerClasses, SlotPickerProps, SubResponse, TierPlaceholder, additionalMemberSelection, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection } from './member/index.js';
|
|
1
|
+
export { APPLICATION_STAGES, AdminAccountMenuProps, AdminBuilderLibraryData, AdminChrome, AdminMemberContentData, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceFrameProps, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, BuilderLibraryAdmin, CandidateStagePanel, CandidateStagePanelProps, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DISPUTE_STATUS_WORDS, DashboardSectionOptions, EmailSectionOptions, LeaderAdmissionAction, LeaderAdmissionActionProps, LeaderNetworkOverview, MeetingsSectionOptions, MemberContentAdmin, MembershipDisputeRow, MembershipDisputes, MembershipPolicyVersions, MembershipPolicyVersionsProps, NamedSeatRecordPanel, NamedSeatRecordPanelProps, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, NetworkShareActionsProps, Panel, PaymentRecoveryQueue, PeopleSectionOptions, RecordActions, RecordActionsProps, RecordAdmissionPanel, RecordAdmissionPanelProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource } from './admin/index.js';
|
|
2
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../copy-context-BuJBQafl.js';
|
|
3
|
+
export { ADDITIONAL_MEMBER_COPY, AdditionalMemberCopy, AdditionalMemberDraft, AdditionalMemberEditor, AdditionalMemberEditorOptions, AdditionalMemberEditorProps, AdditionalMemberFieldNames, AdditionalMemberFields, AdditionalMemberFieldsProps, AdditionalMemberOffer, AdditionalMemberOptions, ApiFn, BrandStyle, BrandStyleProps, CheckoutSeatEditor, CheckoutSeatEditorContext, GiftCodeRedeemResult, GiftCodeRedeemer, GiftCodeRedeemerCopy, GiftCodeRedeemerProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, GiftPurchases, GiftPurchasesProps, JoinBookingPreload, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitButton, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, JourneyFrame, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, MemberContentAreaProps, MemberGifts, MemberProvisionalRenderContext, MemberRestart, MembersArea, MembersAreaProps, MembershipCardTokenName, MembershipCards, MembershipCardsMode, MembershipCardsProps, NAMED_SEAT_RECIPIENT_WORDS, NamedSeatInvitationLink, NamedSeatInvitationLinkProps, NamedSeatPurchase, NamedSeatRecipientLine, PaymentPriceLines, PaymentStep, PaymentStepProps, PaymentStepSimulation, RescheduleProps, Rescheduler, Slot, SlotPicker, SlotPickerClasses, SlotPickerProps, SubResponse, TierPlaceholder, additionalMemberSelection, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, namedSeatInvitationMessage, namedSeatInvitationShareable, namedSeatInvitationUrl, tierNeedsPayment, timeLabel, tzShort, useTierSelection } from './member/index.js';
|
|
4
4
|
import 'preact';
|
|
5
5
|
import '@odla-ai/crm';
|
|
6
6
|
import '@odla-ai/crm/ui';
|
package/dist/ui/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
MembersArea,
|
|
16
16
|
MembershipCards,
|
|
17
17
|
NAMED_SEAT_RECIPIENT_WORDS,
|
|
18
|
+
NamedSeatInvitationLink,
|
|
18
19
|
NamedSeatPurchase,
|
|
19
20
|
NamedSeatRecipientLine,
|
|
20
21
|
PaymentStep,
|
|
@@ -30,11 +31,14 @@ import {
|
|
|
30
31
|
groupSlotsByDay,
|
|
31
32
|
loadJoinResume,
|
|
32
33
|
membershipApplicationHref,
|
|
34
|
+
namedSeatInvitationMessage,
|
|
35
|
+
namedSeatInvitationShareable,
|
|
36
|
+
namedSeatInvitationUrl,
|
|
33
37
|
tierNeedsPayment,
|
|
34
38
|
timeLabel,
|
|
35
39
|
tzShort,
|
|
36
40
|
useTierSelection
|
|
37
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-SDGVPIXF.js";
|
|
38
42
|
import {
|
|
39
43
|
APPLICATION_STAGES,
|
|
40
44
|
AdminNote,
|
|
@@ -43,9 +47,11 @@ import {
|
|
|
43
47
|
BuilderLibraryAdmin,
|
|
44
48
|
CandidateStagePanel,
|
|
45
49
|
ChapterAdmin,
|
|
50
|
+
DISPUTE_STATUS_WORDS,
|
|
46
51
|
LeaderAdmissionAction,
|
|
47
52
|
LeaderNetworkOverview,
|
|
48
53
|
MemberContentAdmin,
|
|
54
|
+
MembershipDisputes,
|
|
49
55
|
MembershipPolicyVersions,
|
|
50
56
|
NamedSeatRecordPanel,
|
|
51
57
|
NetworkRecordEditor,
|
|
@@ -79,12 +85,12 @@ import {
|
|
|
79
85
|
networkRecordsWorkspace,
|
|
80
86
|
peopleSection,
|
|
81
87
|
useAdminResource
|
|
82
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-P6X3W2XP.js";
|
|
83
89
|
import {
|
|
84
90
|
BrandStyle,
|
|
85
91
|
ChapterCopyProvider,
|
|
86
92
|
useChapterCopy
|
|
87
|
-
} from "../chunk-
|
|
93
|
+
} from "../chunk-GADLTNJF.js";
|
|
88
94
|
import "../chunk-IVXVECKR.js";
|
|
89
95
|
export {
|
|
90
96
|
ADDITIONAL_MEMBER_COPY,
|
|
@@ -99,6 +105,7 @@ export {
|
|
|
99
105
|
CandidateStagePanel,
|
|
100
106
|
ChapterAdmin,
|
|
101
107
|
ChapterCopyProvider,
|
|
108
|
+
DISPUTE_STATUS_WORDS,
|
|
102
109
|
GiftCodeRedeemer,
|
|
103
110
|
GiftOfferCards,
|
|
104
111
|
GiftPurchases,
|
|
@@ -114,8 +121,10 @@ export {
|
|
|
114
121
|
MemberRestart,
|
|
115
122
|
MembersArea,
|
|
116
123
|
MembershipCards,
|
|
124
|
+
MembershipDisputes,
|
|
117
125
|
MembershipPolicyVersions,
|
|
118
126
|
NAMED_SEAT_RECIPIENT_WORDS,
|
|
127
|
+
NamedSeatInvitationLink,
|
|
119
128
|
NamedSeatPurchase,
|
|
120
129
|
NamedSeatRecipientLine,
|
|
121
130
|
NamedSeatRecordPanel,
|
|
@@ -160,6 +169,9 @@ export {
|
|
|
160
169
|
meetingsSection,
|
|
161
170
|
memberContentSection,
|
|
162
171
|
membershipApplicationHref,
|
|
172
|
+
namedSeatInvitationMessage,
|
|
173
|
+
namedSeatInvitationShareable,
|
|
174
|
+
namedSeatInvitationUrl,
|
|
163
175
|
networkRecordsWorkspace,
|
|
164
176
|
peopleSection,
|
|
165
177
|
tierNeedsPayment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
2
|
import { ComponentChildren, JSX } from 'preact';
|
|
3
|
-
import { d as MemberContentProjection, e as MemberContentPageProjection, b as ChapterCopy, f as ChapterBrand } from '../../copy-context-
|
|
4
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-
|
|
3
|
+
import { d as MemberContentProjection, e as MemberContentPageProjection, b as ChapterCopy, f as ChapterBrand } from '../../copy-context-BuJBQafl.js';
|
|
4
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-BuJBQafl.js';
|
|
5
5
|
import { FieldType, FieldConditions } from '@odla-ai/crm';
|
|
6
6
|
|
|
7
7
|
/** A bookable slot: a start instant in epoch milliseconds. */
|
|
@@ -48,8 +48,11 @@ interface SlotPickerProps<T extends Slot = Slot> {
|
|
|
48
48
|
selectedStartAt?: number;
|
|
49
49
|
/** Called with the full slot object when a time is chosen. */
|
|
50
50
|
onPick: (slot: T) => void;
|
|
51
|
-
/** Called when the active day changes (callers clear their selection). */
|
|
52
|
-
onDayChange?: () => void;
|
|
51
|
+
/** Called with the new day key when the active day changes (callers clear their selection). */
|
|
52
|
+
onDayChange?: (day: string) => void;
|
|
53
|
+
/** Which day opens active: the first available one (default), or none, so the
|
|
54
|
+
* caller can ask for a date before showing any times. */
|
|
55
|
+
initialDay?: "first" | "none";
|
|
53
56
|
classes?: SlotPickerClasses;
|
|
54
57
|
}
|
|
55
58
|
/** A day-chips + time-grid slot picker. Presentational and `onPick`-driven: it
|
|
@@ -239,6 +242,10 @@ interface JoinBookingSimulation {
|
|
|
239
242
|
slots: readonly Slot[];
|
|
240
243
|
timezone: string;
|
|
241
244
|
}
|
|
245
|
+
/** A `/api/schedule/slots` read started before the booking step mounts, so the
|
|
246
|
+
* times are on screen the moment payment confirms instead of two to four
|
|
247
|
+
* seconds later. The step still reloads after a taken slot. */
|
|
248
|
+
type JoinBookingPreload = Promise<Response>;
|
|
242
249
|
|
|
243
250
|
/**
|
|
244
251
|
* Side-effect-free boundaries for an explorable Studio or test journey.
|
|
@@ -787,7 +794,7 @@ declare function MemberRestart(props: {
|
|
|
787
794
|
}): preact.JSX.Element;
|
|
788
795
|
|
|
789
796
|
/** Where the named recipient stands, from the purchaser's side, folded from the seat's lifecycle status. */
|
|
790
|
-
type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled";
|
|
797
|
+
type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled" | "disputed";
|
|
791
798
|
|
|
792
799
|
/** The purchaser's one named seat as the members page shows it: who was named, and whether they accepted or joined. */
|
|
793
800
|
interface NamedSeatOfferSeat {
|
|
@@ -824,6 +831,27 @@ declare function NamedSeatPurchase({ api }: {
|
|
|
824
831
|
api: ApiFn;
|
|
825
832
|
}): preact.JSX.Element;
|
|
826
833
|
|
|
834
|
+
/** Props for {@link NamedSeatInvitationLink}. */
|
|
835
|
+
interface NamedSeatInvitationLinkProps {
|
|
836
|
+
/** The purchaser's seat as `/api/named-seat` returns it. */
|
|
837
|
+
seat: NamedSeatOfferSeat;
|
|
838
|
+
/** Names the chapter in the ready-to-send message; omitted, the message says "a membership". */
|
|
839
|
+
chapterName?: string;
|
|
840
|
+
/** Site origin for the link. Defaults to the page's own origin. */
|
|
841
|
+
origin?: string;
|
|
842
|
+
/** The application page the emailed invitation also points at. Default "/join". */
|
|
843
|
+
joinPath?: string;
|
|
844
|
+
}
|
|
845
|
+
/** True while the recipient has an open invitation the purchaser may forward themselves: sent, not yet accepted, not held. */
|
|
846
|
+
declare const namedSeatInvitationShareable: (seat: NamedSeatOfferSeat) => boolean;
|
|
847
|
+
/** The same link the invitation email carries: the join page with the seat reference the server verifies against the signed-in recipient. */
|
|
848
|
+
declare function namedSeatInvitationUrl(seat: Pick<NamedSeatOfferSeat, "seatId">, origin: string, joinPath?: string): string;
|
|
849
|
+
/** A message the purchaser can paste into their own email; it repeats the one rule the join page enforces. */
|
|
850
|
+
declare function namedSeatInvitationMessage(seat: NamedSeatOfferSeat, url: string, chapterName?: string): string;
|
|
851
|
+
/** Copy-to-clipboard controls for an open seat invitation, so the purchaser can send it in their own words instead of
|
|
852
|
+
* waiting on the chapter's email (Cory, 2026-10-18). Renders nothing while the invitation is held, accepted, or closed. */
|
|
853
|
+
declare function NamedSeatInvitationLink(props: NamedSeatInvitationLinkProps): preact.JSX.Element | null;
|
|
854
|
+
|
|
827
855
|
/** Consistent, responsive purchase and application presentation using the host's Chapter brand tokens. */
|
|
828
856
|
declare function JourneyFrame({ children }: {
|
|
829
857
|
children: ComponentChildren;
|
|
@@ -832,4 +860,4 @@ declare function JourneyFrame({ children }: {
|
|
|
832
860
|
/** A themed application submit control. Pass the disabled state supplied by JoinIsland's renderSubmit slot. */
|
|
833
861
|
declare function JoinSubmitButton(props: JSX.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
834
862
|
|
|
835
|
-
export { ADDITIONAL_MEMBER_COPY, type AdditionalMemberCopy, type AdditionalMemberDraft, AdditionalMemberEditor, type AdditionalMemberEditorOptions, type AdditionalMemberEditorProps, type AdditionalMemberFieldNames, AdditionalMemberFields, type AdditionalMemberFieldsProps, type AdditionalMemberOffer, type AdditionalMemberOptions, type ApiFn, BrandStyle, type BrandStyleProps, type CheckoutSeatEditor, type CheckoutSeatEditorContext, type GiftCodeRedeemResult, GiftCodeRedeemer, type GiftCodeRedeemerCopy, type GiftCodeRedeemerProps, GiftOfferCards, type GiftOfferCardsMode, type GiftOfferCardsProps, GiftPurchases, type GiftPurchasesProps, type JoinBookingSimulation, type JoinConfig, type JoinFlowState, JoinIsland, type JoinIslandProps, type JoinSimulation, type JoinStepRenderContext, JoinSubmitButton, type JoinSubmitRenderContext, type JoinTier, type JoinTierRenderContext, JourneyFrame, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, type MemberContentAreaProps, MemberGifts, type MemberProvisionalRenderContext, MemberRestart, MembersArea, type MembersAreaProps, type MembershipCardTokenName, MembershipCards, type MembershipCardsMode, type MembershipCardsProps, NAMED_SEAT_RECIPIENT_WORDS, NamedSeatPurchase, NamedSeatRecipientLine, type PaymentPriceLines, PaymentStep, type PaymentStepProps, type PaymentStepSimulation, type RescheduleProps, Rescheduler, type Slot, SlotPicker, type SlotPickerClasses, type SlotPickerProps, type SubResponse, TierPlaceholder, additionalMemberSelection, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection };
|
|
863
|
+
export { ADDITIONAL_MEMBER_COPY, type AdditionalMemberCopy, type AdditionalMemberDraft, AdditionalMemberEditor, type AdditionalMemberEditorOptions, type AdditionalMemberEditorProps, type AdditionalMemberFieldNames, AdditionalMemberFields, type AdditionalMemberFieldsProps, type AdditionalMemberOffer, type AdditionalMemberOptions, type ApiFn, BrandStyle, type BrandStyleProps, type CheckoutSeatEditor, type CheckoutSeatEditorContext, type GiftCodeRedeemResult, GiftCodeRedeemer, type GiftCodeRedeemerCopy, type GiftCodeRedeemerProps, GiftOfferCards, type GiftOfferCardsMode, type GiftOfferCardsProps, GiftPurchases, type GiftPurchasesProps, type JoinBookingPreload, type JoinBookingSimulation, type JoinConfig, type JoinFlowState, JoinIsland, type JoinIslandProps, type JoinSimulation, type JoinStepRenderContext, JoinSubmitButton, type JoinSubmitRenderContext, type JoinTier, type JoinTierRenderContext, JourneyFrame, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, type MemberContentAreaProps, MemberGifts, type MemberProvisionalRenderContext, MemberRestart, MembersArea, type MembersAreaProps, type MembershipCardTokenName, MembershipCards, type MembershipCardsMode, type MembershipCardsProps, NAMED_SEAT_RECIPIENT_WORDS, NamedSeatInvitationLink, type NamedSeatInvitationLinkProps, NamedSeatPurchase, NamedSeatRecipientLine, type PaymentPriceLines, PaymentStep, type PaymentStepProps, type PaymentStepSimulation, type RescheduleProps, Rescheduler, type Slot, SlotPicker, type SlotPickerClasses, type SlotPickerProps, type SubResponse, TierPlaceholder, additionalMemberSelection, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, namedSeatInvitationMessage, namedSeatInvitationShareable, namedSeatInvitationUrl, tierNeedsPayment, timeLabel, tzShort, useTierSelection };
|
package/dist/ui/member/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
MembersArea,
|
|
16
16
|
MembershipCards,
|
|
17
17
|
NAMED_SEAT_RECIPIENT_WORDS,
|
|
18
|
+
NamedSeatInvitationLink,
|
|
18
19
|
NamedSeatPurchase,
|
|
19
20
|
NamedSeatRecipientLine,
|
|
20
21
|
PaymentStep,
|
|
@@ -30,16 +31,19 @@ import {
|
|
|
30
31
|
groupSlotsByDay,
|
|
31
32
|
loadJoinResume,
|
|
32
33
|
membershipApplicationHref,
|
|
34
|
+
namedSeatInvitationMessage,
|
|
35
|
+
namedSeatInvitationShareable,
|
|
36
|
+
namedSeatInvitationUrl,
|
|
33
37
|
tierNeedsPayment,
|
|
34
38
|
timeLabel,
|
|
35
39
|
tzShort,
|
|
36
40
|
useTierSelection
|
|
37
|
-
} from "../../chunk-
|
|
41
|
+
} from "../../chunk-SDGVPIXF.js";
|
|
38
42
|
import {
|
|
39
43
|
BrandStyle,
|
|
40
44
|
ChapterCopyProvider,
|
|
41
45
|
useChapterCopy
|
|
42
|
-
} from "../../chunk-
|
|
46
|
+
} from "../../chunk-GADLTNJF.js";
|
|
43
47
|
import "../../chunk-IVXVECKR.js";
|
|
44
48
|
export {
|
|
45
49
|
ADDITIONAL_MEMBER_COPY,
|
|
@@ -60,6 +64,7 @@ export {
|
|
|
60
64
|
MembersArea,
|
|
61
65
|
MembershipCards,
|
|
62
66
|
NAMED_SEAT_RECIPIENT_WORDS,
|
|
67
|
+
NamedSeatInvitationLink,
|
|
63
68
|
NamedSeatPurchase,
|
|
64
69
|
NamedSeatRecipientLine,
|
|
65
70
|
PaymentStep,
|
|
@@ -75,6 +80,9 @@ export {
|
|
|
75
80
|
groupSlotsByDay,
|
|
76
81
|
loadJoinResume,
|
|
77
82
|
membershipApplicationHref,
|
|
83
|
+
namedSeatInvitationMessage,
|
|
84
|
+
namedSeatInvitationShareable,
|
|
85
|
+
namedSeatInvitationUrl,
|
|
78
86
|
tierNeedsPayment,
|
|
79
87
|
timeLabel,
|
|
80
88
|
tzShort,
|