@integry/sdk 4.7.33 → 4.7.35

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.33",
3
+ "version": "4.7.35",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -238,6 +238,22 @@ const ListBox = (props: ListBoxProps) => {
238
238
  };
239
239
  }, [isDropdownOpen]);
240
240
 
241
+ const isInitialLoadRef = useRef(true);
242
+
243
+ useEffect(() => {
244
+ if (isInitialLoadRef.current) {
245
+ isInitialLoadRef.current = false;
246
+ return;
247
+ }
248
+ setEditableTextValue('');
249
+ setQuery('');
250
+ setSearchValue('');
251
+ if (inputRef.current) {
252
+ inputRef.current.value = '';
253
+ }
254
+ onChange('');
255
+ }, [endpointData, endpointUrl, selectedAuthId, parentFieldChanged]);
256
+
241
257
  useEffect(() => {
242
258
  if (query && isSearchable) {
243
259
  const filtered = items.filter((item) =>
@@ -254,9 +254,6 @@ class FunctionForm extends Component<
254
254
  value === 1;
255
255
  break;
256
256
  case 'number':
257
- if (value) {
258
- value = Number(value);
259
- }
260
257
  break;
261
258
  case 'string':
262
259
  value = String(value);
@@ -866,9 +863,8 @@ class FunctionForm extends Component<
866
863
  ? this.props.variables
867
864
  : null}
868
865
  isReadOnly=${isAIAssisted}
869
- allowWorkspaceConnectedAccounts=${
870
- !!this.props.allowWorkspaceConnectedAccounts
871
- }
866
+ allowWorkspaceConnectedAccounts=${!!this.props
867
+ .allowWorkspaceConnectedAccounts}
872
868
  ><//>
873
869
  `,
874
870
  )}
@@ -902,9 +898,8 @@ class FunctionForm extends Component<
902
898
  isDisabled=${isAIAssisted}
903
899
  isEditable=${false}
904
900
  allowTagsInText=${true}
905
- allowWorkspaceConnectedAccounts=${
906
- !!this.props.allowWorkspaceConnectedAccounts
907
- }
901
+ allowWorkspaceConnectedAccounts=${!!this.props
902
+ .allowWorkspaceConnectedAccounts}
908
903
  apiHandler=${this.props.apiHandler}
909
904
  idKeyPath=${field.idKeyPath}
910
905
  typeKeyPath=${field.typeKeyPath}