@abgov/jsonforms-components 2.57.1 → 2.57.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/index.esm.js CHANGED
@@ -7419,9 +7419,19 @@ const MultiLineText = props => {
7419
7419
  required
7420
7420
  } = props;
7421
7421
  const [textAreaValue, setTextAreaValue] = React.useState(data || '');
7422
+ const debouncedValue = useDebounce(textAreaValue, 500);
7422
7423
  useEffect(() => {
7423
7424
  setTextAreaValue(data || '');
7424
7425
  }, [data]);
7426
+ /* istanbul ignore next */
7427
+ useEffect(() => {
7428
+ if (debouncedValue !== data && (debouncedValue !== '' || data !== undefined)) {
7429
+ onChangeForInputControl({
7430
+ value: debouncedValue,
7431
+ controlProps: props
7432
+ });
7433
+ }
7434
+ }, [debouncedValue]);
7425
7435
  const appliedUiSchemaOptions = Object.assign({}, config, uischema == null ? void 0 : uischema.options);
7426
7436
  const placeholder = (appliedUiSchemaOptions == null ? void 0 : appliedUiSchemaOptions.placeholder) || (schema == null ? void 0 : schema.description) || '';
7427
7437
  const width = (_uischema$options$com = uischema == null || (_uischema$options = uischema.options) == null || (_uischema$options = _uischema$options.componentProps) == null ? void 0 : _uischema$options.width) != null ? _uischema$options$com : '100%';
@@ -7441,6 +7451,7 @@ const MultiLineText = props => {
7441
7451
  // maxCount={schema.maxLength || 256}
7442
7452
  onKeyPress: detail => {
7443
7453
  const newValue = autoCapitalize ? detail.value.toUpperCase() : detail.value;
7454
+ setTextAreaValue(newValue);
7444
7455
  if (isVisited === false && setIsVisited) {
7445
7456
  setIsVisited();
7446
7457
  }
@@ -7452,11 +7463,6 @@ const MultiLineText = props => {
7452
7463
  controlProps: props
7453
7464
  });
7454
7465
  }
7455
- onChangeForInputControl({
7456
- name: detail.name,
7457
- value: newValue,
7458
- controlProps: props
7459
- });
7460
7466
  },
7461
7467
  onChange: () => {
7462
7468
  if (isVisited === false && setIsVisited) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.57.1",
3
+ "version": "2.57.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-03-20T20:48:23.927Z",
4
- "sourceCommit": "9d4706f8e093666845671f3e06863206bceba3d5",
3
+ "generatedAt": "2026-03-20T21:40:32.830Z",
4
+ "sourceCommit": "2fbb186d99adf0dd9c6a190cbe1e5232eef39943",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 32,
7
7
  "renderers": [