From bb136633f0223d62e2404baa0943fee12984ad8a Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Thu, 13 Jun 2024 13:45:01 +0200 Subject: [PATCH 1/2] :fire: [open-formulieren/open-forms#4362] Remove support for defaultValue translations It is unused and too complex with 'multiple: true' cases, causing crashes in the admin interface. --- src/registry/textarea/edit.tsx | 1 - src/registry/textfield/edit.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/registry/textarea/edit.tsx b/src/registry/textarea/edit.tsx index 452768f2..3f43ef0d 100644 --- a/src/registry/textarea/edit.tsx +++ b/src/registry/textarea/edit.tsx @@ -113,7 +113,6 @@ const EditForm: EditFormDefinition = () => { label: intl.formatMessage(LABELS.label), description: intl.formatMessage(LABELS.description), tooltip: intl.formatMessage(LABELS.tooltip), - defaultValue: intl.formatMessage(LABELS.defaultValue), placeholder: intl.formatMessage(LABELS.placeholder), }} /> diff --git a/src/registry/textfield/edit.tsx b/src/registry/textfield/edit.tsx index 620d1803..4c434cdf 100644 --- a/src/registry/textfield/edit.tsx +++ b/src/registry/textfield/edit.tsx @@ -145,7 +145,6 @@ const EditForm: EditFormDefinition = () => { label: intl.formatMessage(LABELS.label), description: intl.formatMessage(LABELS.description), tooltip: intl.formatMessage(LABELS.tooltip), - defaultValue: intl.formatMessage(LABELS.defaultValue), placeholder: intl.formatMessage(LABELS.placeholder), }} /> From 4f08ad0304c2dd2111ae64caa67911039ea3dae3 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Thu, 13 Jun 2024 15:25:39 +0200 Subject: [PATCH 2/2] :arrow_up: [open-formulieren/open-forms#4362] Bump types version --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index eaf73821..82138671 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "@formatjs/cli": "^6.1.1", "@formatjs/ts-transformer": "^3.12.0", "@fortawesome/fontawesome-free": "^6.4.0", - "@open-formulieren/types": "^0.24.0", + "@open-formulieren/types": "^0.25.0", "@storybook/addon-actions": "^8.0.8", "@storybook/addon-essentials": "^8.0.8", "@storybook/addon-interactions": "^8.0.8", @@ -5280,9 +5280,9 @@ } }, "node_modules/@open-formulieren/types": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@open-formulieren/types/-/types-0.24.0.tgz", - "integrity": "sha512-sdaI+BE1g6TceU2jjOopBe/vFfRe3w3eY+TLHceUi0j9mkKX/5MppM2d0JqsesgEIv9XjBJlectxxvtbRvrCjA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@open-formulieren/types/-/types-0.25.1.tgz", + "integrity": "sha512-Cm0XhsExgTqNf9wnZvtmooD+AQs2JreJH+Ajk83PogZb6pTPpnbwdH1+Jrxc8x4xagj4Nr9DbjZFi4YHJ6VcgQ==", "dev": true }, "node_modules/@pkgjs/parseargs": { @@ -29634,9 +29634,9 @@ } }, "@open-formulieren/types": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@open-formulieren/types/-/types-0.24.0.tgz", - "integrity": "sha512-sdaI+BE1g6TceU2jjOopBe/vFfRe3w3eY+TLHceUi0j9mkKX/5MppM2d0JqsesgEIv9XjBJlectxxvtbRvrCjA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@open-formulieren/types/-/types-0.25.1.tgz", + "integrity": "sha512-Cm0XhsExgTqNf9wnZvtmooD+AQs2JreJH+Ajk83PogZb6pTPpnbwdH1+Jrxc8x4xagj4Nr9DbjZFi4YHJ6VcgQ==", "dev": true }, "@pkgjs/parseargs": { diff --git a/package.json b/package.json index 36c13523..038002dd 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@formatjs/cli": "^6.1.1", "@formatjs/ts-transformer": "^3.12.0", "@fortawesome/fontawesome-free": "^6.4.0", - "@open-formulieren/types": "^0.24.0", + "@open-formulieren/types": "^0.25.0", "@storybook/addon-actions": "^8.0.8", "@storybook/addon-essentials": "^8.0.8", "@storybook/addon-interactions": "^8.0.8",