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

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 (99) hide show
  1. package/lib/components/Buttons/ConnectMCPButton.js +8 -13
  2. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.js +1 -1
  3. package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.js +2 -1
  4. package/lib/components/Dropdown/Dropdown.d.ts +4 -2
  5. package/lib/components/Dropdown/Dropdown.js +28 -8
  6. package/lib/components/Filter/FilterDateRange.js +36 -2
  7. package/lib/components/Portal/Portal.js +37 -5
  8. package/lib/components/Search/SearchAiActionButtons.js +8 -3
  9. package/lib/components/Search/SearchAiActivity.d.ts +10 -0
  10. package/lib/components/Search/SearchAiActivity.js +278 -0
  11. package/lib/components/Search/SearchAiDialog.js +5 -1
  12. package/lib/components/Search/SearchAiMessage.d.ts +2 -1
  13. package/lib/components/Search/SearchAiMessage.js +20 -108
  14. package/lib/components/Search/SearchDialog.js +10 -0
  15. package/lib/components/Search/SearchItem.js +1 -8
  16. package/lib/components/Search/variables.js +15 -2
  17. package/lib/components/Select/SelectInput.js +2 -8
  18. package/lib/components/SplitButton/SplitButton.js +37 -3
  19. package/lib/core/constants/mcp.d.ts +2 -2
  20. package/lib/core/constants/mcp.js +3 -8
  21. package/lib/core/constants/search.js +5 -1
  22. package/lib/core/contexts/PortalContainerContext.d.ts +2 -0
  23. package/lib/core/contexts/PortalContainerContext.js +7 -0
  24. package/lib/core/hooks/index.d.ts +2 -0
  25. package/lib/core/hooks/index.js +2 -0
  26. package/lib/core/hooks/menu/use-collapse.js +1 -1
  27. package/lib/core/hooks/search/use-persisted-quick-filter.d.ts +21 -0
  28. package/lib/core/hooks/search/use-persisted-quick-filter.js +92 -0
  29. package/lib/core/hooks/search/use-search-ai-activity.d.ts +11 -0
  30. package/lib/core/hooks/search/use-search-ai-activity.js +15 -0
  31. package/lib/core/hooks/use-connect-mcp-button.js +2 -1
  32. package/lib/core/hooks/use-full-height.d.ts +1 -1
  33. package/lib/core/hooks/use-full-height.js +8 -8
  34. package/lib/core/styles/global.d.ts +2 -0
  35. package/lib/core/styles/global.js +80 -76
  36. package/lib/core/styles/index.d.ts +1 -0
  37. package/lib/core/styles/index.js +3 -1
  38. package/lib/core/styles/search-ai-appear.d.ts +1 -0
  39. package/lib/core/styles/search-ai-appear.js +18 -0
  40. package/lib/core/types/dropdown.d.ts +1 -0
  41. package/lib/core/types/dropdown.js +3 -0
  42. package/lib/core/types/index.d.ts +1 -0
  43. package/lib/core/types/l10n.d.ts +1 -1
  44. package/lib/core/types/mcp.d.ts +2 -1
  45. package/lib/core/types/search.d.ts +23 -0
  46. package/lib/core/utils/assign-ref.d.ts +2 -0
  47. package/lib/core/utils/assign-ref.js +12 -0
  48. package/lib/core/utils/content-segments.d.ts +12 -1
  49. package/lib/core/utils/content-segments.js +90 -5
  50. package/lib/core/utils/dropdown.d.ts +2 -0
  51. package/lib/core/utils/dropdown.js +12 -0
  52. package/lib/core/utils/index.d.ts +2 -0
  53. package/lib/core/utils/index.js +2 -0
  54. package/lib/core/utils/mcp.d.ts +2 -1
  55. package/lib/core/utils/mcp.js +5 -0
  56. package/lib/core/utils/search-ai-activity.d.ts +4 -0
  57. package/lib/core/utils/search-ai-activity.js +83 -0
  58. package/lib/markdoc/tags/connect-mcp.js +15 -0
  59. package/package.json +3 -2
  60. package/src/components/Buttons/ConnectMCPButton.tsx +8 -14
  61. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.tsx +3 -1
  62. package/src/components/Catalog/CatalogFilter/CatalogFilterDateRange.tsx +3 -2
  63. package/src/components/Dropdown/Dropdown.tsx +28 -6
  64. package/src/components/Filter/FilterDateRange.tsx +3 -2
  65. package/src/components/Portal/Portal.tsx +4 -2
  66. package/src/components/Search/SearchAiActionButtons.tsx +31 -19
  67. package/src/components/Search/SearchAiActivity.tsx +318 -0
  68. package/src/components/Search/SearchAiDialog.tsx +4 -3
  69. package/src/components/Search/SearchAiMessage.tsx +27 -135
  70. package/src/components/Search/SearchDialog.tsx +11 -0
  71. package/src/components/Search/SearchItem.tsx +2 -9
  72. package/src/components/Search/variables.ts +15 -2
  73. package/src/components/Select/SelectInput.tsx +2 -8
  74. package/src/components/SplitButton/SplitButton.tsx +8 -2
  75. package/src/core/constants/mcp.ts +3 -9
  76. package/src/core/constants/search.ts +5 -1
  77. package/src/core/contexts/PortalContainerContext.tsx +4 -0
  78. package/src/core/hooks/__mocks__/index.ts +2 -0
  79. package/src/core/hooks/index.ts +2 -0
  80. package/src/core/hooks/menu/use-collapse.ts +1 -1
  81. package/src/core/hooks/search/use-persisted-quick-filter.ts +125 -0
  82. package/src/core/hooks/search/use-search-ai-activity.ts +31 -0
  83. package/src/core/hooks/use-connect-mcp-button.ts +7 -2
  84. package/src/core/hooks/use-full-height.ts +8 -8
  85. package/src/core/styles/global.ts +80 -75
  86. package/src/core/styles/index.ts +2 -1
  87. package/src/core/styles/search-ai-appear.ts +16 -0
  88. package/src/core/types/dropdown.ts +1 -0
  89. package/src/core/types/index.ts +1 -0
  90. package/src/core/types/l10n.ts +4 -1
  91. package/src/core/types/mcp.ts +3 -1
  92. package/src/core/types/search.ts +21 -0
  93. package/src/core/utils/assign-ref.ts +9 -0
  94. package/src/core/utils/content-segments.ts +98 -6
  95. package/src/core/utils/dropdown.ts +14 -0
  96. package/src/core/utils/index.ts +2 -0
  97. package/src/core/utils/mcp.ts +7 -1
  98. package/src/core/utils/search-ai-activity.ts +110 -0
  99. package/src/markdoc/tags/connect-mcp.ts +16 -1
@@ -6,27 +6,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useFullHeight = useFullHeight;
7
7
  const react_1 = require("react");
8
8
  const lodash_throttle_1 = __importDefault(require("lodash.throttle"));
9
- function useFullHeight(element) {
9
+ function useFullHeight(elementRef) {
10
10
  const handler = (0, react_1.useCallback)(() => {
11
- if (!element.current) {
11
+ if (!elementRef.current) {
12
12
  return;
13
13
  }
14
14
  const footer = document.querySelector('footer');
15
15
  if (!footer) {
16
16
  return;
17
17
  }
18
- const elementTop = element.current.getBoundingClientRect().top;
18
+ const elementTop = elementRef.current.getBoundingClientRect().top;
19
19
  const footerOffset = footer.offsetTop - window.scrollY - elementTop;
20
20
  if (footerOffset > window.innerHeight) {
21
- element.current.style.maxHeight = `${window.innerHeight - elementTop}px`;
21
+ elementRef.current.style.maxHeight = `${window.innerHeight - elementTop}px`;
22
22
  }
23
23
  else {
24
- element.current.style.maxHeight = `${footerOffset}px`;
24
+ elementRef.current.style.maxHeight = `${footerOffset}px`;
25
25
  }
26
- }, [element]);
26
+ }, [elementRef]);
27
27
  const throttledHandler = (0, react_1.useMemo)(() => (0, lodash_throttle_1.default)(handler, 150), [handler]);
28
28
  (0, react_1.useEffect)(() => {
29
- if (typeof window === 'undefined' || !element.current) {
29
+ if (typeof window === 'undefined' || !elementRef.current) {
30
30
  return () => {
31
31
  // nope
32
32
  };
@@ -42,6 +42,6 @@ function useFullHeight(element) {
42
42
  window.removeEventListener('scroll', throttledHandler);
43
43
  window.removeEventListener('resize', throttledHandler);
44
44
  };
45
- }, [throttledHandler, element, handler]);
45
+ }, [throttledHandler, elementRef, handler]);
46
46
  }
47
47
  //# sourceMappingURL=use-full-height.js.map
@@ -1,3 +1,5 @@
1
+ /** The light theme tokens without a selector, for a host that sets them on one element. */
2
+ export declare const tokens: import("styled-components").RuleSet<object>;
1
3
  export declare const styles: import("styled-components").RuleSet<NoInfer<{
2
4
  palette?: string;
3
5
  }>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalStyle = exports.styles = void 0;
3
+ exports.GlobalStyle = exports.styles = exports.tokens = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  const variables_1 = require("../../components/LanguagePicker/variables");
6
6
  const variables_2 = require("../../components/Scorecard/variables");
@@ -1307,83 +1307,87 @@ const replay = (0, styled_components_1.css) `
1307
1307
  }
1308
1308
  // @tokens End
1309
1309
  `;
1310
+ /** The light theme tokens without a selector, for a host that sets them on one element. */
1311
+ exports.tokens = (0, styled_components_1.css) `
1312
+ ${variables_13.accordion}
1313
+ ${variables_18.admonition}
1314
+ ${apiReferenceDocs}
1315
+ ${variables_12.apiReferencePanels}
1316
+ ${badges}
1317
+ ${variables_28.banner}
1318
+ ${borders}
1319
+ ${variables_29.consent}
1320
+ ${variables_5.breadcrumbs}
1321
+ ${variables_20.button}
1322
+ ${variables_21.aiAssistantButton}
1323
+ ${variables_43.cards}
1324
+ ${variables_8.catalog}
1325
+ ${variables_11.catalogClassic}
1326
+ ${variables_25.code}
1327
+ ${variables_44.codeWalkthrough}
1328
+ ${docsDropdown}
1329
+ ${variables_15.dropdown}
1330
+ ${error}
1331
+ ${variables_10.filter}
1332
+ ${variables_19.footer}
1333
+ ${headingsTypography}
1334
+ ${variables_39.httpTag}
1335
+ ${variables_9.image}
1336
+ ${inputs}
1337
+ ${variables_1.languagePicker}
1338
+ ${variables_34.lastUpdated}
1339
+ ${links}
1340
+ ${loadProgressBar}
1341
+ ${variables_35.logo}
1342
+ ${variables_27.markdown}
1343
+ ${variables_30.markdownAccordion}
1344
+ ${variables_31.markdownTabs}
1345
+ ${variables_32.markdownNumberedList}
1346
+ ${variables_33.diagram}
1347
+ ${variables_24.menu}
1348
+ ${variables_24.mobileMenu}
1349
+ ${modal}
1350
+ ${variables_22.navbar}
1351
+ ${pages}
1352
+ ${variables_26.productPicker}
1353
+ ${variables_12.responsePanelColors}
1354
+ ${variables_23.search}
1355
+ ${variables_50.navigationTabs}
1356
+ ${variables_14.select}
1357
+ ${variables_4.sidebar}
1358
+ ${sizeAndSpace}
1359
+ ${variables_6.tag}
1360
+ ${themeColors}
1361
+ ${palette_1.activeBrandPaletteLight}
1362
+ ${tile}
1363
+ ${variables_7.toc}
1364
+ ${variables_16.tooltip}
1365
+ ${typography}
1366
+ ${variables_38.userMenu}
1367
+ ${variables_40.versionPicker}
1368
+ ${zIndexDepth}
1369
+ ${scorecardColors}
1370
+ ${variables_36.statusCode}
1371
+ ${tab}
1372
+ ${icon}
1373
+ ${tree}
1374
+ ${variables_37.segmented}
1375
+ ${variables_42.switcher}
1376
+ ${variables_17.checkbox}
1377
+ ${variables_3.feedback}
1378
+ ${variables_2.scorecard}
1379
+ ${variables_41.datePicker}
1380
+ ${replay}
1381
+ ${variables_45.skipContent}
1382
+ ${variables_46.pageActions}
1383
+ ${variables_47.svgViewer}
1384
+ ${variables_48.toast}
1385
+ ${variables_49.pageNavigation}
1386
+
1387
+ `;
1310
1388
  exports.styles = (0, styled_components_1.css) `
1311
1389
  :root {
1312
- ${variables_13.accordion}
1313
- ${variables_18.admonition}
1314
- ${apiReferenceDocs}
1315
- ${variables_12.apiReferencePanels}
1316
- ${badges}
1317
- ${variables_28.banner}
1318
- ${borders}
1319
- ${variables_29.consent}
1320
- ${variables_5.breadcrumbs}
1321
- ${variables_20.button}
1322
- ${variables_21.aiAssistantButton}
1323
- ${variables_43.cards}
1324
- ${variables_8.catalog}
1325
- ${variables_11.catalogClassic}
1326
- ${variables_25.code}
1327
- ${variables_44.codeWalkthrough}
1328
- ${docsDropdown}
1329
- ${variables_15.dropdown}
1330
- ${error}
1331
- ${variables_10.filter}
1332
- ${variables_19.footer}
1333
- ${headingsTypography}
1334
- ${variables_39.httpTag}
1335
- ${variables_9.image}
1336
- ${inputs}
1337
- ${variables_1.languagePicker}
1338
- ${variables_34.lastUpdated}
1339
- ${links}
1340
- ${loadProgressBar}
1341
- ${variables_35.logo}
1342
- ${variables_27.markdown}
1343
- ${variables_30.markdownAccordion}
1344
- ${variables_31.markdownTabs}
1345
- ${variables_32.markdownNumberedList}
1346
- ${variables_33.diagram}
1347
- ${variables_24.menu}
1348
- ${variables_24.mobileMenu}
1349
- ${modal}
1350
- ${variables_22.navbar}
1351
- ${pages}
1352
- ${variables_26.productPicker}
1353
- ${variables_12.responsePanelColors}
1354
- ${variables_23.search}
1355
- ${variables_50.navigationTabs}
1356
- ${variables_14.select}
1357
- ${variables_4.sidebar}
1358
- ${sizeAndSpace}
1359
- ${variables_6.tag}
1360
- ${themeColors}
1361
- ${palette_1.activeBrandPaletteLight}
1362
- ${tile}
1363
- ${variables_7.toc}
1364
- ${variables_16.tooltip}
1365
- ${typography}
1366
- ${variables_38.userMenu}
1367
- ${variables_40.versionPicker}
1368
- ${zIndexDepth}
1369
- ${scorecardColors}
1370
- ${variables_36.statusCode}
1371
- ${tab}
1372
- ${icon}
1373
- ${tree}
1374
- ${variables_37.segmented}
1375
- ${variables_42.switcher}
1376
- ${variables_17.checkbox}
1377
- ${variables_3.feedback}
1378
- ${variables_2.scorecard}
1379
- ${variables_41.datePicker}
1380
- ${replay}
1381
- ${variables_45.skipContent}
1382
- ${variables_46.pageActions}
1383
- ${variables_47.svgViewer}
1384
- ${variables_48.toast}
1385
- ${variables_49.pageNavigation}
1386
-
1390
+ ${exports.tokens}
1387
1391
  background-color: var(--bg-color);
1388
1392
  color: var(--text-color-primary);
1389
1393
  font-family: var(--font-family-base);
@@ -1,3 +1,4 @@
1
1
  export * from './global';
2
2
  export * from './dark';
3
3
  export { xyflow } from './xyflow';
4
+ export { searchAiAppearAnimation } from './search-ai-appear';
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.xyflow = void 0;
17
+ exports.searchAiAppearAnimation = exports.xyflow = void 0;
18
18
  __exportStar(require("./global"), exports);
19
19
  __exportStar(require("./dark"), exports);
20
20
  var xyflow_1 = require("./xyflow");
21
21
  Object.defineProperty(exports, "xyflow", { enumerable: true, get: function () { return xyflow_1.xyflow; } });
22
+ var search_ai_appear_1 = require("./search-ai-appear");
23
+ Object.defineProperty(exports, "searchAiAppearAnimation", { enumerable: true, get: function () { return search_ai_appear_1.searchAiAppearAnimation; } });
22
24
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ export declare const searchAiAppearAnimation: import("styled-components").RuleSet<object>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchAiAppearAnimation = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ const appear = (0, styled_components_1.keyframes) `
6
+ from {
7
+ opacity: 0;
8
+ transform: translateY(4px);
9
+ }
10
+ `;
11
+ exports.searchAiAppearAnimation = (0, styled_components_1.css) `
12
+ animation: ${appear} var(--search-ai-activity-fade-duration) ease-out;
13
+
14
+ @media (prefers-reduced-motion: reduce) {
15
+ animation: none;
16
+ }
17
+ `;
18
+ //# sourceMappingURL=search-ai-appear.js.map
@@ -0,0 +1 @@
1
+ export type DropdownAlignment = 'start' | 'end';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dropdown.js.map
@@ -25,3 +25,4 @@ export type * from './tooltip';
25
25
  export type * from './toast';
26
26
  export type * from './link';
27
27
  export type * from './button-group';
28
+ export type * from './dropdown';
@@ -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.withArgs' | '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.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.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';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -1,5 +1,6 @@
1
+ import type { MCP_OPTIONS } from '../constants/mcp';
1
2
  export type MCPClientType = 'cursor' | 'vscode';
2
- export type MCPOption = 'cursor' | 'vscode' | 'claude-code' | 'codex' | 'copy';
3
+ export type MCPOption = (typeof MCP_OPTIONS)[number];
3
4
  export type McpConnectionParams = {
4
5
  serverName: string;
5
6
  url: string;
@@ -111,6 +111,29 @@ export type ContentSegment = {
111
111
  type: 'tool';
112
112
  toolCall: ToolCall;
113
113
  };
114
+ export type GroupedContentSegment = {
115
+ type: 'text';
116
+ text: string;
117
+ }
118
+ /** `isActive`: the assistant still works on this group, with nothing written after it yet. */
119
+ | {
120
+ type: 'tools';
121
+ toolCalls: ToolCall[];
122
+ isActive: boolean;
123
+ };
124
+ export type SearchAiActivityKind = 'thinking' | 'search' | 'code' | 'support';
125
+ export type SearchAiActivityStatus = {
126
+ label: string;
127
+ detail?: string;
128
+ kind: SearchAiActivityKind;
129
+ isRunning: boolean;
130
+ };
131
+ export type SearchAiActivityStep = {
132
+ id: string;
133
+ label: string;
134
+ kind: SearchAiActivityKind;
135
+ isRunning: boolean;
136
+ };
114
137
  export type AiSearchConversationItem = {
115
138
  role: AiSearchConversationRole;
116
139
  content: string;
@@ -0,0 +1,2 @@
1
+ import type { Ref } from 'react';
2
+ export declare function assignRef<T>(ref: Ref<T> | undefined, value: T): void;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assignRef = assignRef;
4
+ function assignRef(ref, value) {
5
+ if (typeof ref === 'function') {
6
+ ref(value);
7
+ }
8
+ else if (ref) {
9
+ ref.current = value;
10
+ }
11
+ }
12
+ //# sourceMappingURL=assign-ref.js.map
@@ -1,2 +1,13 @@
1
- import type { ToolCall, ContentSegment } from '../types/search';
1
+ import type { ToolCall, ContentSegment, GroupedContentSegment } from '../types/search';
2
+ /**
3
+ * Splits an answer at its tool calls. A call made in the middle of a sentence or a code block is
4
+ * placed at the end of that paragraph, so the sentence reads as one piece.
5
+ */
2
6
  export declare function splitContentByToolCalls(content: string | undefined, toolCalls: ToolCall[] | undefined): ContentSegment[];
7
+ /**
8
+ * Groups consecutive tool calls and drops text that is only whitespace. While the answer is
9
+ * generated, an answer with nothing to show yet is one empty active group (the thinking status),
10
+ * and the last group is active until text that is not whitespace follows it.
11
+ */
12
+ export declare function groupToolCallSegments(segments: ContentSegment[], isGenerating?: boolean): GroupedContentSegment[];
13
+ export declare function hasToolCallsAndText(segments: ContentSegment[]): boolean;
@@ -1,22 +1,107 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.splitContentByToolCalls = splitContentByToolCalls;
4
+ exports.groupToolCallSegments = groupToolCallSegments;
5
+ exports.hasToolCallsAndText = hasToolCallsAndText;
6
+ const SENTENCE_END_MARKS = '.!?:;';
7
+ const CLOSING_MARKS = `"')]*_\``;
8
+ const CODE_FENCE = /^[ \t]*(```|~~~)/gm;
9
+ /**
10
+ * Splits an answer at its tool calls. A call made in the middle of a sentence or a code block is
11
+ * placed at the end of that paragraph, so the sentence reads as one piece.
12
+ */
4
13
  function splitContentByToolCalls(content, toolCalls) {
5
14
  if (!toolCalls || toolCalls.length === 0) {
6
15
  return [{ type: 'text', text: content || '' }];
7
16
  }
17
+ const text = content !== null && content !== void 0 ? content : '';
18
+ const fences = Array.from(text.matchAll(CODE_FENCE), (match) => match.index);
8
19
  const segments = [];
9
20
  let lastPos = 0;
10
21
  for (const toolCall of toolCalls) {
11
- if (content && toolCall.position > lastPos) {
12
- segments.push({ type: 'text', text: content.substring(lastPos, toolCall.position) });
22
+ const position = Math.max(lastPos, getBlockBoundary(text, toolCall.position, fences));
23
+ if (position > lastPos) {
24
+ segments.push({ type: 'text', text: text.substring(lastPos, position) });
13
25
  }
14
26
  segments.push({ type: 'tool', toolCall });
15
- lastPos = toolCall.position;
27
+ lastPos = position;
16
28
  }
17
- if (content && lastPos < content.length) {
18
- segments.push({ type: 'text', text: content.substring(lastPos) });
29
+ if (lastPos < text.length) {
30
+ segments.push({ type: 'text', text: text.substring(lastPos) });
19
31
  }
20
32
  return segments;
21
33
  }
34
+ function getBlockBoundary(content, position, fences) {
35
+ if (position <= 0 || position >= content.length) {
36
+ return position;
37
+ }
38
+ const isInsideCodeFence = (index) => {
39
+ let count = 0;
40
+ while (count < fences.length && fences[count] < index)
41
+ count++;
42
+ return count % 2 === 1;
43
+ };
44
+ if (!isInsideCodeFence(position) && endsBlockOrSentence(content, position)) {
45
+ return position;
46
+ }
47
+ for (let boundary = content.indexOf('\n\n', position); boundary !== -1; boundary = content.indexOf('\n\n', boundary + 2)) {
48
+ if (!isInsideCodeFence(boundary)) {
49
+ return boundary;
50
+ }
51
+ }
52
+ return content.length;
53
+ }
54
+ function endsBlockOrSentence(content, position) {
55
+ let index = position - 1;
56
+ while (index >= 0 && /\s/.test(content[index])) {
57
+ if (content[index] === '\n')
58
+ return true;
59
+ index--;
60
+ }
61
+ while (index >= 0 && CLOSING_MARKS.includes(content[index]))
62
+ index--;
63
+ return index >= 0 && SENTENCE_END_MARKS.includes(content[index]);
64
+ }
65
+ /**
66
+ * Groups consecutive tool calls and drops text that is only whitespace. While the answer is
67
+ * generated, an answer with nothing to show yet is one empty active group (the thinking status),
68
+ * and the last group is active until text that is not whitespace follows it.
69
+ */
70
+ function groupToolCallSegments(segments, isGenerating) {
71
+ var _a;
72
+ var _b;
73
+ const grouped = [];
74
+ let text = '';
75
+ for (const segment of segments) {
76
+ if (segment.type === 'text') {
77
+ text += segment.text;
78
+ if (segment.text.trim()) {
79
+ grouped.push(segment);
80
+ }
81
+ continue;
82
+ }
83
+ const previous = grouped.at(-1);
84
+ if ((previous === null || previous === void 0 ? void 0 : previous.type) === 'tools') {
85
+ previous.toolCalls.push(segment.toolCall);
86
+ }
87
+ else {
88
+ grouped.push({ type: 'tools', toolCalls: [segment.toolCall], isActive: false });
89
+ }
90
+ }
91
+ if (!isGenerating) {
92
+ return grouped;
93
+ }
94
+ const last = grouped.at(-1);
95
+ if ((last === null || last === void 0 ? void 0 : last.type) === 'tools') {
96
+ last.isActive = !text.slice((_b = (_a = last.toolCalls.at(-1)) === null || _a === void 0 ? void 0 : _a.position) !== null && _b !== void 0 ? _b : 0).trim();
97
+ }
98
+ else if (grouped.length === 0) {
99
+ return [{ type: 'tools', toolCalls: [], isActive: true }];
100
+ }
101
+ return grouped;
102
+ }
103
+ function hasToolCallsAndText(segments) {
104
+ return (segments.some((segment) => segment.type === 'tool') &&
105
+ segments.some((segment) => segment.type === 'text' && segment.text.trim().length > 0));
106
+ }
22
107
  //# sourceMappingURL=content-segments.js.map
@@ -0,0 +1,2 @@
1
+ import type { DropdownAlignment } from '../types/dropdown';
2
+ export declare function fitDropdownAlignment(anchor: DOMRect, menuWidth: number, alignment?: DropdownAlignment): DropdownAlignment;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fitDropdownAlignment = fitDropdownAlignment;
4
+ function fitDropdownAlignment(anchor, menuWidth, alignment = 'start') {
5
+ const fits = {
6
+ start: anchor.left + menuWidth <= window.innerWidth,
7
+ end: anchor.right - menuWidth >= 0,
8
+ };
9
+ const other = alignment === 'end' ? 'start' : 'end';
10
+ return fits[alignment] || !fits[other] ? alignment : other;
11
+ }
12
+ //# sourceMappingURL=dropdown.js.map
@@ -51,3 +51,5 @@ export * from './telemetry/get-base-data-attributes';
51
51
  export * from './telemetry/generate-before-after-context';
52
52
  export * from './RenderWithLink';
53
53
  export * from './consent-settings-link-placement';
54
+ export * from './assign-ref';
55
+ export * from './dropdown';
@@ -67,4 +67,6 @@ __exportStar(require("./telemetry/get-base-data-attributes"), exports);
67
67
  __exportStar(require("./telemetry/generate-before-after-context"), exports);
68
68
  __exportStar(require("./RenderWithLink"), exports);
69
69
  __exportStar(require("./consent-settings-link-placement"), exports);
70
+ __exportStar(require("./assign-ref"), exports);
71
+ __exportStar(require("./dropdown"), exports);
70
72
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,5 @@
1
- import type { MCPClientType, McpConnectionParams } from '../types';
1
+ import type { MCPClientType, McpConnectionParams, MCPOption } from '../types';
2
+ export declare function isMCPOption(value: unknown): value is MCPOption;
2
3
  export declare function generateMCPDeepLink(clientType: MCPClientType, config: McpConnectionParams): string;
3
4
  export declare function slugifyMcpServerName(name: string): string;
4
5
  export declare function generateClaudeCodeCommand(config: McpConnectionParams): string;
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMCPOption = isMCPOption;
3
4
  exports.generateMCPDeepLink = generateMCPDeepLink;
4
5
  exports.slugifyMcpServerName = slugifyMcpServerName;
5
6
  exports.generateClaudeCodeCommand = generateClaudeCodeCommand;
6
7
  exports.generateCodexCommand = generateCodexCommand;
7
8
  exports.generateMcpInstallPrompt = generateMcpInstallPrompt;
9
+ const mcp_1 = require("../constants/mcp");
10
+ function isMCPOption(value) {
11
+ return mcp_1.MCP_OPTIONS.includes(value);
12
+ }
8
13
  function generateCursorMCPDeepLink(config) {
9
14
  const cursorConfig = {
10
15
  url: config.url,
@@ -0,0 +1,4 @@
1
+ import type { TFunction } from '../types/l10n';
2
+ import { type SearchAiActivityStatus, type SearchAiActivityStep, type ToolCall } from '../types/search';
3
+ export declare function getSearchAiActivityStatus(toolCalls: ToolCall[], isActive: boolean, runningToolCall: ToolCall | undefined, translate: TFunction): SearchAiActivityStatus;
4
+ export declare function getSearchAiActivityStep(toolCall: ToolCall, isRunning: boolean, translate: TFunction): SearchAiActivityStep;