@industry-theme/agent-panels 0.1.0 → 0.1.2

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":"SkillDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD,OAAO,wBAAwB,CAAC;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;CAAG;AAErE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0O5D,CAAC"}
1
+ {"version":3,"file":"SkillDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/SkillDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD,OAAO,wBAAwB,CAAC;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;CAAG;AAErE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsP5D,CAAC"}
@@ -17,13 +17,6 @@ declare const meta: {
17
17
  };
18
18
  export default meta;
19
19
  type Story = StoryObj<typeof meta>;
20
- /**
21
- * Interactive workflow showing skill list and detail panels side by side.
22
- * Click a skill in the list to see its details.
23
- */
24
20
  export declare const SkillsBrowsing: Story;
25
- /**
26
- * Vertical layout variant showing list above detail
27
- */
28
21
  export declare const SkillsBrowsingVertical: Story;
29
22
  //# sourceMappingURL=SkillsLifecycle.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SkillsLifecycle.stories.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsLifecycle.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAY5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;CAYM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkLnC;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAiD5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAiDpC,CAAC"}
1
+ {"version":3,"file":"SkillsLifecycle.stories.d.ts","sourceRoot":"","sources":["../../src/panels/SkillsLifecycle.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAY5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;CAYM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkQnC,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAC;AAiFF,eAAO,MAAM,sBAAsB,EAAE,KAUpC,CAAC"}
@@ -47457,9 +47457,19 @@ const SkillDetailPanel = ({
47457
47457
  actions
47458
47458
  }) => {
47459
47459
  var _a, _b, _c, _d, _e2, _f;
47460
+ const { theme: theme2 } = useTheme();
47460
47461
  const { skills, isLoading, error } = useSkillsData({ context });
47461
47462
  const [selectedSkillId, setSelectedSkillId] = useState(null);
47462
47463
  const [skill, setSkill] = useState(null);
47464
+ const panelRef = useRef(null);
47465
+ gt(
47466
+ "skill-detail",
47467
+ events,
47468
+ () => {
47469
+ var _a2;
47470
+ return (_a2 = panelRef.current) == null ? void 0 : _a2.focus();
47471
+ }
47472
+ );
47463
47473
  useEffect(() => {
47464
47474
  const unsubscribe = events.on("skill:selected", (event) => {
47465
47475
  const payload = event.payload;
@@ -47486,9 +47496,9 @@ const SkillDetailPanel = ({
47486
47496
  justifyContent: "center",
47487
47497
  height: "100%",
47488
47498
  padding: "2rem",
47489
- backgroundColor: theme.colors.background,
47490
- color: theme.colors.error,
47491
- fontFamily: theme.fonts.body
47499
+ backgroundColor: theme2.colors.background,
47500
+ color: theme2.colors.error,
47501
+ fontFamily: theme2.fonts.body
47492
47502
  },
47493
47503
  children: /* @__PURE__ */ jsxs("div", { style: { textAlign: "center" }, children: [
47494
47504
  "Error loading skills: ",
@@ -47506,9 +47516,9 @@ const SkillDetailPanel = ({
47506
47516
  alignItems: "center",
47507
47517
  justifyContent: "center",
47508
47518
  height: "100%",
47509
- backgroundColor: theme.colors.background,
47510
- color: theme.colors.text,
47511
- fontFamily: theme.fonts.body
47519
+ backgroundColor: theme2.colors.background,
47520
+ color: theme2.colors.text,
47521
+ fontFamily: theme2.fonts.body
47512
47522
  },
47513
47523
  children: "Loading skills..."
47514
47524
  }
@@ -47525,9 +47535,9 @@ const SkillDetailPanel = ({
47525
47535
  justifyContent: "center",
47526
47536
  height: "100%",
47527
47537
  padding: "2rem",
47528
- backgroundColor: theme.colors.background,
47529
- color: theme.colors.textSecondary,
47530
- fontFamily: theme.fonts.body,
47538
+ backgroundColor: theme2.colors.background,
47539
+ color: theme2.colors.textSecondary,
47540
+ fontFamily: theme2.fonts.body,
47531
47541
  textAlign: "center"
47532
47542
  },
47533
47543
  children: [
@@ -47536,10 +47546,10 @@ const SkillDetailPanel = ({
47536
47546
  "h2",
47537
47547
  {
47538
47548
  style: {
47539
- color: theme.colors.text,
47540
- fontSize: theme.fontSizes[4],
47541
- fontFamily: theme.fonts.heading,
47542
- fontWeight: theme.fontWeights.heading,
47549
+ color: theme2.colors.text,
47550
+ fontSize: theme2.fontSizes[4],
47551
+ fontFamily: theme2.fonts.heading,
47552
+ fontWeight: theme2.fontWeights.heading,
47543
47553
  marginBottom: "0.5rem"
47544
47554
  },
47545
47555
  children: "No Skill Selected"
@@ -47560,11 +47570,14 @@ const SkillDetailPanel = ({
47560
47570
  return /* @__PURE__ */ jsx(
47561
47571
  "div",
47562
47572
  {
47573
+ ref: panelRef,
47574
+ tabIndex: -1,
47563
47575
  style: {
47564
47576
  height: "100%",
47565
- backgroundColor: theme.colors.background,
47577
+ backgroundColor: theme2.colors.background,
47566
47578
  display: "flex",
47567
- flexDirection: "column"
47579
+ flexDirection: "column",
47580
+ outline: "none"
47568
47581
  },
47569
47582
  children: skill.content ? /* @__PURE__ */ jsxs(Fragment, { children: [
47570
47583
  hasStructure && /* @__PURE__ */ jsxs(
@@ -47572,20 +47585,20 @@ const SkillDetailPanel = ({
47572
47585
  {
47573
47586
  style: {
47574
47587
  padding: "1rem",
47575
- borderBottom: `1px solid ${theme.colors.border}`,
47588
+ borderBottom: `1px solid ${theme2.colors.border}`,
47576
47589
  display: "flex",
47577
47590
  gap: "0.5rem",
47578
47591
  flexWrap: "wrap",
47579
- backgroundColor: theme.colors.backgroundSecondary
47592
+ backgroundColor: theme2.colors.backgroundSecondary
47580
47593
  },
47581
47594
  children: [
47582
47595
  /* @__PURE__ */ jsx(
47583
47596
  "div",
47584
47597
  {
47585
47598
  style: {
47586
- fontSize: theme.fontSizes[1],
47587
- color: theme.colors.textSecondary,
47588
- fontFamily: theme.fonts.body,
47599
+ fontSize: theme2.fontSizes[1],
47600
+ color: theme2.colors.textSecondary,
47601
+ fontFamily: theme2.fonts.body,
47589
47602
  marginRight: "0.5rem",
47590
47603
  display: "flex",
47591
47604
  alignItems: "center"
@@ -47599,10 +47612,10 @@ const SkillDetailPanel = ({
47599
47612
  style: {
47600
47613
  padding: "0.25rem 0.75rem",
47601
47614
  borderRadius: "12px",
47602
- backgroundColor: theme.colors.primary,
47603
- color: theme.colors.background,
47604
- fontSize: theme.fontSizes[0],
47605
- fontFamily: theme.fonts.body,
47615
+ backgroundColor: theme2.colors.primary,
47616
+ color: theme2.colors.background,
47617
+ fontSize: theme2.fontSizes[0],
47618
+ fontFamily: theme2.fonts.body,
47606
47619
  fontWeight: 500,
47607
47620
  display: "flex",
47608
47621
  alignItems: "center",
@@ -47625,10 +47638,10 @@ const SkillDetailPanel = ({
47625
47638
  style: {
47626
47639
  padding: "0.25rem 0.75rem",
47627
47640
  borderRadius: "12px",
47628
- backgroundColor: theme.colors.secondary,
47629
- color: theme.colors.background,
47630
- fontSize: theme.fontSizes[0],
47631
- fontFamily: theme.fonts.body,
47641
+ backgroundColor: theme2.colors.secondary,
47642
+ color: theme2.colors.background,
47643
+ fontSize: theme2.fontSizes[0],
47644
+ fontFamily: theme2.fonts.body,
47632
47645
  fontWeight: 500,
47633
47646
  display: "flex",
47634
47647
  alignItems: "center",
@@ -47651,10 +47664,10 @@ const SkillDetailPanel = ({
47651
47664
  style: {
47652
47665
  padding: "0.25rem 0.75rem",
47653
47666
  borderRadius: "12px",
47654
- backgroundColor: theme.colors.accent,
47655
- color: theme.colors.background,
47656
- fontSize: theme.fontSizes[0],
47657
- fontFamily: theme.fonts.body,
47667
+ backgroundColor: theme2.colors.accent,
47668
+ color: theme2.colors.background,
47669
+ fontSize: theme2.fontSizes[0],
47670
+ fontFamily: theme2.fonts.body,
47658
47671
  fontWeight: 500,
47659
47672
  display: "flex",
47660
47673
  alignItems: "center",
@@ -47678,7 +47691,7 @@ const SkillDetailPanel = ({
47678
47691
  SkillMarkdown,
47679
47692
  {
47680
47693
  content: skill.content,
47681
- theme,
47694
+ theme: theme2,
47682
47695
  onParsed: handleParsed,
47683
47696
  onError: handleError,
47684
47697
  showRawOnError: true
@@ -47692,8 +47705,8 @@ const SkillDetailPanel = ({
47692
47705
  alignItems: "center",
47693
47706
  justifyContent: "center",
47694
47707
  height: "100%",
47695
- color: theme.colors.textSecondary,
47696
- fontFamily: theme.fonts.body
47708
+ color: theme2.colors.textSecondary,
47709
+ fontFamily: theme2.fonts.body
47697
47710
  },
47698
47711
  children: /* @__PURE__ */ jsx("p", { children: "No content available for this skill" })
47699
47712
  }