@uniformdev/mesh-sdk-react 19.48.1-alpha.0 → 19.49.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 +11 -3
- package/dist/index.js +11 -3
- package/dist/index.mjs +11 -3
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -5277,8 +5277,10 @@ function DataResourceVariablesListExplicit({
|
|
|
5277
5277
|
setVariables((previousValue) => {
|
|
5278
5278
|
const isDefaultValue = newVariableValue === variableDefinition.default;
|
|
5279
5279
|
const newVariables = { ...previousValue };
|
|
5280
|
-
if (isDefaultValue
|
|
5280
|
+
if (isDefaultValue) {
|
|
5281
5281
|
delete newVariables[variableDefinition.name];
|
|
5282
|
+
} else if (newVariableValue === void 0) {
|
|
5283
|
+
newVariables[variableDefinition.name] = "";
|
|
5282
5284
|
} else {
|
|
5283
5285
|
newVariables[variableDefinition.name] = newVariableValue;
|
|
5284
5286
|
}
|
|
@@ -6219,6 +6221,7 @@ var ObjectSearchContainer = ({
|
|
|
6219
6221
|
var _a, _b;
|
|
6220
6222
|
const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
|
|
6221
6223
|
const { flatVariables } = useVariables(true);
|
|
6224
|
+
const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
|
|
6222
6225
|
const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
|
|
6223
6226
|
searchFilters,
|
|
6224
6227
|
!resultList ? null : /* @__PURE__ */ jsx59(
|
|
@@ -6267,8 +6270,13 @@ var ObjectSearchContainer = ({
|
|
|
6267
6270
|
InputVariables,
|
|
6268
6271
|
{
|
|
6269
6272
|
label,
|
|
6270
|
-
value:
|
|
6271
|
-
onChange:
|
|
6273
|
+
value: inputValue,
|
|
6274
|
+
onChange: (value) => {
|
|
6275
|
+
if (value === inputValue) {
|
|
6276
|
+
return;
|
|
6277
|
+
}
|
|
6278
|
+
handleSelectedVariableChange(value);
|
|
6279
|
+
},
|
|
6272
6280
|
inputWhenNoVariables: body,
|
|
6273
6281
|
disableVariables: !enableDynamicInputToResultId
|
|
6274
6282
|
}
|
package/dist/index.js
CHANGED
|
@@ -5433,8 +5433,10 @@ function DataResourceVariablesListExplicit({
|
|
|
5433
5433
|
setVariables((previousValue) => {
|
|
5434
5434
|
const isDefaultValue = newVariableValue === variableDefinition.default;
|
|
5435
5435
|
const newVariables = { ...previousValue };
|
|
5436
|
-
if (isDefaultValue
|
|
5436
|
+
if (isDefaultValue) {
|
|
5437
5437
|
delete newVariables[variableDefinition.name];
|
|
5438
|
+
} else if (newVariableValue === void 0) {
|
|
5439
|
+
newVariables[variableDefinition.name] = "";
|
|
5438
5440
|
} else {
|
|
5439
5441
|
newVariables[variableDefinition.name] = newVariableValue;
|
|
5440
5442
|
}
|
|
@@ -6350,6 +6352,7 @@ var ObjectSearchContainer = ({
|
|
|
6350
6352
|
var _a, _b;
|
|
6351
6353
|
const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
|
|
6352
6354
|
const { flatVariables } = useVariables(true);
|
|
6355
|
+
const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
|
|
6353
6356
|
const body = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_design_system32.VerticalRhythm, { children: [
|
|
6354
6357
|
searchFilters,
|
|
6355
6358
|
!resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -6398,8 +6401,13 @@ var ObjectSearchContainer = ({
|
|
|
6398
6401
|
InputVariables,
|
|
6399
6402
|
{
|
|
6400
6403
|
label,
|
|
6401
|
-
value:
|
|
6402
|
-
onChange:
|
|
6404
|
+
value: inputValue,
|
|
6405
|
+
onChange: (value) => {
|
|
6406
|
+
if (value === inputValue) {
|
|
6407
|
+
return;
|
|
6408
|
+
}
|
|
6409
|
+
handleSelectedVariableChange(value);
|
|
6410
|
+
},
|
|
6403
6411
|
inputWhenNoVariables: body,
|
|
6404
6412
|
disableVariables: !enableDynamicInputToResultId
|
|
6405
6413
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5277,8 +5277,10 @@ function DataResourceVariablesListExplicit({
|
|
|
5277
5277
|
setVariables((previousValue) => {
|
|
5278
5278
|
const isDefaultValue = newVariableValue === variableDefinition.default;
|
|
5279
5279
|
const newVariables = { ...previousValue };
|
|
5280
|
-
if (isDefaultValue
|
|
5280
|
+
if (isDefaultValue) {
|
|
5281
5281
|
delete newVariables[variableDefinition.name];
|
|
5282
|
+
} else if (newVariableValue === void 0) {
|
|
5283
|
+
newVariables[variableDefinition.name] = "";
|
|
5282
5284
|
} else {
|
|
5283
5285
|
newVariables[variableDefinition.name] = newVariableValue;
|
|
5284
5286
|
}
|
|
@@ -6219,6 +6221,7 @@ var ObjectSearchContainer = ({
|
|
|
6219
6221
|
var _a, _b;
|
|
6220
6222
|
const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
|
|
6221
6223
|
const { flatVariables } = useVariables(true);
|
|
6224
|
+
const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
|
|
6222
6225
|
const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
|
|
6223
6226
|
searchFilters,
|
|
6224
6227
|
!resultList ? null : /* @__PURE__ */ jsx59(
|
|
@@ -6267,8 +6270,13 @@ var ObjectSearchContainer = ({
|
|
|
6267
6270
|
InputVariables,
|
|
6268
6271
|
{
|
|
6269
6272
|
label,
|
|
6270
|
-
value:
|
|
6271
|
-
onChange:
|
|
6273
|
+
value: inputValue,
|
|
6274
|
+
onChange: (value) => {
|
|
6275
|
+
if (value === inputValue) {
|
|
6276
|
+
return;
|
|
6277
|
+
}
|
|
6278
|
+
handleSelectedVariableChange(value);
|
|
6279
|
+
},
|
|
6272
6280
|
inputWhenNoVariables: body,
|
|
6273
6281
|
disableVariables: !enableDynamicInputToResultId
|
|
6274
6282
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.49.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,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.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.49.0",
|
|
54
|
+
"@uniformdev/design-system": "19.49.0",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.49.0",
|
|
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": "
|
|
89
|
+
"gitHead": "7aaac583f8003f3e510e6a68a76828a32cbf451d"
|
|
90
90
|
}
|