@bettercms-ai/sdk 1.26.3 → 1.28.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/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1429,6 +1429,8 @@ function createClient(options) {
|
|
|
1429
1429
|
metaDescription: d.metaDescription ?? null,
|
|
1430
1430
|
metaJson: d.metaJson ?? null,
|
|
1431
1431
|
blocks: d.blockJson ?? [],
|
|
1432
|
+
// C3: the DRAFT field styles, present only when the page styles a field.
|
|
1433
|
+
...d.fieldStyles ? { fieldStyles: d.fieldStyles } : {},
|
|
1432
1434
|
updatedAt: d.updatedAt ?? null,
|
|
1433
1435
|
publishedAt: d.publishedAt ?? null
|
|
1434
1436
|
};
|
|
@@ -1982,6 +1984,7 @@ function shouldShowField(field, values) {
|
|
|
1982
1984
|
function formInitialValues(form, prefill = {}) {
|
|
1983
1985
|
const values = {};
|
|
1984
1986
|
for (const field of form.fields) {
|
|
1987
|
+
if (field.type === "step") continue;
|
|
1985
1988
|
if (field.type === "checkbox" || field.type === "consent") {
|
|
1986
1989
|
values[field.key] = false;
|
|
1987
1990
|
} else if (field.type === "checkboxes") {
|