@odla-ai/chapter 0.54.2 → 0.56.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/dist/ui/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  timeLabel,
30
30
  tzShort,
31
31
  useTierSelection
32
- } from "../chunk-SPEL4OGE.js";
32
+ } from "../chunk-IQZWCG42.js";
33
33
  import {
34
34
  APPLICATION_STAGES,
35
35
  AdminNote,
@@ -207,6 +207,8 @@ interface PaymentPriceLines {
207
207
  standardCents: number;
208
208
  discountCents: number;
209
209
  dueTodayCents: number;
210
+ /** Included in dueTodayCents; zero means the selected SKU includes the additional member. */
211
+ namedSeatCents?: number;
210
212
  founding?: {
211
213
  cohortLabel: string;
212
214
  };
@@ -260,6 +262,10 @@ interface JoinTier {
260
262
  blurb: string;
261
263
  /** True when the tier costs nothing, so the flow skips the payment step. */
262
264
  free: boolean;
265
+ /** Current configured additional-member price; zero means included. Checkout confirms the offer. */
266
+ seatOffer?: {
267
+ amountCents: number;
268
+ };
263
269
  /** Present when the network authority currently qualifies applicants as founding members at a reduced rate. */
264
270
  founding?: {
265
271
  cohortLabel: string;
@@ -276,7 +282,7 @@ interface JoinTier {
276
282
  * is an unstyled placeholder, not a design.
277
283
  */
278
284
  interface JoinTierRenderContext {
279
- /** Offered tiers, in display order. */
285
+ /** Offered tiers, with the selected tier first and the others in catalog order. */
280
286
  tiers: readonly JoinTier[];
281
287
  /** The chosen tier, or null while nothing is chosen. */
282
288
  selected: JoinTier | null;
@@ -473,6 +479,11 @@ interface JoinIslandProps {
473
479
  submitDisabled?: boolean;
474
480
  /** Stripe Elements presentation and site-owned payment content. */
475
481
  payment?: {
482
+ /** Prefill the optional additional member; Chapter quotes the selected SKU's configured price. */
483
+ initialNamedSeat?: {
484
+ recipientName: string;
485
+ recipientEmail: string;
486
+ };
476
487
  appearance?: Record<string, unknown>;
477
488
  fonts?: readonly Record<string, unknown>[];
478
489
  /** Render the server-owned price lines; `lines.founding` says the difference is a policy-backed founding discount,
@@ -29,7 +29,7 @@ import {
29
29
  timeLabel,
30
30
  tzShort,
31
31
  useTierSelection
32
- } from "../../chunk-SPEL4OGE.js";
32
+ } from "../../chunk-IQZWCG42.js";
33
33
  import {
34
34
  BrandStyle,
35
35
  ChapterCopyProvider,