1.18.0 performance items: reference 404 placeholder and heading font without preload, lazy form and Turnstile code (eager entry /client/eager), Turnstile space kept, background video paused for reduced motion, card hover on opacity, metadata stripped on upload, MongoDB TTL indexes for the consent log and statistics, unused-media notice, version limit for the plugin's entities
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
076b3ef707
commit
d628839235
@@ -50,6 +50,8 @@ export type BuilderFormProps = {
|
||||
renderField?: (args: BuilderFieldRenderArgs) => ReactNode | undefined
|
||||
/** Appended to required labels, e.g. "*". Default: nothing. */
|
||||
requiredMark?: ReactNode
|
||||
/** Space kept for the Turnstile widget before it is drawn (default 73 px; 0 for an invisible widget). */
|
||||
turnstileReserveHeight?: number
|
||||
/** Widget theme. Default 'page' — follows the site's light/dark theme. */
|
||||
turnstileTheme?: TurnstileTheme
|
||||
} & UseBuilderFormOptions
|
||||
@@ -75,6 +77,7 @@ export function BuilderForm({
|
||||
messages = {},
|
||||
renderField,
|
||||
requiredMark,
|
||||
turnstileReserveHeight,
|
||||
turnstileTheme,
|
||||
...options
|
||||
}: BuilderFormProps) {
|
||||
@@ -249,7 +252,7 @@ export function BuilderForm({
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
{f.isLast ? <div className={cn.turnstile}><f.TurnstileWidget theme={turnstileTheme} /></div> : null}
|
||||
{f.isLast ? <div className={cn.turnstile}><f.TurnstileWidget reserveHeight={turnstileReserveHeight} theme={turnstileTheme} /></div> : null}
|
||||
{f.errorMessage ? <p className={cn.formError} role="alert">{f.errorMessage}</p> : null}
|
||||
<div className={cn.actions}>
|
||||
{!f.isFirst ? <button className={cn.back} onClick={f.back} type="button">{options.texts.back ?? 'Back'}</button> : null}
|
||||
|
||||
Reference in New Issue
Block a user