stentor-models 1.66.12 → 1.66.24
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/lib/Form/FormStep.d.ts +20 -0
- package/package.json +3 -3
package/lib/Form/FormStep.d.ts
CHANGED
|
@@ -58,4 +58,24 @@ export interface FormStep {
|
|
|
58
58
|
previousLabel?: string;
|
|
59
59
|
final?: boolean;
|
|
60
60
|
crmSubmit?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Warn the user before unloading the page if there are unsaved changes.
|
|
63
|
+
*
|
|
64
|
+
* This is especially helpful when either crmSubmit is true or final is true,
|
|
65
|
+
* to prevent users from accidentally losing their data.
|
|
66
|
+
*
|
|
67
|
+
* This will trigger a browser dialog when the user attempts to close the tab or navigate away which does not work on all browsers.
|
|
68
|
+
*
|
|
69
|
+
* @beta This is a beta feature and may change in future releases.
|
|
70
|
+
*/
|
|
71
|
+
warnBeforeUnload?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Custom message to display in the unload warning dialog. This is used when the use attempts to hit the 'X' button on the form when they have unsaved changes.
|
|
74
|
+
*
|
|
75
|
+
* @beta This is a beta feature and may change in future releases.
|
|
76
|
+
*
|
|
77
|
+
* Note: Most browsers do not display custom messages anymore, but having this
|
|
78
|
+
* property allows for future compatibility and clarity.
|
|
79
|
+
*/
|
|
80
|
+
warnBeforeUnloadMessage?: string;
|
|
61
81
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.66.
|
|
7
|
+
"version": "1.66.24",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "^12 || ^14 || ^16 || ^18 || ^20 || ^22"
|
|
17
|
+
"node": "^12 || ^14 || ^16 || ^18 || ^20 || ^22 || ^24.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@microsoft/api-extractor": "7.52.13",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "2.0.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "40614bf882c1225363f10b23211319f79572594a"
|
|
37
37
|
}
|