@uniformdev/mesh-sdk-react 19.45.2-alpha.6 → 19.45.2-alpha.8

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
@@ -6042,6 +6042,7 @@ var ObjectSearchContainer = ({
6042
6042
  var _a, _b;
6043
6043
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6044
6044
  const { flatVariables } = useVariables(true);
6045
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6045
6046
  const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6046
6047
  searchFilters,
6047
6048
  !resultList ? null : /* @__PURE__ */ jsx59(
@@ -6090,8 +6091,13 @@ var ObjectSearchContainer = ({
6090
6091
  InputVariables,
6091
6092
  {
6092
6093
  label,
6093
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6094
- onChange: handleSelectedVariableChange,
6094
+ value: inputValue,
6095
+ onChange: (value) => {
6096
+ if (value === inputValue) {
6097
+ return;
6098
+ }
6099
+ handleSelectedVariableChange(value);
6100
+ },
6095
6101
  inputWhenNoVariables: body,
6096
6102
  disableVariables: !enableDynamicInputToResultId
6097
6103
  }
package/dist/index.js CHANGED
@@ -6173,6 +6173,7 @@ var ObjectSearchContainer = ({
6173
6173
  var _a, _b;
6174
6174
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6175
6175
  const { flatVariables } = useVariables(true);
6176
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6176
6177
  const body = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_design_system32.VerticalRhythm, { children: [
6177
6178
  searchFilters,
6178
6179
  !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -6221,8 +6222,13 @@ var ObjectSearchContainer = ({
6221
6222
  InputVariables,
6222
6223
  {
6223
6224
  label,
6224
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6225
- onChange: handleSelectedVariableChange,
6225
+ value: inputValue,
6226
+ onChange: (value) => {
6227
+ if (value === inputValue) {
6228
+ return;
6229
+ }
6230
+ handleSelectedVariableChange(value);
6231
+ },
6226
6232
  inputWhenNoVariables: body,
6227
6233
  disableVariables: !enableDynamicInputToResultId
6228
6234
  }
package/dist/index.mjs CHANGED
@@ -6042,6 +6042,7 @@ var ObjectSearchContainer = ({
6042
6042
  var _a, _b;
6043
6043
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6044
6044
  const { flatVariables } = useVariables(true);
6045
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6045
6046
  const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6046
6047
  searchFilters,
6047
6048
  !resultList ? null : /* @__PURE__ */ jsx59(
@@ -6090,8 +6091,13 @@ var ObjectSearchContainer = ({
6090
6091
  InputVariables,
6091
6092
  {
6092
6093
  label,
6093
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6094
- onChange: handleSelectedVariableChange,
6094
+ value: inputValue,
6095
+ onChange: (value) => {
6096
+ if (value === inputValue) {
6097
+ return;
6098
+ }
6099
+ handleSelectedVariableChange(value);
6100
+ },
6095
6101
  inputWhenNoVariables: body,
6096
6102
  disableVariables: !enableDynamicInputToResultId
6097
6103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.45.2-alpha.6+ea4628ae5",
3
+ "version": "19.45.2-alpha.8+1d53453a2",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -49,9 +49,9 @@
49
49
  "@lexical/selection": "^0.12.0",
50
50
  "@lexical/utils": "^0.12.0",
51
51
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
52
- "@uniformdev/canvas": "19.45.2-alpha.6+ea4628ae5",
53
- "@uniformdev/design-system": "19.45.2-alpha.6+ea4628ae5",
54
- "@uniformdev/mesh-sdk": "19.45.2-alpha.6+ea4628ae5",
52
+ "@uniformdev/canvas": "19.45.2-alpha.8+1d53453a2",
53
+ "@uniformdev/design-system": "19.45.2-alpha.8+1d53453a2",
54
+ "@uniformdev/mesh-sdk": "19.45.2-alpha.8+1d53453a2",
55
55
  "dequal": "^2.0.3",
56
56
  "lexical": "^0.12.0",
57
57
  "mitt": "^3.0.0",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "ea4628ae5765af32b174d3dac546fed03170c9aa"
88
+ "gitHead": "1d53453a2a1c232e6fab4e3d24893c72158a25ad"
89
89
  }