@opentiny/tiny-engine-canvas 2.0.0 → 2.1.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/dist/_commonjsHelpers.js +88 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2777 -1266
- package/dist/render.css +1 -1
- package/dist/render.js +66020 -44192
- package/package.json +13 -11
- package/dist/utils.js +0 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-canvas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,18 +36,20 @@
|
|
|
36
36
|
"type": "module",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/core": "7.18.13",
|
|
39
|
-
"@opentiny/tiny-engine-builtin-component": "2.
|
|
40
|
-
"@opentiny/tiny-engine-common": "2.
|
|
41
|
-
"@opentiny/tiny-engine-i18n-host": "2.
|
|
42
|
-
"@opentiny/tiny-engine-meta-register": "2.
|
|
43
|
-
"@opentiny/tiny-engine-utils": "2.
|
|
44
|
-
"@opentiny/tiny-engine-webcomponent-core": "2.
|
|
45
|
-
"@vue/babel-plugin-jsx": "1.
|
|
39
|
+
"@opentiny/tiny-engine-builtin-component": "2.1.0",
|
|
40
|
+
"@opentiny/tiny-engine-common": "2.1.0",
|
|
41
|
+
"@opentiny/tiny-engine-i18n-host": "2.1.0",
|
|
42
|
+
"@opentiny/tiny-engine-meta-register": "2.1.0",
|
|
43
|
+
"@opentiny/tiny-engine-utils": "2.1.0",
|
|
44
|
+
"@opentiny/tiny-engine-webcomponent-core": "2.1.0",
|
|
45
|
+
"@vue/babel-plugin-jsx": "^1.2.5",
|
|
46
46
|
"@vue/shared": "^3.3.4",
|
|
47
|
-
"@vueuse/core": "^9.6.0"
|
|
47
|
+
"@vueuse/core": "^9.6.0",
|
|
48
|
+
"diff-match-patch": "^1.0.5",
|
|
49
|
+
"jsondiffpatch": "^0.6.0"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.
|
|
52
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.1.0",
|
|
51
53
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
52
54
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
53
55
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
@@ -60,5 +62,5 @@
|
|
|
60
62
|
"vue": "^3.4.15",
|
|
61
63
|
"vue-i18n": "^9.9.0"
|
|
62
64
|
},
|
|
63
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "faf3072c75ea5024689972e2a687916e084c156f"
|
|
64
66
|
}
|
package/dist/utils.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const l = (e, s) => {
|
|
2
|
-
const n = e.__vccOpts || e;
|
|
3
|
-
for (const [o, t] of s)
|
|
4
|
-
n[o] = t;
|
|
5
|
-
return n;
|
|
6
|
-
}, p = "data-uid", m = "data-tag", y = "loop-id", u = {
|
|
7
|
-
DESIGN: "design",
|
|
8
|
-
// 设计态
|
|
9
|
-
RUNTIME: "runtime"
|
|
10
|
-
// 运行态
|
|
11
|
-
}, f = (e, s = document) => new Promise((n, o) => {
|
|
12
|
-
const t = s.createElement("script");
|
|
13
|
-
t.setAttribute("type", "text/javascript"), t.setAttribute("src", e), t.async = !1, t.onload = n, t.onerror = o, s.querySelector("head").appendChild(t);
|
|
14
|
-
}), i = (e, s = document) => new Promise((n, o) => {
|
|
15
|
-
const t = s.createElement("link");
|
|
16
|
-
t.setAttribute("href", e), t.setAttribute("rel", "stylesheet"), t.onload = n, t.onerror = o, s.querySelector("head").appendChild(t);
|
|
17
|
-
}), c = (e) => {
|
|
18
|
-
if (typeof e == "object") {
|
|
19
|
-
if (!e)
|
|
20
|
-
return e;
|
|
21
|
-
if (Array.isArray(e))
|
|
22
|
-
return e.map(c);
|
|
23
|
-
const s = {};
|
|
24
|
-
Object.keys(e).forEach((t) => {
|
|
25
|
-
s[t] = c(e[t]);
|
|
26
|
-
});
|
|
27
|
-
const { componentName: n, id: o } = s;
|
|
28
|
-
return n && o && delete s.id, s;
|
|
29
|
-
}
|
|
30
|
-
return e;
|
|
31
|
-
}, d = async ({ package: e, script: s, components: n }) => {
|
|
32
|
-
if (!s) return;
|
|
33
|
-
const o = s.startsWith(".") ? new URL(s, location.href).href : s;
|
|
34
|
-
if (!window.TinyComponentLibs[e]) {
|
|
35
|
-
const t = await import(
|
|
36
|
-
/* @vite-ignore */
|
|
37
|
-
o
|
|
38
|
-
);
|
|
39
|
-
window.TinyComponentLibs[e] = t;
|
|
40
|
-
}
|
|
41
|
-
Object.entries(n).forEach(([t, a]) => {
|
|
42
|
-
const r = window.TinyComponentLibs[e];
|
|
43
|
-
window.TinyLowcodeComponent[t] || (window.TinyLowcodeComponent[t] = r[a]);
|
|
44
|
-
});
|
|
45
|
-
}, w = ({ detail: e }) => {
|
|
46
|
-
const { scripts: s = [], styles: n = [] } = e || {}, { styles: o } = window.thirdPartyDeps, t = [...n].filter((r) => !o.has(r));
|
|
47
|
-
t.forEach((r) => o.add(r));
|
|
48
|
-
const a = [...t].map((r) => i(r)).concat(s.map(d));
|
|
49
|
-
Promise.allSettled(a);
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
u as D,
|
|
53
|
-
p as N,
|
|
54
|
-
l as _,
|
|
55
|
-
y as a,
|
|
56
|
-
i as b,
|
|
57
|
-
c,
|
|
58
|
-
f as d,
|
|
59
|
-
m as e,
|
|
60
|
-
d as f,
|
|
61
|
-
w as u
|
|
62
|
-
};
|