@odla-ai/chapter 0.52.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-CYLlPzAc.js';
5
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-CYLlPzAc.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. */
@@ -42,11 +42,11 @@ import {
42
42
  networkRecordsWorkspace,
43
43
  peopleSection,
44
44
  useAdminResource
45
- } from "../../chunk-7N4VDWM5.js";
45
+ } from "../../chunk-WWF2TO3H.js";
46
46
  import {
47
47
  ChapterCopyProvider,
48
48
  useChapterCopy
49
- } from "../../chunk-A6W53GVM.js";
49
+ } from "../../chunk-4M2PN5K3.js";
50
50
  export {
51
51
  APPLICATION_STAGES,
52
52
  AdminNote,
@@ -1,5 +1,5 @@
1
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-CYLlPzAc.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-7RIT2UN5.js";
29
+ } from "../chunk-TEHCORNC.js";
30
30
  import {
31
31
  APPLICATION_STAGES,
32
32
  AdminNote,
@@ -71,12 +71,12 @@ import {
71
71
  networkRecordsWorkspace,
72
72
  peopleSection,
73
73
  useAdminResource
74
- } from "../chunk-7N4VDWM5.js";
74
+ } from "../chunk-WWF2TO3H.js";
75
75
  import {
76
76
  BrandStyle,
77
77
  ChapterCopyProvider,
78
78
  useChapterCopy
79
- } from "../chunk-A6W53GVM.js";
79
+ } from "../chunk-4M2PN5K3.js";
80
80
  import "../chunk-IVXVECKR.js";
81
81
  export {
82
82
  APPLICATION_STAGES,
@@ -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-CYLlPzAc.js';
4
- export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-CYLlPzAc.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-7RIT2UN5.js";
29
+ } from "../../chunk-TEHCORNC.js";
30
30
  import {
31
31
  BrandStyle,
32
32
  ChapterCopyProvider,
33
33
  useChapterCopy
34
- } from "../../chunk-A6W53GVM.js";
34
+ } from "../../chunk-4M2PN5K3.js";
35
35
  import "../../chunk-IVXVECKR.js";
36
36
  export {
37
37
  BrandStyle,
@@ -56,7 +56,7 @@ interface ChapterCopy {
56
56
  * agree rather than merely restating the policy. Set it to an empty string
57
57
  * to render the checkbox with the policy as its only label.
58
58
  */
59
- payment: TextFields<"setupFailed" | "preparing" | "pending" | "processing" | "payAndContinue" | "incomplete" | "consent" | "foundingMember" | "foundingDiscount">;
59
+ payment: TextFields<"setupFailed" | "preparing" | "pending" | "processing" | "payAndContinue" | "incomplete" | "consent" | "foundingMember" | "foundingDiscount" | "standardRate" | "yourRate">;
60
60
  done: TextFields<"label" | "calendarInvite" | "memberArea">;
61
61
  accepted: TextFields<"label" | "body">;
62
62
  gift: TextFields<"chooseSelf" | "optionsLabel" | "label" | "body" | "save" | "rotate" | "rotateFailed" | "claimTitle" | "claimBody" | "code" | "redeem" | "redeemed" | "redeemFailed">;
@@ -56,7 +56,7 @@ interface ChapterCopy {
56
56
  * agree rather than merely restating the policy. Set it to an empty string
57
57
  * to render the checkbox with the policy as its only label.
58
58
  */
59
- payment: TextFields<"setupFailed" | "preparing" | "pending" | "processing" | "payAndContinue" | "incomplete" | "consent" | "foundingMember" | "foundingDiscount">;
59
+ payment: TextFields<"setupFailed" | "preparing" | "pending" | "processing" | "payAndContinue" | "incomplete" | "consent" | "foundingMember" | "foundingDiscount" | "standardRate" | "yourRate">;
60
60
  done: TextFields<"label" | "calendarInvite" | "memberArea">;
61
61
  accepted: TextFields<"label" | "body">;
62
62
  gift: TextFields<"chooseSelf" | "optionsLabel" | "label" | "body" | "save" | "rotate" | "rotateFailed" | "claimTitle" | "claimBody" | "code" | "redeem" | "redeemed" | "redeemFailed">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/chapter",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "A leader/follower foundation for branded membership sites: shared CRM, admin, auth, payments, booking, and explicit record delivery from one defineChapter config.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/chapter",