@textbus/adapter-react 4.3.4 → 4.3.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.
- package/bundles/index.esm.js +6 -1
- package/bundles/index.js +6 -1
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -77,7 +77,12 @@ class ReactAdapter extends DomAdapter {
|
|
77
77
|
return createElement(vNode.tagName, props, ...children);
|
78
78
|
}
|
79
79
|
}, mount);
|
80
|
-
this
|
80
|
+
Object.defineProperty(this, "components", {
|
81
|
+
enumerable: true,
|
82
|
+
configurable: true,
|
83
|
+
writable: true,
|
84
|
+
value: {}
|
85
|
+
});
|
81
86
|
Object.keys(components).forEach(key => {
|
82
87
|
this.components[key] = (props) => {
|
83
88
|
const component = props.component;
|
package/bundles/index.js
CHANGED
@@ -79,7 +79,12 @@ class ReactAdapter extends platformBrowser.DomAdapter {
|
|
79
79
|
return react.createElement(vNode.tagName, props, ...children);
|
80
80
|
}
|
81
81
|
}, mount);
|
82
|
-
this
|
82
|
+
Object.defineProperty(this, "components", {
|
83
|
+
enumerable: true,
|
84
|
+
configurable: true,
|
85
|
+
writable: true,
|
86
|
+
value: {}
|
87
|
+
});
|
83
88
|
Object.keys(components).forEach(key => {
|
84
89
|
this.components[key] = (props) => {
|
85
90
|
const component = props.component;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-react",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.6",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.6",
|
29
|
-
"@textbus/core": "^4.3.
|
30
|
-
"@textbus/platform-browser": "^4.3.
|
29
|
+
"@textbus/core": "^4.3.6",
|
30
|
+
"@textbus/platform-browser": "^4.3.6",
|
31
31
|
"react": "^17.0.0 || ^18.0.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"bugs": {
|
50
50
|
"url": "https://github.com/textbus/textbus.git/issues"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "f09dce2a210eed0fde349b67fa8ecd7f904aefdf"
|
53
53
|
}
|