@redocly/theme 0.57.0-next.0 → 0.57.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +1 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +36 -25
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.js +38 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +83 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.d.ts +2 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.js +29 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.d.ts +8 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.js +33 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.d.ts +16 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.js +24 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.d.ts +7 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.js +30 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +5 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +1 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +7 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +3 -8
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +22 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.js +18 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +2 -2
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntityIcon.js +4 -6
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +1 -1
- package/lib/components/Catalog/variables.js +42 -0
- package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.js +13 -8
- package/lib/core/constants/catalog.d.ts +10 -0
- package/lib/core/constants/catalog.js +14 -1
- package/lib/core/hooks/__mocks__/search/use-recent-searches.d.ts +2 -2
- package/lib/core/hooks/__mocks__/search/use-recent-searches.js +2 -1
- package/lib/core/hooks/__mocks__/search/use-search-filter.d.ts +2 -2
- package/lib/core/hooks/__mocks__/search/use-search-filter.js +2 -1
- package/lib/core/hooks/__mocks__/search/use-suggested-pages.d.ts +2 -2
- package/lib/core/hooks/__mocks__/search/use-suggested-pages.js +2 -1
- package/lib/core/hooks/__mocks__/use-controlled-state.d.ts +1 -1
- package/lib/core/hooks/__mocks__/use-controlled-state.js +2 -1
- package/lib/core/hooks/__mocks__/use-input-key-commands.d.ts +3 -3
- package/lib/core/hooks/__mocks__/use-input-key-commands.js +3 -2
- package/lib/core/hooks/__mocks__/use-mobile-menu.d.ts +1 -1
- package/lib/core/hooks/__mocks__/use-mobile-menu.js +2 -1
- package/lib/core/hooks/__mocks__/use-theme-config.d.ts +2 -2
- package/lib/core/hooks/__mocks__/use-theme-config.js +2 -1
- package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +47 -47
- package/lib/core/hooks/__mocks__/use-theme-hooks.js +38 -37
- package/lib/core/hooks/__mocks__/use-time-ago.d.ts +2 -2
- package/lib/core/hooks/__mocks__/use-time-ago.js +2 -1
- package/lib/core/hooks/catalog/useGraph.d.ts +15 -0
- package/lib/core/hooks/catalog/useGraph.js +165 -0
- package/lib/core/hooks/code-walkthrough/__mocks__/MockIntersectionObserver.js +4 -3
- package/lib/core/hooks/index.d.ts +1 -0
- package/lib/core/hooks/index.js +1 -0
- package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.d.ts +1 -1
- package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.js +2 -1
- package/lib/core/hooks/use-page-actions.js +5 -1
- package/lib/core/openapi/index.d.ts +1 -0
- package/lib/core/openapi/index.js +3 -1
- package/lib/core/styles/index.d.ts +1 -0
- package/lib/core/styles/index.js +3 -0
- package/lib/core/styles/xyflow.d.ts +1 -0
- package/lib/core/styles/xyflow.js +623 -0
- package/lib/core/utils/dynamic.d.ts +9 -0
- package/lib/core/utils/dynamic.js +59 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/core/utils/index.js +1 -0
- package/lib/icons/GenericIcon/GenericIcon.d.ts +2 -2
- package/lib/icons/GenericIcon/GenericIcon.js +8 -3
- package/lib/icons/__tests__/IconTestUtils.d.ts +0 -1
- package/lib/icons/__tests__/IconTestUtils.js +8 -7
- package/package.json +11 -14
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +60 -42
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.tsx +63 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.tsx +7 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.tsx +91 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.tsx +48 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.tsx +45 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.tsx +49 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +6 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +8 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +24 -43
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +76 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +2 -2
- package/src/components/Catalog/CatalogEntityIcon.tsx +7 -5
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +1 -1
- package/src/components/Catalog/variables.ts +42 -0
- package/src/components/CatalogClassic/CatalogClassicVirtualizedGroups.tsx +29 -18
- package/src/core/constants/catalog.ts +13 -0
- package/src/core/hooks/__mocks__/search/use-recent-searches.ts +3 -1
- package/src/core/hooks/__mocks__/search/use-search-filter.ts +3 -1
- package/src/core/hooks/__mocks__/search/use-suggested-pages.ts +3 -1
- package/src/core/hooks/__mocks__/use-controlled-state.ts +3 -1
- package/src/core/hooks/__mocks__/use-input-key-commands.ts +4 -2
- package/src/core/hooks/__mocks__/use-mobile-menu.ts +3 -1
- package/src/core/hooks/__mocks__/use-theme-config.ts +3 -1
- package/src/core/hooks/__mocks__/use-theme-hooks.ts +39 -37
- package/src/core/hooks/__mocks__/use-time-ago.ts +3 -1
- package/src/core/hooks/catalog/useGraph.ts +236 -0
- package/src/core/hooks/code-walkthrough/__mocks__/MockIntersectionObserver.ts +5 -3
- package/src/core/hooks/index.ts +1 -0
- package/src/core/hooks/menu/__mocks__/use-mobile-menu-items.ts +3 -1
- package/src/core/hooks/use-page-actions.ts +5 -1
- package/src/core/openapi/index.ts +1 -0
- package/src/core/styles/index.ts +1 -0
- package/src/core/styles/xyflow.ts +620 -0
- package/src/core/utils/dynamic.tsx +85 -0
- package/src/core/utils/index.ts +1 -0
- package/src/icons/GenericIcon/GenericIcon.tsx +13 -4
- package/src/icons/__tests__/IconTestUtils.tsx +5 -4
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useGraph = useGraph;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const react_2 = require("@xyflow/react");
|
|
6
|
+
const catalog_1 = require("../../constants/catalog");
|
|
7
|
+
// TODO: This isn't final implementation, leaved comments for future reference.
|
|
8
|
+
function useGraph({ entity, relations }) {
|
|
9
|
+
const rootNodeId = entity.id;
|
|
10
|
+
// Compute final label for a relation considering its role
|
|
11
|
+
const getRelationLabel = (0, react_1.useCallback)((relation) => {
|
|
12
|
+
const relationType = relation.relationType;
|
|
13
|
+
if (!relationType) {
|
|
14
|
+
return 'related';
|
|
15
|
+
}
|
|
16
|
+
return relation.relationRole === 'source' ? catalog_1.reverseRelationMap[relationType] : relationType;
|
|
17
|
+
}, []);
|
|
18
|
+
const processedRelations = (0, react_1.useMemo)(() => {
|
|
19
|
+
// Exclude self-relations and deduplicate by id
|
|
20
|
+
const seenIds = new Set();
|
|
21
|
+
const filtered = (relations !== null && relations !== void 0 ? relations : []).filter((r) => r.id !== rootNodeId && r.key !== entity.key);
|
|
22
|
+
const unique = [];
|
|
23
|
+
for (const r of filtered) {
|
|
24
|
+
if (seenIds.has(r.id))
|
|
25
|
+
continue;
|
|
26
|
+
seenIds.add(r.id);
|
|
27
|
+
unique.push({
|
|
28
|
+
id: r.id,
|
|
29
|
+
title: r.title,
|
|
30
|
+
entityType: r.type, // Group by entity type, not relation type
|
|
31
|
+
relationLabel: getRelationLabel(r),
|
|
32
|
+
key: r.key,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return unique;
|
|
36
|
+
}, [relations, getRelationLabel, rootNodeId, entity.key]);
|
|
37
|
+
// Entity data type for layout
|
|
38
|
+
const computedNodes = (0, react_1.useMemo)(() => {
|
|
39
|
+
var _a;
|
|
40
|
+
if (!processedRelations.length) {
|
|
41
|
+
return [
|
|
42
|
+
{
|
|
43
|
+
id: rootNodeId,
|
|
44
|
+
type: catalog_1.GraphCustomNodeType.CatalogEntity,
|
|
45
|
+
position: { x: 0, y: 0 },
|
|
46
|
+
data: {
|
|
47
|
+
label: entity.title,
|
|
48
|
+
entityType: entity.type,
|
|
49
|
+
isRoot: true,
|
|
50
|
+
entityKey: entity.key,
|
|
51
|
+
},
|
|
52
|
+
sourcePosition: react_2.Position.Bottom,
|
|
53
|
+
targetPosition: react_2.Position.Top,
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
// Group entities by their entity type
|
|
58
|
+
const entityTypeGroups = new Map();
|
|
59
|
+
for (const rel of processedRelations) {
|
|
60
|
+
const entityData = {
|
|
61
|
+
id: rel.id,
|
|
62
|
+
title: rel.title,
|
|
63
|
+
entityType: rel.entityType,
|
|
64
|
+
relationLabel: rel.relationLabel,
|
|
65
|
+
key: rel.key,
|
|
66
|
+
};
|
|
67
|
+
const current = entityTypeGroups.get(rel.entityType);
|
|
68
|
+
if (current) {
|
|
69
|
+
current.push(entityData);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
entityTypeGroups.set(rel.entityType, [entityData]);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Sort entity types for consistent ordering
|
|
76
|
+
const entityTypes = Array.from(entityTypeGroups.keys()).sort();
|
|
77
|
+
// Layout constants
|
|
78
|
+
const rootY = 0;
|
|
79
|
+
const verticalGap = 80; // Gap between entities of same type (vertical)
|
|
80
|
+
const horizontalGap = 250; // Gap between different entity types (horizontal)
|
|
81
|
+
const topMargin = 240; // Distance from root to first row of entities
|
|
82
|
+
// Special handling for single entity type group - root on left, entities on right
|
|
83
|
+
const isSingleGroup = entityTypes.length === 1;
|
|
84
|
+
let rootX = 0;
|
|
85
|
+
let startX = 0;
|
|
86
|
+
if (isSingleGroup) {
|
|
87
|
+
// Position root on the left, entities on the right
|
|
88
|
+
rootX = -horizontalGap / 2;
|
|
89
|
+
startX = horizontalGap / 2;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// Calculate starting X position to center all groups (original behavior)
|
|
93
|
+
const totalWidth = (entityTypes.length - 1) * horizontalGap;
|
|
94
|
+
startX = -totalWidth / 2;
|
|
95
|
+
}
|
|
96
|
+
const nodes = [
|
|
97
|
+
// Root entity
|
|
98
|
+
{
|
|
99
|
+
id: rootNodeId,
|
|
100
|
+
type: catalog_1.GraphCustomNodeType.CatalogEntity,
|
|
101
|
+
position: { x: rootX, y: rootY },
|
|
102
|
+
data: { label: entity.title, entityType: entity.type, isRoot: true, entityKey: entity.key },
|
|
103
|
+
sourcePosition: react_2.Position.Bottom,
|
|
104
|
+
targetPosition: react_2.Position.Top,
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
// Position entities by type groups
|
|
108
|
+
for (let typeIndex = 0; typeIndex < entityTypes.length; typeIndex++) {
|
|
109
|
+
const entityType = entityTypes[typeIndex];
|
|
110
|
+
const entitiesOfType = (_a = entityTypeGroups.get(entityType)) !== null && _a !== void 0 ? _a : [];
|
|
111
|
+
// Calculate X position for this entity type group
|
|
112
|
+
const groupX = startX + typeIndex * horizontalGap;
|
|
113
|
+
// Calculate starting Y position to center entities vertically within the group
|
|
114
|
+
const groupHeight = (entitiesOfType.length - 1) * verticalGap;
|
|
115
|
+
const groupStartY = rootY + topMargin - groupHeight / 2;
|
|
116
|
+
// Position each entity within the group
|
|
117
|
+
for (let entityIndex = 0; entityIndex < entitiesOfType.length; entityIndex++) {
|
|
118
|
+
const entityData = entitiesOfType[entityIndex];
|
|
119
|
+
const entityY = groupStartY + entityIndex * verticalGap;
|
|
120
|
+
nodes.push({
|
|
121
|
+
id: entityData.id,
|
|
122
|
+
type: catalog_1.GraphCustomNodeType.CatalogEntity,
|
|
123
|
+
position: { x: groupX, y: entityY },
|
|
124
|
+
data: {
|
|
125
|
+
label: entityData.title,
|
|
126
|
+
entityType: entityData.entityType,
|
|
127
|
+
isRoot: false,
|
|
128
|
+
entityKey: entityData.key,
|
|
129
|
+
},
|
|
130
|
+
sourcePosition: react_2.Position.Bottom,
|
|
131
|
+
targetPosition: react_2.Position.Top,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return nodes;
|
|
136
|
+
}, [rootNodeId, entity.title, entity.type, entity.key, processedRelations]);
|
|
137
|
+
const computedEdges = (0, react_1.useMemo)(() => {
|
|
138
|
+
return processedRelations.map((relation) => ({
|
|
139
|
+
id: `e-${rootNodeId}-${relation.id}`,
|
|
140
|
+
source: rootNodeId,
|
|
141
|
+
target: relation.id,
|
|
142
|
+
sourceHandle: catalog_1.GraphHandleType.Source, // Use the bottom handle of the center node
|
|
143
|
+
targetHandle: catalog_1.GraphHandleType.Target, // Use the target handle (top) of related nodes
|
|
144
|
+
type: catalog_1.GraphCustomEdgeType.CatalogEdge,
|
|
145
|
+
label: relation.relationLabel,
|
|
146
|
+
}));
|
|
147
|
+
}, [rootNodeId, processedRelations]);
|
|
148
|
+
const [nodes, setNodes, onNodesChange] = (0, react_2.useNodesState)(computedNodes);
|
|
149
|
+
const [edges, setEdges, onEdgesChange] = (0, react_2.useEdgesState)(computedEdges);
|
|
150
|
+
(0, react_1.useEffect)(() => {
|
|
151
|
+
setNodes(computedNodes);
|
|
152
|
+
}, [computedNodes, setNodes]);
|
|
153
|
+
(0, react_1.useEffect)(() => {
|
|
154
|
+
setEdges(computedEdges);
|
|
155
|
+
}, [computedEdges, setEdges]);
|
|
156
|
+
const onConnect = (0, react_1.useCallback)((params) => setEdges((edgesSnapshot) => (0, react_2.addEdge)(params, edgesSnapshot)), [setEdges]);
|
|
157
|
+
return {
|
|
158
|
+
nodes,
|
|
159
|
+
edges,
|
|
160
|
+
onNodesChange,
|
|
161
|
+
onEdgesChange,
|
|
162
|
+
onConnect,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=useGraph.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MockIntersectionObserver = void 0;
|
|
4
|
+
const vitest_1 = require("vitest");
|
|
4
5
|
class MockIntersectionObserver {
|
|
5
6
|
// @ts-ignore
|
|
6
7
|
constructor(callback, options) {
|
|
@@ -43,9 +44,9 @@ class MockIntersectionObserver {
|
|
|
43
44
|
this.root = null;
|
|
44
45
|
this.rootMargin = '0px';
|
|
45
46
|
this.thresholds = [1];
|
|
46
|
-
this.observe =
|
|
47
|
-
this.unobserve =
|
|
48
|
-
this.disconnect =
|
|
47
|
+
this.observe = vitest_1.vi.fn();
|
|
48
|
+
this.unobserve = vitest_1.vi.fn();
|
|
49
|
+
this.disconnect = vitest_1.vi.fn();
|
|
49
50
|
}
|
|
50
51
|
takeRecords() {
|
|
51
52
|
return [];
|
|
@@ -37,6 +37,7 @@ export * from './use-element-size';
|
|
|
37
37
|
export * from './use-time-ago';
|
|
38
38
|
export * from './use-input-key-commands';
|
|
39
39
|
export * from './catalog/useCatalogEntities';
|
|
40
|
+
export * from './catalog/useGraph';
|
|
40
41
|
export * from './use-active-page-version';
|
|
41
42
|
export * from './use-page-versions';
|
|
42
43
|
export * from './use-user-teams';
|
package/lib/core/hooks/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __exportStar(require("./use-element-size"), exports);
|
|
|
53
53
|
__exportStar(require("./use-time-ago"), exports);
|
|
54
54
|
__exportStar(require("./use-input-key-commands"), exports);
|
|
55
55
|
__exportStar(require("./catalog/useCatalogEntities"), exports);
|
|
56
|
+
__exportStar(require("./catalog/useGraph"), exports);
|
|
56
57
|
__exportStar(require("./use-active-page-version"), exports);
|
|
57
58
|
__exportStar(require("./use-page-versions"), exports);
|
|
58
59
|
__exportStar(require("./use-user-teams"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useMobileMenuItems:
|
|
1
|
+
export declare const useMobileMenuItems: import("vitest").Mock<(...args: any[]) => any>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useMobileMenuItems = void 0;
|
|
4
|
-
|
|
4
|
+
const vitest_1 = require("vitest");
|
|
5
|
+
exports.useMobileMenuItems = vitest_1.vi.fn().mockReturnValue({
|
|
5
6
|
items: [
|
|
6
7
|
{
|
|
7
8
|
type: 'group',
|
|
@@ -26,7 +26,8 @@ function usePageActions(pageSlug) {
|
|
|
26
26
|
const { translate } = useTranslate();
|
|
27
27
|
const { navigation } = (0, use_theme_config_1.useThemeConfig)();
|
|
28
28
|
// Can't use any actions if no markdown files are generated for LLMs
|
|
29
|
-
const
|
|
29
|
+
const pageProps = usePageProps();
|
|
30
|
+
const isLlmsDisabled = ((_b = (_a = pageProps === null || pageProps === void 0 ? void 0 : pageProps.seo) === null || _a === void 0 ? void 0 : _a.llmstxt) === null || _b === void 0 ? void 0 : _b.hide) || ((_c = pageProps === null || pageProps === void 0 ? void 0 : pageProps.frontmatter) === null || _c === void 0 ? void 0 : _c.excludeFromSearch);
|
|
30
31
|
const { isPublic } = usePageData() || {};
|
|
31
32
|
const actions = (0, react_1.useMemo)(() => {
|
|
32
33
|
var _a, _b;
|
|
@@ -54,6 +55,9 @@ function usePageActions(pageSlug) {
|
|
|
54
55
|
onClick: () => __awaiter(this, void 0, void 0, function* () {
|
|
55
56
|
try {
|
|
56
57
|
const result = yield fetch(mdPageUrl);
|
|
58
|
+
if (result.status !== 200) {
|
|
59
|
+
throw new Error('Failed to fetch markdown content');
|
|
60
|
+
}
|
|
57
61
|
const text = yield result.text();
|
|
58
62
|
clipboard_service_1.ClipboardService.copyCustom(text);
|
|
59
63
|
}
|
|
@@ -16,3 +16,4 @@ export { useModalScrollLock } from '../hooks/use-modal-scroll-lock';
|
|
|
16
16
|
export { SecurityVariablesEnvSuffix } from '../constants/environments';
|
|
17
17
|
export { isUndefined, isString, isNotNull, isObject } from '../utils/type-guards';
|
|
18
18
|
export { ThemeDataContext, type ThemeDataTransferObject } from '../contexts/ThemeDataContext';
|
|
19
|
+
export { ENTITY_RELATION_TYPES } from '../constants/catalog';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThemeDataContext = exports.isObject = exports.isNotNull = exports.isString = exports.isUndefined = exports.SecurityVariablesEnvSuffix = exports.useModalScrollLock = exports.useActiveSectionId = exports.useOutsideClick = exports.useThemeHooks = exports.useFocusTrap = exports.isPrimitive = exports.breakpoints = exports.GlobalStyle = exports.useMount = exports.typedMemo = exports.withPathPrefix = exports.addTrailingSlash = exports.combineUrls = exports.getPathPrefix = exports.removeLeadingSlash = exports.addLeadingSlash = exports.IS_BROWSER = void 0;
|
|
3
|
+
exports.ENTITY_RELATION_TYPES = exports.ThemeDataContext = exports.isObject = exports.isNotNull = exports.isString = exports.isUndefined = exports.SecurityVariablesEnvSuffix = exports.useModalScrollLock = exports.useActiveSectionId = exports.useOutsideClick = exports.useThemeHooks = exports.useFocusTrap = exports.isPrimitive = exports.breakpoints = exports.GlobalStyle = exports.useMount = exports.typedMemo = exports.withPathPrefix = exports.addTrailingSlash = exports.combineUrls = exports.getPathPrefix = exports.removeLeadingSlash = exports.addLeadingSlash = exports.IS_BROWSER = void 0;
|
|
4
4
|
// This file is intended to provide selective imports from @redocly/theme/core
|
|
5
5
|
// to reduce bundle size by exporting only functionality used in the @redocly/openapi-docs package.
|
|
6
6
|
//
|
|
@@ -45,4 +45,6 @@ Object.defineProperty(exports, "isNotNull", { enumerable: true, get: function ()
|
|
|
45
45
|
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return type_guards_1.isObject; } });
|
|
46
46
|
var ThemeDataContext_1 = require("../contexts/ThemeDataContext");
|
|
47
47
|
Object.defineProperty(exports, "ThemeDataContext", { enumerable: true, get: function () { return ThemeDataContext_1.ThemeDataContext; } });
|
|
48
|
+
var catalog_1 = require("../constants/catalog");
|
|
49
|
+
Object.defineProperty(exports, "ENTITY_RELATION_TYPES", { enumerable: true, get: function () { return catalog_1.ENTITY_RELATION_TYPES; } });
|
|
48
50
|
//# sourceMappingURL=index.js.map
|
package/lib/core/styles/index.js
CHANGED
|
@@ -14,6 +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
|
+
exports.xyflow = void 0;
|
|
17
18
|
__exportStar(require("./global"), exports);
|
|
18
19
|
__exportStar(require("./dark"), exports);
|
|
20
|
+
var xyflow_1 = require("./xyflow");
|
|
21
|
+
Object.defineProperty(exports, "xyflow", { enumerable: true, get: function () { return xyflow_1.xyflow; } });
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const xyflow: import("styled-components").FlattenSimpleInterpolation;
|