@uniformdev/mesh-sdk-react 19.177.2-alpha.18 → 19.178.2-alpha.25

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
@@ -2795,6 +2795,9 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
2795
2795
  import { dequal } from "dequal/lite";
2796
2796
  import { useEffect as useEffect5, useRef as useRef8 } from "react";
2797
2797
 
2798
+ // src/components/Variables/util/setVariablesEditorValue.ts
2799
+ import { emptyRichTextValue } from "@uniformdev/richtext";
2800
+
2798
2801
  // src/components/Variables/util/deserializeVariablesEditorState.ts
2799
2802
  import { parseVariableExpression } from "@uniformdev/canvas";
2800
2803
  import { TextNode } from "lexical";
@@ -2872,26 +2875,7 @@ function setVariablesEditorValue(editor, newValue) {
2872
2875
  "Error:",
2873
2876
  e
2874
2877
  );
2875
- const parsedState = editor.parseEditorState({
2876
- root: {
2877
- type: "root",
2878
- version: 1,
2879
- direction: null,
2880
- format: "",
2881
- indent: 0,
2882
- children: [
2883
- {
2884
- type: "paragraph",
2885
- version: 1,
2886
- format: "start",
2887
- indent: 0,
2888
- direction: null,
2889
- children: [],
2890
- textFormat: 0
2891
- }
2892
- ]
2893
- }
2894
- });
2878
+ const parsedState = editor.parseEditorState(emptyRichTextValue);
2895
2879
  editor.setEditorState(parsedState);
2896
2880
  }
2897
2881
  }
@@ -5023,7 +5007,7 @@ function ParameterConnectionIndicator({
5023
5007
  return result;
5024
5008
  }, [value]);
5025
5009
  return /* @__PURE__ */ jsxs24(HorizontalRhythm5, { align: "center", gap: "xs", css: { width: "100%" }, children: [
5026
- /* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children }),
5010
+ /* @__PURE__ */ jsx41("div", { css: { flex: 1, maxWidth: "100%" }, children }),
5027
5011
  disabled ? null : /* @__PURE__ */ jsx41(
5028
5012
  Menu3,
5029
5013
  {
package/dist/index.js CHANGED
@@ -3039,6 +3039,9 @@ var import_LexicalComposerContext = require("@lexical/react/LexicalComposerConte
3039
3039
  var import_lite = require("dequal/lite");
3040
3040
  var import_react31 = require("react");
3041
3041
 
3042
+ // src/components/Variables/util/setVariablesEditorValue.ts
3043
+ var import_richtext = require("@uniformdev/richtext");
3044
+
3042
3045
  // src/components/Variables/util/deserializeVariablesEditorState.ts
3043
3046
  var import_canvas2 = require("@uniformdev/canvas");
3044
3047
  var import_lexical = require("lexical");
@@ -3116,26 +3119,7 @@ function setVariablesEditorValue(editor, newValue) {
3116
3119
  "Error:",
3117
3120
  e
3118
3121
  );
3119
- const parsedState = editor.parseEditorState({
3120
- root: {
3121
- type: "root",
3122
- version: 1,
3123
- direction: null,
3124
- format: "",
3125
- indent: 0,
3126
- children: [
3127
- {
3128
- type: "paragraph",
3129
- version: 1,
3130
- format: "start",
3131
- indent: 0,
3132
- direction: null,
3133
- children: [],
3134
- textFormat: 0
3135
- }
3136
- ]
3137
- }
3138
- });
3122
+ const parsedState = editor.parseEditorState(import_richtext.emptyRichTextValue);
3139
3123
  editor.setEditorState(parsedState);
3140
3124
  }
3141
3125
  }
@@ -5222,7 +5206,7 @@ function ParameterConnectionIndicator({
5222
5206
  return result;
5223
5207
  }, [value]);
5224
5208
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_design_system22.HorizontalRhythm, { align: "center", gap: "xs", css: { width: "100%" }, children: [
5225
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: { flex: 1 }, children }),
5209
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: { flex: 1, maxWidth: "100%" }, children }),
5226
5210
  disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5227
5211
  import_design_system22.Menu,
5228
5212
  {
package/dist/index.mjs CHANGED
@@ -2795,6 +2795,9 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
2795
2795
  import { dequal } from "dequal/lite";
2796
2796
  import { useEffect as useEffect5, useRef as useRef8 } from "react";
2797
2797
 
2798
+ // src/components/Variables/util/setVariablesEditorValue.ts
2799
+ import { emptyRichTextValue } from "@uniformdev/richtext";
2800
+
2798
2801
  // src/components/Variables/util/deserializeVariablesEditorState.ts
2799
2802
  import { parseVariableExpression } from "@uniformdev/canvas";
2800
2803
  import { TextNode } from "lexical";
@@ -2872,26 +2875,7 @@ function setVariablesEditorValue(editor, newValue) {
2872
2875
  "Error:",
2873
2876
  e
2874
2877
  );
2875
- const parsedState = editor.parseEditorState({
2876
- root: {
2877
- type: "root",
2878
- version: 1,
2879
- direction: null,
2880
- format: "",
2881
- indent: 0,
2882
- children: [
2883
- {
2884
- type: "paragraph",
2885
- version: 1,
2886
- format: "start",
2887
- indent: 0,
2888
- direction: null,
2889
- children: [],
2890
- textFormat: 0
2891
- }
2892
- ]
2893
- }
2894
- });
2878
+ const parsedState = editor.parseEditorState(emptyRichTextValue);
2895
2879
  editor.setEditorState(parsedState);
2896
2880
  }
2897
2881
  }
@@ -5023,7 +5007,7 @@ function ParameterConnectionIndicator({
5023
5007
  return result;
5024
5008
  }, [value]);
5025
5009
  return /* @__PURE__ */ jsxs24(HorizontalRhythm5, { align: "center", gap: "xs", css: { width: "100%" }, children: [
5026
- /* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children }),
5010
+ /* @__PURE__ */ jsx41("div", { css: { flex: 1, maxWidth: "100%" }, children }),
5027
5011
  disabled ? null : /* @__PURE__ */ jsx41(
5028
5012
  Menu3,
5029
5013
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.177.2-alpha.18+f0847a28d4",
3
+ "version": "19.178.2-alpha.25+0f7f53f560",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,16 +45,17 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@hookform/resolvers": "^3.3.1",
48
- "@lexical/clipboard": "0.16.1",
49
- "@lexical/react": "0.16.1",
50
- "@lexical/selection": "0.16.1",
51
- "@lexical/utils": "0.16.1",
48
+ "@lexical/clipboard": "0.17.0",
49
+ "@lexical/react": "0.17.0",
50
+ "@lexical/selection": "0.17.0",
51
+ "@lexical/utils": "0.17.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.2.1/react-icons-all-files-5.2.1.tgz",
53
- "@uniformdev/canvas": "19.177.2-alpha.18+f0847a28d4",
54
- "@uniformdev/design-system": "19.177.2-alpha.18+f0847a28d4",
55
- "@uniformdev/mesh-sdk": "19.177.2-alpha.18+f0847a28d4",
53
+ "@uniformdev/canvas": "19.178.2-alpha.25+0f7f53f560",
54
+ "@uniformdev/design-system": "19.178.2-alpha.25+0f7f53f560",
55
+ "@uniformdev/mesh-sdk": "19.178.2-alpha.25+0f7f53f560",
56
+ "@uniformdev/richtext": "19.178.2-alpha.25+0f7f53f560",
56
57
  "dequal": "^2.0.3",
57
- "lexical": "0.16.1",
58
+ "lexical": "0.17.0",
58
59
  "mitt": "^3.0.0",
59
60
  "react-beautiful-dnd": "13.1.1",
60
61
  "react-hook-form": "^7.47.0",
@@ -86,5 +87,5 @@
86
87
  "publishConfig": {
87
88
  "access": "public"
88
89
  },
89
- "gitHead": "f0847a28d4ba83396723d0bb80311184a3143e00"
90
+ "gitHead": "0f7f53f56071a59cee38bf83c9f3bae541846de2"
90
91
  }