@redocly/theme 0.56.0-next.2 → 0.56.0-next.4
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/CatalogCardView/CatalogCard.js +4 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +4 -11
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +7 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +4 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +7 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +19 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +1 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +11 -8
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +0 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +11 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +55 -0
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntityIcon.js +22 -23
- package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +11 -23
- package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +7 -0
- package/lib/components/Catalog/CatalogEntityTypeTag.js +36 -0
- package/lib/components/Catalog/CatalogPageDescription.js +2 -2
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -4
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -14
- package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.d.ts +3 -0
- package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.js +11 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +3 -26
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +5 -26
- package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +1 -1
- package/lib/components/Catalog/CatalogTagsWithTooltip.js +5 -6
- package/lib/components/Catalog/variables.js +36 -7
- package/lib/components/Menu/variables.js +2 -0
- package/lib/components/Tag/Tag.d.ts +2 -1
- package/lib/components/Tag/Tag.js +3 -3
- package/lib/components/Tag/variables.js +14 -0
- package/lib/components/Tags/CounterTag.d.ts +1 -1
- package/lib/components/Tags/HttpTag.d.ts +1 -1
- package/lib/core/constants/catalog.d.ts +3 -0
- package/lib/core/constants/catalog.js +55 -1
- package/lib/core/constants/index.d.ts +5 -5
- package/lib/core/constants/index.js +5 -5
- package/lib/core/constants/search.d.ts +1 -1
- package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.d.ts +1 -1
- package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.d.ts +1 -1
- package/lib/core/contexts/ThemeDataContext.d.ts +1 -1
- package/lib/core/contexts/index.d.ts +3 -3
- package/lib/core/contexts/index.js +3 -3
- package/lib/core/hoc/index.d.ts +1 -1
- package/lib/core/hoc/index.js +1 -1
- package/lib/core/hooks/__mocks__/index.d.ts +28 -28
- package/lib/core/hooks/__mocks__/index.js +28 -28
- package/lib/core/hooks/catalog/useCatalogEntities.d.ts +1 -1
- package/lib/core/hooks/catalog/useCatalogTableViewRow.js +2 -2
- package/lib/core/hooks/code-walkthrough/use-code-panel.js +6 -5
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.js +8 -5
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +1 -1
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.js +9 -9
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +2 -2
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough.js +4 -3
- package/lib/core/hooks/code-walkthrough/use-renderable-files.js +6 -4
- package/lib/core/hooks/feedback/use-report-dialog.js +4 -3
- package/lib/core/hooks/index.d.ts +42 -42
- package/lib/core/hooks/index.js +42 -42
- package/lib/core/hooks/menu/use-menu-item-expanded.d.ts +1 -1
- package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +1 -1
- package/lib/core/hooks/menu/use-mobile-menu-items.js +13 -12
- package/lib/core/hooks/menu/use-mobile-menu-levels.d.ts +1 -1
- package/lib/core/hooks/menu/use-mobile-menu-levels.js +8 -7
- package/lib/core/hooks/menu/use-nested-menu.d.ts +1 -1
- package/lib/core/hooks/menu/use-nested-menu.js +8 -6
- package/lib/core/hooks/search/use-recent-searches.js +3 -3
- package/lib/core/hooks/search/use-search-dialog.js +4 -3
- package/lib/core/hooks/search/use-search-filter.d.ts +1 -1
- package/lib/core/hooks/search/use-suggested-pages.js +2 -2
- package/lib/core/hooks/use-active-page-version.js +2 -2
- package/lib/core/hooks/use-active-section-id.js +2 -2
- package/lib/core/hooks/use-color-switcher.js +4 -3
- package/lib/core/hooks/use-input-key-commands.js +2 -2
- package/lib/core/hooks/use-language-picker.d.ts +1 -1
- package/lib/core/hooks/use-language-picker.js +4 -4
- package/lib/core/hooks/use-mobile-menu.js +2 -2
- package/lib/core/hooks/use-navbar-height.js +3 -3
- package/lib/core/hooks/use-page-versions.js +2 -2
- package/lib/core/hooks/use-product-picker.js +2 -2
- package/lib/core/hooks/use-theme-config.js +2 -2
- package/lib/core/hooks/use-theme-hooks.d.ts +1 -1
- package/lib/core/hooks/use-theme-hooks.js +2 -2
- package/lib/core/hooks/use-time-ago.js +2 -2
- package/lib/core/hooks/use-user-teams.js +2 -2
- package/lib/core/index.d.ts +7 -7
- package/lib/core/index.js +7 -7
- package/lib/core/openapi/index.d.ts +18 -0
- package/lib/core/openapi/index.js +48 -0
- package/lib/core/styles/global.js +1 -1
- package/lib/core/styles/index.d.ts +2 -2
- package/lib/core/styles/index.js +2 -2
- package/lib/core/templates/Markdown.d.ts +1 -1
- package/lib/core/templates/Markdown.js +8 -6
- package/lib/core/types/catalog.d.ts +6 -2
- package/lib/core/types/code-walkthrough.d.ts +1 -1
- package/lib/core/types/feedback.d.ts +1 -1
- package/lib/core/types/filter.d.ts +1 -1
- package/lib/core/types/hooks.d.ts +11 -3
- package/lib/core/types/index.d.ts +18 -18
- package/lib/core/types/index.js +18 -18
- package/lib/core/types/l10n.d.ts +1 -1
- package/lib/core/types/search.d.ts +1 -1
- package/lib/core/types/sidebar.d.ts +1 -1
- package/lib/core/utils/download-code-walkthrough.js +6 -4
- package/lib/core/utils/get-code-walkthrough-file-text.js +4 -3
- package/lib/core/utils/index.d.ts +35 -35
- package/lib/core/utils/index.js +35 -35
- package/lib/core/utils/load-and-navigate.js +2 -2
- package/lib/core/utils/match-code-walkthrough-conditions.js +3 -3
- package/lib/core/utils/menu.d.ts +3 -2
- package/lib/core/utils/menu.js +12 -12
- package/lib/core/utils/toc.d.ts +1 -1
- package/lib/core/utils/type-guards.d.ts +1 -1
- package/lib/core/utils/type-guards.js +5 -5
- package/lib/core/utils/urls.d.ts +1 -1
- package/lib/core/utils/urls.js +2 -2
- package/lib/icons/MoleculesIcon/MoleculesIcon.d.ts +9 -0
- package/lib/icons/MoleculesIcon/MoleculesIcon.js +22 -0
- package/lib/icons/NetworkIcon/NetworkIcon.d.ts +9 -0
- package/lib/icons/NetworkIcon/NetworkIcon.js +23 -0
- package/lib/icons/NotesIcon/NotesIcon.d.ts +9 -0
- package/lib/icons/NotesIcon/NotesIcon.js +26 -0
- package/lib/markdoc/components/Tabs/TabList.js +2 -0
- package/package.json +2 -2
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +6 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +7 -15
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +7 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +4 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +2 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +10 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +36 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +19 -22
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +8 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +0 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +52 -0
- package/src/components/Catalog/CatalogEntityIcon.tsx +33 -27
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +23 -28
- package/src/components/Catalog/CatalogEntityTypeTag.tsx +43 -0
- package/src/components/Catalog/CatalogPageDescription.tsx +4 -3
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +7 -20
- package/src/components/Catalog/CatalogTableView/CatalogEntityRelationCell.tsx +19 -0
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -2
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +3 -31
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +5 -31
- package/src/components/Catalog/CatalogTagsWithTooltip.tsx +10 -19
- package/src/components/Catalog/variables.ts +36 -7
- package/src/components/Menu/variables.ts +2 -0
- package/src/components/Tag/Tag.tsx +11 -2
- package/src/components/Tag/variables.ts +14 -0
- package/src/core/constants/catalog.ts +58 -0
- package/src/core/constants/index.ts +5 -5
- package/src/core/constants/search.ts +1 -1
- package/src/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.tsx +1 -1
- package/src/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.tsx +1 -1
- package/src/core/contexts/ThemeDataContext.tsx +3 -3
- package/src/core/contexts/index.ts +3 -3
- package/src/core/hoc/index.ts +1 -1
- package/src/core/hooks/__mocks__/index.ts +28 -28
- package/src/core/hooks/catalog/useCatalogEntities.ts +1 -1
- package/src/core/hooks/catalog/useCatalogTableViewRow.ts +1 -1
- package/src/core/hooks/code-walkthrough/use-code-panel.ts +3 -5
- package/src/core/hooks/code-walkthrough/use-code-walkthrough-controls.ts +4 -6
- package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +4 -3
- package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +3 -3
- package/src/core/hooks/code-walkthrough/use-renderable-files.ts +4 -6
- package/src/core/hooks/feedback/use-report-dialog.ts +3 -2
- package/src/core/hooks/index.ts +42 -42
- package/src/core/hooks/menu/use-menu-item-expanded.ts +1 -1
- package/src/core/hooks/menu/use-mobile-menu-items.ts +4 -7
- package/src/core/hooks/menu/use-mobile-menu-levels.ts +3 -2
- package/src/core/hooks/menu/use-nested-menu.ts +5 -3
- package/src/core/hooks/search/use-recent-searches.ts +1 -1
- package/src/core/hooks/search/use-search-dialog.ts +2 -1
- package/src/core/hooks/search/use-search-filter.ts +1 -1
- package/src/core/hooks/search/use-suggested-pages.ts +1 -1
- package/src/core/hooks/use-active-page-version.ts +1 -1
- package/src/core/hooks/use-active-section-id.ts +1 -1
- package/src/core/hooks/use-codeblock-tabs-controls.ts +1 -1
- package/src/core/hooks/use-color-switcher.ts +2 -1
- package/src/core/hooks/use-input-key-commands.ts +1 -1
- package/src/core/hooks/use-language-picker.ts +3 -3
- package/src/core/hooks/use-mobile-menu.ts +1 -1
- package/src/core/hooks/use-navbar-height.ts +1 -1
- package/src/core/hooks/use-page-versions.ts +1 -1
- package/src/core/hooks/use-product-picker.ts +1 -1
- package/src/core/hooks/use-theme-config.ts +2 -2
- package/src/core/hooks/use-theme-hooks.ts +2 -2
- package/src/core/hooks/use-time-ago.ts +3 -2
- package/src/core/hooks/use-user-teams.ts +1 -1
- package/src/core/index.ts +7 -7
- package/src/core/openapi/index.ts +31 -0
- package/src/core/styles/global.ts +2 -1
- package/src/core/styles/index.ts +2 -2
- package/src/core/templates/Markdown.tsx +8 -4
- package/src/core/types/catalog.ts +15 -2
- package/src/core/types/code-walkthrough.ts +1 -1
- package/src/core/types/feedback.ts +6 -6
- package/src/core/types/filter.ts +1 -1
- package/src/core/types/hooks.ts +17 -16
- package/src/core/types/index.ts +18 -18
- package/src/core/types/l10n.ts +4 -0
- package/src/core/types/search.ts +1 -1
- package/src/core/types/sidebar.ts +1 -1
- package/src/core/utils/download-code-walkthrough.ts +3 -5
- package/src/core/utils/get-code-walkthrough-file-text.ts +2 -1
- package/src/core/utils/index.ts +35 -35
- package/src/core/utils/load-and-navigate.ts +1 -1
- package/src/core/utils/match-code-walkthrough-conditions.ts +1 -1
- package/src/core/utils/menu.ts +4 -3
- package/src/core/utils/toc.ts +1 -1
- package/src/core/utils/type-guards.ts +2 -2
- package/src/core/utils/urls.ts +2 -2
- package/src/icons/MoleculesIcon/MoleculesIcon.tsx +23 -0
- package/src/icons/NetworkIcon/NetworkIcon.tsx +31 -0
- package/src/icons/NotesIcon/NotesIcon.tsx +43 -0
- package/src/markdoc/components/Tabs/TabList.tsx +1 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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 {};
|
|
@@ -7,11 +7,10 @@ exports.CatalogEntityCell = CatalogEntityCell;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const CatalogHighlight_1 = require("../../../components/Catalog/CatalogHighlight");
|
|
10
|
-
const
|
|
10
|
+
const CatalogEntityTypeIcon_1 = require("../../../components/Catalog/CatalogEntityTypeIcon");
|
|
11
11
|
function CatalogEntityCell({ entity }) {
|
|
12
12
|
return (react_1.default.createElement(EntityTitleCellWrapper, { "data-component-name": "Catalog/CatalogTableView/CatalogEntityCell" },
|
|
13
|
-
react_1.default.createElement(
|
|
14
|
-
react_1.default.createElement(CatalogEntityIcon_1.CatalogEntityIcon, { entityType: entity.type })),
|
|
13
|
+
react_1.default.createElement(CatalogEntityTypeIcon_1.CatalogEntityTypeIcon, { entityType: entity.type, defaultColor: true }),
|
|
15
14
|
react_1.default.createElement(EntityTitleContent, null,
|
|
16
15
|
react_1.default.createElement(EntityTitle, null,
|
|
17
16
|
react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, entity.title)),
|
|
@@ -24,17 +23,6 @@ const EntityTitleCellWrapper = styled_components_1.default.div `
|
|
|
24
23
|
gap: var(--catalog-table-title-cell-gap);
|
|
25
24
|
max-width: 100%;
|
|
26
25
|
`;
|
|
27
|
-
const IconContainer = styled_components_1.default.div `
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
width: var(--catalog-table-icon-width);
|
|
32
|
-
height: var(--catalog-table-icon-height);
|
|
33
|
-
border-radius: var(--catalog-table-icon-border-radius);
|
|
34
|
-
background-color: var(--catalog-table-icon-bg-color);
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
border: var(--catalog-table-icon-border-width) solid var(--catalog-table-icon-border-color);
|
|
37
|
-
`;
|
|
38
26
|
const EntityTitleContent = styled_components_1.default.div `
|
|
39
27
|
display: flex;
|
|
40
28
|
flex-direction: column;
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SortOption } from '../../../core/types';
|
|
3
|
-
import { BaseEntity, CatalogColumn } from '
|
|
3
|
+
import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
|
|
4
4
|
export type CatalogTableHeaderCellProps<T extends BaseEntity> = {
|
|
5
5
|
column: CatalogColumn<T>;
|
|
6
6
|
setSortOption: (sortOption: SortOption | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import {
|
|
3
|
+
import { SortOption } from '../../../core/types';
|
|
4
4
|
export type BaseEntity = {
|
|
5
5
|
id: string;
|
|
6
6
|
key: string;
|
|
@@ -27,5 +27,4 @@ export type CatalogColumn<T> = {
|
|
|
27
27
|
sortable?: boolean;
|
|
28
28
|
sortKey?: string;
|
|
29
29
|
};
|
|
30
|
-
export declare const getEntityTagColor: (type: EntityType) => string;
|
|
31
30
|
export declare const CatalogTableView: <T extends BaseEntity>({ entities, entitiesCatalogConfig, catalogConfig, columns, setSortOption, currentSortOption, handleSortClick, isColumnSorted, }: CatalogTableViewProps<T>) => React.JSX.Element;
|
|
@@ -3,34 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CatalogTableView =
|
|
6
|
+
exports.CatalogTableView = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Tag_1 = require("../../../components/Tag/Tag");
|
|
10
9
|
const CatalogOwnersCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogOwnersCell");
|
|
11
10
|
const CatalogDomainsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogDomainsCell");
|
|
12
11
|
const CatalogEntityCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogEntityCell");
|
|
13
12
|
const CatalogTableHeaderCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogTableHeaderCell");
|
|
14
13
|
const CatalogTagsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogTagsCell");
|
|
15
14
|
const CatalogTableViewRow_1 = require("../../../components/Catalog/CatalogTableView/CatalogTableViewRow");
|
|
16
|
-
const
|
|
17
|
-
switch (type) {
|
|
18
|
-
case 'service':
|
|
19
|
-
return 'blue';
|
|
20
|
-
case 'domain':
|
|
21
|
-
return 'grass';
|
|
22
|
-
case 'team':
|
|
23
|
-
return 'purple';
|
|
24
|
-
case 'user':
|
|
25
|
-
return 'yellow';
|
|
26
|
-
case 'api-description':
|
|
27
|
-
return 'sky';
|
|
28
|
-
default:
|
|
29
|
-
const exhaustiveCheck = type;
|
|
30
|
-
throw new Error(`Unhandled entity type: ${exhaustiveCheck}`);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.getEntityTagColor = getEntityTagColor;
|
|
15
|
+
const CatalogEntityTypeTag_1 = require("../../../components/Catalog/CatalogEntityTypeTag");
|
|
34
16
|
const baseColumns = [
|
|
35
17
|
{
|
|
36
18
|
key: 'entity',
|
|
@@ -44,7 +26,7 @@ const baseColumns = [
|
|
|
44
26
|
{
|
|
45
27
|
key: 'type',
|
|
46
28
|
title: 'Type',
|
|
47
|
-
render: (entity) =>
|
|
29
|
+
render: (entity) => react_1.default.createElement(CatalogEntityTypeTag_1.CatalogEntityTypeTag, { entityType: entity.type }),
|
|
48
30
|
width: '2fr',
|
|
49
31
|
minWidth: '120px',
|
|
50
32
|
sortable: true,
|
|
@@ -84,11 +66,6 @@ const CatalogTableView = ({ entities, entitiesCatalogConfig, catalogConfig, colu
|
|
|
84
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 }))))));
|
|
85
67
|
};
|
|
86
68
|
exports.CatalogTableView = CatalogTableView;
|
|
87
|
-
const EntityTypeTag = (0, styled_components_1.default)(Tag_1.Tag) `
|
|
88
|
-
font-size: var(--font-size-base);
|
|
89
|
-
background-color: transparent;
|
|
90
|
-
text-transform: lowercase;
|
|
91
|
-
`;
|
|
92
69
|
const CatalogTableWrapper = styled_components_1.default.div `
|
|
93
70
|
width: 100%;
|
|
94
71
|
border-bottom: 1px solid var(--catalog-table-border-color);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import { EntityType } from '../../../core/types';
|
|
4
3
|
export type BaseEntity = {
|
|
5
4
|
id: string;
|
|
6
5
|
key: string;
|
|
@@ -23,5 +22,4 @@ export type CatalogColumn<T> = {
|
|
|
23
22
|
sortable?: boolean;
|
|
24
23
|
sortKey?: string;
|
|
25
24
|
};
|
|
26
|
-
export declare const getEntityTagColor: (type: EntityType) => string;
|
|
27
25
|
export declare const CatalogTableViewRow: <T extends BaseEntity>({ entity, entitiesCatalogConfig, catalogConfig, columns, }: CatalogTableViewRowProps<T>) => React.JSX.Element;
|
|
@@ -3,33 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CatalogTableViewRow =
|
|
6
|
+
exports.CatalogTableViewRow = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Tag_1 = require("../../../components/Tag/Tag");
|
|
10
9
|
const CatalogOwnersCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogOwnersCell");
|
|
11
10
|
const CatalogDomainsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogDomainsCell");
|
|
12
11
|
const CatalogEntityCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogEntityCell");
|
|
13
12
|
const CatalogTagsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogTagsCell");
|
|
14
13
|
const useCatalogTableViewRow_1 = require("../../../core/hooks/catalog/useCatalogTableViewRow");
|
|
15
|
-
const
|
|
16
|
-
switch (type) {
|
|
17
|
-
case 'service':
|
|
18
|
-
return 'blue';
|
|
19
|
-
case 'domain':
|
|
20
|
-
return 'grass';
|
|
21
|
-
case 'team':
|
|
22
|
-
return 'purple';
|
|
23
|
-
case 'user':
|
|
24
|
-
return 'yellow';
|
|
25
|
-
case 'api-description':
|
|
26
|
-
return 'sky';
|
|
27
|
-
default:
|
|
28
|
-
const exhaustiveCheck = type;
|
|
29
|
-
throw new Error(`Unhandled entity type: ${exhaustiveCheck}`);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.getEntityTagColor = getEntityTagColor;
|
|
14
|
+
const CatalogEntityTypeTag_1 = require("../../../components/Catalog/CatalogEntityTypeTag");
|
|
33
15
|
const baseColumns = [
|
|
34
16
|
{
|
|
35
17
|
key: 'entity',
|
|
@@ -43,7 +25,7 @@ const baseColumns = [
|
|
|
43
25
|
{
|
|
44
26
|
key: 'type',
|
|
45
27
|
title: 'Type',
|
|
46
|
-
render: (entity) =>
|
|
28
|
+
render: (entity) => react_1.default.createElement(CatalogEntityTypeTag_1.CatalogEntityTypeTag, { entityType: entity.type }),
|
|
47
29
|
width: '2fr',
|
|
48
30
|
minWidth: '120px',
|
|
49
31
|
sortable: true,
|
|
@@ -90,11 +72,6 @@ const CatalogTableViewRow = ({ entity, entitiesCatalogConfig, catalogConfig, col
|
|
|
90
72
|
return (react_1.default.createElement(TableRow, { key: entity.id, columnsWidths: columns.map((column) => column.width || '1fr'), columnsMinWidths: columns.map((column) => column.minWidth || 'auto'), onClick: () => handleRowClick() }, columns.map((column) => (react_1.default.createElement(TableCell, { key: column.key, className: column.key === 'entity' ? '' : 'tooltip-cell-container' }, column.render(entity))))));
|
|
91
73
|
};
|
|
92
74
|
exports.CatalogTableViewRow = CatalogTableViewRow;
|
|
93
|
-
const EntityTypeTag = (0, styled_components_1.default)(Tag_1.Tag) `
|
|
94
|
-
font-size: var(--font-size-base);
|
|
95
|
-
background-color: transparent;
|
|
96
|
-
text-transform: lowercase;
|
|
97
|
-
`;
|
|
98
75
|
const TableRow = styled_components_1.default.div `
|
|
99
76
|
display: grid;
|
|
100
77
|
grid-template-columns: ${({ columnsWidths, columnsMinWidths }) => columnsWidths
|
|
@@ -123,5 +100,7 @@ const TableCell = styled_components_1.default.div `
|
|
|
123
100
|
&.tooltip-cell-container {
|
|
124
101
|
overflow: visible;
|
|
125
102
|
}
|
|
103
|
+
|
|
104
|
+
height: 52px;
|
|
126
105
|
`;
|
|
127
106
|
//# sourceMappingURL=CatalogTableViewRow.js.map
|
|
@@ -7,9 +7,9 @@ exports.CatalogTagsWithTooltip = CatalogTagsWithTooltip;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const constants_1 = require("../../core/constants");
|
|
10
|
-
const Tag_1 = require("
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const Tag_1 = require("../../components/Tag/Tag");
|
|
11
|
+
const Tooltip_1 = require("../../components/Tooltip/Tooltip");
|
|
12
|
+
const CatalogHighlight_1 = require("../../components/Catalog/CatalogHighlight");
|
|
13
13
|
function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true, tagProps, }) {
|
|
14
14
|
if (!items || items.length === 0) {
|
|
15
15
|
if (showPlaceholder) {
|
|
@@ -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(
|
|
23
|
-
react_1.default.createElement(
|
|
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;
|
|
@@ -101,6 +101,36 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
101
101
|
* @tokens Catalog entity icon
|
|
102
102
|
*/
|
|
103
103
|
--catalog-entity-icon-color: var(--color-primary-base);
|
|
104
|
+
--catalog-entity-border-color: var(--border-color-secondary);
|
|
105
|
+
--catalog-entity-bg-color: var(--bg-color-tonal);
|
|
106
|
+
|
|
107
|
+
--catalog-entity-icon-color-service: var(--color-blue-6);
|
|
108
|
+
--catalog-entity-border-color-service: var(--color-blueberry-3);
|
|
109
|
+
--catalog-entity-bg-color-service: var(--color-blue-1);
|
|
110
|
+
|
|
111
|
+
--catalog-entity-icon-color-domain: var(--color-grass-8);
|
|
112
|
+
--catalog-entity-border-color-domain: var(--color-grass-4);
|
|
113
|
+
--catalog-entity-bg-color-domain: var(--color-grass-1);
|
|
114
|
+
|
|
115
|
+
--catalog-entity-icon-color-team: var(--color-purple-7);
|
|
116
|
+
--catalog-entity-border-color-team: var(--color-purple-4);
|
|
117
|
+
--catalog-entity-bg-color-team: var(--color-purple-1);
|
|
118
|
+
|
|
119
|
+
--catalog-entity-icon-color-user: var(--color-orange-7);
|
|
120
|
+
--catalog-entity-border-color-user: var(--color-orange-4);
|
|
121
|
+
--catalog-entity-bg-color-user: var(--color-orange-1);
|
|
122
|
+
|
|
123
|
+
--catalog-entity-icon-color-api-description: var(--color-sky-8);
|
|
124
|
+
--catalog-entity-border-color-api-description: var(--color-sky-5);
|
|
125
|
+
--catalog-entity-bg-color-api-description: var(--color-sky-1);
|
|
126
|
+
|
|
127
|
+
--catalog-entity-icon-color-data-schema: var(--color-carrot-8);
|
|
128
|
+
--catalog-entity-border-color-data-schema: var(--color-carrot-6);
|
|
129
|
+
--catalog-entity-bg-color-data-schema: var(--color-carrot-1);
|
|
130
|
+
|
|
131
|
+
--catalog-entity-icon-color-api-operation: var(--color-raspberry-7);
|
|
132
|
+
--catalog-entity-border-color-api-operation: var(--color-raspberry-3);
|
|
133
|
+
--catalog-entity-bg-color-api-operation: var(--color-raspberry-1);
|
|
104
134
|
|
|
105
135
|
/**
|
|
106
136
|
* @tokens Catalog tags
|
|
@@ -256,9 +286,9 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
256
286
|
*/
|
|
257
287
|
--catalog-table-border-color: var(--border-color-primary);
|
|
258
288
|
--catalog-table-header-bg-color: var(--bg-color-secondary);
|
|
259
|
-
--catalog-table-header-font-weight: var(--font-weight-
|
|
260
|
-
--catalog-table-header-cell-padding:
|
|
261
|
-
--catalog-table-cell-padding:
|
|
289
|
+
--catalog-table-header-font-weight: var(--font-weight-medium);
|
|
290
|
+
--catalog-table-header-cell-padding: 4px 8px;
|
|
291
|
+
--catalog-table-cell-padding: 4px 8px;
|
|
262
292
|
--catalog-table-row-hover-bg-color: var(--bg-color-hover, rgba(0, 0, 0, 0.04));
|
|
263
293
|
--catalog-table-empty-state-padding: 32px;
|
|
264
294
|
--catalog-table-empty-state-color: var(--text-color-secondary);
|
|
@@ -276,8 +306,8 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
276
306
|
/**
|
|
277
307
|
* @tokens Catalog table icon
|
|
278
308
|
*/
|
|
279
|
-
--catalog-table-icon-width:
|
|
280
|
-
--catalog-table-icon-height:
|
|
309
|
+
--catalog-table-icon-width: 32px;
|
|
310
|
+
--catalog-table-icon-height: 32px;
|
|
281
311
|
--catalog-table-icon-border-radius: 4px;
|
|
282
312
|
--catalog-table-icon-bg-color: var(--bg-color-tonal);
|
|
283
313
|
--catalog-table-icon-border-color: var(--border-color-secondary);
|
|
@@ -288,7 +318,7 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
288
318
|
*/
|
|
289
319
|
--catalog-table-entity-title-font-size: var(--catalog-card-title-font-size);
|
|
290
320
|
--catalog-table-entity-title-line-height: var(--line-height-lg);
|
|
291
|
-
--catalog-table-entity-title-font-weight: var(--font-weight-
|
|
321
|
+
--catalog-table-entity-title-font-weight: var(--font-weight-medium);
|
|
292
322
|
|
|
293
323
|
/**
|
|
294
324
|
* @tokens Catalog table description
|
|
@@ -347,7 +377,6 @@ exports.catalog = (0, styled_components_1.css) `
|
|
|
347
377
|
--catalog-empty-state-font-size: var(--font-size-base);
|
|
348
378
|
--catalog-empty-state-line-height: var(--line-height-base);
|
|
349
379
|
|
|
350
|
-
|
|
351
380
|
--catalog-avatar-bg-color: #ededf2;
|
|
352
381
|
// @tokens End
|
|
353
382
|
`;
|
|
@@ -129,7 +129,9 @@ exports.mobileMenu = (0, styled_components_1.css) `
|
|
|
129
129
|
/**
|
|
130
130
|
* @tokens Mobile Menu
|
|
131
131
|
* */
|
|
132
|
+
/* Fallback for older browsers. dvh accounts for dynamic UI elements like mobile address bars */
|
|
132
133
|
--menu-mobile-height: calc(100vh - var(--navbar-height));
|
|
134
|
+
--menu-mobile-height: calc(100dvh - var(--navbar-height));
|
|
133
135
|
--menu-mobile-width: 100%;
|
|
134
136
|
--menu-mobile-z-index: var(--z-index-raised);
|
|
135
137
|
--menu-mobile-left: 0;
|
|
@@ -26,7 +26,8 @@ export type TagProps = {
|
|
|
26
26
|
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
27
27
|
onClose?: (event: React.MouseEvent) => void;
|
|
28
28
|
maxLength?: number;
|
|
29
|
+
textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
29
30
|
};
|
|
30
|
-
export declare function Tag({ children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor, maxLength, ...otherProps }: TagProps): JSX.Element;
|
|
31
|
+
export declare function Tag({ children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor, maxLength, textTransform, ...otherProps }: TagProps): JSX.Element;
|
|
31
32
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
32
33
|
export {};
|
|
@@ -21,7 +21,7 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
21
21
|
const CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
|
|
22
22
|
const CheckmarkFilledIcon_1 = require("../../icons/CheckmarkFilledIcon/CheckmarkFilledIcon");
|
|
23
23
|
function Tag(_a) {
|
|
24
|
-
var { children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor = 'var(--tag-status-dot-color-default)', maxLength } = _a, otherProps = __rest(_a, ["children", "color", "icon", "active", "closable", "tabIndex", "onClick", "onKeyDown", "onClose", "size", "borderless", "withStatusDot", "statusDotColor", "maxLength"]);
|
|
24
|
+
var { children, color, icon, active, closable, tabIndex, onClick, onKeyDown, onClose, size, borderless, withStatusDot, statusDotColor = 'var(--tag-status-dot-color-default)', maxLength, textTransform } = _a, otherProps = __rest(_a, ["children", "color", "icon", "active", "closable", "tabIndex", "onClick", "onKeyDown", "onClose", "size", "borderless", "withStatusDot", "statusDotColor", "maxLength", "textTransform"]);
|
|
25
25
|
const truncateText = (text, maxLen) => {
|
|
26
26
|
if (text.length <= maxLen)
|
|
27
27
|
return text;
|
|
@@ -74,7 +74,7 @@ function Tag(_a) {
|
|
|
74
74
|
}
|
|
75
75
|
return children;
|
|
76
76
|
};
|
|
77
|
-
return (react_1.default.createElement(TagWrapper, Object.assign({ tabIndex: tabIndex, "data-component-name": "Tag/Tag", borderless: borderless, color: color, size: size, onClick: onClick, onKeyDown: onKeyDown, hasCloseButton: closable }, otherProps),
|
|
77
|
+
return (react_1.default.createElement(TagWrapper, Object.assign({ tabIndex: tabIndex, "data-component-name": "Tag/Tag", borderless: borderless, color: color, size: size, onClick: onClick, onKeyDown: onKeyDown, hasCloseButton: closable, textTransform: textTransform }, otherProps),
|
|
78
78
|
withStatusDot ? react_1.default.createElement(StatusDot, { color: statusDotColor }) : icon ? icon : null,
|
|
79
79
|
react_1.default.createElement(exports.ContentWrapper, null, renderChildren()),
|
|
80
80
|
closable && (react_1.default.createElement(CloseButton, { onClick: (event) => {
|
|
@@ -128,7 +128,7 @@ const TagWrapper = styled_components_1.default.div.attrs(({ className, color, si
|
|
|
128
128
|
font-weight: var(--tag-font-weight);
|
|
129
129
|
line-height: var(--tag-line-height);
|
|
130
130
|
box-shadow: var(--tag-box-shadow);
|
|
131
|
-
text-transform: var(--tag-text-transform)
|
|
131
|
+
${({ textTransform }) => `text-transform: ${textTransform ? `${textTransform}` : 'var(--tag-text-transform)'};`}
|
|
132
132
|
|
|
133
133
|
color: var(--tag-color);
|
|
134
134
|
background-color: var(--tag-bg-color);
|
|
@@ -183,6 +183,20 @@ exports.tag = (0, styled_components_1.css) `
|
|
|
183
183
|
--tag-close-button-bg-color-hover: var(--color-sky-2); // @presenter Color
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
.tag-raspberry {
|
|
187
|
+
--tag-color: var(--color-raspberry-7); // @presenter Color
|
|
188
|
+
--tag-bg-color: transparent; // @presenter Color
|
|
189
|
+
--tag-border-color: var(--color-raspberry-3); // @presenter Color
|
|
190
|
+
--tag-close-button-bg-color-hover: var(--color-raspberry-1); // @presenter Color
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.tag-carrot {
|
|
194
|
+
--tag-color: var(--color-carrot-8); // @presenter Color
|
|
195
|
+
--tag-bg-color: transparent; // @presenter Color
|
|
196
|
+
--tag-border-color: var(--color-carrot-6); // @presenter Color
|
|
197
|
+
--tag-close-button-bg-color-hover: var(--color-carrot-3); // @presenter Color
|
|
198
|
+
}
|
|
199
|
+
|
|
186
200
|
/**
|
|
187
201
|
* @tokens Tag http
|
|
188
202
|
*/
|
|
@@ -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
|
-
}, "
|
|
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
|
-
}, "
|
|
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 '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
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("
|
|
18
|
-
__exportStar(require("
|
|
19
|
-
__exportStar(require("
|
|
20
|
-
__exportStar(require("
|
|
21
|
-
__exportStar(require("
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import type { WalkthroughControlsState } from '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
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("
|
|
18
|
-
__exportStar(require("
|
|
19
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("./ThemeDataContext"), exports);
|
|
18
|
+
__exportStar(require("./CodeWalkthrough/CodeWalkthroughControlsContext"), exports);
|
|
19
|
+
__exportStar(require("./CodeWalkthrough/CodeWalkthroughStepsContext"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/lib/core/hoc/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from './typedMemo';
|
package/lib/core/hoc/index.js
CHANGED
|
@@ -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("
|
|
17
|
+
__exportStar(require("./typedMemo"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|