@prenta/sections-react 0.18.13 → 0.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @actuate-media/sections-react
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9e0cb2c: Form submissions now follow the site attribution settings: public forms publish the windows, capture waits for consent when required, and a turned-off recorder stores no visit data.
8
+ - 9e0cb2c: Forms list rows and the editor's Build mode now follow the forms kit.
9
+ - **@prenta/core**: `GET /forms` adds `entries14d` (clean entries per day for the last 14 days, in the site timezone), `pageCount` (pages whose visible form sections embed the form) and `failedEmails7d` per form. `ConditionalLogic` gains `hide` rules and `match: 'any'`, enforced by the same visibility check on the server and client. `FormField` gains `autoKey`, `hideLabel`, `cssClass`, `nameFormat`, `nextLabel` and `backLabel`; schema validation rejects an unknown logic match or unsafe CSS class, and the public schema passes `hideLabel` and a sanitized `cssClass` through.
10
+ - **@prenta/admin**: the forms list is rebuilt as the kit's row list (initials tile, slug and page count, field badges, entries with a 14-day sparkline and "new" pill, notification switch with delivery status, status pill), with Needs attention / Most entries / Name sorting, status counts, the failed-email chip, and Schema and Duplicate in a row menu. The Build panel has the full General / Advanced / Logic field options, Duplicate and Delete, selectable layout fields, and `@dnd-kit` drag from the palette and between fields with keyboard reordering and screen-reader announcements. `UnderlineTabs` gains `fill` and per-tab `disabled`, `Segmented` gains `fill`, `StatusBadge` a `pill` shape and `Toggle` an `lg` size. Faint text on forms screens used a surface colour and was nearly invisible; it now uses `--muted`.
11
+ - **@prenta/sections-react**: `<PrentaForm>` honours `hideLabel` (label kept for screen readers) and `cssClass` on each field.
12
+
13
+ - 9e0cb2c: Public forms now behave the way the editor builds them.
14
+ - **@prenta/sections-react**: `<PrentaForm>` runs multi-step forms: one step at a time with the numbered list, progress bar or no indicator, Next and Back using each page break's button text, per-step required checks, answers kept on Back, focus moved to the new step's heading and the step announced. Conditional logic shows and hides fields as people answer, using cms-core's own rules; hidden fields aren't required and their answers aren't sent. Headings, content blocks and dividers render as content instead of text inputs, hidden fields post their value (with `{page_url}` and URL-parameter tokens filled in) without showing, consent renders as a checkbox, "Checkboxes" with choices post a list, half-width fields sit side by side, the submit button uses the form's text, and a validation message clears once the visitor edits.
15
+ - **@prenta/core**: forms gain `submitLabel`, `firstStep` and `progress` (validated on update and exposed on the public schema, with page-break `nextLabel` / `backLabel`). A checkbox field with choices validates and stores the picked values as a list on the server and client. `renderPublicFormHtml` renders layout fields as content, hidden fields as hidden inputs with tokens resolved from the page URL, consent and checkbox lists as checkboxes, each step as a labelled fieldset, and leaves the HTML `required` attribute off fields logic can hide.
16
+ - **@prenta/admin**: the form's General settings add Submit button text and a Steps card with First step title and Progress indicator; the Build canvas previews the submit text and first step title.
17
+
18
+ ### Patch Changes
19
+
20
+ - 9e0cb2c: Security fixes from the October 2026 audit.
21
+
22
+ **@prenta/core**
23
+ - Authors can no longer edit, delete, restore or purge documents someone else created. The ownership check ran before the document was loaded, so it never had an owner to compare.
24
+ - Scheduling or cancelling a publish or unpublish now needs a publishing role. Before, any signed-in user could do it on collections without review.
25
+ - Owners can publish. The publish allow-list left out the OWNER role.
26
+ - New `isSafeRedirectUrl` in `@prenta/core/forms/client`. A form's redirect URL must be `https://`, `http://` or a same-site path. A `javascript:` URL was stored and followed after submit. Forms saved earlier are checked again on submit.
27
+ - Only owners and admins can change form webhooks and notification recipients, or create a form with recipients. Forms can no longer be written through the generic `/collections/forms` routes.
28
+ - `PATCH /forms/entries/:id` applies the PHI gate and refuses an empty patch. Star and archive webhooks leave out entry data when PHI safeguards are on. Bulk entry updates are capped at 500.
29
+ - Public form submissions are capped at 1 MB (50 MB for uploads) before the body is parsed.
30
+ - `PRENTA_DISABLE_RATE_LIMIT` is ignored on Vercel deployments and on production servers outside CI.
31
+ - Dashboard stats routes need a session even when `CMS_SECRET` is missing (they answer 503).
32
+
33
+ **@prenta/sections-react**
34
+ - `PrentaForm` only follows an `http(s)` or same-site redirect after submit.
35
+
36
+ - Updated dependencies [9e0cb2c]
37
+ - Updated dependencies [9e0cb2c]
38
+ - Updated dependencies [9e0cb2c]
39
+ - Updated dependencies [9e0cb2c]
40
+ - Updated dependencies [9e0cb2c]
41
+ - Updated dependencies [9e0cb2c]
42
+ - Updated dependencies [9e0cb2c]
43
+ - Updated dependencies [9e0cb2c]
44
+ - @prenta/core@8.15.0
45
+
46
+ ## 0.18.14
47
+
48
+ ### Patch Changes
49
+
50
+ - 9944f83: Security fixes from the October 2026 audit.
51
+
52
+ **@prenta/core**
53
+ - Authors can no longer edit, delete, restore or purge documents someone else created. The ownership check ran before the document was loaded, so it never had an owner to compare.
54
+ - Scheduling or cancelling a publish or unpublish now needs a publishing role. Before, any signed-in user could do it on collections without review.
55
+ - Owners can publish. The publish allow-list left out the OWNER role.
56
+ - New `isSafeRedirectUrl` in `@prenta/core/forms/client`. A form's redirect URL must be `https://`, `http://` or a same-site path. A `javascript:` URL was stored and followed after submit. Forms saved earlier are checked again on submit.
57
+ - Only owners and admins can change form webhooks and notification recipients, or create a form with recipients. Forms can no longer be written through the generic `/collections/forms` routes.
58
+ - `PATCH /forms/entries/:id` applies the PHI gate and refuses an empty patch. Star and archive webhooks leave out entry data when PHI safeguards are on. Bulk entry updates are capped at 500.
59
+ - Public form submissions are capped at 1 MB (50 MB for uploads) before the body is parsed.
60
+ - `PRENTA_DISABLE_RATE_LIMIT` is ignored on Vercel deployments and on production servers outside CI.
61
+ - Dashboard stats routes need a session even when `CMS_SECRET` is missing (they answer 503).
62
+
63
+ **@prenta/sections-react**
64
+ - `PrentaForm` only follows an `http(s)` or same-site redirect after submit.
65
+
66
+ - Updated dependencies [9944f83]
67
+ - @prenta/core@8.14.0
68
+
3
69
  ## 0.18.13
4
70
 
5
71
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"PrentaForm.d.ts","sourceRoot":"","sources":["../src/PrentaForm.tsx"],"names":[],"mappings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EACJ,IAAI,EAAE,WAAW,EACjB,OAAY,EACZ,YAAY,EACZ,SAAS,EACT,WAAW,GACZ,EAAE,eAAe,GAAG,SAAS,CA8T7B"}
@@ -21,17 +21,22 @@ import { useEffect, useMemo, useRef, useState } from 'react';
21
21
  import { trackFormError, trackFormStart, trackFormSubmit } from '@prenta/core/forms/analytics';
22
22
  import { getAttributionForSubmission } from '@prenta/core/forms/attribution';
23
23
  import { captureAttributionIfAllowed } from './attribution.js';
24
- import { buildSubmitBody, coercePublicForm, fieldControl, firstMissingRequired, htmlInputType, initialValues, resolveSubmitOutcome, } from './forms.js';
24
+ import { buildSubmitBody, coercePublicForm, fieldControl, firstMissingRequired, htmlInputType, initialValues, isChoiceList, isPublicFieldVisible, resolveSubmitOutcome, splitSteps, submittableValues, } from './forms.js';
25
25
  import { webMcpFieldAttribute, webMcpFormAttributes } from './webmcp.js';
26
+ const currentPageUrl = () => typeof window !== 'undefined' ? window.location.href : null;
26
27
  const FIELD_BASE = 'w-full rounded-lg border border-zinc-300 bg-[var(--section-bg)] px-3 py-2 text-sm text-[var(--section-fg)] shadow-sm placeholder:text-[var(--section-muted)] focus:border-[var(--section-accent)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--section-accent)_40%,transparent)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60';
27
28
  export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken, className, onSubmitted, }) {
28
29
  const [form, setForm] = useState(initialForm ?? null);
29
30
  const [status, setStatus] = useState(initialForm ? 'ready' : 'loading');
30
31
  const [message, setMessage] = useState('');
31
- const [values, setValues] = useState(() => initialForm ? initialValues(initialForm) : {});
32
+ const [values, setValues] = useState(() => initialForm ? initialValues(initialForm, currentPageUrl()) : {});
33
+ const [step, setStep] = useState(0);
34
+ const [stepAnnouncement, setStepAnnouncement] = useState('');
32
35
  const honeypotRef = useRef('');
33
36
  const startedAtRef = useRef(null);
34
37
  const successRef = useRef(null);
38
+ const stepHeadingRef = useRef(null);
39
+ const movedStepRef = useRef(false);
35
40
  // GA4 "form_start" must fire once per render of the form, on first interaction.
36
41
  const startTrackedRef = useRef(false);
37
42
  // Set once the (consent-gated) attribution capture ran, so submit can attach
@@ -60,7 +65,8 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
60
65
  if (!parsed)
61
66
  throw new Error('Form schema was malformed');
62
67
  setForm(parsed);
63
- setValues(initialValues(parsed));
68
+ setValues(initialValues(parsed, currentPageUrl()));
69
+ setStep(0);
64
70
  setStatus('ready');
65
71
  })
66
72
  .catch((err) => {
@@ -82,15 +88,17 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
82
88
  // Record this page view as a marketing attribution touch (UTMs, ad click
83
89
  // IDs, referrer). Consent-gated when plugin-consent is installed.
84
90
  useEffect(() => {
91
+ if (!form)
92
+ return;
85
93
  let cancelled = false;
86
- void captureAttributionIfAllowed().then((allowed) => {
94
+ void captureAttributionIfAllowed(form.attribution).then((allowed) => {
87
95
  if (!cancelled && allowed)
88
96
  attributionAllowedRef.current = true;
89
97
  });
90
98
  return () => {
91
99
  cancelled = true;
92
100
  };
93
- }, []);
101
+ }, [form]);
94
102
  useEffect(() => {
95
103
  if (status !== 'success')
96
104
  return;
@@ -100,17 +108,55 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
100
108
  el.focus();
101
109
  el.scrollIntoView({ block: 'nearest' });
102
110
  }, [status, message]);
111
+ const steps = useMemo(() => (form ? splitSteps(form) : []), [form]);
112
+ const multiStep = steps.length > 1;
113
+ const lastStep = steps.length - 1;
114
+ const currentStep = steps[Math.min(step, lastStep)];
115
+ // After Next or Back, move focus to the new step's heading so keyboard and
116
+ // screen-reader users land at the top of what changed.
117
+ useEffect(() => {
118
+ if (!movedStepRef.current)
119
+ return;
120
+ movedStepRef.current = false;
121
+ stepHeadingRef.current?.focus();
122
+ }, [step]);
123
+ function goToStep(next) {
124
+ const target = steps[next];
125
+ if (!target)
126
+ return;
127
+ movedStepRef.current = true;
128
+ setStep(next);
129
+ setMessage('');
130
+ setStatus('ready');
131
+ setStepAnnouncement(`Step ${next + 1} of ${steps.length}: ${target.title}`);
132
+ }
103
133
  const setValue = (key, value) => {
104
134
  if (!startTrackedRef.current && form?.analytics?.enabled) {
105
135
  startTrackedRef.current = true;
106
136
  trackFormStart(form.name, form.id, form.analytics);
107
137
  }
108
138
  setValues((prev) => ({ ...prev, [key]: value }));
139
+ // A validation message describes the answers as they were; editing clears it.
140
+ if (status === 'error') {
141
+ setStatus('ready');
142
+ setMessage('');
143
+ }
109
144
  };
110
145
  async function handleSubmit(e) {
111
146
  e.preventDefault();
112
147
  if (!form || status === 'submitting')
113
148
  return;
149
+ // On an earlier step, submitting (Enter or Next) checks this step only.
150
+ if (multiStep && step < lastStep) {
151
+ const missingHere = firstMissingRequired({ fields: currentStep?.fields ?? [] }, values);
152
+ if (missingHere) {
153
+ setMessage(`Please complete the “${missingHere}” field.`);
154
+ setStatus('error');
155
+ return;
156
+ }
157
+ goToStep(step + 1);
158
+ return;
159
+ }
114
160
  const missing = firstMissingRequired(form, values);
115
161
  if (missing) {
116
162
  setMessage(`Please complete the “${missing}” field.`);
@@ -121,7 +167,7 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
121
167
  setMessage('');
122
168
  const startedAt = startedAtRef.current;
123
169
  const body = buildSubmitBody({
124
- values,
170
+ values: submittableValues(form, values),
125
171
  honeypotKey: form.spam.honeypotFieldKey,
126
172
  honeypotValue: honeypotRef.current,
127
173
  elapsedMs: startedAt !== null ? Date.now() - startedAt : null,
@@ -130,7 +176,7 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
130
176
  // AttributionData is a closed interface; the wire format is a plain
131
177
  // JSON object, so widen it for the body builder.
132
178
  attribution: attributionAllowedRef.current
133
- ? getAttributionForSubmission()
179
+ ? getAttributionForSubmission(form.attribution)
134
180
  : null,
135
181
  });
136
182
  try {
@@ -182,22 +228,67 @@ export function PrentaForm({ slug, form: initialForm, baseUrl = '', captchaToken
182
228
  return (_jsx("div", { ref: successRef, tabIndex: -1, className: className, role: "status", "aria-live": "polite", children: _jsx("p", { className: "rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-800", children: message }) }));
183
229
  }
184
230
  const busy = status === 'submitting';
185
- return (_jsxs("form", { className: `flex flex-col gap-5 ${className ?? ''}`.trim(), onSubmit: handleSubmit, noValidate: true, ...webMcpFormAttributes(form), children: [form.fields.map((field) => (_jsx(Field, { field: field, value: values[field.key], disabled: busy, form: form, onChange: (v) => setValue(field.key, v) }, field.id || field.key))), honeypotKey && (_jsxs("div", { "aria-hidden": "true", className: "pointer-events-none absolute -left-[9999px] h-0 w-0 overflow-hidden", children: [_jsx("label", { htmlFor: `prenta-hp-${honeypotKey}`, children: "Leave this field empty" }), _jsx("input", { id: `prenta-hp-${honeypotKey}`, type: "text", tabIndex: -1, autoComplete: "off", name: honeypotKey, defaultValue: "", onChange: (e) => {
231
+ return (_jsxs("form", { className: `flex flex-col gap-5 ${className ?? ''}`.trim(), onSubmit: handleSubmit, noValidate: true, ...webMcpFormAttributes(form), children: [multiStep && currentStep ? (_jsx(StepProgress, { steps: steps, current: step, style: form.progress ?? 'steps', headingRef: stepHeadingRef })) : null, _jsx("div", { className: "grid grid-cols-1 gap-5 sm:grid-cols-2", children: (currentStep?.fields ?? form.fields)
232
+ .filter((field) => field.type !== 'hidden' && isPublicFieldVisible(field, values))
233
+ .map((field) => (_jsx("div", { className: field.width === 'half' ? 'min-w-0' : 'min-w-0 sm:col-span-2', children: _jsx(Field, { field: field, value: values[field.key], disabled: busy, form: form, onChange: (v) => setValue(field.key, v) }) }, field.id || field.key))) }), honeypotKey && (_jsxs("div", { "aria-hidden": "true", className: "pointer-events-none absolute -left-[9999px] h-0 w-0 overflow-hidden", children: [_jsx("label", { htmlFor: `prenta-hp-${honeypotKey}`, children: "Leave this field empty" }), _jsx("input", { id: `prenta-hp-${honeypotKey}`, type: "text", tabIndex: -1, autoComplete: "off", name: honeypotKey, defaultValue: "", onChange: (e) => {
186
234
  honeypotRef.current = e.target.value;
187
- } })] })), captchaNote && _jsx("p", { className: "text-xs text-zinc-500", children: captchaNote }), status === 'error' && message && (_jsx("p", { role: "alert", className: "text-sm text-red-600", children: message })), _jsx("div", { children: _jsx("button", { type: "submit", disabled: busy || !!captchaNote, className: "inline-flex items-center justify-center rounded-lg bg-[var(--section-accent)] px-5 py-2.5 text-sm font-medium text-[var(--section-accent-foreground)] transition-colors hover:bg-[var(--section-accent-hover)] disabled:cursor-not-allowed disabled:opacity-60", children: busy ? 'Sending…' : 'Submit' }) }), _jsx("span", { className: "sr-only", "aria-live": "polite", children: busy ? 'Submitting your response' : '' })] }));
235
+ } })] })), captchaNote && _jsx("p", { className: "text-xs text-zinc-500", children: captchaNote }), status === 'error' && message && (_jsx("p", { role: "alert", className: "text-sm text-red-600", children: message })), _jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [multiStep && step > 0 ? (_jsx("button", { type: "button", onClick: () => goToStep(step - 1), disabled: busy, className: "inline-flex items-center justify-center rounded-lg border border-zinc-300 px-5 py-2.5 text-sm font-medium text-[var(--section-fg)] transition-colors hover:bg-zinc-50 disabled:cursor-not-allowed disabled:opacity-60", children: currentStep?.start?.backLabel || 'Back' })) : null, _jsx("button", { type: "submit", disabled: busy || (step >= lastStep && !!captchaNote), className: "inline-flex items-center justify-center rounded-lg bg-[var(--section-accent)] px-5 py-2.5 text-sm font-medium text-[var(--section-accent-foreground)] transition-colors hover:bg-[var(--section-accent-hover)] disabled:cursor-not-allowed disabled:opacity-60", children: busy
236
+ ? 'Sending…'
237
+ : multiStep && step < lastStep
238
+ ? steps[step + 1]?.start?.nextLabel || 'Next'
239
+ : form.submitLabel || 'Submit' })] }), _jsx("span", { className: "sr-only", "aria-live": "polite", children: busy ? 'Submitting your response' : stepAnnouncement })] }));
240
+ }
241
+ /**
242
+ * Progress for multi-step forms (kit `steps` / `bar` / `none`). The step
243
+ * title is always an `<h3>` so focus can move to it after Next or Back;
244
+ * with the numbered list it is visually hidden, since the list shows it.
245
+ */
246
+ function StepProgress({ steps, current, style, headingRef, }) {
247
+ const title = steps[current]?.title ?? '';
248
+ return (_jsxs("div", { className: "flex flex-col gap-3", children: [style === 'steps' ? (_jsx("ol", { className: "flex list-none gap-2 p-0", "aria-label": "Steps", children: steps.map((s, index) => {
249
+ const on = index === current;
250
+ const done = index < current;
251
+ return (_jsxs("li", { "aria-current": on ? 'step' : undefined, className: `flex min-w-0 flex-1 items-center gap-2 border-t-[3px] pt-2 text-xs ${on || done
252
+ ? 'border-[var(--section-accent)] text-[var(--section-fg)]'
253
+ : 'border-zinc-200 text-[var(--section-muted)]'}`, children: [_jsx("b", { className: `flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-[11px] ${on || done
254
+ ? 'bg-[var(--section-accent)] text-[var(--section-accent-foreground)]'
255
+ : 'border border-zinc-300'}`, children: index + 1 }), _jsx("span", { className: `truncate ${on ? '' : 'max-sm:hidden'}`, children: s.title })] }, index));
256
+ }) })) : style === 'bar' ? (_jsxs("div", { className: "text-xs text-[var(--section-muted)]", children: [_jsx("div", { className: "mb-1.5 flex justify-between", children: _jsxs("span", { children: ["Step ", current + 1, " of ", steps.length] }) }), _jsx("div", { className: "h-1.5 rounded-full bg-zinc-100", "aria-hidden": "true", children: _jsx("div", { className: "h-full rounded-full bg-[var(--section-accent)]", style: { width: `${((current + 1) / steps.length) * 100}%` } }) })] })) : null, _jsx("h3", { ref: headingRef, tabIndex: -1, className: style === 'steps'
257
+ ? 'sr-only'
258
+ : 'text-base font-semibold text-[var(--section-fg)] focus:outline-none', children: style === 'steps' ? `Step ${current + 1} of ${steps.length}: ${title}` : title })] }));
188
259
  }
189
260
  function Field({ field, value, disabled, onChange, form, }) {
190
261
  const control = fieldControl(field.type);
191
262
  const id = `prenta-field-${field.key}`;
192
263
  const describedBy = field.helpText ? `${id}-help` : undefined;
193
264
  const help = field.helpText ? (_jsx("p", { id: `${id}-help`, className: "text-xs text-zinc-500", children: field.helpText })) : null;
265
+ const extra = field.cssClass ? ` ${field.cssClass}` : '';
266
+ const labelVisibility = field.hideLabel ? ' sr-only' : '';
267
+ switch (field.type) {
268
+ case 'heading':
269
+ return (_jsxs("div", { className: `flex flex-col gap-1 pt-2${extra}`, children: [_jsx("h3", { className: "text-base font-semibold text-[var(--section-fg)]", children: field.label }), field.helpText ? (_jsx("p", { className: "text-sm text-[var(--section-muted)]", children: field.helpText })) : null] }));
270
+ case 'content':
271
+ case 'richtext':
272
+ case 'richText':
273
+ return field.helpText ? (_jsx("p", { className: `text-sm leading-relaxed text-[var(--section-muted)]${extra}`, children: field.helpText })) : null;
274
+ case 'divider':
275
+ return _jsx("hr", { className: "border-zinc-200" });
276
+ case 'pagebreak':
277
+ return null;
278
+ case 'consent':
279
+ return (_jsxs("div", { className: `flex flex-col gap-1${extra}`, children: [_jsxs("label", { className: "flex items-start gap-2 text-sm text-zinc-700", children: [_jsx("input", { id: id, type: "checkbox", checked: value === true, required: field.required, disabled: disabled, "aria-describedby": describedBy, onChange: (e) => onChange(e.target.checked), className: "mt-0.5 h-4 w-4 rounded border-zinc-300 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), _jsxs("span", { children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] })] }), help] }));
280
+ }
281
+ if (isChoiceList(field)) {
282
+ const picked = Array.isArray(value) ? value.map(String) : [];
283
+ return (_jsxs("fieldset", { className: `flex flex-col gap-2${extra}`, children: [_jsxs("legend", { className: `text-sm font-medium text-zinc-700${labelVisibility}`, children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), (field.options ?? []).map((opt) => (_jsxs("label", { className: "flex items-center gap-2 text-sm text-zinc-700", children: [_jsx("input", { type: "checkbox", name: field.key, value: opt.value, checked: picked.includes(opt.value), disabled: disabled, onChange: (e) => onChange(e.target.checked ? [...picked, opt.value] : picked.filter((v) => v !== opt.value)), className: "h-4 w-4 rounded border-zinc-300 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), opt.label] }, opt.value))), help] }));
284
+ }
194
285
  // Radio + checkbox use a group label rather than a single bound <label>.
195
286
  if (control === 'radio') {
196
- return (_jsxs("fieldset", { className: "flex flex-col gap-2", children: [_jsxs("legend", { className: "text-sm font-medium text-zinc-700", children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), (field.options ?? []).map((opt) => (_jsxs("label", { className: "flex items-center gap-2 text-sm text-zinc-700", children: [_jsx("input", { type: "radio", name: field.key, value: opt.value, checked: value === opt.value, required: field.required, disabled: disabled, onChange: () => onChange(opt.value), className: "h-4 w-4 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), opt.label] }, opt.value))), help] }));
287
+ return (_jsxs("fieldset", { className: `flex flex-col gap-2${extra}`, children: [_jsxs("legend", { className: `text-sm font-medium text-zinc-700${labelVisibility}`, children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), (field.options ?? []).map((opt) => (_jsxs("label", { className: "flex items-center gap-2 text-sm text-zinc-700", children: [_jsx("input", { type: "radio", name: field.key, value: opt.value, checked: value === opt.value, required: field.required, disabled: disabled, onChange: () => onChange(opt.value), className: "h-4 w-4 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), opt.label] }, opt.value))), help] }));
197
288
  }
198
289
  if (control === 'checkbox') {
199
- return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("label", { className: "flex items-center gap-2 text-sm text-zinc-700", children: [_jsx("input", { id: id, type: "checkbox", checked: value === true, required: field.required, disabled: disabled, "aria-describedby": describedBy, onChange: (e) => onChange(e.target.checked), className: "h-4 w-4 rounded border-zinc-300 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), help] }));
290
+ return (_jsxs("div", { className: `flex flex-col gap-1${extra}`, children: [_jsxs("label", { className: "flex items-center gap-2 text-sm text-zinc-700", children: [_jsx("input", { id: id, type: "checkbox", checked: value === true, required: field.required, disabled: disabled, "aria-describedby": describedBy, onChange: (e) => onChange(e.target.checked), className: "h-4 w-4 rounded border-zinc-300 text-[var(--section-accent)]", ...webMcpFieldAttribute(form, field) }), field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), help] }));
200
291
  }
201
- return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("label", { htmlFor: id, className: "text-sm font-medium text-zinc-700", children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), control === 'textarea' ? (_jsx("textarea", { id: id, name: field.key, required: field.required, disabled: disabled, placeholder: field.placeholder, "aria-describedby": describedBy, value: typeof value === 'string' ? value : '', onChange: (e) => onChange(e.target.value), rows: 5, className: `${FIELD_BASE} resize-y`, ...webMcpFieldAttribute(form, field) })) : control === 'select' ? (_jsxs("select", { id: id, name: field.key, required: field.required, disabled: disabled, "aria-describedby": describedBy, value: typeof value === 'string' ? value : '', onChange: (e) => onChange(e.target.value), className: FIELD_BASE, ...webMcpFieldAttribute(form, field), children: [_jsx("option", { value: "", children: field.placeholder || 'Select…' }), (field.options ?? []).map((opt) => (_jsx("option", { value: opt.value, children: opt.label }, opt.value)))] })) : (_jsx("input", { id: id, name: field.key, type: htmlInputType(field.type), required: field.required, disabled: disabled, placeholder: field.placeholder, "aria-describedby": describedBy, value: typeof value === 'string' || typeof value === 'number' ? String(value) : '', onChange: (e) => onChange(e.target.value), className: FIELD_BASE, ...webMcpFieldAttribute(form, field) })), help] }));
292
+ return (_jsxs("div", { className: `flex flex-col gap-1${extra}`, children: [_jsxs("label", { htmlFor: id, className: `text-sm font-medium text-zinc-700${labelVisibility}`, children: [field.label, field.required && _jsx("span", { className: "text-red-500", children: " *" })] }), control === 'textarea' ? (_jsx("textarea", { id: id, name: field.key, required: field.required, disabled: disabled, placeholder: field.placeholder, "aria-describedby": describedBy, value: typeof value === 'string' ? value : '', onChange: (e) => onChange(e.target.value), rows: 5, className: `${FIELD_BASE} resize-y`, ...webMcpFieldAttribute(form, field) })) : control === 'select' ? (_jsxs("select", { id: id, name: field.key, required: field.required, disabled: disabled, "aria-describedby": describedBy, value: typeof value === 'string' ? value : '', onChange: (e) => onChange(e.target.value), className: FIELD_BASE, ...webMcpFieldAttribute(form, field), children: [_jsx("option", { value: "", children: field.placeholder || 'Select…' }), (field.options ?? []).map((opt) => (_jsx("option", { value: opt.value, children: opt.label }, opt.value)))] })) : (_jsx("input", { id: id, name: field.key, type: htmlInputType(field.type), required: field.required, disabled: disabled, placeholder: field.placeholder, "aria-describedby": describedBy, value: typeof value === 'string' || typeof value === 'number' ? String(value) : '', onChange: (e) => onChange(e.target.value), className: FIELD_BASE, ...webMcpFieldAttribute(form, field) })), help] }));
202
293
  }
203
294
  //# sourceMappingURL=PrentaForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrentaForm.js","sourceRoot":"","sources":["../src/PrentaForm.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAA;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,oBAAoB,GAGrB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAuBxE,MAAM,UAAU,GACd,yVAAyV,CAAA;AAE3V,MAAM,UAAU,UAAU,CAAC,EACzB,IAAI,EACJ,IAAI,EAAE,WAAW,EACjB,OAAO,GAAG,EAAE,EACZ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E,EAAE,EAAE,EACN,IAAI,EAAE,KAAK,CAAC,GAAG,EACf,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,KAAK,CAAC,WAAW,sBACZ,WAAW,EAC7B,KAAK,EAAE,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAClF,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,SAAS,EAAE,UAAU,KACjB,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,GACrC,CACH,EACA,IAAI,IACD,CACP,CAAA;AACH,CAAC"}
@@ -1,31 +1,32 @@
1
+ export interface AttributionCaptureOptions {
2
+ record?: boolean;
3
+ requireConsent?: boolean;
4
+ firstTouchDays?: number;
5
+ lastTouchHours?: number;
6
+ }
1
7
  /**
2
8
  * Whether attribution may be captured under the site's consent state.
3
9
  *
4
10
  * - Plugin not installed → the site has no consent framework; resolve `true`.
5
11
  * - Analytics already granted → resolve `true` immediately.
6
- * - No decision yet → wait for the visitor's banner choice (the URL's UTM
7
- * params are still intact at that point, so a late grant loses nothing).
12
+ * - No decision yet → wait for the visitor's banner choice.
8
13
  *
9
- * The consent plugin is an optional peer, so it is loaded with a dynamic
10
- * import (documented exception to the no-inline-imports rule — same pattern
11
- * as `WidgetEmbedSection`): a static import would break sites that don't
12
- * install it.
14
+ * Kept for callers that have not opted into `requireConsent`. The settings-aware
15
+ * path is {@link captureAttributionIfAllowed}.
13
16
  */
14
17
  export declare function attributionConsentAllowed(): Promise<boolean>;
15
18
  /**
16
- * Capture the current page as an attribution touch if consent allows.
17
- * Resolves `true` when capture ran (callers can then attach attribution on
18
- * submit without re-checking consent).
19
+ * Capture the current page as an attribution touch when the site settings and
20
+ * consent decision allow it. Resolves `false` without writing storage when
21
+ * recording is off or consent was not given.
19
22
  */
20
- export declare function captureAttributionIfAllowed(): Promise<boolean>;
23
+ export declare function captureAttributionIfAllowed(options?: AttributionCaptureOptions): Promise<boolean>;
21
24
  /**
22
25
  * Site-wide attribution tracker. Mount once in the public site layout so
23
- * UTMs, ad click IDs, and referrers are recorded on the page the visitor
24
- * *lands* on — not just pages that contain a form. `<PrentaForm>` also
25
- * captures on mount, so this is optional but improves first-touch fidelity
26
- * for multi-page journeys (ad → landing page → contact page → submit).
27
- *
28
- * Renders nothing.
26
+ * UTMs, ad click IDs, and referrers are recorded on the landing page.
27
+ * Reads `/api/cms/public/attribution/config` (cached for 5 minutes).
29
28
  */
30
- export declare function AttributionTracker(): null;
29
+ export declare function AttributionTracker({ baseUrl }?: {
30
+ baseUrl?: string;
31
+ }): null;
31
32
  //# sourceMappingURL=attribution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;GAYG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC,CASlE;AAED;;;;GAIG;AACH,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,OAAO,CAAC,CAMpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAKzC"}
1
+ {"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC,CASlE;AAcD;;;;GAIG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,OAAO,CAAC,CAYlB;AAMD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,OAAY,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,IAAI,CAuBpF"}
@@ -1,26 +1,24 @@
1
1
  'use client';
2
2
  /**
3
- * Consent-gated marketing attribution capture for the public site.
3
+ * Settings-aware marketing attribution capture for the public site.
4
4
  *
5
- * Wraps cms-core's attribution module with a consent check: when
6
- * `@prenta/plugin-consent` is installed (optional peer dependency),
7
- * capture only runs with an analytics grant; when it is not installed, the
8
- * site has no consent framework and first-party capture proceeds.
5
+ * `record` and the touch windows come from Form Settings. `requireConsent`
6
+ * follows the attribution spec: capture immediately when consent is not
7
+ * required; wait for an analytics grant when the consent plugin is installed;
8
+ * capture nothing when consent is required and the plugin is not installed.
9
9
  */
10
10
  import { useEffect } from 'react';
11
11
  import { captureAttribution } from '@prenta/core/forms/attribution';
12
+ import { shouldRecordAttribution } from '@prenta/core';
12
13
  /**
13
14
  * Whether attribution may be captured under the site's consent state.
14
15
  *
15
16
  * - Plugin not installed → the site has no consent framework; resolve `true`.
16
17
  * - Analytics already granted → resolve `true` immediately.
17
- * - No decision yet → wait for the visitor's banner choice (the URL's UTM
18
- * params are still intact at that point, so a late grant loses nothing).
18
+ * - No decision yet → wait for the visitor's banner choice.
19
19
  *
20
- * The consent plugin is an optional peer, so it is loaded with a dynamic
21
- * import (documented exception to the no-inline-imports rule — same pattern
22
- * as `WidgetEmbedSection`): a static import would break sites that don't
23
- * install it.
20
+ * Kept for callers that have not opted into `requireConsent`. The settings-aware
21
+ * path is {@link captureAttributionIfAllowed}.
24
22
  */
25
23
  export async function attributionConsentAllowed() {
26
24
  try {
@@ -34,33 +32,67 @@ export async function attributionConsentAllowed() {
34
32
  return true;
35
33
  }
36
34
  }
35
+ async function consentGranted(requireConsent) {
36
+ if (!requireConsent)
37
+ return true;
38
+ try {
39
+ const consent = await import('@prenta/plugin-consent');
40
+ const existing = consent.readConsentState();
41
+ if (existing)
42
+ return consent.hasAnalyticsConsent(existing);
43
+ return consent.hasAnalyticsConsent(await consent.waitForConsentState());
44
+ }
45
+ catch {
46
+ return false;
47
+ }
48
+ }
37
49
  /**
38
- * Capture the current page as an attribution touch if consent allows.
39
- * Resolves `true` when capture ran (callers can then attach attribution on
40
- * submit without re-checking consent).
50
+ * Capture the current page as an attribution touch when the site settings and
51
+ * consent decision allow it. Resolves `false` without writing storage when
52
+ * recording is off or consent was not given.
41
53
  */
42
- export async function captureAttributionIfAllowed() {
54
+ export async function captureAttributionIfAllowed(options) {
43
55
  if (typeof window === 'undefined')
44
56
  return false;
45
- const allowed = await attributionConsentAllowed();
46
- if (!allowed)
57
+ const record = options?.record !== false;
58
+ const requireConsent = options?.requireConsent === true;
59
+ const granted = await consentGranted(requireConsent);
60
+ if (!shouldRecordAttribution({ record, requireConsent, consentGranted: granted }))
47
61
  return false;
48
- captureAttribution();
62
+ captureAttribution({
63
+ record,
64
+ firstTouchDays: options?.firstTouchDays,
65
+ lastTouchHours: options?.lastTouchHours,
66
+ });
49
67
  return true;
50
68
  }
51
69
  /**
52
70
  * Site-wide attribution tracker. Mount once in the public site layout so
53
- * UTMs, ad click IDs, and referrers are recorded on the page the visitor
54
- * *lands* on — not just pages that contain a form. `<PrentaForm>` also
55
- * captures on mount, so this is optional but improves first-touch fidelity
56
- * for multi-page journeys (ad → landing page → contact page → submit).
57
- *
58
- * Renders nothing.
71
+ * UTMs, ad click IDs, and referrers are recorded on the landing page.
72
+ * Reads `/api/cms/public/attribution/config` (cached for 5 minutes).
59
73
  */
60
- export function AttributionTracker() {
74
+ export function AttributionTracker({ baseUrl = '' } = {}) {
61
75
  useEffect(() => {
62
- void captureAttributionIfAllowed();
63
- }, []);
76
+ let cancelled = false;
77
+ void (async () => {
78
+ let options;
79
+ try {
80
+ const response = await fetch(`${baseUrl}/api/cms/public/attribution/config`);
81
+ if (response.ok) {
82
+ const body = (await response.json());
83
+ options = 'data' in body && body.data ? body.data : body;
84
+ }
85
+ }
86
+ catch {
87
+ options = undefined;
88
+ }
89
+ if (!cancelled)
90
+ await captureAttributionIfAllowed(options);
91
+ })();
92
+ return () => {
93
+ cancelled = true;
94
+ };
95
+ }, [baseUrl]);
64
96
  return null;
65
97
  }
66
98
  //# sourceMappingURL=attribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ;;;;;;;GAOG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAEnE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB;IAC7C,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAA;QACtD,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAA;QAC3C,IAAI,QAAQ;YAAE,OAAO,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAA;QAC1D,OAAO,OAAO,CAAC,mBAAmB,CAAC,MAAM,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACzE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B;IAC/C,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,KAAK,CAAA;IAC/C,MAAM,OAAO,GAAG,MAAM,yBAAyB,EAAE,CAAA;IACjD,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAA;IAC1B,kBAAkB,EAAE,CAAA;IACpB,OAAO,IAAI,CAAA;AACb,CAAC;AA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F,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,GAAG,SAAS,CAAA;YACrB,CAAC;YACD,IAAI,CAAC,SAAS;gBAAE,MAAM,2BAA2B,CAAC,OAAO,CAAC,CAAA;QAC5D,CAAC,CAAC,EAAE,CAAA;QACJ,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACb,OAAO,IAAI,CAAA;AACb,CAAC"}
package/dist/forms.d.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  * unit-tested in a Node environment and imported by server components.
8
8
  */
9
9
  import type { FormAnalyticsConfig } from '@prenta/core/forms/analytics';
10
+ import type { ConditionalLogic } from '@prenta/core/forms/client';
10
11
  /** A single renderable field, as delivered by the public form schema. */
11
12
  export interface PublicFormField {
12
13
  id: string;
@@ -23,6 +24,15 @@ export interface PublicFormField {
23
24
  }>;
24
25
  width?: string;
25
26
  sortOrder: number;
27
+ /** Visually hide the label (it stays for screen readers). */
28
+ hideLabel?: boolean;
29
+ /** Extra wrapper classes, `[A-Za-z0-9_-]` tokens only. */
30
+ cssClass?: string;
31
+ /** Show/hide/require rules, evaluated with cms-core's own visibility check. */
32
+ conditionalLogic?: ConditionalLogic;
33
+ /** Page breaks: the Next and Back button text. */
34
+ nextLabel?: string;
35
+ backLabel?: string;
26
36
  }
27
37
  /** The public form schema (honeypot field is stripped from `fields`). */
28
38
  export interface PublicForm {
@@ -35,6 +45,9 @@ export interface PublicForm {
35
45
  submitPath: string;
36
46
  successMessage?: string;
37
47
  redirectUrl?: string;
48
+ submitLabel?: string;
49
+ firstStep?: string;
50
+ progress?: 'steps' | 'bar' | 'none';
38
51
  spam: {
39
52
  honeypotFieldKey?: string;
40
53
  minSubmitSeconds?: number;
@@ -46,6 +59,13 @@ export interface PublicForm {
46
59
  schemaVersionId?: string | null;
47
60
  /** GA4 tracking config — present only when tracking is enabled for the form. */
48
61
  analytics?: FormAnalyticsConfig;
62
+ /** Site-wide attribution windows from Form Settings. */
63
+ attribution?: {
64
+ record: boolean;
65
+ requireConsent: boolean;
66
+ firstTouchDays: number;
67
+ lastTouchHours: number;
68
+ };
49
69
  webmcp?: {
50
70
  enabled: boolean;
51
71
  toolName: string;
@@ -81,9 +101,35 @@ export type FieldControl = 'input' | 'textarea' | 'select' | 'checkbox' | 'radio
81
101
  export declare function fieldControl(type: string): FieldControl;
82
102
  /** Map a field type to an `<input type="...">` value (control === 'input' only). */
83
103
  export declare function htmlInputType(type: string): string;
104
+ export declare function isDisplayOnly(type: string): boolean;
105
+ /** A checkbox with choices is a list of picks ("Checkboxes"); without, a single yes/no. */
106
+ export declare function isChoiceList(field: Pick<PublicFormField, 'type' | 'options'>): boolean;
107
+ /** Visible under the field's logic, using cms-core's own rule evaluation. */
108
+ export declare function isPublicFieldVisible(field: PublicFormField, values: Record<string, unknown>): boolean;
109
+ /**
110
+ * Resolve `{page_url}` and URL-parameter tokens (`{utm_source}`) in a hidden
111
+ * field's value. Unknown tokens become an empty string.
112
+ */
113
+ export declare function resolveHiddenValue(template: string, pageUrl: string | null): string;
114
+ export interface PublicStep {
115
+ title: string;
116
+ fields: PublicFormField[];
117
+ /** The page break that opens this step (absent on step 1). */
118
+ start?: PublicFormField;
119
+ }
120
+ /** Split at page breaks; step 1 takes the form's first-step title (kit default "About you"). */
121
+ export declare function splitSteps(form: Pick<PublicForm, 'fields' | 'firstStep'>): PublicStep[];
84
122
  /** The initial value map for a form (honeypot excluded — it is a hidden field). */
85
- export declare function initialValues(form: Pick<PublicForm, 'fields'>): Record<string, unknown>;
86
- /** Label of the first required field left empty, or `null` when all are filled. */
123
+ export declare function initialValues(form: Pick<PublicForm, 'fields'>, pageUrl?: string | null): Record<string, unknown>;
124
+ /**
125
+ * The values to send: answers to fields logic has hidden are dropped (the
126
+ * server skips them too), and display-only fields never carry a value.
127
+ */
128
+ export declare function submittableValues(form: Pick<PublicForm, 'fields'>, values: Record<string, unknown>): Record<string, unknown>;
129
+ /**
130
+ * Label of the first required field left empty, or `null` when all are
131
+ * filled. Fields hidden by logic and display-only fields are skipped.
132
+ */
87
133
  export declare function firstMissingRequired(form: Pick<PublicForm, 'fields'>, values: Record<string, unknown>): string | null;
88
134
  export interface SubmitBodyArgs {
89
135
  values: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../src/forms.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAEvE,yEAAyE;AACzE,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,yEAAyE;AACzE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE;QACJ,gBAAgB,CAAC,EAAE,MAAM,CAAA;Q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,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC7C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAc7E"}
package/dist/forms.js CHANGED
@@ -1,6 +1,44 @@
1
+ import { isFieldConditionallyRequired, isFieldVisible, isSafeRedirectUrl, } from '@prenta/core/forms/client';
1
2
  function isObj(v) {
2
3
  return typeof v === 'object' && v !== null && !Array.isArray(v);
3
4
  }
5
+ const OPERATORS = new Set(['equals', 'notEquals', 'contains', 'isEmpty', 'isNotEmpty']);
6
+ function coerceRules(v) {
7
+ if (!Array.isArray(v))
8
+ return undefined;
9
+ const rules = v
10
+ .filter(isObj)
11
+ .filter((r) => typeof r.fieldKey === 'string' && OPERATORS.has(String(r.operator)))
12
+ .map((r) => ({
13
+ fieldKey: r.fieldKey,
14
+ operator: r.operator,
15
+ ...(typeof r.value === 'string' ? { value: r.value } : {}),
16
+ }));
17
+ return rules.length > 0 ? rules : undefined;
18
+ }
19
+ function coerceLogic(v) {
20
+ if (!isObj(v))
21
+ return undefined;
22
+ const logic = {};
23
+ const show = coerceRules(v.show);
24
+ const hide = coerceRules(v.hide);
25
+ const require = coerceRules(v.require);
26
+ if (show)
27
+ logic.show = show;
28
+ if (hide)
29
+ logic.hide = hide;
30
+ if (require)
31
+ logic.require = require;
32
+ if (v.match === 'any')
33
+ logic.match = 'any';
34
+ return show || hide || require ? logic : undefined;
35
+ }
36
+ function safeClassList(v) {
37
+ if (typeof v !== 'string')
38
+ return undefined;
39
+ const tokens = v.split(/\s+/).filter((token) => /^[A-Za-z0-9_-]{1,60}$/.test(token));
40
+ return tokens.length > 0 ? tokens.slice(0, 8).join(' ') : undefined;
41
+ }
4
42
  /**
5
43
  * Coerce a raw JSON value into a {@link PublicForm}, or `null` when it is not a
6
44
  * usable form schema. Accepts either the bare form object or the API's
@@ -30,6 +68,11 @@ export function coercePublicForm(raw) {
30
68
  : undefined,
31
69
  width: typeof f.width === 'string' ? f.width : undefined,
32
70
  sortOrder: typeof f.sortOrder === 'number' ? f.sortOrder : 0,
71
+ hideLabel: f.hideLabel === true ? true : undefined,
72
+ cssClass: safeClassList(f.cssClass),
73
+ conditionalLogic: coerceLogic(f.conditionalLogic),
74
+ nextLabel: typeof f.nextLabel === 'string' ? f.nextLabel : undefined,
75
+ backLabel: typeof f.backLabel === 'string' ? f.backLabel : undefined,
33
76
  }));
34
77
  const spam = isObj(root.spam) ? root.spam : {};
35
78
  const captcha = isObj(root.captcha) &&
@@ -47,12 +90,31 @@ export function coercePublicForm(raw) {
47
90
  submitPath: root.submitPath,
48
91
  successMessage: typeof root.successMessage === 'string' ? root.successMessage : undefined,
49
92
  redirectUrl: typeof root.redirectUrl === 'string' ? root.redirectUrl : undefined,
93
+ submitLabel: typeof root.submitLabel === 'string' && root.submitLabel.trim()
94
+ ? root.submitLabel
95
+ : undefined,
96
+ firstStep: typeof root.firstStep === 'string' && root.firstStep.trim() ? root.firstStep : undefined,
97
+ progress: root.progress === 'steps' || root.progress === 'bar' || root.progress === 'none'
98
+ ? root.progress
99
+ : undefined,
50
100
  spam: {
51
101
  honeypotFieldKey: typeof spam.honeypotFieldKey === 'string' ? spam.honeypotFieldKey : undefined,
52
102
  minSubmitSeconds: typeof spam.minSubmitSeconds === 'number' ? spam.minSubmitSeconds : undefined,
53
103
  },
54
104
  captcha,
55
105
  analytics,
106
+ attribution: isObj(root.attribution)
107
+ ? {
108
+ record: root.attribution.record !== false,
109
+ requireConsent: root.attribution.requireConsent === true,
110
+ firstTouchDays: typeof root.attribution.firstTouchDays === 'number'
111
+ ? root.attribution.firstTouchDays
112
+ : 30,
113
+ lastTouchHours: typeof root.attribution.lastTouchHours === 'number'
114
+ ? root.attribution.lastTouchHours
115
+ : 24,
116
+ }
117
+ : undefined,
56
118
  schemaVersionId: typeof root.schemaVersionId === 'string' || root.schemaVersionId === null
57
119
  ? root.schemaVersionId
58
120
  : undefined,
@@ -110,7 +172,9 @@ export function resolveSubmitOutcome(raw, form) {
110
172
  const data = isObj(raw) && isObj(raw.data) ? raw.data : undefined;
111
173
  const confirmation = data?.confirmation;
112
174
  if (isObj(confirmation)) {
113
- if (confirmation.type === 'redirect' && typeof confirmation.redirectUrl === 'string') {
175
+ if (confirmation.type === 'redirect' &&
176
+ typeof confirmation.redirectUrl === 'string' &&
177
+ isSafeRedirectUrl(confirmation.redirectUrl)) {
114
178
  return { redirectUrl: confirmation.redirectUrl, message: '' };
115
179
  }
116
180
  if (typeof confirmation.message === 'string' && confirmation.message.trim()) {
@@ -120,8 +184,9 @@ export function resolveSubmitOutcome(raw, form) {
120
184
  if (typeof confirmation === 'string' && confirmation.trim()) {
121
185
  return { message: confirmation };
122
186
  }
123
- if (form.redirectUrl)
187
+ if (form.redirectUrl && isSafeRedirectUrl(form.redirectUrl)) {
124
188
  return { redirectUrl: form.redirectUrl, message: '' };
189
+ }
125
190
  return { message: form.successMessage || DEFAULT_SUBMIT_MESSAGE };
126
191
  }
127
192
  /** Decide which control a field type maps to. */
@@ -163,23 +228,101 @@ export function htmlInputType(type) {
163
228
  return 'text';
164
229
  }
165
230
  }
231
+ /** Types that show content but take no answer. */
232
+ const DISPLAY_TYPES = new Set([
233
+ 'heading',
234
+ 'content',
235
+ 'richtext',
236
+ 'richText',
237
+ 'divider',
238
+ 'pagebreak',
239
+ ]);
240
+ export function isDisplayOnly(type) {
241
+ return DISPLAY_TYPES.has(type);
242
+ }
243
+ /** A checkbox with choices is a list of picks ("Checkboxes"); without, a single yes/no. */
244
+ export function isChoiceList(field) {
245
+ return field.type === 'checkbox' && (field.options?.length ?? 0) > 0;
246
+ }
247
+ /** Visible under the field's logic, using cms-core's own rule evaluation. */
248
+ export function isPublicFieldVisible(field, values) {
249
+ return isFieldVisible({ conditionalLogic: field.conditionalLogic }, values);
250
+ }
251
+ /**
252
+ * Resolve `{page_url}` and URL-parameter tokens (`{utm_source}`) in a hidden
253
+ * field's value. Unknown tokens become an empty string.
254
+ */
255
+ export function resolveHiddenValue(template, pageUrl) {
256
+ let url = null;
257
+ try {
258
+ url = pageUrl ? new URL(pageUrl) : null;
259
+ }
260
+ catch {
261
+ url = null;
262
+ }
263
+ return template.replace(/\{([a-z0-9_]+)\}/gi, (_match, token) => token === 'page_url' ? (pageUrl ?? '') : (url?.searchParams.get(token) ?? ''));
264
+ }
265
+ /** Split at page breaks; step 1 takes the form's first-step title (kit default "About you"). */
266
+ export function splitSteps(form) {
267
+ const steps = [{ title: form.firstStep || 'About you', fields: [] }];
268
+ for (const field of form.fields) {
269
+ if (field.type === 'pagebreak')
270
+ steps.push({ title: field.label, fields: [], start: field });
271
+ else
272
+ steps[steps.length - 1].fields.push(field);
273
+ }
274
+ return steps;
275
+ }
166
276
  /** The initial value map for a form (honeypot excluded — it is a hidden field). */
167
- export function initialValues(form) {
277
+ export function initialValues(form, pageUrl = null) {
168
278
  const out = {};
169
279
  for (const f of form.fields) {
170
- if (f.defaultValue !== undefined)
280
+ if (isDisplayOnly(f.type))
281
+ continue;
282
+ if (f.type === 'hidden') {
283
+ out[f.key] =
284
+ typeof f.defaultValue === 'string' ? resolveHiddenValue(f.defaultValue, pageUrl) : '';
285
+ }
286
+ else if (isChoiceList(f)) {
287
+ out[f.key] = Array.isArray(f.defaultValue) ? f.defaultValue.map(String) : [];
288
+ }
289
+ else if (f.defaultValue !== undefined)
171
290
  out[f.key] = f.defaultValue;
172
- else if (fieldControl(f.type) === 'checkbox')
291
+ else if (fieldControl(f.type) === 'checkbox' || f.type === 'consent')
173
292
  out[f.key] = false;
174
293
  else
175
294
  out[f.key] = '';
176
295
  }
177
296
  return out;
178
297
  }
179
- /** Label of the first required field left empty, or `null` when all are filled. */
298
+ /**
299
+ * The values to send: answers to fields logic has hidden are dropped (the
300
+ * server skips them too), and display-only fields never carry a value.
301
+ */
302
+ export function submittableValues(form, values) {
303
+ const out = {};
304
+ for (const f of form.fields) {
305
+ if (isDisplayOnly(f.type))
306
+ continue;
307
+ if (!isPublicFieldVisible(f, values))
308
+ continue;
309
+ if (f.key in values)
310
+ out[f.key] = values[f.key];
311
+ }
312
+ return out;
313
+ }
314
+ /**
315
+ * Label of the first required field left empty, or `null` when all are
316
+ * filled. Fields hidden by logic and display-only fields are skipped.
317
+ */
180
318
  export function firstMissingRequired(form, values) {
181
319
  for (const f of form.fields) {
182
- if (!f.required)
320
+ if (isDisplayOnly(f.type) || f.type === 'hidden')
321
+ continue;
322
+ if (!isPublicFieldVisible(f, values))
323
+ continue;
324
+ const asField = { conditionalLogic: f.conditionalLogic };
325
+ if (!f.required && !isFieldConditionallyRequired(asField, values))
183
326
  continue;
184
327
  const v = values[f.key];
185
328
  const empty = v === undefined ||
package/dist/forms.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"forms.js","sourceRoot":"","sources":["../src/forms.ts"],"names":[],"mappings":"AAqDA,SAAS,KAAK,CAAC,CAAU;IACvB,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AACjE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAA;IAC3D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAC7B,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACrF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAA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;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAoB;IAClD,MAAM,MAAM,GAA4B,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAA;IAC1D,IAAI,IAAI,CAAC,WAAW;QAAE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,aAAa,IAAI,EAAE,CAAA;IAEzE,MAAM,IAAI,GAA4B,EAAE,MAAM,EAAE,CAAA;IAChD,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;IACjC,CAAC;IACD,IAAI,IAAI,CAAC,OAAO;QAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;IAC7C,IAAI,IAAI,CAAC,YAAY;QAAE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAA;IAC5D,IAAI,IAAI,CAAC,WAAW,IAAI,OAAO,IAAI,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QAC7D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;IACrC,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
package/dist/styles.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme,base;@layer components{.prenta-sections{--section-accent:#7c3aed;--section-accent-hover:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.prenta-sections{--section-accent-hover:color-mix(in srgb, var(--section-accent) 82%, black)}}.prenta-sections{--section-accent-foreground:#fff;--section-accent-soft:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.prenta-sections{--section-accent-soft:color-mix(in srgb, var(--section-accent) 16%, white)}}.prenta-sections{--section-bg:#fff;--section-fg:#18181b;--section-muted:#71717a;--section-font:inherit;--section-radius:.75rem;color:var(--section-fg);font-family:var(--section-font)}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.bottom-0{bottom:calc(var(--spacing) * 0)}.-left-\[9999px\]{left:-9999px}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-3\/2{aspect-ratio:3/2}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[9\/16\]{aspect-ratio:9/16}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.h-0{height:calc(var(--spacing) * 0)}.h-4{height:calc(var(--spacing) * 4)}.h-14{height:calc(var(--spacing) * 14)}.h-\[360px\]{height:360px}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\[inherit\]{min-height:inherit}.w-0{width:calc(var(--spacing) * 0)}.w-4{width:calc(var(--spacing) * 4)}.w-14{width:calc(var(--spacing) * 14)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-xl{max-width:var(--container-xl)}.min-w-48{min-width:calc(var(--spacing) * 48)}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-current{border-color:currentColor}.border-green-200{border-color:var(--color-green-200)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-200{border-color:var(--color-zinc-200)}.border-zinc-300{border-color:var(--color-zinc-300)}.bg-\[var\(--section-accent\)\]{background-color:var(--section-accent)}.bg-\[var\(--section-bg\)\]{background-color:var(--section-bg)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\[var\(--section-accent\)\]{--tw-gradient-from:var(--section-accent);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-\[var\(--section-accent-hover\)\]{--tw-gradient-to:var(--section-accent-hover);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[15px\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-pre-line{white-space:pre-line}.text-\[var\(--section-accent\)\]{color:var(--section-accent)}.text-\[var\(--section-accent-foreground\)\]{color:var(--section-accent-foreground)}.text-\[var\(--section-fg\)\]{color:var(--section-fg)}.text-\[var\(--section-muted\)\]{color:var(--section-muted)}.text-green-800{color:var(--color-green-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.opacity-15{opacity:.15}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}.placeholder\:text-\[var\(--section-muted\)\]::placeholder{color:var(--section-muted)}@media (hover:hover){.hover\:border-\[var\(--section-accent-soft\)\]:hover{border-color:var(--section-accent-soft)}.hover\:bg-\[var\(--section-accent-hover\)\]:hover{background-color:var(--section-accent-hover)}.hover\:bg-\[var\(--section-accent-soft\)\]:hover{background-color:var(--section-accent-soft)}.hover\:bg-zinc-50:hover{background-color:var(--color-zinc-50)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:text-zinc-900:hover{color:var(--color-zinc-900)}.hover\:opacity-75:hover{opacity:.75}}.focus\:border-\[var\(--section-accent\)\]:focus{border-color:var(--section-accent)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-\[color-mix\(in_srgb\,var\(--section-accent\)_40\%\,transparent\)\]:focus{--tw-ring-color:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.focus\:ring-\[color-mix\(in_srgb\,var\(--section-accent\)_40\%\,transparent\)\]:focus{--tw-ring-color:color-mix(in srgb,var(--section-accent) 40%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-60:disabled{opacity:.6}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:left-0{left:calc(var(--spacing) * 0)}.md\:z-10{z-index:10}}@container (min-width:460px){.\@pv-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:700px){.\@pv-md\:order-1{order:1}.\@pv-md\:order-2{order:2}.\@pv-md\:h-\[440px\]{height:440px}.\@pv-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-md\:py-20{padding-block:calc(var(--spacing) * 20)}.\@pv-md\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@pv-md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@container (min-width:900px){.\@pv-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@pv-lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@container (min-width:1100px){.\@pv-xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (min-width:2000px){.\@pv-2xl\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-2xl\:py-36{padding-block:calc(var(--spacing) * 36)}.\@pv-2xl\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}}:root,:host{--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme,base;@layer components{.prenta-sections{--section-accent:#7c3aed;--section-accent-hover:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.prenta-sections{--section-accent-hover:color-mix(in srgb, var(--section-accent) 82%, black)}}.prenta-sections{--section-accent-foreground:#fff;--section-accent-soft:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.prenta-sections{--section-accent-soft:color-mix(in srgb, var(--section-accent) 16%, white)}}.prenta-sections{--section-bg:#fff;--section-fg:#18181b;--section-muted:#71717a;--section-font:inherit;--section-radius:.75rem;color:var(--section-fg);font-family:var(--section-font)}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.bottom-0{bottom:calc(var(--spacing) * 0)}.-left-\[9999px\]{left:-9999px}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-3\/2{aspect-ratio:3/2}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[9\/16\]{aspect-ratio:9/16}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.h-0{height:calc(var(--spacing) * 0)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-14{height:calc(var(--spacing) * 14)}.h-\[360px\]{height:360px}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\[inherit\]{min-height:inherit}.w-0{width:calc(var(--spacing) * 0)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-14{width:calc(var(--spacing) * 14)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-\[3px\]{border-top-style:var(--tw-border-style);border-top-width:3px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-\[var\(--section-accent\)\]{border-color:var(--section-accent)}.border-current{border-color:currentColor}.border-green-200{border-color:var(--color-green-200)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-200{border-color:var(--color-zinc-200)}.border-zinc-300{border-color:var(--color-zinc-300)}.bg-\[var\(--section-accent\)\]{background-color:var(--section-accent)}.bg-\[var\(--section-bg\)\]{background-color:var(--section-bg)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\[var\(--section-accent\)\]{--tw-gradient-from:var(--section-accent);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-\[var\(--section-accent-hover\)\]{--tw-gradient-to:var(--section-accent-hover);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.text-\[15px\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-pre-line{white-space:pre-line}.text-\[var\(--section-accent\)\]{color:var(--section-accent)}.text-\[var\(--section-accent-foreground\)\]{color:var(--section-accent-foreground)}.text-\[var\(--section-fg\)\]{color:var(--section-fg)}.text-\[var\(--section-muted\)\]{color:var(--section-muted)}.text-green-800{color:var(--color-green-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.opacity-15{opacity:.15}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}.placeholder\:text-\[var\(--section-muted\)\]::placeholder{color:var(--section-muted)}@media (hover:hover){.hover\:border-\[var\(--section-accent-soft\)\]:hover{border-color:var(--section-accent-soft)}.hover\:bg-\[var\(--section-accent-hover\)\]:hover{background-color:var(--section-accent-hover)}.hover\:bg-\[var\(--section-accent-soft\)\]:hover{background-color:var(--section-accent-soft)}.hover\:bg-zinc-50:hover{background-color:var(--color-zinc-50)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:text-zinc-900:hover{color:var(--color-zinc-900)}.hover\:opacity-75:hover{opacity:.75}}.focus\:border-\[var\(--section-accent\)\]:focus{border-color:var(--section-accent)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-\[color-mix\(in_srgb\,var\(--section-accent\)_40\%\,transparent\)\]:focus{--tw-ring-color:var(--section-accent)}@supports (color:color-mix(in lab, red, red)){.focus\:ring-\[color-mix\(in_srgb\,var\(--section-accent\)_40\%\,transparent\)\]:focus{--tw-ring-color:color-mix(in srgb,var(--section-accent) 40%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-60:disabled{opacity:.6}@media not all and (min-width:40rem){.max-sm\:hidden{display:none}}@media (min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:left-0{left:calc(var(--spacing) * 0)}.md\:z-10{z-index:10}}@container (min-width:460px){.\@pv-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:700px){.\@pv-md\:order-1{order:1}.\@pv-md\:order-2{order:2}.\@pv-md\:h-\[440px\]{height:440px}.\@pv-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-md\:py-20{padding-block:calc(var(--spacing) * 20)}.\@pv-md\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@pv-md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@container (min-width:900px){.\@pv-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@pv-lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@container (min-width:1100px){.\@pv-xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (min-width:2000px){.\@pv-2xl\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-2xl\:py-36{padding-block:calc(var(--spacing) * 36)}.\@pv-2xl\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}}:root,:host{--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prenta/sections-react",
3
- "version": "0.18.13",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "description": "Public React renderer for Prenta CMS page sections — the canonical PageSection[] contract — with a consumer-controlled renderer registry.",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "CHANGELOG.md"
36
36
  ],
37
37
  "dependencies": {
38
- "@prenta/core": "8.13.5"
38
+ "@prenta/core": "8.15.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18.0.0",