@object-ui/plugin-form 11.0.0 → 11.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @object-ui/plugin-form
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9e7a986]
8
+ - Updated dependencies [1311749]
9
+ - @object-ui/components@11.2.0
10
+ - @object-ui/core@11.2.0
11
+ - @object-ui/fields@11.2.0
12
+ - @object-ui/react@11.2.0
13
+ - @object-ui/types@11.2.0
14
+ - @object-ui/i18n@11.2.0
15
+ - @object-ui/permissions@11.2.0
16
+
17
+ ## 11.1.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [6726a2b]
22
+ - @object-ui/i18n@11.1.0
23
+ - @object-ui/components@11.1.0
24
+ - @object-ui/fields@11.1.0
25
+ - @object-ui/react@11.1.0
26
+ - @object-ui/types@11.1.0
27
+ - @object-ui/core@11.1.0
28
+ - @object-ui/permissions@11.1.0
29
+
3
30
  ## 7.3.0
4
31
 
5
32
  ### Patch Changes
@@ -29,6 +29,15 @@ export interface DrawerFormSchema {
29
29
  * Callback when open state changes.
30
30
  */
31
31
  onOpenChange?: (open: boolean) => void;
32
+ /**
33
+ * Guard against *accidentally* discarding unsaved input. When the form has
34
+ * unsaved changes, an accidental close (backdrop click, Escape, or the X
35
+ * button) first asks the user to confirm. The explicit Cancel button is an
36
+ * intentional discard and always closes immediately. Set to `false` to drop
37
+ * the confirmation entirely.
38
+ * @default true
39
+ */
40
+ confirmOnDiscard?: boolean;
32
41
  /**
33
42
  * Drawer side.
34
43
  * @default 'right'
@@ -40,6 +40,15 @@ export interface ModalFormSchema {
40
40
  * @default true
41
41
  */
42
42
  modalCloseButton?: boolean;
43
+ /**
44
+ * Guard against *accidentally* discarding unsaved input. When the form has
45
+ * unsaved changes, an accidental close (backdrop click, Escape, or the X
46
+ * button) first asks the user to confirm. The explicit Cancel button is an
47
+ * intentional discard and always closes immediately. Set to `false` to drop
48
+ * the confirmation entirely.
49
+ * @default true
50
+ */
51
+ confirmOnDiscard?: boolean;
43
52
  showSubmit?: boolean;
44
53
  submitText?: string;
45
54
  showCancel?: boolean;