@integry/sdk 4.5.51 → 4.5.53

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.5.51",
3
+ "version": "4.5.53",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -246,6 +246,13 @@ const ObjectField = (props: ObjectFieldProps) => {
246
246
  });
247
247
  };
248
248
 
249
+ const formatValueForTextarea = (value: any): string => {
250
+ if (typeof value === 'object' && value !== null) {
251
+ return JSON.stringify(value, null, 2); // Pretty-print with 2-space indentation
252
+ }
253
+ return String(value); // Convert other values to string
254
+ };
255
+
249
256
  // Render fields for each object in the array
250
257
  const renderFields = (
251
258
  properties: { [key: string]: FieldDetails },
@@ -326,7 +333,7 @@ const ObjectField = (props: ObjectFieldProps) => {
326
333
  isMappable=${activityOutputDataRaw &&
327
334
  Object.entries(activityOutputDataRaw).length > 0}
328
335
  allowTagsInText=${activityOutputDataRaw}
329
- value=${objectValue}
336
+ value=${formatValueForTextarea(objectValue)}
330
337
  ><//>
331
338
  `}
332
339
  ${fieldType === 'CHECKBOX' &&
@@ -1306,7 +1306,11 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1306
1306
  >
1307
1307
  <${ListBox}
1308
1308
  key=${el.activity_field?.id}
1309
- fieldId=${el.activity_field?.id || el.id}
1309
+ fieldId=${
1310
+ el.activity_field?.id ||
1311
+ el.id ||
1312
+ el?.activity_field?.machine_name
1313
+ }
1310
1314
  apiHandler=${this.props.apiHandler}
1311
1315
  title=${el.title || el.activity_field?.title}
1312
1316
  description=${elDescription}
@@ -1588,10 +1592,8 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1588
1592
  objectValue=${
1589
1593
  (selectedStepData &&
1590
1594
  selectedStepData[el.id] &&
1591
- selectedStepData[el.id].value &&
1592
- selectedStepData[el.id].value !==
1593
- 'x-integry-skipped-field' &&
1594
- selectedStepData[el.id].value) ||
1595
+ selectedStepData[el.id].objectValue &&
1596
+ selectedStepData[el.id].objectValue) ||
1595
1597
  el.default_value ||
1596
1598
  ''
1597
1599
  }