bridgerte 0.9.28 → 0.9.29
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/dom.cjs +1 -1
- package/dist/dom.d.ts +12 -1
- package/dist/dom.js +2 -2
- package/dist/{index-D13BxvUx.cjs → index-CoJWbTaU.cjs} +5 -5
- package/dist/index-CoJWbTaU.cjs.map +1 -0
- package/dist/{index-CRXvBy_U.js → index-DOVOERtQ.js} +2 -2
- package/dist/{index-CRXvBy_U.js.map → index-DOVOERtQ.js.map} +1 -1
- package/dist/{index-xmaDz65G.js → index-DtWjQeyt.js} +1486 -1492
- package/dist/index-DtWjQeyt.js.map +1 -0
- package/dist/{index-chnu2zi0.cjs → index-Rj8iV2BH.cjs} +2 -2
- package/dist/{index-chnu2zi0.cjs.map → index-Rj8iV2BH.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/webview.cjs +1 -1
- package/dist/webview.js +1 -1
- package/package.json +1 -1
- package/dist/index-D13BxvUx.cjs.map +0 -1
- package/dist/index-xmaDz65G.js.map +0 -1
package/dist/dom.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoJWbTaU.cjs"),t=require("./index-Rj8iV2BH.cjs");exports.createFloatingLayer=e.createFloatingLayer;exports.createRichTextEditor=e.createRichTextEditor;exports.createWebViewBridgeRuntime=e.createWebViewBridgeRuntime;exports.createRichTextToolbar=t.createRichTextToolbar;exports.hasMeaningfulHtmlContent=t.hasMeaningfulHtmlContent;
|
|
2
2
|
//# sourceMappingURL=dom.cjs.map
|
package/dist/dom.d.ts
CHANGED
|
@@ -1100,6 +1100,16 @@ export type RichTextFloatingLayerOptions = {
|
|
|
1100
1100
|
shiftPadding?: number;
|
|
1101
1101
|
strategy?: 'absolute' | 'fixed';
|
|
1102
1102
|
};
|
|
1103
|
+
/**
|
|
1104
|
+
* 浮层定位参考对象。
|
|
1105
|
+
*
|
|
1106
|
+
* 真实 HTMLElement 服务按钮、hoverbar 等常规浮层;virtual reference 服务 selection/range
|
|
1107
|
+
* 锚点,避免为了定位创建隐藏 DOM 后被宿主 root 偏移重复叠加。
|
|
1108
|
+
*/
|
|
1109
|
+
export type RichTextFloatingReference = HTMLElement | {
|
|
1110
|
+
getBoundingClientRect(): DOMRect;
|
|
1111
|
+
contextElement?: Element;
|
|
1112
|
+
};
|
|
1103
1113
|
/**
|
|
1104
1114
|
* 通用浮层实例。
|
|
1105
1115
|
*
|
|
@@ -1115,8 +1125,9 @@ export type RichTextFloatingLayer = {
|
|
|
1115
1125
|
* 统一浮层定位能力。
|
|
1116
1126
|
*
|
|
1117
1127
|
* hoverbar、mention 和 slash menu 都从这里复用定位、翻转、键盘可视区和边界避让逻辑。
|
|
1128
|
+
* reference 支持真实 DOM 和 virtual reference,selection/range 类浮层无需再创建隐藏锚点。
|
|
1118
1129
|
*/
|
|
1119
|
-
export declare function createFloatingLayer(reference:
|
|
1130
|
+
export declare function createFloatingLayer(reference: RichTextFloatingReference, floating: HTMLElement, options?: RichTextFloatingLayerOptions): RichTextFloatingLayer;
|
|
1120
1131
|
|
|
1121
1132
|
/**
|
|
1122
1133
|
* 创建浏览器 DOM 编辑器实例。
|
package/dist/dom.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as t, a as r, b as o } from "./index-
|
|
2
|
-
import { c as i, h as n } from "./index-
|
|
1
|
+
import { c as t, a as r, b as o } from "./index-DtWjQeyt.js";
|
|
2
|
+
import { c as i, h as n } from "./index-DOVOERtQ.js";
|
|
3
3
|
export {
|
|
4
4
|
t as createFloatingLayer,
|
|
5
5
|
r as createRichTextEditor,
|