@odla-ai/chapter 0.51.0 → 0.52.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.
@@ -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-Ddat__H5.js';
5
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-Ddat__H5.js';
4
+ import { a as Chapter, b as ChapterCopy, M as MemberContentDocument, E as EffectiveMemberContent, c as MemberContentTierAuthority } from '../../copy-context-qvFo6eA7.js';
5
+ export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-qvFo6eA7.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. */
@@ -596,4 +596,15 @@ declare function NetworkSeatBilling(props: {
596
596
  getToken: () => Promise<string | null>;
597
597
  }): preact.JSX.Element;
598
598
 
599
- 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, 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 };
599
+ /** Props for {@link MembershipPolicyVersions}. */
600
+ interface MembershipPolicyVersionsProps {
601
+ getToken: () => Promise<string | null>;
602
+ /** Narrow the readout to one chapter; omit to list every chapter the authority serves. */
603
+ chapterId?: string;
604
+ }
605
+ /** Read-only readout of the membership offering and discount policy versions the network owner's authority holds,
606
+ * mounted beside billing so an operator can see why a card shows a list price and a payable price. Every row is
607
+ * the authority's own record with the state issuance would give it now; nothing here edits a version. */
608
+ declare function MembershipPolicyVersions(props: MembershipPolicyVersionsProps): preact.JSX.Element;
609
+
610
+ 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 };
@@ -9,6 +9,7 @@ import {
9
9
  LeaderAdmissionAction,
10
10
  LeaderNetworkOverview,
11
11
  MemberContentAdmin,
12
+ MembershipPolicyVersions,
12
13
  NamedSeatRecordPanel,
13
14
  NetworkRecordEditor,
14
15
  NetworkRecordsWorkspace,
@@ -41,11 +42,11 @@ import {
41
42
  networkRecordsWorkspace,
42
43
  peopleSection,
43
44
  useAdminResource
44
- } from "../../chunk-4EA5V4JE.js";
45
+ } from "../../chunk-WWF2TO3H.js";
45
46
  import {
46
47
  ChapterCopyProvider,
47
48
  useChapterCopy
48
- } from "../../chunk-JXX4BFDP.js";
49
+ } from "../../chunk-4M2PN5K3.js";
49
50
  export {
50
51
  APPLICATION_STAGES,
51
52
  AdminNote,
@@ -58,6 +59,7 @@ export {
58
59
  LeaderAdmissionAction,
59
60
  LeaderNetworkOverview,
60
61
  MemberContentAdmin,
62
+ MembershipPolicyVersions,
61
63
  NamedSeatRecordPanel,
62
64
  NetworkRecordEditor,
63
65
  NetworkRecordsWorkspace,
@@ -1,5 +1,5 @@
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, 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-Ddat__H5.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, 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-qvFo6eA7.js';
3
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';
package/dist/ui/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  timeLabel,
27
27
  tzShort,
28
28
  useTierSelection
29
- } from "../chunk-UAXWA5BL.js";
29
+ } from "../chunk-TEHCORNC.js";
30
30
  import {
31
31
  APPLICATION_STAGES,
32
32
  AdminNote,
@@ -38,6 +38,7 @@ import {
38
38
  LeaderAdmissionAction,
39
39
  LeaderNetworkOverview,
40
40
  MemberContentAdmin,
41
+ MembershipPolicyVersions,
41
42
  NamedSeatRecordPanel,
42
43
  NetworkRecordEditor,
43
44
  NetworkRecordsWorkspace,
@@ -70,12 +71,12 @@ import {
70
71
  networkRecordsWorkspace,
71
72
  peopleSection,
72
73
  useAdminResource
73
- } from "../chunk-4EA5V4JE.js";
74
+ } from "../chunk-WWF2TO3H.js";
74
75
  import {
75
76
  BrandStyle,
76
77
  ChapterCopyProvider,
77
78
  useChapterCopy
78
- } from "../chunk-JXX4BFDP.js";
79
+ } from "../chunk-4M2PN5K3.js";
79
80
  import "../chunk-IVXVECKR.js";
80
81
  export {
81
82
  APPLICATION_STAGES,
@@ -101,6 +102,7 @@ export {
101
102
  MemberRestart,
102
103
  MembersArea,
103
104
  MembershipCards,
105
+ MembershipPolicyVersions,
104
106
  NamedSeatRecordPanel,
105
107
  NetworkRecordEditor,
106
108
  NetworkRecordsWorkspace,
@@ -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-Ddat__H5.js';
4
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-Ddat__H5.js';
3
+ import { d as MemberContentProjection, e as MemberContentPageProjection, b as ChapterCopy, f as ChapterBrand } from '../../copy-context-qvFo6eA7.js';
4
+ export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-qvFo6eA7.js';
5
5
  import { FieldType, FieldConditions } from '@odla-ai/crm';
6
6
 
7
7
  /** A bookable slot: a start instant in epoch milliseconds. */
@@ -168,12 +168,6 @@ interface JoinInvitation {
168
168
  status: string;
169
169
  }
170
170
 
171
- /** Deterministic, side-effect-free availability for a simulated join flow. */
172
- interface JoinBookingSimulation {
173
- slots: readonly Slot[];
174
- timezone: string;
175
- }
176
-
177
171
  /** Props for {@link PaymentStep}. */
178
172
  interface PaymentStepProps {
179
173
  /** The application to attach the subscription to (the capability). */
@@ -206,11 +200,19 @@ interface PaymentStepProps {
206
200
  */
207
201
  simulation?: PaymentStepSimulation;
208
202
  }
209
- /** Server-authoritative membership amounts supplied to the payment price slot. */
203
+ /** Server-authoritative membership amounts supplied to the payment price slot, with where any difference comes from:
204
+ * `founding` when the network authority qualified the applicant (a real, policy-backed discount), `presentation` when
205
+ * the only basis is the signed catalog's compare-at price (a comparison, not a discount). Neither: a plain discount. */
210
206
  interface PaymentPriceLines {
211
207
  standardCents: number;
212
208
  discountCents: number;
213
209
  dueTodayCents: number;
210
+ founding?: {
211
+ cohortLabel: string;
212
+ };
213
+ presentation?: {
214
+ compareAtPriceCents: number;
215
+ };
214
216
  }
215
217
  /** Deterministic, non-charging inputs for a simulated payment step. */
216
218
  interface PaymentStepSimulation {
@@ -228,6 +230,12 @@ interface SubResponse {
228
230
  * → mount Stripe Elements → confirm. */
229
231
  declare function PaymentStep(props: PaymentStepProps): preact.JSX.Element;
230
232
 
233
+ /** Deterministic, side-effect-free availability for a simulated join flow. */
234
+ interface JoinBookingSimulation {
235
+ slots: readonly Slot[];
236
+ timezone: string;
237
+ }
238
+
231
239
  /**
232
240
  * Side-effect-free boundaries for an explorable Studio or test journey.
233
241
  * JoinIsland retains the production step order and presentation, while
@@ -467,11 +475,9 @@ interface JoinIslandProps {
467
475
  payment?: {
468
476
  appearance?: Record<string, unknown>;
469
477
  fonts?: readonly Record<string, unknown>[];
470
- renderPriceLines?: (lines: {
471
- standardCents: number;
472
- discountCents: number;
473
- dueTodayCents: number;
474
- }) => ComponentChildren;
478
+ /** Render the server-owned price lines; `lines.founding` says the difference is a policy-backed founding discount,
479
+ * `lines.presentation` that it is only a catalog comparison. Label them accordingly. */
480
+ renderPriceLines?: (lines: PaymentPriceLines) => ComponentChildren;
475
481
  children?: ComponentChildren;
476
482
  };
477
483
  /**
@@ -26,12 +26,12 @@ import {
26
26
  timeLabel,
27
27
  tzShort,
28
28
  useTierSelection
29
- } from "../../chunk-UAXWA5BL.js";
29
+ } from "../../chunk-TEHCORNC.js";
30
30
  import {
31
31
  BrandStyle,
32
32
  ChapterCopyProvider,
33
33
  useChapterCopy
34
- } from "../../chunk-JXX4BFDP.js";
34
+ } from "../../chunk-4M2PN5K3.js";
35
35
  import "../../chunk-IVXVECKR.js";
36
36
  export {
37
37
  BrandStyle,