themed-markdown 0.1.80 → 0.1.81

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.mjs CHANGED
@@ -9266,7 +9266,8 @@ var SkillMetadataSection = ({
9266
9266
  fontSize: theme2.fontSizes[6],
9267
9267
  fontWeight: 700,
9268
9268
  margin: 0,
9269
- color: theme2.colors.text
9269
+ color: theme2.colors.text,
9270
+ fontFamily: theme2.fonts.heading
9270
9271
  }
9271
9272
  }, metadata.name), (metadata.metadata?.["last-updated"] || metadata.license) && /* @__PURE__ */ React21.createElement("div", {
9272
9273
  style: { display: "flex", flexDirection: "column", alignItems: "flex-end", gap: theme2.space[1], marginLeft: theme2.space[3], marginTop: theme2.space[1] }
@@ -9291,7 +9292,8 @@ var SkillMetadataSection = ({
9291
9292
  fontSize: theme2.fontSizes[3],
9292
9293
  color: theme2.colors.textSecondary,
9293
9294
  margin: 0,
9294
- lineHeight: 1.5
9295
+ lineHeight: 1.5,
9296
+ fontFamily: theme2.fonts.body
9295
9297
  }
9296
9298
  }, metadata.description));
9297
9299
  };
@@ -9301,7 +9303,8 @@ var SkillMarkdown = ({
9301
9303
  className = "",
9302
9304
  onParsed,
9303
9305
  onError,
9304
- showRawOnError = false
9306
+ showRawOnError = false,
9307
+ containerWidth
9305
9308
  }) => {
9306
9309
  const [parsed, setParsed] = React21.useState(null);
9307
9310
  const [error, setError] = React21.useState(null);
@@ -9343,7 +9346,8 @@ var SkillMarkdown = ({
9343
9346
  theme: theme2,
9344
9347
  slideIdPrefix: "skill-fallback",
9345
9348
  slideIndex: 0,
9346
- isVisible: true
9349
+ isVisible: true,
9350
+ containerWidth
9347
9351
  })));
9348
9352
  }
9349
9353
  return /* @__PURE__ */ React21.createElement("div", {
@@ -9428,7 +9432,8 @@ var SkillMarkdown = ({
9428
9432
  theme: theme2,
9429
9433
  slideIdPrefix: "skill-body",
9430
9434
  slideIndex: 0,
9431
- isVisible: true
9435
+ isVisible: true,
9436
+ containerWidth
9432
9437
  })), (parsed.metadata.compatibility || parsed.metadata["allowed-tools"] || parsed.metadata.metadata) && /* @__PURE__ */ React21.createElement("div", {
9433
9438
  style: {
9434
9439
  width: "300px",
@@ -2,9 +2,9 @@
2
2
  * SkillMarkdown component for rendering Agent Skills (SKILL.md files)
3
3
  * Parses frontmatter and renders skill metadata with markdown body
4
4
  */
5
- import React from 'react';
6
5
  import { Theme } from '@principal-ade/industry-theme';
7
6
  import { type ParsedSkill } from '@principal-ade/markdown-utils';
7
+ import React from 'react';
8
8
  export interface SkillMarkdownProps {
9
9
  /** Raw SKILL.md content with frontmatter */
10
10
  content: string;
@@ -18,6 +18,8 @@ export interface SkillMarkdownProps {
18
18
  onError?: (error: Error) => void;
19
19
  /** Show raw content on parse error instead of error message */
20
20
  showRawOnError?: boolean;
21
+ /** Container width to pass to IndustryMarkdownSlide (skips ResizeObserver if provided) */
22
+ containerWidth?: number;
21
23
  }
22
24
  /**
23
25
  * SkillMarkdown component
@@ -1 +1 @@
1
- {"version":3,"file":"SkillMarkdown.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/SkillMarkdown.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,+DAA+D;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAmGD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiStD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"SkillMarkdown.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/SkillMarkdown.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,+DAA+D;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0FAA0F;IAC1F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqGD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoStD,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "themed-markdown",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "Industry-themed markdown renderer with presentation capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",