@netless/appliance-plugin 1.1.34-beta.2 → 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.
Files changed (47) hide show
  1. package/READMA.zh-CN.md +33 -1
  2. package/README.md +32 -0
  3. package/cdn/cdn.js +1 -1
  4. package/cdn/{subWorker-DhqUsi.js → fullWorker-oI42U9.js} +109 -109
  5. package/cdn/{fullWorker-CuVwdG.js → subWorker-Bk6qRb.js} +109 -109
  6. package/dist/appliance-plugin.js +1 -1
  7. package/dist/appliance-plugin.mjs +1 -1
  8. package/dist/collector/collector.d.ts +0 -1
  9. package/dist/core/autoShape/index.d.ts +12 -0
  10. package/dist/core/autoShape/mapper.d.ts +3 -0
  11. package/dist/core/autoShape/recognizer.d.ts +8 -0
  12. package/dist/core/autoShape/registry.d.ts +2 -0
  13. package/dist/core/autoShape/templates.d.ts +2 -0
  14. package/dist/core/autoShape/types.d.ts +78 -0
  15. package/dist/core/mainEngine.d.ts +9 -1
  16. package/dist/core/tools/pencil.d.ts +3 -0
  17. package/dist/core/types.d.ts +7 -0
  18. package/dist/fullWorker.js +109 -109
  19. package/dist/{index-DD4uosmt.mjs → index-BPFYMff6.mjs} +1040 -1012
  20. package/dist/{index-Djm-u9a7.mjs → index-BTxxBSIk.mjs} +214 -207
  21. package/dist/index-BzcHKXGG.js +1 -0
  22. package/dist/index-CFIySwek.js +1 -0
  23. package/dist/{index-CslUUlge.mjs → index-CIPJM93i.mjs} +2829 -2011
  24. package/dist/{index-CnVA96FG.js → index-DVZBBduh.js} +3 -3
  25. package/dist/plugin/baseApplianceManager.d.ts +1 -2
  26. package/dist/plugin/multi/containerManager.d.ts +7 -0
  27. package/dist/plugin/types.d.ts +24 -0
  28. package/dist/plugin/utils.d.ts +0 -8
  29. package/dist/subWorker.js +109 -109
  30. package/package.json +8 -18
  31. package/dist/assets/fullWorker-CItZoPtX.js +0 -593
  32. package/dist/assets/subWorker-DTQZDdFT.js +0 -593
  33. package/dist/bridge-C4n1zHQZ.mjs +0 -67
  34. package/dist/bridge-DCJjH18X.js +0 -1
  35. package/dist/bridge-runtime.d.ts +0 -11
  36. package/dist/bridge.d.ts +0 -5
  37. package/dist/bridge.js +0 -1
  38. package/dist/bridge.mjs +0 -7
  39. package/dist/index-BZopbcnP.js +0 -1
  40. package/dist/index-Bc6Cv0DB.mjs +0 -15802
  41. package/dist/index-CH_SAlCz.mjs +0 -1255
  42. package/dist/index-CR9Nc39_.js +0 -1
  43. package/dist/index-D8qxABte.mjs +0 -9855
  44. package/dist/index-DjNO25oE.js +0 -1
  45. package/dist/index-Dk4BLxV5.js +0 -3
  46. package/dist/index-DnccF_rY.js +0 -1
  47. package/dist/plugin/external.bridge.d.ts +0 -1
@@ -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 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-CItZoPtX.js", d = "/assets/subWorker-DTQZDdFT.js";
16
- class g {
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 b {
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 k(s) {
58
- return c(s), import("./index-CslUUlge.mjs").then((t) => t.a7);
59
- }
60
- export {
61
- b as P,
62
- g as a,
63
- h as f,
64
- u as g,
65
- k as l,
66
- d as s
67
- };
@@ -1 +0,0 @@
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 n;function u(i){n=i}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-CItZoPtX.js",h="/assets/subWorker-DTQZDdFT.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: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(i){return u(i),Promise.resolve().then(()=>require("./index-CR9Nc39_.js")).then(e=>e.index)}exports.Plugin=g;exports.PluginManager=d;exports.fullWorker=a;exports.getWhiteWebSdkBridgeRuntime=c;exports.loadAppliancePluginBridge=k;exports.subWorker=h;
@@ -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-DCJjH18X.js");exports.Plugin=r.Plugin;exports.fullWorkerUrl=r.fullWorker;exports.loadAppliancePluginBridge=r.loadAppliancePluginBridge;exports.subWorkerUrl=r.subWorker;
package/dist/bridge.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { a, f as s, l as e, s as o } from "./bridge-C4n1zHQZ.mjs";
2
- export {
3
- a as Plugin,
4
- s as fullWorkerUrl,
5
- e as loadAppliancePluginBridge,
6
- o as subWorkerUrl
7
- };