@uniformdev/mesh-sdk-react 20.22.1-alpha.0 → 20.23.0

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/dist/index.esm.js CHANGED
@@ -6504,17 +6504,17 @@ var FilterControls = ({
6504
6504
  const editorRef = useRef9(null);
6505
6505
  const variableRefernceCountInSearchTerm = hasReferencedVariables2(searchTerm);
6506
6506
  const [idToResetInputVariables, setIdToResetInputVariables] = useState20("data-resource-search-term-input");
6507
- const [localeSearchTerm, setLocaleSearchTerm] = useState20(searchTerm);
6507
+ const [localSearchTerm, setLocalSearchTerm] = useState20(searchTerm);
6508
6508
  useDebounce7(
6509
6509
  () => {
6510
- setSearchTerm(localeSearchTerm);
6510
+ setSearchTerm(localSearchTerm);
6511
6511
  },
6512
6512
  300,
6513
- [localeSearchTerm]
6513
+ [localSearchTerm]
6514
6514
  );
6515
6515
  useEffect18(() => {
6516
6516
  if (searchTerm === "") {
6517
- setLocaleSearchTerm("");
6517
+ setLocalSearchTerm("");
6518
6518
  setIdToResetInputVariables(`data-resource-search-term-input-${v42()}`);
6519
6519
  }
6520
6520
  }, [searchTerm]);
@@ -6540,18 +6540,24 @@ var FilterControls = ({
6540
6540
  id: idToResetInputVariables,
6541
6541
  showMenuPosition: "inline-right",
6542
6542
  editorRef,
6543
- value: localeSearchTerm,
6544
- onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
6543
+ value: localSearchTerm,
6544
+ onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
6545
6545
  disableVariables: !allowBindingSearchTerm,
6546
6546
  inputWhenNoVariables: /* @__PURE__ */ jsx74(
6547
6547
  InputKeywordSearch,
6548
6548
  {
6549
6549
  placeholder: "Search...",
6550
- onSearchTextChanged: (e) => setLocaleSearchTerm(e),
6551
- value: localeSearchTerm,
6550
+ onSearchTextChanged: (e) => setLocalSearchTerm(e),
6551
+ value: localSearchTerm,
6552
6552
  compact: true,
6553
6553
  rounded: true,
6554
- css: SearchInput
6554
+ css: SearchInput,
6555
+ onKeyPress: (e) => {
6556
+ if (e.key === "Enter") {
6557
+ e.preventDefault();
6558
+ e.stopPropagation();
6559
+ }
6560
+ }
6555
6561
  }
6556
6562
  )
6557
6563
  }
@@ -6561,7 +6567,7 @@ var FilterControls = ({
6561
6567
  {
6562
6568
  css: ClearSearchButtonStyles,
6563
6569
  onClick: () => {
6564
- setLocaleSearchTerm("");
6570
+ setLocalSearchTerm("");
6565
6571
  if (editorRef.current) {
6566
6572
  if (editorRef.current.getRootElement() !== document.activeElement) {
6567
6573
  editorRef.current.dispatchCommand(CLEAR_EDITOR_COMMAND2, void 0);
package/dist/index.js CHANGED
@@ -6569,17 +6569,17 @@ var FilterControls = ({
6569
6569
  const editorRef = (0, import_react65.useRef)(null);
6570
6570
  const variableRefernceCountInSearchTerm = (0, import_canvas10.hasReferencedVariables)(searchTerm);
6571
6571
  const [idToResetInputVariables, setIdToResetInputVariables] = (0, import_react65.useState)("data-resource-search-term-input");
6572
- const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react65.useState)(searchTerm);
6572
+ const [localSearchTerm, setLocalSearchTerm] = (0, import_react65.useState)(searchTerm);
6573
6573
  (0, import_react_use7.useDebounce)(
6574
6574
  () => {
6575
- setSearchTerm(localeSearchTerm);
6575
+ setSearchTerm(localSearchTerm);
6576
6576
  },
6577
6577
  300,
6578
- [localeSearchTerm]
6578
+ [localSearchTerm]
6579
6579
  );
6580
6580
  (0, import_react65.useEffect)(() => {
6581
6581
  if (searchTerm === "") {
6582
- setLocaleSearchTerm("");
6582
+ setLocalSearchTerm("");
6583
6583
  setIdToResetInputVariables(`data-resource-search-term-input-${(0, import_uuid2.v4)()}`);
6584
6584
  }
6585
6585
  }, [searchTerm]);
@@ -6605,18 +6605,24 @@ var FilterControls = ({
6605
6605
  id: idToResetInputVariables,
6606
6606
  showMenuPosition: "inline-right",
6607
6607
  editorRef,
6608
- value: localeSearchTerm,
6609
- onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
6608
+ value: localSearchTerm,
6609
+ onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
6610
6610
  disableVariables: !allowBindingSearchTerm,
6611
6611
  inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6612
6612
  import_design_system44.InputKeywordSearch,
6613
6613
  {
6614
6614
  placeholder: "Search...",
6615
- onSearchTextChanged: (e) => setLocaleSearchTerm(e),
6616
- value: localeSearchTerm,
6615
+ onSearchTextChanged: (e) => setLocalSearchTerm(e),
6616
+ value: localSearchTerm,
6617
6617
  compact: true,
6618
6618
  rounded: true,
6619
- css: SearchInput
6619
+ css: SearchInput,
6620
+ onKeyPress: (e) => {
6621
+ if (e.key === "Enter") {
6622
+ e.preventDefault();
6623
+ e.stopPropagation();
6624
+ }
6625
+ }
6620
6626
  }
6621
6627
  )
6622
6628
  }
@@ -6626,7 +6632,7 @@ var FilterControls = ({
6626
6632
  {
6627
6633
  css: ClearSearchButtonStyles,
6628
6634
  onClick: () => {
6629
- setLocaleSearchTerm("");
6635
+ setLocalSearchTerm("");
6630
6636
  if (editorRef.current) {
6631
6637
  if (editorRef.current.getRootElement() !== document.activeElement) {
6632
6638
  editorRef.current.dispatchCommand(import_lexical11.CLEAR_EDITOR_COMMAND, void 0);
package/dist/index.mjs CHANGED
@@ -6504,17 +6504,17 @@ var FilterControls = ({
6504
6504
  const editorRef = useRef9(null);
6505
6505
  const variableRefernceCountInSearchTerm = hasReferencedVariables2(searchTerm);
6506
6506
  const [idToResetInputVariables, setIdToResetInputVariables] = useState20("data-resource-search-term-input");
6507
- const [localeSearchTerm, setLocaleSearchTerm] = useState20(searchTerm);
6507
+ const [localSearchTerm, setLocalSearchTerm] = useState20(searchTerm);
6508
6508
  useDebounce7(
6509
6509
  () => {
6510
- setSearchTerm(localeSearchTerm);
6510
+ setSearchTerm(localSearchTerm);
6511
6511
  },
6512
6512
  300,
6513
- [localeSearchTerm]
6513
+ [localSearchTerm]
6514
6514
  );
6515
6515
  useEffect18(() => {
6516
6516
  if (searchTerm === "") {
6517
- setLocaleSearchTerm("");
6517
+ setLocalSearchTerm("");
6518
6518
  setIdToResetInputVariables(`data-resource-search-term-input-${v42()}`);
6519
6519
  }
6520
6520
  }, [searchTerm]);
@@ -6540,18 +6540,24 @@ var FilterControls = ({
6540
6540
  id: idToResetInputVariables,
6541
6541
  showMenuPosition: "inline-right",
6542
6542
  editorRef,
6543
- value: localeSearchTerm,
6544
- onChange: (value) => setLocaleSearchTerm(value != null ? value : ""),
6543
+ value: localSearchTerm,
6544
+ onChange: (value) => setLocalSearchTerm(value != null ? value : ""),
6545
6545
  disableVariables: !allowBindingSearchTerm,
6546
6546
  inputWhenNoVariables: /* @__PURE__ */ jsx74(
6547
6547
  InputKeywordSearch,
6548
6548
  {
6549
6549
  placeholder: "Search...",
6550
- onSearchTextChanged: (e) => setLocaleSearchTerm(e),
6551
- value: localeSearchTerm,
6550
+ onSearchTextChanged: (e) => setLocalSearchTerm(e),
6551
+ value: localSearchTerm,
6552
6552
  compact: true,
6553
6553
  rounded: true,
6554
- css: SearchInput
6554
+ css: SearchInput,
6555
+ onKeyPress: (e) => {
6556
+ if (e.key === "Enter") {
6557
+ e.preventDefault();
6558
+ e.stopPropagation();
6559
+ }
6560
+ }
6555
6561
  }
6556
6562
  )
6557
6563
  }
@@ -6561,7 +6567,7 @@ var FilterControls = ({
6561
6567
  {
6562
6568
  css: ClearSearchButtonStyles,
6563
6569
  onClick: () => {
6564
- setLocaleSearchTerm("");
6570
+ setLocalSearchTerm("");
6565
6571
  if (editorRef.current) {
6566
6572
  if (editorRef.current.getRootElement() !== document.activeElement) {
6567
6573
  editorRef.current.dispatchCommand(CLEAR_EDITOR_COMMAND2, void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "20.22.1-alpha.0+b02aa0b2f0",
3
+ "version": "20.23.0",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -50,10 +50,10 @@
50
50
  "@lexical/selection": "0.25.0",
51
51
  "@lexical/utils": "0.25.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
53
- "@uniformdev/canvas": "20.22.1-alpha.0+b02aa0b2f0",
54
- "@uniformdev/design-system": "20.22.1-alpha.0+b02aa0b2f0",
55
- "@uniformdev/mesh-sdk": "20.22.1-alpha.0+b02aa0b2f0",
56
- "@uniformdev/richtext": "20.22.1-alpha.0+b02aa0b2f0",
53
+ "@uniformdev/canvas": "20.23.0",
54
+ "@uniformdev/design-system": "20.23.0",
55
+ "@uniformdev/mesh-sdk": "20.23.0",
56
+ "@uniformdev/richtext": "20.23.0",
57
57
  "dequal": "^2.0.3",
58
58
  "lexical": "0.25.0",
59
59
  "mitt": "3.0.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "b02aa0b2f0c3d94ec1f20953cb5bc36dfa9cdbc7"
89
+ "gitHead": "cc8a0ba91f036c7dea8d3a2dffad3373dec9cf2b"
90
90
  }