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:
Radosław Smoliński
2026-12-01 15:38:38 +01:00
co-authored by Claude Opus 5.5
parent 076b3ef707
commit d628839235
47 changed files with 2546 additions and 78 deletions
+1
View File
@@ -22,6 +22,7 @@ export { CookieScanButton } from '../modules/consent/scanner/CookieScanButton.js
export { CookieSiteCheckTab } from '../modules/consent/scanner/CookieSiteCheckTab.js'
export { CookieCrawlAlert } from '../modules/consent/scanner/crawl/CookieCrawlAlert.js'
export { IntegrationAlerts } from '../modules/integrations/IntegrationAlerts.js'
export { UNUSED_MEDIA_LINK_LIMIT, UnusedMediaNotice } from '../modules/media/UnusedMediaNotice.js'
export { IntegrationStatusBanner } from '../modules/integrations/IntegrationStatusBanner.js'
export { SafeTotpView } from '../modules/security/totp/SafeTotpView.js'
export type { SafeTotpViewProps } from '../modules/security/totp/SafeTotpView.js'
+1 -1
View File
@@ -46,7 +46,7 @@ export { Anchor } from '../modules/block-library/ui/Anchor.js'
export type { LinkComponent } from '../modules/block-library/ui/Anchor.js'
export { BUTTON_CLASSES, buttonClass } from '../modules/block-library/ui/Button.js'
export { Buttons, GRID_COLUMNS, headingId } from '../modules/block-library/ui/Buttons.js'
export { Card, CARD_CLASS, CARD_INTERACTIVE_CLASS } from '../modules/block-library/ui/Card.js'
export { Card, CARD_CLASS, CARD_INTERACTIVE_CLASS, CARD_INTERACTIVE_SHADOW_CLASS } from '../modules/block-library/ui/Card.js'
export type { CardProps } from '../modules/block-library/ui/Card.js'
export { CMSLink } from '../modules/block-library/ui/CMSLink.js'
export type { CMSLinkProps, ResolveLink } from '../modules/block-library/ui/CMSLink.js'
+11
View File
@@ -0,0 +1,11 @@
/**
* Entry point: @intecion/ipal-kit/client/eager
*
* The form and the Turnstile widget WITHOUT lazy loading (1.18.0). `@intecion/ipal-kit/client` exports lazy wrappers
* with the same props, so a page without a form carries none of this code. Import from here only when a project
* wants the code in every page's bundle (e.g. a form that must work before hydration finishes):
* import { BuilderForm } from '@intecion/ipal-kit/client/eager'
* <RenderForm Form={BuilderForm} … />
*/
export { BuilderForm } from '../modules/forms/BuilderForm.js'
export { Turnstile } from '../modules/turnstile/Turnstile.js'
+3 -1
View File
@@ -41,7 +41,9 @@ export type { ConstructionNoticeClassNames } from '../modules/construction/Const
export { CONSTRUCTION_CLOSE_LABEL, CONSTRUCTION_CLOSE_LABEL_PL, constructionCloseLabel } from '../modules/construction/texts.js'
export type { ConstructionMode } from '../modules/construction/types.js'
export { formatFileSize } from '../modules/forms/attachments/fileTypes.js'
export { BuilderForm } from '../modules/forms/BuilderForm.js'
// `BuilderForm` is the lazy wrapper since 1.18.0 (same props, the server renders the whole form): the form's code
// loads only on a page that shows one. The eager component: `@intecion/ipal-kit/client/eager`.
export { LazyBuilderForm as BuilderForm } from '../modules/forms/LazyBuilderForm.js'
export type { BuilderFieldRenderArgs, BuilderFormClassNames, BuilderFormProps } from '../modules/forms/BuilderForm.js'
export { autoCompleteFor, fileFieldError, fileFieldRules, initialBuilderValues, inputFields, splitSteps, stepOfField, validateBuilderFields, visibleFields } from '../modules/forms/builderLogic.js'
export type { BuilderFile } from '../modules/forms/builderLogic.js'