@redocly/theme 0.59.0-next.0 → 0.59.0-next.10

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 (262) hide show
  1. package/LICENSE +7 -1
  2. package/lib/components/Accordion/Accordion.d.ts +12 -0
  3. package/lib/components/Accordion/Accordion.js +85 -0
  4. package/lib/components/Accordion/AccordionBody.d.ts +8 -0
  5. package/lib/components/Accordion/AccordionBody.js +73 -0
  6. package/lib/components/Accordion/AccordionHeader.d.ts +10 -0
  7. package/lib/components/Accordion/AccordionHeader.js +37 -0
  8. package/lib/components/Accordion/AccordionTitle.d.ts +6 -0
  9. package/lib/components/Accordion/AccordionTitle.js +20 -0
  10. package/lib/components/Accordion/variables.d.ts +1 -0
  11. package/lib/components/Accordion/variables.js +59 -0
  12. package/lib/components/Admonition/Admonition.js +17 -7
  13. package/lib/components/Badge/Badge.js +17 -7
  14. package/lib/components/Breadcrumbs/Breadcrumb.js +17 -7
  15. package/lib/components/Breadcrumbs/BreadcrumbDropdown.js +17 -7
  16. package/lib/components/Button/Button.js +17 -7
  17. package/lib/components/Buttons/AIAssistantButton.d.ts +2 -0
  18. package/lib/components/Buttons/AIAssistantButton.js +139 -0
  19. package/lib/components/Buttons/CopyButton.js +17 -7
  20. package/lib/components/Buttons/variables.d.ts +1 -0
  21. package/lib/components/Buttons/variables.dark.d.ts +1 -0
  22. package/lib/components/Buttons/variables.dark.js +10 -0
  23. package/lib/components/Buttons/variables.js +51 -0
  24. package/lib/components/Catalog/Catalog.d.ts +6 -0
  25. package/lib/components/Catalog/Catalog.js +9 -8
  26. package/lib/components/Catalog/CatalogEntities.js +17 -7
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +17 -7
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.js +17 -7
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +1 -0
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +17 -7
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +1 -1
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +17 -7
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +1 -1
  34. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +17 -7
  35. package/lib/components/Catalog/CatalogEntityIcon.js +2 -1
  36. package/lib/components/Catalog/CatalogFilter/CatalogFilter.d.ts +6 -0
  37. package/lib/components/Catalog/CatalogFilter/CatalogFilter.js +39 -0
  38. package/lib/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.d.ts +6 -0
  39. package/lib/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.js +152 -0
  40. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.d.ts +13 -0
  41. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.js +102 -0
  42. package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.d.ts +6 -0
  43. package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.js +121 -0
  44. package/lib/components/Catalog/CatalogFilter/CatalogFilterSelect.d.ts +6 -0
  45. package/lib/components/Catalog/CatalogFilter/CatalogFilterSelect.js +126 -0
  46. package/lib/components/Catalog/CatalogSelector.js +0 -1
  47. package/lib/components/Catalog/CatalogSortButton.js +17 -7
  48. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +17 -7
  49. package/lib/components/Catalog/CatalogViewModeToggle.js +17 -7
  50. package/lib/components/Catalog/variables.js +1 -2
  51. package/lib/components/CatalogClassic/CatalogClassicActions.js +17 -7
  52. package/lib/components/CatalogClassic/CatalogClassicCard.js +17 -7
  53. package/lib/components/CatalogClassic/CatalogClassicHighlight.js +17 -7
  54. package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.js +17 -7
  55. package/lib/components/CodeBlock/CodeBlock.js +17 -7
  56. package/lib/components/CodeBlock/CodeBlockContainer.js +17 -7
  57. package/lib/components/CodeBlock/CodeBlockTabs.js +17 -7
  58. package/lib/components/Dropdown/Dropdown.d.ts +16 -2
  59. package/lib/components/Dropdown/Dropdown.js +22 -12
  60. package/lib/components/Dropdown/DropdownMenuItem.js +17 -7
  61. package/lib/components/Feedback/Comment.js +17 -7
  62. package/lib/components/Feedback/Feedback.js +17 -7
  63. package/lib/components/Feedback/Mood.js +17 -7
  64. package/lib/components/Feedback/Rating.js +17 -7
  65. package/lib/components/Feedback/Reasons.js +17 -7
  66. package/lib/components/Feedback/Scale.js +17 -7
  67. package/lib/components/Feedback/Sentiment.js +17 -7
  68. package/lib/components/Feedback/Stars.js +17 -7
  69. package/lib/components/Filter/FilterContent.js +17 -7
  70. package/lib/components/Filter/FilterInput.d.ts +1 -0
  71. package/lib/components/Filter/FilterInput.js +19 -9
  72. package/lib/components/Filter/FilterOptions.js +2 -0
  73. package/lib/components/Filter/variables.js +7 -4
  74. package/lib/components/Image/Image.js +17 -7
  75. package/lib/components/JsonViewer/JsonViewer.js +17 -7
  76. package/lib/components/JsonViewer/helpers.js +17 -7
  77. package/lib/components/LastUpdated/LastUpdated.js +17 -7
  78. package/lib/components/Link/Link.js +17 -7
  79. package/lib/components/Markdown/Markdown.js +17 -7
  80. package/lib/components/Marker/Marker.js +17 -7
  81. package/lib/components/Menu/MenuContainer.js +17 -7
  82. package/lib/components/Menu/MenuItem.js +18 -8
  83. package/lib/components/Menu/MenuMobile.js +17 -7
  84. package/lib/components/Navbar/NavbarItem.js +3 -3
  85. package/lib/components/PageActions/PageActions.js +17 -7
  86. package/lib/components/PageNavigation/NextButton.js +17 -7
  87. package/lib/components/Panel/Panel.js +17 -7
  88. package/lib/components/Panel/PanelBody.js +17 -7
  89. package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +17 -7
  90. package/lib/components/Search/FilterFields/SearchFilterFieldTags.js +1 -2
  91. package/lib/components/Search/SearchAiActionButtons.d.ts +10 -0
  92. package/lib/components/Search/SearchAiActionButtons.js +43 -0
  93. package/lib/components/Search/SearchAiConversationInput.d.ts +3 -1
  94. package/lib/components/Search/SearchAiConversationInput.js +56 -14
  95. package/lib/components/Search/SearchAiDialog.d.ts +3 -6
  96. package/lib/components/Search/SearchAiDialog.js +39 -19
  97. package/lib/components/Search/SearchAiMessage.d.ts +9 -5
  98. package/lib/components/Search/SearchAiMessage.js +146 -22
  99. package/lib/components/Search/SearchAiNegativeFeedbackForm.d.ts +8 -0
  100. package/lib/components/Search/SearchAiNegativeFeedbackForm.js +169 -0
  101. package/lib/components/Search/SearchAiResponse.js +2 -3
  102. package/lib/components/Search/SearchDialog.d.ts +2 -1
  103. package/lib/components/Search/SearchDialog.js +55 -14
  104. package/lib/components/Search/SearchFilter.js +17 -7
  105. package/lib/components/Search/SearchGroups.js +19 -9
  106. package/lib/components/Search/SearchHighlight.js +17 -7
  107. package/lib/components/Search/SearchItem.js +17 -7
  108. package/lib/components/Search/SearchRecent.js +17 -7
  109. package/lib/components/Search/SearchShortcut.js +17 -7
  110. package/lib/components/Search/SearchSuggestedPages.js +17 -7
  111. package/lib/components/Search/SearchTrigger.js +17 -7
  112. package/lib/components/Search/variables.js +36 -64
  113. package/lib/components/Segmented/Segmented.js +17 -7
  114. package/lib/components/Select/Select.js +17 -7
  115. package/lib/components/Select/SelectInput.js +18 -8
  116. package/lib/components/Sidebar/Sidebar.js +17 -7
  117. package/lib/components/SidebarActions/styled.js +17 -7
  118. package/lib/components/SkipContent/SkipContent.js +17 -7
  119. package/lib/components/Switch/Switch.js +17 -7
  120. package/lib/components/TableOfContent/TableOfContent.js +17 -7
  121. package/lib/components/Tag/Tag.d.ts +2 -1
  122. package/lib/components/Tag/Tag.js +67 -18
  123. package/lib/components/Tag/variables.dark.js +137 -38
  124. package/lib/components/Tag/variables.js +78 -61
  125. package/lib/components/Tooltip/Tooltip.js +17 -7
  126. package/lib/components/VersionPicker/VersionPicker.js +17 -7
  127. package/lib/core/constants/search.d.ts +5 -4
  128. package/lib/core/constants/search.js +4 -5
  129. package/lib/core/contexts/CodeSnippetContext.js +17 -7
  130. package/lib/core/hooks/index.d.ts +1 -0
  131. package/lib/core/hooks/index.js +1 -0
  132. package/lib/core/hooks/menu/use-nested-menu.js +1 -1
  133. package/lib/core/hooks/search/use-feedback-tooltip.d.ts +6 -0
  134. package/lib/core/hooks/search/use-feedback-tooltip.js +26 -0
  135. package/lib/core/hooks/use-product-picker.js +2 -1
  136. package/lib/core/hooks/use-tabs.d.ts +3 -2
  137. package/lib/core/hooks/use-tabs.js +115 -57
  138. package/lib/core/hooks/use-telemetry-fallback.d.ts +10 -8
  139. package/lib/core/hooks/use-telemetry-fallback.js +10 -8
  140. package/lib/core/styles/dark.js +33 -26
  141. package/lib/core/styles/global.js +68 -59
  142. package/lib/core/templates/Markdown.js +17 -7
  143. package/lib/core/types/hooks.d.ts +6 -3
  144. package/lib/core/types/l10n.d.ts +1 -1
  145. package/lib/core/types/search.d.ts +11 -4
  146. package/lib/core/types/search.js +6 -0
  147. package/lib/core/utils/download-code-walkthrough.js +17 -7
  148. package/lib/core/utils/frontmatter-translate.d.ts +6 -0
  149. package/lib/core/utils/frontmatter-translate.js +14 -0
  150. package/lib/core/utils/get-file-icon.js +17 -7
  151. package/lib/core/utils/index.d.ts +1 -0
  152. package/lib/core/utils/index.js +1 -0
  153. package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.js +44 -4
  154. package/lib/icons/AiStarsIcon/AiStarsIcon.js +11 -2
  155. package/lib/icons/CubeIcon/CubeIcon.d.ts +9 -0
  156. package/lib/icons/CubeIcon/CubeIcon.js +17 -0
  157. package/lib/icons/GenericIcon/GenericIcon.js +17 -7
  158. package/lib/icons/HashtagIcon/HashtagIcon.d.ts +9 -0
  159. package/lib/icons/HashtagIcon/HashtagIcon.js +22 -0
  160. package/lib/icons/RedoclyIcon/RedoclyIcon.d.ts +9 -0
  161. package/lib/icons/RedoclyIcon/RedoclyIcon.js +24 -0
  162. package/lib/icons/Spinner/Spinner.js +17 -7
  163. package/lib/icons/ThumbDownFilledIcon/ThumbDownFilledIcon.d.ts +9 -0
  164. package/lib/icons/ThumbDownFilledIcon/ThumbDownFilledIcon.js +34 -0
  165. package/lib/icons/ThumbUpFilledIcon/ThumbUpFilledIcon.d.ts +9 -0
  166. package/lib/icons/ThumbUpFilledIcon/ThumbUpFilledIcon.js +34 -0
  167. package/lib/index.d.ts +3 -0
  168. package/lib/index.js +20 -7
  169. package/lib/layouts/OIDCForbidden.js +17 -7
  170. package/lib/layouts/RootLayout.js +6 -1
  171. package/lib/layouts/ThreePanelLayout.js +17 -7
  172. package/lib/markdoc/components/Cards/Card.js +1 -28
  173. package/lib/markdoc/components/Cards/Cards.js +17 -7
  174. package/lib/markdoc/components/CodeGroup/CodeGroup.js +17 -7
  175. package/lib/markdoc/components/CodeWalkthrough/CodeContainer.js +17 -7
  176. package/lib/markdoc/components/CodeWalkthrough/CodePanel.js +17 -7
  177. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +17 -7
  178. package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.js +17 -7
  179. package/lib/markdoc/components/CodeWalkthrough/CodePanelToolbar.js +17 -7
  180. package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +17 -7
  181. package/lib/markdoc/components/CodeWalkthrough/CodeToggle.js +17 -7
  182. package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +17 -7
  183. package/lib/markdoc/components/CodeWalkthrough/Input.js +17 -7
  184. package/lib/markdoc/components/Heading/Heading.js +17 -7
  185. package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +17 -7
  186. package/lib/markdoc/components/InlineSvg/InlineSvg.js +17 -7
  187. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +17 -7
  188. package/lib/markdoc/components/Tabs/TabList.d.ts +3 -1
  189. package/lib/markdoc/components/Tabs/TabList.js +214 -54
  190. package/lib/markdoc/components/Tabs/Tabs.d.ts +2 -1
  191. package/lib/markdoc/components/Tabs/Tabs.js +74 -19
  192. package/lib/markdoc/default.d.ts +104 -1
  193. package/lib/markdoc/default.js +17 -7
  194. package/lib/markdoc/tags/card.js +0 -1
  195. package/package.json +8 -8
  196. package/src/components/Accordion/Accordion.tsx +100 -0
  197. package/src/components/Accordion/AccordionBody.tsx +65 -0
  198. package/src/components/Accordion/AccordionHeader.tsx +68 -0
  199. package/src/components/Accordion/AccordionTitle.tsx +26 -0
  200. package/src/components/Accordion/variables.ts +56 -0
  201. package/src/components/Buttons/AIAssistantButton.tsx +145 -0
  202. package/src/components/Buttons/variables.dark.ts +7 -0
  203. package/src/components/Buttons/variables.ts +48 -0
  204. package/src/components/Catalog/Catalog.tsx +18 -6
  205. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +1 -0
  206. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +1 -1
  207. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +1 -1
  208. package/src/components/Catalog/CatalogEntityIcon.tsx +2 -1
  209. package/src/components/Catalog/CatalogFilter/CatalogFilter.tsx +61 -0
  210. package/src/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.tsx +169 -0
  211. package/src/components/Catalog/CatalogFilter/CatalogFilterContent.tsx +121 -0
  212. package/src/components/Catalog/CatalogFilter/CatalogFilterDateRange.tsx +147 -0
  213. package/src/components/Catalog/CatalogFilter/CatalogFilterSelect.tsx +136 -0
  214. package/src/components/Catalog/CatalogSelector.tsx +0 -1
  215. package/src/components/Catalog/variables.ts +1 -2
  216. package/src/components/Dropdown/Dropdown.tsx +84 -79
  217. package/src/components/Filter/FilterInput.tsx +3 -2
  218. package/src/components/Filter/FilterOptions.tsx +2 -0
  219. package/src/components/Filter/variables.ts +7 -4
  220. package/src/components/Menu/MenuItem.tsx +1 -0
  221. package/src/components/Navbar/NavbarItem.tsx +6 -5
  222. package/src/components/Search/FilterFields/SearchFilterFieldTags.tsx +3 -3
  223. package/src/components/Search/SearchAiActionButtons.tsx +76 -0
  224. package/src/components/Search/SearchAiConversationInput.tsx +61 -18
  225. package/src/components/Search/SearchAiDialog.tsx +54 -25
  226. package/src/components/Search/SearchAiMessage.tsx +172 -43
  227. package/src/components/Search/SearchAiNegativeFeedbackForm.tsx +210 -0
  228. package/src/components/Search/SearchAiResponse.tsx +2 -2
  229. package/src/components/Search/SearchDialog.tsx +56 -15
  230. package/src/components/Search/SearchGroups.tsx +2 -0
  231. package/src/components/Search/variables.ts +36 -64
  232. package/src/components/Select/SelectInput.tsx +1 -0
  233. package/src/components/Tag/Tag.tsx +36 -20
  234. package/src/components/Tag/variables.dark.ts +137 -38
  235. package/src/components/Tag/variables.ts +78 -61
  236. package/src/core/constants/search.ts +8 -4
  237. package/src/core/hooks/index.ts +1 -0
  238. package/src/core/hooks/menu/use-nested-menu.ts +2 -2
  239. package/src/core/hooks/search/use-feedback-tooltip.ts +32 -0
  240. package/src/core/hooks/use-product-picker.ts +2 -1
  241. package/src/core/hooks/use-tabs.ts +168 -86
  242. package/src/core/hooks/use-telemetry-fallback.ts +10 -8
  243. package/src/core/styles/dark.ts +15 -8
  244. package/src/core/styles/global.ts +11 -2
  245. package/src/core/types/hooks.ts +6 -1
  246. package/src/core/types/l10n.ts +6 -0
  247. package/src/core/types/search.ts +13 -4
  248. package/src/core/utils/frontmatter-translate.ts +9 -0
  249. package/src/core/utils/index.ts +1 -0
  250. package/src/icons/AiStarsGradientIcon/AiStarsGradientIcon.tsx +13 -4
  251. package/src/icons/AiStarsIcon/AiStarsIcon.tsx +11 -2
  252. package/src/icons/CubeIcon/CubeIcon.tsx +27 -0
  253. package/src/icons/HashtagIcon/HashtagIcon.tsx +23 -0
  254. package/src/icons/RedoclyIcon/RedoclyIcon.tsx +26 -0
  255. package/src/icons/ThumbDownFilledIcon/ThumbDownFilledIcon.tsx +38 -0
  256. package/src/icons/ThumbUpFilledIcon/ThumbUpFilledIcon.tsx +35 -0
  257. package/src/index.ts +3 -0
  258. package/src/layouts/RootLayout.tsx +6 -0
  259. package/src/markdoc/components/Cards/Card.tsx +1 -28
  260. package/src/markdoc/components/Tabs/TabList.tsx +312 -105
  261. package/src/markdoc/components/Tabs/Tabs.tsx +136 -11
  262. package/src/markdoc/tags/card.ts +0 -1
@@ -71,7 +71,7 @@ function useNestedMenu({ item, labelRef, nestedMenuRef }) {
71
71
  }
72
72
  const [firstChild] = item.items;
73
73
  if (!isExpanded && item.selectFirstItemOnExpand && firstChild.link) {
74
- yield (0, load_and_navigate_1.loadAndNavigate)({ navigate, to: firstChild.link });
74
+ yield (0, load_and_navigate_1.loadAndNavigate)({ navigate, to: (0, urls_1.withPathPrefix)(firstChild.link) });
75
75
  }
76
76
  setIsExpanded(!isExpanded);
77
77
  }), [item, isExpanded, navigate, location.pathname, setIsExpanded]);
@@ -0,0 +1,6 @@
1
+ type UseFeedbackTooltipReturn = {
2
+ isOpen: boolean;
3
+ showTooltip: () => void;
4
+ };
5
+ export declare function useFeedbackTooltip(): UseFeedbackTooltipReturn;
6
+ export {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useFeedbackTooltip = useFeedbackTooltip;
4
+ const react_1 = require("react");
5
+ const use_control_1 = require("../use-control");
6
+ const DEFAULT_TOOLTIP_DURATION = 1500;
7
+ function useFeedbackTooltip() {
8
+ const [closeTooltipTimeout, setCloseTooltipTimeout] = (0, react_1.useState)(null);
9
+ const tooltipControl = (0, use_control_1.useControl)();
10
+ const showTooltip = () => {
11
+ tooltipControl.handleOpen();
12
+ if (closeTooltipTimeout) {
13
+ clearTimeout(closeTooltipTimeout);
14
+ }
15
+ const newCloseTooltipTimeout = setTimeout(() => {
16
+ tooltipControl.handleClose();
17
+ setCloseTooltipTimeout(null);
18
+ }, DEFAULT_TOOLTIP_DURATION);
19
+ setCloseTooltipTimeout(newCloseTooltipTimeout);
20
+ };
21
+ return {
22
+ isOpen: tooltipControl.isOpened,
23
+ showTooltip,
24
+ };
25
+ }
26
+ //# sourceMappingURL=use-feedback-tooltip.js.map
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useProductPicker = useProductPicker;
4
4
  const react_router_dom_1 = require("react-router-dom");
5
5
  const use_theme_hooks_1 = require("./use-theme-hooks");
6
+ const utils_1 = require("../utils");
6
7
  function useProductPicker() {
7
8
  const { useCurrentProduct, useProducts, useTelemetry, useLoadAndNavigate } = (0, use_theme_hooks_1.useThemeHooks)();
8
9
  const currentProduct = useCurrentProduct();
@@ -14,7 +15,7 @@ function useProductPicker() {
14
15
  if (!product)
15
16
  return;
16
17
  telemetry.sendProductPickedMessage({ product: product.slug });
17
- loadAndNavigate({ navigate, to: product.link });
18
+ loadAndNavigate({ navigate, to: (0, utils_1.withPathPrefix)(product.link) });
18
19
  }
19
20
  return {
20
21
  currentProduct,
@@ -4,18 +4,19 @@ type UseTabsProps = {
4
4
  totalTabs: number;
5
5
  containerRef?: React.RefObject<HTMLElement | null>;
6
6
  };
7
- export declare function useTabs({ activeTab, onTabChange, totalTabs, containerRef }: UseTabsProps): {
7
+ type UseTabsReturn = {
8
8
  setTabRef: (element: HTMLButtonElement | null, index: number) => void;
9
9
  onTabClick: (labelOrIndex: string | number) => void;
10
10
  handleKeyboard: (event: React.KeyboardEvent, index: number) => void;
11
11
  visibleTabs: number[];
12
12
  overflowTabs: number[];
13
- allTabsHidden: boolean;
13
+ isReady: boolean;
14
14
  };
15
15
  type UseActiveTabProps = {
16
16
  initialTab: string;
17
17
  tabsId?: string;
18
18
  };
19
+ export declare function useTabs({ activeTab, onTabChange, totalTabs, containerRef, }: UseTabsProps): UseTabsReturn;
19
20
  export declare const useActiveTab: ({ initialTab, tabsId }: UseActiveTabProps) => {
20
21
  activeTab: string;
21
22
  setActiveTab: import("react").Dispatch<import("react").SetStateAction<string>>;
@@ -6,15 +6,20 @@ const react_1 = require("react");
6
6
  const react_router_dom_1 = require("react-router-dom");
7
7
  const MORE_BUTTON_WIDTH = 80;
8
8
  const TABS_GAP = 8;
9
- function useTabs({ activeTab, onTabChange, totalTabs, containerRef }) {
9
+ function useTabs({ activeTab, onTabChange, totalTabs, containerRef, }) {
10
10
  const [tabs, setTabs] = (0, react_1.useState)({
11
11
  visible: Array.from({ length: totalTabs }, (_, i) => i),
12
12
  overflow: [],
13
13
  });
14
+ const [isReady, setIsReady] = (0, react_1.useState)(false);
15
+ const isFirstCalculation = (0, react_1.useRef)(true);
14
16
  const tabRefs = (0, react_1.useRef)([]);
15
17
  const tabWidthsRef = (0, react_1.useRef)([]);
16
18
  const tabLabelsRef = (0, react_1.useRef)([]);
17
- const allTabsHidden = (0, react_1.useMemo)(() => tabs.visible.length === 0, [tabs.visible]);
19
+ const activeTabRef = (0, react_1.useRef)(activeTab);
20
+ const calculateVisibleTabsRef = (0, react_1.useRef)(null);
21
+ // Synchronously update ref before any callbacks or effects run
22
+ activeTabRef.current = activeTab;
18
23
  const setTabRef = (0, react_1.useCallback)((element, index) => {
19
24
  tabRefs.current[index] = element;
20
25
  const width = element === null || element === void 0 ? void 0 : element.offsetWidth;
@@ -25,18 +30,25 @@ function useTabs({ activeTab, onTabChange, totalTabs, containerRef }) {
25
30
  if (label) {
26
31
  tabLabelsRef.current[index] = label;
27
32
  }
28
- }, []);
29
- const focusTab = (index) => {
33
+ // Trigger calculation once all tabs are registered
34
+ if (isFirstCalculation.current &&
35
+ tabWidthsRef.current.length >= totalTabs &&
36
+ tabLabelsRef.current.length >= totalTabs &&
37
+ calculateVisibleTabsRef.current) {
38
+ requestAnimationFrame(calculateVisibleTabsRef.current);
39
+ }
40
+ }, [totalTabs]);
41
+ const focusTab = (0, react_1.useCallback)((index) => {
30
42
  const currentElement = tabRefs.current[index];
31
43
  currentElement === null || currentElement === void 0 ? void 0 : currentElement.focus();
32
- };
44
+ }, []);
33
45
  const onTabSelect = (0, react_1.useCallback)((index) => {
34
46
  var _a;
35
47
  focusTab(index);
36
48
  const label = (_a = tabRefs.current[index]) === null || _a === void 0 ? void 0 : _a.getAttribute('data-label');
37
49
  if (label)
38
50
  onTabChange(label);
39
- }, [onTabChange]);
51
+ }, [onTabChange, focusTab]);
40
52
  const handleKeyboard = (0, react_1.useCallback)((event, index) => {
41
53
  let newIndex = index;
42
54
  if (event.key === 'ArrowRight') {
@@ -59,109 +71,155 @@ function useTabs({ activeTab, onTabChange, totalTabs, containerRef }) {
59
71
  onTabSelect(newIndex);
60
72
  }, [totalTabs, onTabSelect]);
61
73
  const replaceLastVisibleTabWithClickedOverflowTab = (0, react_1.useCallback)((clickedIndex) => {
62
- const { visible: visibleTabs, overflow: overflowTabs } = tabs;
63
- // Indexes of visible tabs should be sorted(asc), to replace the last visible tab with the clicked tab
64
- const newVisibleTabs = [...visibleTabs].sort((a, b) => a - b);
65
- const newOverflowTabs = [...overflowTabs];
66
- const clickedIdxInOverflow = newOverflowTabs.indexOf(clickedIndex);
67
- if (clickedIdxInOverflow !== -1) {
68
- const lastVisible = newVisibleTabs[newVisibleTabs.length - 1];
69
- newOverflowTabs.splice(clickedIdxInOverflow, 1);
70
- newOverflowTabs.unshift(lastVisible);
71
- newVisibleTabs.splice(newVisibleTabs.length - 1, 1);
72
- newVisibleTabs.unshift(clickedIndex);
73
- }
74
- setTabs({
75
- visible: newVisibleTabs,
76
- overflow: newOverflowTabs,
74
+ setTabs((prevTabs) => {
75
+ const { visible: visibleTabs, overflow: overflowTabs } = prevTabs;
76
+ const sortedVisible = [...visibleTabs].sort((a, b) => a - b);
77
+ const lastVisible = sortedVisible[sortedVisible.length - 1];
78
+ return {
79
+ visible: visibleTabs.map((idx) => (idx === lastVisible ? clickedIndex : idx)),
80
+ overflow: overflowTabs.map((idx) => (idx === clickedIndex ? lastVisible : idx)),
81
+ };
77
82
  });
78
- }, [tabs]);
83
+ }, []);
79
84
  const onTabClick = (0, react_1.useCallback)((labelOrIndex) => {
80
85
  const clickedIndex = typeof labelOrIndex === 'string'
81
86
  ? tabRefs.current.findIndex((ref) => (ref === null || ref === void 0 ? void 0 : ref.getAttribute('data-label')) === labelOrIndex)
82
87
  : labelOrIndex;
83
88
  if (clickedIndex === -1)
84
89
  return;
85
- const hasOverflowTabs = tabs.overflow.length > 0;
86
- if (hasOverflowTabs && !allTabsHidden && tabs.overflow.includes(clickedIndex)) {
87
- replaceLastVisibleTabWithClickedOverflowTab(clickedIndex);
88
- }
89
90
  const label = tabLabelsRef.current[clickedIndex];
90
- if (label) {
91
- onTabChange(label);
92
- focusTab(clickedIndex);
91
+ if (!label)
92
+ return;
93
+ // If this is an overflow tab, replace it with a visible one
94
+ if (tabs.overflow.includes(clickedIndex)) {
95
+ replaceLastVisibleTabWithClickedOverflowTab(clickedIndex);
93
96
  }
94
- }, [allTabsHidden, tabs.overflow, onTabChange, replaceLastVisibleTabWithClickedOverflowTab]);
97
+ onTabChange(label);
98
+ focusTab(clickedIndex);
99
+ }, [tabs.overflow, onTabChange, replaceLastVisibleTabWithClickedOverflowTab, focusTab]);
95
100
  const calculateVisibleTabs = (0, react_1.useCallback)(() => {
96
101
  const container = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
97
102
  if (!container)
98
103
  return;
99
104
  const containerWidth = container.offsetWidth;
100
105
  const tabWidths = tabWidthsRef.current;
101
- const activeTabIndex = tabRefs.current.findIndex((ref) => (ref === null || ref === void 0 ? void 0 : ref.getAttribute('data-label')) === activeTab);
102
- // Active tab should always be visible, so we include it at the beginning of the array
106
+ const tabLabels = tabLabelsRef.current;
107
+ // Wait until all tabs are registered before calculating
108
+ if (tabWidths.length < totalTabs || tabLabels.length < totalTabs) {
109
+ return;
110
+ }
111
+ // Check if container has proper width (not zero)
112
+ if (containerWidth === 0) {
113
+ return;
114
+ }
115
+ // Find active tab index by label in tabLabelsRef, not by DOM element
116
+ // because tab might not be rendered if it's in overflow
117
+ const activeTabIndex = tabLabels.findIndex((label) => label === activeTabRef.current);
103
118
  let tabsWidth = activeTabIndex !== -1 ? tabWidths[activeTabIndex] : 0;
104
- const visible = activeTabIndex !== -1 ? [activeTabIndex] : [];
105
- const overflow = [];
119
+ const visibleTabs = activeTabIndex !== -1 ? [activeTabIndex] : [];
120
+ const overflowTabs = [];
106
121
  for (let i = 0; i < tabWidths.length; i++) {
107
- // Skip active tab, it was added initially
108
- if (i === activeTabIndex) {
122
+ if (i === activeTabIndex)
109
123
  continue;
110
- }
111
124
  const tabWidthWithGap = tabWidths[i] + TABS_GAP;
112
125
  const projectedWidth = tabsWidth + tabWidthWithGap;
113
126
  if (projectedWidth <= containerWidth) {
114
- visible.push(i);
127
+ visibleTabs.push(i);
115
128
  tabsWidth += tabWidthWithGap;
116
129
  }
117
130
  else {
118
- overflow.push(i);
131
+ overflowTabs.push(i);
119
132
  }
120
133
  }
121
- if (overflow.length > 0) {
134
+ if (overflowTabs.length > 0) {
122
135
  tabsWidth += MORE_BUTTON_WIDTH;
123
- // Remove tabs starting from the end of the array until the width of the visible tabs is less than the container width
124
- while (tabsWidth > containerWidth && visible.length) {
125
- const removed = visible.pop();
126
- if (removed !== undefined) {
127
- overflow.unshift(removed);
136
+ while (tabsWidth > containerWidth && visibleTabs.length > 1) {
137
+ const removed = visibleTabs.pop();
138
+ // Never remove the active tab - it should always stay visible or be the last one
139
+ if (removed !== undefined && removed !== activeTabIndex) {
140
+ overflowTabs.unshift(removed);
128
141
  tabsWidth -= tabWidths[removed];
129
142
  }
143
+ else if (removed === activeTabIndex) {
144
+ // Put it back if we accidentally removed the active tab
145
+ visibleTabs.push(removed);
146
+ break;
147
+ }
148
+ }
149
+ // If even with only the active tab visible, it doesn't fit with More button,
150
+ // move all tabs to overflow (show only dropdown)
151
+ if (tabsWidth > containerWidth && visibleTabs.length === 1) {
152
+ overflowTabs.unshift(...visibleTabs);
153
+ visibleTabs.length = 0;
130
154
  }
131
155
  }
132
156
  setTabs({
133
- visible,
134
- overflow,
157
+ visible: visibleTabs,
158
+ overflow: overflowTabs,
135
159
  });
136
- }, [containerRef, activeTab]);
160
+ // Set ready state on first calculation
161
+ if (isFirstCalculation.current) {
162
+ isFirstCalculation.current = false;
163
+ setIsReady(true);
164
+ }
165
+ }, [containerRef, totalTabs]);
166
+ // Store calculateVisibleTabs in ref for use in setTabRef
167
+ calculateVisibleTabsRef.current = calculateVisibleTabs;
168
+ // Reset isFirstCalculation when totalTabs changes (new page/tabs)
137
169
  (0, react_1.useEffect)(() => {
138
- if (!(containerRef === null || containerRef === void 0 ? void 0 : containerRef.current))
170
+ isFirstCalculation.current = true;
171
+ setIsReady(false);
172
+ // Clear refs so we wait for new tabs to register
173
+ tabWidthsRef.current = [];
174
+ tabLabelsRef.current = [];
175
+ }, [totalTabs]);
176
+ // Call calculateVisibleTabs on first render and resize
177
+ (0, react_1.useEffect)(() => {
178
+ const container = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
179
+ if (!container)
139
180
  return;
140
- let resizeTimeout = requestAnimationFrame(calculateVisibleTabs);
181
+ let resizeTimeout = null;
182
+ // Use ResizeObserver to wait until container has proper size
183
+ const resizeObserver = new ResizeObserver(() => {
184
+ if (resizeTimeout)
185
+ cancelAnimationFrame(resizeTimeout);
186
+ resizeTimeout = requestAnimationFrame(calculateVisibleTabs);
187
+ });
188
+ resizeObserver.observe(container);
141
189
  const handleResize = () => {
142
- if (resizeTimeout) {
190
+ if (resizeTimeout)
143
191
  cancelAnimationFrame(resizeTimeout);
144
- }
145
192
  resizeTimeout = requestAnimationFrame(calculateVisibleTabs);
146
193
  };
147
194
  window.addEventListener('resize', handleResize);
148
195
  return () => {
196
+ resizeObserver.disconnect();
149
197
  window.removeEventListener('resize', handleResize);
150
- cancelAnimationFrame(resizeTimeout);
198
+ if (resizeTimeout)
199
+ cancelAnimationFrame(resizeTimeout);
151
200
  };
152
201
  }, [containerRef, totalTabs, calculateVisibleTabs]);
202
+ // Recalculate when activeTab changes to ensure it's visible
203
+ (0, react_1.useEffect)(() => {
204
+ if (!(containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) || isFirstCalculation.current)
205
+ return;
206
+ requestAnimationFrame(calculateVisibleTabs);
207
+ }, [activeTab, containerRef, calculateVisibleTabs]);
153
208
  return {
154
209
  setTabRef,
155
210
  onTabClick,
156
211
  handleKeyboard,
157
212
  visibleTabs: tabs.visible,
158
213
  overflowTabs: tabs.overflow,
159
- allTabsHidden,
214
+ isReady,
160
215
  };
161
216
  }
162
217
  const useActiveTab = ({ initialTab, tabsId }) => {
163
218
  const [searchParams, setSearchParams] = (0, react_router_dom_1.useSearchParams)();
164
- const [activeTab, setActiveTab] = (0, react_1.useState)(getInitialTab({ initialTab, searchParams, tabsId }));
219
+ const initialTabValue = (0, react_1.useMemo)(() => getInitialTab({ initialTab, searchParams, tabsId }),
220
+ // eslint-disable-next-line react-hooks/exhaustive-deps
221
+ []);
222
+ const [activeTab, setActiveTab] = (0, react_1.useState)(initialTabValue);
165
223
  const prevActiveTabRef = (0, react_1.useRef)(activeTab);
166
224
  (0, react_1.useEffect)(() => {
167
225
  const hasActiveTabChanged = prevActiveTabRef.current !== activeTab;
@@ -174,10 +232,10 @@ const useActiveTab = ({ initialTab, tabsId }) => {
174
232
  return searchParams;
175
233
  });
176
234
  }, [activeTab, setSearchParams, tabsId]);
177
- return {
235
+ return (0, react_1.useMemo)(() => ({
178
236
  activeTab,
179
237
  setActiveTab,
180
- };
238
+ }), [activeTab]);
181
239
  };
182
240
  exports.useActiveTab = useActiveTab;
183
241
  const getInitialTab = ({ initialTab, searchParams, tabsId }) => {
@@ -36,20 +36,22 @@ export declare const useTelemetryFallback: () => {
36
36
  sendLanguagePickerLocaleChangedMessage: () => void;
37
37
  sendSearchOpenedMessage: () => void;
38
38
  sendSearchQueryMessage: () => void;
39
+ sendSearchAiOpenedMessage: () => void;
39
40
  sendSearchAIQueryMessage: () => void;
41
+ sendSearchAIFeedbackMessage: () => void;
40
42
  sendFeedbackMessage: () => void;
41
43
  sendSearchResultClickedMessage: () => void;
42
44
  sendRedirectMessage: () => void;
43
45
  sendOpenapiDocsMessage: () => void;
44
46
  sendCopyCodeSnippetClickedMessage: () => void;
45
- sendOpenapiDocsViewedMessage: () => void;
46
- sendOpenapiDocsPerformanceMetricsMessage: () => void;
47
- sendOpenapiDocsDownloadDefinitionClickedMessage: () => void;
48
- sendOpenapiDocsSelectLanguageClickedMessage: () => void;
49
- sendOpenapiDocsExpandCollapseAllClickedMessage: () => void;
50
- sendOpenapiDocsSwitchServersClickedMessage: () => void;
51
- sendOpenapiDocsExamplesSwitcherClickedMessage: () => void;
52
- sendOpenapiDocsTryItOpenedMessage: () => void;
47
+ sendViewedMessage: () => void;
48
+ sendPerformanceMetricsMessage: () => void;
49
+ sendDownloadDefinitionClickedMessage: () => void;
50
+ sendSelectLanguageClickedMessage: () => void;
51
+ sendExpandCollapseAllClickedMessage: () => void;
52
+ sendSwitchServersClickedMessage: () => void;
53
+ sendExamplesSwitcherClickedMessage: () => void;
54
+ sendTryItOpenedMessage: () => void;
53
55
  sendAsyncapiDocsViewedMessage: () => void;
54
56
  sendAsyncapiDocsPerformanceMetricsMessage: () => void;
55
57
  sendAsyncapiDocsSwitchMessageClickedMessage: () => void;
@@ -40,20 +40,22 @@ const useTelemetryFallback = () => ({
40
40
  sendLanguagePickerLocaleChangedMessage: () => { },
41
41
  sendSearchOpenedMessage: () => { },
42
42
  sendSearchQueryMessage: () => { },
43
+ sendSearchAiOpenedMessage: () => { },
43
44
  sendSearchAIQueryMessage: () => { },
45
+ sendSearchAIFeedbackMessage: () => { },
44
46
  sendFeedbackMessage: () => { },
45
47
  sendSearchResultClickedMessage: () => { },
46
48
  sendRedirectMessage: () => { },
47
49
  sendOpenapiDocsMessage: () => { },
48
50
  sendCopyCodeSnippetClickedMessage: () => { },
49
- sendOpenapiDocsViewedMessage: () => { },
50
- sendOpenapiDocsPerformanceMetricsMessage: () => { },
51
- sendOpenapiDocsDownloadDefinitionClickedMessage: () => { },
52
- sendOpenapiDocsSelectLanguageClickedMessage: () => { },
53
- sendOpenapiDocsExpandCollapseAllClickedMessage: () => { },
54
- sendOpenapiDocsSwitchServersClickedMessage: () => { },
55
- sendOpenapiDocsExamplesSwitcherClickedMessage: () => { },
56
- sendOpenapiDocsTryItOpenedMessage: () => { },
51
+ sendViewedMessage: () => { },
52
+ sendPerformanceMetricsMessage: () => { },
53
+ sendDownloadDefinitionClickedMessage: () => { },
54
+ sendSelectLanguageClickedMessage: () => { },
55
+ sendExpandCollapseAllClickedMessage: () => { },
56
+ sendSwitchServersClickedMessage: () => { },
57
+ sendExamplesSwitcherClickedMessage: () => { },
58
+ sendTryItOpenedMessage: () => { },
57
59
  sendAsyncapiDocsViewedMessage: () => { },
58
60
  sendAsyncapiDocsPerformanceMetricsMessage: () => { },
59
61
  sendAsyncapiDocsSwitchMessageClickedMessage: () => { },
@@ -6,15 +6,16 @@ const variables_dark_1 = require("../../components/Scorecard/variables.dark");
6
6
  const variables_dark_2 = require("../../markdoc/components/Mermaid/variables.dark");
7
7
  const variables_dark_3 = require("../../components/Menu/variables.dark");
8
8
  const variables_dark_4 = require("../../components/Button/variables.dark");
9
- const variables_dark_5 = require("../../components/Segmented/variables.dark");
10
- const variables_dark_6 = require("../../icons/CheckboxIcon/variables.dark");
11
- const variables_dark_7 = require("../../components/Tag/variables.dark");
12
- const variables_dark_8 = require("../../components/StatusCode/variables.dark");
13
- const variables_dark_9 = require("../../components/Switch/variables.dark");
14
- const variables_dark_10 = require("../../markdoc/components/Cards/variables.dark");
15
- const variables_dark_11 = require("../../components/Catalog/variables.dark");
16
- const variables_dark_12 = require("../../components/PageActions/variables.dark");
17
- const variables_dark_13 = require("../../components/Tooltip/variables.dark");
9
+ const variables_dark_5 = require("../../components/Buttons/variables.dark");
10
+ const variables_dark_6 = require("../../components/Segmented/variables.dark");
11
+ const variables_dark_7 = require("../../icons/CheckboxIcon/variables.dark");
12
+ const variables_dark_8 = require("../../components/Tag/variables.dark");
13
+ const variables_dark_9 = require("../../components/StatusCode/variables.dark");
14
+ const variables_dark_10 = require("../../components/Switch/variables.dark");
15
+ const variables_dark_11 = require("../../markdoc/components/Cards/variables.dark");
16
+ const variables_dark_12 = require("../../components/Catalog/variables.dark");
17
+ const variables_dark_13 = require("../../components/PageActions/variables.dark");
18
+ const variables_dark_14 = require("../../components/Tooltip/variables.dark");
18
19
  const replayDarkMode = (0, styled_components_1.css) `
19
20
  /**
20
21
  * @tokens Replay Colors
@@ -36,6 +37,10 @@ const replayDarkMode = (0, styled_components_1.css) `
36
37
  --replay-server-variable-bg-color-hover: rgba(31, 10, 144, 0.4); // @presenter Color
37
38
  --replay-path-parameter-bg-color-hover: rgba(5, 88, 99, 0.4); // @presenter Color
38
39
 
40
+ --replay-runtime-expression-color: rgba(147, 166, 249, 1); // @presenter Color
41
+ --replay-runtime-expression-bg-color: rgba(147, 166, 249, 0.16); // @presenter Color
42
+ --replay-operators-color: rgba(168, 143, 88, 1); // @presenter Color
43
+
39
44
  // @tokens End
40
45
  `;
41
46
  exports.darkMode = (0, styled_components_1.css) `
@@ -136,14 +141,15 @@ exports.darkMode = (0, styled_components_1.css) `
136
141
 
137
142
  --color-green-1: #1a4d40;
138
143
  --color-green-2: #195848;
139
- --color-green-3: #0e8450;
140
- --color-green-4: #149e53;
141
- --color-green-5: #1cb854;
142
- --color-green-6: #4dd470;
143
- --color-green-7: #72e985;
144
- --color-green-8: #a3f7a9;
145
- --color-green-9: #d2fbd0;
146
- --color-green-10: #edfbec;
144
+ --color-green-3: #136a4d;
145
+ --color-green-4: #0e8450;
146
+ --color-green-5: #149e53;
147
+ --color-green-6: #1cb854;
148
+ --color-green-7: #4dd470;
149
+ --color-green-8: #72e985;
150
+ --color-green-9: #a3f7a9;
151
+ --color-green-10: #d2fbd0;
152
+ --color-green-11: #edfbec;
147
153
 
148
154
  --color-grass-1: #1f4d2d;
149
155
  --color-grass-2: #164f29;
@@ -306,20 +312,21 @@ exports.darkMode = (0, styled_components_1.css) `
306
312
  --plus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H4.6875V6.79687C4.6875 6.83984 4.72266 6.875 4.76562 6.875H5.23438C5.27734 6.875 5.3125 6.83984 5.3125 6.79687V5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H5.3125V3.20312C5.3125 3.16016 5.27734 3.125 5.23438 3.125H4.76562C4.72266 3.125 4.6875 3.16016 4.6875 3.20312V4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
307
313
  --minus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
308
314
 
309
- ${variables_dark_5.segmentedButtonsDarkMode}
315
+ ${variables_dark_6.segmentedButtonsDarkMode}
310
316
  ${variables_dark_4.buttonDarkMode}
311
- ${variables_dark_6.checkboxDarkMode}
312
- ${variables_dark_7.tagDarkMode}
313
- ${variables_dark_8.statusCodeDarkMode}
317
+ ${variables_dark_5.aiAssistantButtonDarkMode}
318
+ ${variables_dark_7.checkboxDarkMode}
319
+ ${variables_dark_8.tagDarkMode}
320
+ ${variables_dark_9.statusCodeDarkMode}
314
321
  ${variables_dark_3.menuDarkMode}
315
322
  ${variables_dark_2.mermaidDarkMode}
316
323
  ${variables_dark_1.scorecardDarkMode}
317
324
  ${replayDarkMode}
318
- ${variables_dark_9.switcherDarkMode}
319
- ${variables_dark_10.cardsDarkMode}
320
- ${variables_dark_11.catalogDarkMode}
321
- ${variables_dark_12.pageActionsDarkMode}
322
- ${variables_dark_13.tooltipDarkMode}
325
+ ${variables_dark_10.switcherDarkMode}
326
+ ${variables_dark_11.cardsDarkMode}
327
+ ${variables_dark_12.catalogDarkMode}
328
+ ${variables_dark_13.pageActionsDarkMode}
329
+ ${variables_dark_14.tooltipDarkMode}
323
330
 
324
331
  /**
325
332
  * @tokens Dark Theme Scrollbar Config