@odla-ai/chapter 0.41.1 → 0.42.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 +38 -12
- package/dist/{chunk-IAWBE5PX.js → chunk-JXFYOUDL.js} +8 -2
- package/dist/chunk-JXFYOUDL.js.map +1 -0
- package/dist/{chunk-O22RRPBT.js → chunk-MMDWXTJU.js} +2 -2
- package/dist/{chunk-PCRYLPMQ.js → chunk-S7CND3R5.js} +373 -327
- package/dist/chunk-S7CND3R5.js.map +1 -0
- package/dist/{copy-context-B14OOiYq.d.ts → copy-context-BNUzbL5g.d.ts} +19 -1
- package/dist/index.cjs +67 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -2
- package/dist/index.d.ts +66 -2
- package/dist/index.js +67 -11
- package/dist/index.js.map +1 -1
- package/dist/ui/admin/index.d.ts +2 -2
- package/dist/ui/admin/index.js +2 -2
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +5 -3
- package/dist/ui/member/index.d.ts +37 -9
- package/dist/ui/member/index.js +4 -2
- package/dist/worker/index.cjs +368 -62
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +19 -1
- package/dist/worker/index.d.ts +19 -1
- package/dist/worker/index.js +361 -55
- package/dist/worker/index.js.map +1 -1
- package/package.json +2 -2
- package/runbooks/greenfield.md +3 -0
- package/dist/chunk-IAWBE5PX.js.map +0 -1
- package/dist/chunk-PCRYLPMQ.js.map +0 -1
- /package/dist/{chunk-O22RRPBT.js.map → chunk-MMDWXTJU.js.map} +0 -0
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, 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-BNUzbL5g.js';
|
|
5
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-BNUzbL5g.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. */
|
package/dist/ui/admin/index.js
CHANGED
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
networkRecordsWorkspace,
|
|
34
34
|
peopleSection,
|
|
35
35
|
useAdminResource
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-MMDWXTJU.js";
|
|
37
37
|
import {
|
|
38
38
|
ChapterCopyProvider,
|
|
39
39
|
useChapterCopy
|
|
40
|
-
} from "../../chunk-
|
|
40
|
+
} from "../../chunk-JXFYOUDL.js";
|
|
41
41
|
export {
|
|
42
42
|
AdminNote,
|
|
43
43
|
AdminPage,
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AdminAccountMenuProps, AdminBuilderLibraryData, AdminChrome, AdminMemberContentData, AdminNote, AdminPage, AdminResource, AdminRouteState, AdminRouteTarget, AdminRouting, AdminSection, AdminSectionContext, AdminWorkspace, AdminWorkspaceNavProps, AdmissionGrantsWorkspace, AvailabilitySectionOptions, BillingSectionOptions, BuilderLibraryAdmin, ChapterAdmin, ChapterAdminAuthAdapter, ChapterAdminAuthConfig, ChapterAdminAuthLoadContext, ChapterAdminProps, ChapterAdminUser, CollectionSectionOptions, DashboardSectionOptions, EmailSectionOptions, LeaderNetworkOverview, MeetingsSectionOptions, MemberContentAdmin, 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-
|
|
3
|
-
export { ApiFn, BrandStyle, BrandStyleProps, GiftCodeRedeemer, GiftCodeRedeemerCopy, GiftCodeRedeemerProps, GiftOfferCards, GiftOfferCardsMode, GiftOfferCardsProps, 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';
|
|
2
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../copy-context-BNUzbL5g.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';
|
|
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,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GiftCodeRedeemer,
|
|
3
3
|
GiftOfferCards,
|
|
4
|
+
GiftPurchases,
|
|
4
5
|
JoinIsland,
|
|
5
6
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
6
7
|
MemberContentArea,
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
timeLabel,
|
|
24
25
|
tzShort,
|
|
25
26
|
useTierSelection
|
|
26
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-S7CND3R5.js";
|
|
27
28
|
import {
|
|
28
29
|
AdminNote,
|
|
29
30
|
AdminPage,
|
|
@@ -59,12 +60,12 @@ import {
|
|
|
59
60
|
networkRecordsWorkspace,
|
|
60
61
|
peopleSection,
|
|
61
62
|
useAdminResource
|
|
62
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-MMDWXTJU.js";
|
|
63
64
|
import {
|
|
64
65
|
BrandStyle,
|
|
65
66
|
ChapterCopyProvider,
|
|
66
67
|
useChapterCopy
|
|
67
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-JXFYOUDL.js";
|
|
68
69
|
import "../chunk-IVXVECKR.js";
|
|
69
70
|
export {
|
|
70
71
|
AdminNote,
|
|
@@ -76,6 +77,7 @@ export {
|
|
|
76
77
|
ChapterCopyProvider,
|
|
77
78
|
GiftCodeRedeemer,
|
|
78
79
|
GiftOfferCards,
|
|
80
|
+
GiftPurchases,
|
|
79
81
|
JoinIsland,
|
|
80
82
|
LeaderNetworkOverview,
|
|
81
83
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
@@ -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-BNUzbL5g.js';
|
|
4
|
+
export { C as ChapterCopyProvider, u as useChapterCopy } from '../../copy-context-BNUzbL5g.js';
|
|
5
5
|
import { FieldType, FieldConditions } from '@odla-ai/crm';
|
|
6
6
|
|
|
7
7
|
/** A bookable slot: a start instant in epoch milliseconds. */
|
|
@@ -359,6 +359,7 @@ type JoinFlowState = {
|
|
|
359
359
|
} | {
|
|
360
360
|
step: "payment";
|
|
361
361
|
applicationId: string;
|
|
362
|
+
giftPurchase?: boolean;
|
|
362
363
|
} | {
|
|
363
364
|
step: "paymentPending";
|
|
364
365
|
applicationId: string;
|
|
@@ -443,6 +444,11 @@ interface JoinIslandProps {
|
|
|
443
444
|
}) => ComponentChildren;
|
|
444
445
|
children?: ComponentChildren;
|
|
445
446
|
};
|
|
447
|
+
/**
|
|
448
|
+
* Authenticated API adapter used to claim a received gift against the current
|
|
449
|
+
* application. When absent, JoinIsland cannot offer recipient claiming.
|
|
450
|
+
*/
|
|
451
|
+
giftClaimApi?: ApiFn;
|
|
446
452
|
/** Run the canonical journey without network, Stripe, or calendar writes. */
|
|
447
453
|
simulation?: JoinSimulation;
|
|
448
454
|
}
|
|
@@ -553,13 +559,28 @@ interface GiftOfferCardsProps {
|
|
|
553
559
|
declare function GiftOfferCards(props: GiftOfferCardsProps): JSX.Element;
|
|
554
560
|
|
|
555
561
|
/** Resolved Chapter copy consumed by {@link GiftCodeRedeemer}. */
|
|
556
|
-
|
|
562
|
+
interface GiftCodeRedeemerCopy {
|
|
563
|
+
code: string;
|
|
564
|
+
redeem: string;
|
|
565
|
+
redeemed: string;
|
|
566
|
+
redeemFailed: string;
|
|
567
|
+
}
|
|
568
|
+
/** Canonical continuation returned after a recipient claim is committed. */
|
|
569
|
+
interface GiftCodeRedeemResult {
|
|
570
|
+
ok: true;
|
|
571
|
+
kind: "application";
|
|
572
|
+
id: string;
|
|
573
|
+
applicationId: string;
|
|
574
|
+
state?: "payment" | "paymentPending" | "booking" | "accepted";
|
|
575
|
+
}
|
|
557
576
|
/** Props for the canonical Chapter member gift-code redemption control. */
|
|
558
577
|
interface GiftCodeRedeemerProps {
|
|
559
578
|
api: ApiFn;
|
|
579
|
+
/** Exact application whose payment requirement the gift must satisfy. */
|
|
580
|
+
applicationId: string;
|
|
560
581
|
copy: GiftCodeRedeemerCopy;
|
|
561
582
|
id?: string;
|
|
562
|
-
onRedeemed?: () => void | Promise<void>;
|
|
583
|
+
onRedeemed?: (result: GiftCodeRedeemResult) => void | Promise<void>;
|
|
563
584
|
}
|
|
564
585
|
/**
|
|
565
586
|
* Redeems one Chapter gift code through the canonical member API.
|
|
@@ -569,14 +590,21 @@ interface GiftCodeRedeemerProps {
|
|
|
569
590
|
* browser capitalization and spellcheck are disabled, while
|
|
570
591
|
* `autocomplete="one-time-code"` allows platform code suggestions.
|
|
571
592
|
*/
|
|
572
|
-
declare function GiftCodeRedeemer({ api, copy, id, onRedeemed }: GiftCodeRedeemerProps): preact.JSX.Element;
|
|
593
|
+
declare function GiftCodeRedeemer({ api, applicationId, copy, id, onRedeemed }: GiftCodeRedeemerProps): preact.JSX.Element;
|
|
573
594
|
|
|
574
|
-
/**
|
|
575
|
-
|
|
595
|
+
/** Props for the authenticated gift purchaser ledger and checkout surface. */
|
|
596
|
+
interface GiftPurchasesProps {
|
|
576
597
|
api: ApiFn;
|
|
577
598
|
copy: ChapterCopy["members"]["gifts"];
|
|
578
599
|
paymentCopy: ChapterCopy["join"]["payment"];
|
|
579
|
-
}
|
|
600
|
+
}
|
|
601
|
+
/** Authenticated buyer offers, purchase history, and code rotation. */
|
|
602
|
+
declare function GiftPurchases(props: GiftPurchasesProps): preact.JSX.Element | null;
|
|
603
|
+
/**
|
|
604
|
+
* Compatibility name for the authenticated gift purchaser surface.
|
|
605
|
+
* @deprecated Use {@link GiftPurchases}; recipient claiming belongs in JoinIsland.
|
|
606
|
+
*/
|
|
607
|
+
declare const MemberGifts: typeof GiftPurchases;
|
|
580
608
|
|
|
581
609
|
/** Props for {@link BrandStyle}. */
|
|
582
610
|
interface BrandStyleProps {
|
|
@@ -588,4 +616,4 @@ interface BrandStyleProps {
|
|
|
588
616
|
* there is no brand to theme). */
|
|
589
617
|
declare function BrandStyle(props: BrandStyleProps): preact.JSX.Element | null;
|
|
590
618
|
|
|
591
|
-
export { type ApiFn, BrandStyle, type BrandStyleProps, GiftCodeRedeemer, type GiftCodeRedeemerCopy, type GiftCodeRedeemerProps, 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, 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 };
|
|
619
|
+
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 };
|
package/dist/ui/member/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GiftCodeRedeemer,
|
|
3
3
|
GiftOfferCards,
|
|
4
|
+
GiftPurchases,
|
|
4
5
|
JoinIsland,
|
|
5
6
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
6
7
|
MemberContentArea,
|
|
@@ -23,18 +24,19 @@ import {
|
|
|
23
24
|
timeLabel,
|
|
24
25
|
tzShort,
|
|
25
26
|
useTierSelection
|
|
26
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-S7CND3R5.js";
|
|
27
28
|
import {
|
|
28
29
|
BrandStyle,
|
|
29
30
|
ChapterCopyProvider,
|
|
30
31
|
useChapterCopy
|
|
31
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-JXFYOUDL.js";
|
|
32
33
|
import "../../chunk-IVXVECKR.js";
|
|
33
34
|
export {
|
|
34
35
|
BrandStyle,
|
|
35
36
|
ChapterCopyProvider,
|
|
36
37
|
GiftCodeRedeemer,
|
|
37
38
|
GiftOfferCards,
|
|
39
|
+
GiftPurchases,
|
|
38
40
|
JoinIsland,
|
|
39
41
|
MEMBERSHIP_CARD_TOKEN_DEFAULTS,
|
|
40
42
|
MemberContentArea,
|