@redocly/theme 0.54.0-next.3 → 0.54.0-next.5

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 (298) hide show
  1. package/lib/components/Admonition/Admonition.d.ts +1 -0
  2. package/lib/components/Badge/Badge.d.ts +1 -1
  3. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
  4. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  5. package/lib/components/Button/Button.d.ts +1 -0
  6. package/lib/components/Buttons/EditPageButton.d.ts +1 -0
  7. package/lib/components/Buttons/EmailButton.d.ts +1 -0
  8. package/lib/components/Buttons/NewTabButton.d.ts +1 -0
  9. package/lib/components/CatalogLegacy/CatalogLegacy.d.ts +1 -0
  10. package/lib/components/CatalogLegacy/CatalogLegacyActions.d.ts +1 -0
  11. package/lib/components/CatalogLegacy/CatalogLegacyCard.d.ts +1 -0
  12. package/lib/components/CatalogLegacy/CatalogLegacyHighlight.d.ts +1 -0
  13. package/lib/components/CatalogLegacy/CatalogLegacyInfoBlock.d.ts +1 -0
  14. package/lib/components/CodeBlock/CodeBlock.d.ts +1 -0
  15. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +1 -1
  16. package/lib/components/CodeBlock/CodeBlockControls.d.ts +1 -0
  17. package/lib/components/CodeBlock/CodeBlockControls.js +14 -7
  18. package/lib/components/CodeBlock/CodeBlockTabs.d.ts +1 -0
  19. package/lib/components/CodeBlock/CodeBlockTabs.js +3 -1
  20. package/lib/components/ColorModeSwitcher/ColorModeIcon.d.ts +1 -0
  21. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +1 -0
  22. package/lib/components/Dropdown/Dropdown.d.ts +1 -1
  23. package/lib/components/Dropdown/DropdownMenu.d.ts +1 -1
  24. package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -1
  25. package/lib/components/Feedback/Comment.d.ts +1 -0
  26. package/lib/components/Feedback/Feedback.js +3 -3
  27. package/lib/components/Feedback/Mood.d.ts +1 -0
  28. package/lib/components/Feedback/Rating.d.ts +1 -0
  29. package/lib/components/Feedback/Reasons.d.ts +1 -0
  30. package/lib/components/Feedback/ReportDialog.d.ts +1 -0
  31. package/lib/components/Feedback/Scale.d.ts +1 -0
  32. package/lib/components/Feedback/Scale.js +1 -1
  33. package/lib/components/Feedback/Sentiment.d.ts +1 -0
  34. package/lib/components/Feedback/Sentiment.js +4 -4
  35. package/lib/components/Feedback/Stars.d.ts +1 -0
  36. package/lib/components/Filter/Filter.d.ts +1 -0
  37. package/lib/components/Filter/FilterCheckboxes.d.ts +1 -0
  38. package/lib/components/Filter/FilterContent.d.ts +1 -0
  39. package/lib/components/Filter/FilterDateRange.d.ts +1 -0
  40. package/lib/components/Filter/FilterInput.d.ts +1 -0
  41. package/lib/components/Filter/FilterOption.d.ts +1 -1
  42. package/lib/components/Filter/FilterOptionLabel.d.ts +1 -1
  43. package/lib/components/Filter/FilterOptions.d.ts +1 -1
  44. package/lib/components/Filter/FilterPopover.d.ts +1 -0
  45. package/lib/components/Filter/FilterPopover.js +1 -1
  46. package/lib/components/Filter/FilterSelect.d.ts +1 -0
  47. package/lib/components/Filter/FilterTitle.d.ts +1 -1
  48. package/lib/components/Footer/Footer.d.ts +1 -0
  49. package/lib/components/Footer/FooterColumn.d.ts +1 -0
  50. package/lib/components/Footer/FooterCopyright.d.ts +1 -0
  51. package/lib/components/Footer/FooterItem.d.ts +1 -0
  52. package/lib/components/Image/Image.d.ts +1 -0
  53. package/lib/components/LanguagePicker/LanguagePicker.d.ts +1 -0
  54. package/lib/components/LastUpdated/LastUpdated.d.ts +1 -0
  55. package/lib/components/Link/Link.d.ts +1 -0
  56. package/lib/components/Link/Link.js +2 -2
  57. package/lib/components/Loaders/Loading.d.ts +1 -0
  58. package/lib/components/Loaders/SpinnerLoader.d.ts +1 -0
  59. package/lib/components/Logo/Logo.d.ts +1 -0
  60. package/lib/components/Menu/Menu.d.ts +1 -0
  61. package/lib/components/Menu/MenuContainer.d.ts +1 -1
  62. package/lib/components/Menu/MenuItem.d.ts +1 -0
  63. package/lib/components/Menu/MenuItem.js +5 -4
  64. package/lib/components/Menu/MenuMobile.d.ts +1 -0
  65. package/lib/components/Menu/variables.js +2 -1
  66. package/lib/components/Navbar/Navbar.d.ts +1 -0
  67. package/lib/components/Navbar/NavbarItem.d.ts +1 -0
  68. package/lib/components/Navbar/NavbarMenu.d.ts +1 -0
  69. package/lib/components/PageNavigation/NextButton.d.ts +1 -0
  70. package/lib/components/PageNavigation/PageNavigation.d.ts +1 -0
  71. package/lib/components/PageNavigation/PreviousButton.d.ts +1 -0
  72. package/lib/components/Panel/Panel.d.ts +1 -1
  73. package/lib/components/Portal/Portal.d.ts +1 -1
  74. package/lib/components/Product/Product.d.ts +1 -0
  75. package/lib/components/Product/ProductPicker.d.ts +1 -0
  76. package/lib/components/Search/Search.d.ts +1 -0
  77. package/lib/components/Search/SearchAiConversationInput.d.ts +1 -0
  78. package/lib/components/Search/SearchAiDialog.d.ts +1 -0
  79. package/lib/components/Search/SearchAiMessage.d.ts +1 -0
  80. package/lib/components/Search/SearchAiResponse.d.ts +1 -0
  81. package/lib/components/Search/SearchDialog.d.ts +1 -0
  82. package/lib/components/Search/SearchFilter.d.ts +1 -0
  83. package/lib/components/Search/SearchFilterField.d.ts +1 -0
  84. package/lib/components/Search/SearchGroups.d.ts +1 -0
  85. package/lib/components/Search/SearchHighlight.d.ts +1 -0
  86. package/lib/components/Search/SearchInput.d.ts +2 -1
  87. package/lib/components/Search/SearchItem.d.ts +1 -0
  88. package/lib/components/Search/SearchItem.js +1 -1
  89. package/lib/components/Search/SearchRecent.d.ts +1 -0
  90. package/lib/components/Search/SearchShortcut.d.ts +1 -0
  91. package/lib/components/Search/SearchSuggestedPages.d.ts +1 -0
  92. package/lib/components/Search/SearchTrigger.d.ts +1 -0
  93. package/lib/components/Select/Select.d.ts +1 -0
  94. package/lib/components/Sidebar/Sidebar.d.ts +1 -0
  95. package/lib/components/SidebarActions/ChangeViewButton.d.ts +1 -0
  96. package/lib/components/SidebarLogo/SidebarLogo.d.ts +1 -0
  97. package/lib/components/Switch/Switch.d.ts +1 -0
  98. package/lib/components/TableOfContent/TableOfContent.d.ts +1 -0
  99. package/lib/components/Tag/Tag.d.ts +1 -0
  100. package/lib/components/Tooltip/Tooltip.d.ts +1 -1
  101. package/lib/components/Tooltip/TooltipWrapper.d.ts +3 -3
  102. package/lib/components/Tooltip/TooltipWrapper.js +2 -2
  103. package/lib/components/UserMenu/LoginButton.d.ts +1 -0
  104. package/lib/components/UserMenu/LogoutMenuItem.d.ts +1 -0
  105. package/lib/components/UserMenu/UserAvatar.d.ts +1 -0
  106. package/lib/components/UserMenu/UserInfoMenuItem.d.ts +1 -0
  107. package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -0
  108. package/lib/core/contexts/ThemeDataContext.d.ts +1 -0
  109. package/lib/core/hooks/__mocks__/use-element-size.d.ts +1 -1
  110. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +3 -0
  111. package/lib/core/hooks/__mocks__/use-theme-hooks.js +3 -0
  112. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +2 -2
  113. package/lib/core/hooks/menu/use-collapse.d.ts +2 -2
  114. package/lib/core/hooks/menu/use-collapse.js +2 -2
  115. package/lib/core/hooks/menu/use-mobile-menu-levels.js +1 -1
  116. package/lib/core/hooks/menu/use-nested-menu.d.ts +2 -2
  117. package/lib/core/hooks/use-codeblock-tabs-controls.d.ts +1 -1
  118. package/lib/core/hooks/use-dialog-hotkeys.d.ts +2 -2
  119. package/lib/core/hooks/use-dialog-hotkeys.js +2 -2
  120. package/lib/core/hooks/use-element-size.d.ts +2 -2
  121. package/lib/core/hooks/use-focus-trap.d.ts +1 -1
  122. package/lib/core/hooks/use-full-height.d.ts +2 -2
  123. package/lib/core/hooks/use-outside-click.d.ts +2 -2
  124. package/lib/core/hooks/use-time-ago.js +4 -5
  125. package/lib/core/types/hooks.d.ts +2 -2
  126. package/lib/core/types/index.d.ts +1 -0
  127. package/lib/core/types/index.js +1 -0
  128. package/lib/core/types/l10n.d.ts +1 -1
  129. package/lib/core/types/open-api-server.d.ts +9 -0
  130. package/lib/core/types/open-api-server.js +3 -0
  131. package/lib/core/types/select.d.ts +1 -0
  132. package/lib/ext/configure.d.ts +7 -2
  133. package/lib/ext/configure.js +50 -6
  134. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +1 -0
  135. package/lib/layouts/CodeWalkthroughLayout.d.ts +1 -0
  136. package/lib/layouts/DocumentationLayout.d.ts +1 -0
  137. package/lib/layouts/Forbidden.d.ts +1 -0
  138. package/lib/layouts/InternalServerErrorLayout.d.ts +1 -0
  139. package/lib/layouts/NotFound.d.ts +1 -0
  140. package/lib/layouts/OIDCForbidden.d.ts +1 -0
  141. package/lib/layouts/PageLayout.d.ts +1 -0
  142. package/lib/layouts/RootLayout.d.ts +1 -0
  143. package/lib/layouts/ThreePanelLayout.d.ts +1 -0
  144. package/lib/markdoc/components/CodeWalkthrough/CodeContainer.d.ts +1 -0
  145. package/lib/markdoc/components/CodeWalkthrough/CodeFilters.d.ts +1 -1
  146. package/lib/markdoc/components/CodeWalkthrough/CodePanel.d.ts +1 -0
  147. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.d.ts +1 -0
  148. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +3 -1
  149. package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.d.ts +1 -0
  150. package/lib/markdoc/components/CodeWalkthrough/CodePanelToolbar.d.ts +1 -0
  151. package/lib/markdoc/components/Heading/Heading.d.ts +1 -1
  152. package/lib/markdoc/components/MarkdocExample/MarkdocExample.d.ts +1 -1
  153. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +1 -1
  154. package/lib/markdoc/components/Mermaid/Mermaid.d.ts +1 -0
  155. package/lib/markdoc/components/Tabs/Tab.d.ts +1 -0
  156. package/lib/markdoc/components/Tabs/Tabs.d.ts +8 -7
  157. package/package.json +8 -8
  158. package/src/components/Admonition/Admonition.tsx +1 -1
  159. package/src/components/Badge/Badge.tsx +3 -1
  160. package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -0
  161. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -0
  162. package/src/components/Button/Button.tsx +1 -0
  163. package/src/components/Buttons/CopyButton.tsx +1 -0
  164. package/src/components/Buttons/EditPageButton.tsx +2 -0
  165. package/src/components/Buttons/EmailButton.tsx +2 -0
  166. package/src/components/Buttons/NewTabButton.tsx +2 -0
  167. package/src/components/CatalogLegacy/CatalogLegacy.tsx +1 -0
  168. package/src/components/CatalogLegacy/CatalogLegacyActions.tsx +1 -0
  169. package/src/components/CatalogLegacy/CatalogLegacyCard.tsx +1 -0
  170. package/src/components/CatalogLegacy/CatalogLegacyHighlight.tsx +2 -0
  171. package/src/components/CatalogLegacy/CatalogLegacyInfoBlock.tsx +2 -0
  172. package/src/components/CodeBlock/CodeBlock.tsx +1 -0
  173. package/src/components/CodeBlock/CodeBlockContainer.tsx +3 -1
  174. package/src/components/CodeBlock/CodeBlockControls.tsx +13 -6
  175. package/src/components/CodeBlock/CodeBlockTabs.tsx +4 -1
  176. package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +2 -0
  177. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +2 -0
  178. package/src/components/Dropdown/Dropdown.tsx +10 -2
  179. package/src/components/Dropdown/DropdownMenu.tsx +1 -1
  180. package/src/components/Dropdown/DropdownMenuItem.tsx +1 -1
  181. package/src/components/Feedback/Comment.tsx +2 -0
  182. package/src/components/Feedback/Feedback.tsx +3 -3
  183. package/src/components/Feedback/Mood.tsx +1 -0
  184. package/src/components/Feedback/Rating.tsx +1 -0
  185. package/src/components/Feedback/Reasons.tsx +2 -0
  186. package/src/components/Feedback/ReportDialog.tsx +1 -0
  187. package/src/components/Feedback/Scale.tsx +3 -2
  188. package/src/components/Feedback/Sentiment.tsx +5 -4
  189. package/src/components/Feedback/Stars.tsx +2 -0
  190. package/src/components/Filter/Filter.tsx +1 -0
  191. package/src/components/Filter/FilterCheckboxes.tsx +1 -0
  192. package/src/components/Filter/FilterContent.tsx +1 -0
  193. package/src/components/Filter/FilterDateRange.tsx +1 -0
  194. package/src/components/Filter/FilterInput.tsx +2 -0
  195. package/src/components/Filter/FilterOption.tsx +3 -1
  196. package/src/components/Filter/FilterOptionLabel.tsx +1 -1
  197. package/src/components/Filter/FilterOptions.tsx +3 -1
  198. package/src/components/Filter/FilterPopover.tsx +2 -1
  199. package/src/components/Filter/FilterSelect.tsx +1 -0
  200. package/src/components/Filter/FilterTitle.tsx +3 -1
  201. package/src/components/Footer/Footer.tsx +1 -0
  202. package/src/components/Footer/FooterColumn.tsx +1 -0
  203. package/src/components/Footer/FooterCopyright.tsx +2 -0
  204. package/src/components/Footer/FooterItem.tsx +1 -0
  205. package/src/components/Image/Image.tsx +3 -8
  206. package/src/components/JsonViewer/JsonViewer.tsx +1 -0
  207. package/src/components/JsonViewer/helpers.tsx +2 -0
  208. package/src/components/LanguagePicker/LanguagePicker.tsx +2 -0
  209. package/src/components/LastUpdated/LastUpdated.tsx +2 -0
  210. package/src/components/Link/Link.tsx +5 -1
  211. package/src/components/Loaders/Loading.tsx +2 -0
  212. package/src/components/Loaders/SpinnerLoader.tsx +2 -0
  213. package/src/components/Logo/Logo.tsx +1 -0
  214. package/src/components/Menu/Menu.tsx +1 -0
  215. package/src/components/Menu/MenuContainer.tsx +2 -1
  216. package/src/components/Menu/MenuItem.tsx +7 -3
  217. package/src/components/Menu/MenuMobile.tsx +2 -0
  218. package/src/components/Menu/variables.ts +2 -1
  219. package/src/components/Navbar/Navbar.tsx +1 -0
  220. package/src/components/Navbar/NavbarItem.tsx +1 -0
  221. package/src/components/Navbar/NavbarMenu.tsx +1 -0
  222. package/src/components/PageNavigation/NextButton.tsx +1 -0
  223. package/src/components/PageNavigation/PageNavigation.tsx +1 -0
  224. package/src/components/PageNavigation/PreviousButton.tsx +1 -0
  225. package/src/components/Panel/Panel.tsx +1 -1
  226. package/src/components/Portal/Portal.tsx +1 -1
  227. package/src/components/Product/Product.tsx +1 -0
  228. package/src/components/Product/ProductPicker.tsx +2 -0
  229. package/src/components/Search/Search.tsx +2 -0
  230. package/src/components/Search/SearchAiConversationInput.tsx +2 -0
  231. package/src/components/Search/SearchAiDialog.tsx +2 -0
  232. package/src/components/Search/SearchAiMessage.tsx +2 -0
  233. package/src/components/Search/SearchAiResponse.tsx +2 -0
  234. package/src/components/Search/SearchDialog.tsx +1 -1
  235. package/src/components/Search/SearchFilter.tsx +1 -0
  236. package/src/components/Search/SearchFilterField.tsx +1 -0
  237. package/src/components/Search/SearchGroups.tsx +2 -0
  238. package/src/components/Search/SearchHighlight.tsx +1 -0
  239. package/src/components/Search/SearchInput.tsx +2 -2
  240. package/src/components/Search/SearchItem.tsx +2 -1
  241. package/src/components/Search/SearchRecent.tsx +2 -0
  242. package/src/components/Search/SearchShortcut.tsx +2 -0
  243. package/src/components/Search/SearchSuggestedPages.tsx +2 -0
  244. package/src/components/Search/SearchTrigger.tsx +2 -0
  245. package/src/components/Select/Select.tsx +1 -0
  246. package/src/components/Sidebar/Sidebar.tsx +1 -0
  247. package/src/components/SidebarActions/ChangeViewButton.tsx +2 -0
  248. package/src/components/SidebarLogo/SidebarLogo.tsx +2 -0
  249. package/src/components/Switch/Switch.tsx +2 -0
  250. package/src/components/TableOfContent/TableOfContent.tsx +1 -0
  251. package/src/components/Tag/Tag.tsx +2 -0
  252. package/src/components/Tooltip/Tooltip.tsx +1 -1
  253. package/src/components/Tooltip/TooltipWrapper.tsx +5 -4
  254. package/src/components/UserMenu/LoginButton.tsx +2 -0
  255. package/src/components/UserMenu/LogoutMenuItem.tsx +2 -0
  256. package/src/components/UserMenu/UserAvatar.tsx +2 -0
  257. package/src/components/UserMenu/UserInfoMenuItem.tsx +2 -0
  258. package/src/components/UserMenu/UserMenuMobile.tsx +2 -0
  259. package/src/core/contexts/ThemeDataContext.tsx +1 -0
  260. package/src/core/hooks/__mocks__/use-theme-hooks.ts +3 -0
  261. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +2 -2
  262. package/src/core/hooks/menu/use-collapse.ts +4 -4
  263. package/src/core/hooks/menu/use-mobile-menu-levels.ts +1 -1
  264. package/src/core/hooks/menu/use-nested-menu.ts +2 -2
  265. package/src/core/hooks/use-codeblock-tabs-controls.ts +1 -1
  266. package/src/core/hooks/use-dialog-hotkeys.ts +4 -7
  267. package/src/core/hooks/use-element-size.ts +3 -3
  268. package/src/core/hooks/use-focus-trap.ts +1 -1
  269. package/src/core/hooks/use-full-height.ts +2 -2
  270. package/src/core/hooks/use-outside-click.ts +2 -2
  271. package/src/core/hooks/use-time-ago.ts +4 -4
  272. package/src/core/types/hooks.ts +1 -1
  273. package/src/core/types/index.ts +1 -0
  274. package/src/core/types/l10n.ts +9 -3
  275. package/src/core/types/open-api-server.ts +12 -0
  276. package/src/core/types/select.ts +1 -0
  277. package/src/ext/configure.ts +64 -8
  278. package/src/icons/MobileSidebarIcon/MobileSidebarIcon.tsx +1 -0
  279. package/src/layouts/CodeWalkthroughLayout.tsx +2 -0
  280. package/src/layouts/DocumentationLayout.tsx +1 -0
  281. package/src/layouts/Forbidden.tsx +2 -0
  282. package/src/layouts/InternalServerErrorLayout.tsx +2 -0
  283. package/src/layouts/NotFound.tsx +2 -0
  284. package/src/layouts/OIDCForbidden.tsx +2 -0
  285. package/src/layouts/PageLayout.tsx +2 -0
  286. package/src/layouts/RootLayout.tsx +2 -0
  287. package/src/layouts/ThreePanelLayout.tsx +2 -0
  288. package/src/markdoc/components/CodeWalkthrough/CodeContainer.tsx +2 -0
  289. package/src/markdoc/components/CodeWalkthrough/CodeFilters.tsx +1 -1
  290. package/src/markdoc/components/CodeWalkthrough/CodePanel.tsx +1 -0
  291. package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +4 -1
  292. package/src/markdoc/components/CodeWalkthrough/CodePanelPreview.tsx +2 -0
  293. package/src/markdoc/components/CodeWalkthrough/CodePanelToolbar.tsx +1 -0
  294. package/src/markdoc/components/Heading/Heading.tsx +1 -1
  295. package/src/markdoc/components/MarkdocExample/MarkdocExample.tsx +2 -2
  296. package/src/markdoc/components/Mermaid/Mermaid.tsx +2 -0
  297. package/src/markdoc/components/Tabs/Tab.tsx +2 -0
  298. package/src/markdoc/components/Tabs/Tabs.tsx +13 -3
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  type AdmonitionTypeProps = {
3
4
  type: 'warning' | 'success' | 'danger' | 'info';
4
5
  };
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren, JSX } from 'react';
2
2
  export type BadgeProps = PropsWithChildren<{
3
3
  deprecated?: boolean;
4
4
  color?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  type BreadcrumbProps = {
2
3
  label: string;
3
4
  link?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export declare function Breadcrumbs(props: {
2
3
  className?: string;
3
4
  }): JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  export type ButtonSize = 'small' | 'medium' | 'large' | string;
3
4
  export type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'text' | 'link' | 'ghost' | string;
4
5
  type ButtonTone = 'default' | 'danger';
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type EditPageButtonProps = {
2
3
  to: string;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type EmailButtonProps = {
2
3
  data: string;
3
4
  dataTestId?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type NewTabButtonProps = {
2
3
  data: string;
3
4
  dataTestId?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { CatalogConfig } from '../../config';
2
3
  export type CatalogLegacyProps = {
3
4
  pageProps: {
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedFilter } from '../../core/types';
2
3
  export type CatalogLegacyActionsProps = {
3
4
  onOpenFilter: () => void;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { CatalogItem } from '../../core/types';
2
3
  export type CatalogLegacyCardProps = {
3
4
  item: CatalogItem;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { JSX } from 'react';
2
3
  export declare const HighlightContext: React.Context<string[]>;
3
4
  export type CatalogLegacyHighlightProps = React.PropsWithChildren;
4
5
  export declare function CatalogLegacyHighlight(props: CatalogLegacyHighlightProps): JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type CatalogLegacyInfoBlockProps = {
2
3
  metadata?: {
3
4
  scorecardLevel?: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  import type { CodeBlockControlsProps } from '../../components/CodeBlock/CodeBlockControls';
3
4
  export type CodeBlockProps = {
4
5
  lang?: string;
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
2
2
  export type CodeBlockContainerProps = PropsWithChildren<{
3
3
  hideCodeColors?: boolean;
4
4
  maxHeight?: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  import type { FileTabs } from '../../components/CodeBlock/CodeBlock';
3
4
  export type CodeBlockControlsProps = {
4
5
  children?: React.ReactNode;
@@ -19,8 +19,8 @@ const Button_1 = require("../../components/Button/Button");
19
19
  function CodeBlockControls({ children, className, title, controls, tabs, }) {
20
20
  var _a, _b, _c, _d, _e;
21
21
  const { codeSnippet } = (0, hooks_1.useThemeConfig)();
22
- const { useTelemetry } = (0, hooks_1.useThemeHooks)();
23
- const telemetry = useTelemetry();
22
+ const { useOtelTelemetry } = (0, hooks_1.useThemeHooks)();
23
+ const otelTelemetry = useOtelTelemetry();
24
24
  const controlsType = (codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.elementFormat) || 'icon';
25
25
  const { copy, expand, collapse, select, deselect, report } = controls || {
26
26
  copy: null,
@@ -34,17 +34,24 @@ function CodeBlockControls({ children, className, title, controls, tabs, }) {
34
34
  title && react_1.default.createElement(Title, null, title),
35
35
  tabs && react_1.default.createElement(CodeBlockTabs_1.CodeBlockTabs, { tabs: tabs }),
36
36
  react_1.default.createElement(ControlsWrapper, null,
37
- report && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipKey: "codeSnippet.report.tooltipText", placement: "top" },
37
+ report && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipTranslationKey: "codeSnippet.report.tooltipText", placement: "top" },
38
38
  react_1.default.createElement(ControlButton, Object.assign({ variant: "text", size: "small", "data-testid": "report-button", icon: controlsType === 'icon' ? react_1.default.createElement(WarningSquareIcon_1.WarningSquareIcon, { size: "18px" }) : undefined }, report.props), controlsType != 'icon' && (((_b = report.props) === null || _b === void 0 ? void 0 : _b.buttonText) || 'Report')))) : null,
39
39
  expand && !((_c = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.expand) === null || _c === void 0 ? void 0 : _c.hide) ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "expand-all", icon: controlsType === 'icon' ? react_1.default.createElement(MaximizeIcon_1.MaximizeIcon, null) : undefined, onClick: expand === null || expand === void 0 ? void 0 : expand.onClick }, controlsType !== 'icon' && ((expand === null || expand === void 0 ? void 0 : expand.label) || 'Expand all'))) : null,
40
40
  collapse && !((_d = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.collapse) === null || _d === void 0 ? void 0 : _d.hide) ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "collapse-all", icon: controlsType === 'icon' ? react_1.default.createElement(MinimizeIcon_1.MinimizeIcon, null) : undefined, onClick: collapse === null || collapse === void 0 ? void 0 : collapse.onClick }, controlsType !== 'icon' && ((expand === null || expand === void 0 ? void 0 : expand.label) || 'Collapse all'))) : null,
41
41
  select ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "select-all", icon: controlsType === 'icon' ? react_1.default.createElement(SelectIcon_1.SelectIcon, null) : undefined, onClick: select === null || select === void 0 ? void 0 : select.onClick }, controlsType !== 'icon' && (select === null || select === void 0 ? void 0 : select.label) ? select.label : 'Select all')) : null,
42
42
  deselect ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "clear-all", icon: controlsType === 'icon' ? react_1.default.createElement(DeselectIcon_1.DeselectIcon, null) : undefined, onClick: deselect === null || deselect === void 0 ? void 0 : deselect.onClick }, controlsType !== 'icon' && (deselect === null || deselect === void 0 ? void 0 : deselect.label) ? deselect.label : 'Clear all')) : null,
43
- copy && !((_e = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.copy) === null || _e === void 0 ? void 0 : _e.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipKey: "codeSnippet.copy.tooltipText", placement: "top" },
43
+ copy && !((_e = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.copy) === null || _e === void 0 ? void 0 : _e.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipTranslationKey: "codeSnippet.copy.tooltipText", placement: "top" },
44
44
  react_1.default.createElement(CopyButton_1.CopyButton, { data: copy.data, "data-source": copy.dataSource, "data-hash": copy.dataHash, type: controlsType, toasterPlacement: copy.toasterPlacement, toasterDuration: copy.toasterDuration, buttonText: copy.label, onCopyClick: () => {
45
- var _a, _b;
46
- (_a = copy === null || copy === void 0 ? void 0 : copy.onClick) === null || _a === void 0 ? void 0 : _a.call(copy);
47
- (_b = telemetry === null || telemetry === void 0 ? void 0 : telemetry.send) === null || _b === void 0 ? void 0 : _b.call(telemetry, 'code_snippet_copied', {});
45
+ var _a;
46
+ // If there already is a click handler, events should be handled there, cause they pass additional data
47
+ if (copy === null || copy === void 0 ? void 0 : copy.onClick) {
48
+ (_a = copy === null || copy === void 0 ? void 0 : copy.onClick) === null || _a === void 0 ? void 0 : _a.call(copy);
49
+ }
50
+ else {
51
+ otelTelemetry.send('openapi_docs.copy_code_snippet.clicked', {
52
+ type: 'code',
53
+ });
54
+ }
48
55
  } }))) : null))) : null;
49
56
  return children || controls ? (react_1.default.createElement(ContainerWrapper, { "data-component-name": "CodeBlock/CodeBlockControls", className: className }, children ? children : defaultControls)) : null;
50
57
  }
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { FileTabs } from '../../components/CodeBlock/CodeBlock';
2
3
  export type CodeBlockTabsProps = {
3
4
  tabs: FileTabs;
@@ -47,7 +47,9 @@ function CodeBlockTabs({ tabs }) {
47
47
  }, [tabs.activeTabName]);
48
48
  return (react_1.default.createElement(CodeBlockTabsWrapper, { ref: containerRef, "data-component-name": "CodeBlock/CodeBlockTabs" },
49
49
  react_1.default.createElement(ShadowWrapper, null,
50
- react_1.default.createElement(Tabs, null, tabs.files.map(({ name }, i) => (react_1.default.createElement(Tab, { ref: (el) => (tabRefs.current[i] = el), "data-name": name, active: name === tabs.activeTabName, key: name, onClick: () => tabs.handleTabSwitch(name) },
50
+ react_1.default.createElement(Tabs, null, tabs.files.map(({ name }, i) => (react_1.default.createElement(Tab, { ref: (el) => {
51
+ tabRefs.current[i] = el;
52
+ }, "data-name": name, active: name === tabs.activeTabName, key: name, onClick: () => tabs.handleTabSwitch(name) },
51
53
  react_1.default.createElement(DocumentBlankIcon_1.DocumentBlankIcon, null),
52
54
  name))))),
53
55
  showControls && (react_1.default.createElement(Controls, null,
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type ColorModeIconProps = {
2
3
  mode?: 'dark' | 'light' | string;
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type ColorModeSwitcherProps = {
2
3
  className?: string;
3
4
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PropsWithChildren } from 'react';
2
+ import type { PropsWithChildren, JSX } from 'react';
3
3
  export type DropdownProps = PropsWithChildren<{
4
4
  trigger: React.ReactNode;
5
5
  triggerEvent?: 'click' | 'hover';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ReactNode } from 'react';
2
+ import type { ReactNode, JSX } from 'react';
3
3
  import type { DropdownMenuItemProps } from '../../components/Dropdown/DropdownMenuItem';
4
4
  export type DropdownMenuProps = {
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode, PropsWithChildren } from 'react';
1
+ import type { CSSProperties, ReactNode, PropsWithChildren, JSX } from 'react';
2
2
  import type { LinkProps } from '../../components/Link/Link';
3
3
  export type DropdownMenuItemProps = Partial<Pick<LinkProps, 'to' | 'target' | 'external'>> & {
4
4
  prefix?: ReactNode;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type CommentProps = {
2
3
  onSubmit: (value: {
3
4
  comment: string;
@@ -46,9 +46,9 @@ const feedbackComponents = {
46
46
  };
47
47
  function Feedback(props) {
48
48
  var _a;
49
- const { useSubmitFeedback, useTelemetry } = (0, hooks_1.useThemeHooks)();
49
+ const { useSubmitFeedback, useOtelTelemetry } = (0, hooks_1.useThemeHooks)();
50
50
  const { submitFeedback } = useSubmitFeedback();
51
- const telemetry = useTelemetry();
51
+ const otelTelemetry = useOtelTelemetry();
52
52
  const { pathname } = (0, react_router_dom_1.useLocation)();
53
53
  const { feedback: themeFeedbackConf } = (0, hooks_1.useThemeConfig)();
54
54
  const feedbackConf = Object.assign(Object.assign({}, themeFeedbackConf), { path: props === null || props === void 0 ? void 0 : props.path, type: (props === null || props === void 0 ? void 0 : props.type) || (themeFeedbackConf === null || themeFeedbackConf === void 0 ? void 0 : themeFeedbackConf.type) || constants_1.DEFAULT_FEEDBACK_TYPE, settings: (props === null || props === void 0 ? void 0 : props.settings) || (themeFeedbackConf === null || themeFeedbackConf === void 0 ? void 0 : themeFeedbackConf.settings) || {}, hide: (_a = props.hide) !== null && _a !== void 0 ? _a : themeFeedbackConf === null || themeFeedbackConf === void 0 ? void 0 : themeFeedbackConf.hide });
@@ -64,7 +64,7 @@ function Feedback(props) {
64
64
  return (React.createElement(FeedbackWrapper, { "data-component-name": "Feedback/Feedback" },
65
65
  React.createElement(FeedbackComponent, { settings: settings, onSubmit: (values) => {
66
66
  submitFeedback({ type, values, path });
67
- telemetry.send('feedback_sent', { type });
67
+ otelTelemetry.send('feedback.sent', { type });
68
68
  } })));
69
69
  };
70
70
  return React.createElement(React.Fragment, { key: pathname }, renderFeedbackComponent());
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { OptionalEmailSettings, ReasonsSettingsSchema } from '@redocly/config';
2
3
  export declare enum MOOD_STATES {
3
4
  SATISFIED = "satisfied",
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { OptionalEmailSettings } from '@redocly/config';
2
3
  export declare const FEEDBACK_MAX_RATING = 5;
3
4
  export type RatingProps = {
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type ReasonsProps = {
2
3
  onChange: (value: string[]) => void;
3
4
  settings: {
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { SubmitFeedbackParams } from '../../core/types';
2
3
  export type ReportDialogProps = {
3
4
  location: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { OptionalEmailSettings } from '@redocly/config';
2
3
  export declare const MAX_SCALE = 10;
3
4
  export type ScaleProps = {
@@ -120,7 +120,7 @@ function Scale({ settings, onSubmit, className }) {
120
120
  } }))),
121
121
  displaySubmitBnt && (React.createElement(ButtonsContainer, null,
122
122
  React.createElement(Button_1.Button, { "data-translation-key": "feedback.settings.comment.cancel", onClick: handleCancel, variant: "text", size: "small" }, translate('feedback.settings.comment.cancel', 'Cancel')),
123
- React.createElement(Button_1.Button, { "data-translation-key": "feedback.settings.scale.send", type: "submit", variant: "secondary", size: "small" }, translate('feedback.settings.scale.send', 'Submit')))))));
123
+ React.createElement(Button_1.Button, { "data-translation-key": "feedback.submit", type: "submit", variant: "secondary", size: "small" }, translate('feedback.submit', 'Submit')))))));
124
124
  }
125
125
  const ScaleWrapper = styled_components_1.default.div `
126
126
  font-family: var(--feedback-font-family);
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { OptionalEmailSettings, ReasonsSettingsSchema } from '@redocly/config';
2
3
  export type SentimentProps = {
3
4
  onSubmit: (value: {
@@ -129,10 +129,10 @@ function Sentiment({ settings, onSubmit, className }) {
129
129
  React.createElement(StyledMandatoryFieldContainer, null,
130
130
  React.createElement(Button_1.Button, { type: "button", size: "medium", variant: score === 1 ? 'primary' : 'secondary', onClick: () => {
131
131
  setScore(1);
132
- }, "aria-label": "Like", icon: React.createElement(ThumbUpIcon_1.ThumbUpIcon, null) }),
132
+ }, "aria-label": translate('feedback.sentiment.thumbUp', 'Like'), icon: React.createElement(ThumbUpIcon_1.ThumbUpIcon, null) }),
133
133
  React.createElement(Button_1.Button, { size: "medium", type: "button", variant: score === -1 ? 'primary' : 'secondary', tone: score === -1 ? 'danger' : 'default', onClick: () => {
134
134
  setScore(-1);
135
- }, "aria-label": "Dislike", icon: React.createElement(ThumbDownIcon_1.ThumbDownIcon, null) }))),
135
+ }, "aria-label": translate('feedback.sentiment.thumbDown', 'Dislike'), icon: React.createElement(ThumbDownIcon_1.ThumbDownIcon, null) }))),
136
136
  (displayReasons || displayComment) && (React.createElement(StyledFormOptionalFields, null,
137
137
  displayReasons && (React.createElement(Reasons_1.Reasons, { settings: {
138
138
  label: renderReasonsLabel(score),
@@ -151,8 +151,8 @@ function Sentiment({ settings, onSubmit, className }) {
151
151
  }
152
152
  } }))),
153
153
  displaySubmitBnt && (React.createElement(ButtonsContainer, null,
154
- React.createElement(Button_1.Button, { onClick: onCancelSentimentForm, variant: "text", size: "small" }, "Cancel"),
155
- React.createElement(Button_1.Button, { onClick: onSubmitSentimentForm, variant: "secondary", size: "small" }, "Submit"))))));
154
+ React.createElement(Button_1.Button, { onClick: onCancelSentimentForm, variant: "text", size: "small" }, translate('feedback.cancel', 'Cancel')),
155
+ React.createElement(Button_1.Button, { onClick: onSubmitSentimentForm, variant: "secondary", size: "small" }, translate('feedback.submit', 'Submit')))))));
156
156
  }
157
157
  const SentimentWrapper = styled_components_1.default.div `
158
158
  font-family: var(--font-family-base);
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type StarsProps = {
2
3
  max?: number;
3
4
  name?: string;
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { FilterProps } from '../../core/types';
2
3
  export declare function Filter({ filter, filterValuesCasing }: FilterProps): JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { FilterProps } from '../../core/types';
2
3
  export declare function FilterCheckboxes({ filter, filterValuesCasing }: FilterProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedFilter } from '../../core/types';
2
3
  import type { RedoclyConfig } from '../../config';
3
4
  export type FilterContentProps = {
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { FilterProps } from '../../core/types';
2
3
  export declare function FilterDateRange({ filter }: FilterProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type FilterInputProps = {
2
3
  value: string;
3
4
  onChange: (newValue: string) => void;
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
2
2
  export type FilterOptionProps = PropsWithChildren<{
3
3
  role?: string;
4
4
  key?: string;
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren, JSX } from 'react';
2
2
  export type FilterOptionLabelProps = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
2
2
  export type FilterOptionsProps = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedFilter } from '../../core/types';
2
3
  import type { RedoclyConfig } from '../../config';
3
4
  export type FilterPopoverProps = {
@@ -14,7 +14,7 @@ function FilterPopover({ onClose, filters, filterValuesCasing, filterTerm, setFi
14
14
  const { translate } = useTranslate();
15
15
  return (react_1.default.createElement(FilterPopoverWrapper, { "data-component-name": "Filter/FilterPopover" },
16
16
  react_1.default.createElement(FilterPopoverHeader, null,
17
- react_1.default.createElement(FilterPopoverHeaderLabel, { "data-translation-key": "catalog.filters.add" }, translate('catalog.filters.add', 'Add Filter')),
17
+ react_1.default.createElement(FilterPopoverHeaderLabel, { "data-translation-key": "catalog.filters.add" }, translate('catalog.filters.add', 'Add filter')),
18
18
  react_1.default.createElement(FilterPopoverHeaderButton, { onClick: onClose }, translate('catalog.filters.done', 'Done'))),
19
19
  react_1.default.createElement(FilterContent_1.FilterContent, { setFilterTerm: setFilterTerm, filters: filters, filterTerm: filterTerm, filterValuesCasing: filterValuesCasing })));
20
20
  }
@@ -1,2 +1,3 @@
1
+ import type { JSX } from 'react';
1
2
  import type { FilterProps } from '../../core/types';
2
3
  export declare function FilterSelect({ filter, filterValuesCasing }: FilterProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
2
2
  export type FilterTitleProps = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type FooterProps = {
2
3
  className?: string;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItem } from '@redocly/config';
2
3
  export type FooterColumnProps = {
3
4
  column: ResolvedNavItem;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type FooterCopyrightProps = {
2
3
  copyrightText: string;
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItem } from '@redocly/config';
2
3
  export type FooterItemProps = {
3
4
  item: ResolvedNavItem;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  export type ImageProps = {
3
4
  src?: string;
4
5
  srcSet?: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type LanguagePickerProps = {
2
3
  onChangeLanguage: (newLang: string) => void;
3
4
  onlyIcon?: boolean;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  type Formats = 'timeago' | 'iso' | 'short' | 'long';
2
3
  export type LastUpdatedProps = {
3
4
  lastModified: Date;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { JSX } from 'react';
2
3
  export type LinkProps = {
3
4
  to: string;
4
5
  target?: '_self' | '_blank';
@@ -46,8 +46,8 @@ function Link(props) {
46
46
  return React.createElement(LinkComponent, Object.assign({}, props));
47
47
  }
48
48
  else {
49
- const { active: _, httpVerb: _1, hasActiveSubItem: _2, routeSlug: _3, external: _4, innerRef } = props, filteredProps = __rest(props, ["active", "httpVerb", "hasActiveSubItem", "routeSlug", "external", "innerRef"]);
50
- // We omit "active" property to avoid "Warning: Received `false` for a non-boolean attribute `active`."
49
+ const { active: _, httpVerb: _1, hasActiveSubItem: _2, routeSlug: _3, external: _4, languageInsensitive: _5, iconPosition: _6, innerRef } = props, filteredProps = __rest(props, ["active", "httpVerb", "hasActiveSubItem", "routeSlug", "external", "languageInsensitive", "iconPosition", "innerRef"]);
50
+ // We omit properties to avoid "Warning: Received value for a non-boolean attribute"
51
51
  return React.createElement(react_router_dom_1.Link, Object.assign({ ref: innerRef }, filteredProps));
52
52
  }
53
53
  }
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type LoadingProps = {
2
3
  color: string;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type LoadingProps = {
2
3
  color: string;
3
4
  size: string;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { LogoConfig } from '../../core/types';
2
3
  export type LogoProps = {
3
4
  config: LogoConfig;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { DrilldownMenuItemDetails, ItemState } from '../../core/types';
2
3
  export type MenuListProps = {
3
4
  items: ItemState[];
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
2
2
  import type { MenuItemsAnimation } from '../../core/types';
3
3
  export type MenuContainerProps = PropsWithChildren<{
4
4
  growContent?: boolean;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
+ import type { JSX } from 'react';
2
3
  import type { MenuItemProps } from '../../core/types';
3
4
  export declare function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Element;
@@ -49,6 +49,7 @@ function MenuItem(props) {
49
49
  nestedMenuRef }));
50
50
  const telemetry = useTelemetry();
51
51
  const isDrilldown = type === constants_1.MenuItemType.DrillDown;
52
+ const isSeparator = type === constants_1.MenuItemType.Separator;
52
53
  const isNested = type === constants_1.MenuItemType.Group;
53
54
  const hasChevron = isNested && !isDrilldown;
54
55
  const hasHttpTag = !!item.httpVerb || type === constants_1.MenuItemType.Operation;
@@ -62,8 +63,8 @@ function MenuItem(props) {
62
63
  };
63
64
  const chevron = hasChevron ? (isExpanded ? (react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" })) : (react_1.default.createElement(ChevronRightIcon_1.ChevronRightIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" }))) : null;
64
65
  const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
65
- const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link', "data-testid": "menu-item-label" },
66
- react_1.default.createElement(ChevronWrapper, null, chevron),
66
+ const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, isSeparator: isSeparator, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link', "data-testid": "menu-item-label" },
67
+ hasChevron ? react_1.default.createElement(ChevronWrapper, null, chevron) : null,
67
68
  item.icon ? react_1.default.createElement(MenuItemIcon, { src: item.icon }) : null,
68
69
  react_1.default.createElement(MenuItemLabelTextWrapper, null,
69
70
  react_1.default.createElement(MenuItemLabel, null,
@@ -158,9 +159,9 @@ const MenuItemLabelWrapper = styled_components_1.default.li `
158
159
  padding: var(--menu-item-label-padding);
159
160
  gap: var(--menu-item-label-gap);
160
161
 
161
- padding-left: ${({ withChevron, depth }) => `calc(
162
+ padding-left: ${({ withChevron, depth, isSeparator }) => `calc(
162
163
  var(--menu-item-padding-horizontal) +
163
- ${!withChevron ? 'var(--menu-item-label-chevron-offset)' : '0px'} +
164
+ ${!withChevron ? 'var(--menu-item-label-chevron-offset) + ' + (isSeparator ? 'var(--menu-item-separator-offest)' : '0px') : '0px'} +
164
165
  ${depth ? 'var(--menu-item-nested-offset) * ' + depth : '0px'}
165
166
  )`};
166
167
 
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type MobileMenuProps = {
2
3
  className?: string;
3
4
  hideUserProfile?: boolean;
@@ -53,7 +53,7 @@ exports.menu = (0, styled_components_1.css) `
53
53
  --menu-item-label-margin-vertical: 0;
54
54
  --menu-item-label-margin: var(--menu-item-label-margin-vertical) var(--menu-item-label-margin-horizontal);
55
55
  --menu-item-label-padding: var(--menu-item-padding-vertical) var(--menu-item-padding-horizontal);
56
- --menu-item-label-gap: var(--spacing-xs);
56
+ --menu-item-label-gap: var(--spacing-xxs);
57
57
  --menu-item-label-border-radius: 6px;
58
58
  --menu-item-label-chevron-size: 12px;
59
59
  --menu-item-label-chevron-offset: calc(var(--menu-item-label-gap) + var(--menu-item-label-chevron-size));
@@ -81,6 +81,7 @@ exports.menu = (0, styled_components_1.css) `
81
81
  */
82
82
  --menu-item-separator-line-height: 1px;
83
83
  --menu-item-separator-line-bg-color: var(--border-color-secondary);
84
+ --menu-item-separator-offest: var(--spacing-xxs);
84
85
 
85
86
  /**
86
87
  * @tokens Menu back button
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  export type NavbarProps = {
2
3
  className?: string;
3
4
  };
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItem } from '@redocly/config';
2
3
  export type NavbarItemProps = {
3
4
  navItem: ResolvedNavItem;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedConfigLinks } from '@redocly/config';
2
3
  export type NavbarMenuProps = {
3
4
  menuItems: ResolvedConfigLinks;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItemWithLink } from '@redocly/config';
2
3
  export type NextPageType = {
3
4
  nextPage?: ResolvedNavItemWithLink | null;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItemWithLink } from '@redocly/config';
2
3
  export type PageNavigationType = {
3
4
  nextPage?: ResolvedNavItemWithLink | null;
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import type { ResolvedNavItemWithLink } from '@redocly/config';
2
3
  export type PreviousPageType = {
3
4
  prevPage?: ResolvedNavItemWithLink | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PropsWithChildren, ReactNode } from 'react';
2
+ import type { PropsWithChildren, ReactNode, JSX } from 'react';
3
3
  import type { PanelHeaderProps } from '../../components/Panel/PanelHeader';
4
4
  export type PanelProps = {
5
5
  expanded?: boolean;