@yuntijs/ui 1.1.0-beta.4 → 1.1.0-beta.6

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.
@@ -120,18 +120,6 @@ export var Mentions = function Mentions(_ref) {
120
120
  return document.fullscreenElement;
121
121
  }
122
122
  }, [getPopContainer]);
123
- if (!isBrowser) {
124
- return /*#__PURE__*/_jsxs("div", {
125
- className: cx(styles.wrapper, classNames === null || classNames === void 0 ? void 0 : classNames.wrapper),
126
- children: [/*#__PURE__*/_jsx("div", {
127
- className: cx(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.root, true), styles.filled, variant === 'filled'), styles.borderless, variant === 'borderless'), styles.disabled, disabled), className),
128
- style: style || {}
129
- }), /*#__PURE__*/_jsx("div", {
130
- className: styles.placeholder,
131
- children: placeholder || "\u8F93\u5165 ".concat(triggers.join(' 或 '), " \u63D2\u5165\u5F15\u7528")
132
- })]
133
- });
134
- }
135
123
  return /*#__PURE__*/_jsx(LexicalComposer, {
136
124
  initialConfig: _objectSpread(_objectSpread({}, initialConfig), {}, {
137
125
  editable: editable
@@ -159,6 +159,10 @@ export var useEditor = function useEditor(type, props) {
159
159
  if (!containerRef.current) {
160
160
  return;
161
161
  }
162
+ if (editorRef.current) {
163
+ editorRef.current.dispose();
164
+ decomposeRef.current = false;
165
+ }
162
166
  var editor;
163
167
  if (typeRef.current === 'single') {
164
168
  var _ref, _valueRef$current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuntijs/ui",
3
- "version": "1.1.0-beta.4",
3
+ "version": "1.1.0-beta.6",
4
4
  "description": "☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps",
5
5
  "keywords": [
6
6
  "yuntijs",