vuesp-components 5.0.0 → 5.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.0 — 2026-11-22
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Script editor suggestions for the common `fade()` and `http()` functions, so all devices get autocomplete and highlighting without duplicating them in every `suggestions.json`.
|
|
8
|
+
- TypeScript-like signatures in the suggestion `detail` line.
|
|
9
|
+
|
|
10
|
+
## 5.0.1 — 2026-11-21
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Dashboard cards now update when a referenced value (a port, a device field, etc.) appears after the first render. `vuesp-dashboard-core` path resolution no longer returns early through a non-reactive `hasOwnProperty` check for a missing key.
|
|
15
|
+
|
|
3
16
|
## 5.0.0 — 2026-11-21
|
|
4
17
|
|
|
5
18
|
### Breaking
|
|
@@ -5,7 +5,7 @@ import { f as $a, t as wa, g as Ca, u as tt, s as Sa, d as _a, m as Ta, c as za
|
|
|
5
5
|
import { e as St, f as Aa, g as Ea, o as Ba } from "../useDialog-Buvn63AR.js";
|
|
6
6
|
import { useForm as Va } from "../composables/index.es.js";
|
|
7
7
|
import { required as Ia, maxLen as La } from "../validate/index.es.js";
|
|
8
|
-
import { a as Ma } from "../paths-
|
|
8
|
+
import { a as Ma } from "../paths-D9y4c97_.js";
|
|
9
9
|
const Oa = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Qr = /* @__PURE__ */ M({
|
|
10
10
|
__name: "AppAside",
|
|
11
11
|
props: {
|
|
@@ -4492,6 +4492,8 @@ $v0=$v0+1;
|
|
|
4492
4492
|
wait(1s);
|
|
4493
4493
|
end;`, detail: "while:${$v0<2}; end;" },
|
|
4494
4494
|
{ label: "udp", type: "func", insert: "udp(${},'call(1)')", detail: "udp(id:number, text:string)" },
|
|
4495
|
+
{ label: "fade", type: "func", insert: "fade(${0}, ${1}, ${2})", detail: "fade(gpio:number, value:number, time:number) => boolean" },
|
|
4496
|
+
{ label: "http", type: "func", insert: "http('${0}', '${1}')", detail: "http(method:string, url:string, count?:number, num?:number, data?:number[]) => status:number" },
|
|
4495
4497
|
{ label: "on", type: "func", insert: `on('\${event}');
|
|
4496
4498
|
|
|
4497
4499
|
end;`, detail: "event(name: string)" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/script/editor/suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,mBAAmB,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/script/editor/suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,mBAAmB,EAAE,WAAW,EA6B5C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const o = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]), u = (t, r) => {
|
|
2
|
+
if (typeof t != "string" || t.length === 0)
|
|
3
|
+
return;
|
|
4
|
+
let e = r;
|
|
5
|
+
for (const n of t.split(".")) {
|
|
6
|
+
if (o.has(n) || e === null || typeof e != "object" || !(n in e) || !Object.prototype.hasOwnProperty.call(e, n))
|
|
7
|
+
return;
|
|
8
|
+
e = e[n];
|
|
9
|
+
}
|
|
10
|
+
return e;
|
|
11
|
+
}, a = (t, r) => t.args.map((e) => u(e, r));
|
|
12
|
+
export {
|
|
13
|
+
u as a,
|
|
14
|
+
a as g
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.1.0",
|
|
3
3
|
"name": "vuesp-components",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@vueuse/core": "^13.9.0",
|
|
96
96
|
"tslib": "^2.3.0",
|
|
97
|
-
"vuesp-dashboard-core": "^0.3.
|
|
97
|
+
"vuesp-dashboard-core": "^0.3.1",
|
|
98
98
|
"yace": "1.1.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
package/dist/paths-CbO4FuTv.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const o = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]), a = (e, r) => {
|
|
2
|
-
if (typeof e != "string" || e.length === 0)
|
|
3
|
-
return;
|
|
4
|
-
let t = r;
|
|
5
|
-
for (const n of e.split(".")) {
|
|
6
|
-
if (o.has(n) || t === null || typeof t != "object" || !Object.prototype.hasOwnProperty.call(t, n))
|
|
7
|
-
return;
|
|
8
|
-
t = t[n];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
}, s = (e, r) => e.args.map((t) => a(t, r));
|
|
12
|
-
export {
|
|
13
|
-
a,
|
|
14
|
-
s as g
|
|
15
|
-
};
|