@mittwald/flow-react-components 1.3.0 → 1.3.2
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/MIGRATION.md +17 -6
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/js/flr-universal.mjs +2 -1
- package/dist/js/packages/components/src/components/Modal/Modal.mjs.map +1 -1
- package/dist/js/packages/components/src/components/TabNavigation/lib/useCollapsingItems.mjs +2 -1
- package/dist/js/packages/components/src/components/TabNavigation/lib/useCollapsingItems.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Tabs/lib/useTabIndicator.mjs +3 -2
- package/dist/js/packages/components/src/components/Tabs/lib/useTabIndicator.mjs.map +1 -1
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs +3 -2
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs.map +1 -1
- package/dist/js/packages/components/src/status/component-status.mjs +4 -0
- package/dist/js/packages/components/src/status/component-status.mjs.map +1 -1
- package/dist/types/components/Modal/Modal.d.ts +3 -1
- package/dist/types/index/flr-universal.d.ts +1 -1
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts +8 -0
- package/dist/types/status/component-status.json.d.ts +4 -0
- package/package.json +9 -9
package/MIGRATION.md
CHANGED
|
@@ -560,15 +560,26 @@ or a `form.reset()` the modal closes right away, and actions in the
|
|
|
560
560
|
`<ActionGroup />` as well as the close button in the heading still close it
|
|
561
561
|
immediately.
|
|
562
562
|
|
|
563
|
-
Nothing to do if you had the flag enabled. To keep the previous behavior,
|
|
564
|
-
|
|
563
|
+
Nothing to do if you had the flag enabled. To keep the previous behavior, opt
|
|
564
|
+
out per form:
|
|
565
|
+
|
|
566
|
+
```diff
|
|
567
|
+
- <Form form={form} onSubmit={onSubmit}>
|
|
568
|
+
+ <Form form={form} onSubmit={onSubmit} confirmModalCloseOnUnsavedChanges={false}>
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
Or switch the default off for the whole app with the
|
|
572
|
+
`<ComponentDefaultsProvider />` (see below).
|
|
565
573
|
|
|
566
574
|
**Apply:** No code change required — if you had
|
|
567
575
|
`requireCloseModalConfirmationOnUnsavedChanges` enabled, the new default matches
|
|
568
|
-
it. To keep the previous behaviour (closing without confirmation),
|
|
569
|
-
`Form
|
|
570
|
-
|
|
571
|
-
`
|
|
576
|
+
it. To keep the previous behaviour (closing without confirmation), pass
|
|
577
|
+
`confirmModalCloseOnUnsavedChanges={false}` to `Form` — this also works in
|
|
578
|
+
remote apps (`@mittwald/flow-remote-react-components/react-hook-form`). To
|
|
579
|
+
switch it off app-wide, set `Form: { confirmModalCloseOnUnsavedChanges: false }`
|
|
580
|
+
via `<ComponentDefaultsProvider />`, or outside of remote apps its deprecated
|
|
581
|
+
equivalent, the `flags.requireCloseModalConfirmationOnUnsavedChanges = false`
|
|
582
|
+
assignment.
|
|
572
583
|
|
|
573
584
|
---
|
|
574
585
|
|