ode-explorer 1.4.11-develop.202406111044 → 1.4.11-develop.202406111120
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/dist/index.js +9 -8
- package/dist/version.txt +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17043,7 +17043,7 @@ function useController(props) {
|
|
|
17043
17043
|
field: {
|
|
17044
17044
|
name,
|
|
17045
17045
|
value,
|
|
17046
|
-
...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
|
|
17046
|
+
...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
|
|
17047
17047
|
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17048
17048
|
target: {
|
|
17049
17049
|
value: getEventValue(event),
|
|
@@ -17557,7 +17557,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17557
17557
|
touchedFields: {},
|
|
17558
17558
|
dirtyFields: {},
|
|
17559
17559
|
errors: _options.errors || {},
|
|
17560
|
-
disabled:
|
|
17560
|
+
disabled: false
|
|
17561
17561
|
};
|
|
17562
17562
|
let _fields = {};
|
|
17563
17563
|
let _defaultValues = isObject$3(_options.defaultValues) || isObject$3(_options.values) ? cloneObject(_options.defaultValues || _options.values) || {} : {};
|
|
@@ -17588,6 +17588,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17588
17588
|
array: createSubject(),
|
|
17589
17589
|
state: createSubject()
|
|
17590
17590
|
};
|
|
17591
|
+
const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;
|
|
17591
17592
|
const validationModeBeforeSubmit = getValidationModes(_options.mode);
|
|
17592
17593
|
const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
|
|
17593
17594
|
const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
|
|
@@ -18115,17 +18116,17 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18115
18116
|
const resetField = (name, options = {}) => {
|
|
18116
18117
|
if (get(_fields, name)) {
|
|
18117
18118
|
if (isUndefined(options.defaultValue)) {
|
|
18118
|
-
setValue(name,
|
|
18119
|
+
setValue(name, get(_defaultValues, name));
|
|
18119
18120
|
} else {
|
|
18120
18121
|
setValue(name, options.defaultValue);
|
|
18121
|
-
set(_defaultValues, name,
|
|
18122
|
+
set(_defaultValues, name, options.defaultValue);
|
|
18122
18123
|
}
|
|
18123
18124
|
if (!options.keepTouched) {
|
|
18124
18125
|
unset(_formState.touchedFields, name);
|
|
18125
18126
|
}
|
|
18126
18127
|
if (!options.keepDirty) {
|
|
18127
18128
|
unset(_formState.dirtyFields, name);
|
|
18128
|
-
_formState.isDirty = options.defaultValue ? _getDirty(name,
|
|
18129
|
+
_formState.isDirty = options.defaultValue ? _getDirty(name, get(_defaultValues, name)) : _getDirty();
|
|
18129
18130
|
}
|
|
18130
18131
|
if (!options.keepError) {
|
|
18131
18132
|
unset(_formState.errors, name);
|
|
@@ -18142,7 +18143,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18142
18143
|
_defaultValues = updatedValues;
|
|
18143
18144
|
}
|
|
18144
18145
|
if (!keepStateOptions.keepValues) {
|
|
18145
|
-
if (keepStateOptions.keepDirtyValues) {
|
|
18146
|
+
if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {
|
|
18146
18147
|
for (const fieldName of _names.mount) {
|
|
18147
18148
|
get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));
|
|
18148
18149
|
}
|
|
@@ -18307,7 +18308,7 @@ function useForm(props = {}) {
|
|
|
18307
18308
|
dirtyFields: {},
|
|
18308
18309
|
touchedFields: {},
|
|
18309
18310
|
errors: props.errors || {},
|
|
18310
|
-
disabled:
|
|
18311
|
+
disabled: false,
|
|
18311
18312
|
defaultValues: isFunction(props.defaultValues) ? void 0 : props.defaultValues
|
|
18312
18313
|
});
|
|
18313
18314
|
if (!_formControl.current) {
|
|
@@ -60669,7 +60670,7 @@ const useLibraryUrl = () => {
|
|
|
60669
60670
|
const {
|
|
60670
60671
|
user,
|
|
60671
60672
|
appCode
|
|
60672
|
-
} = useOdeClient(), appName = libraryMaps[appCode], libraryApp = user.apps.find((app) => app.isExternal && app.address.includes("library"));
|
|
60673
|
+
} = useOdeClient(), appName = libraryMaps[appCode], libraryApp = user == null ? void 0 : user.apps.find((app) => app.isExternal && app.address.includes("library"));
|
|
60673
60674
|
if (!libraryApp)
|
|
60674
60675
|
return null;
|
|
60675
60676
|
const libraryUrlSplit = (_a2 = libraryApp.address) == null ? void 0 : _a2.split("?");
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT 11/06/2024
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 11/06/2024 11:20:40
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.4.11-develop.
|
|
3
|
+
"version": "1.4.11-develop.202406111120",
|
|
4
4
|
"description": "Edifice Explorer",
|
|
5
5
|
"homepage": "https://github.com/edificeio/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"react": "18.2.0",
|
|
48
48
|
"react-dom": "18.2.0",
|
|
49
49
|
"react-error-boundary": "4.0.12",
|
|
50
|
-
"react-hook-form": "7.49.
|
|
50
|
+
"react-hook-form": "7.49.2",
|
|
51
51
|
"react-i18next": "14.1.0",
|
|
52
52
|
"react-intersection-observer": "9.5.3",
|
|
53
53
|
"zustand": "4.5.0"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@axe-core/react": "4.8.4",
|
|
57
57
|
"@babel/plugin-transform-react-pure-annotations": "7.23.3",
|
|
58
|
-
"@tanstack/react-query-devtools": "5.
|
|
58
|
+
"@tanstack/react-query-devtools": "5.8.4",
|
|
59
59
|
"@types/node": "20.11.10",
|
|
60
60
|
"@types/react": "18.2.48",
|
|
61
61
|
"@types/react-dom": "18.2.18",
|