@trops/dash-core 0.1.262 → 0.1.263

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/index.js CHANGED
@@ -45217,6 +45217,13 @@ var useInstalledWidgets = function useInstalledWidgets() {
45217
45217
  }(), [refresh]);
45218
45218
  React.useEffect(function () {
45219
45219
  refresh();
45220
+ var handleWidgetsUpdated = function handleWidgetsUpdated() {
45221
+ return refresh();
45222
+ };
45223
+ window.addEventListener("dash:widgets-updated", handleWidgetsUpdated);
45224
+ return function () {
45225
+ return window.removeEventListener("dash:widgets-updated", handleWidgetsUpdated);
45226
+ };
45220
45227
  }, [refresh]);
45221
45228
  return {
45222
45229
  widgets: widgets,
@@ -45727,12 +45734,18 @@ var WidgetsSection = function WidgetsSection(_ref) {
45727
45734
  },
45728
45735
  className: isSelected ? "bg-white/10 opacity-100" : "",
45729
45736
  children: /*#__PURE__*/jsxRuntime.jsxs("span", {
45730
- className: "flex items-center gap-2",
45731
- children: [widget.displayName || widget.name, widget.source === "builtin" && /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, {
45732
- text: "Built-in"
45733
- }), updates.has(widget.name) && /*#__PURE__*/jsxRuntime.jsx("span", {
45734
- className: "text-[10px] text-blue-400 font-medium",
45735
- children: "Update"
45737
+ className: "flex flex-col",
45738
+ children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
45739
+ className: "flex items-center gap-2",
45740
+ children: [widget.displayName || widget.name, widget.source === "builtin" && /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, {
45741
+ text: "Built-in"
45742
+ }), updates.has(widget.name) && /*#__PURE__*/jsxRuntime.jsx("span", {
45743
+ className: "text-[10px] text-blue-400 font-medium",
45744
+ children: "Update"
45745
+ })]
45746
+ }), widget.source === "installed" && widget.packageId && /*#__PURE__*/jsxRuntime.jsx("span", {
45747
+ className: "text-[10px] opacity-40 truncate",
45748
+ children: widget.packageId
45736
45749
  })]
45737
45750
  })
45738
45751
  }, widget.name);