@odla-ai/chapter 0.40.0 → 0.40.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 +8 -0
- package/dist/{chunk-BIYWPPH6.js → chunk-E5OXQ3DC.js} +5 -1
- package/dist/chunk-E5OXQ3DC.js.map +1 -0
- package/dist/{copy-context-Dbu9Bbq1.d.ts → copy-context-B14OOiYq.d.ts} +2 -0
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/ui/admin/index.d.ts +2 -2
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/member/index.d.ts +6 -2
- package/dist/ui/member/index.js +1 -1
- package/dist/worker/index.cjs +11 -2
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +4 -0
- package/dist/worker/index.d.ts +4 -0
- package/dist/worker/index.js +11 -2
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
- package/runbooks/greenfield.md +10 -4
- package/dist/chunk-BIYWPPH6.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -363,6 +363,8 @@ interface ChapterPrices {
|
|
|
363
363
|
interface ChapterPolicy {
|
|
364
364
|
disclaimerText?: string;
|
|
365
365
|
refundPolicyText?: string;
|
|
366
|
+
/** Plain-language merchant identity shown immediately before payment consent. */
|
|
367
|
+
merchantDisclosureText?: string;
|
|
366
368
|
trustCopy?: string;
|
|
367
369
|
commitmentText?: string;
|
|
368
370
|
normsText?: string;
|
|
@@ -1747,6 +1749,7 @@ interface JoinConfigGroup {
|
|
|
1747
1749
|
foundingDiscountCents?: number;
|
|
1748
1750
|
disclaimerText?: string;
|
|
1749
1751
|
refundPolicyText?: string;
|
|
1752
|
+
merchantDisclosureText?: string;
|
|
1750
1753
|
trustCopy?: string;
|
|
1751
1754
|
commitmentText?: string;
|
|
1752
1755
|
normsText?: string;
|
|
@@ -2644,6 +2647,8 @@ interface SignupControlApplication {
|
|
|
2644
2647
|
interface SignupControlPolicy {
|
|
2645
2648
|
disclaimerText: string;
|
|
2646
2649
|
refundPolicyText: string;
|
|
2650
|
+
/** Plain-language merchant identity displayed before payment consent. */
|
|
2651
|
+
merchantDisclosureText?: string;
|
|
2647
2652
|
trustCopy?: string;
|
|
2648
2653
|
commitmentText?: string;
|
|
2649
2654
|
normsText?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -363,6 +363,8 @@ interface ChapterPrices {
|
|
|
363
363
|
interface ChapterPolicy {
|
|
364
364
|
disclaimerText?: string;
|
|
365
365
|
refundPolicyText?: string;
|
|
366
|
+
/** Plain-language merchant identity shown immediately before payment consent. */
|
|
367
|
+
merchantDisclosureText?: string;
|
|
366
368
|
trustCopy?: string;
|
|
367
369
|
commitmentText?: string;
|
|
368
370
|
normsText?: string;
|
|
@@ -1747,6 +1749,7 @@ interface JoinConfigGroup {
|
|
|
1747
1749
|
foundingDiscountCents?: number;
|
|
1748
1750
|
disclaimerText?: string;
|
|
1749
1751
|
refundPolicyText?: string;
|
|
1752
|
+
merchantDisclosureText?: string;
|
|
1750
1753
|
trustCopy?: string;
|
|
1751
1754
|
commitmentText?: string;
|
|
1752
1755
|
normsText?: string;
|
|
@@ -2644,6 +2647,8 @@ interface SignupControlApplication {
|
|
|
2644
2647
|
interface SignupControlPolicy {
|
|
2645
2648
|
disclaimerText: string;
|
|
2646
2649
|
refundPolicyText: string;
|
|
2650
|
+
/** Plain-language merchant identity displayed before payment consent. */
|
|
2651
|
+
merchantDisclosureText?: string;
|
|
2647
2652
|
trustCopy?: string;
|
|
2648
2653
|
commitmentText?: string;
|
|
2649
2654
|
normsText?: string;
|
package/dist/index.js
CHANGED
|
@@ -165,6 +165,7 @@ function joinConfig(group, paymentsReady2, tiers2 = [], conditions = {}) {
|
|
|
165
165
|
conditions,
|
|
166
166
|
disclaimerText: group.disclaimerText ?? "",
|
|
167
167
|
refundPolicyText: group.refundPolicyText ?? "",
|
|
168
|
+
merchantDisclosureText: group.merchantDisclosureText ?? "",
|
|
168
169
|
trustCopy: group.trustCopy ?? "",
|
|
169
170
|
commitmentText: group.commitmentText ?? "",
|
|
170
171
|
normsText: group.normsText ?? "",
|
|
@@ -511,6 +512,7 @@ var groups = {
|
|
|
511
512
|
calendarLink: attr4("string", { optional: true }),
|
|
512
513
|
disclaimerText: attr4("string"),
|
|
513
514
|
refundPolicyText: attr4("string"),
|
|
515
|
+
merchantDisclosureText: attr4("string", { optional: true }),
|
|
514
516
|
trustCopy: attr4("string"),
|
|
515
517
|
commitmentText: attr4("string", { optional: true }),
|
|
516
518
|
normsText: attr4("string", { optional: true }),
|
|
@@ -736,6 +738,7 @@ function buildGroupSeed(config) {
|
|
|
736
738
|
replyTo: emails?.replyTo ?? emails?.notificationEmail ?? "",
|
|
737
739
|
disclaimerText: policy.disclaimerText ?? "",
|
|
738
740
|
refundPolicyText: policy.refundPolicyText ?? "",
|
|
741
|
+
merchantDisclosureText: policy.merchantDisclosureText ?? "",
|
|
739
742
|
trustCopy: policy.trustCopy ?? "",
|
|
740
743
|
emailTemplates: emails?.templates ?? defaultEmailTemplates(config.name),
|
|
741
744
|
schedulingJson: scheduling
|
|
@@ -4198,7 +4201,14 @@ function policyOf(value, errors) {
|
|
|
4198
4201
|
errors.push("document.policy must be an object");
|
|
4199
4202
|
return void 0;
|
|
4200
4203
|
}
|
|
4201
|
-
const allowed2 = /* @__PURE__ */ new Set([
|
|
4204
|
+
const allowed2 = /* @__PURE__ */ new Set([
|
|
4205
|
+
"disclaimerText",
|
|
4206
|
+
"refundPolicyText",
|
|
4207
|
+
"merchantDisclosureText",
|
|
4208
|
+
"trustCopy",
|
|
4209
|
+
"commitmentText",
|
|
4210
|
+
"normsText"
|
|
4211
|
+
]);
|
|
4202
4212
|
unknownKeys3(input, allowed2, "document.policy", errors);
|
|
4203
4213
|
const result = {};
|
|
4204
4214
|
for (const key of allowed2) {
|