@redocly/theme 0.60.0-next.4 → 0.60.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/Breadcrumbs/BreadcrumbDropdown.d.ts +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/lib/components/Catalog/Catalog.d.ts +1 -1
- package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +1 -1
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntities.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +2 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +1 -1
- package/lib/components/Search/SearchAiConversationInput.js +1 -1
- package/lib/core/hooks/catalog/use-catalog-table-view-row.d.ts +1 -1
- package/lib/core/types/catalog.d.ts +1 -1
- package/lib/core/utils/type-guards.d.ts +1 -1
- package/package.json +7 -14
- package/src/components/Breadcrumbs/BreadcrumbDropdown.tsx +1 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/Catalog/Catalog.tsx +2 -1
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +2 -1
- package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +3 -2
- package/src/components/Catalog/CatalogEntities.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +7 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +6 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +6 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +7 -2
- package/src/components/Catalog/CatalogEntityIcon.tsx +2 -1
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +3 -2
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +3 -2
- package/src/components/Search/SearchAiConversationInput.tsx +1 -1
- package/src/core/hooks/catalog/use-catalog-table-view-row.ts +1 -1
- package/src/core/types/catalog.ts +1 -1
- package/src/core/utils/type-guards.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig } from '@redocly/config';
|
|
2
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
3
3
|
import { BffCatalogEntityList, CatalogSwitcherItem, CatalogViewMode } from '../../core/types';
|
|
4
4
|
type CatalogFiltersWithCounts = Record<string, {
|
|
5
5
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CatalogEntityConfig } from '@redocly/config';
|
|
3
|
-
import { BffCatalogEntity } from '../../../core/types';
|
|
2
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
3
|
+
import type { BffCatalogEntity } from '../../../core/types';
|
|
4
4
|
export type CatalogCardViewProps = {
|
|
5
5
|
entities: BffCatalogEntity[];
|
|
6
6
|
catalogConfig: CatalogEntityConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig } from '@redocly/config';
|
|
2
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
3
3
|
import { BffCatalogEntityList, SortOption } from '../../core/types';
|
|
4
4
|
export type CatalogEntitiesProps = {
|
|
5
5
|
catalogConfig: CatalogEntityConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
4
4
|
export type CatalogEntityApiDescriptionRelationsProps = {
|
|
5
5
|
entity: BffCatalogEntity;
|
|
6
6
|
catalogConfig: CatalogEntityConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
3
|
import type { ListType } from '../../../../core/types';
|
|
4
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
4
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
5
5
|
export type CatalogEntityDefaultRelationsProps = {
|
|
6
6
|
entity: BffCatalogEntity;
|
|
7
7
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import { BffCatalogEntity, BffCatalogRelatedEntityList } from '../../../../core/types';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntityList } from '../../../../core/types';
|
|
4
4
|
export type CatalogEntityRelationsProps = {
|
|
5
5
|
entity: BffCatalogEntity;
|
|
6
6
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
3
|
import type { ListType } from '../../../../core/types';
|
|
4
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
4
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
5
5
|
import { CatalogColumn } from '../../../../components/Catalog/CatalogTableView/CatalogTableView';
|
|
6
6
|
export type CatalogEntityRelationsTableProps = {
|
|
7
7
|
entity: BffCatalogEntity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
3
|
import type { ListType } from '../../../../core/types';
|
|
4
|
-
import { BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
4
|
+
import type { BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
5
5
|
import { CatalogColumn } from '../../../../components/Catalog/CatalogTableView/CatalogTableView';
|
|
6
6
|
export type CatalogEntityRelationsTableContentProps = {
|
|
7
7
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
|
|
4
4
|
export type CatalogEntityTeamRelationsProps = {
|
|
5
5
|
entity: BffCatalogEntity;
|
|
6
6
|
catalogConfig: CatalogEntityConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
-
import { SortOption } from '../../../core/types';
|
|
2
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
|
+
import type { SortOption } from '../../../core/types';
|
|
4
4
|
export type BaseEntity = {
|
|
5
5
|
id: string;
|
|
6
6
|
key: string;
|
|
@@ -63,7 +63,7 @@ function SearchAiConversationInput({ isGeneratingResponse, onMessageSent, classN
|
|
|
63
63
|
onMessageSent(query);
|
|
64
64
|
};
|
|
65
65
|
const handleOnKeyDown = (e) => {
|
|
66
|
-
if (e.key === 'Enter' && !isGeneratingResponse) {
|
|
66
|
+
if (e.key === 'Enter' && !e.nativeEvent.isComposing && !isGeneratingResponse) {
|
|
67
67
|
if (multiline && e.shiftKey) {
|
|
68
68
|
return; // Allow new line in textarea
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
|
|
3
2
|
import { ENTITY_RELATION_TYPES } from '@redocly/config';
|
|
3
|
+
import type { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
|
|
4
4
|
import type { CatalogFilterConfig } from '../../config';
|
|
5
5
|
export type SortOption = 'title' | '-title' | 'type' | '-type';
|
|
6
6
|
export type UseCatalogResponse = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResolvedNavItem, ResolvedNavLinkItem } from '@redocly/config';
|
|
1
|
+
import type { ResolvedNavItem, ResolvedNavLinkItem } from '@redocly/config';
|
|
2
2
|
export declare function isUndefined<T>(value: T | undefined): value is undefined;
|
|
3
3
|
export declare function isNull<T>(value: T | null): value is null;
|
|
4
4
|
export declare function isString<T>(value: T | string): value is string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/theme",
|
|
3
|
-
"version": "0.60.0-next.
|
|
3
|
+
"version": "0.60.0-next.6",
|
|
4
4
|
"description": "Shared UI components lib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"react": "^19.1.0",
|
|
33
33
|
"react-dom": "^19.1.0",
|
|
34
34
|
"react-router-dom": "^6.21.1",
|
|
35
|
-
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
36
|
-
"styled-system": "^5.1.5"
|
|
35
|
+
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@markdoc/markdoc": "0.5.2",
|
|
@@ -49,27 +48,22 @@
|
|
|
49
48
|
"@types/react": "^19.1.4",
|
|
50
49
|
"@types/react-dom": "^19.1.4",
|
|
51
50
|
"@types/styled-components": "5.1.34",
|
|
52
|
-
"@
|
|
53
|
-
"@vitest/coverage-v8": "^4.0.9",
|
|
51
|
+
"@vitest/coverage-v8": "^4.0.10",
|
|
54
52
|
"@vitest/ui": "3.2.4",
|
|
55
53
|
"concurrently": "7.6.0",
|
|
56
|
-
"json-schema-to-ts": "2.7.2",
|
|
57
|
-
"npm-run-all2": "5.0.2",
|
|
58
|
-
"react-refresh": "0.14.2",
|
|
59
54
|
"react-router-dom": "^6.21.1",
|
|
60
55
|
"resize-observer-polyfill": "1.5.1",
|
|
61
56
|
"rimraf": "5.0.7",
|
|
62
57
|
"styled-components": "5.3.11",
|
|
63
|
-
"styled-system": "5.1.5",
|
|
64
58
|
"ts-node": "10.9.2",
|
|
65
|
-
"ts-node-dev": "2.0.0",
|
|
66
59
|
"tsc-alias": "1.8.16",
|
|
67
60
|
"tsconfig-paths": "4.2.0",
|
|
68
61
|
"tsconfig-paths-webpack-plugin": "3.5.2",
|
|
69
62
|
"typescript": "5.9.3",
|
|
70
|
-
"vitest": "4.0.
|
|
63
|
+
"vitest": "4.0.10",
|
|
71
64
|
"vitest-when": "0.6.2",
|
|
72
|
-
"webpack": "5.94.0"
|
|
65
|
+
"webpack": "5.94.0",
|
|
66
|
+
"@redocly/realm-asyncapi-sdk": "0.6.0-next.1"
|
|
73
67
|
},
|
|
74
68
|
"dependencies": {
|
|
75
69
|
"@tanstack/react-query": "5.62.3",
|
|
@@ -87,8 +81,7 @@
|
|
|
87
81
|
"openapi-sampler": "1.6.2",
|
|
88
82
|
"react-calendar": "5.1.0",
|
|
89
83
|
"react-date-picker": "11.0.0",
|
|
90
|
-
"@redocly/config": "0.40.0"
|
|
91
|
-
"@redocly/realm-asyncapi-sdk": "0.6.0-next.0"
|
|
84
|
+
"@redocly/config": "0.40.0"
|
|
92
85
|
},
|
|
93
86
|
"scripts": {
|
|
94
87
|
"watch": "tsc -p tsconfig.build.json && (concurrently \"tsc -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
|
-
import { BreadcrumbItem } from '@redocly/config';
|
|
4
3
|
|
|
5
4
|
import type { JSX } from 'react';
|
|
5
|
+
import type { BreadcrumbItem } from '@redocly/config';
|
|
6
6
|
|
|
7
7
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
8
8
|
import { Dropdown } from '@redocly/theme/components/Dropdown/Dropdown';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { BreadcrumbItem } from '@redocly/config';
|
|
4
3
|
|
|
5
4
|
import type { JSX } from 'react';
|
|
5
|
+
import type { BreadcrumbItem } from '@redocly/config';
|
|
6
6
|
|
|
7
7
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
8
8
|
import { Breadcrumb } from '@redocly/theme/components/Breadcrumbs/Breadcrumb';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
4
5
|
|
|
5
6
|
import { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
6
7
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { CatalogEntityConfig } from '@redocly/config';
|
|
4
3
|
|
|
5
|
-
import {
|
|
4
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
5
|
+
import type { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
6
|
+
|
|
6
7
|
import { CatalogCard } from '@redocly/theme/components/Catalog/CatalogCardView/CatalogCard';
|
|
7
8
|
|
|
8
9
|
export type CatalogCardViewProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { JSX, useEffect } from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import type { CatalogEntityConfig } from '@redocly/config';
|
|
3
4
|
|
|
4
5
|
import { BffCatalogEntity, BffCatalogEntityList, SortOption } from '@redocly/theme/core/types';
|
|
5
6
|
import { useThemeHooks, useCatalogEntities } from '@redocly/theme/core/hooks';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
3
|
import { Route, Routes } from 'react-router-dom';
|
|
5
4
|
|
|
5
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
6
6
|
import type {
|
|
7
7
|
BffCatalogEntity,
|
|
8
8
|
BffCatalogRelatedEntity,
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { JSX, ReactNode } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
5
|
+
import type {
|
|
6
|
+
BffCatalogEntity,
|
|
7
|
+
BffCatalogRelatedEntity,
|
|
8
|
+
SortOption,
|
|
9
|
+
} from '@redocly/theme/core/types';
|
|
4
10
|
|
|
5
11
|
import { Tabs, TabsSize } from '@redocly/theme/markdoc/components/Tabs/Tabs';
|
|
6
12
|
import { EntityTypeIcon } from '@redocly/theme/icons/EntityTypeIcon/EntityTypeIcon';
|
|
7
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
8
13
|
import { CatalogEntityDefaultRelations } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations';
|
|
9
14
|
import { MoleculesIcon } from '@redocly/theme/icons/MoleculesIcon/MoleculesIcon';
|
|
10
15
|
import { NetworkIcon } from '@redocly/theme/icons/NetworkIcon/NetworkIcon';
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
2
|
|
|
3
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
4
|
import type { ListType } from '@redocly/theme/core/types';
|
|
5
|
+
import type {
|
|
6
|
+
BffCatalogEntity,
|
|
7
|
+
BffCatalogRelatedEntity,
|
|
8
|
+
SortOption,
|
|
9
|
+
} from '@redocly/theme/core/types';
|
|
5
10
|
|
|
6
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
7
11
|
import { CatalogColumn } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogTableView';
|
|
8
12
|
import { CatalogEntityCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogEntityCell';
|
|
9
13
|
import { CatalogEntityRelationsTable } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable';
|
package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { JSX, useState, useEffect } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
|
+
import type { BffCatalogEntity, BffCatalogRelatedEntityList } from '@redocly/theme/core/types';
|
|
5
|
+
|
|
5
6
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
6
7
|
import { CatalogEntityDefaultRelations } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations';
|
|
7
8
|
import { CatalogEntityTeamRelations } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations';
|
package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
3
|
|
|
4
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
5
5
|
import type { ListType } from '@redocly/theme/core/types';
|
|
6
|
+
import type {
|
|
7
|
+
BffCatalogEntity,
|
|
8
|
+
BffCatalogRelatedEntity,
|
|
9
|
+
SortOption,
|
|
10
|
+
} from '@redocly/theme/core/types';
|
|
6
11
|
|
|
7
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
8
12
|
import { CatalogColumn } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogTableView';
|
|
9
13
|
import { CatalogActionsRow } from '@redocly/theme/components/Catalog/CatalogActionsRow';
|
|
10
14
|
import { CatalogEntityRelationsTableContent } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
3
2
|
|
|
3
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
4
|
import type { ListType } from '@redocly/theme/core/types';
|
|
5
|
+
import type { BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
5
6
|
|
|
6
7
|
import { ArrowDownIcon } from '@redocly/theme/icons/ArrowDownIcon/ArrowDownIcon';
|
|
7
|
-
import { BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
8
8
|
import { LoadMore } from '@redocly/theme/components/LoadMore/LoadMore';
|
|
9
9
|
import {
|
|
10
10
|
CatalogColumn,
|
package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import React, { JSX, ReactNode } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
5
|
+
import type {
|
|
6
|
+
BffCatalogEntity,
|
|
7
|
+
BffCatalogRelatedEntity,
|
|
8
|
+
SortOption,
|
|
9
|
+
} from '@redocly/theme/core/types';
|
|
4
10
|
|
|
5
11
|
import { Tabs, TabsSize } from '@redocly/theme/markdoc/components/Tabs/Tabs';
|
|
6
12
|
import { PeopleIcon } from '@redocly/theme/icons/PeopleIcon/PeopleIcon';
|
|
7
13
|
import { EntityTypeIcon } from '@redocly/theme/icons/EntityTypeIcon/EntityTypeIcon';
|
|
8
|
-
import { BffCatalogEntity, BffCatalogRelatedEntity, SortOption } from '@redocly/theme/core/types';
|
|
9
14
|
import { CatalogColumn } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogTableView';
|
|
10
15
|
import { Tag } from '@redocly/theme/components/Tag/Tag';
|
|
11
16
|
import { CatalogEntityRelationsTable } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import type { UiAccessibleConfig } from '@redocly/config';
|
|
3
4
|
|
|
4
5
|
import { EntityType } from '@redocly/theme/core/types';
|
|
5
6
|
import { CodeIcon } from '@redocly/theme/icons/CodeIcon/CodeIcon';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
3
|
|
|
5
|
-
import {
|
|
4
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
5
|
+
import type { SortOption, BffCatalogEntity } from '@redocly/theme/core/types';
|
|
6
|
+
|
|
6
7
|
import { CatalogOwnersCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogOwnersCell';
|
|
7
8
|
import { CatalogDomainsCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogDomainsCell';
|
|
8
9
|
import { CatalogEntityCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogEntityCell';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
4
3
|
|
|
5
|
-
import {
|
|
4
|
+
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
|
|
5
|
+
import type { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
6
|
+
|
|
6
7
|
import { CatalogOwnersCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogOwnersCell';
|
|
7
8
|
import { CatalogDomainsCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogDomainsCell';
|
|
8
9
|
import { CatalogEntityCell } from '@redocly/theme/components/Catalog/CatalogTableView/CatalogEntityCell';
|
|
@@ -49,7 +49,7 @@ export function SearchAiConversationInput({
|
|
|
49
49
|
const handleOnKeyDown = (
|
|
50
50
|
e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>,
|
|
51
51
|
): void => {
|
|
52
|
-
if (e.key === 'Enter' && !isGeneratingResponse) {
|
|
52
|
+
if (e.key === 'Enter' && !e.nativeEvent.isComposing && !isGeneratingResponse) {
|
|
53
53
|
if (multiline && e.shiftKey) {
|
|
54
54
|
return; // Allow new line in textarea
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
|
|
3
2
|
import { ENTITY_RELATION_TYPES } from '@redocly/config';
|
|
4
3
|
|
|
4
|
+
import type { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
|
|
5
5
|
import type { CatalogFilterConfig } from '@redocly/theme/config';
|
|
6
6
|
|
|
7
7
|
export type SortOption = 'title' | '-title' | 'type' | '-type';
|