@ai-matrx/records-ui 0.101.8 → 0.101.9
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -36805,7 +36805,7 @@ function FormStage({
|
|
|
36805
36805
|
}
|
|
36806
36806
|
const unresolved = questions.filter((q) => !q.field);
|
|
36807
36807
|
const unanswerable = !whichAsked && questions.some((q) => q.showIf);
|
|
36808
|
-
const signedInPublic = connected && form.isPublic === true;
|
|
36808
|
+
const signedInPublic = connected && form.isPublic === true && !preview;
|
|
36809
36809
|
return /* @__PURE__ */ jsxs111(
|
|
36810
36810
|
"section",
|
|
36811
36811
|
{
|
|
@@ -46072,7 +46072,7 @@ function PreviewForms({ preview, booking }) {
|
|
|
46072
46072
|
/* @__PURE__ */ jsx152("h2", { className: "text-lg font-semibold tracking-tight", children: "Forms and booking" }),
|
|
46073
46073
|
/* @__PURE__ */ jsx152("div", { className: "grid min-w-0 gap-4 md:grid-cols-2", children: (forms ?? []).map((f) => /* @__PURE__ */ jsxs142("div", { className: "min-w-0 rounded-xl border border-border bg-card p-4", "data-template-preview-form": f.slug ?? f.id, children: [
|
|
46074
46074
|
/* @__PURE__ */ jsx152("h3", { className: "mb-3 text-sm font-semibold", children: f.name }),
|
|
46075
|
-
/* @__PURE__ */ jsx152(FormRunner, { form: f })
|
|
46075
|
+
/* @__PURE__ */ jsx152(FormRunner, { form: f, preview: true })
|
|
46076
46076
|
] }, f.id)) }),
|
|
46077
46077
|
booking ? pages.map((p) => /* @__PURE__ */ jsxs142("div", { className: "min-w-0 rounded-xl border border-border bg-card p-4", "data-template-preview-booking": p.id, children: [
|
|
46078
46078
|
/* @__PURE__ */ jsx152("h3", { className: "mb-3 text-sm font-semibold", children: String(p.page["title"] ?? "") }),
|