@odla-ai/chapter 0.48.3 → 0.49.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.
@@ -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-CMupQL9h.js';
5
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-CMupQL9h.js';
4
+ import { a as Chapter, b as ChapterCopy, M as MemberContentDocument, E as EffectiveMemberContent, c as MemberContentTierAuthority } from '../../copy-context-By4Nq7yB.js';
5
+ export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-By4Nq7yB.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. */
@@ -537,4 +537,15 @@ declare function AdminNote({ children }: {
537
537
  children: ComponentChildren;
538
538
  }): JSX.Element;
539
539
 
540
- export { 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, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, type DashboardSectionOptions, type EmailSectionOptions, LeaderAdmissionAction, type LeaderAdmissionActionProps, LeaderNetworkOverview, type MeetingsSectionOptions, MemberContentAdmin, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkShareActions, type NetworkShareActionsProps, Panel, type PeopleSectionOptions, RecordActions, type RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource };
540
+ /** Content-free reconciliation alerts and provider-verified retry controls for Chapter or network operators. */
541
+ declare function PaymentRecoveryQueue(props: {
542
+ getToken: () => Promise<string | null>;
543
+ scope?: "chapter" | "network";
544
+ }): preact.JSX.Element;
545
+
546
+ /** Read-only named-seat commercial objects, already included once in network financial totals. */
547
+ declare function NetworkSeatBilling(props: {
548
+ getToken: () => Promise<string | null>;
549
+ }): preact.JSX.Element;
550
+
551
+ export { 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, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, type DashboardSectionOptions, type EmailSectionOptions, LeaderAdmissionAction, type LeaderAdmissionActionProps, LeaderNetworkOverview, type MeetingsSectionOptions, MemberContentAdmin, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, type NetworkShareActionsProps, Panel, PaymentRecoveryQueue, type PeopleSectionOptions, RecordActions, type RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, builderLibrarySection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, memberContentSection, networkRecordsWorkspace, peopleSection, useAdminResource };
@@ -9,8 +9,10 @@ import {
9
9
  MemberContentAdmin,
10
10
  NetworkRecordEditor,
11
11
  NetworkRecordsWorkspace,
12
+ NetworkSeatBilling,
12
13
  NetworkShareActions,
13
14
  Panel,
15
+ PaymentRecoveryQueue,
14
16
  RecordActions,
15
17
  ThemeWarning,
16
18
  adminFetch,
@@ -35,11 +37,11 @@ import {
35
37
  networkRecordsWorkspace,
36
38
  peopleSection,
37
39
  useAdminResource
38
- } from "../../chunk-MQ4OPZCS.js";
40
+ } from "../../chunk-KXIGZWG5.js";
39
41
  import {
40
42
  ChapterCopyProvider,
41
43
  useChapterCopy
42
- } from "../../chunk-4HS2JPE2.js";
44
+ } from "../../chunk-N2JIKINY.js";
43
45
  export {
44
46
  AdminNote,
45
47
  AdminPage,
@@ -52,8 +54,10 @@ export {
52
54
  MemberContentAdmin,
53
55
  NetworkRecordEditor,
54
56
  NetworkRecordsWorkspace,
57
+ NetworkSeatBilling,
55
58
  NetworkShareActions,
56
59
  Panel,
60
+ PaymentRecoveryQueue,
57
61
  RecordActions,
58
62
  ThemeWarning,
59
63
  adminFetch,
@@ -1,6 +1,6 @@
1
- export { AdminAccountMenuProps, AdminBuilderLibraryData, AdminChrome, AdminMemberContentData, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceFrameProps, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, BuilderLibraryAdmin, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderAdmissionAction, LeaderAdmissionActionProps, LeaderNetworkOverview, MeetingsSectionOptions, MemberContentAdmin, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkShareActions, NetworkShareActionsProps, Panel, PeopleSectionOptions, RecordActions, RecordActionsProps, 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-CMupQL9h.js';
3
- export { ApiFn, BrandStyle, BrandStyleProps, GiftCodeRedeemResult, GiftCodeRedeemer, GiftCodeRedeemerCopy, GiftCodeRedeemerProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, GiftPurchases, GiftPurchasesProps, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, MemberContentAreaProps, MemberGifts, MemberProvisionalRenderContext, MembersArea, MembersAreaProps, MembershipCardTokenName, MembershipCards, MembershipCardsMode, MembershipCardsProps, PaymentPriceLines, PaymentStep, PaymentStepProps, PaymentStepSimulation, RescheduleProps, Rescheduler, Slot, SlotPicker, SlotPickerClasses, SlotPickerProps, SubResponse, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection } from './member/index.js';
1
+ export { AdminAccountMenuProps, AdminBuilderLibraryData, AdminChrome, AdminMemberContentData, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceFrameProps, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, BuilderLibraryAdmin, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderAdmissionAction, LeaderAdmissionActionProps, LeaderNetworkOverview, MeetingsSectionOptions, MemberContentAdmin, NetworkRecordEditor, NetworkRecordsWorkspace, NetworkSeatBilling, NetworkShareActions, NetworkShareActionsProps, Panel, PaymentRecoveryQueue, PeopleSectionOptions, RecordActions, RecordActionsProps, 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-By4Nq7yB.js';
3
+ export { ApiFn, BrandStyle, BrandStyleProps, GiftCodeRedeemResult, GiftCodeRedeemer, GiftCodeRedeemerCopy, GiftCodeRedeemerProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, GiftPurchases, GiftPurchasesProps, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, JourneyFrame, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, MemberContentAreaProps, MemberGifts, MemberProvisionalRenderContext, MemberRestart, MembersArea, MembersAreaProps, MembershipCardTokenName, MembershipCards, MembershipCardsMode, MembershipCardsProps, PaymentPriceLines, PaymentStep, PaymentStepProps, PaymentStepSimulation, RescheduleProps, Rescheduler, Slot, SlotPicker, SlotPickerClasses, SlotPickerProps, SubResponse, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, 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
@@ -3,9 +3,11 @@ import {
3
3
  GiftOfferCards,
4
4
  GiftPurchases,
5
5
  JoinIsland,
6
+ JourneyFrame,
6
7
  MEMBERSHIP_CARD_TOKEN_DEFAULTS,
7
8
  MemberContentArea,
8
9
  MemberGifts,
10
+ MemberRestart,
9
11
  MembersArea,
10
12
  MembershipCards,
11
13
  PaymentStep,
@@ -24,7 +26,7 @@ import {
24
26
  timeLabel,
25
27
  tzShort,
26
28
  useTierSelection
27
- } from "../chunk-KZ2AXEZW.js";
29
+ } from "../chunk-KHDO2QFA.js";
28
30
  import {
29
31
  AdminNote,
30
32
  AdminPage,
@@ -36,8 +38,10 @@ import {
36
38
  MemberContentAdmin,
37
39
  NetworkRecordEditor,
38
40
  NetworkRecordsWorkspace,
41
+ NetworkSeatBilling,
39
42
  NetworkShareActions,
40
43
  Panel,
44
+ PaymentRecoveryQueue,
41
45
  RecordActions,
42
46
  ThemeWarning,
43
47
  adminFetch,
@@ -62,12 +66,12 @@ import {
62
66
  networkRecordsWorkspace,
63
67
  peopleSection,
64
68
  useAdminResource
65
- } from "../chunk-MQ4OPZCS.js";
69
+ } from "../chunk-KXIGZWG5.js";
66
70
  import {
67
71
  BrandStyle,
68
72
  ChapterCopyProvider,
69
73
  useChapterCopy
70
- } from "../chunk-4HS2JPE2.js";
74
+ } from "../chunk-N2JIKINY.js";
71
75
  import "../chunk-IVXVECKR.js";
72
76
  export {
73
77
  AdminNote,
@@ -81,18 +85,22 @@ export {
81
85
  GiftOfferCards,
82
86
  GiftPurchases,
83
87
  JoinIsland,
88
+ JourneyFrame,
84
89
  LeaderAdmissionAction,
85
90
  LeaderNetworkOverview,
86
91
  MEMBERSHIP_CARD_TOKEN_DEFAULTS,
87
92
  MemberContentAdmin,
88
93
  MemberContentArea,
89
94
  MemberGifts,
95
+ MemberRestart,
90
96
  MembersArea,
91
97
  MembershipCards,
92
98
  NetworkRecordEditor,
93
99
  NetworkRecordsWorkspace,
100
+ NetworkSeatBilling,
94
101
  NetworkShareActions,
95
102
  Panel,
103
+ PaymentRecoveryQueue,
96
104
  PaymentStep,
97
105
  RecordActions,
98
106
  Rescheduler,
@@ -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-CMupQL9h.js';
4
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-CMupQL9h.js';
3
+ import { d as MemberContentProjection, e as MemberContentPageProjection, b as ChapterCopy, f as ChapterBrand } from '../../copy-context-By4Nq7yB.js';
4
+ export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-By4Nq7yB.js';
5
5
  import { FieldType, FieldConditions } from '@odla-ai/crm';
6
6
 
7
7
  /** A bookable slot: a start instant in epoch milliseconds. */
@@ -74,6 +74,9 @@ interface ApplicationSummary {
74
74
  paid: boolean;
75
75
  renewalAt: number | null;
76
76
  canceled: boolean;
77
+ membershipStatus?: string;
78
+ membershipGraceEndsAt?: number;
79
+ membershipAutoRenew?: boolean;
77
80
  /** Server-authoritative membership tier selected on this application. */
78
81
  tierId: string | null;
79
82
  }
@@ -152,6 +155,19 @@ interface RescheduleProps {
152
155
  * rebooks on pick. Degrades to a message when scheduling is unavailable. */
153
156
  declare function Rescheduler(props: RescheduleProps): preact.JSX.Element;
154
157
 
158
+ /** Verified recipient-visible invitation, without purchaser contact or billing credentials. */
159
+ interface JoinInvitation {
160
+ applicationId?: string;
161
+ seatId: string;
162
+ skuId: string;
163
+ purchaserName: string;
164
+ recipientName: string;
165
+ recipientEmail: string;
166
+ acceptanceEndsAt: number;
167
+ termEndsAt: number;
168
+ status: string;
169
+ }
170
+
155
171
  /** Deterministic, side-effect-free availability for a simulated join flow. */
156
172
  interface JoinBookingSimulation {
157
173
  slots: readonly Slot[];
@@ -388,6 +404,7 @@ type JoinFlowState = {
388
404
  /** Canonical flow state supplied to a site's per-step heading render slot. */
389
405
  interface JoinStepRenderContext {
390
406
  state: JoinFlowState;
407
+ invitation?: JoinInvitation;
391
408
  applicationId?: string;
392
409
  }
393
410
  /** Submission state supplied to a site's submit-control render slot. */
@@ -399,7 +416,9 @@ interface JoinSubmitRenderContext {
399
416
  interface JoinIslandProps {
400
417
  config: JoinConfig;
401
418
  /** Site application inputs; named values post to `/api/applications`. */
402
- children: ComponentChildren;
419
+ children: ComponentChildren | ((context: {
420
+ invitation: JoinInvitation | null;
421
+ }) => ComponentChildren);
403
422
  /** Where the confirmation links after booking. Default "/members/". */
404
423
  membersHref?: string;
405
424
  /** Resolved join copy. Defaults to `config.copy`, then the nearest provider. */
@@ -623,4 +642,17 @@ interface BrandStyleProps {
623
642
  * there is no brand to theme). */
624
643
  declare function BrandStyle(props: BrandStyleProps): preact.JSX.Element | null;
625
644
 
626
- export { type ApiFn, BrandStyle, type BrandStyleProps, 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, type JoinSubmitRenderContext, type JoinTier, type JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberContentArea, type MemberContentAreaProps, MemberGifts, type MemberProvisionalRenderContext, MembersArea, type MembersAreaProps, type MembershipCardTokenName, MembershipCards, type MembershipCardsMode, type MembershipCardsProps, type PaymentPriceLines, PaymentStep, type PaymentStepProps, type PaymentStepSimulation, type RescheduleProps, Rescheduler, type Slot, SlotPicker, type SlotPickerClasses, type SlotPickerProps, type SubResponse, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection };
645
+ /** Returning members retain their account and approval and go directly to a fresh payment quote. */
646
+ declare function MemberRestart(props: {
647
+ api: ApiFn;
648
+ application: MemberApplication;
649
+ applicationId: string | null;
650
+ onComplete: () => Promise<void>;
651
+ }): preact.JSX.Element;
652
+
653
+ /** Consistent, responsive purchase and application presentation using the host's Chapter brand tokens. */
654
+ declare function JourneyFrame({ children }: {
655
+ children: ComponentChildren;
656
+ }): preact.JSX.Element;
657
+
658
+ export { type ApiFn, BrandStyle, type BrandStyleProps, 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, 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, type PaymentPriceLines, PaymentStep, type PaymentStepProps, type PaymentStepSimulation, type RescheduleProps, Rescheduler, type Slot, SlotPicker, type SlotPickerClasses, type SlotPickerProps, type SubResponse, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection };
@@ -3,9 +3,11 @@ import {
3
3
  GiftOfferCards,
4
4
  GiftPurchases,
5
5
  JoinIsland,
6
+ JourneyFrame,
6
7
  MEMBERSHIP_CARD_TOKEN_DEFAULTS,
7
8
  MemberContentArea,
8
9
  MemberGifts,
10
+ MemberRestart,
9
11
  MembersArea,
10
12
  MembershipCards,
11
13
  PaymentStep,
@@ -24,12 +26,12 @@ import {
24
26
  timeLabel,
25
27
  tzShort,
26
28
  useTierSelection
27
- } from "../../chunk-KZ2AXEZW.js";
29
+ } from "../../chunk-KHDO2QFA.js";
28
30
  import {
29
31
  BrandStyle,
30
32
  ChapterCopyProvider,
31
33
  useChapterCopy
32
- } from "../../chunk-4HS2JPE2.js";
34
+ } from "../../chunk-N2JIKINY.js";
33
35
  import "../../chunk-IVXVECKR.js";
34
36
  export {
35
37
  BrandStyle,
@@ -38,9 +40,11 @@ export {
38
40
  GiftOfferCards,
39
41
  GiftPurchases,
40
42
  JoinIsland,
43
+ JourneyFrame,
41
44
  MEMBERSHIP_CARD_TOKEN_DEFAULTS,
42
45
  MemberContentArea,
43
46
  MemberGifts,
47
+ MemberRestart,
44
48
  MembersArea,
45
49
  MembershipCards,
46
50
  PaymentStep,