@uniformdev/mesh-sdk-react 20.36.1-alpha.1 → 20.36.2-alpha.90

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
@@ -8,7 +8,7 @@ import { DataVariableDefinition, DataResourceVariables, DataType, DataSourceVari
8
8
  import { Emitter } from 'mitt';
9
9
  import { TDate } from 'timeago.js';
10
10
  import * as lexical from 'lexical';
11
- import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
11
+ import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
12
12
  import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
13
13
  import { InputSelectProps, IconType } from '@uniformdev/design-system';
14
14
  export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
@@ -248,6 +248,7 @@ declare class VariableNode extends DecoratorNode<JSX.Element> {
248
248
  /** Creates the DOM wrapper that hosts the node */
249
249
  createDOM(): HTMLSpanElement;
250
250
  updateDOM(): boolean;
251
+ static importDOM(): DOMConversionMap | null;
251
252
  /**
252
253
  * Render the variable node using React.
253
254
  * NOTE: this is effectively an island of React, and you may not call hooks,
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { DataVariableDefinition, DataResourceVariables, DataType, DataSourceVari
8
8
  import { Emitter } from 'mitt';
9
9
  import { TDate } from 'timeago.js';
10
10
  import * as lexical from 'lexical';
11
- import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
11
+ import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
12
12
  import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
13
13
  import { InputSelectProps, IconType } from '@uniformdev/design-system';
14
14
  export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
@@ -248,6 +248,7 @@ declare class VariableNode extends DecoratorNode<JSX.Element> {
248
248
  /** Creates the DOM wrapper that hosts the node */
249
249
  createDOM(): HTMLSpanElement;
250
250
  updateDOM(): boolean;
251
+ static importDOM(): DOMConversionMap | null;
251
252
  /**
252
253
  * Render the variable node using React.
253
254
  * NOTE: this is effectively an island of React, and you may not call hooks,
package/dist/index.esm.js CHANGED
@@ -1616,6 +1616,14 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1616
1616
  updateDOM() {
1617
1617
  return false;
1618
1618
  }
1619
+ static importDOM() {
1620
+ return {
1621
+ binding: () => ({
1622
+ conversion: $convertBindingElement,
1623
+ priority: 0
1624
+ })
1625
+ };
1626
+ }
1619
1627
  /**
1620
1628
  * Render the variable node using React.
1621
1629
  * NOTE: this is effectively an island of React, and you may not call hooks,
@@ -1625,6 +1633,21 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1625
1633
  return /* @__PURE__ */ jsx22(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
1626
1634
  }
1627
1635
  };
1636
+ function $convertBindingElement(domNode) {
1637
+ const element = domNode;
1638
+ const reference = element.textContent.replace(variablePrefix, "").replace(variableSuffix, "");
1639
+ const node = $createVariableNode(reference, {
1640
+ displayName: prettifyBindExpression(reference),
1641
+ hasClickEvent: true,
1642
+ referenceIsValid: true,
1643
+ tooltip: void 0,
1644
+ isFresh: true,
1645
+ isLoading: false
1646
+ });
1647
+ return {
1648
+ node
1649
+ };
1650
+ }
1628
1651
  function $createVariableNode(variableReference, state) {
1629
1652
  return new VariableNode(variableReference, state);
1630
1653
  }
package/dist/index.js CHANGED
@@ -1762,6 +1762,14 @@ var VariableNode = class _VariableNode extends import_lexical5.DecoratorNode {
1762
1762
  updateDOM() {
1763
1763
  return false;
1764
1764
  }
1765
+ static importDOM() {
1766
+ return {
1767
+ binding: () => ({
1768
+ conversion: $convertBindingElement,
1769
+ priority: 0
1770
+ })
1771
+ };
1772
+ }
1765
1773
  /**
1766
1774
  * Render the variable node using React.
1767
1775
  * NOTE: this is effectively an island of React, and you may not call hooks,
@@ -1771,6 +1779,21 @@ var VariableNode = class _VariableNode extends import_lexical5.DecoratorNode {
1771
1779
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
1772
1780
  }
1773
1781
  };
1782
+ function $convertBindingElement(domNode) {
1783
+ const element = domNode;
1784
+ const reference = element.textContent.replace(variablePrefix, "").replace(variableSuffix, "");
1785
+ const node = $createVariableNode(reference, {
1786
+ displayName: prettifyBindExpression(reference),
1787
+ hasClickEvent: true,
1788
+ referenceIsValid: true,
1789
+ tooltip: void 0,
1790
+ isFresh: true,
1791
+ isLoading: false
1792
+ });
1793
+ return {
1794
+ node
1795
+ };
1796
+ }
1774
1797
  function $createVariableNode(variableReference, state) {
1775
1798
  return new VariableNode(variableReference, state);
1776
1799
  }
package/dist/index.mjs CHANGED
@@ -1616,6 +1616,14 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1616
1616
  updateDOM() {
1617
1617
  return false;
1618
1618
  }
1619
+ static importDOM() {
1620
+ return {
1621
+ binding: () => ({
1622
+ conversion: $convertBindingElement,
1623
+ priority: 0
1624
+ })
1625
+ };
1626
+ }
1619
1627
  /**
1620
1628
  * Render the variable node using React.
1621
1629
  * NOTE: this is effectively an island of React, and you may not call hooks,
@@ -1625,6 +1633,21 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1625
1633
  return /* @__PURE__ */ jsx22(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
1626
1634
  }
1627
1635
  };
1636
+ function $convertBindingElement(domNode) {
1637
+ const element = domNode;
1638
+ const reference = element.textContent.replace(variablePrefix, "").replace(variableSuffix, "");
1639
+ const node = $createVariableNode(reference, {
1640
+ displayName: prettifyBindExpression(reference),
1641
+ hasClickEvent: true,
1642
+ referenceIsValid: true,
1643
+ tooltip: void 0,
1644
+ isFresh: true,
1645
+ isLoading: false
1646
+ });
1647
+ return {
1648
+ node
1649
+ };
1650
+ }
1628
1651
  function $createVariableNode(variableReference, state) {
1629
1652
  return new VariableNode(variableReference, state);
1630
1653
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "20.36.1-alpha.1+38de886ef3",
3
+ "version": "20.36.2-alpha.90+94c3a288ac",
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.25.0",
51
51
  "@lexical/utils": "0.25.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.36.1-alpha.1+38de886ef3",
54
- "@uniformdev/design-system": "20.36.1-alpha.1+38de886ef3",
55
- "@uniformdev/mesh-sdk": "20.36.1-alpha.1+38de886ef3",
56
- "@uniformdev/richtext": "20.36.1-alpha.1+38de886ef3",
53
+ "@uniformdev/canvas": "20.36.2-alpha.90+94c3a288ac",
54
+ "@uniformdev/design-system": "20.36.2-alpha.90+94c3a288ac",
55
+ "@uniformdev/mesh-sdk": "20.36.2-alpha.90+94c3a288ac",
56
+ "@uniformdev/richtext": "20.36.2-alpha.90+94c3a288ac",
57
57
  "dequal": "^2.0.3",
58
58
  "lexical": "0.25.0",
59
59
  "mitt": "3.0.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "38de886ef32586054df84137f0abe58fc968f146"
89
+ "gitHead": "94c3a288acbde88c1229222ae50bd289b7c5749e"
90
90
  }