@trackunit/custom-field-components 1.3.66 → 1.3.68

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/index.cjs.js CHANGED
@@ -152,8 +152,7 @@ const BooleanCustomField = ({ defaultValue, dataTestId = "booleanField", onChang
152
152
  }, [setInternalValue, onChange, id, setValue]);
153
153
  react.useEffect(() => {
154
154
  register && register(id, { ...validationRules, value: internalValue.toString() });
155
- // eslint-disable-next-line react-hooks/exhaustive-deps
156
- }, []); // register only once
155
+ });
157
156
  return (jsxRuntime.jsx(reactFormComponents.FormGroup, { dataTestId: dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon || null, helpText: errorMessage || helpText, htmlFor: htmlForId, isInvalid: renderAsInvalid, label: label, tip: tip, children: jsxRuntime.jsx(reactFormComponents.Checkbox, { checked: internalValue, dataTestId: dataTestId, disabled: disabled, id: htmlForId, isInvalid: renderAsInvalid, name: id, onChange: event => (!rest.readOnly ? onChangeHandler(event) : null), ...rest }) }));
158
157
  };
159
158
 
package/index.esm.js CHANGED
@@ -150,8 +150,7 @@ const BooleanCustomField = ({ defaultValue, dataTestId = "booleanField", onChang
150
150
  }, [setInternalValue, onChange, id, setValue]);
151
151
  useEffect(() => {
152
152
  register && register(id, { ...validationRules, value: internalValue.toString() });
153
- // eslint-disable-next-line react-hooks/exhaustive-deps
154
- }, []); // register only once
153
+ });
155
154
  return (jsx(FormGroup, { dataTestId: dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon || null, helpText: errorMessage || helpText, htmlFor: htmlForId, isInvalid: renderAsInvalid, label: label, tip: tip, children: jsx(Checkbox, { checked: internalValue, dataTestId: dataTestId, disabled: disabled, id: htmlForId, isInvalid: renderAsInvalid, name: id, onChange: event => (!rest.readOnly ? onChangeHandler(event) : null), ...rest }) }));
156
155
  };
157
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "1.3.66",
3
+ "version": "1.3.68",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,15 +12,15 @@
12
12
  "react-select": "^5.10.0",
13
13
  "@testing-library/react": "16.2.0",
14
14
  "jest-fetch-mock": "^3.0.3",
15
- "@trackunit/react-form-components": "1.3.62",
16
- "@trackunit/shared-utils": "1.5.44",
17
- "@trackunit/custom-field-api": "1.3.49",
18
- "@trackunit/iris-app-runtime-core": "1.4.46",
19
- "@trackunit/react-components": "1.4.54",
20
- "@trackunit/react-modal": "1.3.60",
21
- "@trackunit/react-core-hooks": "1.3.46",
22
- "@trackunit/i18n-library-translation": "1.3.48",
23
- "@trackunit/iris-app-runtime-core-api": "1.3.46"
15
+ "@trackunit/react-form-components": "1.3.64",
16
+ "@trackunit/shared-utils": "1.5.46",
17
+ "@trackunit/custom-field-api": "1.3.51",
18
+ "@trackunit/iris-app-runtime-core": "1.4.48",
19
+ "@trackunit/react-components": "1.4.56",
20
+ "@trackunit/react-modal": "1.3.62",
21
+ "@trackunit/react-core-hooks": "1.3.48",
22
+ "@trackunit/i18n-library-translation": "1.3.50",
23
+ "@trackunit/iris-app-runtime-core-api": "1.3.48"
24
24
  },
25
25
  "module": "./index.esm.js",
26
26
  "main": "./index.cjs.js",