@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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var l=(i,e,t)=>e in i?o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>l(i,typeof e!="symbol"?e+"":e,t);let
|
|
1
|
+
"use strict";var o=Object.defineProperty;var l=(i,e,t)=>e in i?o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>l(i,typeof e!="symbol"?e+"":e,t);let r;function u(i){r=i}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-C5kniG7M.js",h="/assets/subWorker-Cps_t9fu.js";class g{constructor(){s(this,"control");s(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){s(this,"control");s(this,"worker");s(this,"publicMsgEmitter");s(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 k(i){return u(i),Promise.resolve().then(()=>require("./index-DJpL2E5_.js")).then(e=>e.index)}exports.Plugin=g;exports.PluginManager=d;exports.fullWorker=a;exports.getWhiteWebSdkBridgeRuntime=c;exports.loadAppliancePluginBridge=k;exports.subWorker=h;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 i = (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-C5kniG7M.js", g = "/assets/subWorker-Cps_t9fu.js";
|
|
16
|
+
class d {
|
|
17
|
+
constructor() {
|
|
18
|
+
i(this, "control");
|
|
19
|
+
i(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 k {
|
|
35
|
+
constructor(t) {
|
|
36
|
+
i(this, "control");
|
|
37
|
+
i(this, "worker");
|
|
38
|
+
i(this, "publicMsgEmitter");
|
|
39
|
+
i(this, "plugins", /* @__PURE__ */ new Map());
|
|
40
|
+
const { control: e, publicMsgEmitter: n } = t;
|
|
41
|
+
this.control = e, this.publicMsgEmitter = n, 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((n) => {
|
|
53
|
+
n._onEvent(t, e);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function b(s) {
|
|
58
|
+
return c(s), import("./index-B7jKsOvs.mjs").then((t) => t.a7);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
k as P,
|
|
62
|
+
d as a,
|
|
63
|
+
h as f,
|
|
64
|
+
u as g,
|
|
65
|
+
b as l,
|
|
66
|
+
g as s
|
|
67
|
+
};
|
package/dist/bridge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./bridge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./bridge-DeN8jJgs.js");exports.Plugin=r.Plugin;exports.fullWorkerUrl=r.fullWorker;exports.loadAppliancePluginBridge=r.loadAppliancePluginBridge;exports.subWorkerUrl=r.subWorker;
|
package/dist/bridge.mjs
CHANGED
|
@@ -90,7 +90,6 @@ export declare class TextEditorManagerImpl implements TextEditorManager {
|
|
|
90
90
|
private undoTickerId?;
|
|
91
91
|
constructor(props: BaseSubWorkModuleProps);
|
|
92
92
|
get collector(): import("../../collector").Collector | undefined;
|
|
93
|
-
private logTextUndo;
|
|
94
93
|
set UndoTickerId(value: number | undefined);
|
|
95
94
|
get UndoTickerId(): number | undefined;
|
|
96
95
|
private getDoneUndoTicker;
|