@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/README.md +32 -0
- package/dist/{chunk-SPEL4OGE.js → chunk-IQZWCG42.js} +581 -362
- package/dist/chunk-IQZWCG42.js.map +1 -0
- package/dist/index.cjs +522 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +518 -262
- package/dist/index.js.map +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/member/index.d.ts +12 -1
- package/dist/ui/member/index.js +1 -1
- package/dist/worker/index.cjs +1110 -616
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +22 -1
- package/dist/worker/index.d.ts +22 -1
- package/dist/worker/index.js +1103 -609
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-SPEL4OGE.js.map +0 -1
package/dist/ui/index.js
CHANGED
|
@@ -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
|
|
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,
|