@netless/appliance-plugin 1.1.34 → 1.1.35-beta.0

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 (41) hide show
  1. package/bridge.d.ts +1 -0
  2. package/cdn/cdn.js +1 -1
  3. package/cdn/fullWorker-BShzOf.js +486 -0
  4. package/cdn/subWorker-DofGU2.js +486 -0
  5. package/dist/appliance-plugin.js +1 -1
  6. package/dist/appliance-plugin.mjs +1 -1
  7. package/dist/assets/fullWorker-BLBp1QlT.js +593 -0
  8. package/dist/assets/subWorker-CA5sK8hX.js +593 -0
  9. package/dist/bridge-D6IerdOk.mjs +67 -0
  10. package/dist/bridge-runtime.d.ts +11 -0
  11. package/dist/bridge-s6K3XU2g.js +1 -0
  12. package/dist/bridge.d.ts +5 -0
  13. package/dist/bridge.js +1 -0
  14. package/dist/bridge.mjs +7 -0
  15. package/dist/collector/collector.d.ts +1 -0
  16. package/dist/core/mainEngine.d.ts +1 -0
  17. package/dist/fullWorker.js +137 -137
  18. package/dist/{index-CFIySwek.js → index-328yD4vj.js} +1 -1
  19. package/dist/{index-CIPJM93i.mjs → index-4k563Sm-.mjs} +1020 -1036
  20. package/dist/index-C89lvDjQ.js +1 -0
  21. package/dist/{index-DVZBBduh.js → index-CBE_U7Gn.js} +2 -2
  22. package/dist/{index-BPFYMff6.mjs → index-CPmHcL9u.mjs} +2 -2
  23. package/dist/index-D-IWIyEl.mjs +1262 -0
  24. package/dist/index-D1p6YXf0.mjs +16559 -0
  25. package/dist/index-DDL0Hq_X.js +3 -0
  26. package/dist/{index-BTxxBSIk.mjs → index-DR2km5D4.mjs} +2 -2
  27. package/dist/index-DXx1-O0K.js +1 -0
  28. package/dist/index-DbLWM-6h.js +1 -0
  29. package/dist/index-IQRiGPX7.mjs +9883 -0
  30. package/dist/plugin/baseApplianceManager.d.ts +2 -1
  31. package/dist/plugin/external.bridge.d.ts +1 -0
  32. package/dist/plugin/utils.d.ts +8 -0
  33. package/dist/subWorker.js +137 -137
  34. package/dist/svgToImageLoader-B3gIDAQo.js +1 -0
  35. package/dist/svgToImageLoader-DZz5bAo4.mjs +22 -0
  36. package/package.json +30 -6
  37. package/cdn/fullWorker-oI42U9.js +0 -486
  38. package/cdn/subWorker-Bk6qRb.js +0 -486
  39. package/dist/index-BzcHKXGG.js +0 -1
  40. package/dist/svgToImageLoader-DPRAAhwW.js +0 -1
  41. package/dist/svgToImageLoader-mXH53h-l.mjs +0 -18
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.create;var g=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var b=(e,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!c.call(e,n)&&n!==r&&g(e,n,{get:()=>o[n],enumerable:!(i=u(o,n))||i.enumerable});return e};var s=(e,o,r)=>(r=e!=null?l(m(e)):{},b(o||!e||!e.__esModule?g(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t=null,a=null;async function L(){return t||a||(a=(async()=>{try{const e=await import("dom-to-image");return t=e.default||e,t}catch(e){throw a=null,e}})(),a)}function T(){return t!==null}function v(){return t}exports.getSvgToImageLib=v;exports.isSvgToImageLibLoaded=T;exports.loadSvgToImageLib=L;
@@ -0,0 +1,22 @@
1
+ let e = null, n = null;
2
+ async function t() {
3
+ return e || n || (n = (async () => {
4
+ try {
5
+ const r = await import("dom-to-image");
6
+ return e = r.default || r, e;
7
+ } catch (r) {
8
+ throw n = null, r;
9
+ }
10
+ })(), n);
11
+ }
12
+ function o() {
13
+ return e !== null;
14
+ }
15
+ function u() {
16
+ return e;
17
+ }
18
+ export {
19
+ u as getSvgToImageLib,
20
+ o as isSvgToImageLibLoaded,
21
+ t as loadSvgToImageLib
22
+ };
package/package.json CHANGED
@@ -1,15 +1,38 @@
1
1
  {
2
2
  "name": "@netless/appliance-plugin",
3
- "version": "1.1.34",
3
+ "version": "1.1.35-beta.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "cdn",
7
+ "bridge.d.ts",
7
8
  "README.md",
8
9
  "READMA.zh-CN.md"
9
10
  ],
10
11
  "main": "./dist/appliance-plugin.js",
11
12
  "module": "./dist/appliance-plugin.mjs",
12
13
  "types": "./dist/index.d.ts",
14
+ "typesVersions": {
15
+ "*": {
16
+ "bridge": [
17
+ "./dist/bridge.d.ts"
18
+ ]
19
+ }
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/appliance-plugin.mjs",
25
+ "require": "./dist/appliance-plugin.js"
26
+ },
27
+ "./bridge": {
28
+ "types": "./dist/bridge.d.ts",
29
+ "import": "./dist/bridge.mjs",
30
+ "require": "./dist/bridge.js"
31
+ },
32
+ "./dist/*": "./dist/*",
33
+ "./cdn/*": "./cdn/*",
34
+ "./package.json": "./package.json"
35
+ },
13
36
  "scripts": {
14
37
  "dev": "vite --force",
15
38
  "lint": "eslint . --ignore-pattern '**/*.test.ts' --ignore-pattern '**/*.md' && prettier --check . --ignore-path .prettierignore",
@@ -19,7 +42,8 @@
19
42
  "ci:check": "pnpm lint && pnpm test:auto-shape && pnpm build && pnpm example:typecheck",
20
43
  "test:auto-shape": "tsx test/autoShape.test.ts",
21
44
  "types:bundler": "tsc --emitDeclarationOnly",
22
- "build:bundler": "vite build --config vite.config.bundler.js && yarn types:bundler",
45
+ "build:bridge": "vite build --config vite.config.bridge.js",
46
+ "build:bundler": "vite build --config vite.config.bundler.js && yarn build:bridge && yarn types:bundler",
23
47
  "types:worker": "tsc --noEmit",
24
48
  "build:worker": "vite build --config vite.config.worker.js",
25
49
  "build": "cross-env NODE_ENV=production tsc && yarn build:worker && yarn build:bundler",
@@ -34,8 +58,8 @@
34
58
  "@rollup/plugin-babel": "^6.0.4",
35
59
  "@types/dom-to-image": "^2.6.7",
36
60
  "@types/lodash": "^4.14.202",
37
- "@types/react": "*",
38
- "@types/react-dom": "*",
61
+ "@types/react": "^18.3.28",
62
+ "@types/react-dom": "^18.3.7",
39
63
  "@typescript-eslint/eslint-plugin": "^8.39.0",
40
64
  "@typescript-eslint/parser": "^8.39.0",
41
65
  "cross-env": "^7.0.3",
@@ -46,11 +70,11 @@
46
70
  "tsx": "^4.21.0",
47
71
  "typescript": "^5.2.2",
48
72
  "vite": "^5.0.0",
49
- "white-web-sdk": "^2.16.53"
73
+ "white-web-sdk": "^2.16.54"
50
74
  },
51
75
  "peerDependencies": {
52
76
  "@netless/window-manager": ">=1.0",
53
- "white-web-sdk": ">= 2.16.52"
77
+ "white-web-sdk": ">= 2.16.54"
54
78
  },
55
79
  "dependencies": {
56
80
  "clipper-lib": "^6.4.2",