@textbus/platform-browser 5.2.0 → 5.2.2
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/browser-module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentConstructor, Component, ComponentLiteral, Module, Textbus } from '
|
|
1
|
+
import { ComponentConstructor, Component, ComponentLiteral, Module, Textbus } from '@textbus/core';
|
|
2
2
|
import { Provider } from '@viewfly/core';
|
|
3
3
|
import { AttributeLoader, ComponentLoader, FormatLoader } from './parser';
|
|
4
4
|
import { DomAdapter } from './dom-adapter';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Selection, AbstractSelection, Scheduler, Textbus, SelectionPaths } from '
|
|
1
|
+
import { Selection, AbstractSelection, Scheduler, Textbus, SelectionPaths } from '@textbus/core';
|
|
2
2
|
import { SelectionBridge } from './selection-bridge';
|
|
3
3
|
import { Rect } from './_utils/uikit';
|
|
4
4
|
export interface SelectionRect extends Rect {
|
package/dist/dom-adapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter } from '
|
|
1
|
+
import { Adapter } from '@textbus/core';
|
|
2
2
|
import { Subject } from '@tanbo/stream';
|
|
3
3
|
export declare abstract class DomAdapter<ViewComponent extends object = object, ViewElement extends object = object> extends Adapter<Element, Node, ViewComponent, ViewElement> {
|
|
4
4
|
onViewUpdated: Subject<void>;
|
package/dist/magic-input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from '@tanbo/stream';
|
|
2
|
-
import { Commander, Controller, Keyboard, Scheduler, Selection, Textbus } from '
|
|
2
|
+
import { Commander, Controller, Keyboard, Scheduler, Selection, Textbus } from '@textbus/core';
|
|
3
3
|
import { Parser } from './parser';
|
|
4
4
|
import { Caret, CaretLimit, CaretPosition, Input } from './types';
|
|
5
5
|
import { DomAdapter } from './dom-adapter';
|
package/dist/native-input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from '@tanbo/stream';
|
|
2
|
-
import { Commander, Controller, Keyboard, Selection, Textbus } from '
|
|
2
|
+
import { Commander, Controller, Keyboard, Selection, Textbus } from '@textbus/core';
|
|
3
3
|
import { Caret, CaretPosition, Input } from './types';
|
|
4
4
|
import { Parser } from './parser';
|
|
5
5
|
import { DomAdapter } from './dom-adapter';
|
package/dist/parser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attribute, Component, ContentType, Formatter, FormatValue, Slot, Textbus } from '
|
|
1
|
+
import { Attribute, Component, ContentType, Formatter, FormatValue, Slot, Textbus } from '@textbus/core';
|
|
2
2
|
import { ViewOptions } from './browser-module';
|
|
3
3
|
/**
|
|
4
4
|
* 插槽解析器
|
|
@@ -75,7 +75,7 @@ export declare class Parser {
|
|
|
75
75
|
* @param html
|
|
76
76
|
* @param rootComponentLoader
|
|
77
77
|
*/
|
|
78
|
-
parseDoc(html: string | HTMLElement, rootComponentLoader: ComponentLoader): void | Component<import('
|
|
78
|
+
parseDoc(html: string | HTMLElement, rootComponentLoader: ComponentLoader): void | Component<import('@textbus/core').State> | Slot<Record<string, any>>;
|
|
79
79
|
/**
|
|
80
80
|
* 将一段 HTML 或 DOM 元素解析到指定插槽
|
|
81
81
|
* @param html
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from '@tanbo/stream';
|
|
2
|
-
import { NativeSelectionBridge, NativeSelectionConnector, SelectionPosition, AbstractSelection, RootComponentRef, Controller, Selection, Textbus, Scheduler } from '
|
|
2
|
+
import { NativeSelectionBridge, NativeSelectionConnector, SelectionPosition, AbstractSelection, RootComponentRef, Controller, Selection, Textbus, Scheduler } from '@textbus/core';
|
|
3
3
|
import { Rect } from './_utils/uikit';
|
|
4
4
|
import { Input } from './types';
|
|
5
5
|
import { ViewOptions } from './browser-module';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textbus/platform-browser",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
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": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@tanbo/stream": "^1.2.7",
|
|
36
36
|
"@viewfly/core": "^2.2.0 || >=3.0.0-alpha.0 <4",
|
|
37
|
-
"@textbus/core": "^5.2.
|
|
37
|
+
"@textbus/core": "^5.2.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"rimraf": "^3.0.2",
|