@netless/appliance-plugin 1.1.37 → 1.1.38-beta.1
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 +9 -4
- package/README.md +7 -2
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/fullWorker-mk6jXaYV.js +593 -0
- package/dist/assets/subWorker-BTJNF38L.js +593 -0
- package/dist/bridge-8hheCrpO.mjs +67 -0
- package/dist/bridge-D7r_MSkR.js +1 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/component/textEditor/manager.d.ts +11 -0
- package/dist/component/textEditor/utils.d.ts +11 -0
- package/dist/core/enum.d.ts +5 -1
- package/dist/core/fontFace.d.ts +48 -0
- package/dist/core/mainEngine.d.ts +8 -11
- package/dist/core/types.d.ts +2 -0
- package/dist/core/utils/indexDB.d.ts +1 -1
- package/dist/core/worker/workerManager.d.ts +2 -0
- package/dist/fullWorker.js +103 -103
- package/dist/{index-CNcfXUx4.mjs → index-B8f2dYn9.mjs} +1201 -1193
- package/dist/{index-nxeYRf5P.mjs → index-BFAazxId.mjs} +1 -1
- package/dist/{index-D-4DoHbs.mjs → index-BULYNDpO.mjs} +1 -1
- package/dist/{index-BCNBmzwR.mjs → index-BkG3emHj.mjs} +7970 -7224
- package/dist/{index-Bl1tLXFo.js → index-Bx3AKYbY.js} +1 -1
- package/dist/{index-DKbaEDea.js → index-C9pp5WWl.js} +1 -1
- package/dist/{index-r9ho55PA.js → index-CuPiwtu4.js} +1 -1
- package/dist/index-DF1p4jdp.js +1 -0
- package/dist/index-DLcwwCLh.js +1 -0
- package/dist/{index-DqCdgRfA.js → index-R_b0AlP5.js} +1 -1
- package/dist/{index-TIV0naEi.mjs → index-VZTgaAnB.mjs} +7867 -7121
- package/dist/{index-rYcPxCxx.mjs → index-cAAZZmgn.mjs} +1201 -1193
- package/dist/plugin/applianceMultiPlugin.d.ts +1 -1
- package/dist/plugin/applianceSinglePlugin.d.ts +1 -1
- package/dist/plugin/baseApplianceManager.d.ts +25 -1
- package/dist/plugin/baseViewContainerManager.d.ts +5 -1
- package/dist/plugin/displayerView.d.ts +2 -1
- package/dist/plugin/types.d.ts +31 -0
- package/dist/subWorker.js +103 -103
- package/package.json +1 -1
- package/dist/assets/fullWorker-BnxU9bnt.js +0 -593
- package/dist/assets/subWorker-BsTroxB8.js +0 -593
- package/dist/bridge-C7tN2qjT.js +0 -1
- package/dist/bridge-DmxbEjIC.mjs +0 -67
- package/dist/index-09gdXQ2w.js +0 -1
- package/dist/index-BW3Xkxk-.js +0 -1
package/dist/bridge-C7tN2qjT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var l=(s,e,t)=>e in s?o(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>l(s,typeof e!="symbol"?e+"":e,t);let r;function u(s){r=s}function c(){if(!r)throw new Error("[@netless/appliance-plugin/bridge] white-web-sdk runtime has not been bound yet.");return r}const a="/assets/fullWorker-BnxU9bnt.js",h="/assets/subWorker-BsTroxB8.js";class g{constructor(){i(this,"control");i(this,"_listeners",{})}_inject(e){this.control=e}_onEvent(e,t){this._listeners[e]&&this._listeners[e](...t)}callbacks(e,t){this._listeners[e]=t}removeCallback(e){delete this._listeners[e]}}class d{constructor(e){i(this,"control");i(this,"worker");i(this,"publicMsgEmitter");i(this,"plugins",new Map);const{control:t,publicMsgEmitter:n}=e;this.control=t,this.publicMsgEmitter=n,this.worker=t.worker}use(e){this.plugins.set(e.kind,e),e._inject(this.control),e.onCreate()}destroy(){this.plugins.forEach(e=>{this.plugins.delete(e.kind),e.onDestroy()})}dispatchPluginEvent(e,...t){this.plugins.forEach(n=>{n._onEvent(e,t)})}}async function b(s){return u(s),Promise.resolve().then(()=>require("./index-09gdXQ2w.js")).then(e=>e.index)}exports.Plugin=g;exports.PluginManager=d;exports.fullWorker=a;exports.getWhiteWebSdkBridgeRuntime=c;exports.loadAppliancePluginBridge=b;exports.subWorker=h;
|
package/dist/bridge-DmxbEjIC.mjs
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var l = (s, t, e) => t in s ? o(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
-
var n = (s, t, e) => l(s, typeof t != "symbol" ? t + "" : t, e);
|
|
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-BnxU9bnt.js", g = "/assets/subWorker-BsTroxB8.js";
|
|
16
|
-
class d {
|
|
17
|
-
constructor() {
|
|
18
|
-
n(this, "control");
|
|
19
|
-
n(this, "_listeners", {});
|
|
20
|
-
}
|
|
21
|
-
_inject(t) {
|
|
22
|
-
this.control = t;
|
|
23
|
-
}
|
|
24
|
-
_onEvent(t, e) {
|
|
25
|
-
this._listeners[t] && this._listeners[t](...e);
|
|
26
|
-
}
|
|
27
|
-
callbacks(t, e) {
|
|
28
|
-
this._listeners[t] = e;
|
|
29
|
-
}
|
|
30
|
-
removeCallback(t) {
|
|
31
|
-
delete this._listeners[t];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
class b {
|
|
35
|
-
constructor(t) {
|
|
36
|
-
n(this, "control");
|
|
37
|
-
n(this, "worker");
|
|
38
|
-
n(this, "publicMsgEmitter");
|
|
39
|
-
n(this, "plugins", /* @__PURE__ */ new Map());
|
|
40
|
-
const { control: e, publicMsgEmitter: i } = t;
|
|
41
|
-
this.control = e, this.publicMsgEmitter = i, this.worker = e.worker;
|
|
42
|
-
}
|
|
43
|
-
use(t) {
|
|
44
|
-
this.plugins.set(t.kind, t), t._inject(this.control), t.onCreate();
|
|
45
|
-
}
|
|
46
|
-
destroy() {
|
|
47
|
-
this.plugins.forEach((t) => {
|
|
48
|
-
this.plugins.delete(t.kind), t.onDestroy();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
dispatchPluginEvent(t, ...e) {
|
|
52
|
-
this.plugins.forEach((i) => {
|
|
53
|
-
i._onEvent(t, e);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async function k(s) {
|
|
58
|
-
return c(s), import("./index-BCNBmzwR.mjs").then((t) => t.a8);
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
b as P,
|
|
62
|
-
d as a,
|
|
63
|
-
h as f,
|
|
64
|
-
u as g,
|
|
65
|
-
k as l,
|
|
66
|
-
g as s
|
|
67
|
-
};
|