@uniformdev/mesh-sdk-react 19.48.0 → 19.48.1-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
@@ -6219,6 +6219,7 @@ var ObjectSearchContainer = ({
6219
6219
  var _a, _b;
6220
6220
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6221
6221
  const { flatVariables } = useVariables(true);
6222
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6222
6223
  const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6223
6224
  searchFilters,
6224
6225
  !resultList ? null : /* @__PURE__ */ jsx59(
@@ -6267,8 +6268,13 @@ var ObjectSearchContainer = ({
6267
6268
  InputVariables,
6268
6269
  {
6269
6270
  label,
6270
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6271
- onChange: handleSelectedVariableChange,
6271
+ value: inputValue,
6272
+ onChange: (value) => {
6273
+ if (value === inputValue) {
6274
+ return;
6275
+ }
6276
+ handleSelectedVariableChange(value);
6277
+ },
6272
6278
  inputWhenNoVariables: body,
6273
6279
  disableVariables: !enableDynamicInputToResultId
6274
6280
  }
package/dist/index.js CHANGED
@@ -6350,6 +6350,7 @@ var ObjectSearchContainer = ({
6350
6350
  var _a, _b;
6351
6351
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6352
6352
  const { flatVariables } = useVariables(true);
6353
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6353
6354
  const body = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_design_system32.VerticalRhythm, { children: [
6354
6355
  searchFilters,
6355
6356
  !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -6398,8 +6399,13 @@ var ObjectSearchContainer = ({
6398
6399
  InputVariables,
6399
6400
  {
6400
6401
  label,
6401
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6402
- onChange: handleSelectedVariableChange,
6402
+ value: inputValue,
6403
+ onChange: (value) => {
6404
+ if (value === inputValue) {
6405
+ return;
6406
+ }
6407
+ handleSelectedVariableChange(value);
6408
+ },
6403
6409
  inputWhenNoVariables: body,
6404
6410
  disableVariables: !enableDynamicInputToResultId
6405
6411
  }
package/dist/index.mjs CHANGED
@@ -6219,6 +6219,7 @@ var ObjectSearchContainer = ({
6219
6219
  var _a, _b;
6220
6220
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6221
6221
  const { flatVariables } = useVariables(true);
6222
+ const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6222
6223
  const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6223
6224
  searchFilters,
6224
6225
  !resultList ? null : /* @__PURE__ */ jsx59(
@@ -6267,8 +6268,13 @@ var ObjectSearchContainer = ({
6267
6268
  InputVariables,
6268
6269
  {
6269
6270
  label,
6270
- value: (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "",
6271
- onChange: handleSelectedVariableChange,
6271
+ value: inputValue,
6272
+ onChange: (value) => {
6273
+ if (value === inputValue) {
6274
+ return;
6275
+ }
6276
+ handleSelectedVariableChange(value);
6277
+ },
6272
6278
  inputWhenNoVariables: body,
6273
6279
  disableVariables: !enableDynamicInputToResultId
6274
6280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.48.0",
3
+ "version": "19.48.1-alpha.8+0418d546a",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -50,9 +50,9 @@
50
50
  "@lexical/selection": "^0.12.0",
51
51
  "@lexical/utils": "^0.12.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
53
- "@uniformdev/canvas": "19.48.0",
54
- "@uniformdev/design-system": "19.48.0",
55
- "@uniformdev/mesh-sdk": "19.48.0",
53
+ "@uniformdev/canvas": "19.48.1-alpha.8+0418d546a",
54
+ "@uniformdev/design-system": "19.48.1-alpha.8+0418d546a",
55
+ "@uniformdev/mesh-sdk": "19.48.1-alpha.8+0418d546a",
56
56
  "dequal": "^2.0.3",
57
57
  "lexical": "^0.12.0",
58
58
  "mitt": "^3.0.0",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "046d1410326925dc79a1556a8d5190c74df50d12"
89
+ "gitHead": "0418d546ad78898515544d07f095ff03809c611c"
90
90
  }