@uniformdev/mesh-sdk-react 19.117.0 → 19.117.1-alpha.2

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
@@ -5197,13 +5197,13 @@ function VariablesList() {
5197
5197
  const result = [...sorted || []];
5198
5198
  const [removed] = (_b = result == null ? void 0 : result.splice(res.source.index, 1)) != null ? _b : [];
5199
5199
  result == null ? void 0 : result.splice(res.destination.index, 0, removed);
5200
- const resultAsObj = result.reduce(
5201
- (acc, item, index) => ({
5200
+ const resultAsObj = result.reduce((acc, item, index) => {
5201
+ const { name, ...variableDefinition } = item;
5202
+ return {
5202
5203
  ...acc,
5203
- [item.name]: { type: item.type, default: item.default, order: index }
5204
- }),
5205
- {}
5206
- );
5204
+ [item.name]: { ...variableDefinition, order: index }
5205
+ };
5206
+ }, {});
5207
5207
  dispatch({ type: "reorder", result: resultAsObj });
5208
5208
  return result;
5209
5209
  }
package/dist/index.js CHANGED
@@ -5354,13 +5354,13 @@ function VariablesList() {
5354
5354
  const result = [...sorted || []];
5355
5355
  const [removed] = (_b = result == null ? void 0 : result.splice(res.source.index, 1)) != null ? _b : [];
5356
5356
  result == null ? void 0 : result.splice(res.destination.index, 0, removed);
5357
- const resultAsObj = result.reduce(
5358
- (acc, item, index) => ({
5357
+ const resultAsObj = result.reduce((acc, item, index) => {
5358
+ const { name, ...variableDefinition } = item;
5359
+ return {
5359
5360
  ...acc,
5360
- [item.name]: { type: item.type, default: item.default, order: index }
5361
- }),
5362
- {}
5363
- );
5361
+ [item.name]: { ...variableDefinition, order: index }
5362
+ };
5363
+ }, {});
5364
5364
  dispatch({ type: "reorder", result: resultAsObj });
5365
5365
  return result;
5366
5366
  }
package/dist/index.mjs CHANGED
@@ -5197,13 +5197,13 @@ function VariablesList() {
5197
5197
  const result = [...sorted || []];
5198
5198
  const [removed] = (_b = result == null ? void 0 : result.splice(res.source.index, 1)) != null ? _b : [];
5199
5199
  result == null ? void 0 : result.splice(res.destination.index, 0, removed);
5200
- const resultAsObj = result.reduce(
5201
- (acc, item, index) => ({
5200
+ const resultAsObj = result.reduce((acc, item, index) => {
5201
+ const { name, ...variableDefinition } = item;
5202
+ return {
5202
5203
  ...acc,
5203
- [item.name]: { type: item.type, default: item.default, order: index }
5204
- }),
5205
- {}
5206
- );
5204
+ [item.name]: { ...variableDefinition, order: index }
5205
+ };
5206
+ }, {});
5207
5207
  dispatch({ type: "reorder", result: resultAsObj });
5208
5208
  return result;
5209
5209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.117.0",
3
+ "version": "19.117.1-alpha.2+c3ea16b4d3",
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.117.0",
54
- "@uniformdev/design-system": "19.117.0",
55
- "@uniformdev/mesh-sdk": "19.117.0",
53
+ "@uniformdev/canvas": "19.117.1-alpha.2+c3ea16b4d3",
54
+ "@uniformdev/design-system": "19.117.1-alpha.2+c3ea16b4d3",
55
+ "@uniformdev/mesh-sdk": "19.117.1-alpha.2+c3ea16b4d3",
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": "078ffb99d76951dcfde1855e41d7f3a7a0829769"
89
+ "gitHead": "c3ea16b4d39e9655620a27416198013144430810"
90
90
  }