@redocly/theme 0.56.0-next.2 → 0.56.0-next.3

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 (175) hide show
  1. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +1 -0
  2. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +9 -0
  3. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -6
  4. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +0 -1
  5. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +2 -1
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +11 -5
  7. package/lib/components/Catalog/CatalogEntityIcon.js +6 -0
  8. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -4
  9. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.d.ts +3 -0
  10. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.js +11 -0
  11. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +4 -0
  12. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +4 -0
  13. package/lib/components/Catalog/CatalogTagsWithTooltip.js +2 -3
  14. package/lib/components/Catalog/variables.js +2 -2
  15. package/lib/components/Tags/CounterTag.d.ts +1 -1
  16. package/lib/components/Tags/HttpTag.d.ts +1 -1
  17. package/lib/core/constants/catalog.d.ts +3 -0
  18. package/lib/core/constants/catalog.js +55 -1
  19. package/lib/core/constants/index.d.ts +5 -5
  20. package/lib/core/constants/index.js +5 -5
  21. package/lib/core/constants/search.d.ts +1 -1
  22. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.d.ts +1 -1
  23. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.d.ts +1 -1
  24. package/lib/core/contexts/ThemeDataContext.d.ts +1 -1
  25. package/lib/core/contexts/index.d.ts +3 -3
  26. package/lib/core/contexts/index.js +3 -3
  27. package/lib/core/hoc/index.d.ts +1 -1
  28. package/lib/core/hoc/index.js +1 -1
  29. package/lib/core/hooks/__mocks__/index.d.ts +28 -28
  30. package/lib/core/hooks/__mocks__/index.js +28 -28
  31. package/lib/core/hooks/catalog/useCatalogEntities.d.ts +1 -1
  32. package/lib/core/hooks/catalog/useCatalogTableViewRow.js +2 -2
  33. package/lib/core/hooks/code-walkthrough/use-code-panel.js +6 -5
  34. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.js +8 -5
  35. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +1 -1
  36. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.js +9 -9
  37. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +2 -2
  38. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.js +4 -3
  39. package/lib/core/hooks/code-walkthrough/use-renderable-files.js +6 -4
  40. package/lib/core/hooks/feedback/use-report-dialog.js +4 -3
  41. package/lib/core/hooks/index.d.ts +42 -42
  42. package/lib/core/hooks/index.js +42 -42
  43. package/lib/core/hooks/menu/use-menu-item-expanded.d.ts +1 -1
  44. package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +1 -1
  45. package/lib/core/hooks/menu/use-mobile-menu-items.js +13 -12
  46. package/lib/core/hooks/menu/use-mobile-menu-levels.d.ts +1 -1
  47. package/lib/core/hooks/menu/use-mobile-menu-levels.js +8 -7
  48. package/lib/core/hooks/menu/use-nested-menu.d.ts +1 -1
  49. package/lib/core/hooks/menu/use-nested-menu.js +8 -6
  50. package/lib/core/hooks/search/use-recent-searches.js +3 -3
  51. package/lib/core/hooks/search/use-search-dialog.js +4 -3
  52. package/lib/core/hooks/search/use-search-filter.d.ts +1 -1
  53. package/lib/core/hooks/search/use-suggested-pages.js +2 -2
  54. package/lib/core/hooks/use-active-page-version.js +2 -2
  55. package/lib/core/hooks/use-active-section-id.js +2 -2
  56. package/lib/core/hooks/use-color-switcher.js +4 -3
  57. package/lib/core/hooks/use-input-key-commands.js +2 -2
  58. package/lib/core/hooks/use-language-picker.d.ts +1 -1
  59. package/lib/core/hooks/use-language-picker.js +4 -4
  60. package/lib/core/hooks/use-mobile-menu.js +2 -2
  61. package/lib/core/hooks/use-navbar-height.js +3 -3
  62. package/lib/core/hooks/use-page-versions.js +2 -2
  63. package/lib/core/hooks/use-product-picker.js +2 -2
  64. package/lib/core/hooks/use-theme-config.js +2 -2
  65. package/lib/core/hooks/use-theme-hooks.d.ts +1 -1
  66. package/lib/core/hooks/use-theme-hooks.js +2 -2
  67. package/lib/core/hooks/use-time-ago.js +2 -2
  68. package/lib/core/hooks/use-user-teams.js +2 -2
  69. package/lib/core/index.d.ts +7 -7
  70. package/lib/core/index.js +7 -7
  71. package/lib/core/openapi/index.d.ts +18 -0
  72. package/lib/core/openapi/index.js +48 -0
  73. package/lib/core/styles/global.js +1 -1
  74. package/lib/core/styles/index.d.ts +2 -2
  75. package/lib/core/styles/index.js +2 -2
  76. package/lib/core/templates/Markdown.d.ts +1 -1
  77. package/lib/core/templates/Markdown.js +8 -6
  78. package/lib/core/types/catalog.d.ts +6 -2
  79. package/lib/core/types/code-walkthrough.d.ts +1 -1
  80. package/lib/core/types/feedback.d.ts +1 -1
  81. package/lib/core/types/filter.d.ts +1 -1
  82. package/lib/core/types/hooks.d.ts +11 -3
  83. package/lib/core/types/index.d.ts +18 -18
  84. package/lib/core/types/index.js +18 -18
  85. package/lib/core/types/search.d.ts +1 -1
  86. package/lib/core/types/sidebar.d.ts +1 -1
  87. package/lib/core/utils/download-code-walkthrough.js +6 -4
  88. package/lib/core/utils/get-code-walkthrough-file-text.js +4 -3
  89. package/lib/core/utils/index.d.ts +35 -35
  90. package/lib/core/utils/index.js +35 -35
  91. package/lib/core/utils/load-and-navigate.js +2 -2
  92. package/lib/core/utils/match-code-walkthrough-conditions.js +3 -3
  93. package/lib/core/utils/menu.d.ts +3 -2
  94. package/lib/core/utils/menu.js +12 -12
  95. package/lib/core/utils/toc.d.ts +1 -1
  96. package/lib/core/utils/type-guards.d.ts +1 -1
  97. package/lib/core/utils/type-guards.js +5 -5
  98. package/lib/core/utils/urls.d.ts +1 -1
  99. package/lib/core/utils/urls.js +2 -2
  100. package/lib/markdoc/components/Tabs/TabList.js +2 -0
  101. package/package.json +1 -1
  102. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +15 -0
  103. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +8 -2
  104. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +0 -1
  105. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -3
  106. package/src/components/Catalog/CatalogEntityIcon.tsx +6 -0
  107. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +5 -4
  108. package/src/components/Catalog/CatalogTableView/CatalogEntityRelationCell.tsx +19 -0
  109. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +4 -0
  110. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +4 -0
  111. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +7 -15
  112. package/src/components/Catalog/variables.ts +2 -2
  113. package/src/core/constants/catalog.ts +58 -0
  114. package/src/core/constants/index.ts +5 -5
  115. package/src/core/constants/search.ts +1 -1
  116. package/src/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.tsx +1 -1
  117. package/src/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.tsx +1 -1
  118. package/src/core/contexts/ThemeDataContext.tsx +3 -3
  119. package/src/core/contexts/index.ts +3 -3
  120. package/src/core/hoc/index.ts +1 -1
  121. package/src/core/hooks/__mocks__/index.ts +28 -28
  122. package/src/core/hooks/catalog/useCatalogEntities.ts +1 -1
  123. package/src/core/hooks/catalog/useCatalogTableViewRow.ts +1 -1
  124. package/src/core/hooks/code-walkthrough/use-code-panel.ts +3 -5
  125. package/src/core/hooks/code-walkthrough/use-code-walkthrough-controls.ts +4 -6
  126. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +4 -3
  127. package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +3 -3
  128. package/src/core/hooks/code-walkthrough/use-renderable-files.ts +4 -6
  129. package/src/core/hooks/feedback/use-report-dialog.ts +3 -2
  130. package/src/core/hooks/index.ts +42 -42
  131. package/src/core/hooks/menu/use-menu-item-expanded.ts +1 -1
  132. package/src/core/hooks/menu/use-mobile-menu-items.ts +4 -7
  133. package/src/core/hooks/menu/use-mobile-menu-levels.ts +3 -2
  134. package/src/core/hooks/menu/use-nested-menu.ts +5 -3
  135. package/src/core/hooks/search/use-recent-searches.ts +1 -1
  136. package/src/core/hooks/search/use-search-dialog.ts +2 -1
  137. package/src/core/hooks/search/use-search-filter.ts +1 -1
  138. package/src/core/hooks/search/use-suggested-pages.ts +1 -1
  139. package/src/core/hooks/use-active-page-version.ts +1 -1
  140. package/src/core/hooks/use-active-section-id.ts +1 -1
  141. package/src/core/hooks/use-codeblock-tabs-controls.ts +1 -1
  142. package/src/core/hooks/use-color-switcher.ts +2 -1
  143. package/src/core/hooks/use-input-key-commands.ts +1 -1
  144. package/src/core/hooks/use-language-picker.ts +3 -3
  145. package/src/core/hooks/use-mobile-menu.ts +1 -1
  146. package/src/core/hooks/use-navbar-height.ts +1 -1
  147. package/src/core/hooks/use-page-versions.ts +1 -1
  148. package/src/core/hooks/use-product-picker.ts +1 -1
  149. package/src/core/hooks/use-theme-config.ts +2 -2
  150. package/src/core/hooks/use-theme-hooks.ts +2 -2
  151. package/src/core/hooks/use-time-ago.ts +3 -2
  152. package/src/core/hooks/use-user-teams.ts +1 -1
  153. package/src/core/index.ts +7 -7
  154. package/src/core/openapi/index.ts +31 -0
  155. package/src/core/styles/global.ts +2 -1
  156. package/src/core/styles/index.ts +2 -2
  157. package/src/core/templates/Markdown.tsx +8 -4
  158. package/src/core/types/catalog.ts +15 -2
  159. package/src/core/types/code-walkthrough.ts +1 -1
  160. package/src/core/types/feedback.ts +6 -6
  161. package/src/core/types/filter.ts +1 -1
  162. package/src/core/types/hooks.ts +17 -16
  163. package/src/core/types/index.ts +18 -18
  164. package/src/core/types/search.ts +1 -1
  165. package/src/core/types/sidebar.ts +1 -1
  166. package/src/core/utils/download-code-walkthrough.ts +3 -5
  167. package/src/core/utils/get-code-walkthrough-file-text.ts +2 -1
  168. package/src/core/utils/index.ts +35 -35
  169. package/src/core/utils/load-and-navigate.ts +1 -1
  170. package/src/core/utils/match-code-walkthrough-conditions.ts +1 -1
  171. package/src/core/utils/menu.ts +4 -3
  172. package/src/core/utils/toc.ts +1 -1
  173. package/src/core/utils/type-guards.ts +2 -2
  174. package/src/core/utils/urls.ts +2 -2
  175. package/src/markdoc/components/Tabs/TabList.tsx +1 -0
@@ -12,6 +12,7 @@ export type CatalogEntityDefaultRelationsProps = {
12
12
  };
13
13
  searchQuery: string;
14
14
  setSearchQuery: (query: string) => void;
15
+ setFilter: (filter: string) => void;
15
16
  sortOption: SortOption | null;
16
17
  setSortOption: (sortOption: SortOption | null) => void;
17
18
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
@@ -10,6 +10,7 @@ const CatalogTableView_1 = require("../../../../components/Catalog/CatalogTableV
10
10
  const CatalogEntityCell_1 = require("../../../../components/Catalog/CatalogTableView/CatalogEntityCell");
11
11
  const Tag_1 = require("../../../../components/Tag/Tag");
12
12
  const CatalogEntityRelationsTable_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable");
13
+ const CatalogEntityRelationCell_1 = require("../../../../components/Catalog/CatalogTableView/CatalogEntityRelationCell");
13
14
  const columns = [
14
15
  {
15
16
  key: 'entity',
@@ -17,6 +18,7 @@ const columns = [
17
18
  render: (entity) => react_1.default.createElement(CatalogEntityCell_1.CatalogEntityCell, { entity: entity }),
18
19
  sortable: true,
19
20
  sortKey: 'title',
21
+ width: '2.5fr',
20
22
  },
21
23
  {
22
24
  key: 'type',
@@ -24,6 +26,13 @@ const columns = [
24
26
  render: (entity) => (react_1.default.createElement(EntityTypeTag, { color: (0, CatalogTableView_1.getEntityTagColor)(entity.type) }, entity.type)),
25
27
  sortable: true,
26
28
  sortKey: 'type',
29
+ width: '1fr',
30
+ },
31
+ {
32
+ key: 'relationType',
33
+ title: 'Relations',
34
+ render: (entity) => (react_1.default.createElement(CatalogEntityRelationCell_1.CatalogEntityRelationCell, { relationType: entity.relationType, relationRole: entity.relationRole })),
35
+ width: '1fr',
27
36
  },
28
37
  ];
29
38
  function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }) {
@@ -1,19 +1,44 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
26
  exports.CatalogEntityRelations = CatalogEntityRelations;
7
- const react_1 = __importDefault(require("react"));
27
+ const react_1 = __importStar(require("react"));
8
28
  const hooks_1 = require("../../../../core/hooks");
9
29
  const CatalogEntityDefaultRelations_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations");
10
30
  const CatalogEntityTeamRelations_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations");
11
31
  const LOAD_MORE_THRESHOLD = 10;
32
+ const ENTITY_DEFAULT_FILTERS = {
33
+ team: 'type:user',
34
+ };
12
35
  function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelations, catalogConfig, }) {
36
+ var _a;
13
37
  const { useCatalogSort, useCatalogSearch, useFetchCatalogEntitiesRelations } = (0, hooks_1.useThemeHooks)();
14
38
  const { sortOption, setSortOption, handleSortClick, isColumnSorted } = useCatalogSort();
15
39
  const { searchQuery, setSearchQuery } = useCatalogSearch();
16
- const { items: relations, query } = useFetchCatalogEntitiesRelations({ entityKey: entity.key, search: searchQuery, sort: sortOption !== null && sortOption !== void 0 ? sortOption : undefined }, initialRelations);
40
+ const [filter, setFilter] = (0, react_1.useState)((_a = ENTITY_DEFAULT_FILTERS[entity.type]) !== null && _a !== void 0 ? _a : '');
41
+ const { items: relations, query } = useFetchCatalogEntitiesRelations({ entityKey: entity.key, search: searchQuery, sort: sortOption !== null && sortOption !== void 0 ? sortOption : undefined, filter }, initialRelations);
17
42
  if (relations.length === 0) {
18
43
  return null;
19
44
  }
@@ -22,10 +47,10 @@ function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelation
22
47
  switch (entity.type) {
23
48
  case 'team':
24
49
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations/CatalogEntityTeamRelations" },
25
- react_1.default.createElement(CatalogEntityTeamRelations_1.CatalogEntityTeamRelations, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })));
50
+ react_1.default.createElement(CatalogEntityTeamRelations_1.CatalogEntityTeamRelations, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, setFilter: setFilter, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })));
26
51
  default:
27
52
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations/CatalogEntityDefaultRelations" },
28
- react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })));
53
+ react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, setFilter: setFilter, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })));
29
54
  }
30
55
  }
31
56
  //# sourceMappingURL=CatalogEntityRelations.js.map
@@ -14,7 +14,6 @@ export type CatalogEntityRelationsTableProps = {
14
14
  searchQuery: string;
15
15
  setSearchQuery: (query: string) => void;
16
16
  heading: string;
17
- filter?: string;
18
17
  columns: CatalogColumn<BffCatalogRelatedEntity>[];
19
18
  sortOption: SortOption | null;
20
19
  setSortOption: (sortOption: SortOption | null) => void;
@@ -13,10 +13,11 @@ export type CatalogEntityTeamRelationsProps = {
13
13
  };
14
14
  searchQuery: string;
15
15
  setSearchQuery: (query: string) => void;
16
+ setFilter: (filter: string) => void;
16
17
  sortOption: SortOption | null;
17
18
  setSortOption: (sortOption: SortOption | null) => void;
18
19
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
19
20
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
20
21
  shouldShowLoadMore: boolean;
21
22
  };
22
- export declare function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }: CatalogEntityTeamRelationsProps): JSX.Element;
23
+ export declare function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, setSearchQuery, setFilter, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }: CatalogEntityTeamRelationsProps): JSX.Element;
@@ -13,6 +13,7 @@ const Tag_1 = require("../../../../components/Tag/Tag");
13
13
  const CatalogEntityRelationsTable_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable");
14
14
  const CatalogUserEntityCell_1 = require("../../../../components/Catalog/CatalogTableView/CatalogUserEntityCell");
15
15
  const CatalogEntityDefaultRelations_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations");
16
+ const CatalogEntityRelationCell_1 = require("../../../../components/Catalog/CatalogTableView/CatalogEntityRelationCell");
16
17
  const teamColumns = [
17
18
  {
18
19
  key: 'entity',
@@ -31,6 +32,11 @@ const teamColumns = [
31
32
  render: (entity) => { var _a, _b; return (((_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.role) ? react_1.default.createElement(Tag_1.Tag, null, (_b = entity.metadata) === null || _b === void 0 ? void 0 : _b.role) : null); },
32
33
  width: '2fr',
33
34
  },
35
+ {
36
+ key: 'relationType',
37
+ title: 'Relations',
38
+ render: (entity) => (react_1.default.createElement(CatalogEntityRelationCell_1.CatalogEntityRelationCell, { relationType: entity.relationType, relationRole: entity.relationRole })),
39
+ },
34
40
  {
35
41
  key: 'description',
36
42
  title: 'Description',
@@ -38,13 +44,13 @@ const teamColumns = [
38
44
  width: '3fr',
39
45
  },
40
46
  ];
41
- function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }) {
47
+ function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, setSearchQuery, setFilter, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }) {
42
48
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations" },
43
49
  react_1.default.createElement(Tabs_1.Tabs, { forceReady: relations.length > 0, size: Tabs_1.TabsSize.MEDIUM },
44
- react_1.default.createElement(TabItem, { label: "Members", icon: react_1.default.createElement(PeopleIcon_1.PeopleIcon, null) },
45
- react_1.default.createElement(CatalogEntityRelationsTable_1.CatalogEntityRelationsTable, { entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, heading: "Members", filter: "type:user", columns: teamColumns, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })),
46
- react_1.default.createElement(TabItem, { label: "Related entities", icon: react_1.default.createElement(EntityTypeIcon_1.EntityTypeIcon, null) },
47
- react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { entity: entity, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })))));
50
+ react_1.default.createElement(TabItem, { label: "Members", icon: react_1.default.createElement(PeopleIcon_1.PeopleIcon, null), onClick: () => setFilter('type:user') },
51
+ react_1.default.createElement(CatalogEntityRelationsTable_1.CatalogEntityRelationsTable, { entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, heading: "Members", columns: teamColumns, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })),
52
+ react_1.default.createElement(TabItem, { label: "Related entities", icon: react_1.default.createElement(EntityTypeIcon_1.EntityTypeIcon, null), onClick: () => setFilter('') },
53
+ react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { entity: entity, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, setFilter: setFilter, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })))));
48
54
  }
49
55
  const TabItem = styled_components_1.default.div `
50
56
  padding: 12px;
@@ -16,6 +16,8 @@ const entityIconMap = {
16
16
  team: react_1.default.createElement(PeopleIcon_1.PeopleIcon, { color: iconColor }),
17
17
  user: react_1.default.createElement(UserIcon_1.UserIcon, { color: iconColor }),
18
18
  'api-description': react_1.default.createElement(CodeIcon_1.CodeIcon, { color: iconColor }),
19
+ 'data-schema': react_1.default.createElement(CodeIcon_1.CodeIcon, { color: iconColor }),
20
+ 'api-operation': react_1.default.createElement(CodeIcon_1.CodeIcon, { color: iconColor }),
19
21
  };
20
22
  function CatalogEntityIcon({ entityType }) {
21
23
  const key = entityType.toLowerCase();
@@ -30,6 +32,10 @@ function CatalogEntityIcon({ entityType }) {
30
32
  return entityIconMap.user;
31
33
  case 'api-description':
32
34
  return entityIconMap['api-description'];
35
+ case 'data-schema':
36
+ return entityIconMap.service;
37
+ case 'api-operation':
38
+ return entityIconMap.service;
33
39
  default:
34
40
  const exhaustiveCheck = key;
35
41
  throw new Error(`Unhandled entity type: ${exhaustiveCheck}`);
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import { BffCatalogRelatedEntity } from '../../../core/types';
3
- export type CatalogEntityCellProps = {
4
- entity: BffCatalogRelatedEntity;
2
+ import { BffCatalogEntity } from '../../../core/types';
3
+ type Entity = Pick<BffCatalogEntity, 'type' | 'title' | 'summary'>;
4
+ export type CatalogEntityCellProps<T extends Entity> = {
5
+ entity: T;
5
6
  };
6
- export declare function CatalogEntityCell({ entity }: CatalogEntityCellProps): React.JSX.Element;
7
+ export declare function CatalogEntityCell<T extends Entity>({ entity }: CatalogEntityCellProps<T>): React.JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { BffCatalogRelatedEntity } from '../../../core/types';
2
+ export type CatalogEntityRelationCellProps = Pick<BffCatalogRelatedEntity, 'relationType' | 'relationRole'>;
3
+ export declare function CatalogEntityRelationCell({ relationType, relationRole, }: CatalogEntityRelationCellProps): "partOf" | "hasParts" | "creates" | "createdBy" | "owns" | "ownedBy" | "implements" | "implementedBy" | "dependsOn" | "dependencyOf" | "uses" | "usedBy" | "produces" | "consumes" | "linksTo" | "supersedes" | "supersededBy" | "compatibleWith" | "extends" | "extendedBy" | "relatesTo" | "hasMember" | "memberOf" | "triggers" | "triggeredBy";
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogEntityRelationCell = CatalogEntityRelationCell;
4
+ const constants_1 = require("../../../core/constants");
5
+ function CatalogEntityRelationCell({ relationType, relationRole, }) {
6
+ if (relationRole === 'source') {
7
+ return constants_1.reverseRelationMap[relationType];
8
+ }
9
+ return relationType;
10
+ }
11
+ //# sourceMappingURL=CatalogEntityRelationCell.js.map
@@ -25,6 +25,10 @@ const getEntityTagColor = (type) => {
25
25
  return 'yellow';
26
26
  case 'api-description':
27
27
  return 'sky';
28
+ case 'data-schema':
29
+ return 'sky';
30
+ case 'api-operation':
31
+ return 'sky';
28
32
  default:
29
33
  const exhaustiveCheck = type;
30
34
  throw new Error(`Unhandled entity type: ${exhaustiveCheck}`);
@@ -24,6 +24,10 @@ const getEntityTagColor = (type) => {
24
24
  return 'yellow';
25
25
  case 'api-description':
26
26
  return 'sky';
27
+ case 'data-schema':
28
+ return 'sky';
29
+ case 'api-operation':
30
+ return 'sky';
27
31
  default:
28
32
  const exhaustiveCheck = type;
29
33
  throw new Error(`Unhandled entity type: ${exhaustiveCheck}`);
@@ -19,9 +19,8 @@ function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true
19
19
  return null;
20
20
  }
21
21
  if (items.length <= itemsToShow) {
22
- return (react_1.default.createElement(Tooltip_1.TooltipComponent, { tip: items.join(', '), placement: "bottom", className: "catalog", width: "400px", disabled: items.join(', ').length <= constants_1.CATALOG_TAG_MAX_LENGTH },
23
- react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" }, items.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, { maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
24
- react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, item)))))));
22
+ return (react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" }, items.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, { maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
23
+ react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, item))))));
25
24
  }
26
25
  const displayedItems = items.slice(0, itemsToShow);
27
26
  const remainingCount = items.length - itemsToShow;
@@ -256,7 +256,7 @@ exports.catalog = (0, styled_components_1.css) `
256
256
  */
257
257
  --catalog-table-border-color: var(--border-color-primary);
258
258
  --catalog-table-header-bg-color: var(--bg-color-secondary);
259
- --catalog-table-header-font-weight: var(--font-weight-semibold);
259
+ --catalog-table-header-font-weight: var(--font-weight-medium);
260
260
  --catalog-table-header-cell-padding: 5px 8px;
261
261
  --catalog-table-cell-padding: 5px 8px;
262
262
  --catalog-table-row-hover-bg-color: var(--bg-color-hover, rgba(0, 0, 0, 0.04));
@@ -288,7 +288,7 @@ exports.catalog = (0, styled_components_1.css) `
288
288
  */
289
289
  --catalog-table-entity-title-font-size: var(--catalog-card-title-font-size);
290
290
  --catalog-table-entity-title-line-height: var(--line-height-lg);
291
- --catalog-table-entity-title-font-weight: var(--font-weight-semibold);
291
+ --catalog-table-entity-title-font-weight: var(--font-weight-medium);
292
292
 
293
293
  /**
294
294
  * @tokens Catalog table description
@@ -2,4 +2,4 @@ import { Tag } from '../../components/Tag/Tag';
2
2
  export declare const CounterTag: import("styled-components").StyledComponent<typeof Tag, any, {
3
3
  className: "tag-counter";
4
4
  'data-component-name': string;
5
- }, "className" | "data-component-name">;
5
+ }, "data-component-name" | "className">;
@@ -2,4 +2,4 @@ import { Tag } from '../../components/Tag/Tag';
2
2
  export declare const HttpTag: import("styled-components").StyledComponent<typeof Tag, any, {
3
3
  className: "tag-http";
4
4
  'data-component-name': string;
5
- }, "className" | "data-component-name">;
5
+ }, "data-component-name" | "className">;
@@ -1 +1,4 @@
1
+ import type { EntityRelationType } from '../types/catalog';
1
2
  export declare const CATALOG_TAG_MAX_LENGTH = 15;
3
+ export declare const ENTITY_RELATION_TYPES: readonly ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy"];
4
+ export declare const reverseRelationMap: Record<EntityRelationType, EntityRelationType>;
@@ -1,5 +1,59 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CATALOG_TAG_MAX_LENGTH = void 0;
3
+ exports.reverseRelationMap = exports.ENTITY_RELATION_TYPES = exports.CATALOG_TAG_MAX_LENGTH = void 0;
4
4
  exports.CATALOG_TAG_MAX_LENGTH = 15;
5
+ exports.ENTITY_RELATION_TYPES = [
6
+ 'partOf',
7
+ 'hasParts',
8
+ 'creates',
9
+ 'createdBy',
10
+ 'owns',
11
+ 'ownedBy',
12
+ 'implements',
13
+ 'implementedBy',
14
+ 'dependsOn',
15
+ 'dependencyOf',
16
+ 'uses',
17
+ 'usedBy',
18
+ 'produces',
19
+ 'consumes',
20
+ 'linksTo',
21
+ 'supersedes',
22
+ 'supersededBy',
23
+ 'compatibleWith',
24
+ 'extends',
25
+ 'extendedBy',
26
+ 'relatesTo',
27
+ 'hasMember',
28
+ 'memberOf',
29
+ 'triggers',
30
+ 'triggeredBy',
31
+ ];
32
+ exports.reverseRelationMap = {
33
+ partOf: 'hasParts',
34
+ hasParts: 'partOf',
35
+ creates: 'createdBy',
36
+ createdBy: 'creates',
37
+ owns: 'ownedBy',
38
+ ownedBy: 'owns',
39
+ implements: 'implementedBy',
40
+ implementedBy: 'implements',
41
+ dependsOn: 'dependencyOf',
42
+ dependencyOf: 'dependsOn',
43
+ uses: 'usedBy',
44
+ usedBy: 'uses',
45
+ produces: 'consumes',
46
+ consumes: 'produces',
47
+ linksTo: 'linksTo',
48
+ supersedes: 'supersededBy',
49
+ supersededBy: 'supersedes',
50
+ compatibleWith: 'compatibleWith',
51
+ extends: 'extendedBy',
52
+ extendedBy: 'extends',
53
+ relatesTo: 'relatesTo',
54
+ hasMember: 'memberOf',
55
+ memberOf: 'hasMember',
56
+ triggers: 'triggeredBy',
57
+ triggeredBy: 'triggers',
58
+ };
5
59
  //# sourceMappingURL=catalog.js.map
@@ -1,5 +1,5 @@
1
- export * from '../../core/constants/common';
2
- export * from '../../core/constants/environments';
3
- export * from '../../core/constants/code-walkthrough';
4
- export * from '../../core/constants/search';
5
- export * from '../../core/constants/catalog';
1
+ export * from './common';
2
+ export * from './environments';
3
+ export * from './code-walkthrough';
4
+ export * from './search';
5
+ export * from './catalog';
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../core/constants/common"), exports);
18
- __exportStar(require("../../core/constants/environments"), exports);
19
- __exportStar(require("../../core/constants/code-walkthrough"), exports);
20
- __exportStar(require("../../core/constants/search"), exports);
21
- __exportStar(require("../../core/constants/catalog"), exports);
17
+ __exportStar(require("./common"), exports);
18
+ __exportStar(require("./environments"), exports);
19
+ __exportStar(require("./code-walkthrough"), exports);
20
+ __exportStar(require("./search"), exports);
21
+ __exportStar(require("./catalog"), exports);
22
22
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { AiSearchErrorConfig } from '../../core/types';
1
+ import type { AiSearchErrorConfig } from '../types/search';
2
2
  export declare enum AiSearchError {
3
3
  Unauthorized = "ai_search_unauthorized",
4
4
  Forbidden = "ai_search_forbidden",
@@ -1,2 +1,2 @@
1
- import type { WalkthroughControlsState } from '../../../core/hooks';
1
+ import type { WalkthroughControlsState } from '../../hooks/code-walkthrough/use-code-walkthrough-controls';
2
2
  export declare const CodeWalkthroughControlsStateContext: import("react").Context<WalkthroughControlsState>;
@@ -1,2 +1,2 @@
1
- import type { WalkthroughStepsState } from '../../../core/types';
1
+ import type { WalkthroughStepsState } from '../../types/code-walkthrough';
2
2
  export declare const CodeWalkthroughStepsContext: import("react").Context<WalkthroughStepsState>;
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
- import type { ThemeHooks } from '../../core/types';
2
+ import type { ThemeHooks } from '../types/hooks';
3
3
  import type { LinkProps } from '../../components/Link/Link';
4
4
  import type { UiAccessibleConfig } from '../../config';
5
5
  export interface ThemeDataTransferObject {
@@ -1,3 +1,3 @@
1
- export * from '../../core/contexts/ThemeDataContext';
2
- export * from '../../core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext';
3
- export * from '../../core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext';
1
+ export * from './ThemeDataContext';
2
+ export * from './CodeWalkthrough/CodeWalkthroughControlsContext';
3
+ export * from './CodeWalkthrough/CodeWalkthroughStepsContext';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../core/contexts/ThemeDataContext"), exports);
18
- __exportStar(require("../../core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext"), exports);
19
- __exportStar(require("../../core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext"), exports);
17
+ __exportStar(require("./ThemeDataContext"), exports);
18
+ __exportStar(require("./CodeWalkthrough/CodeWalkthroughControlsContext"), exports);
19
+ __exportStar(require("./CodeWalkthrough/CodeWalkthroughStepsContext"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from '../../core/hoc/typedMemo';
1
+ export * from './typedMemo';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../core/hoc/typedMemo"), exports);
17
+ __exportStar(require("./typedMemo"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,28 +1,28 @@
1
- export * from '../../../core/hooks/__mocks__/use-theme-config';
2
- export * from '../../../core/hooks/__mocks__/use-theme-hooks';
3
- export * from '../../../core/hooks/__mocks__/use-mobile-menu';
4
- export * from '../../../core/hooks/__mocks__/use-controlled-state';
5
- export * from '../../../core/hooks/__mocks__/search/use-recent-searches';
6
- export * from '../../../core/hooks/__mocks__/search/use-suggested-pages';
7
- export * from '../../../core/hooks/__mocks__/search/use-search-filter';
8
- export * from '../../../core/hooks/menu/__mocks__/use-mobile-menu-items';
9
- export * from '../../../core/hooks/menu/use-collapse';
10
- export * from '../../../core/hooks/use-active-heading';
11
- export * from '../../../core/hooks/use-control';
12
- export * from '../../../core/hooks/use-dialog-hotkeys';
13
- export * from '../../../core/hooks/use-full-height';
14
- export * from '../../../core/hooks/use-modal-scroll-lock';
15
- export * from '../../../core/hooks/use-mount';
16
- export * from '../../../core/hooks/use-outside-click';
17
- export * from '../../../core/hooks/use-unmount';
18
- export * from '../../../core/hooks/use-color-switcher';
19
- export * from '../../../core/hooks/menu/use-nested-menu';
20
- export * from '../../../core/hooks/menu/use-menu-item-expanded';
21
- export * from '../../../core/hooks/menu/use-mobile-menu-levels';
22
- export * from '../../../core/hooks/feedback/use-report-dialog';
23
- export * from '../../../core/hooks/use-product-picker';
24
- export * from '../../../core/hooks/search/use-search-dialog';
25
- export * from '../../../core/hooks/use-language-picker';
26
- export * from '../../../core/hooks/__mocks__/use-element-size';
27
- export * from '../../../core/hooks/__mocks__/use-time-ago';
28
- export * from '../../../core/hooks/__mocks__/use-input-key-commands';
1
+ export * from './use-theme-config';
2
+ export * from './use-theme-hooks';
3
+ export * from './use-mobile-menu';
4
+ export * from './use-controlled-state';
5
+ export * from './search/use-recent-searches';
6
+ export * from './search/use-suggested-pages';
7
+ export * from './search/use-search-filter';
8
+ export * from '../menu/__mocks__/use-mobile-menu-items';
9
+ export * from '../menu/use-collapse';
10
+ export * from '../use-active-heading';
11
+ export * from '../use-control';
12
+ export * from '../use-dialog-hotkeys';
13
+ export * from '../use-full-height';
14
+ export * from '../use-modal-scroll-lock';
15
+ export * from '../use-mount';
16
+ export * from '../use-outside-click';
17
+ export * from '../use-unmount';
18
+ export * from '../use-color-switcher';
19
+ export * from '../menu/use-nested-menu';
20
+ export * from '../menu/use-menu-item-expanded';
21
+ export * from '../menu/use-mobile-menu-levels';
22
+ export * from '../feedback/use-report-dialog';
23
+ export * from '../use-product-picker';
24
+ export * from '../search/use-search-dialog';
25
+ export * from '../use-language-picker';
26
+ export * from './use-element-size';
27
+ export * from './use-time-ago';
28
+ export * from './use-input-key-commands';
@@ -14,32 +14,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../../core/hooks/__mocks__/use-theme-config"), exports);
18
- __exportStar(require("../../../core/hooks/__mocks__/use-theme-hooks"), exports);
19
- __exportStar(require("../../../core/hooks/__mocks__/use-mobile-menu"), exports);
20
- __exportStar(require("../../../core/hooks/__mocks__/use-controlled-state"), exports);
21
- __exportStar(require("../../../core/hooks/__mocks__/search/use-recent-searches"), exports);
22
- __exportStar(require("../../../core/hooks/__mocks__/search/use-suggested-pages"), exports);
23
- __exportStar(require("../../../core/hooks/__mocks__/search/use-search-filter"), exports);
24
- __exportStar(require("../../../core/hooks/menu/__mocks__/use-mobile-menu-items"), exports);
25
- __exportStar(require("../../../core/hooks/menu/use-collapse"), exports);
26
- __exportStar(require("../../../core/hooks/use-active-heading"), exports);
27
- __exportStar(require("../../../core/hooks/use-control"), exports);
28
- __exportStar(require("../../../core/hooks/use-dialog-hotkeys"), exports);
29
- __exportStar(require("../../../core/hooks/use-full-height"), exports);
30
- __exportStar(require("../../../core/hooks/use-modal-scroll-lock"), exports);
31
- __exportStar(require("../../../core/hooks/use-mount"), exports);
32
- __exportStar(require("../../../core/hooks/use-outside-click"), exports);
33
- __exportStar(require("../../../core/hooks/use-unmount"), exports);
34
- __exportStar(require("../../../core/hooks/use-color-switcher"), exports);
35
- __exportStar(require("../../../core/hooks/menu/use-nested-menu"), exports);
36
- __exportStar(require("../../../core/hooks/menu/use-menu-item-expanded"), exports);
37
- __exportStar(require("../../../core/hooks/menu/use-mobile-menu-levels"), exports);
38
- __exportStar(require("../../../core/hooks/feedback/use-report-dialog"), exports);
39
- __exportStar(require("../../../core/hooks/use-product-picker"), exports);
40
- __exportStar(require("../../../core/hooks/search/use-search-dialog"), exports);
41
- __exportStar(require("../../../core/hooks/use-language-picker"), exports);
42
- __exportStar(require("../../../core/hooks/__mocks__/use-element-size"), exports);
43
- __exportStar(require("../../../core/hooks/__mocks__/use-time-ago"), exports);
44
- __exportStar(require("../../../core/hooks/__mocks__/use-input-key-commands"), exports);
17
+ __exportStar(require("./use-theme-config"), exports);
18
+ __exportStar(require("./use-theme-hooks"), exports);
19
+ __exportStar(require("./use-mobile-menu"), exports);
20
+ __exportStar(require("./use-controlled-state"), exports);
21
+ __exportStar(require("./search/use-recent-searches"), exports);
22
+ __exportStar(require("./search/use-suggested-pages"), exports);
23
+ __exportStar(require("./search/use-search-filter"), exports);
24
+ __exportStar(require("../menu/__mocks__/use-mobile-menu-items"), exports);
25
+ __exportStar(require("../menu/use-collapse"), exports);
26
+ __exportStar(require("../use-active-heading"), exports);
27
+ __exportStar(require("../use-control"), exports);
28
+ __exportStar(require("../use-dialog-hotkeys"), exports);
29
+ __exportStar(require("../use-full-height"), exports);
30
+ __exportStar(require("../use-modal-scroll-lock"), exports);
31
+ __exportStar(require("../use-mount"), exports);
32
+ __exportStar(require("../use-outside-click"), exports);
33
+ __exportStar(require("../use-unmount"), exports);
34
+ __exportStar(require("../use-color-switcher"), exports);
35
+ __exportStar(require("../menu/use-nested-menu"), exports);
36
+ __exportStar(require("../menu/use-menu-item-expanded"), exports);
37
+ __exportStar(require("../menu/use-mobile-menu-levels"), exports);
38
+ __exportStar(require("../feedback/use-report-dialog"), exports);
39
+ __exportStar(require("../use-product-picker"), exports);
40
+ __exportStar(require("../search/use-search-dialog"), exports);
41
+ __exportStar(require("../use-language-picker"), exports);
42
+ __exportStar(require("./use-element-size"), exports);
43
+ __exportStar(require("./use-time-ago"), exports);
44
+ __exportStar(require("./use-input-key-commands"), exports);
45
45
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { UseCatalogEntitiesProps } from '../../../index.js';
1
+ import type { UseCatalogEntitiesProps } from '../../types/catalog';
2
2
  export declare function useCatalogEntities({ entitiesTypes, excludedEntities }: UseCatalogEntitiesProps): {
3
3
  initialFilter: string;
4
4
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCatalogTableViewRow = useCatalogTableViewRow;
4
- const utils_1 = require("../../utils");
4
+ const urls_1 = require("../../utils/urls");
5
5
  function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entitiesCatalogConfig, }) {
6
6
  const getCatalogSpecificConfigByEntityTypeIncluded = () => {
7
7
  var _a;
@@ -14,7 +14,7 @@ function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entities
14
14
  });
15
15
  };
16
16
  const getEntityDetailsLink = () => {
17
- const pathPrefix = (0, utils_1.getPathPrefix)();
17
+ const pathPrefix = (0, urls_1.getPathPrefix)();
18
18
  const catalogSpecificConfig = getCatalogSpecificConfigByEntityTypeIncluded();
19
19
  if (!catalogSpecificConfig || !entitiesCatalogConfig) {
20
20
  return `${pathPrefix}/catalogs/${catalogConfig.slug}/entities/${entityKey}`;