@integry/sdk 4.6.99 → 4.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.6.99",
3
+ "version": "4.7.1",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -219,6 +219,8 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
219
219
  newValue = newValue.replace(tag.text, `{${tag.value}}`);
220
220
  });
221
221
  newValue = newValue.trim();
222
+ // remove zero width space
223
+ newValue = newValue.replace(/\u200B/g, '');
222
224
  if (removeWhitespace(newValue).length === 0) {
223
225
  el.value = '';
224
226
  newValue = '';
@@ -1639,6 +1639,10 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1639
1639
  fieldVal = el.default_value;
1640
1640
  }
1641
1641
  }
1642
+ const isArray = !!(
1643
+ el.data_type === 'STRING[]' ||
1644
+ el.data_type === 'NUMBER[]'
1645
+ );
1642
1646
  return (
1643
1647
  (this.textFieldParentHasValues(el) ||
1644
1648
  (this.props.userConfig || {}).viewAsIU) &&
@@ -1709,7 +1713,9 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1709
1713
  this.onFieldChange({
1710
1714
  stepId: step.id,
1711
1715
  fieldId: el.id,
1712
- value: val,
1716
+ value: isArray
1717
+ ? JSON.stringify(val)
1718
+ : val,
1713
1719
  isRequired: el.is_required,
1714
1720
  machineName:
1715
1721
  el.activity_field?.machine_name,