@netless/appliance-plugin 1.1.34-beta.3 → 1.1.34
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 +33 -1
- package/README.md +32 -0
- package/cdn/cdn.js +1 -1
- package/cdn/{subWorker-BleGf3.js → fullWorker-oI42U9.js} +109 -109
- package/cdn/{fullWorker-cY8Uuj.js → subWorker-Bk6qRb.js} +109 -109
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/collector/collector.d.ts +0 -1
- package/dist/core/autoShape/index.d.ts +12 -0
- package/dist/core/autoShape/mapper.d.ts +3 -0
- package/dist/core/autoShape/recognizer.d.ts +8 -0
- package/dist/core/autoShape/registry.d.ts +2 -0
- package/dist/core/autoShape/templates.d.ts +2 -0
- package/dist/core/autoShape/types.d.ts +78 -0
- package/dist/core/mainEngine.d.ts +9 -1
- package/dist/core/tools/pencil.d.ts +3 -0
- package/dist/core/types.d.ts +7 -0
- package/dist/fullWorker.js +109 -109
- package/dist/{index-BAEfMWKR.mjs → index-BPFYMff6.mjs} +1040 -1012
- package/dist/{index-on8Dtynb.mjs → index-BTxxBSIk.mjs} +214 -207
- package/dist/index-BzcHKXGG.js +1 -0
- package/dist/index-CFIySwek.js +1 -0
- package/dist/{index-D9CYiyfx.mjs → index-CIPJM93i.mjs} +2829 -2011
- package/dist/{index-C-ITXa9_.js → index-DVZBBduh.js} +3 -3
- package/dist/plugin/baseApplianceManager.d.ts +1 -2
- package/dist/plugin/multi/containerManager.d.ts +7 -0
- package/dist/plugin/types.d.ts +24 -0
- package/dist/plugin/utils.d.ts +0 -8
- package/dist/subWorker.js +109 -109
- package/package.json +8 -26
- package/bridge.d.ts +0 -1
- package/dist/assets/fullWorker-BuSPsz-_.js +0 -593
- package/dist/assets/subWorker-B0NfJ2Bk.js +0 -593
- package/dist/bridge-Bb-MjyNY.mjs +0 -67
- package/dist/bridge-m2Uim0rf.js +0 -1
- package/dist/bridge-runtime.d.ts +0 -11
- package/dist/bridge.d.ts +0 -5
- package/dist/bridge.js +0 -1
- package/dist/bridge.mjs +0 -7
- package/dist/index-B5p02yLM.mjs +0 -15802
- package/dist/index-BVYBjZU_.js +0 -1
- package/dist/index-BbVM6AMN.mjs +0 -1255
- package/dist/index-D696FwsD.js +0 -1
- package/dist/index-DTeRhVER.js +0 -1
- package/dist/index-DnT8RFOT.js +0 -1
- package/dist/index-HS0sRcOj.js +0 -3
- package/dist/index-O6ldDna3.mjs +0 -9855
- package/dist/plugin/external.bridge.d.ts +0 -1
package/dist/bridge-Bb-MjyNY.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-BuSPsz-_.js", g = "/assets/subWorker-B0NfJ2Bk.js";
|
|
16
|
-
class d {
|
|
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-D9CYiyfx.mjs").then((e) => e.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-m2Uim0rf.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 n;function u(s){n=s}function c(){if(!n)throw new Error("[@netless/appliance-plugin/bridge] white-web-sdk runtime has not been bound yet.");return n}const a="/assets/fullWorker-BuSPsz-_.js",h="/assets/subWorker-B0NfJ2Bk.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:r}=e;this.control=t,this.publicMsgEmitter=r,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(r=>{r._onEvent(e,t)})}}async function k(s){return u(s),Promise.resolve().then(()=>require("./index-DTeRhVER.js")).then(e=>e.index)}exports.Plugin=g;exports.PluginManager=d;exports.fullWorker=a;exports.getWhiteWebSdkBridgeRuntime=c;exports.loadAppliancePluginBridge=k;exports.subWorker=h;
|
package/dist/bridge-runtime.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { InvisiblePlugin, RoomPhase, autorun, isPlayer, isRoom, toJS } from "white-web-sdk";
|
|
2
|
-
export interface WhiteWebSdkBridgeRuntime {
|
|
3
|
-
toJS: typeof toJS;
|
|
4
|
-
autorun: typeof autorun;
|
|
5
|
-
isRoom: typeof isRoom;
|
|
6
|
-
isPlayer: typeof isPlayer;
|
|
7
|
-
InvisiblePlugin: typeof InvisiblePlugin;
|
|
8
|
-
RoomPhase: typeof RoomPhase;
|
|
9
|
-
}
|
|
10
|
-
export declare function setWhiteWebSdkBridgeRuntime(runtime: WhiteWebSdkBridgeRuntime): void;
|
|
11
|
-
export declare function getWhiteWebSdkBridgeRuntime(): WhiteWebSdkBridgeRuntime;
|
package/dist/bridge.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type WhiteWebSdkBridgeRuntime } from "./bridge-runtime";
|
|
2
|
-
export * from "./cdn";
|
|
3
|
-
export * from "./extend";
|
|
4
|
-
export type * from "./plugin";
|
|
5
|
-
export declare function loadAppliancePluginBridge(runtime: WhiteWebSdkBridgeRuntime): Promise<typeof import("./plugin")>;
|
package/dist/bridge.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./bridge-m2Uim0rf.js");exports.Plugin=r.Plugin;exports.fullWorkerUrl=r.fullWorker;exports.loadAppliancePluginBridge=r.loadAppliancePluginBridge;exports.subWorkerUrl=r.subWorker;
|