@redocly/theme 0.55.0-rc.2 → 0.55.0

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 (319) hide show
  1. package/lib/components/Admonition/Admonition.js +4 -0
  2. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  3. package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -1
  4. package/lib/components/Button/Button.d.ts +1 -0
  5. package/lib/components/Catalog/Catalog.d.ts +11 -0
  6. package/lib/components/Catalog/Catalog.js +138 -0
  7. package/lib/components/Catalog/CatalogActionsRow.d.ts +15 -0
  8. package/lib/components/Catalog/CatalogActionsRow.js +34 -0
  9. package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +8 -0
  10. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +179 -0
  11. package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +8 -0
  12. package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +20 -0
  13. package/lib/components/Catalog/CatalogEntities.d.ts +18 -0
  14. package/lib/components/Catalog/CatalogEntities.js +63 -0
  15. package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +2 -0
  16. package/lib/components/Catalog/CatalogEntitiesEmptyState.js +38 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +12 -0
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +133 -0
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +7 -0
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +49 -0
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +6 -0
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +48 -0
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +6 -0
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +111 -0
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +6 -0
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +25 -0
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +6 -0
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +69 -0
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +7 -0
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +48 -0
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +6 -0
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +19 -0
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +6 -0
  34. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +20 -0
  35. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +6 -0
  36. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +20 -0
  37. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +6 -0
  38. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +23 -0
  39. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +6 -0
  40. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +21 -0
  41. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +6 -0
  42. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +24 -0
  43. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +6 -0
  44. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +21 -0
  45. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +21 -0
  46. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +37 -0
  47. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +10 -0
  48. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -0
  49. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +25 -0
  50. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +27 -0
  51. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +22 -0
  52. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +60 -0
  53. package/lib/components/Catalog/CatalogEntityIcon.d.ts +5 -0
  54. package/lib/components/Catalog/CatalogEntityIcon.js +38 -0
  55. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +5 -0
  56. package/lib/components/Catalog/CatalogEntityTypeIcon.js +42 -0
  57. package/lib/components/Catalog/CatalogHighlight.d.ts +4 -0
  58. package/lib/components/Catalog/CatalogHighlight.js +48 -0
  59. package/lib/components/Catalog/CatalogPageDescription.d.ts +9 -0
  60. package/lib/components/Catalog/CatalogPageDescription.js +52 -0
  61. package/lib/components/Catalog/CatalogSelector.d.ts +12 -0
  62. package/lib/components/Catalog/CatalogSelector.js +48 -0
  63. package/lib/components/Catalog/CatalogSortButton.d.ts +10 -0
  64. package/lib/components/Catalog/CatalogSortButton.js +71 -0
  65. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.d.ts +5 -0
  66. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +19 -0
  67. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -0
  68. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +63 -0
  69. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.d.ts +5 -0
  70. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +19 -0
  71. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +11 -0
  72. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +101 -0
  73. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +31 -0
  74. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +106 -0
  75. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +27 -0
  76. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +127 -0
  77. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +6 -0
  78. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +20 -0
  79. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.d.ts +7 -0
  80. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +66 -0
  81. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +9 -0
  82. package/lib/components/Catalog/CatalogTagsWithTooltip.js +46 -0
  83. package/lib/components/Catalog/CatalogViewModeToggle.d.ts +7 -0
  84. package/lib/components/Catalog/CatalogViewModeToggle.js +67 -0
  85. package/lib/components/Catalog/variables.d.ts +1 -0
  86. package/lib/components/Catalog/variables.dark.d.ts +1 -0
  87. package/lib/components/Catalog/variables.dark.js +8 -0
  88. package/lib/components/Catalog/variables.js +354 -0
  89. package/lib/components/CatalogClassic/CatalogClassicHighlight.js +1 -1
  90. package/lib/components/Dropdown/variables.js +1 -1
  91. package/lib/components/Filter/Filter.d.ts +1 -1
  92. package/lib/components/Filter/Filter.js +2 -2
  93. package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
  94. package/lib/components/Filter/FilterCheckboxes.js +4 -4
  95. package/lib/components/Filter/FilterContent.d.ts +3 -1
  96. package/lib/components/Filter/FilterContent.js +34 -4
  97. package/lib/components/Filter/FilterInput.js +35 -3
  98. package/lib/components/Filter/FilterSelect.d.ts +1 -1
  99. package/lib/components/Filter/FilterSelect.js +4 -4
  100. package/lib/components/Image/Image.js +2 -2
  101. package/lib/components/LoadMore/LoadMore.d.ts +8 -0
  102. package/lib/components/LoadMore/LoadMore.js +18 -0
  103. package/lib/components/Markdown/Markdown.js +1 -1
  104. package/lib/components/Menu/MenuItem.d.ts +1 -1
  105. package/lib/components/Menu/MenuItem.js +7 -3
  106. package/lib/components/PageNavigation/NavigationButton.d.ts +13 -0
  107. package/lib/components/PageNavigation/NavigationButton.js +32 -0
  108. package/lib/components/PageNavigation/NextButton.js +10 -29
  109. package/lib/components/PageNavigation/PageNavigation.js +1 -1
  110. package/lib/components/PageNavigation/PreviousButton.js +11 -27
  111. package/lib/components/Search/SearchAiConversationInput.js +2 -1
  112. package/lib/components/Select/Select.js +22 -6
  113. package/lib/components/Select/SelectInput.d.ts +1 -0
  114. package/lib/components/Select/SelectInput.js +7 -3
  115. package/lib/components/Select/variables.js +2 -2
  116. package/lib/components/Sidebar/Sidebar.d.ts +3 -0
  117. package/lib/components/Sidebar/Sidebar.js +3 -2
  118. package/lib/components/SkipContent/SkipContent.d.ts +2 -0
  119. package/lib/components/SkipContent/SkipContent.js +68 -0
  120. package/lib/components/SkipContent/variables.d.ts +1 -0
  121. package/lib/components/SkipContent/variables.js +23 -0
  122. package/lib/components/Tag/Tag.d.ts +3 -1
  123. package/lib/components/Tag/Tag.js +54 -2
  124. package/lib/components/Tag/variables.js +21 -0
  125. package/lib/components/Tooltip/Tooltip.d.ts +2 -1
  126. package/lib/components/Tooltip/Tooltip.js +26 -19
  127. package/lib/components/Tooltip/variables.js +17 -0
  128. package/lib/components/VersionPicker/VersionPicker.js +22 -3
  129. package/lib/components/VersionPicker/variables.js +1 -0
  130. package/lib/core/constants/catalog.d.ts +1 -0
  131. package/lib/core/constants/catalog.js +5 -0
  132. package/lib/core/constants/common.d.ts +1 -0
  133. package/lib/core/constants/common.js +2 -1
  134. package/lib/core/constants/index.d.ts +1 -0
  135. package/lib/core/constants/index.js +1 -0
  136. package/lib/core/constants/search.d.ts +1 -0
  137. package/lib/core/constants/search.js +2 -1
  138. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +1 -0
  139. package/lib/core/hooks/__mocks__/use-theme-hooks.js +1 -0
  140. package/lib/core/hooks/catalog/useCatalogEntities.d.ts +4 -0
  141. package/lib/core/hooks/catalog/useCatalogEntities.js +17 -0
  142. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +15 -0
  143. package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.js +23 -0
  144. package/lib/core/hooks/catalog/useCatalogTableViewRow.d.ts +11 -0
  145. package/lib/core/hooks/catalog/useCatalogTableViewRow.js +26 -0
  146. package/lib/core/hooks/index.d.ts +2 -0
  147. package/lib/core/hooks/index.js +2 -0
  148. package/lib/core/hooks/use-user-teams.d.ts +1 -0
  149. package/lib/core/hooks/use-user-teams.js +10 -0
  150. package/lib/core/styles/dark.js +2 -0
  151. package/lib/core/styles/global.js +65 -60
  152. package/lib/core/types/catalog.d.ts +118 -5
  153. package/lib/core/types/filter.d.ts +1 -0
  154. package/lib/core/types/hooks.d.ts +11 -4
  155. package/lib/core/types/index.d.ts +1 -0
  156. package/lib/core/types/index.js +1 -0
  157. package/lib/core/types/l10n.d.ts +1 -1
  158. package/lib/core/types/telemetry.d.ts +32 -0
  159. package/lib/core/types/telemetry.js +3 -0
  160. package/lib/core/utils/index.d.ts +1 -0
  161. package/lib/core/utils/index.js +1 -0
  162. package/lib/core/utils/parse-style-string.d.ts +1 -0
  163. package/lib/core/utils/parse-style-string.js +23 -0
  164. package/lib/icons/AscSortIcon/AscSortIcon.d.ts +9 -0
  165. package/lib/icons/AscSortIcon/AscSortIcon.js +25 -0
  166. package/lib/icons/CardsIcon/CardsIcon.d.ts +9 -0
  167. package/lib/icons/CardsIcon/CardsIcon.js +25 -0
  168. package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +9 -0
  169. package/lib/icons/CaretDownIcon/CaretDownIcon.js +22 -0
  170. package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +9 -0
  171. package/lib/icons/CaretUpIcon/CaretUpIcon.js +22 -0
  172. package/lib/icons/DescSortIcon/DescSortIcon.d.ts +9 -0
  173. package/lib/icons/DescSortIcon/DescSortIcon.js +25 -0
  174. package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +9 -0
  175. package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +26 -0
  176. package/lib/icons/GithubIcon/GithubIcon.d.ts +9 -0
  177. package/lib/icons/GithubIcon/GithubIcon.js +22 -0
  178. package/lib/icons/GraphIcon/GraphIcon.d.ts +9 -0
  179. package/lib/icons/GraphIcon/GraphIcon.js +22 -0
  180. package/lib/icons/PeopleIcon/PeopleIcon.d.ts +9 -0
  181. package/lib/icons/PeopleIcon/PeopleIcon.js +27 -0
  182. package/lib/icons/SlackIcon/SlackIcon.d.ts +9 -0
  183. package/lib/icons/SlackIcon/SlackIcon.js +29 -0
  184. package/lib/icons/SortIcon/SortIcon.d.ts +9 -0
  185. package/lib/icons/SortIcon/SortIcon.js +25 -0
  186. package/lib/icons/TableIcon/TableIcon.d.ts +9 -0
  187. package/lib/icons/TableIcon/TableIcon.js +22 -0
  188. package/lib/icons/TagsIcon/TagsIcon.d.ts +9 -0
  189. package/lib/icons/TagsIcon/TagsIcon.js +24 -0
  190. package/lib/index.d.ts +18 -1
  191. package/lib/index.js +19 -1
  192. package/lib/layouts/PageLayout.js +2 -1
  193. package/lib/layouts/RootLayout.js +2 -0
  194. package/lib/markdoc/components/Tabs/Tab.d.ts +2 -1
  195. package/lib/markdoc/components/Tabs/Tab.js +10 -2
  196. package/lib/markdoc/components/Tabs/TabList.d.ts +1 -4
  197. package/lib/markdoc/components/Tabs/TabList.js +18 -38
  198. package/lib/markdoc/components/Tabs/Tabs.d.ts +3 -1
  199. package/lib/markdoc/components/Tabs/Tabs.js +5 -9
  200. package/package.json +4 -3
  201. package/src/components/Admonition/Admonition.tsx +4 -0
  202. package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -2
  203. package/src/components/Button/Button.tsx +1 -1
  204. package/src/components/Catalog/Catalog.tsx +235 -0
  205. package/src/components/Catalog/CatalogActionsRow.tsx +58 -0
  206. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +227 -0
  207. package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +29 -0
  208. package/src/components/Catalog/CatalogEntities.tsx +107 -0
  209. package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -0
  210. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +207 -0
  211. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +60 -0
  212. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +67 -0
  213. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +93 -0
  214. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +35 -0
  215. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +83 -0
  216. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +62 -0
  217. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +36 -0
  218. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +38 -0
  219. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +33 -0
  220. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +41 -0
  221. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +42 -0
  222. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +39 -0
  223. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +31 -0
  224. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +97 -0
  225. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +80 -0
  226. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +92 -0
  227. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +127 -0
  228. package/src/components/Catalog/CatalogEntityIcon.tsx +41 -0
  229. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +48 -0
  230. package/src/components/Catalog/CatalogHighlight.tsx +56 -0
  231. package/src/components/Catalog/CatalogPageDescription.tsx +72 -0
  232. package/src/components/Catalog/CatalogSelector.tsx +67 -0
  233. package/src/components/Catalog/CatalogSortButton.tsx +78 -0
  234. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +26 -0
  235. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +77 -0
  236. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +26 -0
  237. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +120 -0
  238. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +176 -0
  239. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +180 -0
  240. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +28 -0
  241. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +77 -0
  242. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +83 -0
  243. package/src/components/Catalog/CatalogViewModeToggle.tsx +65 -0
  244. package/src/components/Catalog/variables.dark.ts +5 -0
  245. package/src/components/Catalog/variables.ts +351 -0
  246. package/src/components/CatalogClassic/CatalogClassicHighlight.tsx +1 -1
  247. package/src/components/Dropdown/variables.ts +1 -1
  248. package/src/components/Filter/Filter.tsx +10 -2
  249. package/src/components/Filter/FilterCheckboxes.tsx +8 -4
  250. package/src/components/Filter/FilterContent.tsx +21 -5
  251. package/src/components/Filter/FilterInput.tsx +16 -4
  252. package/src/components/Filter/FilterSelect.tsx +8 -4
  253. package/src/components/Image/Image.tsx +5 -9
  254. package/src/components/LoadMore/LoadMore.tsx +38 -0
  255. package/src/components/Markdown/Markdown.tsx +1 -1
  256. package/src/components/Menu/MenuItem.tsx +11 -2
  257. package/src/components/PageNavigation/NavigationButton.tsx +68 -0
  258. package/src/components/PageNavigation/NextButton.tsx +20 -43
  259. package/src/components/PageNavigation/PageNavigation.tsx +1 -1
  260. package/src/components/PageNavigation/PreviousButton.tsx +20 -43
  261. package/src/components/Search/SearchAiConversationInput.tsx +3 -0
  262. package/src/components/Select/Select.tsx +29 -4
  263. package/src/components/Select/SelectInput.tsx +20 -1
  264. package/src/components/Select/variables.ts +2 -2
  265. package/src/components/Sidebar/Sidebar.tsx +1 -1
  266. package/src/components/SkipContent/SkipContent.tsx +47 -0
  267. package/src/components/SkipContent/variables.ts +20 -0
  268. package/src/components/Tag/Tag.tsx +67 -1
  269. package/src/components/Tag/variables.ts +21 -0
  270. package/src/components/Tooltip/Tooltip.tsx +31 -22
  271. package/src/components/Tooltip/variables.ts +17 -0
  272. package/src/components/VersionPicker/VersionPicker.tsx +32 -2
  273. package/src/components/VersionPicker/variables.ts +1 -0
  274. package/src/core/constants/catalog.ts +1 -0
  275. package/src/core/constants/common.ts +1 -0
  276. package/src/core/constants/index.ts +1 -0
  277. package/src/core/constants/search.ts +2 -0
  278. package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -0
  279. package/src/core/hooks/catalog/useCatalogEntities.ts +16 -0
  280. package/src/core/hooks/catalog/useCatalogTableHeaderCellActions.ts +38 -0
  281. package/src/core/hooks/catalog/useCatalogTableViewRow.ts +40 -0
  282. package/src/core/hooks/index.ts +2 -0
  283. package/src/core/hooks/use-user-teams.ts +8 -0
  284. package/src/core/styles/dark.ts +2 -0
  285. package/src/core/styles/global.ts +5 -0
  286. package/src/core/types/catalog.ts +143 -5
  287. package/src/core/types/filter.ts +1 -0
  288. package/src/core/types/hooks.ts +32 -5
  289. package/src/core/types/index.ts +1 -0
  290. package/src/core/types/l10n.ts +22 -1
  291. package/src/core/types/telemetry.ts +36 -0
  292. package/src/core/utils/index.ts +1 -0
  293. package/src/core/utils/load-and-navigate.ts +5 -4
  294. package/src/core/utils/parse-style-string.ts +21 -0
  295. package/src/icons/AscSortIcon/AscSortIcon.tsx +29 -0
  296. package/src/icons/CardsIcon/CardsIcon.tsx +38 -0
  297. package/src/icons/CaretDownIcon/CaretDownIcon.tsx +26 -0
  298. package/src/icons/CaretUpIcon/CaretUpIcon.tsx +26 -0
  299. package/src/icons/DescSortIcon/DescSortIcon.tsx +29 -0
  300. package/src/icons/EntityTypeIcon/EntityTypeIcon.tsx +49 -0
  301. package/src/icons/GithubIcon/GithubIcon.tsx +35 -0
  302. package/src/icons/GraphIcon/GraphIcon.tsx +26 -0
  303. package/src/icons/PeopleIcon/PeopleIcon.tsx +46 -0
  304. package/src/icons/SlackIcon/SlackIcon.tsx +61 -0
  305. package/src/icons/SortIcon/SortIcon.tsx +29 -0
  306. package/src/icons/TableIcon/TableIcon.tsx +26 -0
  307. package/src/icons/TagsIcon/TagsIcon.tsx +41 -0
  308. package/src/index.ts +20 -1
  309. package/src/layouts/PageLayout.tsx +4 -1
  310. package/src/layouts/RootLayout.tsx +2 -0
  311. package/src/markdoc/components/Tabs/Tab.tsx +12 -1
  312. package/src/markdoc/components/Tabs/TabList.tsx +40 -70
  313. package/src/markdoc/components/Tabs/Tabs.tsx +11 -10
  314. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.d.ts +0 -1
  315. package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.js +0 -5
  316. package/lib/ext/process-scorecard.d.ts +0 -5
  317. package/lib/ext/process-scorecard.js +0 -11
  318. package/src/components/OpenApiDocs/hooks/AfterOpenApiDescription.tsx +0 -1
  319. package/src/ext/process-scorecard.ts +0 -13
@@ -1,4 +1,35 @@
1
+ import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
+ import { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
1
3
  import type { CatalogFilterConfig } from '../../config';
4
+ export type SortOption = 'title' | '-title' | 'type' | '-type';
5
+ export type UseCatalogResponse = {
6
+ filters: ResolvedFilter[];
7
+ filterQuery: string;
8
+ searchQuery: string;
9
+ setSearchQuery: (query: string) => void;
10
+ sortOption: SortOption | null;
11
+ setSortOption: (option: SortOption | null) => void;
12
+ handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
13
+ isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
14
+ viewMode: CatalogViewMode;
15
+ setViewMode: (mode: CatalogViewMode) => void;
16
+ entitiesCounter: number;
17
+ setEntitiesCounter: (counter: number) => void;
18
+ onChangeViewClick: () => void;
19
+ onChangeCollapseSidebarClick: () => void;
20
+ layout: LayoutVariant;
21
+ collapsedSidebar: boolean;
22
+ };
23
+ export type UseCatalogSortResponse = {
24
+ sortOption: SortOption | null;
25
+ setSortOption: (option: SortOption | null) => void;
26
+ handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
27
+ isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
28
+ };
29
+ export type UseCatalogSearchResponse = {
30
+ searchQuery: string;
31
+ setSearchQuery: (query: string) => void;
32
+ };
2
33
  export type FilteredCatalog = {
3
34
  groups: {
4
35
  title: string;
@@ -13,10 +44,6 @@ export type ResolvedFilter = Omit<CatalogFilterConfig, 'options'> & {
13
44
  value: string;
14
45
  count: number;
15
46
  }[];
16
- filteredOptions: {
17
- value: string;
18
- count: number;
19
- }[];
20
47
  toggleOption: (option: string) => void;
21
48
  selectOption: (option: string) => void;
22
49
  parentUsed: boolean;
@@ -39,9 +66,95 @@ export type CatalogItem = {
39
66
  uniqueWarnings: number;
40
67
  }>;
41
68
  scoreCardSlug?: string;
42
- tags?: unknown[];
69
+ tags?: string[];
43
70
  versions?: CatalogItem[];
44
71
  version?: string;
45
72
  versionFolderId?: string;
46
73
  [k: string]: unknown;
47
74
  };
75
+ export type DefaultCatalogSlug = 'services' | 'users' | 'teams' | 'domains' | 'api-descriptions' | 'all';
76
+ export type CatalogApiResults<T, L> = {
77
+ query: UseInfiniteQueryResult<InfiniteData<L, unknown>, Error>;
78
+ items: T[];
79
+ total: number;
80
+ };
81
+ export type CatalogApiParams = {
82
+ limit?: number;
83
+ filter?: string;
84
+ sort?: string;
85
+ search?: string;
86
+ };
87
+ export type UseCatalogEntitiesProps = {
88
+ entitiesTypes: string[];
89
+ excludedEntities?: CatalogEntityConfig['excludes'];
90
+ };
91
+ export type UseCatalogEntitiesResponse = {
92
+ setEntitiesCounter: (counter: number) => void;
93
+ };
94
+ export type EntityType = 'service' | 'domain' | 'team' | 'user' | 'api-description';
95
+ export type CatalogViewMode = 'cards' | 'table';
96
+ export type CatalogSwitcherItem = {
97
+ labelTranslationKey: string;
98
+ slug: string;
99
+ selected: boolean;
100
+ };
101
+ export type BffCatalogRelatedEntity = {
102
+ readonly id: string;
103
+ type: string;
104
+ key: string;
105
+ title: string;
106
+ summary?: string | null;
107
+ readonly source: 'api' | 'file';
108
+ sourceFile?: string | null;
109
+ metadata?: Record<string, any>;
110
+ readonly createdAt: string | null;
111
+ readonly updatedAt: string | null;
112
+ };
113
+ export type BffCatalogEntity = {
114
+ readonly id: string;
115
+ readonly organizationId: string;
116
+ readonly projectId: string;
117
+ key: string;
118
+ type: string;
119
+ title: string;
120
+ readonly source: 'api' | 'file';
121
+ domains?: Array<BffCatalogRelatedEntity>;
122
+ owners?: Array<BffCatalogRelatedEntity>;
123
+ summary?: string;
124
+ tags?: Array<string>;
125
+ metadata?: Record<string, any>;
126
+ git?: Array<string>;
127
+ contact?: {
128
+ slack?: {
129
+ channels?: Array<{
130
+ name: string;
131
+ }>;
132
+ };
133
+ };
134
+ links?: Array<{
135
+ label: string;
136
+ url: string;
137
+ }>;
138
+ sourceFile?: string;
139
+ readonly object: 'catalogEntityView';
140
+ readonly createdAt: string;
141
+ readonly updatedAt: string;
142
+ };
143
+ export type BffCatalogEntityList = {
144
+ object: 'list';
145
+ page: Page;
146
+ items: Array<BffCatalogEntity>;
147
+ };
148
+ export type BffCatalogRelatedEntityList = {
149
+ object: 'list';
150
+ page: Page;
151
+ items: Array<BffCatalogRelatedEntity>;
152
+ };
153
+ export type Page = {
154
+ endCursor: string | null;
155
+ startCursor: string | null;
156
+ hasNextPage: boolean;
157
+ hasPrevPage: boolean;
158
+ limit: number;
159
+ total: number;
160
+ };
@@ -5,5 +5,6 @@ export type FilterProps = {
5
5
  selectedOptions: any;
6
6
  };
7
7
  filterValuesCasing?: NonNullable<RedoclyConfig['catalog']>[string]['filterValuesCasing'];
8
+ showCounter?: boolean;
8
9
  };
9
10
  export type FilterTypes = NonNullable<FilterProps['filter']['type']>;
@@ -1,10 +1,10 @@
1
- import { AsyncApiRealm } from '@redocly/realm-asyncapi-sdk';
2
- import type { PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
1
+ import type { CatalogEntityConfig, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
3
2
  import type { ShikiTransformer } from '@shikijs/types';
4
3
  import type { Callback, TFunction as TFunc } from 'i18next';
5
4
  import type { To, Location, NavigateFunction } from 'react-router-dom';
6
5
  import type { CatalogConfig, ProductUiConfig } from '../../config';
7
- import type { UserMenuData, FilteredCatalog, ItemState, SearchItemData, SubmitFeedbackParams, TFunction, BreadcrumbItem, DrilldownMenuItemDetails, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem } from '../../core/types';
6
+ import type { UserMenuData, UseCatalogResponse, ItemState, SearchItemData, SubmitFeedbackParams, TFunction, BreadcrumbItem, DrilldownMenuItemDetails, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, CatalogApiResults, CatalogApiParams, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, EventType, SendEventParams } from '../../core/types';
7
+ import { BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntity, BffCatalogRelatedEntityList } from '../../core/types';
8
8
  import { AiSearchError } from '../../core/constants';
9
9
  export type ThemeHooks = {
10
10
  useTranslate: () => {
@@ -101,9 +101,16 @@ export type ThemeHooks = {
101
101
  prevPage?: ResolvedNavItemWithLink;
102
102
  nextPage?: ResolvedNavItemWithLink;
103
103
  } | undefined;
104
+ useCatalog: (config?: CatalogEntityConfig, entitiesCounterInitial?: number) => UseCatalogResponse;
105
+ useCatalogSort: () => UseCatalogSortResponse;
106
+ useCatalogSearch: () => UseCatalogSearchResponse;
107
+ useFetchCatalogEntities: (params: CatalogApiParams, initialData?: BffCatalogEntityList) => CatalogApiResults<BffCatalogEntity, BffCatalogEntityList>;
108
+ useFetchCatalogEntitiesRelations: (params: CatalogApiParams & {
109
+ entityKey: string;
110
+ }, initialData?: BffCatalogRelatedEntityList) => CatalogApiResults<BffCatalogRelatedEntity, BffCatalogRelatedEntityList>;
104
111
  useCatalogClassic: (config: CatalogConfig) => FilteredCatalog;
105
112
  useTelemetry: () => {
106
- send(data: AsyncApiRealm.Messages): void;
113
+ send<TEventType extends EventType>(event: SendEventParams<TEventType>): void;
107
114
  };
108
115
  useUserTeams: () => string[];
109
116
  usePageProps: <T extends Record<string, unknown>>() => PageProps & T;
@@ -15,3 +15,4 @@ export * from '../../core/types/common';
15
15
  export * from '../../core/types/open-api-server';
16
16
  export * from '../../core/types/marker';
17
17
  export * from '../../core/types/code-walkthrough';
18
+ export * from '../../core/types/telemetry';
@@ -31,4 +31,5 @@ __exportStar(require("../../core/types/common"), exports);
31
31
  __exportStar(require("../../core/types/open-api-server"), exports);
32
32
  __exportStar(require("../../core/types/marker"), exports);
33
33
  __exportStar(require("../../core/types/code-walkthrough"), exports);
34
+ __exportStar(require("../../core/types/telemetry"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import type { TOptions } from 'i18next';
2
- export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description';
2
+ export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -0,0 +1,32 @@
1
+ import { AsyncApiRealm } from '@redocly/realm-asyncapi-sdk';
2
+ type ExtractEventType<T> = T extends {
3
+ span?: {
4
+ attributes?: {
5
+ 'cloudevents.event_type': infer EventType;
6
+ };
7
+ };
8
+ } ? EventType : never;
9
+ export type EventType = ExtractEventType<AsyncApiRealm.Messages>;
10
+ type GetMessageForEventType<TEventType extends EventType> = Extract<AsyncApiRealm.Messages, {
11
+ span?: {
12
+ attributes?: {
13
+ 'cloudevents.event_type': TEventType;
14
+ };
15
+ };
16
+ }>;
17
+ type ExtractEventDataForType<TEventType extends EventType> = GetMessageForEventType<TEventType> extends {
18
+ span?: {
19
+ attributes?: infer Attrs;
20
+ };
21
+ } ? {
22
+ [K in keyof Attrs as K extends `cloudevents.event_data.${string}` ? K : never]: Attrs[K];
23
+ } : never;
24
+ export type ConvertEventDataToPayload<T> = {
25
+ [K in keyof T as K extends `cloudevents.event_data.${infer FieldName}` ? FieldName : never]: T[K];
26
+ };
27
+ export type EventPayload<TEventType extends EventType> = ConvertEventDataToPayload<ExtractEventDataForType<TEventType>>;
28
+ export interface SendEventParams<TEventType extends EventType> {
29
+ type: TEventType;
30
+ payload?: EventPayload<TEventType>;
31
+ }
32
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=telemetry.js.map
@@ -32,3 +32,4 @@ export * from '../../core/utils/match-code-walkthrough-conditions';
32
32
  export * from '../../core/utils/replace-inputs-with-value';
33
33
  export * from '../../core/utils/find-closest-common-directory';
34
34
  export * from '../../core/utils/get-user-agent';
35
+ export * from '../../core/utils/parse-style-string';
@@ -48,4 +48,5 @@ __exportStar(require("../../core/utils/match-code-walkthrough-conditions"), expo
48
48
  __exportStar(require("../../core/utils/replace-inputs-with-value"), exports);
49
49
  __exportStar(require("../../core/utils/find-closest-common-directory"), exports);
50
50
  __exportStar(require("../../core/utils/get-user-agent"), exports);
51
+ __exportStar(require("../../core/utils/parse-style-string"), exports);
51
52
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ export declare function parseStyleString(styleString: string): React.CSSProperties;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseStyleString = parseStyleString;
4
+ function parseStyleString(styleString) {
5
+ return styleString
6
+ .split(';')
7
+ .filter((style) => style.trim().length)
8
+ .reduce((styleObj, style) => {
9
+ const colonIndex = style.indexOf(':');
10
+ if (colonIndex === -1)
11
+ return styleObj;
12
+ const key = style.substring(0, colonIndex).trim();
13
+ const value = style.substring(colonIndex + 1).trim();
14
+ if (key && value) {
15
+ const camelCaseKey = key.replace(/-[a-z]/g, (match) => {
16
+ return match[1].toUpperCase();
17
+ });
18
+ styleObj[camelCaseKey] = value;
19
+ }
20
+ return styleObj;
21
+ }, {});
22
+ }
23
+ //# sourceMappingURL=parse-style-string.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const AscSortIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AscSortIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M9 11L9.707 10.293L11.5 12.086V2H12.5V12.086L14.293 10.293L15 11L12 14L9 11Z", fill: "#22242B" }),
12
+ react_1.default.createElement("path", { d: "M8 9H1V10H8V9Z", fill: "#22242B" }),
13
+ react_1.default.createElement("path", { d: "M8 6H3V7H8V6Z", fill: "#22242B" }),
14
+ react_1.default.createElement("path", { d: "M8 3H5V4H8V3Z", fill: "#22242B" })));
15
+ exports.AscSortIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
16
+ 'data-component-name': 'icons/AscSortIcon/AscSortIcon',
17
+ })) `
18
+ path {
19
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
20
+ }
21
+
22
+ height: ${({ size }) => size || '16px'};
23
+ width: ${({ size }) => size || '16px'};
24
+ `;
25
+ //# sourceMappingURL=AscSortIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const CardsIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CardsIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M4 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1V4C0 4.26522 0.105357 4.51957 0.292893 4.70711C0.48043 4.89464 0.734784 5 1 5H4C4.26522 5 4.51957 4.89464 4.70711 4.70711C4.89464 4.51957 5 4.26522 5 4V1C5 0.734784 4.89464 0.48043 4.70711 0.292893C4.51957 0.105357 4.26522 0 4 0ZM4 4H1V1H4V4Z", fill: "#22242B" }),
12
+ react_1.default.createElement("path", { d: "M11 0H8C7.73478 0 7.48043 0.105357 7.29289 0.292893C7.10536 0.48043 7 0.734784 7 1V4C7 4.26522 7.10536 4.51957 7.29289 4.70711C7.48043 4.89464 7.73478 5 8 5H11C11.2652 5 11.5196 4.89464 11.7071 4.70711C11.8946 4.51957 12 4.26522 12 4V1C12 0.734784 11.8946 0.48043 11.7071 0.292893C11.5196 0.105357 11.2652 0 11 0ZM11 4H8V1H11V4Z", fill: "#22242B" }),
13
+ react_1.default.createElement("path", { d: "M4 7H1C0.734784 7 0.48043 7.10536 0.292893 7.29289C0.105357 7.48043 0 7.73478 0 8V11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H4C4.26522 12 4.51957 11.8946 4.70711 11.7071C4.89464 11.5196 5 11.2652 5 11V8C5 7.73478 4.89464 7.48043 4.70711 7.29289C4.51957 7.10536 4.26522 7 4 7ZM4 11H1V8H4V11Z", fill: "#22242B" }),
14
+ react_1.default.createElement("path", { d: "M11 7H8C7.73478 7 7.48043 7.10536 7.29289 7.29289C7.10536 7.48043 7 7.73478 7 8V11C7 11.2652 7.10536 11.5196 7.29289 11.7071C7.48043 11.8946 7.73478 12 8 12H11C11.2652 12 11.5196 11.8946 11.7071 11.7071C11.8946 11.5196 12 11.2652 12 11V8C12 7.73478 11.8946 7.48043 11.7071 7.29289C11.5196 7.10536 11.2652 7 11 7ZM11 11H8V8H11V11Z", fill: "#22242B" })));
15
+ exports.CardsIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
16
+ 'data-component-name': 'icons/CardsIcon/CardsIcon',
17
+ })) `
18
+ path {
19
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
20
+ }
21
+
22
+ height: ${({ size }) => size || '16px'};
23
+ width: ${({ size }) => size || '16px'};
24
+ `;
25
+ //# sourceMappingURL=CardsIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const CaretDownIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CaretDownIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 8 4", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M6.77566 0C7.04293 0 7.17678 0.323143 6.98779 0.512132L4.21205 3.28787C4.0949 3.40503 3.90495 3.40503 3.78779 3.28787L1.01205 0.512132C0.823064 0.323142 0.956914 0 1.22419 0H6.77566Z", fill: "#6E6F7A" })));
12
+ exports.CaretDownIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/CaretDownIcon/CaretDownIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '4px'};
20
+ width: ${({ size }) => size || '8px'};
21
+ `;
22
+ //# sourceMappingURL=CaretDownIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const CaretUpIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CaretUpIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 8 4", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M1.22419 3.99573C0.956914 3.99573 0.823064 3.67259 1.01205 3.4836L3.78779 0.707863C3.90495 0.590706 4.0949 0.590706 4.21205 0.707863L6.98779 3.4836C7.17678 3.67259 7.04293 3.99573 6.77566 3.99573L1.22419 3.99573Z", fill: "#6E6F7A" })));
12
+ exports.CaretUpIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/CaretUpIcon/CaretUpIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '4px'};
20
+ width: ${({ size }) => size || '8px'};
21
+ `;
22
+ //# sourceMappingURL=CaretUpIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const DescSortIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DescSortIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M9 11L9.707 10.293L11.5 12.086V2H12.5V12.086L14.293 10.293L15 11L12 14L9 11Z", fill: "#22242B" }),
12
+ react_1.default.createElement("path", { d: "M8 3H1V4H8V3Z", fill: "#22242B" }),
13
+ react_1.default.createElement("path", { d: "M8 6H3V7H8V6Z", fill: "#22242B" }),
14
+ react_1.default.createElement("path", { d: "M8 9H5V10H8V9Z", fill: "#22242B" })));
15
+ exports.DescSortIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
16
+ 'data-component-name': 'icons/DescSortIcon/DescSortIcon',
17
+ })) `
18
+ path {
19
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
20
+ }
21
+
22
+ height: ${({ size }) => size || '16px'};
23
+ width: ${({ size }) => size || '16px'};
24
+ `;
25
+ //# sourceMappingURL=DescSortIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const EntityTypeIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EntityTypeIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M17.7501 8.375H9.62507V0.250001H8.37507V8.375H0.250073V9.625H8.37507V17.75H9.62507V9.625H17.7501V8.375Z", fill: "#555761" }),
12
+ react_1.default.createElement("path", { d: "M14.9913 11.5L15.8751 12.3837L13.6338 14.625L15.8751 16.8662L14.9913 17.75L11.8663 14.625L14.9913 11.5Z", fill: "#555761" }),
13
+ react_1.default.createElement("path", { d: "M5.87507 17.75H0.875073C0.768526 17.75 0.663745 17.7228 0.570682 17.6709C0.477618 17.619 0.399362 17.5442 0.343347 17.4536C0.287331 17.363 0.255415 17.2595 0.250631 17.1531C0.245846 17.0466 0.268352 16.9407 0.31601 16.8454L2.81601 11.8454C2.8737 11.7486 2.95556 11.6684 3.05356 11.6127C3.15156 11.557 3.26235 11.5277 3.37507 11.5277C3.48779 11.5277 3.59858 11.557 3.69659 11.6127C3.79459 11.6684 3.87644 11.7486 3.93413 11.8454L6.43413 16.8454C6.48179 16.9407 6.5043 17.0466 6.49951 17.1531C6.49473 17.2595 6.46281 17.363 6.4068 17.4536C6.35078 17.5442 6.27253 17.619 6.17946 17.6709C6.0864 17.7228 5.98162 17.75 5.87507 17.75ZM1.88645 16.5H4.8637L3.37507 13.5227L1.88645 16.5Z", fill: "#555761" }),
14
+ react_1.default.createElement("path", { d: "M16.5001 6.5H12.7501C12.4187 6.49962 12.1009 6.3678 11.8666 6.13346C11.6323 5.89913 11.5005 5.5814 11.5001 5.25V1.5C11.5005 1.1686 11.6323 0.850876 11.8666 0.616538C12.1009 0.3822 12.4187 0.250382 12.7501 0.250001H16.5001C16.8315 0.250382 17.1492 0.3822 17.3835 0.616538C17.6179 0.850876 17.7497 1.1686 17.7501 1.5V5.25C17.7497 5.5814 17.6179 5.89913 17.3835 6.13346C17.1492 6.3678 16.8315 6.49962 16.5001 6.5ZM12.7501 1.5V5.25H16.5007L16.5001 1.5H12.7501Z", fill: "#555761" }),
15
+ react_1.default.createElement("path", { d: "M3.37507 6.5C2.75701 6.5 2.15282 6.31672 1.63892 5.97334C1.12501 5.62996 0.724473 5.14191 0.487949 4.57089C0.251425 3.99987 0.18954 3.37153 0.310119 2.76534C0.430697 2.15915 0.728325 1.60233 1.16536 1.16529C1.6024 0.728254 2.15922 0.430626 2.76542 0.310047C3.37161 0.189469 3.99994 0.251354 4.57096 0.487878C5.14198 0.724402 5.63003 1.12494 5.97341 1.63884C6.31679 2.15275 6.50007 2.75693 6.50007 3.375C6.4991 4.2035 6.16954 4.99779 5.5837 5.58363C4.99786 6.16947 4.20357 6.49902 3.37507 6.5ZM3.37507 1.5C3.00423 1.5 2.64172 1.60997 2.33338 1.816C2.02504 2.02202 1.78471 2.31486 1.6428 2.65747C1.50088 3.00008 1.46375 3.37708 1.5361 3.7408C1.60845 4.10451 1.78702 4.4386 2.04925 4.70083C2.31147 4.96305 2.64556 5.14163 3.00928 5.21397C3.37299 5.28632 3.74999 5.24919 4.0926 5.10728C4.43522 4.96536 4.72805 4.72504 4.93408 4.4167C5.14011 4.10835 5.25007 3.74584 5.25007 3.375C5.24953 2.87789 5.05181 2.40129 4.70029 2.04978C4.34878 1.69827 3.87219 1.50055 3.37507 1.5Z", fill: "#555761" })));
16
+ exports.EntityTypeIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
17
+ 'data-component-name': 'icons/EntityTypeIcon/EntityTypeIcon',
18
+ })) `
19
+ path {
20
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
21
+ }
22
+
23
+ height: ${({ size }) => size || '16px'};
24
+ width: ${({ size }) => size || '18px'};
25
+ `;
26
+ //# sourceMappingURL=EntityTypeIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const GithubIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GithubIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.99982 0.250052C6.9225 0.250332 4.91303 0.989665 3.33088 2.3358C1.74873 3.68193 0.697109 5.54705 0.364134 7.59751C0.0311591 9.64798 0.438552 11.75 1.51344 13.5276C2.58832 15.3052 4.26058 16.6424 6.23107 17.3001C6.66857 17.3813 6.85607 17.1126 6.85607 16.8813C6.85607 16.6501 6.85607 16.1251 6.85607 15.3938C4.42482 15.9188 3.91232 14.2188 3.91232 14.2188C3.74135 13.6831 3.38152 13.2277 2.89982 12.9376C2.10607 12.4001 2.96232 12.4063 2.96232 12.4063C3.23957 12.4455 3.50421 12.5475 3.73601 12.7045C3.96782 12.8616 4.16066 13.0696 4.29982 13.3126C4.54191 13.7468 4.94653 14.0671 5.42471 14.203C5.9029 14.339 6.4155 14.2794 6.84982 14.0376C6.88511 13.5941 7.08061 13.1786 7.39982 12.8688C5.46232 12.6438 3.41857 11.8938 3.41857 8.5438C3.4044 7.67374 3.72683 6.83182 4.31857 6.1938C4.05073 5.44017 4.08205 4.61254 4.40607 3.8813C4.40607 3.8813 5.13732 3.6438 6.81232 4.77505C8.24449 4.3844 9.75515 4.3844 11.1873 4.77505C12.8561 3.6438 13.5873 3.8813 13.5873 3.8813C13.9113 4.61254 13.9427 5.44017 13.6748 6.1938C14.2666 6.83182 14.589 7.67374 14.5748 8.5438C14.5748 11.9063 12.5311 12.6438 10.5811 12.8626C10.79 13.0743 10.951 13.3283 11.0535 13.6075C11.1559 13.8868 11.1973 14.1847 11.1748 14.4813C11.1748 15.6501 11.1748 16.5938 11.1748 16.8813C11.1748 17.1688 11.3311 17.3876 11.7998 17.3001C13.7729 16.6416 15.4469 15.3018 16.5216 13.521C17.5963 11.7401 18.0015 9.63459 17.6644 7.58204C17.3273 5.5295 16.2701 3.66416 14.6822 2.32053C13.0944 0.976903 11.0798 0.242866 8.99982 0.250052Z", fill: "#555761" })));
12
+ exports.GithubIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/GithubIcon/GithubIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '16px'};
20
+ width: ${({ size }) => size || '18px'};
21
+ `;
22
+ //# sourceMappingURL=GithubIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const GraphIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GraphIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 14 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M13.125 4.25V0.75H9.625V2.0625H7.875C7.64302 2.06277 7.42061 2.15504 7.25658 2.31908C7.09254 2.48311 7.00027 2.70552 7 2.9375V5.5625H4.375V4.25H0.875V7.75H4.375V6.4375H7V9.0625C7.00027 9.29448 7.09254 9.51689 7.25658 9.68092C7.42061 9.84496 7.64302 9.93723 7.875 9.9375H9.625V11.25H13.125V7.75H9.625V9.0625H7.875V2.9375H9.625V4.25H13.125ZM3.5 6.875H1.75V5.125H3.5V6.875ZM10.5 8.625H12.25V10.375H10.5V8.625ZM10.5 1.625H12.25V3.375H10.5V1.625Z", fill: "#0E8450" })));
12
+ exports.GraphIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/GraphIcon/GraphIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '12px'};
20
+ width: ${({ size }) => size || '14px'};
21
+ `;
22
+ //# sourceMappingURL=GraphIcon.js.map