@odla-ai/chapter 0.34.0 → 0.36.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.
- package/README.md +83 -2
- package/dist/{chunk-UJIVBGL5.js → chunk-I45VYBUV.js} +441 -239
- package/dist/chunk-I45VYBUV.js.map +1 -0
- package/dist/{chunk-JAWTIROV.js → chunk-IAWBE5PX.js} +55 -1
- package/dist/chunk-IAWBE5PX.js.map +1 -0
- package/dist/{chunk-TXE5ZDI4.js → chunk-LWM32REV.js} +166 -59
- package/dist/chunk-LWM32REV.js.map +1 -0
- package/dist/{copy-context-c1tqPXOR.d.ts → copy-context-0k0-yWHL.d.ts} +6 -2
- package/dist/index.cjs +967 -296
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +253 -3
- package/dist/index.d.ts +253 -3
- package/dist/index.js +967 -296
- package/dist/index.js.map +1 -1
- package/dist/ui/admin/index.d.ts +10 -3
- package/dist/ui/admin/index.js +6 -2
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +11 -3
- package/dist/ui/member/index.d.ts +86 -7
- package/dist/ui/member/index.js +6 -2
- package/dist/worker/index.cjs +1957 -722
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +200 -3
- package/dist/worker/index.d.ts +200 -3
- package/dist/worker/index.js +1968 -733
- package/dist/worker/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-JAWTIROV.js.map +0 -1
- package/dist/chunk-TXE5ZDI4.js.map +0 -1
- package/dist/chunk-UJIVBGL5.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 } from '@odla-ai/crm';
|
|
4
|
-
import { a as Chapter, b as ChapterCopy } from '../../copy-context-
|
|
5
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-
|
|
4
|
+
import { a as Chapter, b as ChapterCopy } from '../../copy-context-0k0-yWHL.js';
|
|
5
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-0k0-yWHL.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. */
|
|
@@ -286,6 +286,13 @@ declare function LeaderNetworkOverview({ ctx }: {
|
|
|
286
286
|
ctx: AdminSectionContext;
|
|
287
287
|
}): preact.JSX.Element;
|
|
288
288
|
|
|
289
|
+
/** Audited Chapter-admin surface for local decisions and effective Parent rows. */
|
|
290
|
+
declare function AdmissionGrantsWorkspace(props: {
|
|
291
|
+
getToken: () => Promise<string | null>;
|
|
292
|
+
}): JSX.Element;
|
|
293
|
+
/** Create the standard Chapter admission workspace definition. */
|
|
294
|
+
declare function admissionGrantsWorkspace(label?: string): AdminWorkspace;
|
|
295
|
+
|
|
289
296
|
/** Fetch a JSON `/api/admin/*` route with the admin bearer token. Throws on a
|
|
290
297
|
* non-2xx (the body's `error`, else the status). */
|
|
291
298
|
declare function adminFetch<T = unknown>(getToken: () => Promise<string | null>, path: string, init?: RequestInit): Promise<T>;
|
|
@@ -318,4 +325,4 @@ declare function AdminNote({ children }: {
|
|
|
318
325
|
children: ComponentChildren;
|
|
319
326
|
}): JSX.Element;
|
|
320
327
|
|
|
321
|
-
export { type AdminAccountMenuProps, type AdminChrome, AdminNote, AdminPage, type AdminResource, type AdminRouteState, type AdminRouteTarget, type AdminRouting, type AdminSection, type AdminSectionContext, type AdminWorkspace, type AdminWorkspaceNavProps, type AvailabilitySectionOptions, type BillingSectionOptions, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, type DashboardSectionOptions, type EmailSectionOptions, LeaderNetworkOverview, type MeetingsSectionOptions, NetworkRecordsWorkspace, NetworkShareActions, type NetworkShareActionsProps, Panel, type PeopleSectionOptions, RecordActions, type RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, applicationLifecycleAdapter, availabilitySection, billingSection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, networkRecordsWorkspace, peopleSection, useAdminResource };
|
|
328
|
+
export { type AdminAccountMenuProps, type AdminChrome, AdminNote, AdminPage, type AdminResource, type AdminRouteState, type AdminRouteTarget, type AdminRouting, type AdminSection, type AdminSectionContext, type AdminWorkspace, type AdminWorkspaceNavProps, AdmissionGrantsWorkspace, type AvailabilitySectionOptions, type BillingSectionOptions, ChapterAdmin, type ChapterAdminAuthAdapter, type ChapterAdminAuthConfig, type ChapterAdminAuthLoadContext, type ChapterAdminProps, type ChapterAdminUser, type CollectionSectionOptions, type DashboardSectionOptions, type EmailSectionOptions, LeaderNetworkOverview, type MeetingsSectionOptions, NetworkRecordsWorkspace, NetworkShareActions, type NetworkShareActionsProps, Panel, type PeopleSectionOptions, RecordActions, type RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, networkRecordsWorkspace, peopleSection, useAdminResource };
|
package/dist/ui/admin/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AdminNote,
|
|
3
3
|
AdminPage,
|
|
4
|
+
AdmissionGrantsWorkspace,
|
|
4
5
|
ChapterAdmin,
|
|
5
6
|
LeaderNetworkOverview,
|
|
6
7
|
NetworkRecordsWorkspace,
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
adminRouteHref,
|
|
14
15
|
adminSectionFromUrl,
|
|
15
16
|
adminSectionHref,
|
|
17
|
+
admissionGrantsWorkspace,
|
|
16
18
|
applicationLifecycleAdapter,
|
|
17
19
|
availabilitySection,
|
|
18
20
|
billingSection,
|
|
@@ -27,14 +29,15 @@ import {
|
|
|
27
29
|
networkRecordsWorkspace,
|
|
28
30
|
peopleSection,
|
|
29
31
|
useAdminResource
|
|
30
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-LWM32REV.js";
|
|
31
33
|
import {
|
|
32
34
|
ChapterCopyProvider,
|
|
33
35
|
useChapterCopy
|
|
34
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-IAWBE5PX.js";
|
|
35
37
|
export {
|
|
36
38
|
AdminNote,
|
|
37
39
|
AdminPage,
|
|
40
|
+
AdmissionGrantsWorkspace,
|
|
38
41
|
ChapterAdmin,
|
|
39
42
|
ChapterCopyProvider,
|
|
40
43
|
LeaderNetworkOverview,
|
|
@@ -48,6 +51,7 @@ export {
|
|
|
48
51
|
adminRouteHref,
|
|
49
52
|
adminSectionFromUrl,
|
|
50
53
|
adminSectionHref,
|
|
54
|
+
admissionGrantsWorkspace,
|
|
51
55
|
applicationLifecycleAdapter,
|
|
52
56
|
availabilitySection,
|
|
53
57
|
billingSection,
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AdminAccountMenuProps, AdminChrome, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceNavProps, AvailabilitySectionOptions, BillingSectionOptions, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderNetworkOverview, MeetingsSectionOptions, NetworkRecordsWorkspace, NetworkShareActions, NetworkShareActionsProps, Panel, PeopleSectionOptions, RecordActions, RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, applicationLifecycleAdapter, availabilitySection, billingSection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, networkRecordsWorkspace, peopleSection, useAdminResource } from './admin/index.js';
|
|
2
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../copy-context-
|
|
3
|
-
export { ApiFn, BrandStyle, BrandStyleProps, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, MemberProvisionalRenderContext, MembersArea, MembersAreaProps, MembershipCardTokenName, MembershipCards, MembershipCardsMode, MembershipCardsProps, PaymentPriceLines, PaymentStep, PaymentStepProps, PaymentStepSimulation, RescheduleProps, Rescheduler, Slot, SlotPicker, SlotPickerClasses, SlotPickerProps, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection } from './member/index.js';
|
|
1
|
+
export { AdminAccountMenuProps, AdminChrome, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderNetworkOverview, MeetingsSectionOptions, NetworkRecordsWorkspace, NetworkShareActions, NetworkShareActionsProps, Panel, PeopleSectionOptions, RecordActions, RecordActionsProps, ThemeWarning, adminFetch, adminRouteFromUrl, adminRouteHref, adminSectionFromUrl, adminSectionHref, admissionGrantsWorkspace, applicationLifecycleAdapter, availabilitySection, billingSection, collectionSection, dashboardSection, defaultAdminSections, defaultAdminWorkspaces, emailSection, loadChapterAdminConfig, loadChapterAdminUser, meetingsSection, networkRecordsWorkspace, peopleSection, useAdminResource } from './admin/index.js';
|
|
2
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../copy-context-0k0-yWHL.js';
|
|
3
|
+
export { ApiFn, BrandStyle, BrandStyleProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, JoinBookingSimulation, JoinConfig, JoinFlowState, JoinIsland, JoinIslandProps, JoinSimulation, JoinStepRenderContext, JoinSubmitRenderContext, JoinTier, JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, 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';
|
|
4
4
|
import 'preact';
|
|
5
5
|
import '@odla-ai/crm';
|
|
6
6
|
import '@odla-ai/crm/ui';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GiftOfferCards,
|
|
2
3
|
JoinIsland,
|
|
3
4
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
5
|
+
MemberGifts,
|
|
4
6
|
MembersArea,
|
|
5
7
|
MembershipCards,
|
|
6
8
|
PaymentStep,
|
|
@@ -19,10 +21,11 @@ import {
|
|
|
19
21
|
timeLabel,
|
|
20
22
|
tzShort,
|
|
21
23
|
useTierSelection
|
|
22
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-I45VYBUV.js";
|
|
23
25
|
import {
|
|
24
26
|
AdminNote,
|
|
25
27
|
AdminPage,
|
|
28
|
+
AdmissionGrantsWorkspace,
|
|
26
29
|
ChapterAdmin,
|
|
27
30
|
LeaderNetworkOverview,
|
|
28
31
|
NetworkRecordsWorkspace,
|
|
@@ -35,6 +38,7 @@ import {
|
|
|
35
38
|
adminRouteHref,
|
|
36
39
|
adminSectionFromUrl,
|
|
37
40
|
adminSectionHref,
|
|
41
|
+
admissionGrantsWorkspace,
|
|
38
42
|
applicationLifecycleAdapter,
|
|
39
43
|
availabilitySection,
|
|
40
44
|
billingSection,
|
|
@@ -49,22 +53,25 @@ import {
|
|
|
49
53
|
networkRecordsWorkspace,
|
|
50
54
|
peopleSection,
|
|
51
55
|
useAdminResource
|
|
52
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-LWM32REV.js";
|
|
53
57
|
import {
|
|
54
58
|
BrandStyle,
|
|
55
59
|
ChapterCopyProvider,
|
|
56
60
|
useChapterCopy
|
|
57
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-IAWBE5PX.js";
|
|
58
62
|
import "../chunk-IVXVECKR.js";
|
|
59
63
|
export {
|
|
60
64
|
AdminNote,
|
|
61
65
|
AdminPage,
|
|
66
|
+
AdmissionGrantsWorkspace,
|
|
62
67
|
BrandStyle,
|
|
63
68
|
ChapterAdmin,
|
|
64
69
|
ChapterCopyProvider,
|
|
70
|
+
GiftOfferCards,
|
|
65
71
|
JoinIsland,
|
|
66
72
|
LeaderNetworkOverview,
|
|
67
73
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
74
|
+
MemberGifts,
|
|
68
75
|
MembersArea,
|
|
69
76
|
MembershipCards,
|
|
70
77
|
NetworkRecordsWorkspace,
|
|
@@ -81,6 +88,7 @@ export {
|
|
|
81
88
|
adminRouteHref,
|
|
82
89
|
adminSectionFromUrl,
|
|
83
90
|
adminSectionHref,
|
|
91
|
+
admissionGrantsWorkspace,
|
|
84
92
|
applicationLifecycleAdapter,
|
|
85
93
|
availabilitySection,
|
|
86
94
|
billingSection,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
2
|
import { ComponentChildren, JSX } from 'preact';
|
|
3
|
-
import { b as ChapterCopy, c as ChapterBrand } from '../../copy-context-
|
|
4
|
-
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-
|
|
3
|
+
import { b as ChapterCopy, c as ChapterBrand } from '../../copy-context-0k0-yWHL.js';
|
|
4
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-0k0-yWHL.js';
|
|
5
5
|
import '@odla-ai/crm';
|
|
6
6
|
|
|
7
7
|
/** A bookable slot: a start instant in epoch milliseconds. */
|
|
@@ -140,7 +140,12 @@ interface PaymentStepProps {
|
|
|
140
140
|
/** Refund-policy copy the applicant must acknowledge to start payment. */
|
|
141
141
|
refundPolicyText: string;
|
|
142
142
|
/** Called once the payment succeeds (or is processing) — advance to booking. */
|
|
143
|
-
onPaid: (
|
|
143
|
+
onPaid: (result: {
|
|
144
|
+
gift: boolean;
|
|
145
|
+
giftCode?: string;
|
|
146
|
+
}) => void;
|
|
147
|
+
/** Override checkout creation for authenticated member gift purchases. */
|
|
148
|
+
startCheckout?: () => Promise<SubResponse>;
|
|
144
149
|
/** Stripe Elements appearance passed through without Chapter reinterpretation. */
|
|
145
150
|
appearance?: Record<string, unknown>;
|
|
146
151
|
/** Stripe Elements custom-font descriptors. */
|
|
@@ -168,6 +173,14 @@ interface PaymentPriceLines {
|
|
|
168
173
|
interface PaymentStepSimulation {
|
|
169
174
|
lineItems: PaymentPriceLines;
|
|
170
175
|
}
|
|
176
|
+
/** Checkout setup response shared by membership and gift Payment Element flows. */
|
|
177
|
+
interface SubResponse {
|
|
178
|
+
clientSecret?: string;
|
|
179
|
+
publishableKey?: string | null;
|
|
180
|
+
lineItems?: PaymentPriceLines;
|
|
181
|
+
gift?: boolean;
|
|
182
|
+
giftCode?: string;
|
|
183
|
+
}
|
|
171
184
|
/** The card-entry step: acknowledge the refund policy → create the subscription
|
|
172
185
|
* → mount Stripe Elements → confirm. */
|
|
173
186
|
declare function PaymentStep(props: PaymentStepProps): preact.JSX.Element;
|
|
@@ -238,6 +251,32 @@ declare function TierPlaceholder(context: JoinTierRenderContext): ComponentChild
|
|
|
238
251
|
*/
|
|
239
252
|
declare function tierNeedsPayment(selected: JoinTier | null, paymentsReady: boolean): boolean;
|
|
240
253
|
|
|
254
|
+
/** Membership tier or standalone entitlement fulfilled by redemption. */
|
|
255
|
+
type GiftOfferTarget = {
|
|
256
|
+
type: "tier";
|
|
257
|
+
tierId: string;
|
|
258
|
+
} | {
|
|
259
|
+
type: "entitlement";
|
|
260
|
+
entitlementKey: string;
|
|
261
|
+
};
|
|
262
|
+
/** Server-authored gift SKU; provider identifiers never reach public config. */
|
|
263
|
+
interface GiftOffer {
|
|
264
|
+
id: string;
|
|
265
|
+
target: GiftOfferTarget;
|
|
266
|
+
billingMode: "one_time" | "subscription";
|
|
267
|
+
stripePriceId: string;
|
|
268
|
+
priceCents: number;
|
|
269
|
+
currency: string;
|
|
270
|
+
redemptionLifetimeHours: number;
|
|
271
|
+
activeFrom?: number;
|
|
272
|
+
activeUntil?: number;
|
|
273
|
+
title: string;
|
|
274
|
+
description: string;
|
|
275
|
+
ctaLabel: string;
|
|
276
|
+
}
|
|
277
|
+
/** Provider-free gift offer shape rendered by Chapter and exact CMS previews. */
|
|
278
|
+
type PublicGiftOffer = Omit<GiftOffer, "stripePriceId" | "target">;
|
|
279
|
+
|
|
241
280
|
/** The public join config (the shape `GET /api/join-config` returns). */
|
|
242
281
|
interface JoinConfig {
|
|
243
282
|
id: string;
|
|
@@ -249,6 +288,7 @@ interface JoinConfig {
|
|
|
249
288
|
tiers?: readonly JoinTier[];
|
|
250
289
|
/** Resolved copy for the packaged join flow. */
|
|
251
290
|
copy?: ChapterCopy["join"];
|
|
291
|
+
giftOffers?: readonly PublicGiftOffer[];
|
|
252
292
|
}
|
|
253
293
|
/** Server-validated state used to resume a join journey after a redirect. */
|
|
254
294
|
type JoinFlowState = {
|
|
@@ -262,6 +302,14 @@ type JoinFlowState = {
|
|
|
262
302
|
} | {
|
|
263
303
|
step: "booking";
|
|
264
304
|
applicationId: string;
|
|
305
|
+
} | {
|
|
306
|
+
step: "accepted";
|
|
307
|
+
applicationId: string;
|
|
308
|
+
} | {
|
|
309
|
+
step: "gift";
|
|
310
|
+
applicationId: string;
|
|
311
|
+
claimId?: string;
|
|
312
|
+
code?: string;
|
|
265
313
|
} | {
|
|
266
314
|
step: "done";
|
|
267
315
|
applicationId: string;
|
|
@@ -301,12 +349,24 @@ interface JoinIslandProps {
|
|
|
301
349
|
}> & {
|
|
302
350
|
membersHref: string;
|
|
303
351
|
}) => ComponentChildren;
|
|
352
|
+
/** Replace the no-interview acceptance card while retaining orchestration. */
|
|
353
|
+
renderAccepted?: (context: Extract<JoinFlowState, {
|
|
354
|
+
step: "accepted";
|
|
355
|
+
}> & {
|
|
356
|
+
membersHref: string;
|
|
357
|
+
}) => ComponentChildren;
|
|
358
|
+
/** Replace the one-time gift-code card while retaining capability recovery. */
|
|
359
|
+
renderGift?: (context: Extract<JoinFlowState, {
|
|
360
|
+
step: "gift";
|
|
361
|
+
}>) => ComponentChildren;
|
|
304
362
|
/** Replace the submit control without replacing the application form. */
|
|
305
363
|
renderSubmit?: (context: JoinSubmitRenderContext) => ComponentChildren;
|
|
306
364
|
/** Render the site's tier chooser; the fallback is intentionally unstyled. */
|
|
307
365
|
renderTiers?: (context: JoinTierRenderContext) => ComponentChildren;
|
|
308
366
|
/** Preselect a tier when it is offered. */
|
|
309
367
|
initialTierId?: string;
|
|
368
|
+
/** Preselect a gift offer instead of self-membership. */
|
|
369
|
+
initialGiftOfferId?: string;
|
|
310
370
|
/** Additional host validation gate for the submit action. */
|
|
311
371
|
submitDisabled?: boolean;
|
|
312
372
|
/** Stripe Elements presentation and site-owned payment content. */
|
|
@@ -326,9 +386,8 @@ interface JoinIslandProps {
|
|
|
326
386
|
|
|
327
387
|
/** Load canonical server state for a capability-bearing application id. */
|
|
328
388
|
declare function loadJoinResume(applicationId: string, fetcher?: typeof fetch): Promise<JoinFlowState>;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
* chapter charges) and booking (when a calendar is connected) to confirmation. */
|
|
389
|
+
|
|
390
|
+
/** Signup island with stable retries and server-driven payment/booking continuation. */
|
|
332
391
|
declare function JoinIsland(props: JoinIslandProps): JSX.Element;
|
|
333
392
|
|
|
334
393
|
/** The first stable, shared Chapter membership-page renderer contract. */
|
|
@@ -417,6 +476,26 @@ declare function membershipApplicationHref(applicationPath: string | undefined,
|
|
|
417
476
|
*/
|
|
418
477
|
declare function MembershipCards(props: MembershipCardsProps): JSX.Element;
|
|
419
478
|
|
|
479
|
+
/** Interactive live selection or inert exact-preview rendering. */
|
|
480
|
+
type GiftOfferCardsMode = "select" | "preview";
|
|
481
|
+
/** Public provider-free offer-card renderer inputs. */
|
|
482
|
+
interface GiftOfferCardsProps {
|
|
483
|
+
offers: readonly PublicGiftOffer[];
|
|
484
|
+
mode?: GiftOfferCardsMode;
|
|
485
|
+
selectedOfferId?: string | null;
|
|
486
|
+
onSelect?: (offerId: string) => void;
|
|
487
|
+
ariaLabel?: string;
|
|
488
|
+
}
|
|
489
|
+
/** Exact Chapter gift-offer renderer shared by live signup, members, and CMS preview. */
|
|
490
|
+
declare function GiftOfferCards(props: GiftOfferCardsProps): JSX.Element;
|
|
491
|
+
|
|
492
|
+
/** Authenticated buyer ledger, checkout, code rotation, and beneficiary redemption. */
|
|
493
|
+
declare function MemberGifts(props: {
|
|
494
|
+
api: ApiFn;
|
|
495
|
+
copy: ChapterCopy["members"]["gifts"];
|
|
496
|
+
paymentCopy: ChapterCopy["join"]["payment"];
|
|
497
|
+
}): preact.JSX.Element | null;
|
|
498
|
+
|
|
420
499
|
/** Props for {@link BrandStyle}. */
|
|
421
500
|
interface BrandStyleProps {
|
|
422
501
|
brand: ChapterBrand | undefined;
|
|
@@ -427,4 +506,4 @@ interface BrandStyleProps {
|
|
|
427
506
|
* there is no brand to theme). */
|
|
428
507
|
declare function BrandStyle(props: BrandStyleProps): preact.JSX.Element | null;
|
|
429
508
|
|
|
430
|
-
export { type ApiFn, BrandStyle, type BrandStyleProps, type JoinBookingSimulation, type JoinConfig, type JoinFlowState, JoinIsland, type JoinIslandProps, type JoinSimulation, type JoinStepRenderContext, type JoinSubmitRenderContext, type JoinTier, type JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, 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, TierPlaceholder, dayKey, dayLabel, fmtDate, fmtMoney, fullLabel, groupSlotsByDay, loadJoinResume, membershipApplicationHref, tierNeedsPayment, timeLabel, tzShort, useTierSelection };
|
|
509
|
+
export { type ApiFn, BrandStyle, type BrandStyleProps, GiftOfferCards, type GiftOfferCardsMode, type GiftOfferCardsProps, type JoinBookingSimulation, type JoinConfig, type JoinFlowState, JoinIsland, type JoinIslandProps, type JoinSimulation, type JoinStepRenderContext, type JoinSubmitRenderContext, type JoinTier, type JoinTierRenderContext, MEMBERSHIP_CARD_TOKEN_DEFAULTS, 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 };
|
package/dist/ui/member/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GiftOfferCards,
|
|
2
3
|
JoinIsland,
|
|
3
4
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
5
|
+
MemberGifts,
|
|
4
6
|
MembersArea,
|
|
5
7
|
MembershipCards,
|
|
6
8
|
PaymentStep,
|
|
@@ -19,18 +21,20 @@ import {
|
|
|
19
21
|
timeLabel,
|
|
20
22
|
tzShort,
|
|
21
23
|
useTierSelection
|
|
22
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-I45VYBUV.js";
|
|
23
25
|
import {
|
|
24
26
|
BrandStyle,
|
|
25
27
|
ChapterCopyProvider,
|
|
26
28
|
useChapterCopy
|
|
27
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-IAWBE5PX.js";
|
|
28
30
|
import "../../chunk-IVXVECKR.js";
|
|
29
31
|
export {
|
|
30
32
|
BrandStyle,
|
|
31
33
|
ChapterCopyProvider,
|
|
34
|
+
GiftOfferCards,
|
|
32
35
|
JoinIsland,
|
|
33
36
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
37
|
+
MemberGifts,
|
|
34
38
|
MembersArea,
|
|
35
39
|
MembershipCards,
|
|
36
40
|
PaymentStep,
|