@textbus/adapter-viewfly 4.0.4 → 4.0.5
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 +1 -1
- package/bundles/index.js +1 -1
- package/bundles/viewfly-adapter.d.ts +2 -2
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
@@ -30,7 +30,7 @@ class ViewflyAdapter extends DomAdapter {
|
|
30
30
|
return Array.from(parentElement.childNodes);
|
31
31
|
},
|
32
32
|
isNativeElementNode(node) {
|
33
|
-
return node instanceof
|
33
|
+
return node instanceof Element;
|
34
34
|
},
|
35
35
|
getChildByIndex(parentElement, index) {
|
36
36
|
return parentElement.childNodes[index];
|
package/bundles/index.js
CHANGED
@@ -32,7 +32,7 @@ class ViewflyAdapter extends platformBrowser.DomAdapter {
|
|
32
32
|
return Array.from(parentElement.childNodes);
|
33
33
|
},
|
34
34
|
isNativeElementNode(node) {
|
35
|
-
return node instanceof
|
35
|
+
return node instanceof Element;
|
36
36
|
},
|
37
37
|
getChildByIndex(parentElement, index) {
|
38
38
|
return parentElement.childNodes[index];
|
@@ -3,7 +3,7 @@ import { ComponentSetup, DynamicRef, ViewFlyNode } from '@viewfly/core';
|
|
3
3
|
import { DomAdapter } from '@textbus/platform-browser';
|
4
4
|
export interface ViewComponentProps<T extends Component> {
|
5
5
|
component: T;
|
6
|
-
rootRef: DynamicRef<
|
6
|
+
rootRef: DynamicRef<Element>;
|
7
7
|
}
|
8
8
|
export interface ViewflyAdapterComponents {
|
9
9
|
[key: string]: ComponentSetup<ViewComponentProps<any>>;
|
@@ -11,6 +11,6 @@ export interface ViewflyAdapterComponents {
|
|
11
11
|
export declare class ViewflyAdapter extends DomAdapter<ViewFlyNode, ViewFlyNode> {
|
12
12
|
private components;
|
13
13
|
private componentRefs;
|
14
|
-
constructor(components: ViewflyAdapterComponents, mount: ViewMount<ViewFlyNode,
|
14
|
+
constructor(components: ViewflyAdapterComponents, mount: ViewMount<ViewFlyNode, Element>);
|
15
15
|
copy(): void;
|
16
16
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-viewfly",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.5",
|
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",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.5",
|
29
29
|
"@textbus/core": "^4.0.4",
|
30
|
-
"@textbus/platform-browser": "^4.0.
|
30
|
+
"@textbus/platform-browser": "^4.0.5",
|
31
31
|
"@textbus/platform-node": "^4.0.4",
|
32
32
|
"@viewfly/core": "^1.0.4",
|
33
33
|
"@viewfly/platform-browser": "^1.0.4"
|