@netless/appliance-plugin 1.1.34-beta.3 → 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.
- package/READMA.zh-CN.md +33 -1
- package/README.md +32 -0
- package/cdn/cdn.js +1 -1
- package/cdn/fullWorker-BShzOf.js +486 -0
- package/cdn/subWorker-DofGU2.js +486 -0
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/fullWorker-BLBp1QlT.js +593 -0
- package/dist/assets/subWorker-CA5sK8hX.js +593 -0
- package/dist/{bridge-Bb-MjyNY.mjs → bridge-D6IerdOk.mjs} +6 -6
- package/dist/{bridge-m2Uim0rf.js → bridge-s6K3XU2g.js} +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -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 -0
- package/dist/core/tools/pencil.d.ts +3 -0
- package/dist/core/types.d.ts +7 -0
- package/dist/fullWorker.js +147 -147
- package/dist/index-328yD4vj.js +1 -0
- package/dist/{index-B5p02yLM.mjs → index-4k563Sm-.mjs} +3076 -2293
- package/dist/index-C89lvDjQ.js +1 -0
- package/dist/{index-C-ITXa9_.js → index-CBE_U7Gn.js} +3 -3
- package/dist/{index-BAEfMWKR.mjs → index-CPmHcL9u.mjs} +1041 -1013
- package/dist/{index-BbVM6AMN.mjs → index-D-IWIyEl.mjs} +260 -253
- package/dist/{index-D9CYiyfx.mjs → index-D1p6YXf0.mjs} +3014 -2238
- package/dist/{index-HS0sRcOj.js → index-DDL0Hq_X.js} +3 -3
- package/dist/{index-on8Dtynb.mjs → index-DR2km5D4.mjs} +215 -208
- package/dist/index-DXx1-O0K.js +1 -0
- package/dist/index-DbLWM-6h.js +1 -0
- package/dist/{index-O6ldDna3.mjs → index-IQRiGPX7.mjs} +1041 -1013
- package/dist/plugin/multi/containerManager.d.ts +7 -0
- package/dist/plugin/types.d.ts +24 -0
- package/dist/subWorker.js +147 -147
- package/dist/svgToImageLoader-B3gIDAQo.js +1 -0
- package/dist/svgToImageLoader-DZz5bAo4.mjs +22 -0
- package/package.json +11 -5
- package/cdn/fullWorker-cY8Uuj.js +0 -486
- package/cdn/subWorker-BleGf3.js +0 -486
- package/dist/assets/fullWorker-BuSPsz-_.js +0 -593
- package/dist/assets/subWorker-B0NfJ2Bk.js +0 -593
- package/dist/index-BVYBjZU_.js +0 -1
- package/dist/index-D696FwsD.js +0 -1
- package/dist/index-DTeRhVER.js +0 -1
- package/dist/index-DnT8RFOT.js +0 -1
- package/dist/svgToImageLoader-DPRAAhwW.js +0 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/appliance-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"cdn",
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "vite --force",
|
|
38
38
|
"lint": "eslint . --ignore-pattern '**/*.test.ts' --ignore-pattern '**/*.md' && prettier --check . --ignore-path .prettierignore",
|
|
39
|
+
"example:lint": "pnpm --dir example lint",
|
|
40
|
+
"example:typecheck": "pnpm exec tsc --noEmit -p example/tsconfig.json",
|
|
41
|
+
"sync:fastboard-docs": "node scripts/sync-fastboard-docs.mjs",
|
|
42
|
+
"ci:check": "pnpm lint && pnpm test:auto-shape && pnpm build && pnpm example:typecheck",
|
|
43
|
+
"test:auto-shape": "tsx test/autoShape.test.ts",
|
|
39
44
|
"types:bundler": "tsc --emitDeclarationOnly",
|
|
40
45
|
"build:bridge": "vite build --config vite.config.bridge.js",
|
|
41
46
|
"build:bundler": "vite build --config vite.config.bundler.js && yarn build:bridge && yarn types:bundler",
|
|
@@ -53,8 +58,8 @@
|
|
|
53
58
|
"@rollup/plugin-babel": "^6.0.4",
|
|
54
59
|
"@types/dom-to-image": "^2.6.7",
|
|
55
60
|
"@types/lodash": "^4.14.202",
|
|
56
|
-
"@types/react": "
|
|
57
|
-
"@types/react-dom": "
|
|
61
|
+
"@types/react": "^18.3.28",
|
|
62
|
+
"@types/react-dom": "^18.3.7",
|
|
58
63
|
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
59
64
|
"@typescript-eslint/parser": "^8.39.0",
|
|
60
65
|
"cross-env": "^7.0.3",
|
|
@@ -62,13 +67,14 @@
|
|
|
62
67
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
63
68
|
"less": "^4.2.0",
|
|
64
69
|
"prettier": "^3.6.2",
|
|
70
|
+
"tsx": "^4.21.0",
|
|
65
71
|
"typescript": "^5.2.2",
|
|
66
72
|
"vite": "^5.0.0",
|
|
67
|
-
"white-web-sdk": "^2.16.
|
|
73
|
+
"white-web-sdk": "^2.16.54"
|
|
68
74
|
},
|
|
69
75
|
"peerDependencies": {
|
|
70
76
|
"@netless/window-manager": ">=1.0",
|
|
71
|
-
"white-web-sdk": ">= 2.16.
|
|
77
|
+
"white-web-sdk": ">= 2.16.54"
|
|
72
78
|
},
|
|
73
79
|
"dependencies": {
|
|
74
80
|
"clipper-lib": "^6.4.2",
|