@trops/dash-core 0.1.262 → 0.1.264
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/electron/index.js +2 -0
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +19 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +60 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -45199,6 +45199,13 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
45199
45199
|
}(), [refresh]);
|
|
45200
45200
|
useEffect(function () {
|
|
45201
45201
|
refresh();
|
|
45202
|
+
var handleWidgetsUpdated = function handleWidgetsUpdated() {
|
|
45203
|
+
return refresh();
|
|
45204
|
+
};
|
|
45205
|
+
window.addEventListener("dash:widgets-updated", handleWidgetsUpdated);
|
|
45206
|
+
return function () {
|
|
45207
|
+
return window.removeEventListener("dash:widgets-updated", handleWidgetsUpdated);
|
|
45208
|
+
};
|
|
45202
45209
|
}, [refresh]);
|
|
45203
45210
|
return {
|
|
45204
45211
|
widgets: widgets,
|
|
@@ -45709,12 +45716,18 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
45709
45716
|
},
|
|
45710
45717
|
className: isSelected ? "bg-white/10 opacity-100" : "",
|
|
45711
45718
|
children: /*#__PURE__*/jsxs("span", {
|
|
45712
|
-
className: "flex
|
|
45713
|
-
children: [
|
|
45714
|
-
|
|
45715
|
-
|
|
45716
|
-
|
|
45717
|
-
|
|
45719
|
+
className: "flex flex-col",
|
|
45720
|
+
children: [/*#__PURE__*/jsxs("span", {
|
|
45721
|
+
className: "flex items-center gap-2",
|
|
45722
|
+
children: [widget.displayName || widget.name, widget.source === "builtin" && /*#__PURE__*/jsx(Tag3, {
|
|
45723
|
+
text: "Built-in"
|
|
45724
|
+
}), updates.has(widget.name) && /*#__PURE__*/jsx("span", {
|
|
45725
|
+
className: "text-[10px] text-blue-400 font-medium",
|
|
45726
|
+
children: "Update"
|
|
45727
|
+
})]
|
|
45728
|
+
}), widget.source === "installed" && widget.packageId && /*#__PURE__*/jsx("span", {
|
|
45729
|
+
className: "text-[10px] opacity-40 truncate",
|
|
45730
|
+
children: widget.packageId
|
|
45718
45731
|
})]
|
|
45719
45732
|
})
|
|
45720
45733
|
}, widget.name);
|