@netless/appliance-plugin 1.1.36-beta.1 → 1.1.36-beta.3
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/READMA.zh-CN.md +60 -49
- package/README.md +92 -50
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/{fullWorker-B_mvkoeW.js → fullWorker-C5kniG7M.js} +7 -7
- package/dist/assets/{subWorker-CRdsidWT.js → subWorker-Cps_t9fu.js} +7 -7
- package/dist/{bridge-enxPG6qf.js → bridge-DeN8jJgs.js} +1 -1
- package/dist/bridge-DvqpopG1.mjs +67 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/component/textEditor/manager.d.ts +0 -1
- package/dist/fullWorker.js +2 -2
- package/dist/{index-D8SnD90W.mjs → index-B3MjbDsW.mjs} +1 -1
- package/dist/{index-2On9v0Ff.mjs → index-B7jKsOvs.mjs} +4089 -4324
- package/dist/{index-BZql6xgR.mjs → index-C-mmzWhD.mjs} +1 -1
- package/dist/{index-CcS9cKSp.js → index-C5LkBIDy.js} +1 -1
- package/dist/{index-D4z0hSjm.js → index-CGUukLaV.js} +1 -1
- package/dist/{index-Bm90lQii.js → index-CR9y5tMJ.js} +1 -1
- package/dist/{index-CIjmeY9J.js → index-ChEzLTlY.js} +1 -1
- package/dist/{index-K9QVPOhV.mjs → index-CobMH-xU.mjs} +14 -21
- package/dist/index-D9xjZ07S.js +1 -0
- package/dist/index-DJpL2E5_.js +1 -0
- package/dist/{index-DbI0V6BY.mjs → index-Dllr4Im3.mjs} +3937 -4172
- package/dist/{index-BrJL-fin.mjs → index-v6moTe3J.mjs} +14 -21
- package/dist/plugin/selectorApi.d.ts +4 -1
- package/dist/plugin/types.d.ts +8 -3
- package/dist/subWorker.js +2 -2
- package/dist/undo/index.d.ts +0 -1
- package/package.json +2 -4
- package/cdn/cdn.js +0 -1
- package/cdn/fullWorker-uAwmRi.js +0 -486
- package/cdn/subWorker-BVNpAC.js +0 -486
- package/dist/bridge-DYkH1J6p.mjs +0 -67
- package/dist/index-BSD0B_eV.js +0 -1
- package/dist/index-W9Jz9E04.js +0 -1
package/dist/bridge-DYkH1J6p.mjs
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var l = (s, e, t) => e in s ? o(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
-
var i = (s, e, t) => l(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
let r;
|
|
5
|
-
function c(s) {
|
|
6
|
-
r = s;
|
|
7
|
-
}
|
|
8
|
-
function u() {
|
|
9
|
-
if (!r)
|
|
10
|
-
throw new Error(
|
|
11
|
-
"[@netless/appliance-plugin/bridge] white-web-sdk runtime has not been bound yet."
|
|
12
|
-
);
|
|
13
|
-
return r;
|
|
14
|
-
}
|
|
15
|
-
const h = "/assets/fullWorker-B_mvkoeW.js", d = "/assets/subWorker-CRdsidWT.js";
|
|
16
|
-
class g {
|
|
17
|
-
constructor() {
|
|
18
|
-
i(this, "control");
|
|
19
|
-
i(this, "_listeners", {});
|
|
20
|
-
}
|
|
21
|
-
_inject(e) {
|
|
22
|
-
this.control = e;
|
|
23
|
-
}
|
|
24
|
-
_onEvent(e, t) {
|
|
25
|
-
this._listeners[e] && this._listeners[e](...t);
|
|
26
|
-
}
|
|
27
|
-
callbacks(e, t) {
|
|
28
|
-
this._listeners[e] = t;
|
|
29
|
-
}
|
|
30
|
-
removeCallback(e) {
|
|
31
|
-
delete this._listeners[e];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
class k {
|
|
35
|
-
constructor(e) {
|
|
36
|
-
i(this, "control");
|
|
37
|
-
i(this, "worker");
|
|
38
|
-
i(this, "publicMsgEmitter");
|
|
39
|
-
i(this, "plugins", /* @__PURE__ */ new Map());
|
|
40
|
-
const { control: t, publicMsgEmitter: n } = e;
|
|
41
|
-
this.control = t, this.publicMsgEmitter = n, this.worker = t.worker;
|
|
42
|
-
}
|
|
43
|
-
use(e) {
|
|
44
|
-
this.plugins.set(e.kind, e), e._inject(this.control), e.onCreate();
|
|
45
|
-
}
|
|
46
|
-
destroy() {
|
|
47
|
-
this.plugins.forEach((e) => {
|
|
48
|
-
this.plugins.delete(e.kind), e.onDestroy();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
dispatchPluginEvent(e, ...t) {
|
|
52
|
-
this.plugins.forEach((n) => {
|
|
53
|
-
n._onEvent(e, t);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async function b(s) {
|
|
58
|
-
return c(s), import("./index-2On9v0Ff.mjs").then((e) => e.a7);
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
k as P,
|
|
62
|
-
g as a,
|
|
63
|
-
h as f,
|
|
64
|
-
u as g,
|
|
65
|
-
b as l,
|
|
66
|
-
d as s
|
|
67
|
-
};
|