Releases: FormRelay/js
@formrelay/vue@0.3.0
Minor Changes
-
08e8080: Add optional
#loadingand#errornamed slots to the<FormRelay>component. The#loadingslot renders while the schema is being fetched, and the#errorslot renders when the schema fetch fails (with{ error }as slot props). Both are fully backwards compatible — when omitted, the default slot receivesschemaLoadingandschemaErroras before. -
3886dc7: Make
publicKeyoptional on the<FormRelay>component anduseFormRelaycomposable. When omitted, the schema fetch is skipped and the form renders immediately with empty state for manual form building.Add
initialSchemaandbotProtectionContaineras optional props on the Vue<FormRelay>component, matching features already available on the composable. All props now usePropTypefor proper template-level type safety.Extract shared
renderFormRelay()helper for consistent slot rendering across packages.The Nuxt
<FormRelay>component is now an async component wrapping the NuxtuseFormRelaycomposable, providing SSR schema prefetch, automaticpublicKeyinjection from runtime config, and secret key support. OnlyformIdis required. The Nuxt composable now correctly skips the schema fetch when nopublicKeyis configured. -
705d5b8: Enable form submission without fetching a schema.
publicKeyis now optional oncreateForm— when omitted,submit()constructs the URL fromformIdand the API base URL.New optional
botProtectionandhoneypotFieldoptions oncreateForm,useFormRelay, and the<FormRelay>component allow SDK-managed bot protection and honeypot without a schema fetch.Users who handle bot protection and honeypot entirely manually can omit these options and include the fields directly in form values.
Patch Changes
- Updated dependencies [705d5b8]
- @formrelay/core@0.3.0
@formrelay/nuxt@0.3.0
Minor Changes
-
3886dc7: Make
publicKeyoptional on the<FormRelay>component anduseFormRelaycomposable. When omitted, the schema fetch is skipped and the form renders immediately with empty state for manual form building.Add
initialSchemaandbotProtectionContaineras optional props on the Vue<FormRelay>component, matching features already available on the composable. All props now usePropTypefor proper template-level type safety.Extract shared
renderFormRelay()helper for consistent slot rendering across packages.The Nuxt
<FormRelay>component is now an async component wrapping the NuxtuseFormRelaycomposable, providing SSR schema prefetch, automaticpublicKeyinjection from runtime config, and secret key support. OnlyformIdis required. The Nuxt composable now correctly skips the schema fetch when nopublicKeyis configured. -
705d5b8: Enable form submission without fetching a schema.
publicKeyis now optional oncreateForm— when omitted,submit()constructs the URL fromformIdand the API base URL.New optional
botProtectionandhoneypotFieldoptions oncreateForm,useFormRelay, and the<FormRelay>component allow SDK-managed bot protection and honeypot without a schema fetch.Users who handle bot protection and honeypot entirely manually can omit these options and include the fields directly in form values.
Patch Changes
@formrelay/core@0.3.0
Minor Changes
-
705d5b8: Enable form submission without fetching a schema.
publicKeyis now optional oncreateForm— when omitted,submit()constructs the URL fromformIdand the API base URL.New optional
botProtectionandhoneypotFieldoptions oncreateForm,useFormRelay, and the<FormRelay>component allow SDK-managed bot protection and honeypot without a schema fetch.Users who handle bot protection and honeypot entirely manually can omit these options and include the fields directly in form values.
@formrelay/vue@0.2.1
Patch Changes
-
dffd20b: Add column span support for form field layout. The form schema now exposes
columns(number of grid columns) and each field has acolumnSpanproperty controlling its width.New
<FormRelayGrid>component in@formrelay/vueand@formrelay/nuxthandles CSS grid layout automatically — consumers just define their field template via the#fieldscoped slot. -
Updated dependencies [dffd20b]
- @formrelay/core@0.2.1
@formrelay/nuxt@0.2.1
Patch Changes
-
dffd20b: Add column span support for form field layout. The form schema now exposes
columns(number of grid columns) and each field has acolumnSpanproperty controlling its width.New
<FormRelayGrid>component in@formrelay/vueand@formrelay/nuxthandles CSS grid layout automatically — consumers just define their field template via the#fieldscoped slot. -
Updated dependencies [dffd20b]
- @formrelay/core@0.2.1
- @formrelay/vue@0.2.1
@formrelay/core@0.2.1
Patch Changes
-
dffd20b: Add column span support for form field layout. The form schema now exposes
columns(number of grid columns) and each field has acolumnSpanproperty controlling its width.New
<FormRelayGrid>component in@formrelay/vueand@formrelay/nuxthandles CSS grid layout automatically — consumers just define their field template via the#fieldscoped slot.
@formrelay/vue@0.2.0
Minor Changes
-
22b536c: Add automatic bot protection. Pass a
botProtectionContainerref touseFormRelayand the SDK handles widget loading, token acquisition, expiry renewal, reset re-initialization, and cleanup automatically.New
@formrelay/core/bot-protectionentrypoint exportsloadBotProtectionWidgetandrunTokenLoopfor framework-agnostic widget lifecycle management.
Patch Changes
- Updated dependencies [22b536c]
- @formrelay/core@0.2.0
@formrelay/nuxt@0.2.0
Minor Changes
-
22b536c: Add automatic bot protection. Pass a
botProtectionContainerref touseFormRelayand the SDK handles widget loading, token acquisition, expiry renewal, reset re-initialization, and cleanup automatically.New
@formrelay/core/bot-protectionentrypoint exportsloadBotProtectionWidgetandrunTokenLoopfor framework-agnostic widget lifecycle management.
Patch Changes
- Updated dependencies [22b536c]
- @formrelay/core@0.2.0
- @formrelay/vue@0.2.0
@formrelay/core@0.2.0
Minor Changes
-
22b536c: Add automatic bot protection. Pass a
botProtectionContainerref touseFormRelayand the SDK handles widget loading, token acquisition, expiry renewal, reset re-initialization, and cleanup automatically.New
@formrelay/core/bot-protectionentrypoint exportsloadBotProtectionWidgetandrunTokenLoopfor framework-agnostic widget lifecycle management.