@evoke-platform/ui-components 1.0.1-dev.4 → 1.0.1-dev.5

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.
@@ -33,6 +33,8 @@ const ValueEditor = (props) => {
33
33
  }
34
34
  const inputRef = useRef(null);
35
35
  const [openPresetValues, setOpenPresetValues] = useState(false);
36
+ // Manages input value for Autocomplete when using 'in/not in' operators, ensuring correct handling on blur.
37
+ const [inputValue, setInputValue] = useState('');
36
38
  const disabled = ['null', 'notNull'].includes(operator);
37
39
  const presetValues = context.presetValues ?? [];
38
40
  const isPresetValue = (value) => value?.startsWith('{{{') && value?.endsWith('}}}');
@@ -108,7 +110,6 @@ const ValueEditor = (props) => {
108
110
  }
109
111
  }
110
112
  else {
111
- const [inputValue, setInputValue] = useState('');
112
113
  const isMultiple = inputType === 'array' || ['in', 'notIn'].includes(operator);
113
114
  const options = [
114
115
  ...(values?.sort((a, b) => a.label.localeCompare(b.label)) ?? []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.1-dev.4",
3
+ "version": "1.0.1-dev.5",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",