@redocly/theme 0.56.0-next.4 → 0.56.0-next.6
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.
- package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +5 -1
- package/lib/components/Catalog/CatalogEntitiesEmptyState.js +25 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +14 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +3 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +11 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +6 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +47 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +8 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +8 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +3 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +2 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +5 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +3 -3
- package/lib/components/Catalog/CatalogEntityTypeTag.js +3 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +2 -2
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +8 -4
- package/lib/components/Catalog/variables.js +1 -1
- package/lib/core/hooks/use-active-section-id.d.ts +1 -1
- package/lib/core/hooks/use-active-section-id.js +2 -2
- package/lib/core/types/l10n.d.ts +1 -1
- package/lib/core/utils/download-code-walkthrough.js +27 -7
- package/lib/icons/GraphqlIcon/GraphqlIcon.d.ts +9 -0
- package/lib/icons/GraphqlIcon/GraphqlIcon.js +36 -0
- package/lib/icons/GraphqlIcon/index.d.ts +1 -0
- package/lib/icons/GraphqlIcon/index.js +6 -0
- package/lib/icons/HexagonIcon/HexagonIcon.d.ts +9 -0
- package/lib/icons/HexagonIcon/HexagonIcon.js +22 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +23 -7
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +18 -8
- package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +12 -15
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +61 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +12 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +11 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +3 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +5 -6
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +21 -13
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +9 -2
- package/src/components/Catalog/CatalogEntityTypeTag.tsx +4 -4
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +3 -1
- package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +9 -4
- package/src/components/Catalog/variables.ts +1 -1
- package/src/core/hooks/use-active-section-id.ts +2 -1
- package/src/core/types/l10n.ts +3 -0
- package/src/core/utils/download-code-walkthrough.ts +5 -4
- package/src/icons/GraphqlIcon/GraphqlIcon.tsx +81 -0
- package/src/icons/GraphqlIcon/index.ts +1 -0
- package/src/icons/HexagonIcon/HexagonIcon.tsx +23 -0
- package/src/index.ts +1 -0
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
|
|
2
|
+
interface CatalogEntitiesEmptyStateProps {
|
|
3
|
+
listType?: 'default' | 'team';
|
|
4
|
+
}
|
|
5
|
+
export declare function CatalogEntitiesEmptyState({ listType, }: CatalogEntitiesEmptyStateProps): JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -6,11 +6,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CatalogEntitiesEmptyState = CatalogEntitiesEmptyState;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
|
|
9
|
+
const HexagonIcon_1 = require("../../icons/HexagonIcon/HexagonIcon");
|
|
10
|
+
function CatalogEntitiesEmptyState({ listType = 'default', }) {
|
|
11
|
+
if (listType === 'team') {
|
|
12
|
+
return (react_1.default.createElement(EmptyStateWrapper, { "data-component-name": "Catalog/CatalogEntitiesEmptyState" },
|
|
13
|
+
react_1.default.createElement(EmptyStateIconWrapper, null,
|
|
14
|
+
react_1.default.createElement(HexagonIcon_1.HexagonIcon, { size: "21px", color: "var(--color-warm-grey-7)" })),
|
|
15
|
+
react_1.default.createElement(EmptyStateHeader, null, "No team members yet"),
|
|
16
|
+
react_1.default.createElement(EmptyStateText, null, "Your team members will appear here"),
|
|
17
|
+
react_1.default.createElement(EmptyStateText, null, "once they've been added to the team.")));
|
|
18
|
+
}
|
|
10
19
|
return (react_1.default.createElement(EmptyStateWrapper, { "data-component-name": "Catalog/CatalogEntitiesEmptyState" },
|
|
11
|
-
react_1.default.createElement(
|
|
12
|
-
|
|
13
|
-
react_1.default.createElement(
|
|
20
|
+
react_1.default.createElement(EmptyStateIconWrapper, null,
|
|
21
|
+
react_1.default.createElement(HexagonIcon_1.HexagonIcon, { size: "21px", color: "var(--color-warm-grey-7)" })),
|
|
22
|
+
react_1.default.createElement(EmptyStateHeader, null, "No entities found"),
|
|
23
|
+
react_1.default.createElement(EmptyStateText, null, "Try adjusting your search criteria or"),
|
|
24
|
+
react_1.default.createElement(EmptyStateText, null, "check back later for new additions.")));
|
|
14
25
|
}
|
|
15
26
|
const EmptyStateWrapper = styled_components_1.default.div `
|
|
16
27
|
display: flex;
|
|
@@ -21,6 +32,16 @@ const EmptyStateWrapper = styled_components_1.default.div `
|
|
|
21
32
|
text-align: center;
|
|
22
33
|
min-height: var(--catalog-empty-state-min-height);
|
|
23
34
|
`;
|
|
35
|
+
const EmptyStateIconWrapper = styled_components_1.default.div `
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
background-color: var(--color-warm-grey-2);
|
|
40
|
+
width: 40px;
|
|
41
|
+
height: 40px;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
margin-bottom: var(--spacing-xxs);
|
|
44
|
+
`;
|
|
24
45
|
const EmptyStateHeader = styled_components_1.default.p `
|
|
25
46
|
color: var(--catalog-empty-state-header-text-color);
|
|
26
47
|
font-size: var(--catalog-empty-state-header-font-size);
|
|
@@ -20,13 +20,24 @@ const CatalogEntityRelations_1 = require("../../../components/Catalog/CatalogEnt
|
|
|
20
20
|
const hooks_1 = require("../../../core/hooks");
|
|
21
21
|
const SidebarActions_1 = require("../../../components/SidebarActions/SidebarActions");
|
|
22
22
|
const CatalogEntitySchema_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntitySchema");
|
|
23
|
+
const CatalogEntityMethodAndPath_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntityMethodAndPath");
|
|
23
24
|
function CatalogEntity({ entity, entitiesCatalogConfig, catalogConfig, initialRelations, }) {
|
|
24
25
|
var _a;
|
|
25
26
|
const { useTranslate, useCatalog } = (0, hooks_1.useThemeHooks)();
|
|
26
27
|
const { translate } = useTranslate();
|
|
27
28
|
const linkToMainCatalog = `catalogs/${catalogConfig.slug}`;
|
|
28
29
|
const linkToMainCatalogLabel = translate(catalogConfig.titleTranslationKey);
|
|
29
|
-
const { layout, collapsedSidebar, onChangeViewClick, onChangeCollapseSidebarClick } = useCatalog();
|
|
30
|
+
const { layout, collapsedSidebar, onChangeViewClick, onChangeCollapseSidebarClick, searchQuery, setSearchQuery, } = useCatalog();
|
|
31
|
+
const renderEntityContent = () => {
|
|
32
|
+
switch (entity.type) {
|
|
33
|
+
case 'data-schema':
|
|
34
|
+
return react_1.default.createElement(CatalogEntitySchema_1.CatalogEntitySchema, { entity: entity });
|
|
35
|
+
case 'api-operation':
|
|
36
|
+
return react_1.default.createElement(CatalogEntityMethodAndPath_1.CatalogEntityMethodAndPath, { entity: entity });
|
|
37
|
+
default:
|
|
38
|
+
return react_1.default.createElement(CatalogEntityMetadata_1.CatalogEntityMetadata, { entity: entity });
|
|
39
|
+
}
|
|
40
|
+
};
|
|
30
41
|
return (react_1.default.createElement(CatalogPageWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntity" },
|
|
31
42
|
react_1.default.createElement(CatalogSidebar, { collapsed: collapsedSidebar, header: react_1.default.createElement(BackLink, { icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null), iconPosition: "left", variant: "ghost", size: "medium", "data-component-name": "Sidebar/BackButton", to: linkToMainCatalog }, collapsedSidebar ? ('') : (react_1.default.createElement("div", { "data-translation-key": "sidebar.menu.backLabel" }, translate('sidebar.menu.backLabel')))), menu: react_1.default.createElement(Menu_1.Menu, { items: [
|
|
32
43
|
{
|
|
@@ -46,9 +57,9 @@ function CatalogEntity({ entity, entitiesCatalogConfig, catalogConfig, initialRe
|
|
|
46
57
|
react_1.default.createElement(CatalogPageDescription_1.CatalogPageDescription, { title: entity.title, description: (_a = entity.summary) !== null && _a !== void 0 ? _a : '', tag: entity.key }),
|
|
47
58
|
react_1.default.createElement(CatalogEntityProperties_1.CatalogEntityProperties, { entity: entity }),
|
|
48
59
|
react_1.default.createElement(CatalogTwoColumnsSection, null,
|
|
49
|
-
|
|
60
|
+
renderEntityContent(),
|
|
50
61
|
react_1.default.createElement(CatalogEntityLinks_1.CatalogEntityLinks, { entity: entity })),
|
|
51
|
-
react_1.default.createElement(CatalogEntityRelations_1.CatalogEntityRelations, { entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, initialRelations: initialRelations })))));
|
|
62
|
+
react_1.default.createElement(CatalogEntityRelations_1.CatalogEntityRelations, { entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, initialRelations: initialRelations, searchQuery: searchQuery, setSearchQuery: setSearchQuery })))));
|
|
52
63
|
}
|
|
53
64
|
const CatalogPageWrapper = styled_components_1.default.div `
|
|
54
65
|
--sidebar-width: var(--catalog-sidebar-width);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactNode, JSX } from 'react';
|
|
2
2
|
export type CatalogEntityInfoBarProps = {
|
|
3
3
|
leftContent: ReactNode;
|
|
4
|
-
rightContent
|
|
4
|
+
rightContent?: ReactNode;
|
|
5
5
|
withSeparator?: boolean;
|
|
6
|
+
hoverEffect?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare function CatalogEntityInfoBar({ leftContent, rightContent, withSeparator, }: CatalogEntityInfoBarProps): JSX.Element;
|
|
8
|
+
export declare function CatalogEntityInfoBar({ leftContent, rightContent, withSeparator, hoverEffect, }: CatalogEntityInfoBarProps): JSX.Element;
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CatalogEntityInfoBar = CatalogEntityInfoBar;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
function CatalogEntityInfoBar({ leftContent, rightContent, withSeparator = true, }) {
|
|
10
|
-
return (react_1.default.createElement(InfoBarWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityInfoBar" },
|
|
9
|
+
function CatalogEntityInfoBar({ leftContent, rightContent, withSeparator = true, hoverEffect = true, }) {
|
|
10
|
+
return (react_1.default.createElement(InfoBarWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityInfoBar", hoverEffect: hoverEffect },
|
|
11
11
|
react_1.default.createElement(LeftColumn, { withSeparator: withSeparator }, leftContent),
|
|
12
|
-
react_1.default.createElement(RightColumn, null, rightContent)));
|
|
12
|
+
rightContent && react_1.default.createElement(RightColumn, null, rightContent)));
|
|
13
13
|
}
|
|
14
14
|
const InfoBarWrapper = styled_components_1.default.div `
|
|
15
15
|
display: grid;
|
|
@@ -18,7 +18,7 @@ const InfoBarWrapper = styled_components_1.default.div `
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
|
|
20
20
|
color: var(--catalog-card-text-color, inherit);
|
|
21
|
-
background-color: var(--catalog-card-bg-color
|
|
21
|
+
background-color: var(--catalog-card-bg-color);
|
|
22
22
|
border: var(--catalog-card-border-width, 1px) var(--catalog-card-border-style)
|
|
23
23
|
var(--catalog-card-border-color);
|
|
24
24
|
border-radius: var(--catalog-card-border-radius);
|
|
@@ -26,9 +26,13 @@ const InfoBarWrapper = styled_components_1.default.div `
|
|
|
26
26
|
height: 100%;
|
|
27
27
|
padding: var(--catalog-card-gap);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
${({ hoverEffect }) => hoverEffect &&
|
|
30
|
+
`
|
|
31
|
+
&:hover {
|
|
32
|
+
border-color: var(--catalog-card-border-color-hover);
|
|
33
|
+
background-color: var(--bg-color-active);
|
|
34
|
+
}
|
|
35
|
+
`}
|
|
32
36
|
`;
|
|
33
37
|
const LeftColumn = styled_components_1.default.div `
|
|
34
38
|
font-weight: var(--font-weight-medium);
|
|
@@ -7,7 +7,7 @@ exports.CatalogEntityLinks = CatalogEntityLinks;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const LaunchIcon_1 = require("../../../icons/LaunchIcon/LaunchIcon");
|
|
10
|
-
const
|
|
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
13
|
function CatalogEntityLinks({ entity }) {
|
|
@@ -17,11 +17,11 @@ function CatalogEntityLinks({ entity }) {
|
|
|
17
17
|
}
|
|
18
18
|
return (react_1.default.createElement(LinksWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityLinks" },
|
|
19
19
|
react_1.default.createElement(Heading, null, "Links"),
|
|
20
|
-
links.map(([key, value]) => (react_1.default.createElement(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
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
|
+
react_1.default.createElement(CatalogEntityInfoBar_1.CatalogEntityInfoBar, { leftContent: react_1.default.createElement(Label, null,
|
|
22
|
+
react_1.default.createElement(LinkIcon_1.LinkIcon, null),
|
|
23
|
+
" ",
|
|
24
|
+
value.label), rightContent: react_1.default.createElement(LaunchIcon_1.LaunchIcon, null), withSeparator: false }))))));
|
|
25
25
|
}
|
|
26
26
|
const LinksWrapper = styled_components_1.default.div `
|
|
27
27
|
display: flex;
|
|
@@ -60,7 +60,7 @@ function CatalogEntityMetadata({ entity }) {
|
|
|
60
60
|
react_1.default.createElement(Heading, null, translate('catalog.entity.metadata.title')),
|
|
61
61
|
visibleMetadata.map(([key, value]) => (react_1.default.createElement(CatalogEntityInfoBar_1.CatalogEntityInfoBar, { key: key, leftContent: react_1.default.createElement(Label, null,
|
|
62
62
|
(0, utils_1.capitalize)(key),
|
|
63
|
-
":"), rightContent: react_1.default.createElement(Value, null, value) }))),
|
|
63
|
+
":"), rightContent: react_1.default.createElement(Value, null, value), hoverEffect: false }))),
|
|
64
64
|
hasMoreItems && (react_1.default.createElement(ShowMoreButton, { onClick: () => setIsOn(!isOn) },
|
|
65
65
|
isOn ? 'Show less' : 'Show more',
|
|
66
66
|
" ",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BffCatalogEntity } from '../../../core/types';
|
|
3
|
+
export type CatalogEntityMethodAndPathProps = {
|
|
4
|
+
entity: BffCatalogEntity;
|
|
5
|
+
};
|
|
6
|
+
export declare function CatalogEntityMethodAndPath({ entity }: CatalogEntityMethodAndPathProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CatalogEntityMethodAndPath = CatalogEntityMethodAndPath;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const CatalogEntityInfoBar_1 = require("../../../components/Catalog/CatalogEntity/CatalogEntityInfoBar");
|
|
10
|
+
const HttpTag_1 = require("../../../components/Tags/HttpTag");
|
|
11
|
+
function CatalogEntityMethodAndPath({ entity }) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const method = (_a = entity.metadata) === null || _a === void 0 ? void 0 : _a.method;
|
|
14
|
+
const path = (_b = entity.metadata) === null || _b === void 0 ? void 0 : _b.path;
|
|
15
|
+
if (!method || !path) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (react_1.default.createElement(LinksWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityMethodAndPath" },
|
|
19
|
+
react_1.default.createElement(Heading, null, "Method & Path"),
|
|
20
|
+
react_1.default.createElement(CatalogEntityInfoBar_1.CatalogEntityInfoBar, { leftContent: react_1.default.createElement(Label, null,
|
|
21
|
+
react_1.default.createElement(MethodTag, { color: method.toLowerCase() }, method),
|
|
22
|
+
path), withSeparator: false })));
|
|
23
|
+
}
|
|
24
|
+
const MethodTag = (0, styled_components_1.default)(HttpTag_1.HttpTag) `
|
|
25
|
+
width: auto;
|
|
26
|
+
justify-content: start;
|
|
27
|
+
margin-right: var(--spacing-xxs);
|
|
28
|
+
`;
|
|
29
|
+
const LinksWrapper = styled_components_1.default.div `
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: var(--spacing-xs);
|
|
33
|
+
border-radius: var(--border-radius);
|
|
34
|
+
background-color: var(--catalog-metadata-bg-color);
|
|
35
|
+
transition: all 0.2s ease-in-out;
|
|
36
|
+
margin: var(--spacing-lg) 0;
|
|
37
|
+
`;
|
|
38
|
+
const Label = styled_components_1.default.div `
|
|
39
|
+
display: flex;
|
|
40
|
+
`;
|
|
41
|
+
const Heading = styled_components_1.default.h2 `
|
|
42
|
+
margin-bottom: var(--spacing-sm);
|
|
43
|
+
margin-top: 0;
|
|
44
|
+
font-size: var(--font-size-md);
|
|
45
|
+
color: var(--catalog-metadata-heading-color);
|
|
46
|
+
`;
|
|
47
|
+
//# sourceMappingURL=CatalogEntityMethodAndPath.js.map
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ApiDescriptionProperty = ApiDescriptionProperty;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const react_router_dom_1 = require("react-router-dom");
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
10
|
const theme_1 = require("../../../../index.js");
|
|
10
11
|
const CatalogEntityPropertyCard_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard");
|
|
11
12
|
function ApiDescriptionProperty({ entity }) {
|
|
@@ -18,8 +19,14 @@ function ApiDescriptionProperty({ entity }) {
|
|
|
18
19
|
return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty" },
|
|
19
20
|
react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
21
|
react_1.default.createElement(theme_1.DocumentIcon, null),
|
|
21
|
-
translate('catalog.entity.properties.apiDescription.title')), content: react_1.default.createElement(theme_1.Tag,
|
|
22
|
+
translate('catalog.entity.properties.apiDescription.title')), content: react_1.default.createElement(theme_1.Tag, { textTransform: "none" },
|
|
23
|
+
react_1.default.createElement(DescriptionFile, null, descriptionFile)), onClick: () => {
|
|
22
24
|
navigate(`${pathPrefix}/${descriptionFile}`);
|
|
23
25
|
} })));
|
|
24
26
|
}
|
|
27
|
+
const DescriptionFile = styled_components_1.default.span `
|
|
28
|
+
word-break: break-all;
|
|
29
|
+
overflow-wrap: break-word;
|
|
30
|
+
white-space: normal;
|
|
31
|
+
`;
|
|
25
32
|
//# sourceMappingURL=ApiDescriptionProperty.js.map
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export type CatalogEntityPropertyCardProps = {
|
|
|
3
3
|
header: ReactNode;
|
|
4
4
|
content: ReactNode;
|
|
5
5
|
onClick?: () => void;
|
|
6
|
+
hoverEffect?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare function CatalogEntityPropertyCard({ header, content, onClick, }: CatalogEntityPropertyCardProps): JSX.Element;
|
|
8
|
+
export declare function CatalogEntityPropertyCard({ header, content, onClick, hoverEffect, }: CatalogEntityPropertyCardProps): JSX.Element;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CatalogEntityPropertyCard = CatalogEntityPropertyCard;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
function CatalogEntityPropertyCard({ header, content, onClick, }) {
|
|
10
|
-
return (react_1.default.createElement(CatalogEntityPropertyWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard", onClick: onClick },
|
|
9
|
+
function CatalogEntityPropertyCard({ header, content, onClick, hoverEffect = true, }) {
|
|
10
|
+
return (react_1.default.createElement(CatalogEntityPropertyWrapper, { "data-component-name": "Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard", onClick: onClick, hoverEffect: hoverEffect },
|
|
11
11
|
react_1.default.createElement(CardHeader, null, header),
|
|
12
12
|
react_1.default.createElement(CardContent, null, content)));
|
|
13
13
|
}
|
|
@@ -24,9 +24,12 @@ const CatalogEntityPropertyWrapper = styled_components_1.default.div `
|
|
|
24
24
|
padding: var(--catalog-card-padding-vertical) var(--catalog-card-padding-horizontal);
|
|
25
25
|
gap: var(--catalog-card-content-gap-vertical);
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
${({ hoverEffect }) => hoverEffect &&
|
|
28
|
+
`
|
|
29
|
+
&:hover {
|
|
30
|
+
border-color: var(--catalog-card-border-color-hover);
|
|
31
|
+
}
|
|
32
|
+
`}
|
|
30
33
|
|
|
31
34
|
${(props) => props.onClick &&
|
|
32
35
|
`
|
|
@@ -20,6 +20,6 @@ function EntityTypeProperty({ entity }) {
|
|
|
20
20
|
react_1.default.createElement(EntityTypeIcon_1.EntityTypeIcon, null),
|
|
21
21
|
"Entity type"), content: react_1.default.createElement(react_1.default.Fragment, null,
|
|
22
22
|
react_1.default.createElement(CatalogEntityTypeIcon_1.CatalogEntityTypeIcon, { entityType: entity.type }),
|
|
23
|
-
formatEntityType(entity.type)) })));
|
|
23
|
+
formatEntityType(entity.type)), hoverEffect: false })));
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=EntityTypeProperty.js.map
|
|
@@ -14,6 +14,6 @@ function FormatProperty({ entity }) {
|
|
|
14
14
|
react_1.default.createElement(CatalogEntityPropertyCard_1.CatalogEntityPropertyCard, { header: react_1.default.createElement(react_1.default.Fragment, null,
|
|
15
15
|
react_1.default.createElement(NotesIcon_1.NotesIcon, null),
|
|
16
16
|
"Format"), content: react_1.default.createElement(react_1.default.Fragment, null,
|
|
17
|
-
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)) })));
|
|
17
|
+
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
18
|
}
|
|
19
19
|
//# sourceMappingURL=FormatProperty.js.map
|
|
@@ -18,5 +18,6 @@ export type CatalogEntityDefaultRelationsProps = {
|
|
|
18
18
|
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
19
19
|
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
20
20
|
shouldShowLoadMore: boolean;
|
|
21
|
+
shouldShowHeading?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }: CatalogEntityDefaultRelationsProps): JSX.Element;
|
|
23
|
+
export declare function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, shouldShowHeading, }: CatalogEntityDefaultRelationsProps): JSX.Element;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js
CHANGED
|
@@ -33,8 +33,8 @@ const columns = [
|
|
|
33
33
|
width: '1fr',
|
|
34
34
|
},
|
|
35
35
|
];
|
|
36
|
-
function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }) {
|
|
36
|
+
function CatalogEntityDefaultRelations({ entity, relations, query, searchQuery, setSearchQuery, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, shouldShowHeading = true, }) {
|
|
37
37
|
return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations" },
|
|
38
|
-
react_1.default.createElement(CatalogEntityRelationsTable_1.CatalogEntityRelationsTable, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, heading:
|
|
38
|
+
react_1.default.createElement(CatalogEntityRelationsTable_1.CatalogEntityRelationsTable, { entity: entity, catalogConfig: catalogConfig, entitiesCatalogConfig: entitiesCatalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, heading: shouldShowHeading ? 'Related entities' : undefined, columns: columns, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore })));
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=CatalogEntityDefaultRelations.js.map
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts
CHANGED
|
@@ -6,5 +6,7 @@ export type CatalogEntityRelationsProps = {
|
|
|
6
6
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
|
7
7
|
catalogConfig: CatalogEntityConfig;
|
|
8
8
|
initialRelations: BffCatalogRelatedEntityList;
|
|
9
|
+
searchQuery: string;
|
|
10
|
+
setSearchQuery: (query: string) => void;
|
|
9
11
|
};
|
|
10
|
-
export declare function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelations, catalogConfig, }: CatalogEntityRelationsProps): JSX.Element | null;
|
|
12
|
+
export declare function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelations, catalogConfig, searchQuery, setSearchQuery, }: CatalogEntityRelationsProps): JSX.Element | null;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js
CHANGED
|
@@ -32,16 +32,12 @@ const LOAD_MORE_THRESHOLD = 10;
|
|
|
32
32
|
const ENTITY_DEFAULT_FILTERS = {
|
|
33
33
|
team: 'type:user',
|
|
34
34
|
};
|
|
35
|
-
function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelations, catalogConfig, }) {
|
|
35
|
+
function CatalogEntityRelations({ entity, entitiesCatalogConfig, initialRelations, catalogConfig, searchQuery, setSearchQuery, }) {
|
|
36
36
|
var _a;
|
|
37
|
-
const { useCatalogSort,
|
|
37
|
+
const { useCatalogSort, useFetchCatalogEntitiesRelations } = (0, hooks_1.useThemeHooks)();
|
|
38
38
|
const { sortOption, setSortOption, handleSortClick, isColumnSorted } = useCatalogSort();
|
|
39
|
-
const { searchQuery, setSearchQuery } = useCatalogSearch();
|
|
40
39
|
const [filter, setFilter] = (0, react_1.useState)((_a = ENTITY_DEFAULT_FILTERS[entity.type]) !== null && _a !== void 0 ? _a : '');
|
|
41
40
|
const { items: relations, query } = useFetchCatalogEntitiesRelations({ entityKey: entity.key, search: searchQuery, sort: sortOption !== null && sortOption !== void 0 ? sortOption : undefined, filter }, initialRelations);
|
|
42
|
-
if (relations.length === 0) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
41
|
const shouldShowLoadMore = query.hasNextPage ||
|
|
46
42
|
(query.isPlaceholderData && relations && relations.length >= LOAD_MORE_THRESHOLD);
|
|
47
43
|
switch (entity.type) {
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts
CHANGED
|
@@ -13,12 +13,13 @@ export type CatalogEntityRelationsTableProps = {
|
|
|
13
13
|
};
|
|
14
14
|
searchQuery: string;
|
|
15
15
|
setSearchQuery: (query: string) => void;
|
|
16
|
-
heading
|
|
16
|
+
heading?: string;
|
|
17
17
|
columns: CatalogColumn<BffCatalogRelatedEntity>[];
|
|
18
18
|
sortOption: SortOption | null;
|
|
19
19
|
setSortOption: (sortOption: SortOption | null) => void;
|
|
20
20
|
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
21
21
|
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
22
22
|
shouldShowLoadMore: boolean;
|
|
23
|
+
listType?: 'default' | 'team';
|
|
23
24
|
};
|
|
24
|
-
export declare function CatalogEntityRelationsTable({ entitiesCatalogConfig, catalogConfig, relations, query, searchQuery, setSearchQuery, heading, columns, setSortOption, sortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }: CatalogEntityRelationsTableProps): JSX.Element;
|
|
25
|
+
export declare function CatalogEntityRelationsTable({ entitiesCatalogConfig, catalogConfig, relations, query, searchQuery, setSearchQuery, heading, columns, setSortOption, sortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, listType, }: CatalogEntityRelationsTableProps): JSX.Element;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js
CHANGED
|
@@ -11,12 +11,12 @@ const LoadMore_1 = require("../../../../components/LoadMore/LoadMore");
|
|
|
11
11
|
const CatalogTableView_1 = require("../../../../components/Catalog/CatalogTableView/CatalogTableView");
|
|
12
12
|
const CatalogActionsRow_1 = require("../../../../components/Catalog/CatalogActionsRow");
|
|
13
13
|
const CatalogHighlight_1 = require("../../../../components/Catalog/CatalogHighlight");
|
|
14
|
-
|
|
14
|
+
const CatalogEntitiesEmptyState_1 = require("../../../../components/Catalog/CatalogEntitiesEmptyState");
|
|
15
|
+
function CatalogEntityRelationsTable({ entitiesCatalogConfig, catalogConfig, relations, query, searchQuery, setSearchQuery, heading, columns, setSortOption, sortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, listType, }) {
|
|
15
16
|
return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable" },
|
|
16
|
-
react_1.default.createElement(Heading, null, heading),
|
|
17
|
-
react_1.default.createElement(CatalogActionsRow_1.CatalogActionsRow, { searchQuery: searchQuery, setSearchQuery: setSearchQuery, sortOption: sortOption, setSortOption: setSortOption, style: { marginBottom: '12px' } }),
|
|
18
|
-
relations.length > 0
|
|
19
|
-
react_1.default.createElement(CatalogTableView_1.CatalogTableView, { entities: relations, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, columns: columns, setSortOption: setSortOption, currentSortOption: sortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted }))),
|
|
17
|
+
heading && react_1.default.createElement(Heading, null, heading),
|
|
18
|
+
(searchQuery || relations.length > 0) && (react_1.default.createElement(CatalogActionsRow_1.CatalogActionsRow, { searchQuery: searchQuery, setSearchQuery: setSearchQuery, sortOption: sortOption, setSortOption: setSortOption, style: { marginBottom: '12px' } })),
|
|
19
|
+
react_1.default.createElement(CatalogHighlight_1.HighlightContext.Provider, { value: [searchQuery] }, relations.length > 0 ? (react_1.default.createElement(CatalogTableView_1.CatalogTableView, { entities: relations, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, columns: columns, setSortOption: setSortOption, currentSortOption: sortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, style: { marginTop: 0 } })) : (react_1.default.createElement(CatalogEntitiesEmptyState_1.CatalogEntitiesEmptyState, { listType: listType }))),
|
|
20
20
|
shouldShowLoadMore && (react_1.default.createElement(LoadMore_1.LoadMore, { icon: react_1.default.createElement(ArrowDownIcon_1.ArrowDownIcon, { size: "var(--catalog-load-more-icon-size)" }), onClick: query.fetchNextPage, disabled: query.isFetchingNextPage, blinking: query.isFetchingNextPage, label: query.isFetchingNextPage ? 'Loading...' : 'Load More' }))));
|
|
21
21
|
}
|
|
22
22
|
const Heading = styled_components_1.default.h2 `
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js
CHANGED
|
@@ -48,9 +48,9 @@ function CatalogEntityTeamRelations({ entity, relations, query, searchQuery, set
|
|
|
48
48
|
return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations" },
|
|
49
49
|
react_1.default.createElement(Tabs_1.Tabs, { forceReady: relations.length > 0, size: Tabs_1.TabsSize.MEDIUM },
|
|
50
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,
|
|
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 })))));
|
|
51
|
+
react_1.default.createElement(CatalogEntityRelationsTable_1.CatalogEntityRelationsTable, { key: `members-${relations.length}-${relations.map((r) => r.id).join(',')}`, entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, columns: teamColumns, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore, listType: "team" })),
|
|
52
|
+
react_1.default.createElement(TabItem, { label: "Related entities", icon: react_1.default.createElement(EntityTypeIcon_1.EntityTypeIcon, null), onClick: () => setFilter('-type:user') },
|
|
53
|
+
react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { key: `related-${relations.length}-${relations.map((r) => r.id).join(',')}`, 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, shouldShowHeading: false })))));
|
|
54
54
|
}
|
|
55
55
|
const TabItem = styled_components_1.default.div `
|
|
56
56
|
padding: 12px;
|
|
@@ -26,11 +26,13 @@ const getEntityTagColor = (type) => {
|
|
|
26
26
|
};
|
|
27
27
|
exports.getEntityTagColor = getEntityTagColor;
|
|
28
28
|
function CatalogEntityTypeTag({ entityType }) {
|
|
29
|
-
return (react_1.default.createElement(EntityTypeTagWrapper, {
|
|
29
|
+
return (react_1.default.createElement(EntityTypeTagWrapper, { entityType: entityType }, entityType));
|
|
30
30
|
}
|
|
31
31
|
const EntityTypeTagWrapper = (0, styled_components_1.default)(Tag_1.Tag) `
|
|
32
32
|
font-size: var(--font-size-base);
|
|
33
33
|
background-color: transparent;
|
|
34
34
|
text-transform: lowercase;
|
|
35
|
+
border: 1px solid ${({ entityType }) => `var(--catalog-entity-border-color-${entityType})`};
|
|
36
|
+
color: ${({ entityType }) => `var(--catalog-entity-icon-color-${entityType})`};
|
|
35
37
|
`;
|
|
36
38
|
//# sourceMappingURL=CatalogEntityTypeTag.js.map
|
|
@@ -17,6 +17,7 @@ export type CatalogTableViewProps<T extends BaseEntity> = {
|
|
|
17
17
|
currentSortOption?: SortOption | null;
|
|
18
18
|
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
19
19
|
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
20
|
+
style?: React.CSSProperties;
|
|
20
21
|
};
|
|
21
22
|
export type CatalogColumn<T> = {
|
|
22
23
|
key: string;
|
|
@@ -27,4 +28,4 @@ export type CatalogColumn<T> = {
|
|
|
27
28
|
sortable?: boolean;
|
|
28
29
|
sortKey?: string;
|
|
29
30
|
};
|
|
30
|
-
export declare const CatalogTableView: <T extends BaseEntity>({ entities, entitiesCatalogConfig, catalogConfig, columns, setSortOption, currentSortOption, handleSortClick, isColumnSorted, }: CatalogTableViewProps<T>) => React.JSX.Element;
|
|
31
|
+
export declare const CatalogTableView: <T extends BaseEntity>({ entities, entitiesCatalogConfig, catalogConfig, columns, setSortOption, currentSortOption, handleSortClick, isColumnSorted, style, }: CatalogTableViewProps<T>) => React.JSX.Element;
|
|
@@ -60,8 +60,8 @@ const baseColumns = [
|
|
|
60
60
|
minWidth: '120px',
|
|
61
61
|
},
|
|
62
62
|
];
|
|
63
|
-
const CatalogTableView = ({ entities, entitiesCatalogConfig, catalogConfig, columns = baseColumns, setSortOption, currentSortOption, handleSortClick, isColumnSorted, }) => {
|
|
64
|
-
return (react_1.default.createElement(CatalogTableWrapper, { "data-component-name": "Catalog/CatalogTableView" },
|
|
63
|
+
const CatalogTableView = ({ entities, entitiesCatalogConfig, catalogConfig, columns = baseColumns, setSortOption, currentSortOption, handleSortClick, isColumnSorted, style, }) => {
|
|
64
|
+
return (react_1.default.createElement(CatalogTableWrapper, { "data-component-name": "Catalog/CatalogTableView", style: style },
|
|
65
65
|
react_1.default.createElement(CatalogTableHeader, { columnsWidths: columns.map((column) => column.width || '1fr'), columnsMinWidths: columns.map((column) => column.minWidth || 'auto') }, columns.map((column) => (react_1.default.createElement(CatalogTableHeaderCell_1.CatalogTableHeaderCell, { key: column.key, column: column, setSortOption: setSortOption, currentSortOption: currentSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted })))),
|
|
66
66
|
react_1.default.createElement("div", null, entities.map((entity) => (react_1.default.createElement(CatalogTableViewRow_1.CatalogTableViewRow, { key: entity.id, entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, columns: columns }))))));
|
|
67
67
|
};
|
|
@@ -9,10 +9,14 @@ const react_1 = __importDefault(require("react"));
|
|
|
9
9
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
10
|
const CatalogHighlight_1 = require("../../../components/Catalog/CatalogHighlight");
|
|
11
11
|
const extractInitials = (name) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const trimmedName = name === null || name === void 0 ? void 0 : name.trim();
|
|
13
|
+
if (!trimmedName)
|
|
14
|
+
return '';
|
|
15
|
+
const initials = trimmedName.split(' ').map((n) => n[0]);
|
|
16
|
+
if (initials.length === 1) {
|
|
17
|
+
return initials[0];
|
|
18
|
+
}
|
|
19
|
+
return initials[0] + initials[initials.length - 1];
|
|
16
20
|
};
|
|
17
21
|
function CatalogUserEntityCell({ name, email }) {
|
|
18
22
|
return (react_1.default.createElement(EntityTitleCellWrapper, { "data-component-name": "Catalog/CatalogTableView/CatalogUserEntityCell" },
|
|
@@ -105,7 +105,7 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
105
105
|
--catalog-entity-bg-color: var(--bg-color-tonal);
|
|
106
106
|
|
|
107
107
|
--catalog-entity-icon-color-service: var(--color-blue-6);
|
|
108
|
-
--catalog-entity-border-color-service: var(--color-
|
|
108
|
+
--catalog-entity-border-color-service: var(--color-blue-4);
|
|
109
109
|
--catalog-entity-bg-color-service: var(--color-blue-1);
|
|
110
110
|
|
|
111
111
|
--catalog-entity-icon-color-domain: var(--color-grass-8);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Location } from 'react-router-dom';
|
|
2
2
|
export type UseActiveSectionIdReturnType = string;
|
|
3
|
-
export declare function useActiveSectionId(location: Location, hasOverviewPage?: boolean, withNavbar?: boolean): UseActiveSectionIdReturnType;
|
|
3
|
+
export declare function useActiveSectionId(location: Location, hasOverviewPage?: boolean, withNavbar?: boolean, sectionOffset?: number): UseActiveSectionIdReturnType;
|
|
@@ -7,10 +7,10 @@ exports.useActiveSectionId = useActiveSectionId;
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const lodash_throttle_1 = __importDefault(require("lodash.throttle"));
|
|
9
9
|
const use_navbar_height_1 = require("./use-navbar-height");
|
|
10
|
-
function useActiveSectionId(location, hasOverviewPage = false, withNavbar = true) {
|
|
10
|
+
function useActiveSectionId(location, hasOverviewPage = false, withNavbar = true, sectionOffset = 150) {
|
|
11
11
|
const [itemId, setItemId] = (0, react_1.useState)('');
|
|
12
12
|
const navbarHeight = (0, use_navbar_height_1.useNavbarHeight)(location);
|
|
13
|
-
const heightOffset = (withNavbar ? navbarHeight : 0) +
|
|
13
|
+
const heightOffset = (withNavbar ? navbarHeight : 0) + sectionOffset;
|
|
14
14
|
const scrollListener = (0, react_1.useMemo)(() => (0, lodash_throttle_1.default)(() => {
|
|
15
15
|
const sections = document.querySelectorAll('[data-section-id]');
|
|
16
16
|
if (sections.length < 2) {
|
package/lib/core/types/l10n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TOptions } from 'i18next';
|
|
2
|
-
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label';
|
|
2
|
+
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label';
|
|
3
3
|
export type Locale = {
|
|
4
4
|
code: string;
|
|
5
5
|
name: string;
|