@primer/brand-mcp 0.82.0 → 0.83.0-rc.0b4513cd

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.
Files changed (2) hide show
  1. package/dist/catalog.json +25 -25
  2. package/package.json +1 -1
package/dist/catalog.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "brandPackage": "@primer/react-brand",
3
- "generatedFromVersion": "0.82.0",
4
- "generatedAt": "2026-11-27T15:23:33.188Z",
3
+ "generatedFromVersion": "0.83.0-rc.0b4513cd",
4
+ "generatedAt": "2026-11-30T21:30:15.686Z",
5
5
  "components": [
6
6
  {
7
7
  "name": "Hero",
@@ -1790,33 +1790,32 @@
1790
1790
  "subcomponents": [
1791
1791
  "AnchorNav.Link",
1792
1792
  "AnchorNav.Action",
1793
- "AnchorNav.SecondaryAction",
1794
1793
  "AnchorNav.testIds"
1795
1794
  ],
1796
1795
  "props": [
1797
1796
  {
1798
1797
  "name": "children",
1799
1798
  "type": "React.ReactNode[]",
1800
- "description": "Accepts all of `AnchorNav.Item` and `AnchorNav.Action` child components.",
1799
+ "description": "Accepts up to nine `AnchorNav.Link` and one `AnchorNav.Action` child components.",
1801
1800
  "required": true
1802
1801
  },
1803
1802
  {
1804
- "name": "enableDefaultBgColor",
1803
+ "name": "hideUntilSticky",
1805
1804
  "type": "boolean",
1806
- "description": "Enable the idle state background color, which is transparent by default.",
1805
+ "description": "When true, the anchor nav will hide until it is sticky.",
1807
1806
  "required": false
1808
1807
  },
1809
1808
  {
1810
- "name": "hideUntilSticky",
1811
- "type": "boolean",
1812
- "description": "When true, the anchor nav will hide until it is sticky.",
1809
+ "name": "menuLabels",
1810
+ "type": "Partial<AnchorNavMenuLabels>",
1811
+ "description": "Overrides the default accessible labels. Use this to localize them.",
1813
1812
  "required": false
1814
1813
  }
1815
1814
  ],
1816
1815
  "examples": [
1817
1816
  {
1818
1817
  "title": "AnchorNav example",
1819
- "code": "<div style={{backgroundColor: 'var(--brand-color-canvas-default)'}}>\n <RedlineBackground height={75}></RedlineBackground>\n <AnchorNav>\n {data.map((link, index) => (\n <AnchorNav.Link href={link} key={index}>\n {link}\n </AnchorNav.Link>\n ))}\n <AnchorNav.Action size=\"medium\" href=\"#\">\n Primary action\n </AnchorNav.Action>\n <AnchorNav.SecondaryAction size=\"medium\" href=\"#\">\n Secondary action\n </AnchorNav.SecondaryAction>\n </AnchorNav>\n <Stack\n direction=\"vertical\"\n justifyContent=\"space-around\"\n gap=\"none\"\n style={{marginBottom: '100px'}}\n padding=\"none\"\n >\n {data.map(key => (\n <RedlineBackground key={key}>\n <Stack\n key={key}\n id={key}\n direction=\"vertical\"\n style={{\n padding: `${1000 / 2}px var(--base-size-24)`,\n }}\n >\n <Heading>First action as primary</Heading>\n <Text as=\"p\">\n AnchorNav is a component that allows users to navigate to different sections of a page.\n </Text>\n </Stack>\n </RedlineBackground>\n ))}\n </Stack>\n</div>",
1818
+ "code": "<AnchorNav.Link key={section} href={`#${section}`} target=\"_self\">\n {translate(section)}\n</AnchorNav.Link>",
1820
1819
  "source": "story"
1821
1820
  }
1822
1821
  ],
@@ -2558,7 +2557,13 @@
2558
2557
  "required": false
2559
2558
  }
2560
2559
  ],
2561
- "examples": [],
2560
+ "examples": [
2561
+ {
2562
+ "title": "Prose example",
2563
+ "code": "<ThemeProvider colorMode=\"dark\">\n <Box backgroundColor=\"default\">\n <Prose html={EditorialHtmlMarkup(t)} variant=\"editorial\" />\n </Box>\n</ThemeProvider>",
2564
+ "source": "story"
2565
+ }
2566
+ ],
2562
2567
  "description": "Use the prose component to apply Primer Brand styles to HTML markup.",
2563
2568
  "keywords": [
2564
2569
  "HTML",
@@ -7374,13 +7379,13 @@
7374
7379
  "group": "functional"
7375
7380
  },
7376
7381
  {
7377
- "name": "--brand-AnchorNav-link-underline-default",
7378
- "value": "var(--base-color-scale-gray-4)",
7382
+ "name": "--brand-AnchorNav-height",
7383
+ "value": "var(--base-size-60)",
7379
7384
  "group": "functional"
7380
7385
  },
7381
7386
  {
7382
- "name": "--brand-AnchorNav-link-underline-pressed",
7383
- "value": "var(--base-color-scale-black-0)",
7387
+ "name": "--brand-AnchorNav-link-underline-default",
7388
+ "value": "var(--base-color-scale-green-5)",
7384
7389
  "group": "functional"
7385
7390
  },
7386
7391
  {
@@ -9099,18 +9104,13 @@
9099
9104
  "group": "functional"
9100
9105
  },
9101
9106
  {
9102
- "name": "--brand-Prose-lineLength",
9103
- "value": "68ch",
9107
+ "name": "--brand-Prose-editorial-lineLength",
9108
+ "value": "62ch",
9104
9109
  "group": "functional"
9105
9110
  },
9106
9111
  {
9107
- "name": "--brand-Prose-unorderedList-imageUrl",
9108
- "value": "url(\"data:image/svg+xml",
9109
- "group": "functional"
9110
- },
9111
- {
9112
- "name": "--brand-Prose-code-bgColor",
9113
- "value": "var(--base-color-scale-indigo-0)",
9112
+ "name": "--brand-Prose-lineLength",
9113
+ "value": "68ch",
9114
9114
  "group": "functional"
9115
9115
  },
9116
9116
  {
@@ -9450,7 +9450,7 @@
9450
9450
  },
9451
9451
  {
9452
9452
  "name": "--brand-Tabs-item-underline-rest",
9453
- "value": "var(--base-color-scale-black-0)",
9453
+ "value": "var(--base-color-scale-green-5)",
9454
9454
  "group": "functional"
9455
9455
  },
9456
9456
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-mcp",
3
- "version": "0.82.0",
3
+ "version": "0.83.0-rc.0b4513cd",
4
4
  "description": "MCP (Model Context Protocol) server that helps AI agents use Primer Brand (@primer/react-brand) correctly when building GitHub marketing and landing pages.",
5
5
  "keywords": [
6
6
  "primer",