@redocly/theme 0.55.0-next.9 → 0.55.0-rc.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 (353) hide show
  1. package/lib/components/Admonition/Admonition.js +0 -4
  2. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  3. package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -2
  4. package/lib/components/Button/Button.d.ts +0 -1
  5. package/lib/components/CatalogClassic/CatalogClassicHighlight.js +1 -1
  6. package/lib/components/Dropdown/variables.js +1 -1
  7. package/lib/components/Filter/Filter.d.ts +1 -1
  8. package/lib/components/Filter/Filter.js +2 -2
  9. package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
  10. package/lib/components/Filter/FilterCheckboxes.js +4 -4
  11. package/lib/components/Filter/FilterContent.d.ts +1 -3
  12. package/lib/components/Filter/FilterContent.js +4 -34
  13. package/lib/components/Filter/FilterInput.js +3 -35
  14. package/lib/components/Filter/FilterSelect.d.ts +1 -1
  15. package/lib/components/Filter/FilterSelect.js +4 -4
  16. package/lib/components/Image/Image.js +2 -2
  17. package/lib/components/Markdown/Markdown.js +1 -1
  18. package/lib/components/Menu/MenuItem.d.ts +1 -1
  19. package/lib/components/Menu/MenuItem.js +3 -7
  20. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.d.ts +1 -0
  21. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.js +5 -0
  22. package/lib/components/PageNavigation/NextButton.js +29 -10
  23. package/lib/components/PageNavigation/PageNavigation.js +1 -1
  24. package/lib/components/PageNavigation/PreviousButton.js +27 -11
  25. package/lib/components/Search/SearchAiConversationInput.js +1 -2
  26. package/lib/components/Select/Select.js +6 -22
  27. package/lib/components/Select/SelectInput.d.ts +0 -1
  28. package/lib/components/Select/SelectInput.js +3 -7
  29. package/lib/components/Select/variables.js +2 -2
  30. package/lib/components/Sidebar/Sidebar.d.ts +0 -3
  31. package/lib/components/Sidebar/Sidebar.js +2 -3
  32. package/lib/components/Tag/Tag.d.ts +1 -3
  33. package/lib/components/Tag/Tag.js +2 -54
  34. package/lib/components/Tag/variables.js +0 -21
  35. package/lib/components/Tooltip/Tooltip.d.ts +1 -2
  36. package/lib/components/Tooltip/Tooltip.js +19 -26
  37. package/lib/components/Tooltip/variables.js +0 -17
  38. package/lib/components/VersionPicker/VersionPicker.js +3 -22
  39. package/lib/components/VersionPicker/variables.js +0 -1
  40. package/lib/core/constants/common.d.ts +0 -1
  41. package/lib/core/constants/common.js +1 -2
  42. package/lib/core/constants/index.d.ts +0 -1
  43. package/lib/core/constants/index.js +0 -1
  44. package/lib/core/constants/search.d.ts +0 -1
  45. package/lib/core/constants/search.js +1 -2
  46. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.d.ts +1 -1
  47. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.js +2 -5
  48. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +0 -1
  49. package/lib/core/hooks/__mocks__/use-theme-hooks.js +0 -1
  50. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +9 -17
  51. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.js +47 -242
  52. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +2 -9
  53. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.js +2 -2
  54. package/lib/core/hooks/index.d.ts +1 -3
  55. package/lib/core/hooks/index.js +1 -3
  56. package/lib/core/hooks/use-page-active-version.d.ts +1 -0
  57. package/lib/core/hooks/{use-active-page-version.js → use-page-active-version.js} +3 -3
  58. package/lib/core/styles/dark.js +0 -2
  59. package/lib/core/styles/global.js +60 -65
  60. package/lib/core/types/catalog.d.ts +5 -118
  61. package/lib/core/types/filter.d.ts +0 -1
  62. package/lib/core/types/hooks.d.ts +4 -11
  63. package/lib/core/types/index.d.ts +0 -3
  64. package/lib/core/types/index.js +0 -3
  65. package/lib/core/types/l10n.d.ts +1 -1
  66. package/lib/core/utils/index.d.ts +0 -1
  67. package/lib/core/utils/index.js +0 -1
  68. package/lib/core/utils/js-utils.d.ts +0 -18
  69. package/lib/core/utils/js-utils.js +0 -31
  70. package/lib/ext/process-scorecard.d.ts +5 -0
  71. package/lib/ext/process-scorecard.js +11 -0
  72. package/lib/index.d.ts +1 -19
  73. package/lib/index.js +1 -20
  74. package/lib/layouts/PageLayout.js +1 -2
  75. package/lib/layouts/RootLayout.js +0 -2
  76. package/lib/markdoc/components/CodeWalkthrough/CodeStep.d.ts +2 -1
  77. package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +20 -26
  78. package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +3 -32
  79. package/lib/markdoc/components/Tabs/Tab.d.ts +1 -2
  80. package/lib/markdoc/components/Tabs/Tab.js +2 -10
  81. package/lib/markdoc/components/Tabs/TabList.d.ts +4 -1
  82. package/lib/markdoc/components/Tabs/TabList.js +38 -18
  83. package/lib/markdoc/components/Tabs/Tabs.d.ts +1 -3
  84. package/lib/markdoc/components/Tabs/Tabs.js +9 -5
  85. package/lib/markdoc/tags/code-step.js +3 -0
  86. package/lib/markdoc/tags/code-walkthrough.js +1 -0
  87. package/package.json +3 -4
  88. package/src/components/Admonition/Admonition.tsx +0 -4
  89. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -7
  90. package/src/components/Button/Button.tsx +1 -1
  91. package/src/components/CatalogClassic/CatalogClassicHighlight.tsx +1 -1
  92. package/src/components/Dropdown/variables.ts +1 -1
  93. package/src/components/Filter/Filter.tsx +2 -10
  94. package/src/components/Filter/FilterCheckboxes.tsx +4 -8
  95. package/src/components/Filter/FilterContent.tsx +5 -21
  96. package/src/components/Filter/FilterInput.tsx +4 -16
  97. package/src/components/Filter/FilterSelect.tsx +4 -8
  98. package/src/components/Image/Image.tsx +9 -5
  99. package/src/components/Markdown/Markdown.tsx +1 -1
  100. package/src/components/Menu/MenuItem.tsx +2 -11
  101. package/src/components/OpenApiDocs/hooks/AfterOpenApiDescription.tsx +1 -0
  102. package/src/components/PageNavigation/NextButton.tsx +43 -20
  103. package/src/components/PageNavigation/PageNavigation.tsx +1 -1
  104. package/src/components/PageNavigation/PreviousButton.tsx +43 -20
  105. package/src/components/Search/SearchAiConversationInput.tsx +0 -3
  106. package/src/components/Select/Select.tsx +4 -29
  107. package/src/components/Select/SelectInput.tsx +1 -20
  108. package/src/components/Select/variables.ts +2 -2
  109. package/src/components/Sidebar/Sidebar.tsx +1 -1
  110. package/src/components/Tag/Tag.tsx +1 -67
  111. package/src/components/Tag/variables.ts +0 -21
  112. package/src/components/Tooltip/Tooltip.tsx +22 -31
  113. package/src/components/Tooltip/variables.ts +0 -17
  114. package/src/components/VersionPicker/VersionPicker.tsx +2 -32
  115. package/src/components/VersionPicker/variables.ts +0 -1
  116. package/src/core/constants/common.ts +0 -1
  117. package/src/core/constants/index.ts +0 -1
  118. package/src/core/constants/search.ts +0 -2
  119. package/src/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.tsx +3 -6
  120. package/src/core/hooks/__mocks__/use-theme-hooks.ts +0 -1
  121. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +65 -326
  122. package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +6 -9
  123. package/src/core/hooks/index.ts +1 -3
  124. package/src/core/hooks/{use-active-page-version.ts → use-page-active-version.ts} +1 -1
  125. package/src/core/styles/dark.ts +0 -2
  126. package/src/core/styles/global.ts +0 -5
  127. package/src/core/types/catalog.ts +5 -143
  128. package/src/core/types/filter.ts +0 -1
  129. package/src/core/types/hooks.ts +5 -32
  130. package/src/core/types/index.ts +0 -3
  131. package/src/core/types/l10n.ts +1 -22
  132. package/src/core/utils/index.ts +0 -1
  133. package/src/core/utils/js-utils.ts +0 -31
  134. package/src/core/utils/load-and-navigate.ts +4 -5
  135. package/src/ext/process-scorecard.ts +13 -0
  136. package/src/index.ts +1 -21
  137. package/src/layouts/PageLayout.tsx +1 -4
  138. package/src/layouts/RootLayout.tsx +0 -2
  139. package/src/markdoc/components/CodeWalkthrough/CodeStep.tsx +36 -76
  140. package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +3 -8
  141. package/src/markdoc/components/Tabs/Tab.tsx +1 -12
  142. package/src/markdoc/components/Tabs/TabList.tsx +70 -40
  143. package/src/markdoc/components/Tabs/Tabs.tsx +10 -11
  144. package/src/markdoc/tags/code-step.ts +3 -0
  145. package/src/markdoc/tags/code-walkthrough.ts +1 -0
  146. package/lib/components/Catalog/Catalog.d.ts +0 -11
  147. package/lib/components/Catalog/Catalog.js +0 -138
  148. package/lib/components/Catalog/CatalogActionsRow.d.ts +0 -15
  149. package/lib/components/Catalog/CatalogActionsRow.js +0 -34
  150. package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +0 -8
  151. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +0 -179
  152. package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +0 -8
  153. package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +0 -20
  154. package/lib/components/Catalog/CatalogEntities.d.ts +0 -18
  155. package/lib/components/Catalog/CatalogEntities.js +0 -63
  156. package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +0 -2
  157. package/lib/components/Catalog/CatalogEntitiesEmptyState.js +0 -38
  158. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +0 -12
  159. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +0 -133
  160. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +0 -7
  161. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +0 -49
  162. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +0 -6
  163. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +0 -48
  164. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +0 -6
  165. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +0 -111
  166. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +0 -6
  167. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +0 -25
  168. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +0 -6
  169. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +0 -69
  170. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +0 -7
  171. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +0 -48
  172. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +0 -6
  173. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +0 -19
  174. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +0 -6
  175. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +0 -20
  176. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +0 -6
  177. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +0 -20
  178. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +0 -6
  179. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +0 -23
  180. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +0 -6
  181. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +0 -21
  182. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +0 -6
  183. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +0 -24
  184. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +0 -6
  185. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +0 -21
  186. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +0 -21
  187. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +0 -37
  188. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +0 -10
  189. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +0 -31
  190. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +0 -25
  191. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +0 -27
  192. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +0 -22
  193. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +0 -60
  194. package/lib/components/Catalog/CatalogEntityIcon.d.ts +0 -5
  195. package/lib/components/Catalog/CatalogEntityIcon.js +0 -38
  196. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +0 -5
  197. package/lib/components/Catalog/CatalogEntityTypeIcon.js +0 -42
  198. package/lib/components/Catalog/CatalogHighlight.d.ts +0 -4
  199. package/lib/components/Catalog/CatalogHighlight.js +0 -48
  200. package/lib/components/Catalog/CatalogPageDescription.d.ts +0 -9
  201. package/lib/components/Catalog/CatalogPageDescription.js +0 -52
  202. package/lib/components/Catalog/CatalogSelector.d.ts +0 -12
  203. package/lib/components/Catalog/CatalogSelector.js +0 -48
  204. package/lib/components/Catalog/CatalogSortButton.d.ts +0 -10
  205. package/lib/components/Catalog/CatalogSortButton.js +0 -71
  206. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.d.ts +0 -5
  207. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +0 -19
  208. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +0 -6
  209. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +0 -63
  210. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.d.ts +0 -5
  211. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +0 -19
  212. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +0 -11
  213. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +0 -101
  214. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +0 -31
  215. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +0 -106
  216. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -27
  217. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +0 -127
  218. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +0 -6
  219. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +0 -20
  220. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.d.ts +0 -7
  221. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +0 -66
  222. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -9
  223. package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -46
  224. package/lib/components/Catalog/CatalogViewModeToggle.d.ts +0 -7
  225. package/lib/components/Catalog/CatalogViewModeToggle.js +0 -67
  226. package/lib/components/Catalog/variables.d.ts +0 -1
  227. package/lib/components/Catalog/variables.dark.d.ts +0 -1
  228. package/lib/components/Catalog/variables.dark.js +0 -8
  229. package/lib/components/Catalog/variables.js +0 -354
  230. package/lib/components/LoadMore/LoadMore.d.ts +0 -8
  231. package/lib/components/LoadMore/LoadMore.js +0 -18
  232. package/lib/components/Marker/Marker.d.ts +0 -10
  233. package/lib/components/Marker/Marker.js +0 -62
  234. package/lib/components/PageNavigation/NavigationButton.d.ts +0 -13
  235. package/lib/components/PageNavigation/NavigationButton.js +0 -32
  236. package/lib/components/SkipContent/SkipContent.d.ts +0 -2
  237. package/lib/components/SkipContent/SkipContent.js +0 -68
  238. package/lib/components/SkipContent/variables.d.ts +0 -1
  239. package/lib/components/SkipContent/variables.js +0 -23
  240. package/lib/core/constants/catalog.d.ts +0 -1
  241. package/lib/core/constants/catalog.js +0 -5
  242. package/lib/core/hooks/catalog/useCatalogEntities.d.ts +0 -4
  243. package/lib/core/hooks/catalog/useCatalogEntities.js +0 -17
  244. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +0 -15
  245. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.js +0 -23
  246. package/lib/core/hooks/catalog/useCatalogTableViewRow.d.ts +0 -11
  247. package/lib/core/hooks/catalog/useCatalogTableViewRow.js +0 -26
  248. package/lib/core/hooks/use-active-page-version.d.ts +0 -1
  249. package/lib/core/hooks/use-user-teams.d.ts +0 -1
  250. package/lib/core/hooks/use-user-teams.js +0 -10
  251. package/lib/core/types/code-walkthrough.d.ts +0 -13
  252. package/lib/core/types/code-walkthrough.js +0 -3
  253. package/lib/core/types/marker.d.ts +0 -4
  254. package/lib/core/types/marker.js +0 -3
  255. package/lib/core/types/telemetry.d.ts +0 -32
  256. package/lib/core/types/telemetry.js +0 -3
  257. package/lib/core/utils/parse-style-string.d.ts +0 -1
  258. package/lib/core/utils/parse-style-string.js +0 -23
  259. package/lib/icons/AscSortIcon/AscSortIcon.d.ts +0 -9
  260. package/lib/icons/AscSortIcon/AscSortIcon.js +0 -25
  261. package/lib/icons/CardsIcon/CardsIcon.d.ts +0 -9
  262. package/lib/icons/CardsIcon/CardsIcon.js +0 -25
  263. package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +0 -9
  264. package/lib/icons/CaretDownIcon/CaretDownIcon.js +0 -22
  265. package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +0 -9
  266. package/lib/icons/CaretUpIcon/CaretUpIcon.js +0 -22
  267. package/lib/icons/DescSortIcon/DescSortIcon.d.ts +0 -9
  268. package/lib/icons/DescSortIcon/DescSortIcon.js +0 -25
  269. package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +0 -9
  270. package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +0 -26
  271. package/lib/icons/GithubIcon/GithubIcon.d.ts +0 -9
  272. package/lib/icons/GithubIcon/GithubIcon.js +0 -22
  273. package/lib/icons/GraphIcon/GraphIcon.d.ts +0 -9
  274. package/lib/icons/GraphIcon/GraphIcon.js +0 -22
  275. package/lib/icons/PeopleIcon/PeopleIcon.d.ts +0 -9
  276. package/lib/icons/PeopleIcon/PeopleIcon.js +0 -27
  277. package/lib/icons/SlackIcon/SlackIcon.d.ts +0 -9
  278. package/lib/icons/SlackIcon/SlackIcon.js +0 -29
  279. package/lib/icons/SortIcon/SortIcon.d.ts +0 -9
  280. package/lib/icons/SortIcon/SortIcon.js +0 -25
  281. package/lib/icons/TableIcon/TableIcon.d.ts +0 -9
  282. package/lib/icons/TableIcon/TableIcon.js +0 -22
  283. package/lib/icons/TagsIcon/TagsIcon.d.ts +0 -9
  284. package/lib/icons/TagsIcon/TagsIcon.js +0 -24
  285. package/src/components/Catalog/Catalog.tsx +0 -235
  286. package/src/components/Catalog/CatalogActionsRow.tsx +0 -58
  287. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +0 -227
  288. package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +0 -29
  289. package/src/components/Catalog/CatalogEntities.tsx +0 -107
  290. package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +0 -38
  291. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +0 -207
  292. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +0 -60
  293. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +0 -67
  294. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +0 -93
  295. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +0 -35
  296. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +0 -83
  297. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +0 -62
  298. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +0 -36
  299. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +0 -38
  300. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +0 -33
  301. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +0 -41
  302. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +0 -42
  303. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +0 -39
  304. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +0 -31
  305. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +0 -97
  306. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +0 -80
  307. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +0 -92
  308. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +0 -127
  309. package/src/components/Catalog/CatalogEntityIcon.tsx +0 -41
  310. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +0 -48
  311. package/src/components/Catalog/CatalogHighlight.tsx +0 -56
  312. package/src/components/Catalog/CatalogPageDescription.tsx +0 -72
  313. package/src/components/Catalog/CatalogSelector.tsx +0 -67
  314. package/src/components/Catalog/CatalogSortButton.tsx +0 -78
  315. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +0 -26
  316. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +0 -77
  317. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +0 -26
  318. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +0 -120
  319. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +0 -176
  320. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +0 -180
  321. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +0 -28
  322. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +0 -77
  323. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -83
  324. package/src/components/Catalog/CatalogViewModeToggle.tsx +0 -65
  325. package/src/components/Catalog/variables.dark.ts +0 -5
  326. package/src/components/Catalog/variables.ts +0 -351
  327. package/src/components/LoadMore/LoadMore.tsx +0 -38
  328. package/src/components/Marker/Marker.tsx +0 -53
  329. package/src/components/PageNavigation/NavigationButton.tsx +0 -68
  330. package/src/components/SkipContent/SkipContent.tsx +0 -47
  331. package/src/components/SkipContent/variables.ts +0 -20
  332. package/src/core/constants/catalog.ts +0 -1
  333. package/src/core/hooks/catalog/useCatalogEntities.ts +0 -16
  334. package/src/core/hooks/catalog/useCatalogTableHeaderCellActions.ts +0 -38
  335. package/src/core/hooks/catalog/useCatalogTableViewRow.ts +0 -40
  336. package/src/core/hooks/use-user-teams.ts +0 -8
  337. package/src/core/types/code-walkthrough.ts +0 -15
  338. package/src/core/types/marker.ts +0 -4
  339. package/src/core/types/telemetry.ts +0 -36
  340. package/src/core/utils/parse-style-string.ts +0 -21
  341. package/src/icons/AscSortIcon/AscSortIcon.tsx +0 -29
  342. package/src/icons/CardsIcon/CardsIcon.tsx +0 -38
  343. package/src/icons/CaretDownIcon/CaretDownIcon.tsx +0 -26
  344. package/src/icons/CaretUpIcon/CaretUpIcon.tsx +0 -26
  345. package/src/icons/DescSortIcon/DescSortIcon.tsx +0 -29
  346. package/src/icons/EntityTypeIcon/EntityTypeIcon.tsx +0 -49
  347. package/src/icons/GithubIcon/GithubIcon.tsx +0 -35
  348. package/src/icons/GraphIcon/GraphIcon.tsx +0 -26
  349. package/src/icons/PeopleIcon/PeopleIcon.tsx +0 -46
  350. package/src/icons/SlackIcon/SlackIcon.tsx +0 -61
  351. package/src/icons/SortIcon/SortIcon.tsx +0 -29
  352. package/src/icons/TableIcon/TableIcon.tsx +0 -26
  353. package/src/icons/TagsIcon/TagsIcon.tsx +0 -41
@@ -51,10 +51,6 @@ const Content = styled_components_1.default.div `
51
51
  & > p:first-child {
52
52
  margin-top: 0;
53
53
  }
54
-
55
- & > p:last-child {
56
- margin-bottom: 0;
57
- }
58
54
  `;
59
55
  const AdmonitionWrapper = styled_components_1.default.div `
60
56
  display: flex;
@@ -1,6 +1,4 @@
1
- import { BreadcrumbItem } from '@redocly/config';
2
1
  import type { JSX } from 'react';
3
2
  export declare function Breadcrumbs(props: {
4
3
  className?: string;
5
- additionalBreadcrumbs?: BreadcrumbItem[];
6
4
  }): JSX.Element | null;
@@ -10,9 +10,8 @@ const hooks_1 = require("../../core/hooks");
10
10
  const Breadcrumb_1 = require("../../components/Breadcrumbs/Breadcrumb");
11
11
  function Breadcrumbs(props) {
12
12
  const { useBreadcrumbs, useTelemetry } = (0, hooks_1.useThemeHooks)();
13
- const fileBreadcrumbs = useBreadcrumbs();
14
- const breadcrumbs = [...fileBreadcrumbs, ...(props.additionalBreadcrumbs || [])];
15
13
  const telemetry = useTelemetry();
14
+ const breadcrumbs = useBreadcrumbs();
16
15
  if (breadcrumbs.length === 0) {
17
16
  return null;
18
17
  }
@@ -18,7 +18,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
18
18
  title?: string;
19
19
  tabIndex?: number;
20
20
  onClick?: (e?: any) => void;
21
- ref?: React.Ref<HTMLButtonElement>;
22
21
  type?: 'button' | 'submit' | 'reset';
23
22
  }
24
23
  export declare function generateClassName({ variant, tone, size, extraClass, }: ButtonProps): string;
@@ -61,7 +61,7 @@ function CatalogClassicHighlight(props) {
61
61
  return (React.createElement(React.Fragment, null, children.map((child, idx) => typeof children === 'string' ? highlight(child, idx) : child || null)));
62
62
  }
63
63
  else {
64
- return React.createElement(React.Fragment, null, children);
64
+ return React.createElement(React.Fragment, null, "children") || null;
65
65
  }
66
66
  }
67
67
  const HighlightedText = styled_components_1.default.span `
@@ -42,7 +42,7 @@ exports.dropdown = (0, styled_components_1.css) `
42
42
 
43
43
  --dropdown-menu-item-color-dangerous: var(--color-error-base);
44
44
 
45
- --dropdown-menu-item-border-color-focused: var(--button-border-color-focused);
45
+ --dropdown-menu-item-border-color-focused: var(--color-blue-4);
46
46
  // @tokens End
47
47
  `;
48
48
  //# sourceMappingURL=variables.js.map
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { FilterProps } from '../../core/types';
3
- export declare function Filter({ filter, filterValuesCasing, showCounter, }: FilterProps): JSX.Element | null;
3
+ export declare function Filter({ filter, filterValuesCasing }: FilterProps): JSX.Element | null;
@@ -14,12 +14,12 @@ const filterComponents = {
14
14
  'date-range': FilterDateRange_1.FilterDateRange,
15
15
  checkboxes: FilterCheckboxes_1.FilterCheckboxes,
16
16
  };
17
- function Filter({ filter, filterValuesCasing, showCounter = true, }) {
17
+ function Filter({ filter, filterValuesCasing }) {
18
18
  if (!filter.parentUsed)
19
19
  return null;
20
20
  const FilterComponent = filterComponents[(filter.type || 'checkboxes')];
21
21
  return (react_1.default.createElement(FilterGroup, { "data-component-name": "Filter/Filter", key: filter.property + filter.title },
22
- react_1.default.createElement(FilterComponent, { filter: filter, filterValuesCasing: filterValuesCasing, showCounter: showCounter })));
22
+ react_1.default.createElement(FilterComponent, { filter: filter, filterValuesCasing: filterValuesCasing })));
23
23
  }
24
24
  const FilterGroup = styled_components_1.default.div `
25
25
  padding: var(--filter-group-padding);
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { FilterProps } from '../../core/types';
3
- export declare function FilterCheckboxes({ filter, filterValuesCasing, showCounter, }: FilterProps): JSX.Element;
3
+ export declare function FilterCheckboxes({ filter, filterValuesCasing }: FilterProps): JSX.Element;
@@ -14,21 +14,21 @@ const hooks_1 = require("../../core/hooks");
14
14
  const CheckboxIcon_1 = require("../../icons/CheckboxIcon/CheckboxIcon");
15
15
  const CounterTag_1 = require("../../components/Tags/CounterTag");
16
16
  const utils_1 = require("../../core/utils");
17
- function FilterCheckboxes({ filter, filterValuesCasing, showCounter = true, }) {
17
+ function FilterCheckboxes({ filter, filterValuesCasing }) {
18
18
  const { useTranslate, useTelemetry } = (0, hooks_1.useThemeHooks)();
19
19
  const { translate } = useTranslate();
20
20
  const telemetry = useTelemetry();
21
21
  return (react_1.default.createElement(FilterCheckboxesWrapper, { "data-component-name": "Filter/FilterCheckboxes" },
22
22
  react_1.default.createElement(FilterTitle_1.FilterTitle, { "data-translation-key": filter.titleTranslationKey }, translate(filter.titleTranslationKey, filter.title)),
23
- react_1.default.createElement(FilterOptions_1.FilterOptions, null, filter.options.map(({ value, count }) => {
23
+ react_1.default.createElement(FilterOptions_1.FilterOptions, null, filter.filteredOptions.map(({ value, count }) => {
24
24
  const id = 'filter--' + filter.property + '--' + value;
25
25
  return (react_1.default.createElement(FilterCheckboxOption, { key: id, role: "link", onClick: () => {
26
26
  filter.toggleOption(value);
27
27
  telemetry.send({ type: 'filter_checkbox.toggled', payload: { id } });
28
28
  } },
29
- react_1.default.createElement(CheckboxIcon_1.CheckboxIcon, { checked: filter.selectedOptions.has(value === null || value === void 0 ? void 0 : value.toLowerCase()) }),
29
+ react_1.default.createElement(CheckboxIcon_1.CheckboxIcon, { checked: filter.selectedOptions.has(value) }),
30
30
  react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": value }, (0, utils_1.changeTextCasing)(translate(value), filterValuesCasing)),
31
- showCounter && react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, count)));
31
+ react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, count)));
32
32
  }))));
33
33
  }
34
34
  const FilterCheckboxOption = (0, styled_components_1.default)(FilterOption_1.FilterOption) `
@@ -6,7 +6,5 @@ export type FilterContentProps = {
6
6
  filters: ResolvedFilter[];
7
7
  filterTerm: string;
8
8
  filterValuesCasing?: NonNullable<RedoclyConfig['catalog']>[string]['filterValuesCasing'];
9
- hideSearch?: boolean;
10
- showCounter?: boolean;
11
9
  };
12
- export declare function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, hideSearch, showCounter, }: FilterContentProps): JSX.Element | null;
10
+ export declare function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, }: FilterContentProps): JSX.Element;
@@ -1,40 +1,17 @@
1
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 (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
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.FilterContent = FilterContent;
30
7
  const react_1 = __importDefault(require("react"));
31
- const styled_components_1 = __importStar(require("styled-components"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
32
9
  const FilterInput_1 = require("../../components/Filter/FilterInput");
33
10
  const hooks_1 = require("../../core/hooks");
34
11
  const Button_1 = require("../../components/Button/Button");
35
12
  const Filter_1 = require("../../components/Filter/Filter");
36
13
  const utils_1 = require("../../core/utils");
37
- function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, hideSearch, showCounter = true, }) {
14
+ function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, }) {
38
15
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
39
16
  const { translate } = useTranslate();
40
17
  const hasActiveFilters = filters.some((filter) => {
@@ -53,15 +30,12 @@ function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
53
30
  filters.forEach((filter) => filter.selectOption(''));
54
31
  setFilterTerm('');
55
32
  };
56
- if (!filters.length) {
57
- return null;
58
- }
59
33
  return (react_1.default.createElement(FilterContentWrapper, { "data-component-name": "Filter/FilterContent" },
60
34
  react_1.default.createElement(FiltersHeader, null,
61
35
  react_1.default.createElement(FiltersTitle, { "data-translation-key": "catalog.filters.title" }, translate('catalog.filters.title', 'Filters')),
62
36
  hasActiveFilters ? (react_1.default.createElement(Button_1.Button, { size: "medium", tone: "danger", variant: "ghost", onClick: handleClearAll }, translate('catalog.filters.clearAll', 'Clear filters'))) : null),
63
- !hideSearch && (react_1.default.createElement(FilterInput_1.FilterInput, { value: filterTerm, onChange: (updatedTerm) => setFilterTerm(updatedTerm) })),
64
- react_1.default.createElement(FilterItems, { hideSearch: hideSearch }, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing, showCounter: showCounter }))))));
37
+ react_1.default.createElement(FilterInput_1.FilterInput, { value: filterTerm, onChange: (updatedTerm) => setFilterTerm(updatedTerm) }),
38
+ react_1.default.createElement(FilterItems, null, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing }))))));
65
39
  }
66
40
  const FilterContentWrapper = styled_components_1.default.div `
67
41
  padding: var(--filter-content-padding-vertical) var(--filter-content-padding-horizontal);
@@ -87,9 +61,5 @@ const FilterItems = styled_components_1.default.div `
87
61
  flex-direction: column;
88
62
  gap: var(--spacing-base);
89
63
  border-top: 1px solid var(--border-color-secondary);
90
- ${({ hideSearch }) => hideSearch &&
91
- (0, styled_components_1.css) `
92
- border-top: none;
93
- `}
94
64
  `;
95
65
  //# sourceMappingURL=FilterContent.js.map
@@ -1,52 +1,20 @@
1
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 (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
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.FilterInput = FilterInput;
30
- const react_1 = __importStar(require("react"));
7
+ const react_1 = __importDefault(require("react"));
31
8
  const styled_components_1 = __importDefault(require("styled-components"));
32
9
  const hooks_1 = require("../../core/hooks");
33
10
  const SearchIcon_1 = require("../../icons/SearchIcon/SearchIcon");
34
11
  function FilterInput(props) {
35
- const { value: initialValue, onChange } = props;
36
- const [value, setValue] = (0, react_1.useState)(initialValue);
37
- (0, react_1.useEffect)(() => {
38
- setValue(initialValue);
39
- }, [initialValue]);
40
- const handleChange = (e) => {
41
- const newValue = e.target.value;
42
- setValue(newValue);
43
- onChange(newValue);
44
- };
12
+ const { value, onChange } = props;
45
13
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
46
14
  const { translate } = useTranslate();
47
15
  return (react_1.default.createElement(InputWrapper, { "data-component-name": "Filter/FilterInput" },
48
16
  react_1.default.createElement(InputIcon, null),
49
- react_1.default.createElement(Input, { value: value, onChange: handleChange, placeholder: translate('catalog.filters.placeholder', 'Search') })));
17
+ react_1.default.createElement(Input, { value: value, onChange: (e) => onChange(e.target.value), placeholder: translate('catalog.filters.placeholder', 'Type to filter...') })));
50
18
  }
51
19
  const InputWrapper = styled_components_1.default.div `
52
20
  position: relative;
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { FilterProps } from '../../core/types';
3
- export declare function FilterSelect({ filter, filterValuesCasing, showCounter, }: FilterProps): JSX.Element;
3
+ export declare function FilterSelect({ filter, filterValuesCasing }: FilterProps): JSX.Element;
@@ -13,12 +13,12 @@ const Select_1 = require("../../components/Select/Select");
13
13
  const CounterTag_1 = require("../../components/Tags/CounterTag");
14
14
  const utils_1 = require("../../core/utils");
15
15
  const hooks_1 = require("../../core/hooks");
16
- function FilterSelect({ filter, filterValuesCasing, showCounter = true, }) {
16
+ function FilterSelect({ filter, filterValuesCasing }) {
17
17
  var _a;
18
18
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
19
19
  const { translate } = useTranslate();
20
20
  let selectOptions = [];
21
- const defaultOptionCount = filter.options.reduce((acc, option) => acc + option.count, 0);
21
+ const defaultOptionCount = filter.filteredOptions.reduce((acc, option) => acc + option.count, 0);
22
22
  selectOptions = [
23
23
  {
24
24
  value: '',
@@ -26,11 +26,11 @@ function FilterSelect({ filter, filterValuesCasing, showCounter = true, }) {
26
26
  react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": "catalog.filters.select.all" }, translate('catalog.filters.select.all', 'All')),
27
27
  react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, defaultOptionCount))),
28
28
  },
29
- ...filter.options.map((option) => ({
29
+ ...filter.filteredOptions.map((option) => ({
30
30
  value: option.value,
31
31
  element: (react_1.default.createElement(FilterOption_1.FilterOption, { key: option.value },
32
32
  react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": option.value }, (0, utils_1.changeTextCasing)(translate(option.value), filterValuesCasing)),
33
- showCounter && react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, option.count))),
33
+ react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, option.count))),
34
34
  })),
35
35
  ];
36
36
  return (react_1.default.createElement(FilterSelectWrapper, { "data-component-name": "Filter/FilterSelect" },
@@ -58,8 +58,8 @@ function Image(props) {
58
58
  (_a = lightboxContainerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
59
59
  }
60
60
  }, [lightboxImage]);
61
- const combinedStyles = Object.assign(Object.assign(Object.assign({}, (withLightbox && { cursor: 'pointer' })), (border && { border })), (typeof style === 'string' ? (0, utils_1.parseStyleString)(style) : style));
62
- const lightboxOverlayStyles = typeof lightboxStyle === 'string' ? (0, utils_1.parseStyleString)(lightboxStyle) : lightboxStyle;
61
+ const combinedStyles = Object.assign(Object.assign(Object.assign({}, (withLightbox && { cursor: 'pointer' })), (border && { border })), (typeof style === 'string' ? { cssText: style } : style));
62
+ const lightboxOverlayStyles = typeof lightboxStyle === 'string' ? { cssText: lightboxStyle } : lightboxStyle;
63
63
  return (react_1.default.createElement(react_1.default.Fragment, null,
64
64
  lightboxImage ? (react_1.default.createElement(LightboxContainer, { ref: lightboxContainerRef, onClick: handleCloseLightbox, onKeyDown: handleLightboxKeyDown, tabIndex: 0 },
65
65
  react_1.default.createElement(Overlay, { style: lightboxOverlayStyles }),
@@ -66,7 +66,7 @@ exports.Markdown = styled_components_1.default.main.attrs(({ className }) => ({
66
66
 
67
67
  ${links_1.markdownLinksCss}
68
68
 
69
- a[name], [id] {
69
+ div[id], a[id], a[name] {
70
70
  scroll-margin-top: var(--navbar-height);
71
71
  }
72
72
 
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { MenuItemProps } from '../../core/types';
3
2
  import type { JSX } from 'react';
3
+ import type { MenuItemProps } from '../../core/types';
4
4
  export declare function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Element;
@@ -66,14 +66,9 @@ function MenuItem(props) {
66
66
  handleExpand();
67
67
  }
68
68
  };
69
- const handleExpandOnEnter = (event) => {
70
- if (event.key === 'Enter') {
71
- handleOnClick();
72
- }
73
- };
74
69
  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;
75
70
  const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
76
- const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, isSeparator: isSeparator, onClick: handleOnClick, onKeyDown: handleExpandOnEnter, ref: labelRef, role: item.link ? 'none' : 'link', tabIndex: !item.link ? 0 : undefined, "data-testid": "menu-item-label" },
71
+ 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" },
77
72
  hasChevron ? react_1.default.createElement(ChevronWrapper, null, chevron) : null,
78
73
  item.icon ? react_1.default.createElement(MenuItemIcon, { src: item.icon }) : null,
79
74
  react_1.default.createElement(MenuItemLabelTextWrapper, null,
@@ -85,7 +80,7 @@ function MenuItem(props) {
85
80
  isDrilldown ? react_1.default.createElement(ArrowRightIcon_1.ArrowRightIcon, { size: "12px" }) : null,
86
81
  hasHttpTag ? (react_1.default.createElement(HttpTag_1.HttpTag, { color: httpColor || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb)) : null));
87
82
  return (react_1.default.createElement(MenuItemWrapper, { "data-component-name": "Menu/MenuItem", className: generateClassName({ type, item, className }) },
88
- item.link ? (react_1.default.createElement(MenuItemLink, { to: item.link, external: item.external, target: item.target, languageInsensitive: item.languageInsensitive, onKeyDown: handleExpandOnEnter }, label)) : (label),
83
+ item.link ? (react_1.default.createElement(MenuItemLink, { to: item.link, external: item.external, target: item.target, languageInsensitive: item.languageInsensitive }, label)) : (label),
89
84
  isNested ? (react_1.default.createElement(MenuItemNestedWrapper, { depth: depth, ref: nestedMenuRef, style: style }, isExpanded || !canUnmount ? props.children : null)) : null,
90
85
  item.separatorLine ? (react_1.default.createElement(MenuItemSeparatorLine, { depth: depth, linePosition: item.linePosition })) : null));
91
86
  }
@@ -133,6 +128,7 @@ const MenuItemWrapper = styled_components_1.default.div `
133
128
  }
134
129
  `;
135
130
  const MenuItemNestedWrapper = styled_components_1.default.div `
131
+ overflow: hidden;
136
132
  order: 1;
137
133
  position: relative;
138
134
 
@@ -0,0 +1 @@
1
+ export declare const AfterOpenApiDescription: any;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AfterOpenApiDescription = void 0;
4
+ exports.AfterOpenApiDescription = null;
5
+ //# sourceMappingURL=AfterOpenApiDescription.js.map
@@ -22,25 +22,44 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
29
  exports.NextButton = NextButton;
27
30
  const React = __importStar(require("react"));
28
- const NavigationButton_1 = require("../../components/PageNavigation/NavigationButton");
31
+ const styled_components_1 = __importDefault(require("styled-components"));
29
32
  const hooks_1 = require("../../core/hooks");
33
+ const Button_1 = require("../../components/Button/Button");
30
34
  const ArrowRightIcon_1 = require("../../icons/ArrowRightIcon/ArrowRightIcon");
31
35
  function NextButton({ nextPage, className }) {
32
- var _a, _b, _c, _d, _e, _f;
36
+ var _a, _b;
33
37
  const { navigation } = (0, hooks_1.useThemeConfig)();
34
- const { useTranslate, usePageProps } = (0, hooks_1.useThemeHooks)();
35
- const { frontmatter } = usePageProps();
38
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
36
39
  const { translate } = useTranslate();
37
- const translationKey = 'page.nextButton';
38
- const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.nextButton) === null || _b === void 0 ? void 0 : _b.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.routeSlug) || '';
39
- const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.nextButton) === null || _d === void 0 ? void 0 : _d.link) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.link);
40
- const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _e === void 0 ? void 0 : _e.text) || translate(translationKey, { defaultValue: 'Next page' });
41
- if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
40
+ if (!nextPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _a === void 0 ? void 0 : _a.hide)) {
42
41
  return React.createElement("div", null, "\u00A0");
43
42
  }
44
- return (React.createElement(NavigationButton_1.NavigationButton, { label: label, link: link, text: text, translationKey: translationKey, position: "right", className: className, icon: React.createElement(ArrowRightIcon_1.ArrowRightIcon, null) }));
43
+ const nextPageText = nextPage.label || nextPage.routeSlug || '';
44
+ const translationKey = 'page.nextButton';
45
+ const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _b === void 0 ? void 0 : _b.text) || translate(translationKey, { defaultValue: 'Next page' });
46
+ return (React.createElement(NextButtonWrapper, { "data-component-name": "PageNavigation/NextButton", "data-translation-key": translationKey },
47
+ React.createElement(NextPageLabel, null, label),
48
+ React.createElement(NextPageButton, { size: "large", to: nextPage.link, extraClass: className, variant: "link", icon: React.createElement(ArrowRightIcon_1.ArrowRightIcon, null), iconPosition: "right" }, nextPageText)));
45
49
  }
50
+ const NextButtonWrapper = styled_components_1.default.div `
51
+ display: flex;
52
+ flex-direction: column;
53
+ text-align: right;
54
+ `;
55
+ const NextPageButton = (0, styled_components_1.default)(Button_1.Button) `
56
+ text-wrap: wrap;
57
+ padding-left: 0;
58
+ padding-right: 0;
59
+ `;
60
+ const NextPageLabel = styled_components_1.default.span `
61
+ font-size: var(--font-size-sm);
62
+ line-height: var(--line-height-sm);
63
+ font-weight: var(--font-weight-regular);
64
+ `;
46
65
  //# sourceMappingURL=NextButton.js.map
@@ -7,8 +7,8 @@ exports.PageNavigation = PageNavigation;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const hooks_1 = require("../../core/hooks");
10
- const NextButton_1 = require("../../components/PageNavigation/NextButton");
11
10
  const PreviousButton_1 = require("../../components/PageNavigation/PreviousButton");
11
+ const NextButton_1 = require("../../components/PageNavigation/NextButton");
12
12
  function PageNavigation({ nextPage, prevPage, className, }) {
13
13
  var _a, _b;
14
14
  const { navigation } = (0, hooks_1.useThemeConfig)();
@@ -5,23 +5,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PreviousButton = PreviousButton;
7
7
  const react_1 = __importDefault(require("react"));
8
- const NavigationButton_1 = require("../../components/PageNavigation/NavigationButton");
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const hooks_1 = require("../../core/hooks");
10
+ const Button_1 = require("../../components/Button/Button");
10
11
  const ArrowLeftIcon_1 = require("../../icons/ArrowLeftIcon/ArrowLeftIcon");
11
12
  function PreviousButton({ prevPage, className }) {
12
- var _a, _b, _c, _d, _e, _f;
13
+ var _a, _b;
13
14
  const { navigation } = (0, hooks_1.useThemeConfig)();
14
- const { useTranslate, usePageProps } = (0, hooks_1.useThemeHooks)();
15
- const { frontmatter } = usePageProps();
15
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
16
16
  const { translate } = useTranslate();
17
- const translationKey = 'page.previousButton';
18
- const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.previousButton) === null || _b === void 0 ? void 0 : _b.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.routeSlug) || '';
19
- const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.previousButton) === null || _d === void 0 ? void 0 : _d.link) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.link);
20
- const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _e === void 0 ? void 0 : _e.text) ||
21
- translate(translationKey, { defaultValue: 'Previous page' });
22
- if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
17
+ if (!prevPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _a === void 0 ? void 0 : _a.hide)) {
23
18
  return react_1.default.createElement("div", null, "\u00A0");
24
19
  }
25
- return (react_1.default.createElement(NavigationButton_1.NavigationButton, { label: label, link: link, text: text, translationKey: translationKey, position: "left", className: className, icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null) }));
20
+ const prevPageText = prevPage.label || prevPage.routeSlug || '';
21
+ const translationKey = 'page.previousButton';
22
+ const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _b === void 0 ? void 0 : _b.text) ||
23
+ translate(translationKey, { defaultValue: 'Previous page' });
24
+ return (react_1.default.createElement(PreviousButtonWrapper, { "data-component-name": "PageNavigation/PreviousButton", "data-translation-key": translationKey },
25
+ react_1.default.createElement(PreviousPageLabel, null, label),
26
+ react_1.default.createElement(PreviousPageButton, { size: "large", to: prevPage.link, extraClass: className, variant: "link", icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null), iconPosition: "left" }, prevPageText)));
26
27
  }
28
+ const PreviousButtonWrapper = styled_components_1.default.div `
29
+ display: flex;
30
+ flex-direction: column;
31
+ text-align: left;
32
+ `;
33
+ const PreviousPageButton = (0, styled_components_1.default)(Button_1.Button) `
34
+ text-wrap: wrap;
35
+ padding-left: 0;
36
+ padding-right: 0;
37
+ `;
38
+ const PreviousPageLabel = styled_components_1.default.span `
39
+ font-size: var(--font-size-sm);
40
+ line-height: var(--line-height-sm);
41
+ font-weight: var(--font-weight-regular);
42
+ `;
27
43
  //# sourceMappingURL=PreviousButton.js.map
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SearchAiConversationInput = SearchAiConversationInput;
30
30
  const react_1 = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
- const constants_1 = require("../../core/constants");
33
32
  const Button_1 = require("../../components/Button/Button");
34
33
  const SendIcon_1 = require("../../icons/SendIcon/SendIcon");
35
34
  const hooks_1 = require("../../core/hooks");
@@ -57,7 +56,7 @@ function SearchAiConversationInput({ isGeneratingResponse, onMessageSent, classN
57
56
  };
58
57
  const isDisabled = isGeneratingResponse || query.trim().length === 0;
59
58
  return (react_1.default.createElement(SearchAiConversationInputWrapper, { "data-component-name": "Search/SearchAiConversationInput", className: className },
60
- react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse, maxLength: constants_1.AI_SEARCH_MAX_MESSAGE_LENGTH }),
59
+ react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse }),
61
60
  react_1.default.createElement(SendButton, { disabled: isDisabled, size: "small", icon: react_1.default.createElement(SendIcon_1.SendIcon, { color: isDisabled
62
61
  ? '--button-content-color-disabled'
63
62
  : 'var(--search-ai-conversation-input-send-button-icon-color)' }), onClick: handleSendMessage })));
@@ -43,8 +43,9 @@ function Select(props) {
43
43
  return values
44
44
  .map((value) => {
45
45
  const selectedOption = options.find((option) => option.value === value);
46
- return (selectedOption ||
47
- (typeof value === 'string' ? { value } : value));
46
+ return selectedOption || typeof value === 'string'
47
+ ? { value }
48
+ : value;
48
49
  })
49
50
  .filter((option) => !!option);
50
51
  };
@@ -150,23 +151,11 @@ function Select(props) {
150
151
  return !!selectedOptions.find((selectOption) => selectOption.value === option.value || selectOption.value === option.label);
151
152
  };
152
153
  const renderDefaultInput = (inputRef) => {
153
- return (react_1.default.createElement(SelectInput_1.SelectInput, { id: inputId, listboxId: inputId, selectedOptions: selectedOptions, searchValue: searchValue, placeholder: placeholder, stickyValue: stickyInputValue, multiple: multiple, searchable: searchable, clearable: clearable, customIcon: icon, inputRef: inputRef, onlyIcon: onlyIcon, clearHandler: clearHandler, searchHandler: searchHandler, inputBlurHandler: inputBlurHandler, inputFocusHandler: inputFocusHandler, clickHandler: inputClickHandler }));
154
+ return (react_1.default.createElement(SelectInput_1.SelectInput, { id: inputId, selectedOptions: selectedOptions, searchValue: searchValue, placeholder: placeholder, stickyValue: stickyInputValue, multiple: multiple, searchable: searchable, clearable: clearable, customIcon: icon, inputRef: inputRef, onlyIcon: onlyIcon, clearHandler: clearHandler, searchHandler: searchHandler, inputBlurHandler: inputBlurHandler, inputFocusHandler: inputFocusHandler, clickHandler: inputClickHandler }));
154
155
  };
155
- return (react_1.default.createElement(exports.SelectWrapper, Object.assign({ "data-component-name": "Select/Select", ref: selectRef }, dataAttributes, { disabled: disabled, "data-testid": dataTestId, className: className, onKeyDown: (e) => {
156
- if (e.key === 'Enter' && document.activeElement === selectRef.current) {
157
- e.preventDefault();
158
- setDropdownActive(!dropdownActive);
159
- }
160
- }, tabIndex: 0, "aria-haspopup": "listbox", "aria-expanded": dropdownActive, "aria-label": "Select option", onFocus: (e) => {
161
- var _a;
162
- if (e.target === selectRef.current) {
163
- (_a = selectInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
164
- }
165
- }, onMouseDown: (e) => {
166
- e.preventDefault();
167
- } }),
156
+ return (react_1.default.createElement(exports.SelectWrapper, Object.assign({ "data-component-name": "Select/Select", ref: selectRef }, dataAttributes, { disabled: disabled, "data-testid": dataTestId, className: className }),
168
157
  react_1.default.createElement(SelectDropdown, { closeOnClick: !multiple, withArrow: withArrow, trigger: renderInput ? renderInput() : renderDefaultInput(selectInputRef), triggerEvent: triggerEvent, placement: placement, alignment: alignment, active: !renderInput ? dropdownActive : undefined },
169
- react_1.default.createElement(SelectDropdownMenu, { role: "listbox", footer: footer }, filteredOptions.length === 0 ? (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { disabled: true }, "No results")) : (filteredOptions.map((option, index) => {
158
+ react_1.default.createElement(SelectDropdownMenu, { footer: footer }, filteredOptions.length === 0 ? (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { disabled: true }, "No results")) : (filteredOptions.map((option, index) => {
170
159
  return (react_1.default.createElement(react_1.Fragment, { key: index },
171
160
  react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { onAction: () => selectHandler(option), prefix: !hideCheckmarkIcon &&
172
161
  (checkmarkIconPosition ? checkmarkIconPosition === 'start' : false) &&
@@ -187,10 +176,6 @@ exports.SelectWrapper = styled_components_1.default.div `
187
176
  color: var(--select-text-color);
188
177
  min-width: 0;
189
178
 
190
- &:focus-visible {
191
- outline: 1px solid var(--button-border-color-focused);
192
- }
193
-
194
179
  ${({ disabled }) => disabled &&
195
180
  `
196
181
  opacity: 0.59;
@@ -206,6 +191,5 @@ const SelectDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown) `
206
191
  `;
207
192
  const SelectDropdownMenu = (0, styled_components_1.default)(DropdownMenu_1.DropdownMenu) `
208
193
  width: 100%;
209
- margin-top: var(--spacing-unit);
210
194
  `;
211
195
  //# sourceMappingURL=Select.js.map
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import type { SelectOption } from '../../core/types/select';
3
3
  type SelectInputProps<T> = {
4
4
  id?: string;
5
- listboxId?: string;
6
5
  selectedOptions: SelectOption<T>[];
7
6
  searchValue: any;
8
7
  stickyValue: any;
@@ -34,7 +34,7 @@ const Tag_1 = require("../../components/Tag/Tag");
34
34
  const CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
35
35
  const Button_1 = require("../../components/Button/Button");
36
36
  function SelectInput(props) {
37
- const { id, listboxId, onlyIcon, icon, customIcon, selectedOptions, placeholder, stickyValue, multiple, searchable, clearable, clearHandler, searchHandler, clickHandler, searchValue, inputBlurHandler, inputFocusHandler, } = props;
37
+ const { id, onlyIcon, icon, customIcon, selectedOptions, placeholder, stickyValue, multiple, searchable, clearable, clearHandler, searchHandler, clickHandler, searchValue, inputBlurHandler, inputFocusHandler, } = props;
38
38
  const inputRef = (0, react_1.useRef)(null);
39
39
  const onChangeHandler = (e) => {
40
40
  var _a;
@@ -83,14 +83,10 @@ function SelectInput(props) {
83
83
  else {
84
84
  props.inputRef.current = input;
85
85
  }
86
- }, width: multiple ? (!searchValue && selectedOptions.length ? '10px' : 'auto') : '100%', tabIndex: 0, onFocus: (e) => {
87
- e.stopPropagation();
88
- }, onMouseDown: (e) => {
89
- e.preventDefault();
90
- } }));
86
+ }, width: multiple ? (!searchValue && selectedOptions.length ? '10px' : 'auto') : '100%' }));
91
87
  const simpleValue = selectedOptions.length ? (selectedOptions[0].label || selectedOptions[0].element || selectedOptions[0].value) : (react_1.default.createElement(SelectInternalInputPlaceholder, null, placeholder));
92
88
  const multipleValues = selectedOptions.length ? (selectTags) : (react_1.default.createElement(SelectInternalInputPlaceholder, null, placeholder));
93
- return (react_1.default.createElement(exports.SelectInputWrapper, Object.assign({}, props, { id: id, onFocus: onFocusHandler, onClick: onClickHandler, role: "button", "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-owns": listboxId, "aria-label": "Select option" }),
89
+ return (react_1.default.createElement(exports.SelectInputWrapper, Object.assign({}, props, { id: id, onFocus: onFocusHandler, onClick: onClickHandler }),
94
90
  !onlyIcon && (react_1.default.createElement(react_1.default.Fragment, null,
95
91
  react_1.default.createElement(SelectInputValue, null, multiple ? (searchable ? (react_1.default.createElement(react_1.default.Fragment, null,
96
92
  selectTags,