@textbus/platform-browser 5.4.3 → 5.4.4
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/_utils/uikit.d.ts +57 -0
- package/dist/index.esm.js +485 -115
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +489 -114
- package/dist/index.js.map +1 -1
- package/dist/magic-input.d.ts +17 -1
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
package/dist/magic-input.d.ts
CHANGED
|
@@ -24,7 +24,14 @@ declare class ExperimentalCaret implements Caret {
|
|
|
24
24
|
private get display();
|
|
25
25
|
private _display;
|
|
26
26
|
private flashing;
|
|
27
|
+
/** 被 overflow 裁出可视区(不用 display:none,避免触发 Input.hide) */
|
|
28
|
+
private caretClippedOut;
|
|
27
29
|
private subscription;
|
|
30
|
+
private scrollSubscription;
|
|
31
|
+
private scrollRaf;
|
|
32
|
+
private clipContext;
|
|
33
|
+
private clipContextAnchor;
|
|
34
|
+
private scrollListenerAnchor;
|
|
28
35
|
private positionChangeEvent;
|
|
29
36
|
private styleChangeEvent;
|
|
30
37
|
private oldRange;
|
|
@@ -33,8 +40,17 @@ declare class ExperimentalCaret implements Caret {
|
|
|
33
40
|
show(range: Range, restart: boolean): void;
|
|
34
41
|
hide(): void;
|
|
35
42
|
destroy(): void;
|
|
43
|
+
private bindScrollListeners;
|
|
44
|
+
private unbindScrollListeners;
|
|
45
|
+
private ensureClipContext;
|
|
46
|
+
private clearClipContext;
|
|
36
47
|
private updateCursorPosition;
|
|
37
|
-
private
|
|
48
|
+
private resolveCaretAnchor;
|
|
49
|
+
private normalizeCollapsedRange;
|
|
50
|
+
private applyCaretElementLayout;
|
|
51
|
+
private applyCaretPresentation;
|
|
52
|
+
private emitCaretPresentation;
|
|
53
|
+
private scrollCaretIntoViewIfNeeded;
|
|
38
54
|
}
|
|
39
55
|
/**
|
|
40
56
|
* Textbus PC 端输入实现
|
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface CaretPosition {
|
|
|
9
9
|
top: number;
|
|
10
10
|
height: number;
|
|
11
11
|
}
|
|
12
|
+
export declare function caretPositionEqual(a: CaretPosition | null, b: CaretPosition | null): boolean;
|
|
12
13
|
export interface Caret {
|
|
13
14
|
onPositionChange: Observable<CaretPosition | null>;
|
|
14
15
|
readonly rect: Rect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textbus/platform-browser",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.4",
|
|
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",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@tanbo/stream": "^1.2.7",
|
|
36
|
-
"@viewfly/core": "^3.0.
|
|
37
|
-
"@textbus/core": "^5.4.
|
|
36
|
+
"@viewfly/core": "^3.0.5",
|
|
37
|
+
"@textbus/core": "^5.4.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"rimraf": "^3.0.2",
|