@industry-theme/agent-panels 0.2.37 → 0.2.39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AgenticResourcesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgenticResourcesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgBpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmsB/D,CAAC"}
1
+ {"version":3,"file":"AgenticResourcesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgenticResourcesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgBpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAurB/D,CAAC"}
@@ -52285,8 +52285,9 @@ const AgenticResourcesPanel = ({
52285
52285
  const handleRefresh = async () => {
52286
52286
  setIsRefreshing(true);
52287
52287
  try {
52288
+ const minDelay = new Promise((resolve) => setTimeout(resolve, 600));
52288
52289
  if (mode === "agents") {
52289
- await Promise.all([refreshAgents(), refreshSubagents()]);
52290
+ await Promise.all([refreshAgents(), refreshSubagents(), minDelay]);
52290
52291
  } else {
52291
52292
  if (events) {
52292
52293
  events.emit({
@@ -52296,8 +52297,7 @@ const AgenticResourcesPanel = ({
52296
52297
  payload: {}
52297
52298
  });
52298
52299
  }
52299
- setTimeout(() => {
52300
- }, 800);
52300
+ await minDelay;
52301
52301
  }
52302
52302
  } finally {
52303
52303
  setIsRefreshing(false);
@@ -52395,21 +52395,8 @@ const AgenticResourcesPanel = ({
52395
52395
  }
52396
52396
  )
52397
52397
  ] }),
52398
- !isLoading && (mode === "agents" && allItems.length > 0 || mode === "skills" && skills.length > 0) && /* @__PURE__ */ jsx(
52399
- "span",
52400
- {
52401
- style: {
52402
- fontSize: theme2.fontSizes[1],
52403
- color: theme2.colors.textSecondary,
52404
- background: theme2.colors.backgroundSecondary,
52405
- padding: "4px 10px",
52406
- borderRadius: theme2.radii[1]
52407
- },
52408
- children: mode === "agents" ? `${filteredItems.length} ${filteredItems.length === 1 ? "item" : "items"}` : `${filteredSkills.length} ${filteredSkills.length === 1 ? "skill" : "skills"}`
52409
- }
52410
- ),
52411
- (mode === "agents" && allItems.length >= 5 || mode === "skills" && skills.length >= 5) && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px", flex: "1 1 200px", maxWidth: "400px" }, children: [
52412
- /* @__PURE__ */ jsxs(
52398
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px", flex: "1 1 200px", maxWidth: "400px", flexWrap: "nowrap" }, children: [
52399
+ (mode === "agents" && allItems.length >= 5 || mode === "skills" && skills.length >= 5) && /* @__PURE__ */ jsxs(
52413
52400
  "div",
52414
52401
  {
52415
52402
  style: {
@@ -52488,11 +52475,14 @@ const AgenticResourcesPanel = ({
52488
52475
  border: `1px solid ${theme2.colors.border}`,
52489
52476
  borderRadius: theme2.radii[1],
52490
52477
  padding: "8px",
52491
- cursor: isRefreshing ? "wait" : "pointer",
52478
+ cursor: "pointer",
52492
52479
  display: "flex",
52493
52480
  alignItems: "center",
52494
52481
  justifyContent: "center",
52495
- transition: "all 0.2s ease"
52482
+ transition: "all 0.2s ease",
52483
+ marginLeft: "auto",
52484
+ flexShrink: 0,
52485
+ opacity: isRefreshing ? 0.7 : 1
52496
52486
  },
52497
52487
  title: mode === "agents" ? "Refresh agents" : "Refresh skills",
52498
52488
  children: /* @__PURE__ */ jsx(