@redocly/theme 0.70.0-next.7 → 0.70.0-next.8

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 (71) hide show
  1. package/lib/components/Buttons/ConnectMCPButton.js +11 -1
  2. package/lib/components/Buttons/variables.d.ts +1 -0
  3. package/lib/components/Buttons/variables.js +4 -1
  4. package/lib/components/Catalog/Catalog.js +2 -2
  5. package/lib/components/JsonViewer/Helpers.js +3 -3
  6. package/lib/components/MCP/McpConnectionTabs.js +9 -2
  7. package/lib/components/Search/SearchItem.js +1 -1
  8. package/lib/components/Search/SearchTrigger.js +33 -8
  9. package/lib/components/Search/variables.js +2 -0
  10. package/lib/core/constants/mcp.d.ts +2 -2
  11. package/lib/core/constants/mcp.js +1 -1
  12. package/lib/core/hooks/code-walkthrough/use-code-panel.d.ts +1 -1
  13. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.d.ts +1 -1
  14. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.js +1 -1
  15. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +1 -1
  16. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +1 -2
  17. package/lib/core/hooks/code-walkthrough/use-renderable-files.d.ts +1 -1
  18. package/lib/core/hooks/use-connect-mcp-button.js +1 -0
  19. package/lib/core/hooks/use-page-actions.d.ts +1 -1
  20. package/lib/core/hooks/use-page-actions.js +6 -0
  21. package/lib/core/styles/global.js +1 -0
  22. package/lib/core/types/code-walkthrough.d.ts +84 -0
  23. package/lib/core/types/hooks.d.ts +1 -1
  24. package/lib/core/types/l10n.d.ts +1 -1
  25. package/lib/core/types/mcp.d.ts +1 -1
  26. package/lib/core/utils/download-code-walkthrough.d.ts +1 -1
  27. package/lib/core/utils/get-code-walkthrough-file-text.d.ts +1 -1
  28. package/lib/core/utils/match-code-walkthrough-conditions.d.ts +1 -1
  29. package/lib/core/utils/mcp.js +7 -2
  30. package/lib/markdoc/components/CodeWalkthrough/CodeFilters.d.ts +1 -1
  31. package/lib/markdoc/components/CodeWalkthrough/CodePanel.d.ts +1 -1
  32. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.d.ts +1 -1
  33. package/lib/markdoc/components/CodeWalkthrough/CodePanelToolbar.d.ts +1 -1
  34. package/lib/markdoc/components/CodeWalkthrough/CodeStep.d.ts +1 -1
  35. package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.d.ts +1 -1
  36. package/lib/markdoc/components/Tabs/TabList.js +8 -6
  37. package/lib/markdoc/tags/code-walkthrough.d.ts +1 -1
  38. package/package.json +3 -3
  39. package/src/components/Buttons/ConnectMCPButton.tsx +13 -2
  40. package/src/components/Buttons/variables.ts +4 -0
  41. package/src/components/Catalog/Catalog.tsx +5 -3
  42. package/src/components/JsonViewer/Helpers.tsx +5 -3
  43. package/src/components/MCP/McpConnectionTabs.tsx +22 -5
  44. package/src/components/Search/SearchItem.tsx +3 -1
  45. package/src/components/Search/SearchTrigger.tsx +42 -7
  46. package/src/components/Search/variables.ts +2 -0
  47. package/src/core/constants/mcp.ts +1 -1
  48. package/src/core/hooks/code-walkthrough/use-code-panel.ts +1 -1
  49. package/src/core/hooks/code-walkthrough/use-code-walkthrough-controls.ts +2 -2
  50. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +1 -1
  51. package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +3 -3
  52. package/src/core/hooks/code-walkthrough/use-renderable-files.ts +1 -1
  53. package/src/core/hooks/use-connect-mcp-button.ts +7 -1
  54. package/src/core/hooks/use-page-actions.ts +17 -0
  55. package/src/core/styles/global.ts +2 -1
  56. package/src/core/types/code-walkthrough.ts +103 -0
  57. package/src/core/types/hooks.ts +1 -0
  58. package/src/core/types/l10n.ts +3 -0
  59. package/src/core/types/mcp.ts +1 -1
  60. package/src/core/utils/download-code-walkthrough.ts +1 -1
  61. package/src/core/utils/get-code-walkthrough-file-text.ts +1 -1
  62. package/src/core/utils/match-code-walkthrough-conditions.ts +1 -1
  63. package/src/core/utils/mcp.ts +8 -2
  64. package/src/markdoc/components/CodeWalkthrough/CodeFilters.tsx +1 -1
  65. package/src/markdoc/components/CodeWalkthrough/CodePanel.tsx +1 -1
  66. package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +1 -1
  67. package/src/markdoc/components/CodeWalkthrough/CodePanelToolbar.tsx +1 -1
  68. package/src/markdoc/components/CodeWalkthrough/CodeStep.tsx +1 -1
  69. package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +1 -1
  70. package/src/markdoc/components/Tabs/TabList.tsx +9 -12
  71. package/src/markdoc/tags/code-walkthrough.ts +1 -1
@@ -34,6 +34,13 @@ const MENU_OPTIONS = {
34
34
  descriptionTranslationKey: 'page.actions.connectMcp.vscodeDescription',
35
35
  descriptionDefault: 'Install MCP server on VS Code',
36
36
  },
37
+ claude: {
38
+ icon: ClaudeIcon_1.ClaudeIcon,
39
+ titleTranslationKey: 'page.actions.connectMcp.claude',
40
+ titleDefault: 'Connect to Claude',
41
+ descriptionTranslationKey: 'page.actions.connectMcp.claudeDescription',
42
+ descriptionDefault: 'Add MCP server to your Claude account',
43
+ },
37
44
  'claude-code': {
38
45
  icon: ClaudeIcon_1.ClaudeIcon,
39
46
  titleTranslationKey: 'page.actions.connectMcp.claudeCode',
@@ -70,7 +77,7 @@ function ConnectMCPButton({ placement = 'bottom', alignment = 'end', options = c
70
77
  const PrimaryIcon = primaryOption.icon;
71
78
  const showPrimaryCopied = copiedOption === primaryOption.key;
72
79
  return (react_1.default.createElement(ConnectMCPButtonWrapper, { "data-component-name": "Buttons/ConnectMCPButton" }, react_1.default.createElement(SplitButton_1.SplitButton, { variant: "secondary", placement: placement, alignment: alignment, closeOnSelect: false, toggleAriaLabel: translate('page.actions.connectMcp.moreOptions', 'More options'), button: react_1.default.createElement(Button_1.Button, { variant: "secondary", icon: showPrimaryCopied ? (react_1.default.createElement(CheckmarkFilledIcon_1.CheckmarkFilledIcon, { color: "var(--color-success-base)" })) : (react_1.default.createElement(PrimaryIcon, null)), onClick: () => handleAction(primaryOption.key) }, translate(primaryOption.titleTranslationKey, primaryOption.titleDefault)) }, dropdownOptions.length > 0
73
- ? ({ close }) => (react_1.default.createElement(DropdownMenu_1.DropdownMenu, null, dropdownOptions.map((option) => {
80
+ ? ({ close }) => (react_1.default.createElement(StyledDropdownMenu, null, dropdownOptions.map((option) => {
74
81
  const Icon = option.icon;
75
82
  const showCheckmark = copiedOption === option.key;
76
83
  return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { key: option.key, onAction: () => {
@@ -82,6 +89,9 @@ function ConnectMCPButton({ placement = 'bottom', alignment = 'end', options = c
82
89
  })))
83
90
  : null)));
84
91
  }
92
+ const StyledDropdownMenu = (0, styled_components_1.default)(DropdownMenu_1.DropdownMenu) `
93
+ --dropdown-menu-max-height: var(--connect-mcp-button-dropdown-max-height);
94
+ `;
85
95
  const ConnectMCPButtonWrapper = styled_components_1.default.div `
86
96
  display: inline-block;
87
97
  position: relative;
@@ -1 +1,2 @@
1
1
  export declare const aiAssistantButton: import("styled-components").RuleSet<object>;
2
+ export declare const connectMcpButton: import("styled-components").RuleSet<object>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.aiAssistantButton = void 0;
3
+ exports.connectMcpButton = exports.aiAssistantButton = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  /* eslint-disable theme/no-raw-colors-in-styles */
6
6
  exports.aiAssistantButton = (0, styled_components_1.css) `
@@ -52,4 +52,7 @@ exports.aiAssistantButton = (0, styled_components_1.css) `
52
52
  // @tokens End
53
53
  `;
54
54
  /* eslint-enable theme/no-raw-colors-in-styles */
55
+ exports.connectMcpButton = (0, styled_components_1.css) `
56
+ --connect-mcp-button-dropdown-max-height: fit-content;
57
+ `;
55
58
  //# sourceMappingURL=variables.js.map
@@ -94,9 +94,9 @@ function Catalog(props) {
94
94
  react_1.default.createElement(CatalogPageContentWrapper, null,
95
95
  react_1.default.createElement(CatalogTitleWrapper, null,
96
96
  react_1.default.createElement(CatalogTitle, { "data-translation-key": catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.titleTranslationKey },
97
- (catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.titleTranslationKey)
97
+ react_1.default.createElement("span", null, (catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.titleTranslationKey)
98
98
  ? translate(catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.titleTranslationKey)
99
- : catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.slug,
99
+ : catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.slug),
100
100
  ' '),
101
101
  react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, entitiesCounter)),
102
102
  react_1.default.createElement(CatalogDescription, { "data-translation-key": catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.descriptionTranslationKey }, translate(catalogConfig === null || catalogConfig === void 0 ? void 0 : catalogConfig.descriptionTranslationKey)),
@@ -43,10 +43,10 @@ function JsonValue(props) {
43
43
  const valueElement = Array.isArray(value)
44
44
  ? value.map((item, index) => (react_1.default.createElement(react_1.default.Fragment, { key: index },
45
45
  react_1.default.createElement(JsonValue, { value: item, level: level + 1, path: `${path}/${index}`, standalone: true, fold: fold, maxStringLength: maxStringLength }),
46
- index < value.length - 1 ? ',\n' : null)))
46
+ index < value.length - 1 ? react_1.default.createElement("span", null, ',\n') : null)))
47
47
  : keys.map((key, index) => (react_1.default.createElement(react_1.default.Fragment, { key: key },
48
48
  react_1.default.createElement(JsonKeyValue, { name: key, value: value[key], level: level + 1, path: `${path}/${key}`, fold: fold, maxStringLength: maxStringLength }),
49
- index < keys.length - 1 ? ',\n' : null)));
49
+ index < keys.length - 1 ? react_1.default.createElement("span", null, ',\n') : null)));
50
50
  const openingPunctuationElement = standalone ? (react_1.default.createElement(react_1.default.Fragment, null,
51
51
  indent,
52
52
  level > 0 ? (react_1.default.createElement(ExpandIcon, { onClick: () => fold.setExpanded(path, !isExpanded), isExpanded: isExpanded })) : null,
@@ -79,7 +79,7 @@ function JsonKeyValue(props) {
79
79
  indent,
80
80
  isFoldable(value) ? (react_1.default.createElement(ExpandIcon, { onClick: () => fold.setExpanded(path, !isExpanded), isExpanded: isExpanded })) : null,
81
81
  react_1.default.createElement("span", { className: "property token string" }, `"${name}"`),
82
- ": ",
82
+ react_1.default.createElement("span", null, ': '),
83
83
  valueElement));
84
84
  }
85
85
  function TruncatedStringValue({ value, maxStringLength, }) {
@@ -41,6 +41,7 @@ const react_1 = __importStar(require("react"));
41
41
  const styled_components_1 = __importDefault(require("styled-components"));
42
42
  const hooks_1 = require("../../core/hooks");
43
43
  const utils_1 = require("../../core/utils");
44
+ const Button_1 = require("../../components/Button/Button");
44
45
  const CodeBlock_1 = require("../../components/CodeBlock/CodeBlock");
45
46
  const ClaudeIcon_1 = require("../../icons/ClaudeIcon/ClaudeIcon");
46
47
  const ChatGptIcon_1 = require("../../icons/ChatGptIcon/ChatGptIcon");
@@ -111,9 +112,11 @@ function renderTabContent(option, connection, translate, snippetHeader) {
111
112
  react_1.default.createElement(CodeBlock_1.CodeBlock, { lang: "shell", source: (0, utils_1.generateClaudeCodeCommand)(connection), header: snippetHeader(option, 'claude-code'), wrapContents: true }))),
112
113
  },
113
114
  {
114
- headline: translate('page.mcpNotAllowed.snippets.claudeDesktop.headline', 'Claude Desktop'),
115
+ headline: translate('page.mcpNotAllowed.snippets.claudeDesktop.headline', 'Claude app'),
115
116
  content: (react_1.default.createElement(react_1.default.Fragment, null,
116
- react_1.default.createElement(TabHint, null, translate('page.mcpNotAllowed.snippets.claudeDesktop.instruction', 'Open Customize → Connectors → Add custom connector and paste this server URL:')),
117
+ react_1.default.createElement(TabHint, null, translate('page.mcpNotAllowed.snippets.claudeDesktop.accountHint', 'Claude adds the connector to your account and syncs it between Claude on the web and Claude Desktop.')),
118
+ react_1.default.createElement(ConnectButton, { variant: "secondary", icon: react_1.default.createElement(ClaudeIcon_1.ClaudeIcon, null), onClick: () => window.open((0, utils_1.generateMCPDeepLink)('claude', connection), '_blank') }, translate('page.actions.connectMcp.claude', 'Connect to Claude')),
119
+ react_1.default.createElement(TabHint, null, translate('page.mcpNotAllowed.snippets.claudeDesktop.instruction', 'Or open Customize → Connectors → Add custom connector and paste this server URL:')),
117
120
  react_1.default.createElement(CodeBlock_1.CodeBlock, { lang: "text", source: connection.url, header: snippetHeader(option, 'claude-desktop') }))),
118
121
  },
119
122
  ]);
@@ -154,6 +157,10 @@ const McpConnectionTabsWrapper = styled_components_1.default.div `
154
157
  padding-right: var(--page-mcp-405-snippets-code-padding-right);
155
158
  }
156
159
  `;
160
+ const ConnectButton = (0, styled_components_1.default)(Button_1.Button) `
161
+ align-self: flex-start;
162
+ margin-bottom: var(--spacing-sm);
163
+ `;
157
164
  const TabHint = styled_components_1.default.p `
158
165
  margin: 0 0 var(--spacing-xs);
159
166
  color: var(--page-mcp-405-snippets-hint-text-color);
@@ -76,7 +76,7 @@ function SearchItem({ onClick, item, className, product, innerRef, }) {
76
76
  product.name)),
77
77
  document.httpMethod ? (react_1.default.createElement(SearchItemOperation, null,
78
78
  react_1.default.createElement(SearchItemOperationTag, { color: httpColor }, document.httpMethod.toUpperCase()),
79
- highlight.httpPath ? (0, SearchHighlight_1.searchHighlight)(highlight.httpPath) : document.httpPath)) : null,
79
+ react_1.default.createElement("span", null, highlight.httpPath ? (0, SearchHighlight_1.searchHighlight)(highlight.httpPath) : document.httpPath))) : null,
80
80
  react_1.default.createElement(SearchItemTitleWrapper, null,
81
81
  react_1.default.createElement(SearchItemTitle, null, highlight.title ? (0, SearchHighlight_1.searchHighlight)(highlight.title) : document.title),
82
82
  document.deprecated ? (react_1.default.createElement(SearchItemBadge, { deprecated: true }, translate('search.searchItem.deprecated', 'Deprecated'))) : null,
@@ -32,18 +32,17 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.SearchTrigger = SearchTrigger;
40
37
  const React = __importStar(require("react"));
41
- const styled_components_1 = __importDefault(require("styled-components"));
38
+ const styled_components_1 = __importStar(require("styled-components"));
42
39
  const hooks_1 = require("../../core/hooks");
43
40
  const Button_1 = require("../../components/Button/Button");
44
41
  const SearchIcon_1 = require("../../icons/SearchIcon/SearchIcon");
45
42
  const utils_1 = require("../../core/utils");
46
43
  const constants_1 = require("../../core/constants");
44
+ const MAC_SHORTCUT_LABEL = '⌘K';
45
+ const SHORTCUT_LABEL = 'Ctrl+K';
47
46
  function SearchTrigger({ onClick, className }) {
48
47
  var _a;
49
48
  var _b;
@@ -61,8 +60,8 @@ function SearchTrigger({ onClick, className }) {
61
60
  }
62
61
  }
63
62
  mainShortcutKey = mainShortcutKey === null || mainShortcutKey === void 0 ? void 0 : mainShortcutKey.toUpperCase();
64
- // A page can be cached and served to every platform, so the server renders a hidden
65
- // placeholder and the browser picks the label after hydration.
63
+ // A page can be cached and served to every platform, so the server renders an empty
64
+ // slot and the browser picks the label after hydration.
66
65
  const [isMac, setIsMac] = React.useState(undefined);
67
66
  React.useEffect(() => setIsMac((0, utils_1.getUserAgent)().includes('Mac')), []);
68
67
  return (React.createElement(SearchTriggerWrapper, { onClick: onClick, className: className, "data-component-name": "Search/SearchTrigger" },
@@ -70,7 +69,7 @@ function SearchTrigger({ onClick, className }) {
70
69
  React.createElement(SearchTriggerInput, { "data-testid": "search-trigger-input", "data-translation-key": "search.navbar.label" },
71
70
  React.createElement(SearchIcon_1.SearchIcon, null),
72
71
  translate('search.navbar.label', 'Search'),
73
- mainShortcutKey === constants_1.DEFAULT_KEYBOARD_SHORTCUTS ? (React.createElement(SearchTriggerShortcut, { $isPending: isMac === undefined }, isMac ? '⌘K' : 'Ctrl+K')) : (React.createElement("span", null, mainShortcutKey)))));
72
+ mainShortcutKey === constants_1.DEFAULT_KEYBOARD_SHORTCUTS ? (React.createElement(SearchTriggerShortcut, null, isMac === undefined ? null : (React.createElement(SearchTriggerShortcutLabel, null, isMac ? MAC_SHORTCUT_LABEL : SHORTCUT_LABEL)))) : (React.createElement("span", null, mainShortcutKey)))));
74
73
  }
75
74
  const SearchTriggerWrapper = styled_components_1.default.div `
76
75
  color: var(--search-trigger-color);
@@ -88,8 +87,34 @@ const SearchTriggerButton = (0, styled_components_1.default)(Button_1.Button) `
88
87
  display: none;
89
88
  }
90
89
  `;
90
+ // The hidden copy of the wider label keeps the slot the same width before and after
91
+ // hydration on every platform, so the trigger does not shift when the label appears.
91
92
  const SearchTriggerShortcut = styled_components_1.default.span `
92
- visibility: ${({ $isPending }) => ($isPending ? 'hidden' : 'visible')};
93
+ display: inline-flex;
94
+ flex-direction: column;
95
+ align-items: flex-end;
96
+
97
+ &::after {
98
+ content: '${SHORTCUT_LABEL}';
99
+ height: 0;
100
+ overflow: hidden;
101
+ visibility: hidden;
102
+ }
103
+ `;
104
+ const shortcutAppear = (0, styled_components_1.keyframes) `
105
+ from {
106
+ opacity: 0;
107
+ filter: blur(2px);
108
+ transform: translateY(3px);
109
+ }
110
+ `;
111
+ const SearchTriggerShortcutLabel = styled_components_1.default.span `
112
+ animation: ${shortcutAppear} var(--search-trigger-shortcut-appear-duration)
113
+ var(--search-trigger-shortcut-appear-easing);
114
+
115
+ @media (prefers-reduced-motion: reduce) {
116
+ animation: none;
117
+ }
93
118
  `;
94
119
  const SearchTriggerInput = styled_components_1.default.div `
95
120
  display: none;
@@ -146,6 +146,8 @@ exports.search = (0, styled_components_1.css) `
146
146
  --search-trigger-bg-color: var(--navbar-bg-color);
147
147
  --search-trigger-icon-size: 16px;
148
148
  --search-trigger-line-height: var(--line-height-base);
149
+ --search-trigger-shortcut-appear-duration: 300ms;
150
+ --search-trigger-shortcut-appear-easing: ease-out;
149
151
 
150
152
  /**
151
153
  * @tokens AI Search
@@ -1,5 +1,5 @@
1
1
  export declare const DEFAULT_MCP_SERVER_NAME = "mcp-server";
2
2
  export declare const MCP_ROUTE = "/mcp";
3
3
  export declare const PUBLIC_MCP_ROUTE = "/mcp-public";
4
- export declare const MCP_OPTIONS: readonly ['cursor', 'vscode', 'claude-code', 'codex', 'copy'];
5
- export declare const DEFAULT_MCP_OPTIONS: ("claude-code" | "codex" | "copy" | "cursor" | "vscode")[];
4
+ export declare const MCP_OPTIONS: readonly ['cursor', 'vscode', 'claude', 'claude-code', 'codex', 'copy'];
5
+ export declare const DEFAULT_MCP_OPTIONS: ("claude" | "claude-code" | "codex" | "copy" | "cursor" | "vscode")[];
@@ -4,6 +4,6 @@ exports.DEFAULT_MCP_OPTIONS = exports.MCP_OPTIONS = exports.PUBLIC_MCP_ROUTE = e
4
4
  exports.DEFAULT_MCP_SERVER_NAME = 'mcp-server';
5
5
  exports.MCP_ROUTE = '/mcp';
6
6
  exports.PUBLIC_MCP_ROUTE = '/mcp-public';
7
- exports.MCP_OPTIONS = ['cursor', 'vscode', 'claude-code', 'codex', 'copy'];
7
+ exports.MCP_OPTIONS = ['cursor', 'vscode', 'claude', 'claude-code', 'codex', 'copy'];
8
8
  exports.DEFAULT_MCP_OPTIONS = [...exports.MCP_OPTIONS];
9
9
  //# sourceMappingURL=mcp.js.map
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughFile } from '@redocly/config';
1
+ import type { CodeWalkthroughFile } from '../../../core/types';
2
2
  export declare function useCodePanel(files: CodeWalkthroughFile[]): {
3
3
  readonly activeFile: CodeWalkthroughFile;
4
4
  readonly handleTabSwitch: (name: string) => void;
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughFile, CodeWalkthroughFilter, InputsMarkdocAttr, TogglesMarkdocAttr, CodeWalkthroughFilterItem, CodeWalkthroughConditionsObject } from '@redocly/config';
1
+ import type { CodeWalkthroughFile, CodeWalkthroughFilter, InputsMarkdocAttr, TogglesMarkdocAttr, CodeWalkthroughFilterItem, CodeWalkthroughConditionsObject } from '../../../core/types';
2
2
  export type ActiveFilter = {
3
3
  id: string;
4
4
  label?: string;
@@ -42,7 +42,7 @@ function useCodeWalkthroughControls(filters, inputs, toggles, enableDeepLink) {
42
42
  Object.entries(newState).forEach(([id, control]) => {
43
43
  const existingControl = controlsState[id];
44
44
  if (existingControl && existingControl.type === control.type) {
45
- // @ts-expect-error
45
+ // @ts-expect-error: TS2322 - the spread loses the link between `type` and `value` in the control union
46
46
  newState[id] = Object.assign(Object.assign({}, control), { value: existingControl.value });
47
47
  }
48
48
  });
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughStepAttr } from '@redocly/config';
1
+ import type { CodeWalkthroughStepAttr } from '../../../core/types';
2
2
  import type { WalkthroughStepsState } from '../../types/code-walkthrough';
3
3
  type CodeWalkthroughStep = CodeWalkthroughStepAttr & {
4
4
  compRef?: HTMLElement;
@@ -1,5 +1,4 @@
1
- import type { CodeWalkthroughFile, CodeWalkthroughStepAttr, CodeWalkthroughAttr } from '@redocly/config';
2
- import type { WalkthroughStepsState } from '../../types/code-walkthrough';
1
+ import type { CodeWalkthroughAttr, CodeWalkthroughFile, CodeWalkthroughStepAttr, WalkthroughStepsState } from '../../types/code-walkthrough';
3
2
  import { type WalkthroughControlsState } from './use-code-walkthrough-controls';
4
3
  export type WalkthroughState = {
5
4
  stepsState: WalkthroughStepsState;
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughFile } from '@redocly/config';
1
+ import type { CodeWalkthroughFile } from '../../../core/types';
2
2
  export type RenderableFile = CodeWalkthroughFile & {
3
3
  fileIcon: React.JSX.Element;
4
4
  parentFolder: string;
@@ -41,6 +41,7 @@ function useConnectMCPButton({ options = mcp_1.DEFAULT_MCP_OPTIONS, } = {}) {
41
41
  const urlMap = {
42
42
  cursor: cursorUrl,
43
43
  vscode: vscodeUrl,
44
+ claude: (0, mcp_2.generateMCPDeepLink)('claude', connection),
44
45
  };
45
46
  window.open(urlMap[action], '_blank');
46
47
  }, [cursorUrl, vscodeUrl, serverUrl, serverName, resetCopied, telemetry]);
@@ -1,3 +1,3 @@
1
1
  import type { PageAction } from '../types';
2
- export type PageActionType = 'copy' | 'view' | 'chatgpt' | 'claude' | 'docs-mcp-cursor' | 'docs-mcp-vscode' | 'mcp-cursor' | 'mcp-vscode';
2
+ export type PageActionType = 'copy' | 'view' | 'chatgpt' | 'claude' | 'docs-mcp-cursor' | 'docs-mcp-vscode' | 'docs-mcp-claude' | 'mcp-cursor' | 'mcp-vscode';
3
3
  export declare function usePageActions(pageSlug: string, mcpUrl?: string, actions?: PageActionType[]): PageAction[];
@@ -32,6 +32,7 @@ const DEFAULT_ENABLED_ACTIONS = [
32
32
  'claude',
33
33
  'docs-mcp-cursor',
34
34
  'docs-mcp-vscode',
35
+ 'docs-mcp-claude',
35
36
  ];
36
37
  function usePageActions(pageSlug, mcpUrl, actions) {
37
38
  var _a;
@@ -84,6 +85,7 @@ function usePageActions(pageSlug, mcpUrl, actions) {
84
85
  const actionHandlers = {
85
86
  'docs-mcp-cursor': createMCPHandler('cursor', false),
86
87
  'docs-mcp-vscode': createMCPHandler('vscode', false),
88
+ 'docs-mcp-claude': createMCPHandler('claude', false),
87
89
  'mcp-cursor': createMCPHandler('cursor', true),
88
90
  'mcp-vscode': createMCPHandler('vscode', true),
89
91
  copy: () => ({
@@ -189,6 +191,9 @@ function createMCPAction({ clientType, mcpConfig, translate, onClickCallback, })
189
191
  if (clientType === 'cursor') {
190
192
  return Object.assign(Object.assign({}, sharedProps), { buttonText: translate('page.actions.connectMcp.cursor', 'Connect to Cursor'), title: translate('page.actions.connectMcp.cursor', 'Connect to Cursor'), description: translate('page.actions.connectMcp.cursorDescription', 'Install MCP server on Cursor'), iconComponent: CursorIcon_1.CursorIcon });
191
193
  }
194
+ if (clientType === 'claude') {
195
+ return Object.assign(Object.assign({}, sharedProps), { buttonText: translate('page.actions.connectMcp.claude', 'Connect to Claude'), title: translate('page.actions.connectMcp.claude', 'Connect to Claude'), description: translate('page.actions.connectMcp.claudeDescription', 'Add MCP server to your Claude account'), iconComponent: ClaudeIcon_1.ClaudeIcon });
196
+ }
192
197
  return Object.assign(Object.assign({}, sharedProps), { buttonText: translate('page.actions.connectMcp.vscode', 'Connect to VS Code'), title: translate('page.actions.connectMcp.vscode', 'Connect to VS Code'), description: translate('page.actions.connectMcp.vscodeDescription', 'Install MCP server on VS Code'), iconComponent: VSCodeIcon_1.VSCodeIcon });
193
198
  }
194
199
  function shouldHideAction(action, { pageProps, themeConfig, apiDocsExcludeFromSearch, isApiDocsPage, isPublic, mcpUrl, isMcpDisabled, }) {
@@ -221,6 +226,7 @@ function shouldHideActionByType(action, { isPublic, mcpUrl, isMcpDisabled, }) {
221
226
  return !isPublic;
222
227
  case 'docs-mcp-cursor':
223
228
  case 'docs-mcp-vscode':
229
+ case 'docs-mcp-claude':
224
230
  return Boolean(mcpUrl) || isMcpDisabled;
225
231
  case 'mcp-cursor':
226
232
  case 'mcp-vscode':
@@ -1320,6 +1320,7 @@ exports.tokens = (0, styled_components_1.css) `
1320
1320
  ${variables_5.breadcrumbs}
1321
1321
  ${variables_20.button}
1322
1322
  ${variables_21.aiAssistantButton}
1323
+ ${variables_21.connectMcpButton}
1323
1324
  ${variables_43.cards}
1324
1325
  ${variables_8.catalog}
1325
1326
  ${variables_11.catalogClassic}
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { MarkerArea } from './marker';
2
3
  export type ActiveStep = string | null;
3
4
  export type WalkthroughStepsState = {
@@ -11,3 +12,86 @@ export type WalkthroughStepsState = {
11
12
  lockObserver?: React.RefObject<boolean>;
12
13
  filtersElementRef?: React.RefObject<HTMLDivElement | null>;
13
14
  };
15
+ export type CodeWalkthroughStepAttr = {
16
+ id: string;
17
+ title?: string;
18
+ };
19
+ export type FilesetsMarkdocAttr = WithConditions<{
20
+ files?: string[];
21
+ downloadAssociatedFiles?: string[];
22
+ }>[];
23
+ export type InputsMarkdocAttr = {
24
+ [id: string]: WithConditions<{
25
+ value: string;
26
+ }>;
27
+ };
28
+ export type TogglesMarkdocAttr = {
29
+ [id: string]: CodeWalkthroughConditionsObject;
30
+ };
31
+ export type CodeWalkthroughConditions = {
32
+ [key: string]: string | string[] | undefined | boolean;
33
+ };
34
+ export type CodeWalkthroughFileset = WithConditions<{
35
+ files?: CodeWalkthroughFile[];
36
+ downloadAssociatedFiles?: CodeWalkthroughFile[];
37
+ }>;
38
+ export type CodeWalkthroughFile = {
39
+ path: string;
40
+ content: CodeWalkthroughNode[];
41
+ basename: string;
42
+ metadata: CodeWalkthroughFileMetadata;
43
+ language: string;
44
+ };
45
+ export type CodeWalkthroughChunk = {
46
+ start: number;
47
+ children: CodeWalkthroughNode[];
48
+ condition: CodeWalkthroughChunkCondition;
49
+ };
50
+ export type CodeWalkthroughChunkCondition = WithConditions<{
51
+ steps: string[];
52
+ }>;
53
+ export type CodeWalkthroughNode = CodeWalkthroughChunk | string;
54
+ export type CodeWalkthroughFileMetadata = {
55
+ steps: string[];
56
+ };
57
+ export type CodeWalkthroughFilter = WithConditions<{
58
+ id: string;
59
+ label?: string;
60
+ items: CodeWalkthroughFilterItem[];
61
+ }>;
62
+ export type CodeWalkthroughFilterItem = WithConditions<{
63
+ value: string;
64
+ }>;
65
+ export type CodeWalkthroughConditionsObject = {
66
+ when?: CodeWalkthroughConditions;
67
+ unless?: CodeWalkthroughConditions;
68
+ };
69
+ export type WithConditions<T> = T & CodeWalkthroughConditionsObject;
70
+ export type CodeWalkthroughControls = {
71
+ toggle: boolean;
72
+ input: string;
73
+ filter: string;
74
+ };
75
+ export type CodeWalkthroughControlState = WithConditions<{
76
+ value: string;
77
+ render: boolean;
78
+ type: 'input';
79
+ } | {
80
+ value: string;
81
+ render: boolean;
82
+ type: 'filter';
83
+ } | {
84
+ value: boolean;
85
+ render: boolean;
86
+ type: 'toggle';
87
+ }>;
88
+ export type CodeWalkthroughControlsState = Record<string, CodeWalkthroughControlState>;
89
+ export type CodeWalkthroughAttr = {
90
+ steps: CodeWalkthroughStepAttr[];
91
+ filters: Record<string, CodeWalkthroughFilter>;
92
+ filesets: CodeWalkthroughFileset[];
93
+ preview: ReactNode[];
94
+ inputs: InputsMarkdocAttr;
95
+ toggles: TogglesMarkdocAttr;
96
+ __idx: number;
97
+ };
@@ -152,7 +152,7 @@ export type ThemeHooks = {
152
152
  items: BffCatalogEntityRevision[];
153
153
  };
154
154
  useCatalogClassic: (config: CatalogConfig) => FilteredCatalog;
155
- useTelemetry: () => Omit<AsyncApiRealmUI.Telemetry, 'init' | 'updateCloudEventData' | 'forceFlush' | 'startSpan' | 'constructCloudEvent' | 'sendToOtelService'> & {
155
+ useTelemetry: () => Omit<AsyncApiRealmUI.Telemetry, 'init' | 'updateCloudEventData' | 'forceFlush' | 'startSpan' | 'constructCloudEvent' | 'sendToOtelService' | 'withTracer'> & {
156
156
  send<TEventType extends AsyncApiRealmUI.EventType>(event: TEventType, data?: AsyncApiRealmUI.EventPayload<TEventType>): void;
157
157
  /**
158
158
  * @deprecated This method is deprecated. Use send(event, data) instead.
@@ -1,5 +1,5 @@
1
1
  import type { TOptions } from 'i18next';
2
- export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.create.app.dialog.callbackUrls' | 'dev.create.app.dialog.callbackUrls.placeholder' | 'dev.create.app.dialog.callbackUrls.hint' | 'dev.app.callbackUrls.title' | 'dev.edit.callbackUrls.dialog.title' | 'dev.edit.callbackUrls.dialog.placeholder' | 'dev.edit.callbackUrls.dialog.hint' | 'dev.edit.callbackUrls.dialog.save' | 'dev.edit.callbackUrls.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.error.title' | 'search.error.button' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.back' | 'search.ai.assistant' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.send' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.feedback.title' | 'search.ai.feedback.detailsPlaceholder' | 'search.ai.feedback.thanks' | 'search.ai.toolCall.executed' | 'search.ai.toolCall.executing' | 'search.ai.toolCall.usedTools' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'search.ai.feedback.more' | 'search.ai.actions.copy' | 'search.ai.actions.like' | 'search.ai.actions.dislike' | 'search.searchItem.deprecated' | 'search.searchItem.enum' | 'search.searchItem.example' | 'search.groups.all' | 'search.filter.field.footer' | 'aiAssistant.trigger' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.forbidden.description' | 'page.notFound.title' | 'page.notFound.description' | 'page.apiNotFound.title' | 'page.apiNotFound.description' | 'page.apiNotFound.hint' | 'page.apiNotFound.backButton' | 'page.mcpNotAllowed.title' | 'page.mcpNotAllowed.description' | 'page.mcpNotAllowed.publicNote' | 'page.mcpNotAllowed.publicEndpointHint' | 'page.mcpNotAllowed.mainEndpointHint' | 'page.mcpNotAllowed.snippets.terminal.hint' | 'page.mcpNotAllowed.snippets.claudeCode.headline' | 'page.mcpNotAllowed.snippets.claudeDesktop.headline' | 'page.mcpNotAllowed.snippets.claudeDesktop.instruction' | 'page.mcpNotAllowed.snippets.chatgptApp.headline' | 'page.mcpNotAllowed.snippets.chatgptApp.instruction' | 'page.mcpNotAllowed.snippets.codexCli.headline' | 'page.mcpNotAllowed.snippets.prompt.headline' | 'page.mcpNotAllowed.snippets.prompt.hint' | 'page.mcpNotAllowed.snippets.json.hint' | 'page.mcpNotAllowed.tabs.claude' | 'page.mcpNotAllowed.tabs.chatgpt' | 'page.mcpNotAllowed.tabs.json' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'catalog.backToAllLabel' | 'catalog.notConnected' | 'catalog.tags.label' | 'catalog.sort' | 'catalog.catalogs.label' | 'catalog.owners.label' | 'catalog.repositories.label' | 'catalog.email.label' | 'catalog.format.label' | 'catalog.entityType.label' | 'catalog.domains.label' | 'catalog.contact.label' | 'catalog.methodAndPath.label' | 'catalog.links.label' | 'catalog.metadata.domains' | 'catalog.metadata.owners' | 'catalog.history.button.label' | 'catalog.history.sidebar.title' | 'catalog.history.sidebar.close' | 'catalog.history.version.label' | 'catalog.filters.close' | 'catalog.history.version.notSpecified' | 'catalog.history.version.default' | 'catalog.history.revisions.limitMessage' | 'catalog.history.revision.current' | 'catalog.history.revisions.showLess' | 'catalog.history.revisions.showMore' | 'navigationTabs.label' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.maxLength' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'jsonViewer.showMore' | 'jsonViewer.showLess' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.label' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'page.actions.connectMcp' | 'page.actions.connectMcp.cursor' | 'page.actions.connectMcp.cursorDescription' | 'page.actions.connectMcp.vscode' | 'page.actions.connectMcp.vscodeDescription' | 'page.actions.connectMcp.claudeCode' | 'page.actions.connectMcp.claudeCodeDescription' | 'page.actions.connectMcp.codex' | 'page.actions.connectMcp.codexDescription' | 'page.actions.connectMcp.copyConfig' | 'page.actions.connectMcp.copyConfigDescription' | 'page.actions.connectMcp.moreOptions' | 'page.actions.moreActions' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'graphql.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.languages.moreButton.tooltipText' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.schemas' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.querystring' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.property' | 'openapi.properties' | 'openapi.details' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.deepLink.tooltip' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.discriminator.defaultMapping' | 'openapi.discriminator.defaultMappingTooltip' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.noRequestData' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'openapi.mcp.exampleTitle' | 'openapi.mcp.argumentsExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'asyncapi.info.contact.url' | 'asyncapi.info.contact.name' | 'asyncapi.info.license' | 'asyncapi.info.termsOfService' | 'asyncapi.key' | 'asyncapi.value' | 'asyncapi.variables' | 'asyncapi.required' | 'asyncapi.requiredScopes' | 'asyncapi.viewSecurityDetails' | 'graphql.download.description.title' | 'graphql.info.title' | 'graphql.info.contact.url' | 'graphql.info.contact.name' | 'graphql.info.license' | 'graphql.info.termsOfService' | 'graphql.overview' | 'graphql.metadata' | 'graphql.key' | 'graphql.value' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.actions.show' | 'graphql.actions.hide' | 'graphql.actions.more' | 'graphql.fields' | 'graphql.inputFields' | 'graphql.values' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.implementedBy' | 'graphql.nonNull' | 'graphql.required' | 'asyncapi.badges.deprecated' | 'graphql.badges.deprecated' | 'asyncapi.actions.show' | 'asyncapi.actions.hide' | 'asyncapi.actions.more' | 'asyncapi.payload' | 'asyncapi.parameters' | 'asyncapi.messages' | 'asyncapi.contentType' | 'asyncapi.moreDetails' | 'asyncapi.property' | 'asyncapi.properties' | 'asyncapi.details' | 'asyncapi.reply' | 'asyncapi.servers.title' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'button.download.tooltipText' | 'button.externalLink.tooltipText' | 'button.email.tooltipText' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label' | 'select.noResults' | 'loaders.loading' | 'filter.dateRange.from' | 'filter.dateRange.to' | 'diagram.openFullscreen' | 'diagram.zoomIn' | 'diagram.zoomOut' | 'diagram.reset' | 'diagram.close' | 'diagram.viewer' | 'consent.title' | 'consent.message' | 'consent.privacyPolicy' | 'consent.customize' | 'consent.rejectAll' | 'consent.acceptAll' | 'consent.acceptAllCookies' | 'consent.savePreferences' | 'consent.dialog.title' | 'consent.dialog.description' | 'consent.dialog.close' | 'consent.alwaysOn' | 'consent.alwaysOff' | 'consent.gpcNotice' | 'consent.category.necessary.title' | 'consent.category.necessary.description' | 'consent.category.analytics.title' | 'consent.category.analytics.description' | 'consent.category.marketing.title' | 'consent.category.marketing.description' | 'consent.settingsLink';
2
+ export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.create.app.dialog.callbackUrls' | 'dev.create.app.dialog.callbackUrls.placeholder' | 'dev.create.app.dialog.callbackUrls.hint' | 'dev.app.callbackUrls.title' | 'dev.edit.callbackUrls.dialog.title' | 'dev.edit.callbackUrls.dialog.placeholder' | 'dev.edit.callbackUrls.dialog.hint' | 'dev.edit.callbackUrls.dialog.save' | 'dev.edit.callbackUrls.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.error.title' | 'search.error.button' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.back' | 'search.ai.assistant' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.send' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.feedback.title' | 'search.ai.feedback.detailsPlaceholder' | 'search.ai.feedback.thanks' | 'search.ai.toolCall.executed' | 'search.ai.toolCall.executing' | 'search.ai.toolCall.usedTools' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'search.ai.feedback.more' | 'search.ai.actions.copy' | 'search.ai.actions.like' | 'search.ai.actions.dislike' | 'search.searchItem.deprecated' | 'search.searchItem.enum' | 'search.searchItem.example' | 'search.groups.all' | 'search.filter.field.footer' | 'aiAssistant.trigger' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.forbidden.description' | 'page.notFound.title' | 'page.notFound.description' | 'page.apiNotFound.title' | 'page.apiNotFound.description' | 'page.apiNotFound.hint' | 'page.apiNotFound.backButton' | 'page.mcpNotAllowed.title' | 'page.mcpNotAllowed.description' | 'page.mcpNotAllowed.publicNote' | 'page.mcpNotAllowed.publicEndpointHint' | 'page.mcpNotAllowed.mainEndpointHint' | 'page.mcpNotAllowed.snippets.terminal.hint' | 'page.mcpNotAllowed.snippets.claudeCode.headline' | 'page.mcpNotAllowed.snippets.claudeDesktop.headline' | 'page.mcpNotAllowed.snippets.claudeDesktop.accountHint' | 'page.mcpNotAllowed.snippets.claudeDesktop.instruction' | 'page.mcpNotAllowed.snippets.chatgptApp.headline' | 'page.mcpNotAllowed.snippets.chatgptApp.instruction' | 'page.mcpNotAllowed.snippets.codexCli.headline' | 'page.mcpNotAllowed.snippets.prompt.headline' | 'page.mcpNotAllowed.snippets.prompt.hint' | 'page.mcpNotAllowed.snippets.json.hint' | 'page.mcpNotAllowed.tabs.claude' | 'page.mcpNotAllowed.tabs.chatgpt' | 'page.mcpNotAllowed.tabs.json' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'catalog.backToAllLabel' | 'catalog.notConnected' | 'catalog.tags.label' | 'catalog.sort' | 'catalog.catalogs.label' | 'catalog.owners.label' | 'catalog.repositories.label' | 'catalog.email.label' | 'catalog.format.label' | 'catalog.entityType.label' | 'catalog.domains.label' | 'catalog.contact.label' | 'catalog.methodAndPath.label' | 'catalog.links.label' | 'catalog.metadata.domains' | 'catalog.metadata.owners' | 'catalog.history.button.label' | 'catalog.history.sidebar.title' | 'catalog.history.sidebar.close' | 'catalog.history.version.label' | 'catalog.filters.close' | 'catalog.history.version.notSpecified' | 'catalog.history.version.default' | 'catalog.history.revisions.limitMessage' | 'catalog.history.revision.current' | 'catalog.history.revisions.showLess' | 'catalog.history.revisions.showMore' | 'navigationTabs.label' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.maxLength' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'jsonViewer.showMore' | 'jsonViewer.showLess' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.label' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'page.actions.connectMcp' | 'page.actions.connectMcp.cursor' | 'page.actions.connectMcp.cursorDescription' | 'page.actions.connectMcp.vscode' | 'page.actions.connectMcp.vscodeDescription' | 'page.actions.connectMcp.claude' | 'page.actions.connectMcp.claudeDescription' | 'page.actions.connectMcp.claudeCode' | 'page.actions.connectMcp.claudeCodeDescription' | 'page.actions.connectMcp.codex' | 'page.actions.connectMcp.codexDescription' | 'page.actions.connectMcp.copyConfig' | 'page.actions.connectMcp.copyConfigDescription' | 'page.actions.connectMcp.moreOptions' | 'page.actions.moreActions' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'graphql.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.languages.moreButton.tooltipText' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.schemas' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.querystring' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.property' | 'openapi.properties' | 'openapi.details' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.deepLink.tooltip' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.discriminator.defaultMapping' | 'openapi.discriminator.defaultMappingTooltip' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.noRequestData' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'openapi.mcp.exampleTitle' | 'openapi.mcp.argumentsExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'asyncapi.info.contact.url' | 'asyncapi.info.contact.name' | 'asyncapi.info.license' | 'asyncapi.info.termsOfService' | 'asyncapi.key' | 'asyncapi.value' | 'asyncapi.variables' | 'asyncapi.required' | 'asyncapi.requiredScopes' | 'asyncapi.viewSecurityDetails' | 'graphql.download.description.title' | 'graphql.info.title' | 'graphql.info.contact.url' | 'graphql.info.contact.name' | 'graphql.info.license' | 'graphql.info.termsOfService' | 'graphql.overview' | 'graphql.metadata' | 'graphql.key' | 'graphql.value' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.actions.show' | 'graphql.actions.hide' | 'graphql.actions.more' | 'graphql.fields' | 'graphql.inputFields' | 'graphql.values' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.implementedBy' | 'graphql.nonNull' | 'graphql.required' | 'asyncapi.badges.deprecated' | 'graphql.badges.deprecated' | 'asyncapi.actions.show' | 'asyncapi.actions.hide' | 'asyncapi.actions.more' | 'asyncapi.payload' | 'asyncapi.parameters' | 'asyncapi.messages' | 'asyncapi.contentType' | 'asyncapi.moreDetails' | 'asyncapi.property' | 'asyncapi.properties' | 'asyncapi.details' | 'asyncapi.reply' | 'asyncapi.servers.title' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'button.download.tooltipText' | 'button.externalLink.tooltipText' | 'button.email.tooltipText' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label' | 'select.noResults' | 'loaders.loading' | 'filter.dateRange.from' | 'filter.dateRange.to' | 'diagram.openFullscreen' | 'diagram.zoomIn' | 'diagram.zoomOut' | 'diagram.reset' | 'diagram.close' | 'diagram.viewer' | 'consent.title' | 'consent.message' | 'consent.privacyPolicy' | 'consent.customize' | 'consent.rejectAll' | 'consent.acceptAll' | 'consent.acceptAllCookies' | 'consent.savePreferences' | 'consent.dialog.title' | 'consent.dialog.description' | 'consent.dialog.close' | 'consent.alwaysOn' | 'consent.alwaysOff' | 'consent.gpcNotice' | 'consent.category.necessary.title' | 'consent.category.necessary.description' | 'consent.category.analytics.title' | 'consent.category.analytics.description' | 'consent.category.marketing.title' | 'consent.category.marketing.description' | 'consent.settingsLink';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -1,5 +1,5 @@
1
1
  import type { MCP_OPTIONS } from '../constants/mcp';
2
- export type MCPClientType = 'cursor' | 'vscode';
2
+ export type MCPClientType = 'cursor' | 'vscode' | 'claude';
3
3
  export type MCPOption = (typeof MCP_OPTIONS)[number];
4
4
  export type McpConnectionParams = {
5
5
  serverName: string;
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughFile } from '@redocly/config';
1
+ import type { CodeWalkthroughFile } from '../../core/types';
2
2
  export declare function downloadCodeWalkthrough(files: CodeWalkthroughFile[], state: Record<string, {
3
3
  value: string | boolean;
4
4
  }>, inputsState: Record<string, {
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughFile } from '@redocly/config';
1
+ import type { CodeWalkthroughFile } from '../../core/types';
2
2
  export declare function getCodeWalkthroughFileText(file: CodeWalkthroughFile, state: Record<string, {
3
3
  value: string | boolean;
4
4
  }>, inputsState: Record<string, {
@@ -1,4 +1,4 @@
1
- import type { CodeWalkthroughConditionsObject } from '@redocly/config';
1
+ import type { CodeWalkthroughConditionsObject } from '../../core/types';
2
2
  export declare function matchCodeWalkthroughConditions(conditions: CodeWalkthroughConditionsObject | undefined, state: Record<string, {
3
3
  value: string | boolean;
4
4
  }>): boolean;
@@ -27,14 +27,19 @@ function generateVSCodeMCPDeepLink(config) {
27
27
  const encodedConfig = encodeURIComponent(JSON.stringify(vscodeConfig));
28
28
  return `vscode:mcp/install?${encodedConfig}`;
29
29
  }
30
+ function generateClaudeConnectorLink(config) {
31
+ const connectorName = encodeURIComponent(config.serverName);
32
+ const connectorUrl = encodeURIComponent(config.url);
33
+ return `https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=${connectorName}&connectorUrl=${connectorUrl}`;
34
+ }
30
35
  function generateMCPDeepLink(clientType, config) {
31
36
  switch (clientType) {
32
37
  case 'cursor':
33
38
  return generateCursorMCPDeepLink(config);
34
39
  case 'vscode':
35
40
  return generateVSCodeMCPDeepLink(config);
36
- default:
37
- return generateCursorMCPDeepLink(config);
41
+ case 'claude':
42
+ return generateClaudeConnectorLink(config);
38
43
  }
39
44
  }
40
45
  // Server names can contain spaces (e.g. "Docs MCP server") which break bare CLI
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CodeWalkthroughFilter } from '@redocly/config';
2
+ import type { CodeWalkthroughFilter } from '../../../core/types';
3
3
  export type GetFilterState = (groupId: string) => {
4
4
  value: string;
5
5
  render: boolean;