@uniformdev/mesh-sdk-react 20.71.2-alpha.19 → 20.72.1

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.d.mts CHANGED
@@ -806,7 +806,7 @@ declare function serializeVariablesEditorSerializedState(serializedEditorState:
806
806
  * If newValue is a string, it will be treated as a variable-reference-containing string, and parsed to a Lexical AST
807
807
  * If newValue is a serialized Lexical AST, it will be used as-is. If the AST is invalid, the editor will be set to an empty state.
808
808
  */
809
- declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
809
+ declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | null | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
810
810
 
811
811
  declare function variableDefaultTextValue(defaultValue: unknown): string;
812
812
 
package/dist/index.d.ts CHANGED
@@ -806,7 +806,7 @@ declare function serializeVariablesEditorSerializedState(serializedEditorState:
806
806
  * If newValue is a string, it will be treated as a variable-reference-containing string, and parsed to a Lexical AST
807
807
  * If newValue is a serialized Lexical AST, it will be used as-is. If the AST is invalid, the editor will be set to an empty state.
808
808
  */
809
- declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
809
+ declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | null | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
810
810
 
811
811
  declare function variableDefaultTextValue(defaultValue: unknown): string;
812
812
 
package/dist/index.esm.js CHANGED
@@ -503,7 +503,7 @@ function refreshVariableNodeMetadata(editor) {
503
503
 
504
504
  // src/components/Variables/util/setVariablesEditorValue.ts
505
505
  function setVariablesEditorValue(editor, newValue, tag) {
506
- if (typeof newValue === "undefined" || typeof newValue === "string") {
506
+ if (newValue === null || typeof newValue === "undefined" || typeof newValue === "string") {
507
507
  const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
508
508
  editor.setEditorState(parsedState.clone(null), {
509
509
  tag
package/dist/index.js CHANGED
@@ -678,7 +678,7 @@ function refreshVariableNodeMetadata(editor) {
678
678
 
679
679
  // src/components/Variables/util/setVariablesEditorValue.ts
680
680
  function setVariablesEditorValue(editor, newValue, tag) {
681
- if (typeof newValue === "undefined" || typeof newValue === "string") {
681
+ if (newValue === null || typeof newValue === "undefined" || typeof newValue === "string") {
682
682
  const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
683
683
  editor.setEditorState(parsedState.clone(null), {
684
684
  tag
package/dist/index.mjs CHANGED
@@ -503,7 +503,7 @@ function refreshVariableNodeMetadata(editor) {
503
503
 
504
504
  // src/components/Variables/util/setVariablesEditorValue.ts
505
505
  function setVariablesEditorValue(editor, newValue, tag) {
506
- if (typeof newValue === "undefined" || typeof newValue === "string") {
506
+ if (newValue === null || typeof newValue === "undefined" || typeof newValue === "string") {
507
507
  const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
508
508
  editor.setEditorState(parsedState.clone(null), {
509
509
  tag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "20.71.2-alpha.19+29ab6d7f60",
3
+ "version": "20.72.1",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -50,10 +50,10 @@
50
50
  "@lexical/selection": "0.45.0",
51
51
  "@lexical/utils": "0.45.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
53
- "@uniformdev/canvas": "20.71.2-alpha.19+29ab6d7f60",
54
- "@uniformdev/design-system": "20.71.2-alpha.19+29ab6d7f60",
55
- "@uniformdev/mesh-sdk": "20.71.2-alpha.19+29ab6d7f60",
56
- "@uniformdev/richtext": "20.71.2-alpha.19+29ab6d7f60",
53
+ "@uniformdev/canvas": "20.72.1",
54
+ "@uniformdev/design-system": "20.72.1",
55
+ "@uniformdev/mesh-sdk": "20.72.1",
56
+ "@uniformdev/richtext": "20.72.1",
57
57
  "dequal": "^2.0.3",
58
58
  "lexical": "0.45.0",
59
59
  "mitt": "3.0.1",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "29ab6d7f60af8eee4244b495f391611999326075"
88
+ "gitHead": "bff8f45027258b16690597b05c88e148f2ffde96"
89
89
  }