@trops/dash-core 0.1.474 → 0.1.475
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.esm.js +15 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -57729,6 +57729,16 @@ function NotificationsTab(_ref4) {
|
|
|
57729
57729
|
uuid: item.uuid || item.uuidString,
|
|
57730
57730
|
title: ((_item$userPrefs = item.userPrefs) === null || _item$userPrefs === void 0 ? void 0 : _item$userPrefs.title) || config.displayName || item.component,
|
|
57731
57731
|
"package": config["package"] || "Other",
|
|
57732
|
+
// Scoped component id (e.g. "trops.google.GoogleWidget")
|
|
57733
|
+
// — disambiguates rows when several widgets share a
|
|
57734
|
+
// title or display the same package label. Mirrors the
|
|
57735
|
+
// Listeners tab convention so the user only learns one
|
|
57736
|
+
// identification scheme.
|
|
57737
|
+
component: item.component,
|
|
57738
|
+
// Layout instance id — disambiguates two widgets of the
|
|
57739
|
+
// SAME component on the dashboard (e.g. two GitHub
|
|
57740
|
+
// widgets in the same workspace).
|
|
57741
|
+
itemId: item.id,
|
|
57732
57742
|
notifications: config.notifications
|
|
57733
57743
|
});
|
|
57734
57744
|
}
|
|
@@ -57754,7 +57764,7 @@ function NotificationsTab(_ref4) {
|
|
|
57754
57764
|
var q = searchQuery.trim().toLowerCase();
|
|
57755
57765
|
if (!q) return widgetInstances;
|
|
57756
57766
|
return widgetInstances.filter(function (wi) {
|
|
57757
|
-
var hay = [wi.title, wi["package"]].concat(_toConsumableArray(wi.notifications.map(function (n) {
|
|
57767
|
+
var hay = [wi.title, wi["package"], wi.component, wi.itemId != null ? "#".concat(wi.itemId) : ""].concat(_toConsumableArray(wi.notifications.map(function (n) {
|
|
57758
57768
|
return "".concat(n.key, " ").concat(n.displayName || "");
|
|
57759
57769
|
}))).join(" ").toLowerCase();
|
|
57760
57770
|
return hay.includes(q);
|
|
@@ -57851,8 +57861,11 @@ function NotificationsTab(_ref4) {
|
|
|
57851
57861
|
children: [/*#__PURE__*/jsx("span", {
|
|
57852
57862
|
className: "text-sm font-medium",
|
|
57853
57863
|
children: wi.title
|
|
57864
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
57865
|
+
className: "text-[10px] opacity-50 font-mono",
|
|
57866
|
+
children: [wi.component, wi.itemId != null ? " \xB7 #".concat(wi.itemId) : ""]
|
|
57854
57867
|
}), /*#__PURE__*/jsx("span", {
|
|
57855
|
-
className: "text-[10px] opacity-
|
|
57868
|
+
className: "text-[10px] opacity-40",
|
|
57856
57869
|
children: wi["package"]
|
|
57857
57870
|
})]
|
|
57858
57871
|
}), /*#__PURE__*/jsx("div", {
|