@redocly/theme 0.60.0-next.0 → 0.60.0-next.2

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 (281) hide show
  1. package/lib/components/Buttons/ConnectMCPButton.js +3 -3
  2. package/lib/components/Buttons/variables.js +2 -0
  3. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -3
  4. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +5 -1
  5. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +2 -2
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +4 -1
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -0
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +4 -1
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +4 -1
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +4 -1
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +4 -1
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +4 -1
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +4 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +4 -1
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +4 -1
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +4 -1
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +2 -2
  18. package/lib/components/Catalog/CatalogFilter/CatalogFilterDateRange.js +2 -2
  19. package/lib/components/Catalog/CatalogSelector.js +1 -1
  20. package/lib/components/Catalog/CatalogSortButton.js +4 -1
  21. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +2 -2
  22. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +2 -2
  23. package/lib/components/Catalog/CatalogTagsWithTooltip.js +5 -1
  24. package/lib/components/Catalog/variables.dark.js +1 -1
  25. package/lib/components/Catalog/variables.js +5 -3
  26. package/lib/components/CatalogClassic/variables.js +1 -1
  27. package/lib/components/CodeBlock/CodeBlock.js +3 -1
  28. package/lib/components/CodeBlock/CodeBlockTabs.js +3 -3
  29. package/lib/components/DatePicker/variables.js +2 -0
  30. package/lib/components/Feedback/Mood.js +2 -2
  31. package/lib/components/Feedback/Rating.js +2 -2
  32. package/lib/components/Filter/FilterDateRange.js +2 -2
  33. package/lib/components/Filter/FilterSelect.js +5 -1
  34. package/lib/components/JsonViewer/{helpers.js → Helpers.js} +1 -1
  35. package/lib/components/JsonViewer/JsonViewer.js +2 -2
  36. package/lib/components/Loaders/Loading.js +4 -1
  37. package/lib/components/Markdown/Markdown.js +9 -9
  38. package/lib/components/Markdown/styles/{baseTable.js → base-table.js} +1 -1
  39. package/lib/components/Markdown/styles/{headingAnchor.js → heading-anchor.js} +1 -1
  40. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperation.js +1 -0
  41. package/lib/components/OpenApiDocs/hooks/AfterOpenApiTitle.js +1 -0
  42. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperation.js +1 -0
  43. package/lib/components/OpenApiDocs/hooks/OpenApiFooter.js +3 -2
  44. package/lib/components/OpenApiDocs/hooks/OpenApiHeader.js +3 -2
  45. package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +2 -1
  46. package/lib/components/Search/SearchAiMessage.js +20 -18
  47. package/lib/components/Search/SearchAiNegativeFeedbackForm.d.ts +5 -3
  48. package/lib/components/Search/SearchAiNegativeFeedbackForm.js +5 -4
  49. package/lib/components/Search/SearchGroups.js +4 -1
  50. package/lib/components/Search/SearchHighlight.js +1 -0
  51. package/lib/components/Search/SearchItem.js +4 -1
  52. package/lib/components/Search/variables.js +2 -0
  53. package/lib/components/Segmented/Segmented.d.ts +1 -1
  54. package/lib/components/Segmented/Segmented.js +2 -2
  55. package/lib/components/Select/Select.d.ts +1 -1
  56. package/lib/components/Select/Select.js +4 -2
  57. package/lib/components/Select/SelectInput.d.ts +1 -1
  58. package/lib/components/Select/SelectInput.js +2 -0
  59. package/lib/components/SidebarActions/styled.d.ts +5 -4
  60. package/lib/components/SidebarActions/styled.js +9 -5
  61. package/lib/components/Tag/variables.dark.js +2 -0
  62. package/lib/components/Tag/variables.js +2 -0
  63. package/lib/components/Tooltip/Tooltip.js +2 -0
  64. package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
  65. package/lib/core/hoc/index.d.ts +1 -1
  66. package/lib/core/hoc/index.js +1 -1
  67. package/lib/core/hoc/{typedMemo.js → typed-memo.js} +1 -1
  68. package/lib/core/hooks/__tests__/mocks/mock-intersection-observer.d.ts +1 -1
  69. package/lib/core/hooks/__tests__/mocks/mock-intersection-observer.js +1 -3
  70. package/lib/core/hooks/catalog/{useCatalogEntities.js → use-catalog-entities.js} +1 -1
  71. package/lib/core/hooks/catalog/{useCatalogEntitySchema.d.ts → use-catalog-entity-schema.d.ts} +1 -1
  72. package/lib/core/hooks/catalog/{useCatalogEntitySchema.js → use-catalog-entity-schema.js} +1 -1
  73. package/lib/core/hooks/catalog/{useCatalogTableHeaderCellActions.js → use-catalog-table-header-cell-actions.js} +1 -1
  74. package/lib/core/hooks/catalog/{useCatalogTableViewRow.js → use-catalog-table-view-row.js} +1 -1
  75. package/lib/core/hooks/catalog/{useGraph.js → use-graph.js} +2 -2
  76. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.js +1 -0
  77. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +1 -0
  78. package/lib/core/hooks/code-walkthrough/use-renderable-files.js +2 -2
  79. package/lib/core/hooks/index.d.ts +5 -2
  80. package/lib/core/hooks/index.js +5 -2
  81. package/lib/core/hooks/menu/use-collapse.js +1 -0
  82. package/lib/core/hooks/menu/use-mobile-menu-items.js +1 -0
  83. package/lib/core/hooks/use-mcp-config.js +9 -6
  84. package/lib/core/hooks/use-page-actions.js +5 -3
  85. package/lib/core/hooks/use-telemetry-fallback.js +1 -0
  86. package/lib/core/hooks/use-theme-config.js +1 -0
  87. package/lib/core/hooks/use-theme-hooks.js +1 -0
  88. package/lib/core/openapi/index.d.ts +1 -1
  89. package/lib/core/openapi/index.js +2 -2
  90. package/lib/core/templates/Markdown.js +1 -0
  91. package/lib/core/types/hooks.d.ts +6 -0
  92. package/lib/core/types/index.d.ts +20 -19
  93. package/lib/core/types/index.js +0 -19
  94. package/lib/core/types/l10n.d.ts +1 -1
  95. package/lib/core/utils/{dynamic.js → Dynamic.js} +1 -1
  96. package/lib/core/utils/{get-file-icon.js → GetFileIcon.js} +1 -1
  97. package/lib/core/utils/args-typecheck.d.ts +2 -2
  98. package/lib/core/utils/clipboard-service.js +2 -0
  99. package/lib/core/utils/get-user-agent.js +1 -0
  100. package/lib/core/utils/index.d.ts +2 -2
  101. package/lib/core/utils/index.js +2 -2
  102. package/lib/core/utils/js-utils.d.ts +1 -1
  103. package/lib/core/utils/load-and-navigate.js +1 -0
  104. package/lib/core/utils/markdoc.js +1 -0
  105. package/lib/core/utils/parse-style-string.js +1 -0
  106. package/lib/ext/configure.d.ts +2 -2
  107. package/lib/ext/configure.js +12 -6
  108. package/lib/ext/{useConfigureReplay.js → use-configure-replay.js} +5 -4
  109. package/lib/index.d.ts +3 -3
  110. package/lib/index.js +2 -3
  111. package/lib/layouts/ThreePanelLayout.js +4 -4
  112. package/lib/markdoc/components/Cards/variables.dark.js +2 -0
  113. package/lib/markdoc/components/Cards/variables.js +2 -0
  114. package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +1 -0
  115. package/lib/markdoc/tags/code-walkthrough.js +1 -0
  116. package/lib/markdoc/tags/html.js +1 -0
  117. package/package.json +1 -1
  118. package/src/components/Button/Button.tsx +1 -0
  119. package/src/components/Buttons/ConnectMCPButton.tsx +1 -1
  120. package/src/components/Buttons/variables.ts +2 -0
  121. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -3
  122. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +4 -0
  123. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.tsx +1 -1
  124. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +5 -1
  125. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -0
  126. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +5 -1
  127. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +5 -1
  128. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +5 -1
  129. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +5 -1
  130. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +5 -1
  131. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +5 -1
  132. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +5 -1
  133. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +5 -1
  134. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +5 -1
  135. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +3 -1
  136. package/src/components/Catalog/CatalogFilter/CatalogFilterDateRange.tsx +2 -2
  137. package/src/components/Catalog/CatalogSelector.tsx +2 -2
  138. package/src/components/Catalog/CatalogSortButton.tsx +5 -1
  139. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +1 -1
  140. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +1 -1
  141. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +8 -1
  142. package/src/components/Catalog/variables.dark.ts +1 -1
  143. package/src/components/Catalog/variables.ts +5 -3
  144. package/src/components/CatalogClassic/CatalogClassicInfoBlock.tsx +1 -0
  145. package/src/components/CatalogClassic/variables.ts +1 -1
  146. package/src/components/CodeBlock/CodeBlock.tsx +4 -0
  147. package/src/components/CodeBlock/CodeBlockControls.tsx +1 -0
  148. package/src/components/CodeBlock/CodeBlockTabs.tsx +1 -1
  149. package/src/components/DatePicker/variables.ts +3 -1
  150. package/src/components/Feedback/Mood.tsx +2 -2
  151. package/src/components/Feedback/Rating.tsx +2 -2
  152. package/src/components/Filter/FilterDateRange.tsx +2 -2
  153. package/src/components/Filter/FilterSelect.tsx +1 -0
  154. package/src/components/JsonViewer/{helpers.tsx → Helpers.tsx} +2 -0
  155. package/src/components/JsonViewer/JsonViewer.tsx +2 -1
  156. package/src/components/LastUpdated/LastUpdated.tsx +1 -0
  157. package/src/components/Loaders/Loading.tsx +5 -1
  158. package/src/components/Markdown/Markdown.tsx +2 -2
  159. package/src/components/OpenApiDocs/hooks/AfterOpenApiOperation.tsx +1 -1
  160. package/src/components/OpenApiDocs/hooks/AfterOpenApiTitle.tsx +1 -1
  161. package/src/components/OpenApiDocs/hooks/BeforeOpenApiOperation.tsx +1 -1
  162. package/src/components/OpenApiDocs/hooks/OpenApiFooter.tsx +1 -1
  163. package/src/components/OpenApiDocs/hooks/OpenApiHeader.tsx +1 -1
  164. package/src/components/Search/FilterFields/SearchFilterFieldSelect.tsx +4 -1
  165. package/src/components/Search/SearchAiMessage.tsx +42 -37
  166. package/src/components/Search/SearchAiNegativeFeedbackForm.tsx +7 -5
  167. package/src/components/Search/SearchGroups.tsx +4 -1
  168. package/src/components/Search/SearchHighlight.tsx +1 -0
  169. package/src/components/Search/SearchItem.tsx +8 -1
  170. package/src/components/Search/variables.ts +2 -0
  171. package/src/components/Segmented/Segmented.tsx +2 -2
  172. package/src/components/Select/Select.tsx +8 -4
  173. package/src/components/Select/SelectInput.tsx +10 -1
  174. package/src/components/SidebarActions/{styled.tsx → styled.ts} +11 -4
  175. package/src/components/Tag/Tag.tsx +1 -0
  176. package/src/components/Tag/variables.dark.ts +2 -0
  177. package/src/components/Tag/variables.ts +2 -0
  178. package/src/components/Tooltip/Tooltip.tsx +2 -1
  179. package/src/components/VersionPicker/VersionPicker.tsx +2 -1
  180. package/src/core/hoc/index.ts +1 -1
  181. package/src/core/hooks/__mocks__/use-theme-hooks.ts +2 -2
  182. package/src/core/hooks/__tests__/mocks/mock-intersection-observer.ts +9 -8
  183. package/src/core/hooks/catalog/{useCatalogEntitySchema.ts → use-catalog-entity-schema.ts} +3 -3
  184. package/src/core/hooks/catalog/{useGraph.ts → use-graph.ts} +1 -1
  185. package/src/core/hooks/code-walkthrough/__mocks__/MockIntersectionObserver.ts +1 -1
  186. package/src/core/hooks/code-walkthrough/__mocks__/mock-intersection-observer.ts +24 -0
  187. package/src/core/hooks/code-walkthrough/use-code-walkthrough-controls.ts +1 -0
  188. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +2 -2
  189. package/src/core/hooks/code-walkthrough/use-renderable-files.ts +1 -1
  190. package/src/core/hooks/index.ts +5 -2
  191. package/src/core/hooks/menu/use-collapse.ts +3 -3
  192. package/src/core/hooks/menu/use-mobile-menu-items.ts +1 -0
  193. package/src/core/hooks/use-mcp-config.ts +11 -5
  194. package/src/core/hooks/use-page-actions.ts +3 -1
  195. package/src/core/hooks/use-telemetry-fallback.ts +1 -0
  196. package/src/core/hooks/use-theme-config.ts +1 -0
  197. package/src/core/hooks/use-theme-hooks.ts +2 -1
  198. package/src/core/openapi/index.ts +1 -1
  199. package/src/core/templates/Markdown.tsx +1 -0
  200. package/src/core/types/catalog.ts +3 -1
  201. package/src/core/types/filter.ts +1 -0
  202. package/src/core/types/hooks.ts +6 -0
  203. package/src/core/types/index.ts +20 -19
  204. package/src/core/types/l10n.ts +24 -1
  205. package/src/core/types/search.ts +1 -1
  206. package/src/core/types/segmented.ts +1 -0
  207. package/src/core/types/select.ts +1 -0
  208. package/src/core/utils/args-typecheck.ts +2 -2
  209. package/src/core/utils/clipboard-service.ts +2 -0
  210. package/src/core/utils/get-user-agent.ts +1 -0
  211. package/src/core/utils/index.ts +2 -2
  212. package/src/core/utils/js-utils.ts +1 -1
  213. package/src/core/utils/load-and-navigate.ts +1 -0
  214. package/src/core/utils/markdoc.ts +1 -0
  215. package/src/core/utils/parse-style-string.ts +1 -0
  216. package/src/ext/configure.ts +15 -8
  217. package/src/ext/{useConfigureReplay.ts → use-configure-replay.ts} +5 -3
  218. package/src/index.ts +3 -3
  219. package/src/layouts/ThreePanelLayout.tsx +1 -1
  220. package/src/markdoc/components/Cards/variables.dark.ts +2 -0
  221. package/src/markdoc/components/Cards/variables.ts +3 -1
  222. package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +1 -1
  223. package/src/markdoc/tags/code-walkthrough.ts +2 -0
  224. package/src/markdoc/tags/html.ts +1 -0
  225. package/lib/core/hooks/__mocks__/index.d.ts +0 -28
  226. package/lib/core/hooks/__mocks__/index.js +0 -45
  227. package/lib/core/hooks/__mocks__/search/use-recent-searches.d.ts +0 -5
  228. package/lib/core/hooks/__mocks__/search/use-recent-searches.js +0 -13
  229. package/lib/core/hooks/__mocks__/search/use-search-filter.d.ts +0 -8
  230. package/lib/core/hooks/__mocks__/search/use-search-filter.js +0 -15
  231. package/lib/core/hooks/__mocks__/search/use-suggested-pages.d.ts +0 -4
  232. package/lib/core/hooks/__mocks__/search/use-suggested-pages.js +0 -13
  233. package/lib/core/hooks/__mocks__/use-controlled-state.d.ts +0 -1
  234. package/lib/core/hooks/__mocks__/use-controlled-state.js +0 -7
  235. package/lib/core/hooks/__mocks__/use-element-size.d.ts +0 -4
  236. package/lib/core/hooks/__mocks__/use-element-size.js +0 -9
  237. package/lib/core/hooks/__mocks__/use-input-key-commands.d.ts +0 -3
  238. package/lib/core/hooks/__mocks__/use-input-key-commands.js +0 -8
  239. package/lib/core/hooks/__mocks__/use-mobile-menu.d.ts +0 -1
  240. package/lib/core/hooks/__mocks__/use-mobile-menu.js +0 -7
  241. package/lib/core/hooks/__mocks__/use-theme-config.d.ts +0 -8
  242. package/lib/core/hooks/__mocks__/use-theme-config.js +0 -13
  243. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +0 -69
  244. package/lib/core/hooks/__mocks__/use-theme-hooks.js +0 -94
  245. package/lib/core/hooks/__mocks__/use-time-ago.d.ts +0 -3
  246. package/lib/core/hooks/__mocks__/use-time-ago.js +0 -8
  247. package/lib/core/hooks/code-walkthrough/__mocks__/MockIntersectionObserver.d.ts +0 -10
  248. package/lib/core/hooks/code-walkthrough/__mocks__/MockIntersectionObserver.js +0 -56
  249. package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.d.ts +0 -1
  250. package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.js +0 -35
  251. /package/lib/components/JsonViewer/{helpers.d.ts → Helpers.d.ts} +0 -0
  252. /package/lib/components/Markdown/styles/{baseTable.d.ts → base-table.d.ts} +0 -0
  253. /package/lib/components/Markdown/styles/{headingAnchor.d.ts → heading-anchor.d.ts} +0 -0
  254. /package/lib/core/hoc/{typedMemo.d.ts → typed-memo.d.ts} +0 -0
  255. /package/lib/core/hooks/catalog/{useCatalogEntities.d.ts → use-catalog-entities.d.ts} +0 -0
  256. /package/lib/core/hooks/catalog/{useCatalogTableHeaderCellActions.d.ts → use-catalog-table-header-cell-actions.d.ts} +0 -0
  257. /package/lib/core/hooks/catalog/{useCatalogTableViewRow.d.ts → use-catalog-table-view-row.d.ts} +0 -0
  258. /package/lib/core/hooks/catalog/{useGraph.d.ts → use-graph.d.ts} +0 -0
  259. /package/lib/core/utils/{dynamic.d.ts → Dynamic.d.ts} +0 -0
  260. /package/lib/core/utils/{get-file-icon.d.ts → GetFileIcon.d.ts} +0 -0
  261. /package/lib/ext/{useConfigureReplay.d.ts → use-configure-replay.d.ts} +0 -0
  262. /package/src/components/Markdown/styles/{baseTable.ts → base-table.ts} +0 -0
  263. /package/src/components/Markdown/styles/{headingAnchor.ts → heading-anchor.ts} +0 -0
  264. /package/src/components/Panel/{PanelBody.ts → PanelBody.tsx} +0 -0
  265. /package/src/components/Panel/{PanelHeader.ts → PanelHeader.tsx} +0 -0
  266. /package/src/components/Panel/{PanelHeaderTitle.ts → PanelHeaderTitle.tsx} +0 -0
  267. /package/src/components/StatusCode/{StatusCode.ts → StatusCode.tsx} +0 -0
  268. /package/src/components/Typography/{CompactTypography.ts → CompactTypography.tsx} +0 -0
  269. /package/src/components/Typography/{Emphasis.ts → Emphasis.tsx} +0 -0
  270. /package/src/components/Typography/{H1.ts → H1.tsx} +0 -0
  271. /package/src/components/Typography/{H2.ts → H2.tsx} +0 -0
  272. /package/src/components/Typography/{H3.ts → H3.tsx} +0 -0
  273. /package/src/components/Typography/{H4.ts → H4.tsx} +0 -0
  274. /package/src/components/Typography/{SectionHeader.ts → SectionHeader.tsx} +0 -0
  275. /package/src/components/Typography/{Typography.ts → Typography.tsx} +0 -0
  276. /package/src/core/hoc/{typedMemo.ts → typed-memo.ts} +0 -0
  277. /package/src/core/hooks/catalog/{useCatalogEntities.ts → use-catalog-entities.ts} +0 -0
  278. /package/src/core/hooks/catalog/{useCatalogTableHeaderCellActions.ts → use-catalog-table-header-cell-actions.ts} +0 -0
  279. /package/src/core/hooks/catalog/{useCatalogTableViewRow.ts → use-catalog-table-view-row.ts} +0 -0
  280. /package/src/core/utils/{dynamic.tsx → Dynamic.tsx} +0 -0
  281. /package/src/core/utils/{get-file-icon.tsx → GetFileIcon.tsx} +0 -0
@@ -48,8 +48,8 @@ const VSCodeIcon_1 = require("../../icons/VSCodeIcon/VSCodeIcon");
48
48
  const CopyIcon_1 = require("../../icons/CopyIcon/CopyIcon");
49
49
  const CheckmarkFilledIcon_1 = require("../../icons/CheckmarkFilledIcon/CheckmarkFilledIcon");
50
50
  const ConnectIcon_1 = require("../../icons/ConnectIcon/ConnectIcon");
51
- const use_connect_mcp_button_1 = require("../../core/hooks/use-connect-mcp-button");
52
51
  const hooks_1 = require("../../core/hooks");
52
+ const hooks_2 = require("../../core/hooks");
53
53
  const TriggerButton = react_1.default.memo(({ text }) => {
54
54
  return (react_1.default.createElement(StyledButton, { variant: "secondary", icon: react_1.default.createElement(ConnectIcon_1.ConnectIcon, null) }, text));
55
55
  });
@@ -80,9 +80,9 @@ const MENU_OPTIONS = [
80
80
  },
81
81
  ];
82
82
  function ConnectMCPButton({ placement = 'bottom', alignment = 'end', options = ['cursor', 'vscode', 'copy'], }) {
83
- const { useTranslate } = (0, hooks_1.useThemeHooks)();
83
+ const { useTranslate } = (0, hooks_2.useThemeHooks)();
84
84
  const { translate } = useTranslate();
85
- const { isCopied, triggerButtonText, visibleOptions, handleAction } = (0, use_connect_mcp_button_1.useConnectMCPButton)({
85
+ const { isCopied, triggerButtonText, visibleOptions, handleAction } = (0, hooks_1.useConnectMCPButton)({
86
86
  options,
87
87
  });
88
88
  const menuOptions = (0, react_1.useMemo)(() => MENU_OPTIONS.filter((option) => visibleOptions.includes(option.key)), [visibleOptions]);
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.connectMCPButton = exports.aiAssistantButton = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
+ /* eslint-disable theme/no-raw-colors-in-styles */
5
6
  exports.aiAssistantButton = (0, styled_components_1.css) `
6
7
  /**
7
8
  * @tokens AI Assistant Button
@@ -48,6 +49,7 @@ exports.aiAssistantButton = (0, styled_components_1.css) `
48
49
  /* Transition */
49
50
  --ai-assistant-button-transition: box-shadow 0.3s ease, transform 0.2s ease;
50
51
  `;
52
+ /* eslint-enable theme/no-raw-colors-in-styles */
51
53
  exports.connectMCPButton = (0, styled_components_1.css) `
52
54
  /**
53
55
  * @tokens Connect MCP Button
@@ -16,7 +16,8 @@ const CatalogEntityIcon_1 = require("../../../components/Catalog/CatalogEntityIc
16
16
  const utils_1 = require("../../../core/utils");
17
17
  function CatalogCard({ entity, catalogConfig }) {
18
18
  var _a, _b, _c;
19
- const { useTelemetry } = (0, hooks_1.useThemeHooks)();
19
+ const { useTelemetry, useTranslate } = (0, hooks_1.useThemeHooks)();
20
+ const { translate } = useTranslate();
20
21
  const telemetry = useTelemetry();
21
22
  const pathPrefix = (0, utils_1.getPathPrefix)();
22
23
  return (react_1.default.createElement(CatalogCardWrapper, { "data-component-name": "Catalog/CatalogCardView/CatalogCard", onClick: () => {
@@ -34,7 +35,7 @@ function CatalogCard({ entity, catalogConfig }) {
34
35
  react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, (_a = entity.summary) !== null && _a !== void 0 ? _a : '')),
35
36
  react_1.default.createElement(CardMetadataSection, null,
36
37
  react_1.default.createElement(MetadataRow, null,
37
- react_1.default.createElement(MetadataLabel, null, "Domains:"),
38
+ react_1.default.createElement(MetadataLabel, null, translate('catalog.metadata.domains', 'Domains:')),
38
39
  react_1.default.createElement(CatalogTagsWithTooltip_1.CatalogTagsWithTooltip, { items: ((_b = entity.domains) === null || _b === void 0 ? void 0 : _b.map((domain) => domain.title)) || [], tagProps: {
39
40
  style: {
40
41
  fontSize: 'var(--catalog-card-font-size)',
@@ -44,7 +45,7 @@ function CatalogCard({ entity, catalogConfig }) {
44
45
  textTransform: 'none',
45
46
  } })),
46
47
  react_1.default.createElement(MetadataRow, null,
47
- react_1.default.createElement(MetadataLabel, null, "Owners:"),
48
+ react_1.default.createElement(MetadataLabel, null, translate('catalog.metadata.owners', 'Owners:')),
48
49
  react_1.default.createElement(CatalogTagsWithTooltip_1.CatalogTagsWithTooltip, { items: ((_c = entity.owners) === null || _c === void 0 ? void 0 : _c.map((owner) => owner.key)) || [], tagProps: {
49
50
  style: {
50
51
  fontSize: 'var(--catalog-card-font-size)',
@@ -26,7 +26,11 @@ const renderFirstColumnEntitySection = (entity) => {
26
26
  return react_1.default.createElement(CatalogEntityMetadata_1.CatalogEntityMetadata, { entity: entity });
27
27
  }
28
28
  };
29
- const renderDataSchemaSection = (entity, relatedEntity, RedocSchema, StoreProvider, GraphqlTypeRenderer) => {
29
+ const renderDataSchemaSection = (entity, relatedEntity,
30
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
31
+ RedocSchema,
32
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
33
+ StoreProvider, GraphqlTypeRenderer) => {
30
34
  if (entity.type !== 'data-schema') {
31
35
  return null;
32
36
  }
@@ -41,7 +41,7 @@ const react_1 = __importStar(require("react"));
41
41
  const react_2 = require("@xyflow/react");
42
42
  const styled_components_1 = __importDefault(require("styled-components"));
43
43
  const hooks_1 = require("../../../../core/hooks");
44
- const useGraph_1 = require("../../../../core/hooks/catalog/useGraph");
44
+ const hooks_2 = require("../../../../core/hooks");
45
45
  const CatalogEntityRelationsNode_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode");
46
46
  const CatalogEntityRelationsEdge_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge");
47
47
  const styles_1 = require("../../../../core/styles");
@@ -64,7 +64,7 @@ function CatalogEntityRelationsGraph({ entity, }) {
64
64
  const { items: allRelations } = useFetchCatalogEntitiesRelations({
65
65
  entityKey: entity.key,
66
66
  });
67
- const { nodes, edges, onNodesChange, onEdgesChange, onConnect } = (0, useGraph_1.useGraph)({
67
+ const { nodes, edges, onNodesChange, onEdgesChange, onConnect } = (0, hooks_2.useGraph)({
68
68
  entity,
69
69
  relations: allRelations !== null && allRelations !== void 0 ? allRelations : [],
70
70
  });
@@ -10,13 +10,16 @@ const LaunchIcon_1 = require("../../../icons/LaunchIcon/LaunchIcon");
10
10
  const LinkIcon_1 = require("../../../icons/LinkIcon/LinkIcon");
11
11
  const CatalogEntityInfoBar_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntityInfoBar");
12
12
  const Link_1 = require("../../../components/Link/Link");
13
+ const hooks_1 = require("../../../core/hooks");
13
14
  function CatalogEntityLinks({ entity }) {
15
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
16
+ const { translate } = useTranslate();
14
17
  const links = Object.entries(entity.links || []);
15
18
  if (!links.length) {
16
19
  return null;
17
20
  }
18
21
  return (react_1.default.createElement(LinksWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityLinks" },
19
- react_1.default.createElement(Heading, null, "Links"),
22
+ react_1.default.createElement(Heading, null, translate('catalog.links.label', 'Links')),
20
23
  links.map(([key, value]) => (react_1.default.createElement(Link_1.Link, { key: key, color: "var(--catalog-metadata-link-color)", to: value.url, target: "_blank" },
21
24
  react_1.default.createElement(CatalogEntityInfoBar_1.CatalogEntityInfoBar, { leftContent: react_1.default.createElement(Label, null,
22
25
  react_1.default.createElement(LinkIcon_1.LinkIcon, null),
@@ -56,6 +56,7 @@ const utils_1 = require("../../../core/utils");
56
56
  const hooks_1 = require("../../../core/hooks");
57
57
  const CatalogEntityInfoBar_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntityInfoBar");
58
58
  const MAX_INITIAL_ITEMS = 4;
59
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
59
60
  function renderMetadataValue(value) {
60
61
  if ((0, utils_1.isPlainObject)(value)) {
61
62
  return react_1.default.createElement(JsonViewerWrapper, { data: value, expandLevel: 3, controls: false });
@@ -8,15 +8,18 @@ const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const CatalogEntityInfoBar_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntityInfoBar");
10
10
  const HttpTag_1 = require("../../../components/Tags/HttpTag");
11
+ const hooks_1 = require("../../../core/hooks");
11
12
  function CatalogEntityMethodAndPath({ entity }) {
12
13
  var _a, _b;
14
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
13
16
  const method = (_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.method;
14
17
  const path = (_b = entity.metadata) === null || _b === void 0 ? void 0 : _b.path;
15
18
  if (!method || !path) {
16
19
  return null;
17
20
  }
18
21
  return (react_1.default.createElement(LinksWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityMethodAndPath" },
19
- react_1.default.createElement(Heading, null, "Method & Path"),
22
+ react_1.default.createElement(Heading, null, translate('catalog.methodAndPath.label', 'Method & Path')),
20
23
  react_1.default.createElement(CatalogEntityInfoBar_1.CatalogEntityInfoBar, { leftContent: react_1.default.createElement(Label, null,
21
24
  react_1.default.createElement(MethodTag, { color: method.toLowerCase() }, method),
22
25
  react_1.default.createElement(PathLabel, null, path)), withSeparator: false })));
@@ -8,13 +8,16 @@ const react_1 = __importDefault(require("react"));
8
8
  const SlackIcon_1 = require("../../../../icons/SlackIcon/SlackIcon");
9
9
  const Tag_1 = require("../../../../components/Tag/Tag");
10
10
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function ContactProperty({ entity }) {
12
13
  var _a, _b;
14
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
13
16
  const channels = (_b = (_a = entity.contact) === null || _a === void 0 ? void 0 : _a.slack) === null || _b === void 0 ? void 0 : _b.channels;
14
17
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty" },
15
18
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
16
19
  react_1.default.createElement(SlackIcon_1.SlackIcon, null),
17
- "Slack channels"), content: react_1.default.createElement(react_1.default.Fragment, null, channels === null || channels === void 0 ? void 0 : channels.map((channel) => (react_1.default.createElement(Tag_1.Tag, { key: channel.name, textTransform: "none", style: { backgroundColor: 'var(--bg-color)', cursor: 'pointer' }, onClick: () => {
20
+ translate('catalog.contact.label', 'Slack channels')), content: react_1.default.createElement(react_1.default.Fragment, null, channels === null || channels === void 0 ? void 0 : channels.map((channel) => (react_1.default.createElement(Tag_1.Tag, { key: channel.name, textTransform: "none", style: { backgroundColor: 'var(--bg-color)', cursor: 'pointer' }, onClick: () => {
18
21
  if (channel.url) {
19
22
  window.open(channel.url, '_blank');
20
23
  }
@@ -8,12 +8,15 @@ const react_1 = __importDefault(require("react"));
8
8
  const GraphIcon_1 = require("../../../../icons/GraphIcon/GraphIcon");
9
9
  const Tag_1 = require("../../../../components/Tag/Tag");
10
10
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function DomainsProperty({ entity }) {
13
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
+ const { translate } = useTranslate();
12
15
  const { domains = [] } = entity;
13
16
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty" },
14
17
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
15
18
  react_1.default.createElement(GraphIcon_1.GraphIcon, null),
16
- "Domains"), content: react_1.default.createElement(react_1.default.Fragment, null, domains === null || domains === void 0 ? void 0 : domains.map((domain) => (react_1.default.createElement(Tag_1.Tag, { key: domain === null || domain === void 0 ? void 0 : domain.id, style: { backgroundColor: 'var(--bg-color)' } },
19
+ translate('catalog.domains.label', 'Domains')), content: react_1.default.createElement(react_1.default.Fragment, null, domains === null || domains === void 0 ? void 0 : domains.map((domain) => (react_1.default.createElement(Tag_1.Tag, { key: domain === null || domain === void 0 ? void 0 : domain.id, style: { backgroundColor: 'var(--bg-color)' } },
17
20
  react_1.default.createElement(GraphIcon_1.GraphIcon, null), domain === null || domain === void 0 ? void 0 :
18
21
  domain.title)))) })));
19
22
  }
@@ -9,16 +9,19 @@ const EntityTypeIcon_1 = require("../../../../icons/EntityTypeIcon/EntityTypeIco
9
9
  const utils_1 = require("../../../../core/utils");
10
10
  const CatalogEntityTypeIcon_1 = require("../../../../components/Catalog/CatalogEntityTypeIcon");
11
11
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
12
+ const hooks_1 = require("../../../../core/hooks");
12
13
  const formatEntityType = (entityType) => {
13
14
  return (0, utils_1.capitalize)(entityType.startsWith('api-')
14
15
  ? entityType.replace('api-', 'API-').replace(/-/g, ' ')
15
16
  : entityType.replace(/-/g, ' '));
16
17
  };
17
18
  function EntityTypeProperty({ entity }) {
19
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
20
+ const { translate } = useTranslate();
18
21
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty" },
19
22
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
20
23
  react_1.default.createElement(EntityTypeIcon_1.EntityTypeIcon, null),
21
- "Entity type"), content: react_1.default.createElement(react_1.default.Fragment, null,
24
+ translate('catalog.entityType.label', 'Entity type')), content: react_1.default.createElement(react_1.default.Fragment, null,
22
25
  react_1.default.createElement(CatalogEntityTypeIcon_1.CatalogEntityTypeIcon, { entityType: entity.type }),
23
26
  formatEntityType(entity.type)), hoverEffect: false })));
24
27
  }
@@ -8,12 +8,15 @@ const react_1 = __importDefault(require("react"));
8
8
  const NotesIcon_1 = require("../../../../icons/NotesIcon/NotesIcon");
9
9
  const Tag_1 = require("../../../../components/Tag/Tag");
10
10
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function FormatProperty({ entity }) {
12
13
  var _a, _b;
14
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
13
16
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty" },
14
17
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
15
18
  react_1.default.createElement(NotesIcon_1.NotesIcon, null),
16
- "Format"), content: react_1.default.createElement(react_1.default.Fragment, null,
19
+ translate('catalog.format.label', 'Format')), content: react_1.default.createElement(react_1.default.Fragment, null,
17
20
  react_1.default.createElement(Tag_1.Tag, { textTransform: "none", key: (_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.specType, style: { backgroundColor: 'var(--bg-color)' } }, (_b = entity.metadata) === null || _b === void 0 ? void 0 : _b.specType)), hoverEffect: false })));
18
21
  }
19
22
  //# sourceMappingURL=FormatProperty.js.map
@@ -9,12 +9,15 @@ const GithubIcon_1 = require("../../../../icons/GithubIcon/GithubIcon");
9
9
  const utils_1 = require("../../../../core/utils");
10
10
  const Tag_1 = require("../../../../components/Tag/Tag");
11
11
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
12
+ const hooks_1 = require("../../../../core/hooks");
12
13
  function GitProperty({ entity }) {
14
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
13
16
  const git = entity.git;
14
17
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/GitProperty" },
15
18
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
16
19
  react_1.default.createElement(GithubIcon_1.GithubIcon, null),
17
- "Repositories"), content: react_1.default.createElement(react_1.default.Fragment, null, git === null || git === void 0 ? void 0 : git.map((repo) => {
20
+ translate('catalog.repositories.label', 'Repositories')), content: react_1.default.createElement(react_1.default.Fragment, null, git === null || git === void 0 ? void 0 : git.map((repo) => {
18
21
  const url = new URL(repo);
19
22
  const repoName = (0, utils_1.removeLeadingSlash)(url.pathname);
20
23
  return (react_1.default.createElement(Tag_1.Tag, { key: repo, textTransform: "none", style: { backgroundColor: 'var(--bg-color)' } }, repoName));
@@ -8,12 +8,15 @@ const react_1 = __importDefault(require("react"));
8
8
  const PeopleIcon_1 = require("../../../../icons/PeopleIcon/PeopleIcon");
9
9
  const Tag_1 = require("../../../../components/Tag/Tag");
10
10
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function OwnersProperty({ entity }) {
13
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
+ const { translate } = useTranslate();
12
15
  const { owners = [] } = entity;
13
16
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty" },
14
17
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
15
18
  react_1.default.createElement(PeopleIcon_1.PeopleIcon, null),
16
- "Owners"), content: react_1.default.createElement(react_1.default.Fragment, null, owners.map((owner) => (react_1.default.createElement(Tag_1.Tag, { key: owner === null || owner === void 0 ? void 0 : owner.id, style: {
19
+ translate('catalog.owners.label', 'Owners')), content: react_1.default.createElement(react_1.default.Fragment, null, owners.map((owner) => (react_1.default.createElement(Tag_1.Tag, { key: owner === null || owner === void 0 ? void 0 : owner.id, style: {
17
20
  backgroundColor: 'var(--bg-color)',
18
21
  borderRadius: 'var(--border-radius-xl)',
19
22
  } }, owner === null || owner === void 0 ? void 0 : owner.title)))) })));
@@ -8,11 +8,14 @@ const react_1 = __importDefault(require("react"));
8
8
  const TagsIcon_1 = require("../../../../icons/TagsIcon/TagsIcon");
9
9
  const theme_1 = require("../../../../index.js");
10
10
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function TagsProperty({ entity }) {
13
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
14
+ const { translate } = useTranslate();
12
15
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty" },
13
16
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
14
17
  react_1.default.createElement(TagsIcon_1.TagsIcon, null),
15
- "Tags"), content: react_1.default.createElement(theme_1.CatalogTagsWithTooltip, { itemsToShow: 8, items: entity.tags || [], tagProps: {
18
+ translate('catalog.tags.label', 'Tags')), content: react_1.default.createElement(theme_1.CatalogTagsWithTooltip, { itemsToShow: 8, items: entity.tags || [], tagProps: {
16
19
  style: {
17
20
  fontSize: 'var(--font-size-base)',
18
21
  borderRadius: 'var(--border-radius)',
@@ -8,13 +8,16 @@ const react_1 = __importDefault(require("react"));
8
8
  const EmailIcon_1 = require("../../../../icons/EmailIcon/EmailIcon");
9
9
  const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
10
10
  const CatalogUserEntityCell_1 = require("../../../../components/Catalog/CatalogTableView/CatalogUserEntityCell");
11
+ const hooks_1 = require("../../../../core/hooks");
11
12
  function UserEmailProperty({ entity }) {
12
13
  var _a;
14
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
13
16
  const email = (_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.email;
14
17
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty" },
15
18
  react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
16
19
  react_1.default.createElement(EmailIcon_1.EmailIcon, null),
17
- "Email"), content: react_1.default.createElement(CatalogUserEntityCell_1.Email, null, email), onClick: () => {
20
+ translate('catalog.email.label', 'Email')), content: react_1.default.createElement(CatalogUserEntityCell_1.Email, null, email), onClick: () => {
18
21
  window.open(`mailto:${email}`, '_blank');
19
22
  } })));
20
23
  }
@@ -41,14 +41,14 @@ const react_1 = __importDefault(require("react"));
41
41
  const styled_components_1 = __importDefault(require("styled-components"));
42
42
  const Sampler = __importStar(require("openapi-sampler"));
43
43
  const hooks_1 = require("../../../core/hooks");
44
- const useCatalogEntitySchema_1 = require("../../../core/hooks/catalog/useCatalogEntitySchema");
44
+ const hooks_2 = require("../../../core/hooks");
45
45
  const JsonViewer_1 = require("../../../components/JsonViewer/JsonViewer");
46
46
  const CopyButton_1 = require("../../../components/Buttons/CopyButton");
47
47
  function CatalogEntitySchema({ entity, relatedEntity, RedocSchema, StoreProvider, GraphqlTypeRenderer, }) {
48
48
  var _a, _b;
49
49
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
50
50
  const { translate } = useTranslate();
51
- const { definition, parsedSchema, rawSchema } = (0, useCatalogEntitySchema_1.useCatalogEntitySchema)({ entity, relatedEntity });
51
+ const { definition, parsedSchema, rawSchema } = (0, hooks_2.useCatalogEntitySchema)({ entity, relatedEntity });
52
52
  const isGraphql = ((_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.specType) === 'graphql';
53
53
  const graphqlSDL = (_b = entity === null || entity === void 0 ? void 0 : entity.metadata) === null || _b === void 0 ? void 0 : _b.sdl;
54
54
  return (react_1.default.createElement(MetadataWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityMetadata" },
@@ -61,14 +61,14 @@ function CatalogFilterDateRange({ filter, className, }) {
61
61
  react_1.default.createElement(FilterOptions_1.FilterOptions, null,
62
62
  react_1.default.createElement(DateRangeWrapper, null,
63
63
  react_1.default.createElement(DateRangeRow, null,
64
- react_1.default.createElement("span", null, "From:"),
64
+ react_1.default.createElement("span", null, translate('filter.dateRange.from', 'From:')),
65
65
  react_1.default.createElement(DatePicker_1.DatePicker, { closeCalendar: true, format: "y-MM-dd", dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", value: from, maxDate: new Date(), onChange: (from) => {
66
66
  if (Array.isArray(from))
67
67
  return;
68
68
  filter.selectOption(Object.assign(Object.assign({}, filter.selectedOptions), { from: (0, utils_1.formatDateWithoutTimeZone)(from), to: (0, utils_1.formatDateWithoutTimeZone)(to) }));
69
69
  } })),
70
70
  react_1.default.createElement(DateRangeRow, null,
71
- react_1.default.createElement("span", null, "To:"),
71
+ react_1.default.createElement("span", null, translate('filter.dateRange.to', 'To:')),
72
72
  react_1.default.createElement(DatePicker_1.DatePicker, { closeCalendar: true, dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", format: "y-MM-dd", minDate: from, value: to, onChange: (to) => {
73
73
  if (Array.isArray(to))
74
74
  return;
@@ -24,7 +24,7 @@ function CatalogSelector({ catalogSwitcherItems, setSearchQuery, setSortOption,
24
24
  }));
25
25
  const selectedCatalogItem = catalogSwitcherItems.find((item) => item.selected);
26
26
  return (react_1.default.createElement(exports.CatalogSelectWrapper, { "data-component-name": "Catalog/CatalogSelector" },
27
- react_1.default.createElement(exports.CatalogSelectLabel, null, "Catalogs"),
27
+ react_1.default.createElement(exports.CatalogSelectLabel, null, translate('catalog.catalogs.label', 'Catalogs')),
28
28
  react_1.default.createElement(exports.CatalogSelect, { value: selectedCatalogItem === null || selectedCatalogItem === void 0 ? void 0 : selectedCatalogItem.slug, options: options, onChange: (value) => {
29
29
  navigate(`${pathPrefix}/catalogs/${value}`);
30
30
  setSearchQuery('');
@@ -44,7 +44,10 @@ const DescSortIcon_1 = require("../../icons/DescSortIcon/DescSortIcon");
44
44
  const Dropdown_1 = require("../../components/Dropdown/Dropdown");
45
45
  const DropdownMenu_1 = require("../../components/Dropdown/DropdownMenu");
46
46
  const DropdownMenuItem_1 = require("../../components/Dropdown/DropdownMenuItem");
47
+ const hooks_1 = require("../../core/hooks");
47
48
  function CatalogSortButton({ onSortChange, currentSort, }) {
49
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
50
+ const { translate } = useTranslate();
48
51
  const toggleSort = (0, react_1.useCallback)((field) => {
49
52
  const newSort = currentSort === `-${field}` ? field : `-${field}`;
50
53
  onSortChange(newSort);
@@ -52,7 +55,7 @@ function CatalogSortButton({ onSortChange, currentSort, }) {
52
55
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogSortButton" },
53
56
  react_1.default.createElement(Dropdown_1.Dropdown, { trigger: react_1.default.createElement(SortTrigger, null,
54
57
  react_1.default.createElement(SortIconWrapper, null, currentSort === '-title' ? react_1.default.createElement(DescSortIcon_1.DescSortIcon, null) : react_1.default.createElement(AscSortIcon_1.AscSortIcon, null)),
55
- react_1.default.createElement(SortText, null, "Sort")), alignment: "end" },
58
+ react_1.default.createElement(SortText, null, translate('catalog.sort', 'Sort'))), alignment: "end" },
56
59
  react_1.default.createElement(DropdownMenu_1.DropdownMenu, null,
57
60
  react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { onAction: () => toggleSort('title') }, currentSort === '-title' ? 'Title | A → Z' : 'Title | Z → A')))));
58
61
  }
@@ -41,9 +41,9 @@ const react_1 = __importDefault(require("react"));
41
41
  const styled_components_1 = __importStar(require("styled-components"));
42
42
  const CaretDownIcon_1 = require("../../../icons/CaretDownIcon/CaretDownIcon");
43
43
  const CaretUpIcon_1 = require("../../../icons/CaretUpIcon/CaretUpIcon");
44
- const useCatalogTableHeaderCellActions_1 = require("../../../core/hooks/catalog/useCatalogTableHeaderCellActions");
44
+ const hooks_1 = require("../../../core/hooks");
45
45
  const CatalogTableHeaderCell = ({ column, handleSortClick, isColumnSorted, setSortOption, }) => {
46
- const { handleCellClick, sortKey, isUpActive, isDownActive } = (0, useCatalogTableHeaderCellActions_1.useCatalogTableHeaderCellActions)({
46
+ const { handleCellClick, sortKey, isUpActive, isDownActive } = (0, hooks_1.useCatalogTableHeaderCellActions)({
47
47
  column,
48
48
  handleSortClick,
49
49
  isColumnSorted,
@@ -10,7 +10,7 @@ const CatalogOwnersCell_1 = require("../../../components/Catalog/CatalogTableVie
10
10
  const CatalogDomainsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogDomainsCell");
11
11
  const CatalogEntityCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogEntityCell");
12
12
  const CatalogTagsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogTagsCell");
13
- const useCatalogTableViewRow_1 = require("../../../core/hooks/catalog/useCatalogTableViewRow");
13
+ const hooks_1 = require("../../../core/hooks");
14
14
  const CatalogEntityTypeTag_1 = require("../../../components/Catalog/CatalogEntityTypeTag");
15
15
  const Link_1 = require("../../Link/Link");
16
16
  const baseColumns = [
@@ -61,7 +61,7 @@ const baseColumns = [
61
61
  },
62
62
  ];
63
63
  const CatalogTableViewRow = ({ entity, entitiesCatalogConfig, catalogConfig, columns = baseColumns, }) => {
64
- const { getEntityDetailsLink } = (0, useCatalogTableViewRow_1.useCatalogTableViewRow)({
64
+ const { getEntityDetailsLink } = (0, hooks_1.useCatalogTableViewRow)({
65
65
  entityKey: entity.key,
66
66
  entityType: entity.type,
67
67
  catalogConfig,
@@ -10,7 +10,10 @@ const constants_1 = require("../../core/constants");
10
10
  const Tag_1 = require("../../components/Tag/Tag");
11
11
  const Tooltip_1 = require("../../components/Tooltip/Tooltip");
12
12
  const CatalogHighlight_1 = require("../../components/Catalog/CatalogHighlight");
13
+ const hooks_1 = require("../../core/hooks");
13
14
  function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true, tagProps, }) {
15
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
16
+ const { translate } = useTranslate();
14
17
  if (!items || items.length === 0) {
15
18
  if (showPlaceholder) {
16
19
  return (react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" },
@@ -31,7 +34,8 @@ function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true
31
34
  react_1.default.createElement(MoreTagsButton, null,
32
35
  "+",
33
36
  remainingCount,
34
- " more"))));
37
+ " ",
38
+ translate('catalog.tags.more', 'more')))));
35
39
  }
36
40
  const CatalogTagsWrapper = styled_components_1.default.div `
37
41
  display: flex;
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.catalogDarkMode = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  exports.catalogDarkMode = (0, styled_components_1.css) `
6
- --catalog-avatar-bg-color: #3b3c45;
6
+ --catalog-avatar-bg-color: var(--color-warm-grey-4);
7
7
  `;
8
8
  //# sourceMappingURL=variables.dark.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.catalog = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
+ /* eslint-disable theme/no-raw-colors-in-styles */
5
6
  exports.catalog = (0, styled_components_1.css) `
6
7
  /* === Catalog === */
7
8
  /**
@@ -286,7 +287,7 @@ exports.catalog = (0, styled_components_1.css) `
286
287
  --catalog-page-badge-line-height: var(--line-height-base);
287
288
 
288
289
  --catalog-page-badge-dot-size: 6px;
289
- --catalog-page-badge-dot-border-color: #ffffff;
290
+ --catalog-page-badge-dot-border-color: var(--color-static-white);
290
291
 
291
292
  /**
292
293
  * @tokens Catalog table
@@ -407,8 +408,8 @@ exports.catalog = (0, styled_components_1.css) `
407
408
  --catalog-entity-relations-node-font-weight-root: 600;
408
409
 
409
410
  --catalog-entity-relations-node-root-bg-color: var(--color-blue-6);
410
- --catalog-entity-relations-node-root-text-color: #ffffff;
411
- --catalog-entity-relations-node-root-icon-color: #ffffff;
411
+ --catalog-entity-relations-node-root-text-color: var(--color-static-white);
412
+ --catalog-entity-relations-node-root-icon-color: var(--color-static-white);
412
413
  // @tokens End
413
414
 
414
415
  /**
@@ -429,4 +430,5 @@ exports.catalog = (0, styled_components_1.css) `
429
430
  --catalog-entity-relations-edge-label-line-height: 1.2;
430
431
  // @tokens End
431
432
  `;
433
+ /* eslint-enable theme/no-raw-colors-in-styles */
432
434
  //# sourceMappingURL=variables.js.map
@@ -102,7 +102,7 @@ exports.catalogClassic = (0, styled_components_1.css) `
102
102
  --catalog-classic-page-badge-line-height: var(--line-height-base);
103
103
 
104
104
  --catalog-classic-page-badge-dot-size: 6px;
105
- --catalog-classic-page-badge-dot-border-color: #ffffff;
105
+ --catalog-classic-page-badge-dot-border-color: var(--color-static-white);
106
106
 
107
107
  // @tokens End
108
108
  `;
@@ -92,7 +92,9 @@ function CodeBlock(_a) {
92
92
  ? {
93
93
  __html: highlightedCode,
94
94
  }
95
- : undefined, suppressHydrationWarning // TODO: investigate issue
95
+ : undefined,
96
+ /* eslint-disable-next-line no-warning-comments */
97
+ suppressHydrationWarning // TODO: investigate issue
96
98
  : true, "data-testid": dataTestId, hideCodeColors: hideCodeColors, maxHeight: codeBlockMaxHeight, wrapContents: wrapContents, tabIndex: 0 }, children),
97
99
  reportDialog.visible && (react_1.default.createElement(ReportDialog_1.ReportDialog, Object.assign({}, reportDialog.props, { location: sourceCode, lang: lang }))))));
98
100
  }
@@ -40,7 +40,7 @@ const hooks_1 = require("../../core/hooks");
40
40
  const Button_1 = require("../../components/Button/Button");
41
41
  const ChevronLeftIcon_1 = require("../../icons/ChevronLeftIcon/ChevronLeftIcon");
42
42
  const ChevronRightIcon_1 = require("../../icons/ChevronRightIcon/ChevronRightIcon");
43
- const get_file_icon_1 = require("../../core/utils/get-file-icon");
43
+ const utils_1 = require("../../core/utils");
44
44
  function CodeBlockTabs({ tabs }) {
45
45
  const containerRef = (0, react_1.useRef)(null);
46
46
  const tabRefs = (0, react_1.useRef)([]);
@@ -62,9 +62,9 @@ function CodeBlockTabs({ tabs }) {
62
62
  const { name, lang, id } = item;
63
63
  const ext = (_a = name.match(/\.([^.]+)$/)) === null || _a === void 0 ? void 0 : _a[1];
64
64
  const fileIcon = lang
65
- ? (0, get_file_icon_1.getFileIconByLanguage)(lang)
65
+ ? (0, utils_1.getFileIconByLanguage)(lang)
66
66
  : ext
67
- ? (0, get_file_icon_1.getFileIconByExt)(ext)
67
+ ? (0, utils_1.getFileIconByExt)(ext)
68
68
  : null;
69
69
  return (react_1.default.createElement(Tab, { ref: (el) => {
70
70
  tabRefs.current[i] = el;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.datePicker = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
+ /* eslint-disable theme/no-raw-colors-in-styles */
5
6
  exports.datePicker = (0, styled_components_1.css) `
6
7
  --date-picker-nav-color: #000000;
7
8
  --date-picker-tile-bg-color: var(--color-blue-2);
@@ -21,4 +22,5 @@ exports.datePicker = (0, styled_components_1.css) `
21
22
  --date-picker-wrapper-radius: var(--border-radius-md);
22
23
  --date-picker-wrapper-padding: calc(var(--spacing-xxs) / 2) var(--spacing-xs);
23
24
  `;
25
+ /* eslint-enable theme/no-raw-colors-in-styles */
24
26
  //# sourceMappingURL=variables.js.map
@@ -177,8 +177,8 @@ function Mood({ settings, onSubmit, className }) {
177
177
  }
178
178
  } }))),
179
179
  displaySubmitBnt && (React.createElement(ButtonsContainer, null,
180
- React.createElement(Button_1.Button, { onClick: onCancelMoodForm, variant: "text", size: "small" }, "Cancel"),
181
- React.createElement(Button_1.Button, { type: "submit", variant: "secondary", size: "small" }, "Submit"))))));
180
+ React.createElement(Button_1.Button, { onClick: onCancelMoodForm, variant: "text", size: "small" }, translate('feedback.cancel', 'Cancel')),
181
+ React.createElement(Button_1.Button, { type: "submit", variant: "secondary", size: "small" }, translate('feedback.submit', 'Submit')))))));
182
182
  }
183
183
  const remapScore = (score) => {
184
184
  switch (score) {
@@ -122,8 +122,8 @@ function Rating({ settings, onSubmit, className }) {
122
122
  }
123
123
  } }))),
124
124
  displaySubmitBnt && (React.createElement(ButtonsContainer, null,
125
- React.createElement(Button_1.Button, { onClick: onCancelRatingForm, variant: "text", size: "small" }, "Cancel"),
126
- React.createElement(Button_1.Button, { onClick: onSubmitRatingForm, variant: "secondary", size: "small" }, "Submit"))))));
125
+ React.createElement(Button_1.Button, { onClick: onCancelRatingForm, variant: "text", size: "small" }, translate('feedback.cancel', 'Cancel')),
126
+ React.createElement(Button_1.Button, { onClick: onSubmitRatingForm, variant: "secondary", size: "small" }, translate('feedback.submit', 'Submit')))))));
127
127
  }
128
128
  const StyledForm = styled_components_1.default.form `
129
129
  width: 100%;
@@ -21,14 +21,14 @@ function FilterDateRange({ filter }) {
21
21
  react_1.default.createElement(FilterOptions_1.FilterOptions, null,
22
22
  react_1.default.createElement(DateRangeWrapper, null,
23
23
  react_1.default.createElement(DateRangeRow, null,
24
- react_1.default.createElement("span", null, "From:"),
24
+ react_1.default.createElement("span", null, translate('filter.dateRange.from', 'From:')),
25
25
  react_1.default.createElement(DatePicker_1.DatePicker, { closeCalendar: true, format: "y-MM-dd", dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", value: from, maxDate: new Date(), onChange: (from) => {
26
26
  if (Array.isArray(from))
27
27
  return;
28
28
  filter.selectOption(Object.assign(Object.assign({}, filter.selectedOptions), { from: (0, utils_1.formatDateWithoutTimeZone)(from), to: (0, utils_1.formatDateWithoutTimeZone)(to) }));
29
29
  } })),
30
30
  react_1.default.createElement(DateRangeRow, null,
31
- react_1.default.createElement("span", null, "To:"),
31
+ react_1.default.createElement("span", null, translate('filter.dateRange.to', 'To:')),
32
32
  react_1.default.createElement(DatePicker_1.DatePicker, { closeCalendar: true, dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", format: "y-MM-dd", minDate: from, value: to, onChange: (to) => {
33
33
  if (Array.isArray(to))
34
34
  return;
@@ -35,7 +35,11 @@ function FilterSelect({ filter, filterValuesCasing, showCounter = true, }) {
35
35
  ];
36
36
  return (react_1.default.createElement(FilterSelectWrapper, { "data-component-name": "Filter/FilterSelect" },
37
37
  react_1.default.createElement(FilterTitle_1.FilterTitle, { "data-translation-key": filter.titleTranslationKey }, translate(filter.titleTranslationKey, filter.title)),
38
- react_1.default.createElement(StyledSelect, { value: ((_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value) || '', onChange: (value) => filter.selectOption(value), options: selectOptions })));
38
+ react_1.default.createElement(StyledSelect
39
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
40
+ , {
41
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
42
+ value: ((_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value) || '', onChange: (value) => filter.selectOption(value), options: selectOptions })));
39
43
  }
40
44
  const FilterSelectWrapper = styled_components_1.default.div `
41
45
  display: flex;
@@ -137,4 +137,4 @@ const ExpandButton = (0, styled_components_1.default)(Button_1.Button) `
137
137
  margin-left: 0;
138
138
  }
139
139
  `;
140
- //# sourceMappingURL=helpers.js.map
140
+ //# sourceMappingURL=Helpers.js.map