@redocly/theme 0.56.0-rc.2 → 0.56.1

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 (870) hide show
  1. package/lib/components/Admonition/Admonition.js +21 -11
  2. package/lib/components/Badge/Badge.js +17 -7
  3. package/lib/components/Breadcrumbs/Breadcrumb.js +1 -1
  4. package/lib/components/Breadcrumbs/Breadcrumbs.js +3 -3
  5. package/lib/components/Button/Button.d.ts +1 -1
  6. package/lib/components/Button/Button.js +21 -9
  7. package/lib/components/Button/ButtonGroup.d.ts +12 -0
  8. package/lib/components/Button/ButtonGroup.js +38 -0
  9. package/lib/components/Button/variables.js +32 -5
  10. package/lib/components/Buttons/CopyButton.d.ts +2 -2
  11. package/lib/components/Buttons/CopyButton.js +22 -12
  12. package/lib/components/Buttons/EditPageButton.js +3 -3
  13. package/lib/components/Buttons/EmailButton.js +2 -2
  14. package/lib/components/Buttons/NewTabButton.js +2 -2
  15. package/lib/components/Catalog/Catalog.d.ts +2 -2
  16. package/lib/components/Catalog/Catalog.js +12 -12
  17. package/lib/components/Catalog/CatalogActionsRow.d.ts +1 -1
  18. package/lib/components/Catalog/CatalogActionsRow.js +3 -3
  19. package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +1 -1
  20. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +18 -13
  21. package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +1 -1
  22. package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +1 -1
  23. package/lib/components/Catalog/CatalogEntities.d.ts +1 -1
  24. package/lib/components/Catalog/CatalogEntities.js +24 -14
  25. package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +5 -1
  26. package/lib/components/Catalog/CatalogEntitiesEmptyState.js +25 -4
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +2 -4
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +29 -25
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +4 -2
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +15 -7
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +1 -1
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +9 -9
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +1 -1
  34. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +39 -12
  35. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.d.ts +6 -0
  36. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +47 -0
  37. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +1 -1
  38. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +10 -3
  39. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +1 -1
  40. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +15 -9
  41. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +2 -1
  42. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +12 -5
  43. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +1 -1
  44. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +4 -4
  45. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +1 -1
  46. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +4 -4
  47. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +1 -1
  48. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +10 -5
  49. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +6 -0
  50. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +19 -0
  51. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +1 -1
  52. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +5 -5
  53. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +1 -1
  54. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +3 -3
  55. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +1 -1
  56. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +5 -4
  57. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +1 -1
  58. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +3 -3
  59. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -2
  60. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +7 -13
  61. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +4 -2
  62. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +22 -16
  63. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +5 -4
  64. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +10 -10
  65. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +1 -1
  66. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +11 -11
  67. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.d.ts +6 -0
  68. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +55 -0
  69. package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
  70. package/lib/components/Catalog/CatalogEntityIcon.js +26 -33
  71. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +2 -1
  72. package/lib/components/Catalog/CatalogEntityTypeIcon.js +11 -23
  73. package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +7 -0
  74. package/lib/components/Catalog/CatalogEntityTypeTag.js +40 -0
  75. package/lib/components/Catalog/CatalogPageDescription.js +5 -5
  76. package/lib/components/Catalog/CatalogSelector.d.ts +2 -2
  77. package/lib/components/Catalog/CatalogSelector.js +6 -5
  78. package/lib/components/Catalog/CatalogSortButton.d.ts +1 -1
  79. package/lib/components/Catalog/CatalogSortButton.js +28 -18
  80. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +2 -1
  81. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +1 -1
  82. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +4 -16
  83. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.d.ts +1 -1
  84. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.js +1 -1
  85. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +2 -1
  86. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -2
  87. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +21 -15
  88. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +3 -3
  89. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +11 -38
  90. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -2
  91. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +17 -42
  92. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +1 -1
  93. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +2 -1
  94. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +9 -5
  95. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +1 -1
  96. package/lib/components/Catalog/CatalogTagsWithTooltip.js +5 -5
  97. package/lib/components/Catalog/CatalogViewModeToggle.d.ts +1 -1
  98. package/lib/components/Catalog/CatalogViewModeToggle.js +19 -9
  99. package/lib/components/Catalog/variables.js +42 -8
  100. package/lib/components/CatalogClassic/CatalogClassic.d.ts +1 -1
  101. package/lib/components/CatalogClassic/CatalogClassic.js +9 -9
  102. package/lib/components/CatalogClassic/CatalogClassicActions.d.ts +1 -1
  103. package/lib/components/CatalogClassic/CatalogClassicActions.js +22 -12
  104. package/lib/components/CatalogClassic/CatalogClassicCard.d.ts +1 -1
  105. package/lib/components/CatalogClassic/CatalogClassicCard.js +24 -14
  106. package/lib/components/CatalogClassic/CatalogClassicHighlight.js +17 -7
  107. package/lib/components/CatalogClassic/CatalogClassicInfoBlock.js +4 -4
  108. package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.d.ts +1 -1
  109. package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.js +21 -11
  110. package/lib/components/CodeBlock/CodeBlock.d.ts +17 -7
  111. package/lib/components/CodeBlock/CodeBlock.js +25 -14
  112. package/lib/components/CodeBlock/CodeBlockContainer.js +18 -8
  113. package/lib/components/CodeBlock/CodeBlockControls.d.ts +4 -3
  114. package/lib/components/CodeBlock/CodeBlockControls.js +45 -18
  115. package/lib/components/CodeBlock/CodeBlockDropdown.d.ts +3 -0
  116. package/lib/components/CodeBlock/CodeBlockDropdown.js +35 -0
  117. package/lib/components/CodeBlock/CodeBlockTabs.d.ts +2 -2
  118. package/lib/components/CodeBlock/CodeBlockTabs.js +39 -20
  119. package/lib/components/CodeBlock/variables.js +1 -1
  120. package/lib/components/ColorModeSwitcher/ColorModeIcon.js +3 -3
  121. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -3
  122. package/lib/components/Dropdown/Dropdown.js +21 -10
  123. package/lib/components/Dropdown/DropdownMenu.d.ts +1 -1
  124. package/lib/components/Dropdown/DropdownMenu.js +5 -1
  125. package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -1
  126. package/lib/components/Dropdown/DropdownMenuItem.js +18 -8
  127. package/lib/components/Dropdown/variables.js +1 -0
  128. package/lib/components/Feedback/Comment.js +20 -10
  129. package/lib/components/Feedback/Feedback.d.ts +1 -1
  130. package/lib/components/Feedback/Feedback.js +25 -15
  131. package/lib/components/Feedback/Mood.js +25 -15
  132. package/lib/components/Feedback/Rating.js +23 -13
  133. package/lib/components/Feedback/Reasons.js +18 -8
  134. package/lib/components/Feedback/ReportDialog.d.ts +1 -1
  135. package/lib/components/Feedback/ReportDialog.js +3 -3
  136. package/lib/components/Feedback/Scale.js +23 -13
  137. package/lib/components/Feedback/Sentiment.js +24 -14
  138. package/lib/components/Feedback/Stars.js +19 -9
  139. package/lib/components/Filter/Filter.d.ts +1 -1
  140. package/lib/components/Filter/Filter.js +3 -3
  141. package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
  142. package/lib/components/Filter/FilterCheckboxes.js +13 -10
  143. package/lib/components/Filter/FilterContent.d.ts +2 -2
  144. package/lib/components/Filter/FilterContent.js +22 -12
  145. package/lib/components/Filter/FilterDateRange.d.ts +1 -1
  146. package/lib/components/Filter/FilterDateRange.js +5 -5
  147. package/lib/components/Filter/FilterInput.js +19 -9
  148. package/lib/components/Filter/FilterPopover.d.ts +2 -2
  149. package/lib/components/Filter/FilterPopover.js +3 -3
  150. package/lib/components/Filter/FilterSelect.d.ts +1 -1
  151. package/lib/components/Filter/FilterSelect.js +7 -7
  152. package/lib/components/Footer/Footer.js +5 -5
  153. package/lib/components/Footer/FooterColumn.js +3 -3
  154. package/lib/components/Footer/FooterCopyright.js +2 -2
  155. package/lib/components/Footer/FooterItem.js +8 -11
  156. package/lib/components/Footer/variables.js +2 -2
  157. package/lib/components/Image/Image.js +20 -8
  158. package/lib/components/JsonViewer/JsonViewer.d.ts +1 -1
  159. package/lib/components/JsonViewer/JsonViewer.js +18 -8
  160. package/lib/components/JsonViewer/helpers.js +19 -9
  161. package/lib/components/LanguagePicker/LanguagePicker.js +7 -7
  162. package/lib/components/LastUpdated/LastUpdated.js +19 -9
  163. package/lib/components/Link/Link.js +18 -8
  164. package/lib/components/LoadMore/LoadMore.js +1 -1
  165. package/lib/components/Loaders/Loading.js +2 -2
  166. package/lib/components/Logo/Logo.d.ts +1 -1
  167. package/lib/components/Logo/Logo.js +3 -3
  168. package/lib/components/Markdown/Markdown.js +29 -19
  169. package/lib/components/Markdown/styles/headingAnchor.js +0 -1
  170. package/lib/components/Marker/Marker.d.ts +1 -1
  171. package/lib/components/Marker/Marker.js +17 -7
  172. package/lib/components/Menu/Menu.d.ts +1 -1
  173. package/lib/components/Menu/Menu.js +3 -3
  174. package/lib/components/Menu/MenuContainer.d.ts +1 -1
  175. package/lib/components/Menu/MenuContainer.js +17 -7
  176. package/lib/components/Menu/MenuItem.d.ts +1 -1
  177. package/lib/components/Menu/MenuItem.js +32 -22
  178. package/lib/components/Menu/MenuMobile.js +27 -17
  179. package/lib/components/Menu/variables.js +3 -1
  180. package/lib/components/Navbar/Navbar.js +13 -13
  181. package/lib/components/Navbar/NavbarItem.js +15 -46
  182. package/lib/components/Navbar/NavbarLogo.d.ts +1 -1
  183. package/lib/components/Navbar/NavbarLogo.js +1 -1
  184. package/lib/components/Navbar/NavbarMenu.js +2 -2
  185. package/lib/components/Navbar/variables.js +2 -2
  186. package/lib/components/PageActions/PageActions.d.ts +6 -0
  187. package/lib/components/PageActions/PageActions.js +114 -0
  188. package/lib/components/PageActions/PageActionsMenuItem.d.ts +7 -0
  189. package/lib/components/PageActions/PageActionsMenuItem.js +58 -0
  190. package/lib/components/PageActions/variables.d.ts +1 -0
  191. package/lib/components/PageActions/variables.dark.d.ts +1 -0
  192. package/lib/components/PageActions/variables.dark.js +9 -0
  193. package/lib/components/PageActions/variables.js +37 -0
  194. package/lib/components/PageNavigation/NavigationButton.js +3 -3
  195. package/lib/components/PageNavigation/NextButton.js +20 -10
  196. package/lib/components/PageNavigation/PageNavigation.js +3 -3
  197. package/lib/components/PageNavigation/PreviousButton.js +3 -3
  198. package/lib/components/Panel/Panel.d.ts +1 -1
  199. package/lib/components/Panel/Panel.js +22 -12
  200. package/lib/components/Panel/PanelBody.js +17 -7
  201. package/lib/components/Portal/Portal.js +1 -1
  202. package/lib/components/Product/Product.d.ts +1 -1
  203. package/lib/components/Product/ProductPicker.js +7 -7
  204. package/lib/components/Search/FilterFields/SearchFilterFieldSelect.d.ts +1 -1
  205. package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +20 -10
  206. package/lib/components/Search/FilterFields/SearchFilterFieldTags.d.ts +1 -1
  207. package/lib/components/Search/FilterFields/SearchFilterFieldTags.js +1 -1
  208. package/lib/components/Search/Search.js +3 -3
  209. package/lib/components/Search/SearchAiConversationInput.js +21 -11
  210. package/lib/components/Search/SearchAiDialog.d.ts +2 -2
  211. package/lib/components/Search/SearchAiDialog.js +24 -14
  212. package/lib/components/Search/SearchAiMessage.d.ts +1 -1
  213. package/lib/components/Search/SearchAiMessage.js +7 -7
  214. package/lib/components/Search/SearchAiResponse.d.ts +1 -1
  215. package/lib/components/Search/SearchAiResponse.js +12 -12
  216. package/lib/components/Search/SearchDialog.js +40 -30
  217. package/lib/components/Search/SearchFilter.d.ts +1 -1
  218. package/lib/components/Search/SearchFilter.js +21 -11
  219. package/lib/components/Search/SearchFilterField.d.ts +1 -1
  220. package/lib/components/Search/SearchFilterField.js +5 -5
  221. package/lib/components/Search/SearchGroups.d.ts +1 -1
  222. package/lib/components/Search/SearchGroups.js +18 -8
  223. package/lib/components/Search/SearchHighlight.js +17 -7
  224. package/lib/components/Search/SearchInput.js +6 -6
  225. package/lib/components/Search/SearchItem.d.ts +1 -1
  226. package/lib/components/Search/SearchItem.js +24 -14
  227. package/lib/components/Search/SearchRecent.js +22 -12
  228. package/lib/components/Search/SearchShortcut.js +17 -7
  229. package/lib/components/Search/SearchSuggestedPages.js +20 -10
  230. package/lib/components/Search/SearchTrigger.js +21 -11
  231. package/lib/components/Segmented/Segmented.d.ts +1 -1
  232. package/lib/components/Segmented/Segmented.js +18 -8
  233. package/lib/components/Select/Select.d.ts +1 -1
  234. package/lib/components/Select/Select.js +23 -13
  235. package/lib/components/Select/SelectInput.d.ts +1 -1
  236. package/lib/components/Select/SelectInput.js +20 -10
  237. package/lib/components/Select/variables.js +2 -2
  238. package/lib/components/Sidebar/Sidebar.d.ts +1 -1
  239. package/lib/components/Sidebar/Sidebar.js +20 -10
  240. package/lib/components/SidebarActions/ChangeViewButton.d.ts +1 -1
  241. package/lib/components/SidebarActions/ChangeViewButton.js +5 -5
  242. package/lib/components/SidebarActions/SidebarActions.js +6 -6
  243. package/lib/components/SidebarActions/styled.js +18 -8
  244. package/lib/components/SkipContent/SkipContent.js +19 -9
  245. package/lib/components/Switch/Switch.js +17 -7
  246. package/lib/components/TableOfContent/TableOfContent.d.ts +1 -1
  247. package/lib/components/TableOfContent/TableOfContent.js +34 -21
  248. package/lib/components/Tag/Tag.d.ts +2 -1
  249. package/lib/components/Tag/Tag.js +5 -5
  250. package/lib/components/Tag/variables.js +14 -0
  251. package/lib/components/Tags/CounterTag.d.ts +1 -1
  252. package/lib/components/Tags/CounterTag.js +1 -1
  253. package/lib/components/Tags/HttpTag.d.ts +1 -1
  254. package/lib/components/Tags/HttpTag.js +1 -1
  255. package/lib/components/Tooltip/Tooltip.js +18 -8
  256. package/lib/components/Tooltip/TooltipWrapper.d.ts +1 -1
  257. package/lib/components/Tooltip/TooltipWrapper.js +2 -2
  258. package/lib/components/Typography/CompactTypography.d.ts +1 -1
  259. package/lib/components/Typography/CompactTypography.js +1 -1
  260. package/lib/components/Typography/H1.js +1 -1
  261. package/lib/components/Typography/H2.js +1 -1
  262. package/lib/components/Typography/H3.js +1 -1
  263. package/lib/components/Typography/H4.js +1 -1
  264. package/lib/components/UserMenu/LoginButton.js +2 -2
  265. package/lib/components/UserMenu/LogoutMenuItem.js +3 -3
  266. package/lib/components/UserMenu/UserAvatar.js +1 -1
  267. package/lib/components/UserMenu/UserInfoMenuItem.js +2 -2
  268. package/lib/components/UserMenu/UserMenu.js +9 -9
  269. package/lib/components/UserMenu/UserMenuMobile.js +4 -4
  270. package/lib/components/VersionPicker/VersionPicker.d.ts +2 -2
  271. package/lib/components/VersionPicker/VersionPicker.js +20 -10
  272. package/lib/core/constants/catalog.d.ts +1 -1
  273. package/lib/core/constants/common.d.ts +4 -0
  274. package/lib/core/constants/common.js +5 -1
  275. package/lib/core/contexts/CodeSnippetContext.d.ts +7 -0
  276. package/lib/core/contexts/CodeSnippetContext.js +23 -0
  277. package/lib/core/contexts/index.d.ts +1 -0
  278. package/lib/core/contexts/index.js +1 -0
  279. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +1 -0
  280. package/lib/core/hooks/__mocks__/use-theme-hooks.js +1 -0
  281. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +1 -1
  282. package/lib/core/hooks/code-walkthrough/use-renderable-files.d.ts +1 -2
  283. package/lib/core/hooks/code-walkthrough/use-renderable-files.js +2 -2
  284. package/lib/core/hooks/index.d.ts +1 -0
  285. package/lib/core/hooks/index.js +1 -0
  286. package/lib/core/hooks/use-active-heading.d.ts +7 -2
  287. package/lib/core/hooks/use-active-heading.js +160 -23
  288. package/lib/core/hooks/use-active-section-id.d.ts +1 -1
  289. package/lib/core/hooks/use-active-section-id.js +2 -2
  290. package/lib/core/hooks/use-codeblock-tabs-controls.d.ts +2 -2
  291. package/lib/core/hooks/use-codeblock-tabs-controls.js +6 -6
  292. package/lib/core/hooks/use-local-state.d.ts +1 -0
  293. package/lib/core/hooks/use-local-state.js +32 -0
  294. package/lib/core/hooks/use-page-actions.d.ts +2 -0
  295. package/lib/core/hooks/use-page-actions.js +105 -0
  296. package/lib/core/hooks/use-theme-hooks.js +2 -0
  297. package/lib/core/styles/dark.js +13 -11
  298. package/lib/core/styles/global.js +40 -38
  299. package/lib/core/templates/Markdown.js +22 -12
  300. package/lib/core/types/catalog.d.ts +6 -2
  301. package/lib/core/types/hooks.d.ts +3 -2
  302. package/lib/core/types/index.d.ts +1 -0
  303. package/lib/core/types/index.js +1 -0
  304. package/lib/core/types/l10n.d.ts +1 -1
  305. package/lib/core/types/page-actions.d.ts +15 -0
  306. package/lib/core/types/page-actions.js +3 -0
  307. package/lib/core/types/search.d.ts +1 -1
  308. package/lib/core/types/sidebar.d.ts +1 -0
  309. package/lib/core/types/telemetry.d.ts +5 -20
  310. package/lib/core/utils/download-code-walkthrough.js +37 -7
  311. package/lib/core/utils/enhanced-smoothstep.d.ts +5 -0
  312. package/lib/core/utils/enhanced-smoothstep.js +15 -0
  313. package/lib/core/utils/get-file-icon.d.ts +3 -2
  314. package/lib/core/utils/get-file-icon.js +119 -29
  315. package/lib/core/utils/icon-resolver.d.ts +28 -0
  316. package/lib/core/utils/icon-resolver.js +52 -0
  317. package/lib/core/utils/index.d.ts +4 -1
  318. package/lib/core/utils/index.js +4 -1
  319. package/lib/core/utils/lang-to-name.d.ts +1 -0
  320. package/lib/core/utils/lang-to-name.js +37 -0
  321. package/lib/core/utils/{text-transform.js → string.js} +1 -1
  322. package/lib/ext/configure.d.ts +1 -1
  323. package/lib/icons/AddIcon/AddIcon.d.ts +1 -1
  324. package/lib/icons/AddIcon/AddIcon.js +1 -1
  325. package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.d.ts +1 -1
  326. package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.js +1 -1
  327. package/lib/icons/AiStarsIcon/AiStarsIcon.d.ts +1 -1
  328. package/lib/icons/AiStarsIcon/AiStarsIcon.js +1 -1
  329. package/lib/icons/ArrowDownIcon/ArrowDownIcon.d.ts +1 -1
  330. package/lib/icons/ArrowDownIcon/ArrowDownIcon.js +1 -1
  331. package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.d.ts +1 -1
  332. package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.js +1 -1
  333. package/lib/icons/ArrowRightIcon/ArrowRightIcon.d.ts +1 -1
  334. package/lib/icons/ArrowRightIcon/ArrowRightIcon.js +1 -1
  335. package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.d.ts +1 -1
  336. package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.js +1 -1
  337. package/lib/icons/AscSortIcon/AscSortIcon.d.ts +1 -1
  338. package/lib/icons/AscSortIcon/AscSortIcon.js +1 -1
  339. package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.d.ts +1 -1
  340. package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.js +1 -1
  341. package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.d.ts +1 -1
  342. package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.js +1 -1
  343. package/lib/icons/CDNIcon/CDNIcon.d.ts +14 -0
  344. package/lib/icons/CDNIcon/CDNIcon.js +48 -0
  345. package/lib/icons/CardsIcon/CardsIcon.d.ts +1 -1
  346. package/lib/icons/CardsIcon/CardsIcon.js +1 -1
  347. package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +1 -1
  348. package/lib/icons/CaretDownIcon/CaretDownIcon.js +1 -1
  349. package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +1 -1
  350. package/lib/icons/CaretUpIcon/CaretUpIcon.js +1 -1
  351. package/lib/icons/CertificateIcon/CertificateIcon.d.ts +1 -1
  352. package/lib/icons/CertificateIcon/CertificateIcon.js +1 -1
  353. package/lib/icons/CharacterIcon/CharacterIcon.d.ts +1 -1
  354. package/lib/icons/CharacterIcon/CharacterIcon.js +1 -1
  355. package/lib/icons/ChatGptIcon/ChatGptIcon.d.ts +9 -0
  356. package/lib/icons/ChatGptIcon/ChatGptIcon.js +22 -0
  357. package/lib/icons/ChatIcon/ChatIcon.d.ts +1 -1
  358. package/lib/icons/ChatIcon/ChatIcon.js +1 -1
  359. package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.d.ts +1 -1
  360. package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.js +1 -1
  361. package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.d.ts +1 -1
  362. package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.js +1 -1
  363. package/lib/icons/CheckmarkIcon/CheckmarkIcon.d.ts +1 -1
  364. package/lib/icons/CheckmarkIcon/CheckmarkIcon.js +1 -1
  365. package/lib/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.d.ts +9 -0
  366. package/lib/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.js +23 -0
  367. package/lib/icons/ChevronDownIcon/ChevronDownIcon.d.ts +1 -1
  368. package/lib/icons/ChevronDownIcon/ChevronDownIcon.js +1 -1
  369. package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.d.ts +1 -1
  370. package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.js +1 -1
  371. package/lib/icons/ChevronRightIcon/ChevronRightIcon.d.ts +1 -1
  372. package/lib/icons/ChevronRightIcon/ChevronRightIcon.js +1 -1
  373. package/lib/icons/ChevronSortIcon/ChevronSortIcon.js +1 -1
  374. package/lib/icons/ChevronUpIcon/ChevronUpIcon.d.ts +1 -1
  375. package/lib/icons/ChevronUpIcon/ChevronUpIcon.js +1 -1
  376. package/lib/icons/CircleDashIcon/CircleDashIcon.d.ts +1 -1
  377. package/lib/icons/CircleDashIcon/CircleDashIcon.js +1 -1
  378. package/lib/icons/ClaudeIcon/ClaudeIcon.d.ts +9 -0
  379. package/lib/icons/ClaudeIcon/ClaudeIcon.js +22 -0
  380. package/lib/icons/CleanIcon/CleanIcon.d.ts +1 -1
  381. package/lib/icons/CleanIcon/CleanIcon.js +1 -1
  382. package/lib/icons/CloseFilledIcon/CloseFilledIcon.d.ts +1 -1
  383. package/lib/icons/CloseFilledIcon/CloseFilledIcon.js +1 -1
  384. package/lib/icons/CloseIcon/CloseIcon.d.ts +1 -1
  385. package/lib/icons/CloseIcon/CloseIcon.js +1 -1
  386. package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.d.ts +1 -1
  387. package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.js +1 -1
  388. package/lib/icons/CloudUploadIcon/CloudUploadIcon.d.ts +1 -1
  389. package/lib/icons/CloudUploadIcon/CloudUploadIcon.js +1 -1
  390. package/lib/icons/CodeIcon/CodeIcon.d.ts +1 -1
  391. package/lib/icons/CodeIcon/CodeIcon.js +1 -1
  392. package/lib/icons/ContrastIcon/ContrastIcon.d.ts +1 -1
  393. package/lib/icons/ContrastIcon/ContrastIcon.js +1 -1
  394. package/lib/icons/CookieIcon/CookieIcon.d.ts +1 -1
  395. package/lib/icons/CookieIcon/CookieIcon.js +1 -1
  396. package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -1
  397. package/lib/icons/CopyIcon/CopyIcon.js +1 -1
  398. package/lib/icons/CopyLinkIcon/CopyLinkIcon.d.ts +1 -1
  399. package/lib/icons/CopyLinkIcon/CopyLinkIcon.js +1 -1
  400. package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.d.ts +1 -1
  401. package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.js +1 -1
  402. package/lib/icons/DataFormatIcon/DataFormatIcon.d.ts +1 -1
  403. package/lib/icons/DataFormatIcon/DataFormatIcon.js +1 -1
  404. package/lib/icons/DataRefineryIcon/DataRefineryIcon.d.ts +1 -1
  405. package/lib/icons/DataRefineryIcon/DataRefineryIcon.js +1 -1
  406. package/lib/icons/DatabaseIcon/DatabaseIcon.d.ts +1 -1
  407. package/lib/icons/DatabaseIcon/DatabaseIcon.js +1 -1
  408. package/lib/icons/DescSortIcon/DescSortIcon.d.ts +1 -1
  409. package/lib/icons/DescSortIcon/DescSortIcon.js +1 -1
  410. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
  411. package/lib/icons/DeselectIcon/DeselectIcon.js +1 -1
  412. package/lib/icons/DocumentAddIcon/DocumentAddIcon.d.ts +1 -1
  413. package/lib/icons/DocumentAddIcon/DocumentAddIcon.js +1 -1
  414. package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.d.ts +1 -1
  415. package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.js +1 -1
  416. package/lib/icons/DocumentCssIcon/DocumentCssIcon.d.ts +1 -1
  417. package/lib/icons/DocumentCssIcon/DocumentCssIcon.js +1 -1
  418. package/lib/icons/DocumentCssIcon/index.d.ts +1 -1
  419. package/lib/icons/DocumentCssIcon/index.js +1 -1
  420. package/lib/icons/DocumentGraphqlIcon/DocumentGraphqlIcon.d.ts +1 -1
  421. package/lib/icons/DocumentGraphqlIcon/DocumentGraphqlIcon.js +1 -1
  422. package/lib/icons/DocumentGraphqlIcon/index.d.ts +1 -1
  423. package/lib/icons/DocumentGraphqlIcon/index.js +1 -1
  424. package/lib/icons/DocumentHtmlIcon/DocumentHtmlIcon.d.ts +1 -1
  425. package/lib/icons/DocumentHtmlIcon/DocumentHtmlIcon.js +1 -1
  426. package/lib/icons/DocumentHtmlIcon/index.d.ts +1 -1
  427. package/lib/icons/DocumentHtmlIcon/index.js +1 -1
  428. package/lib/icons/DocumentIcon/DocumentIcon.d.ts +1 -1
  429. package/lib/icons/DocumentIcon/DocumentIcon.js +1 -1
  430. package/lib/icons/DocumentIcon/index.d.ts +1 -1
  431. package/lib/icons/DocumentIcon/index.js +1 -1
  432. package/lib/icons/DocumentJavaIcon/DocumentJavaIcon.d.ts +1 -1
  433. package/lib/icons/DocumentJavaIcon/DocumentJavaIcon.js +1 -1
  434. package/lib/icons/DocumentJavaIcon/index.d.ts +1 -1
  435. package/lib/icons/DocumentJavaIcon/index.js +1 -1
  436. package/lib/icons/DocumentJsIcon/DocumentJsIcon.d.ts +1 -1
  437. package/lib/icons/DocumentJsIcon/DocumentJsIcon.js +1 -1
  438. package/lib/icons/DocumentJsIcon/index.d.ts +1 -1
  439. package/lib/icons/DocumentJsIcon/index.js +1 -1
  440. package/lib/icons/DocumentJsonIcon/DocumentJsonIcon.d.ts +1 -1
  441. package/lib/icons/DocumentJsonIcon/DocumentJsonIcon.js +1 -1
  442. package/lib/icons/DocumentJsonIcon/index.d.ts +1 -1
  443. package/lib/icons/DocumentJsonIcon/index.js +1 -1
  444. package/lib/icons/DocumentMarkdownIcon/DocumentMarkdownIcon.d.ts +1 -1
  445. package/lib/icons/DocumentMarkdownIcon/DocumentMarkdownIcon.js +1 -1
  446. package/lib/icons/DocumentMarkdownIcon/index.d.ts +1 -1
  447. package/lib/icons/DocumentMarkdownIcon/index.js +1 -1
  448. package/lib/icons/DocumentPythonIcon/DocumentPythonIcon.d.ts +1 -1
  449. package/lib/icons/DocumentPythonIcon/DocumentPythonIcon.js +1 -1
  450. package/lib/icons/DocumentPythonIcon/index.d.ts +1 -1
  451. package/lib/icons/DocumentPythonIcon/index.js +1 -1
  452. package/lib/icons/DocumentReactIcon/DocumentReactIcon.d.ts +1 -1
  453. package/lib/icons/DocumentReactIcon/DocumentReactIcon.js +1 -1
  454. package/lib/icons/DocumentReactIcon/index.d.ts +1 -1
  455. package/lib/icons/DocumentReactIcon/index.js +1 -1
  456. package/lib/icons/DocumentShellIcon/DocumentShellIcon.d.ts +1 -1
  457. package/lib/icons/DocumentShellIcon/DocumentShellIcon.js +1 -1
  458. package/lib/icons/DocumentShellIcon/index.d.ts +1 -1
  459. package/lib/icons/DocumentShellIcon/index.js +1 -1
  460. package/lib/icons/DocumentTsIcon/DocumentTsIcon.d.ts +1 -1
  461. package/lib/icons/DocumentTsIcon/DocumentTsIcon.js +1 -1
  462. package/lib/icons/DocumentTsIcon/index.d.ts +1 -1
  463. package/lib/icons/DocumentTsIcon/index.js +1 -1
  464. package/lib/icons/DocumentYamlIcon/DocumentYamlIcon.d.ts +1 -1
  465. package/lib/icons/DocumentYamlIcon/DocumentYamlIcon.js +1 -1
  466. package/lib/icons/DocumentYamlIcon/index.d.ts +1 -1
  467. package/lib/icons/DocumentYamlIcon/index.js +1 -1
  468. package/lib/icons/DownloadIcon/DownloadIcon.d.ts +1 -1
  469. package/lib/icons/DownloadIcon/DownloadIcon.js +1 -1
  470. package/lib/icons/DraggableIcon/DraggableIcon.d.ts +1 -1
  471. package/lib/icons/DraggableIcon/DraggableIcon.js +1 -1
  472. package/lib/icons/EditIcon/EditIcon.d.ts +1 -1
  473. package/lib/icons/EditIcon/EditIcon.js +1 -1
  474. package/lib/icons/EmailIcon/EmailIcon.d.ts +1 -1
  475. package/lib/icons/EmailIcon/EmailIcon.js +1 -1
  476. package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +1 -1
  477. package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +1 -1
  478. package/lib/icons/ErrorFilledIcon/ErrorFilledIcon.d.ts +1 -1
  479. package/lib/icons/ErrorFilledIcon/ErrorFilledIcon.js +1 -1
  480. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +1 -1
  481. package/lib/icons/ErrorIcon/ErrorIcon.js +1 -1
  482. package/lib/icons/ExportIcon/ExportIcon.d.ts +1 -1
  483. package/lib/icons/ExportIcon/ExportIcon.js +1 -1
  484. package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.d.ts +1 -1
  485. package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.js +1 -1
  486. package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.d.ts +1 -1
  487. package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.js +1 -1
  488. package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.d.ts +1 -1
  489. package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.js +1 -1
  490. package/lib/icons/FileIcon/FileIcon.d.ts +1 -1
  491. package/lib/icons/FileIcon/FileIcon.js +1 -1
  492. package/lib/icons/FileStorageIcon/FileStorageIcon.d.ts +1 -1
  493. package/lib/icons/FileStorageIcon/FileStorageIcon.js +1 -1
  494. package/lib/icons/FilterIcon/FilterIcon.d.ts +1 -1
  495. package/lib/icons/FilterIcon/FilterIcon.js +1 -1
  496. package/lib/icons/FlowIcon/FlowIcon.d.ts +1 -1
  497. package/lib/icons/FlowIcon/FlowIcon.js +1 -1
  498. package/lib/icons/FolderAddIcon/FolderAddIcon.d.ts +1 -1
  499. package/lib/icons/FolderAddIcon/FolderAddIcon.js +1 -1
  500. package/lib/icons/FolderIcon/FolderIcon.d.ts +1 -1
  501. package/lib/icons/FolderIcon/FolderIcon.js +1 -1
  502. package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.d.ts +1 -1
  503. package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.js +1 -1
  504. package/lib/icons/GenericIcon/GenericIcon.d.ts +11 -0
  505. package/lib/icons/GenericIcon/GenericIcon.js +76 -0
  506. package/lib/icons/GithubIcon/GithubIcon.d.ts +1 -1
  507. package/lib/icons/GithubIcon/GithubIcon.js +1 -1
  508. package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.d.ts +1 -1
  509. package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.js +1 -1
  510. package/lib/icons/GraphIcon/GraphIcon.d.ts +1 -1
  511. package/lib/icons/GraphIcon/GraphIcon.js +1 -1
  512. package/lib/icons/GraphqlIcon/GraphqlIcon.d.ts +9 -0
  513. package/lib/icons/GraphqlIcon/GraphqlIcon.js +36 -0
  514. package/lib/icons/GraphqlIcon/index.d.ts +1 -0
  515. package/lib/icons/GraphqlIcon/index.js +6 -0
  516. package/lib/icons/GridIcon/GridIcon.d.ts +1 -1
  517. package/lib/icons/GridIcon/GridIcon.js +1 -1
  518. package/lib/icons/HexagonIcon/HexagonIcon.d.ts +9 -0
  519. package/lib/icons/HexagonIcon/HexagonIcon.js +22 -0
  520. package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.d.ts +1 -1
  521. package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.js +1 -1
  522. package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.d.ts +1 -1
  523. package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.js +1 -1
  524. package/lib/icons/InformationFilledIcon/InformationFilledIcon.d.ts +1 -1
  525. package/lib/icons/InformationFilledIcon/InformationFilledIcon.js +1 -1
  526. package/lib/icons/InformationIcon/InformationIcon.d.ts +1 -1
  527. package/lib/icons/InformationIcon/InformationIcon.js +1 -1
  528. package/lib/icons/JsonIcon/JsonIcon.d.ts +1 -1
  529. package/lib/icons/JsonIcon/JsonIcon.js +1 -1
  530. package/lib/icons/KafkaIcon/KafkaIcon.d.ts +1 -1
  531. package/lib/icons/KafkaIcon/KafkaIcon.js +1 -1
  532. package/lib/icons/LaunchIcon/LaunchIcon.d.ts +1 -1
  533. package/lib/icons/LaunchIcon/LaunchIcon.js +1 -1
  534. package/lib/icons/LinkIcon/LinkIcon.d.ts +1 -1
  535. package/lib/icons/LinkIcon/LinkIcon.js +1 -1
  536. package/lib/icons/LogoutIcon/LogoutIcon.d.ts +1 -1
  537. package/lib/icons/LogoutIcon/LogoutIcon.js +1 -1
  538. package/lib/icons/MarkdownFullIcon/MarkdownFullIcon.d.ts +9 -0
  539. package/lib/icons/MarkdownFullIcon/MarkdownFullIcon.js +23 -0
  540. package/lib/icons/MaximizeIcon/MaximizeIcon.d.ts +1 -1
  541. package/lib/icons/MaximizeIcon/MaximizeIcon.js +1 -1
  542. package/lib/icons/MenuIcon/MenuIcon.d.ts +1 -1
  543. package/lib/icons/MenuIcon/MenuIcon.js +1 -1
  544. package/lib/icons/MinimizeIcon/MinimizeIcon.d.ts +1 -1
  545. package/lib/icons/MinimizeIcon/MinimizeIcon.js +1 -1
  546. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +1 -1
  547. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.js +1 -1
  548. package/lib/icons/MoleculesIcon/MoleculesIcon.d.ts +9 -0
  549. package/lib/icons/MoleculesIcon/MoleculesIcon.js +22 -0
  550. package/lib/icons/MoonIcon/MoonIcon.d.ts +1 -1
  551. package/lib/icons/MoonIcon/MoonIcon.js +1 -1
  552. package/lib/icons/NetworkIcon/NetworkIcon.d.ts +9 -0
  553. package/lib/icons/NetworkIcon/NetworkIcon.js +23 -0
  554. package/lib/icons/NoneIcon/NoneIcon.d.ts +9 -0
  555. package/lib/icons/NoneIcon/NoneIcon.js +17 -0
  556. package/lib/icons/NotesIcon/NotesIcon.d.ts +9 -0
  557. package/lib/icons/NotesIcon/NotesIcon.js +26 -0
  558. package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.d.ts +1 -1
  559. package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.js +1 -1
  560. package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.d.ts +1 -1
  561. package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.js +1 -1
  562. package/lib/icons/PeopleIcon/PeopleIcon.d.ts +1 -1
  563. package/lib/icons/PeopleIcon/PeopleIcon.js +1 -1
  564. package/lib/icons/PlaylistIcon/PlaylistIcon.d.ts +1 -1
  565. package/lib/icons/PlaylistIcon/PlaylistIcon.js +1 -1
  566. package/lib/icons/PlusCustomIcon/PlusCustomIcon.d.ts +1 -1
  567. package/lib/icons/PlusCustomIcon/PlusCustomIcon.js +1 -1
  568. package/lib/icons/RabbitMQIcon/RabbitMQIcon.d.ts +1 -1
  569. package/lib/icons/RabbitMQIcon/RabbitMQIcon.js +1 -1
  570. package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.d.ts +1 -1
  571. package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.js +1 -1
  572. package/lib/icons/RenewIcon/RenewIcon.d.ts +1 -1
  573. package/lib/icons/RenewIcon/RenewIcon.js +1 -1
  574. package/lib/icons/ResetIcon/ResetIcon.d.ts +1 -1
  575. package/lib/icons/ResetIcon/ResetIcon.js +1 -1
  576. package/lib/icons/RestartIcon/RestartIcon.d.ts +1 -1
  577. package/lib/icons/RestartIcon/RestartIcon.js +1 -1
  578. package/lib/icons/ReturnKeyIcon/ReturnKeyIcon.d.ts +1 -1
  579. package/lib/icons/ReturnKeyIcon/ReturnKeyIcon.js +1 -1
  580. package/lib/icons/RocketIcon/RocketIcon.d.ts +1 -1
  581. package/lib/icons/RocketIcon/RocketIcon.js +1 -1
  582. package/lib/icons/SaveIcon/SaveIcon.d.ts +1 -1
  583. package/lib/icons/SaveIcon/SaveIcon.js +1 -1
  584. package/lib/icons/SearchIcon/SearchIcon.d.ts +1 -1
  585. package/lib/icons/SearchIcon/SearchIcon.js +1 -1
  586. package/lib/icons/SecurityIcon/SecurityIcon.d.ts +1 -1
  587. package/lib/icons/SecurityIcon/SecurityIcon.js +1 -1
  588. package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -1
  589. package/lib/icons/SelectIcon/SelectIcon.js +1 -1
  590. package/lib/icons/SendIcon/SendIcon.d.ts +1 -1
  591. package/lib/icons/SendIcon/SendIcon.js +1 -1
  592. package/lib/icons/SettingsCogIcon/SettingsCogIcon.d.ts +1 -1
  593. package/lib/icons/SettingsCogIcon/SettingsCogIcon.js +1 -1
  594. package/lib/icons/SettingsIcon/SettingsIcon.d.ts +1 -1
  595. package/lib/icons/SettingsIcon/SettingsIcon.js +1 -1
  596. package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.d.ts +1 -1
  597. package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.js +1 -1
  598. package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.d.ts +1 -1
  599. package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.js +1 -1
  600. package/lib/icons/SlackIcon/SlackIcon.d.ts +1 -1
  601. package/lib/icons/SlackIcon/SlackIcon.js +1 -1
  602. package/lib/icons/SortIcon/SortIcon.d.ts +1 -1
  603. package/lib/icons/SortIcon/SortIcon.js +1 -1
  604. package/lib/icons/Spinner/Spinner.d.ts +1 -1
  605. package/lib/icons/Spinner/Spinner.js +18 -8
  606. package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +1 -1
  607. package/lib/icons/SpinnerIcon/SpinnerIcon.js +1 -1
  608. package/lib/icons/StarFilledIcon/StarFilledIcon.d.ts +1 -1
  609. package/lib/icons/StarFilledIcon/StarFilledIcon.js +1 -1
  610. package/lib/icons/StarIcon/StarIcon.d.ts +1 -1
  611. package/lib/icons/StarIcon/StarIcon.js +1 -1
  612. package/lib/icons/SubtractIcon/SubtractIcon.d.ts +1 -1
  613. package/lib/icons/SubtractIcon/SubtractIcon.js +1 -1
  614. package/lib/icons/SunIcon/SunIcon.d.ts +1 -1
  615. package/lib/icons/SunIcon/SunIcon.js +1 -1
  616. package/lib/icons/TableBuiltIcon/TableBuiltIcon.d.ts +1 -1
  617. package/lib/icons/TableBuiltIcon/TableBuiltIcon.js +1 -1
  618. package/lib/icons/TableIcon/TableIcon.d.ts +1 -1
  619. package/lib/icons/TableIcon/TableIcon.js +1 -1
  620. package/lib/icons/TagsIcon/TagsIcon.d.ts +1 -1
  621. package/lib/icons/TagsIcon/TagsIcon.js +1 -1
  622. package/lib/icons/TaskViewIcon/TaskViewIcon.d.ts +1 -1
  623. package/lib/icons/TaskViewIcon/TaskViewIcon.js +1 -1
  624. package/lib/icons/TimeIcon/TimeIcon.d.ts +1 -1
  625. package/lib/icons/TimeIcon/TimeIcon.js +1 -1
  626. package/lib/icons/TrashCanIcon/TrashCanIcon.d.ts +1 -1
  627. package/lib/icons/TrashCanIcon/TrashCanIcon.js +1 -1
  628. package/lib/icons/UserIcon/UserIcon.d.ts +1 -1
  629. package/lib/icons/UserIcon/UserIcon.js +1 -1
  630. package/lib/icons/ValueVariableIcon/ValueVariableIcon.d.ts +1 -1
  631. package/lib/icons/ValueVariableIcon/ValueVariableIcon.js +1 -1
  632. package/lib/icons/VerticalViewIcon/VerticalViewIcon.d.ts +1 -1
  633. package/lib/icons/VerticalViewIcon/VerticalViewIcon.js +1 -1
  634. package/lib/icons/ViewIcon/ViewIcon.d.ts +1 -1
  635. package/lib/icons/ViewIcon/ViewIcon.js +1 -1
  636. package/lib/icons/ViewOffIcon/ViewOffIcon.d.ts +1 -1
  637. package/lib/icons/ViewOffIcon/ViewOffIcon.js +1 -1
  638. package/lib/icons/WarningAltFilled/WarningAltFilled.d.ts +1 -1
  639. package/lib/icons/WarningAltFilled/WarningAltFilled.js +1 -1
  640. package/lib/icons/WarningAltFilledIcon/WarningAltFilledIcon.d.ts +1 -1
  641. package/lib/icons/WarningAltFilledIcon/WarningAltFilledIcon.js +1 -1
  642. package/lib/icons/WarningAltIcon/WarningAltIcon.d.ts +1 -1
  643. package/lib/icons/WarningAltIcon/WarningAltIcon.js +1 -1
  644. package/lib/icons/WarningFilledIcon/WarningFilledIcon.d.ts +1 -1
  645. package/lib/icons/WarningFilledIcon/WarningFilledIcon.js +1 -1
  646. package/lib/icons/WarningSquareIcon/WarningSquareIcon.d.ts +1 -1
  647. package/lib/icons/WarningSquareIcon/WarningSquareIcon.js +1 -1
  648. package/lib/icons/WorkflowAutomationIcon/WorkflowAutomationIcon.d.ts +1 -1
  649. package/lib/icons/WorkflowAutomationIcon/WorkflowAutomationIcon.js +1 -1
  650. package/lib/icons/types.d.ts +6 -0
  651. package/lib/index.d.ts +267 -261
  652. package/lib/index.js +284 -268
  653. package/lib/layouts/CodeWalkthroughLayout.js +2 -2
  654. package/lib/layouts/DocumentationLayout.js +19 -15
  655. package/lib/layouts/Forbidden.js +2 -2
  656. package/lib/layouts/InternalServerErrorLayout.js +3 -3
  657. package/lib/layouts/NotFound.js +3 -3
  658. package/lib/layouts/OIDCForbidden.js +18 -8
  659. package/lib/layouts/PageLayout.js +2 -2
  660. package/lib/layouts/RootLayout.js +3 -3
  661. package/lib/layouts/ThreePanelLayout.js +18 -8
  662. package/lib/markdoc/components/Admonition/Admonition.d.ts +1 -1
  663. package/lib/markdoc/components/Admonition/Admonition.js +1 -1
  664. package/lib/markdoc/components/Cards/Card.js +4 -4
  665. package/lib/markdoc/components/Cards/CardIcon.js +7 -19
  666. package/lib/markdoc/components/Cards/Cards.js +17 -7
  667. package/lib/markdoc/components/CodeBlock/CodeBlock.d.ts +1 -1
  668. package/lib/markdoc/components/CodeBlock/CodeBlock.js +1 -1
  669. package/lib/markdoc/components/CodeGroup/CodeGroup.d.ts +4 -0
  670. package/lib/markdoc/components/CodeGroup/CodeGroup.js +82 -0
  671. package/lib/markdoc/components/CodeWalkthrough/CodeContainer.js +19 -9
  672. package/lib/markdoc/components/CodeWalkthrough/CodeFilters.js +1 -1
  673. package/lib/markdoc/components/CodeWalkthrough/CodePanel.js +23 -13
  674. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +31 -18
  675. package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.js +20 -10
  676. package/lib/markdoc/components/CodeWalkthrough/CodePanelToolbar.js +19 -9
  677. package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +19 -9
  678. package/lib/markdoc/components/CodeWalkthrough/CodeToggle.js +20 -10
  679. package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +21 -11
  680. package/lib/markdoc/components/CodeWalkthrough/Input.js +18 -8
  681. package/lib/markdoc/components/Heading/Heading.d.ts +2 -1
  682. package/lib/markdoc/components/Heading/Heading.js +39 -11
  683. package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +17 -7
  684. package/lib/markdoc/components/Icon/Icon.d.ts +3 -0
  685. package/lib/markdoc/components/Icon/Icon.js +29 -0
  686. package/lib/markdoc/components/Image/Image.d.ts +1 -1
  687. package/lib/markdoc/components/Image/Image.js +1 -1
  688. package/lib/markdoc/components/InlineSvg/InlineSvg.js +17 -7
  689. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +18 -8
  690. package/lib/markdoc/components/Mermaid/Mermaid.js +1 -1
  691. package/lib/markdoc/components/Tabs/Tab.d.ts +3 -2
  692. package/lib/markdoc/components/Tabs/Tab.js +6 -3
  693. package/lib/markdoc/components/Tabs/TabList.d.ts +2 -2
  694. package/lib/markdoc/components/Tabs/TabList.js +22 -12
  695. package/lib/markdoc/components/Tabs/Tabs.d.ts +1 -1
  696. package/lib/markdoc/components/Tabs/Tabs.js +19 -9
  697. package/lib/markdoc/components/Tabs/variables.js +2 -0
  698. package/lib/markdoc/components/default.d.ts +22 -20
  699. package/lib/markdoc/components/default.js +22 -20
  700. package/lib/markdoc/default.d.ts +6 -6
  701. package/lib/markdoc/default.js +43 -29
  702. package/lib/markdoc/tags/admonition.d.ts +1 -1
  703. package/lib/markdoc/tags/card.d.ts +1 -1
  704. package/lib/markdoc/tags/card.js +2 -2
  705. package/lib/markdoc/tags/cards.d.ts +1 -1
  706. package/lib/markdoc/tags/code-group.d.ts +2 -0
  707. package/lib/markdoc/tags/code-group.js +23 -0
  708. package/lib/markdoc/tags/code-snippet.d.ts +1 -1
  709. package/lib/markdoc/tags/code-snippet.js +2 -2
  710. package/lib/markdoc/tags/code-step.d.ts +1 -1
  711. package/lib/markdoc/tags/code-toggle.d.ts +1 -1
  712. package/lib/markdoc/tags/code-walkthrough.d.ts +1 -1
  713. package/lib/markdoc/tags/code-walkthrough.js +3 -3
  714. package/lib/markdoc/tags/debug.d.ts +1 -1
  715. package/lib/markdoc/tags/html.d.ts +1 -1
  716. package/lib/markdoc/tags/icon.d.ts +2 -0
  717. package/lib/markdoc/tags/icon.js +16 -0
  718. package/lib/markdoc/tags/img.d.ts +1 -1
  719. package/lib/markdoc/tags/inline-svg.d.ts +1 -1
  720. package/lib/markdoc/tags/inline-svg.js +1 -1
  721. package/lib/markdoc/tags/input.d.ts +1 -1
  722. package/lib/markdoc/tags/markdoc-example.d.ts +1 -1
  723. package/lib/markdoc/tags/partial.d.ts +1 -1
  724. package/lib/markdoc/tags/partial.js +2 -2
  725. package/lib/markdoc/tags/tab.d.ts +1 -1
  726. package/lib/markdoc/tags/tab.js +1 -0
  727. package/lib/markdoc/tags/tabs.d.ts +1 -1
  728. package/lib/markdoc/tags/tabs.js +1 -1
  729. package/package.json +4 -4
  730. package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  731. package/src/components/Button/Button.tsx +4 -2
  732. package/src/components/Button/ButtonGroup.tsx +53 -0
  733. package/src/components/Button/variables.ts +32 -5
  734. package/src/components/Catalog/Catalog.tsx +1 -1
  735. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +12 -6
  736. package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -4
  737. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +25 -17
  738. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +25 -9
  739. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +12 -15
  740. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +39 -2
  741. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +61 -0
  742. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +12 -1
  743. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +7 -1
  744. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +15 -4
  745. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +5 -1
  746. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +2 -3
  747. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +11 -3
  748. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +37 -0
  749. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +1 -1
  750. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -0
  751. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +7 -23
  752. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +5 -6
  753. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +21 -13
  754. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +9 -2
  755. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +52 -0
  756. package/src/components/Catalog/CatalogEntityIcon.tsx +33 -33
  757. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +23 -28
  758. package/src/components/Catalog/CatalogEntityTypeTag.tsx +49 -0
  759. package/src/components/Catalog/CatalogPageDescription.tsx +5 -4
  760. package/src/components/Catalog/CatalogSelector.tsx +3 -1
  761. package/src/components/Catalog/CatalogSortButton.tsx +19 -20
  762. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +1 -0
  763. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +3 -17
  764. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +1 -0
  765. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +5 -8
  766. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +6 -36
  767. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +18 -46
  768. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +1 -0
  769. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +9 -4
  770. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +9 -5
  771. package/src/components/Catalog/CatalogViewModeToggle.tsx +1 -1
  772. package/src/components/Catalog/variables.ts +42 -8
  773. package/src/components/CodeBlock/CodeBlock.tsx +15 -5
  774. package/src/components/CodeBlock/CodeBlockControls.tsx +67 -26
  775. package/src/components/CodeBlock/CodeBlockDropdown.tsx +53 -0
  776. package/src/components/CodeBlock/CodeBlockTabs.tsx +29 -20
  777. package/src/components/CodeBlock/variables.ts +1 -1
  778. package/src/components/Dropdown/Dropdown.tsx +1 -0
  779. package/src/components/Dropdown/DropdownMenu.tsx +4 -0
  780. package/src/components/Dropdown/variables.ts +1 -0
  781. package/src/components/Feedback/Feedback.tsx +1 -1
  782. package/src/components/Filter/FilterCheckboxes.tsx +9 -2
  783. package/src/components/Footer/FooterItem.tsx +5 -12
  784. package/src/components/Footer/variables.ts +2 -2
  785. package/src/components/Image/Image.tsx +2 -0
  786. package/src/components/Markdown/Markdown.tsx +3 -3
  787. package/src/components/Markdown/styles/headingAnchor.ts +0 -1
  788. package/src/components/Menu/MenuItem.tsx +5 -5
  789. package/src/components/Menu/variables.ts +3 -1
  790. package/src/components/Navbar/NavbarItem.tsx +8 -17
  791. package/src/components/Navbar/variables.ts +2 -2
  792. package/src/components/PageActions/PageActions.tsx +110 -0
  793. package/src/components/PageActions/PageActionsMenuItem.tsx +73 -0
  794. package/src/components/PageActions/variables.dark.ts +6 -0
  795. package/src/components/PageActions/variables.ts +34 -0
  796. package/src/components/Search/SearchDialog.tsx +2 -2
  797. package/src/components/Select/variables.ts +2 -2
  798. package/src/components/TableOfContent/TableOfContent.tsx +33 -36
  799. package/src/components/Tag/Tag.tsx +11 -2
  800. package/src/components/Tag/variables.ts +14 -0
  801. package/src/core/constants/catalog.ts +1 -1
  802. package/src/core/constants/common.ts +4 -0
  803. package/src/core/contexts/CodeSnippetContext.tsx +31 -0
  804. package/src/core/contexts/index.ts +1 -0
  805. package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -0
  806. package/src/core/hooks/code-walkthrough/use-renderable-files.ts +3 -4
  807. package/src/core/hooks/index.ts +1 -0
  808. package/src/core/hooks/use-active-heading.ts +199 -28
  809. package/src/core/hooks/use-active-section-id.ts +2 -1
  810. package/src/core/hooks/use-codeblock-tabs-controls.ts +8 -8
  811. package/src/core/hooks/use-local-state.ts +30 -0
  812. package/src/core/hooks/use-page-actions.ts +119 -0
  813. package/src/core/hooks/use-theme-hooks.ts +2 -0
  814. package/src/core/styles/dark.ts +2 -1
  815. package/src/core/styles/global.ts +2 -0
  816. package/src/core/types/catalog.ts +5 -1
  817. package/src/core/types/hooks.ts +2 -0
  818. package/src/core/types/index.ts +1 -0
  819. package/src/core/types/l10n.ts +21 -0
  820. package/src/core/types/page-actions.ts +18 -0
  821. package/src/core/types/sidebar.ts +1 -0
  822. package/src/core/types/telemetry.ts +5 -13
  823. package/src/core/utils/download-code-walkthrough.ts +5 -4
  824. package/src/core/utils/enhanced-smoothstep.ts +14 -0
  825. package/src/core/utils/get-file-icon.tsx +94 -0
  826. package/src/core/utils/icon-resolver.ts +57 -0
  827. package/src/core/utils/index.ts +4 -1
  828. package/src/core/utils/lang-to-name.ts +35 -0
  829. package/src/ext/configure.ts +1 -1
  830. package/src/icons/CDNIcon/CDNIcon.tsx +47 -0
  831. package/src/icons/ChatGptIcon/ChatGptIcon.tsx +23 -0
  832. package/src/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.tsx +24 -0
  833. package/src/icons/ClaudeIcon/ClaudeIcon.tsx +23 -0
  834. package/src/icons/GenericIcon/GenericIcon.tsx +78 -0
  835. package/src/icons/GraphqlIcon/GraphqlIcon.tsx +81 -0
  836. package/src/icons/GraphqlIcon/index.ts +1 -0
  837. package/src/icons/HexagonIcon/HexagonIcon.tsx +23 -0
  838. package/src/icons/MarkdownFullIcon/MarkdownFullIcon.tsx +24 -0
  839. package/src/icons/MoleculesIcon/MoleculesIcon.tsx +23 -0
  840. package/src/icons/NetworkIcon/NetworkIcon.tsx +31 -0
  841. package/src/icons/NoneIcon/NoneIcon.tsx +17 -0
  842. package/src/icons/NotesIcon/NotesIcon.tsx +43 -0
  843. package/src/icons/types.ts +7 -0
  844. package/src/index.ts +7 -1
  845. package/src/layouts/CodeWalkthroughLayout.tsx +1 -1
  846. package/src/layouts/DocumentationLayout.tsx +23 -13
  847. package/src/markdoc/components/Cards/CardIcon.tsx +6 -21
  848. package/src/markdoc/components/CodeGroup/CodeGroup.tsx +78 -0
  849. package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +7 -4
  850. package/src/markdoc/components/Heading/Heading.tsx +22 -3
  851. package/src/markdoc/components/Icon/Icon.tsx +16 -0
  852. package/src/markdoc/components/Tabs/Tab.tsx +6 -1
  853. package/src/markdoc/components/Tabs/Tabs.tsx +1 -1
  854. package/src/markdoc/components/Tabs/variables.ts +2 -0
  855. package/src/markdoc/components/default.ts +2 -0
  856. package/src/markdoc/default.ts +4 -0
  857. package/src/markdoc/tags/card.ts +1 -1
  858. package/src/markdoc/tags/code-group.ts +21 -0
  859. package/src/markdoc/tags/code-snippet.ts +1 -1
  860. package/src/markdoc/tags/icon.ts +14 -0
  861. package/src/markdoc/tags/tab.ts +1 -0
  862. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.d.ts +0 -1
  863. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.js +0 -5
  864. package/lib/ext/process-scorecard.d.ts +0 -5
  865. package/lib/ext/process-scorecard.js +0 -11
  866. package/src/components/OpenApiDocs/hooks/AfterOpenApiDescription.tsx +0 -1
  867. package/src/core/utils/get-file-icon.ts +0 -42
  868. package/src/ext/process-scorecard.ts +0 -13
  869. /package/lib/core/utils/{text-transform.d.ts → string.d.ts} +0 -0
  870. /package/src/core/utils/{text-transform.ts → string.ts} +0 -0
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CodeWalkthroughLayout = CodeWalkthroughLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const core_1 = require("../core");
9
+ const utils_1 = require("@redocly/theme/core/utils");
10
10
  function CodeWalkthroughLayout({ className, children, }) {
11
11
  return (react_1.default.createElement(LayoutWrapper, { "data-component-name": "Layout/CodeWalkthroughLayout", className: className },
12
12
  react_1.default.createElement(ContentWrapper, null, children)));
@@ -61,7 +61,7 @@ const ContentWrapper = styled_components_1.default.section `
61
61
  /* Full-width styling for all .code-walkthroughs */
62
62
  .code-walkthrough {
63
63
  width: 100%;
64
- max-width: ${core_1.breakpoints.max};
64
+ max-width: ${utils_1.breakpoints.max};
65
65
  margin-left: auto;
66
66
  margin-right: auto;
67
67
  }
@@ -6,25 +6,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DocumentationLayout = DocumentationLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const EditPageButton_1 = require("../components/Buttons/EditPageButton");
10
- const utils_1 = require("../core/utils");
11
- const PageNavigation_1 = require("../components/PageNavigation/PageNavigation");
12
- const LastUpdated_1 = require("../components/LastUpdated/LastUpdated");
13
- const Breadcrumbs_1 = require("../components/Breadcrumbs/Breadcrumbs");
9
+ const EditPageButton_1 = require("@redocly/theme/components/Buttons/EditPageButton");
10
+ const utils_1 = require("@redocly/theme/core/utils");
11
+ const PageNavigation_1 = require("@redocly/theme/components/PageNavigation/PageNavigation");
12
+ const LastUpdated_1 = require("@redocly/theme/components/LastUpdated/LastUpdated");
13
+ const Breadcrumbs_1 = require("@redocly/theme/components/Breadcrumbs/Breadcrumbs");
14
+ const CodeSnippetContext_1 = require("../core/contexts/CodeSnippetContext");
15
+ const use_local_state_1 = require("../core/hooks/use-local-state");
14
16
  function DocumentationLayout({ tableOfContent, feedback, config, editPage, lastModified, nextPage, prevPage, className, children, }) {
15
17
  var _a;
16
18
  const { editPage: themeEditPage } = config || {};
17
19
  const mergedConf = editPage ? Object.assign(Object.assign({}, themeEditPage), editPage) : undefined;
18
- return (react_1.default.createElement(LayoutWrapper, { "data-component-name": "Layout/DocumentationLayout", className: className },
19
- react_1.default.createElement(ContentWrapper, { withToc: !((_a = config === null || config === void 0 ? void 0 : config.toc) === null || _a === void 0 ? void 0 : _a.hide) },
20
- react_1.default.createElement(Breadcrumbs, null),
21
- react_1.default.createElement(LayoutTop, null,
22
- lastModified && react_1.default.createElement(LastUpdated_1.LastUpdated, { lastModified: new Date(lastModified) }),
23
- mergedConf && react_1.default.createElement(EditPageButton_1.EditPageButton, { to: mergedConf.to })),
24
- children,
25
- react_1.default.createElement(LayoutBottom, null, feedback),
26
- react_1.default.createElement(PageNavigation_1.PageNavigation, { nextPage: nextPage, prevPage: prevPage })),
27
- tableOfContent));
20
+ const [activeSnippetName, setActiveSnippetName] = (0, use_local_state_1.useLocalState)(CodeSnippetContext_1.CODE_GROUP_SNIPPET_NAME_KEY, '');
21
+ return (react_1.default.createElement(CodeSnippetContext_1.CodeSnippetContext.Provider, { value: { activeSnippetName, setActiveSnippetName } },
22
+ react_1.default.createElement(LayoutWrapper, { "data-component-name": "Layout/DocumentationLayout", className: className },
23
+ react_1.default.createElement(ContentWrapper, { withToc: !((_a = config === null || config === void 0 ? void 0 : config.toc) === null || _a === void 0 ? void 0 : _a.hide) },
24
+ react_1.default.createElement(Breadcrumbs, null),
25
+ react_1.default.createElement(LayoutTop, null,
26
+ lastModified && react_1.default.createElement(LastUpdated_1.LastUpdated, { lastModified: new Date(lastModified) }),
27
+ mergedConf && react_1.default.createElement(EditPageButton_1.EditPageButton, { to: mergedConf.to })),
28
+ children,
29
+ react_1.default.createElement(LayoutBottom, null, feedback),
30
+ react_1.default.createElement(PageNavigation_1.PageNavigation, { nextPage: nextPage, prevPage: prevPage })),
31
+ tableOfContent)));
28
32
  }
29
33
  const LayoutWrapper = styled_components_1.default.div.attrs(({ className }) => ({
30
34
  className,
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Forbidden = Forbidden;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const hooks_1 = require("../core/hooks");
10
- const Button_1 = require("../components/Button/Button");
9
+ const hooks_1 = require("@redocly/theme/core/hooks");
10
+ const Button_1 = require("@redocly/theme/components/Button/Button");
11
11
  function Forbidden() {
12
12
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
13
13
  const { translate } = useTranslate();
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.InternalServerErrorLayout = InternalServerErrorLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const hooks_1 = require("../core/hooks");
10
- const Button_1 = require("../components/Button/Button");
11
- const ArrowLeftIcon_1 = require("../icons/ArrowLeftIcon/ArrowLeftIcon");
9
+ const hooks_1 = require("@redocly/theme/core/hooks");
10
+ const Button_1 = require("@redocly/theme/components/Button/Button");
11
+ const ArrowLeftIcon_1 = require("@redocly/theme/icons/ArrowLeftIcon/ArrowLeftIcon");
12
12
  function InternalServerErrorLayout() {
13
13
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
14
  const { translate } = useTranslate();
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.NotFound = NotFound;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const hooks_1 = require("../core/hooks");
10
- const Button_1 = require("../components/Button/Button");
11
- const ArrowLeftIcon_1 = require("../icons/ArrowLeftIcon/ArrowLeftIcon");
9
+ const hooks_1 = require("@redocly/theme/core/hooks");
10
+ const Button_1 = require("@redocly/theme/components/Button/Button");
11
+ const ArrowLeftIcon_1 = require("@redocly/theme/icons/ArrowLeftIcon/ArrowLeftIcon");
12
12
  function NotFound() {
13
13
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
14
  const { translate } = useTranslate();
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -30,7 +40,7 @@ exports.OIDCForbidden = OIDCForbidden;
30
40
  const react_1 = __importStar(require("react"));
31
41
  const styled_components_1 = __importDefault(require("styled-components"));
32
42
  const react_router_dom_1 = require("react-router-dom");
33
- const hooks_1 = require("../core/hooks");
43
+ const hooks_1 = require("@redocly/theme/core/hooks");
34
44
  function OIDCForbidden() {
35
45
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
36
46
  const { translate } = useTranslate();
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PageLayout = PageLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const utils_1 = require("../core/utils");
10
- const constants_1 = require("../core/constants");
9
+ const utils_1 = require("@redocly/theme/core/utils");
10
+ const constants_1 = require("@redocly/theme/core/constants");
11
11
  function PageLayout({ sidebar, children, }) {
12
12
  return (react_1.default.createElement(Container, { "data-component-name": "Layout/PageLayout" },
13
13
  sidebar,
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.RootLayout = RootLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
- const Navbar_1 = require("../components/Navbar/Navbar");
9
- const Footer_1 = require("../components/Footer/Footer");
10
- const SkipContent_1 = require("../components/SkipContent/SkipContent");
8
+ const Navbar_1 = require("@redocly/theme/components/Navbar/Navbar");
9
+ const Footer_1 = require("@redocly/theme/components/Footer/Footer");
10
+ const SkipContent_1 = require("@redocly/theme/components/SkipContent/SkipContent");
11
11
  function RootLayout({ children }) {
12
12
  return (react_1.default.createElement("div", { "data-component-name": "layouts/RootLayout" },
13
13
  react_1.default.createElement(SkipContent_1.SkipContent, null),
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __rest = (this && this.__rest) || function (s, e) {
26
36
  var t = {};
27
37
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -41,7 +51,7 @@ exports.ThreePanelLayout = ThreePanelLayout;
41
51
  const react_1 = __importDefault(require("react"));
42
52
  const styled_components_1 = __importStar(require("styled-components"));
43
53
  const config_1 = require("@redocly/config");
44
- const media_css_1 = require("../core/utils/media-css");
54
+ const media_css_1 = require("@redocly/theme/core/utils/media-css");
45
55
  function ThreePanelLayout(_a) {
46
56
  var { children } = _a, props = __rest(_a, ["children"]);
47
57
  return (react_1.default.createElement(Wrapper, Object.assign({ "data-component-name": "Layout/ThreePanelLayout" }, props), children));
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type AdmonitionProps } from '../../../components/Admonition/Admonition';
2
+ import { type AdmonitionProps } from '@redocly/theme/components/Admonition/Admonition';
3
3
  export declare function Admonition(props: React.PropsWithChildren<AdmonitionProps>): React.JSX.Element;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Admonition = Admonition;
7
7
  const react_1 = __importDefault(require("react"));
8
- const Admonition_1 = require("../../../components/Admonition/Admonition");
8
+ const Admonition_1 = require("@redocly/theme/components/Admonition/Admonition");
9
9
  function Admonition(props) {
10
10
  return react_1.default.createElement(Admonition_1.Admonition, Object.assign({}, props));
11
11
  }
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Card = Card;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const ChevronRightIcon_1 = require("../../../icons/ChevronRightIcon/ChevronRightIcon");
10
- const CardImage_1 = require("../../../markdoc/components/Cards/CardImage");
11
- const CardIcon_1 = require("../../../markdoc/components/Cards/CardIcon");
12
- const Link_1 = require("../../../components/Link/Link");
9
+ const ChevronRightIcon_1 = require("@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon");
10
+ const CardImage_1 = require("@redocly/theme/markdoc/components/Cards/CardImage");
11
+ const CardIcon_1 = require("@redocly/theme/markdoc/components/Cards/CardIcon");
12
+ const Link_1 = require("@redocly/theme/components/Link/Link");
13
13
  function Card({ title = '', image, icon, iconRawContent, imagePosition = 'start', iconPosition = 'auto', layout = 'vertical', variant = 'filled', lineClamp, iconVariant, align = 'start', to, children, }) {
14
14
  const titleNoSpaces = title === null || title === void 0 ? void 0 : title.replace(/\s+/g, '-').toLowerCase();
15
15
  const cardTitleId = `card-title-${titleNoSpaces}`;
@@ -6,28 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CardIcon = CardIcon;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const InlineSvg_1 = require("../../../markdoc/components/InlineSvg/InlineSvg");
9
+ const GenericIcon_1 = require("@redocly/theme/icons/GenericIcon/GenericIcon");
10
10
  function CardIcon({ variant, src, rawContent, position }) {
11
- return (react_1.default.createElement(CardIconWrapper, { "$variant": variant, "$position": position }, rawContent ? react_1.default.createElement(CardSvg, { fileRawContent: rawContent }) : react_1.default.createElement(CardImg, { src: src })));
11
+ return (react_1.default.createElement(CardIconWrapper, { "$variant": variant, "$position": position },
12
+ react_1.default.createElement(GenericIcon_1.GenericIcon, { icon: src, rawContent: rawContent })));
12
13
  }
13
- const CardImg = styled_components_1.default.img `
14
- width: var(--card-icon-width);
15
- height: var(--card-icon-height);
16
- display: inline-block;
17
- object-fit: cover;
18
- `;
19
- const CardSvg = (0, styled_components_1.default)(InlineSvg_1.InlineSvg) `
20
- width: var(--card-icon-width);
21
- height: var(--card-icon-height);
22
- display: inline-block;
23
-
24
- svg {
25
- width: 100%;
26
- height: 100%;
27
- fill: var(--card-icon-color);
28
- }
29
- `;
30
14
  const CardIconWrapper = styled_components_1.default.div `
15
+ --icon-width: var(--card-icon-width);
16
+ --icon-height: var(--card-icon-height);
17
+ --icon-color: var(--card-icon-color);
18
+
31
19
  display: flex;
32
20
  align-self: ${({ $position }) => ($position ? $position : 'auto')};
33
21
  justify-content: center;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type CodeBlockProps } from '../../../components/CodeBlock/CodeBlock';
2
+ import { type CodeBlockProps } from '@redocly/theme/components/CodeBlock/CodeBlock';
3
3
  export declare function CodeBlock(props: CodeBlockProps): React.JSX.Element;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CodeBlock = CodeBlock;
7
7
  const react_1 = __importDefault(require("react"));
8
- const CodeBlock_1 = require("../../../components/CodeBlock/CodeBlock");
8
+ const CodeBlock_1 = require("@redocly/theme/components/CodeBlock/CodeBlock");
9
9
  function CodeBlock(props) {
10
10
  return react_1.default.createElement(CodeBlock_1.CodeBlock, Object.assign({}, props));
11
11
  }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare function CodeGroup(props: React.PropsWithChildren<{
3
+ mode?: 'tabs' | 'dropdown';
4
+ }>): React.JSX.Element | null;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CodeGroup = CodeGroup;
37
+ const React = __importStar(require("react"));
38
+ const CodeBlock_1 = require("@redocly/theme/components/CodeBlock/CodeBlock");
39
+ const utils_1 = require("@redocly/theme/core/utils");
40
+ const contexts_1 = require("@redocly/theme/core/contexts");
41
+ function CodeGroup(props) {
42
+ const mode = props.mode || 'tabs';
43
+ const isTabsMode = mode === 'tabs';
44
+ const rawSnippets = React.useMemo(() => React.Children.toArray(props.children).map((child, idx) => {
45
+ const childProps = child;
46
+ return {
47
+ name: getTabName(childProps.props, idx),
48
+ languageName: (0, utils_1.langToName)(childProps.props.lang || 'Default'),
49
+ lang: childProps.props.lang || '',
50
+ props: childProps.props,
51
+ };
52
+ }), [props.children]);
53
+ const [activeSnippetName, setActiveSnippetName] = (0, contexts_1.useActiveCodeSnippetName)(mode);
54
+ const snippets = React.useMemo(() => Object.fromEntries(rawSnippets.map((snippet) => {
55
+ const getItemName = (snippet) => isTabsMode ? snippet === null || snippet === void 0 ? void 0 : snippet.name : (snippet === null || snippet === void 0 ? void 0 : snippet.languageName) || '';
56
+ const name = getItemName(snippet);
57
+ const items = rawSnippets.map((item) => ({
58
+ name: getItemName(item),
59
+ lang: item.lang,
60
+ }));
61
+ const itemsProps = {
62
+ items,
63
+ onChange: (name) => {
64
+ setActiveSnippetName(name);
65
+ },
66
+ value: activeSnippetName || getItemName(rawSnippets[0]),
67
+ };
68
+ const snippetProps = Object.assign(Object.assign(Object.assign({}, snippet.props), { header: Object.assign(Object.assign({}, snippet.props.header), { title: isTabsMode ? undefined : snippet.name }) }), (isTabsMode ? { tabs: itemsProps } : { dropdown: itemsProps }));
69
+ return [name, snippetProps];
70
+ })), [rawSnippets, activeSnippetName, isTabsMode, setActiveSnippetName]);
71
+ const firstName = Object.keys(snippets)[0];
72
+ const activeSnippet = snippets[activeSnippetName] || snippets[firstName];
73
+ if (!activeSnippet) {
74
+ return null;
75
+ }
76
+ return React.createElement(CodeBlock_1.CodeBlock, Object.assign({}, activeSnippet));
77
+ }
78
+ function getTabName(props, idx) {
79
+ var _a;
80
+ return String(((_a = props.header) === null || _a === void 0 ? void 0 : _a.title) || props.file || (0, utils_1.langToName)(props.lang || '') || 'Tab ' + String(idx + 1));
81
+ }
82
+ //# sourceMappingURL=CodeGroup.js.map
@@ -15,19 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.CodeContainer = CodeContainer;
27
37
  const react_1 = __importStar(require("react"));
28
38
  const styled_components_1 = __importStar(require("styled-components"));
29
- const contexts_1 = require("../../../core/contexts");
30
- const CodeBlockContainer_1 = require("../../../components/CodeBlock/CodeBlockContainer");
39
+ const contexts_1 = require("@redocly/theme/core/contexts");
40
+ const CodeBlockContainer_1 = require("@redocly/theme/components/CodeBlock/CodeBlockContainer");
31
41
  function CodeContainer({ highlightedCode, toolbar, }) {
32
42
  const { activeStep } = (0, react_1.useContext)(contexts_1.CodeWalkthroughStepsContext);
33
43
  const [isHovered, setIsHovered] = (0, react_1.useState)(false);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CodeFilters = CodeFilters;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const Tag_1 = require("../../../components/Tag/Tag");
9
+ const Tag_1 = require("@redocly/theme/components/Tag/Tag");
10
10
  function CodeFilters({ filters, getFilterState, handleFilterSelect, filtersElementRef, }) {
11
11
  if (filters.length === 0) {
12
12
  return null;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -29,12 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.CodePanel = CodePanel;
30
40
  const react_1 = __importStar(require("react"));
31
41
  const styled_components_1 = __importDefault(require("styled-components"));
32
- const hooks_1 = require("../../../core/hooks");
33
- const contexts_1 = require("../../../core/contexts");
34
- const CodePanelHeader_1 = require("../../../markdoc/components/CodeWalkthrough/CodePanelHeader");
35
- const CodePanelPreview_1 = require("../../../markdoc/components/CodeWalkthrough/CodePanelPreview");
36
- const CodeContainer_1 = require("../../../markdoc/components/CodeWalkthrough/CodeContainer");
37
- const CodePanelToolbar_1 = require("../../../markdoc/components/CodeWalkthrough/CodePanelToolbar");
42
+ const hooks_1 = require("@redocly/theme/core/hooks");
43
+ const contexts_1 = require("@redocly/theme/core/contexts");
44
+ const CodePanelHeader_1 = require("@redocly/theme/markdoc/components/CodeWalkthrough/CodePanelHeader");
45
+ const CodePanelPreview_1 = require("@redocly/theme/markdoc/components/CodeWalkthrough/CodePanelPreview");
46
+ const CodeContainer_1 = require("@redocly/theme/markdoc/components/CodeWalkthrough/CodeContainer");
47
+ const CodePanelToolbar_1 = require("@redocly/theme/markdoc/components/CodeWalkthrough/CodePanelToolbar");
38
48
  function CodePanel({ files, downloadAssociatedFiles, preview, }) {
39
49
  const { activeFile, handleTabSwitch, highlightedCode } = (0, hooks_1.useCodePanel)(files);
40
50
  const { handleDownloadCode } = (0, react_1.useContext)(contexts_1.CodeWalkthroughControlsStateContext);
@@ -15,24 +15,34 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.CodePanelHeader = CodePanelHeader;
27
37
  const react_1 = __importStar(require("react"));
28
38
  const styled_components_1 = __importStar(require("styled-components"));
29
- const hooks_1 = require("../../../core/hooks");
30
- const OverflowMenuVerticalIcon_1 = require("../../../icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon");
31
- const Dropdown_1 = require("../../../components/Dropdown/Dropdown");
32
- const DropdownMenu_1 = require("../../../components/Dropdown/DropdownMenu");
33
- const DropdownMenuItem_1 = require("../../../components/Dropdown/DropdownMenuItem");
34
- const DownloadIcon_1 = require("../../../icons/DownloadIcon/DownloadIcon");
35
- const Button_1 = require("../../../components/Button/Button");
39
+ const hooks_1 = require("@redocly/theme/core/hooks");
40
+ const OverflowMenuVerticalIcon_1 = require("@redocly/theme/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon");
41
+ const Dropdown_1 = require("@redocly/theme/components/Dropdown/Dropdown");
42
+ const DropdownMenu_1 = require("@redocly/theme/components/Dropdown/DropdownMenu");
43
+ const DropdownMenuItem_1 = require("@redocly/theme/components/Dropdown/DropdownMenuItem");
44
+ const DownloadIcon_1 = require("@redocly/theme/icons/DownloadIcon/DownloadIcon");
45
+ const Button_1 = require("@redocly/theme/components/Button/Button");
36
46
  function CodePanelHeader({ files, handleTabSwitch, activeTabName, onDownloadCode, }) {
37
47
  const renderableFiles = (0, hooks_1.useRenderableFiles)(files);
38
48
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
@@ -74,19 +84,19 @@ function CodePanelHeader({ files, handleTabSwitch, activeTabName, onDownloadCode
74
84
  }, [activeTabName, files, renderableFiles]);
75
85
  return (react_1.default.createElement(CodePanelHeaderWrapper, { "data-component-name": "Markdoc/CodeWalkthrough/CodePanelHeader" },
76
86
  react_1.default.createElement(TabsWrapper, { ref: tabsWrapperRef },
77
- react_1.default.createElement(Tabs, null, renderableFiles.map(({ path, basename, FileIcon, parentFolder, isNameDuplicate, inRootDir }, i) => {
87
+ react_1.default.createElement(Tabs, null, renderableFiles.map(({ path, basename, fileIcon, parentFolder, isNameDuplicate, inRootDir }, i) => {
78
88
  return (react_1.default.createElement(Tab, { ref: (el) => {
79
89
  tabRefs.current[i] = el;
80
90
  }, "data-name": path, active: path === activeTabName, key: i, onClick: () => handleTabSwitch(path) },
81
- react_1.default.createElement(FileIcon, null),
91
+ fileIcon,
82
92
  basename,
83
93
  isNameDuplicate && !inRootDir ? react_1.default.createElement(Dirname, null, parentFolder) : null));
84
94
  })),
85
95
  react_1.default.createElement(Gradient, null)),
86
96
  react_1.default.createElement(ActionBar, null,
87
97
  hiddenFiles.length ? (react_1.default.createElement(Dropdown_1.Dropdown, { trigger: react_1.default.createElement(StyledOverflowMenuVerticalIcon, { size: "14px" }), alignment: "end" },
88
- react_1.default.createElement(StyledDropdownMenu, null, hiddenFiles.map(({ path, basename, FileIcon, isNameDuplicate, inRootDir, parentFolder }, i) => {
89
- return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { active: path === activeTabName, key: i, onAction: () => handleTabSwitch(path), prefix: react_1.default.createElement(FileIcon, null), content: isNameDuplicate && !inRootDir ? `${parentFolder}/${basename}` : basename }));
98
+ react_1.default.createElement(StyledDropdownMenu, null, hiddenFiles.map(({ path, basename, fileIcon, isNameDuplicate, inRootDir, parentFolder }, i) => {
99
+ return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { active: path === activeTabName, key: i, onAction: () => handleTabSwitch(path), prefix: fileIcon, content: isNameDuplicate && !inRootDir ? `${parentFolder}/${basename}` : basename }));
90
100
  })))) : null,
91
101
  react_1.default.createElement(Button_1.Button, { variant: "text", icon: react_1.default.createElement(DownloadIcon_1.DownloadIcon, null), onClick: onDownloadCode, size: "small" }, translate('codeWalkthrough.download', 'Download')))));
92
102
  }
@@ -127,6 +137,9 @@ const ActionBar = styled_components_1.default.div `
127
137
  display: flex;
128
138
  `;
129
139
  const Tab = styled_components_1.default.button `
140
+ --icon-width: 16px;
141
+ --icon-height: 16px;
142
+
130
143
  display: inline-flex;
131
144
  align-items: center;
132
145
  padding: 0 var(--spacing-sm);