@arbocollab/arbo-plugin-item-table 1.1.43 → 1.1.44
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 +11 -0
- package/lib/es/index.es.js +16 -11
- package/lib/umd/index.umd.js +26 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## [1.1.44] - 2026-03-16
|
|
2
3
|
|
|
4
|
+
### 🐛 Bug Fixes
|
|
5
|
+
|
|
6
|
+
- **Null safety in terminology retrieval:** Fixed a crash when `ws.terminology` is missing from session storage. Both `getTerminology` in `item-table.vue` and `helpert.ts` now use optional chaining (`data?.find(...)`) before calling `.find()`, preventing a runtime error when data is null.
|
|
7
|
+
|
|
8
|
+
### 🔧 Improvements
|
|
9
|
+
|
|
10
|
+
- **handleOpen logic fix in useSceneAction:** Refactored the `handleOpen` function in `useSceneAction.ts` to correctly handle the `scene_hub` link type:
|
|
11
|
+
- Added early return statements after each branch to prevent fall-through that previously caused double navigation or double `window.open` calls.
|
|
12
|
+
- Removed the redundant `swicther` alias variable.
|
|
13
|
+
- Removed the unnecessary `e instanceof MouseEvent` check (always true given the typed parameter).
|
|
3
14
|
## [1.1.43] - 2026-03-13
|
|
4
15
|
|
|
5
16
|
### 🚀 Features & Enhancements
|
package/lib/es/index.es.js
CHANGED
|
@@ -19659,8 +19659,8 @@ const zO = (e) => {
|
|
|
19659
19659
|
return !1;
|
|
19660
19660
|
}, z7 = (e, t) => {
|
|
19661
19661
|
var i;
|
|
19662
|
-
const n = Sn.getInstance().getItem("ws.terminology");
|
|
19663
|
-
return ` ${((i =
|
|
19662
|
+
const n = Sn.getInstance().getItem("ws.terminology"), o = n ? JSON.parse(n) : null;
|
|
19663
|
+
return ` ${((i = o == null ? void 0 : o.find((r) => r.code === "scene")) == null ? void 0 : i.name) || "Scene"} ${t}`.trim();
|
|
19664
19664
|
};
|
|
19665
19665
|
/*! js-cookie v3.0.5 | MIT */
|
|
19666
19666
|
function ng(e) {
|
|
@@ -24725,12 +24725,14 @@ const cy = /* @__PURE__ */ Su("permissionStore", () => {
|
|
|
24725
24725
|
update: Go({ type: "update", config: r.value }).url,
|
|
24726
24726
|
scene_hub: Go({ type: "scene_hub", config: r.value }).url
|
|
24727
24727
|
})), u = (J, Y) => {
|
|
24728
|
-
const ie = J
|
|
24729
|
-
if (ne)
|
|
24730
|
-
if (
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24728
|
+
const ie = J.metaKey || J.ctrlKey, ne = l.value[Y] || "";
|
|
24729
|
+
if (ne) {
|
|
24730
|
+
if (Y === "scene_hub") {
|
|
24731
|
+
if (ie) {
|
|
24732
|
+
window.open(ne, "_blank");
|
|
24733
|
+
return;
|
|
24734
|
+
}
|
|
24735
|
+
if (!o) {
|
|
24734
24736
|
console.error("Switch instance not found.", {
|
|
24735
24737
|
openSceneHub: o,
|
|
24736
24738
|
windowFunc: globalThis.window.$switchInstance
|
|
@@ -24738,7 +24740,10 @@ const cy = /* @__PURE__ */ Su("permissionStore", () => {
|
|
|
24738
24740
|
return;
|
|
24739
24741
|
}
|
|
24740
24742
|
o(r.value.scene_id || "");
|
|
24743
|
+
return;
|
|
24741
24744
|
}
|
|
24745
|
+
ie ? window.open(ne, "_blank") : window.location.href = ne;
|
|
24746
|
+
}
|
|
24742
24747
|
}, c = async (J, Y) => {
|
|
24743
24748
|
var ie;
|
|
24744
24749
|
try {
|
|
@@ -86015,8 +86020,8 @@ const rRe = {
|
|
|
86015
86020
|
A.value = Oe || [], ie({}, !0);
|
|
86016
86021
|
}, Iu = K(() => {
|
|
86017
86022
|
var qt;
|
|
86018
|
-
const Oe = Sn.getInstance().getItem("ws.terminology");
|
|
86019
|
-
return `New ${((qt =
|
|
86023
|
+
const Oe = Sn.getInstance().getItem("ws.terminology"), Ke = Oe ? JSON.parse(Oe) : null;
|
|
86024
|
+
return `New ${((qt = Ke == null ? void 0 : Ke.find((Yo) => Yo.code === "scene")) == null ? void 0 : qt.name) || "Scene"}`;
|
|
86020
86025
|
});
|
|
86021
86026
|
return (Oe, Ke) => {
|
|
86022
86027
|
const tn = Os("focusable");
|
|
@@ -86211,7 +86216,7 @@ const rRe = {
|
|
|
86211
86216
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
86212
86217
|
}, FRe = {
|
|
86213
86218
|
$style: xRe
|
|
86214
|
-
}, IRe = /* @__PURE__ */ _t(SRe, [["__cssModules", FRe]]), MB = "1.1.
|
|
86219
|
+
}, IRe = /* @__PURE__ */ _t(SRe, [["__cssModules", FRe]]), MB = "1.1.44", PRe = { key: 0 }, ARe = /* @__PURE__ */ pt({
|
|
86215
86220
|
__name: "app",
|
|
86216
86221
|
setup(e) {
|
|
86217
86222
|
const t = K(() => n.id.length === 0 || n.workspaceId.length === 0), n = si({
|