@integry/sdk 4.7.36 → 4.7.37

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.7.36",
3
+ "version": "4.7.37",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -2041,6 +2041,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2041
2041
  }
2042
2042
  case 'CUSTOM_FIELDS': {
2043
2043
  let fieldVal = null;
2044
+ let fieldMappedVal = null;
2044
2045
  let elParentFields = [];
2045
2046
  if (
2046
2047
  el.activity_field?.parent_fields &&
@@ -2067,6 +2068,20 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2067
2068
  } else {
2068
2069
  fieldVal = el.default_value;
2069
2070
  }
2071
+ } else {
2072
+ fieldMappedVal = this.props.stepDataMapping[
2073
+ selectedStep.id
2074
+ ]
2075
+ ? this.props.stepDataMapping[
2076
+ selectedStep.id
2077
+ ][el.id]
2078
+ : ({} as {
2079
+ objectValue: Record<
2080
+ string,
2081
+ string | number
2082
+ >;
2083
+ });
2084
+ fieldMappedVal = fieldMappedVal?.objectValue;
2070
2085
  }
2071
2086
 
2072
2087
  return html`
@@ -2080,6 +2095,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2080
2095
  }`}
2081
2096
  >
2082
2097
  <${DynamicTypedField}
2098
+ stepId=${selectedStep.id}
2083
2099
  dynamicField=${el}
2084
2100
  endpointData=${JSON.stringify({
2085
2101
  authorization_id:
@@ -2162,7 +2178,7 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
2162
2178
  JSONToActivityOutputData(
2163
2179
  this.props.tagsTree || {},
2164
2180
  )}
2165
- value=${fieldVal}
2181
+ value=${fieldVal || fieldMappedVal}
2166
2182
  allowWorkspaceConnectedAccounts=${!!this
2167
2183
  .props.onFieldChangeCallback}
2168
2184
  />
@@ -62,6 +62,7 @@ interface ApiResponse {
62
62
 
63
63
  const DynamicTypedFields = (props: DynamicFieldsProps) => {
64
64
  const {
65
+ stepId,
65
66
  dynamicField,
66
67
  sourceFlowIntegrataionInvocationUrl = '',
67
68
  selectedAuthId = '',
@@ -314,6 +315,13 @@ const DynamicTypedFields = (props: DynamicFieldsProps) => {
314
315
  onChangeCallback(
315
316
  JSON.stringify(isArray ? newFieldSets : newFieldSets[0]),
316
317
  );
318
+ } else {
319
+ props.setStepMappingData({
320
+ stepId,
321
+ fieldId: dynamicField.id,
322
+ id: fieldId,
323
+ value: val,
324
+ });
317
325
  }
318
326
 
319
327
  return newFieldSets;