@redocly/theme 0.57.0-next.1 → 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.
Files changed (65) hide show
  1. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +1 -0
  2. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +36 -25
  3. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.d.ts +6 -0
  4. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.js +38 -0
  5. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.d.ts +6 -0
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +83 -0
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.d.ts +2 -0
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.js +29 -0
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.d.ts +8 -0
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.js +33 -0
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.d.ts +16 -0
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.js +24 -0
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.d.ts +7 -0
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.js +30 -0
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +5 -2
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +1 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +7 -3
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +3 -8
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +22 -0
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.js +18 -0
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +2 -2
  22. package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
  23. package/lib/components/Catalog/CatalogEntityIcon.js +4 -6
  24. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +1 -1
  25. package/lib/components/Catalog/variables.js +42 -0
  26. package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.js +13 -8
  27. package/lib/core/constants/catalog.d.ts +10 -0
  28. package/lib/core/constants/catalog.js +14 -1
  29. package/lib/core/hooks/catalog/useGraph.d.ts +15 -0
  30. package/lib/core/hooks/catalog/useGraph.js +165 -0
  31. package/lib/core/hooks/index.d.ts +1 -0
  32. package/lib/core/hooks/index.js +1 -0
  33. package/lib/core/openapi/index.d.ts +1 -0
  34. package/lib/core/openapi/index.js +3 -1
  35. package/lib/core/styles/index.d.ts +1 -0
  36. package/lib/core/styles/index.js +3 -0
  37. package/lib/core/styles/xyflow.d.ts +1 -0
  38. package/lib/core/styles/xyflow.js +623 -0
  39. package/lib/core/utils/dynamic.d.ts +5 -3
  40. package/lib/core/utils/dynamic.js +1 -1
  41. package/package.json +3 -2
  42. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +1 -0
  43. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +60 -42
  44. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsEdge.tsx +63 -0
  45. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.lazy.tsx +7 -0
  46. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.tsx +91 -0
  47. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.tsx +48 -0
  48. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode.tsx +45 -0
  49. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.tsx +49 -0
  50. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +6 -2
  51. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +8 -2
  52. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +24 -43
  53. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +76 -0
  54. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +2 -2
  55. package/src/components/Catalog/CatalogEntityIcon.tsx +7 -5
  56. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +1 -1
  57. package/src/components/Catalog/variables.ts +42 -0
  58. package/src/components/CatalogClassic/CatalogClassicVirtualizedGroups.tsx +29 -18
  59. package/src/core/constants/catalog.ts +13 -0
  60. package/src/core/hooks/catalog/useGraph.ts +236 -0
  61. package/src/core/hooks/index.ts +1 -0
  62. package/src/core/openapi/index.ts +1 -0
  63. package/src/core/styles/index.ts +1 -0
  64. package/src/core/styles/xyflow.ts +620 -0
  65. package/src/core/utils/dynamic.tsx +17 -15
@@ -384,5 +384,47 @@ exports.catalog = (0, styled_components_1.css) `
384
384
 
385
385
  --catalog-avatar-bg-color: #ededf2;
386
386
  // @tokens End
387
+
388
+ /**
389
+ * @tokens Catalog entity relations node
390
+ */
391
+ --catalog-entity-relations-node-padding-vertical: 10px;
392
+ --catalog-entity-relations-node-padding-horizontal: 14px;
393
+ --catalog-entity-relations-node-padding: var(--catalog-entity-relations-node-padding-vertical) var(--catalog-entity-relations-node-padding-horizontal);
394
+ --catalog-entity-relations-node-gap: 8px;
395
+ --catalog-entity-relations-node-border-radius: 10px;
396
+
397
+ --catalog-entity-relations-node-bg-color: var(--layer-color);
398
+ --catalog-entity-relations-node-text-color: var(--catalog-card-text-color);
399
+
400
+ --catalog-entity-relations-node-border-color: var(--border-color-secondary);
401
+ --catalog-entity-relations-node-border-width: var(--border-width);
402
+ --catalog-entity-relations-node-border-style: var(--border-style);
403
+
404
+ --catalog-entity-relations-node-font-weight: var(--font-weight-regular);
405
+ --catalog-entity-relations-node-font-weight-root: 600;
406
+
407
+ --catalog-entity-relations-node-root-bg-color: var(--color-blue-6);
408
+ --catalog-entity-relations-node-root-text-color: #ffffff;
409
+ --catalog-entity-relations-node-root-icon-color: #ffffff;
410
+ // @tokens End
411
+
412
+ /**
413
+ * @tokens Catalog entity relations edge
414
+ */
415
+ --catalog-entity-relations-edge-label-bg-color: var(--layer-color);
416
+ --catalog-entity-relations-edge-label-text-color: var(--catalog-card-text-color);
417
+ --catalog-entity-relations-edge-label-border-color: var(--border-color-secondary);
418
+ --catalog-entity-relations-edge-label-border-width: var(--border-width);
419
+ --catalog-entity-relations-edge-label-border-style: var(--border-style);
420
+ --catalog-entity-relations-edge-label-border-radius: 10px;
421
+
422
+ --catalog-entity-relations-edge-label-padding-vertical: 2px;
423
+ --catalog-entity-relations-edge-label-padding-horizontal: 8px;
424
+ --catalog-entity-relations-edge-label-padding: var(--catalog-entity-relations-edge-label-padding-vertical) var(--catalog-entity-relations-edge-label-padding-horizontal);
425
+
426
+ --catalog-entity-relations-edge-label-font-size: 12px;
427
+ --catalog-entity-relations-edge-label-line-height: 1.2;
428
+ // @tokens End
387
429
  `;
388
430
  //# sourceMappingURL=variables.js.map
@@ -103,6 +103,7 @@ function CatalogClassicVirtualizedGroups({ groups, filters, filterTerm, }) {
103
103
  return ESTIMATED_CARD_HEIGHT;
104
104
  },
105
105
  overscan: 5,
106
+ enabled: shouldVirtualize,
106
107
  });
107
108
  (0, react_1.useEffect)(() => {
108
109
  if (!size.width || !shouldVirtualize) {
@@ -111,19 +112,23 @@ function CatalogClassicVirtualizedGroups({ groups, filters, filterTerm, }) {
111
112
  virtualizer.measure();
112
113
  // eslint-disable-next-line react-hooks/exhaustive-deps
113
114
  }, [filters, filterTerm, size.width, shouldVirtualize]);
115
+ const renderRow = (rowData) => {
116
+ if (rowData.type === 'header') {
117
+ return (react_1.default.createElement(SSRHeaderRow, { key: rowData.key },
118
+ react_1.default.createElement(CatalogSeparatorLabel, null, rowData.groupTitle),
119
+ react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, rowData.groupCount)));
120
+ }
121
+ return (react_1.default.createElement(SSRGridRow, { key: rowData.key }, rowData.items.map((item) => (react_1.default.createElement(CatalogClassicCard_1.CatalogClassicCard, { key: item.link, item: item })))));
122
+ };
114
123
  if (!isClient) {
115
124
  return (react_1.default.createElement("div", { ref: parentRef, "data-component-name": "CatalogClassic/CatalogClassicVirtualizedGroups" },
116
- flatRows.slice(0, 15).map((rowData) => {
117
- if (rowData.type === 'header') {
118
- return (react_1.default.createElement(SSRHeaderRow, { key: rowData.key },
119
- react_1.default.createElement(CatalogSeparatorLabel, null, rowData.groupTitle),
120
- react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, rowData.groupCount)));
121
- }
122
- return (react_1.default.createElement(SSRGridRow, { key: rowData.key }, rowData.items.map((item) => (react_1.default.createElement(CatalogClassicCard_1.CatalogClassicCard, { key: item.link, item: item })))));
123
- }),
125
+ flatRows.slice(0, 15).map((rowData) => renderRow(rowData)),
124
126
  react_1.default.createElement(LoadingWrapper, null,
125
127
  react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { color: "var(--catalog-classic-description-text-color)", size: "20px" }))));
126
128
  }
129
+ if (!shouldVirtualize) {
130
+ return (react_1.default.createElement("div", { ref: parentRef, "data-component-name": "CatalogClassic/CatalogClassicVirtualizedGroups" }, flatRows.map((rowData) => renderRow(rowData))));
131
+ }
127
132
  return (react_1.default.createElement("div", { ref: parentRef, "data-component-name": "CatalogClassic/CatalogClassicVirtualizedGroups" },
128
133
  react_1.default.createElement("div", { style: {
129
134
  position: 'relative',
@@ -2,3 +2,13 @@ import type { EntityRelationType } from '../types/catalog';
2
2
  export declare const CATALOG_TAG_MAX_LENGTH = 15;
3
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
4
  export declare const reverseRelationMap: Record<EntityRelationType, EntityRelationType>;
5
+ export declare enum GraphHandleType {
6
+ Target = "target",
7
+ Source = "source"
8
+ }
9
+ export declare enum GraphCustomNodeType {
10
+ CatalogEntity = "catalogEntity"
11
+ }
12
+ export declare enum GraphCustomEdgeType {
13
+ CatalogEdge = "catalogEdge"
14
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reverseRelationMap = exports.ENTITY_RELATION_TYPES = exports.CATALOG_TAG_MAX_LENGTH = void 0;
3
+ exports.GraphCustomEdgeType = exports.GraphCustomNodeType = exports.GraphHandleType = exports.reverseRelationMap = exports.ENTITY_RELATION_TYPES = exports.CATALOG_TAG_MAX_LENGTH = void 0;
4
4
  exports.CATALOG_TAG_MAX_LENGTH = 15;
5
5
  exports.ENTITY_RELATION_TYPES = [
6
6
  'partOf',
@@ -56,4 +56,17 @@ exports.reverseRelationMap = {
56
56
  triggers: 'triggeredBy',
57
57
  triggeredBy: 'triggers',
58
58
  };
59
+ var GraphHandleType;
60
+ (function (GraphHandleType) {
61
+ GraphHandleType["Target"] = "target";
62
+ GraphHandleType["Source"] = "source";
63
+ })(GraphHandleType || (exports.GraphHandleType = GraphHandleType = {}));
64
+ var GraphCustomNodeType;
65
+ (function (GraphCustomNodeType) {
66
+ GraphCustomNodeType["CatalogEntity"] = "catalogEntity";
67
+ })(GraphCustomNodeType || (exports.GraphCustomNodeType = GraphCustomNodeType = {}));
68
+ var GraphCustomEdgeType;
69
+ (function (GraphCustomEdgeType) {
70
+ GraphCustomEdgeType["CatalogEdge"] = "catalogEdge";
71
+ })(GraphCustomEdgeType || (exports.GraphCustomEdgeType = GraphCustomEdgeType = {}));
59
72
  //# sourceMappingURL=catalog.js.map
@@ -0,0 +1,15 @@
1
+ import { type Node, type Edge, type Connection, OnNodesChange, OnEdgesChange } from '@xyflow/react';
2
+ import { type CatalogEntityNodeData } from '../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode';
3
+ import { BffCatalogEntity, BffCatalogRelatedEntity } from '../../types';
4
+ export type UseGraphProps = {
5
+ entity: BffCatalogEntity;
6
+ relations: BffCatalogRelatedEntity[];
7
+ };
8
+ export type UseGraphReturn = {
9
+ nodes: Node<CatalogEntityNodeData>[];
10
+ edges: Edge[];
11
+ onNodesChange: OnNodesChange<Node<CatalogEntityNodeData>>;
12
+ onEdgesChange: OnEdgesChange<Edge>;
13
+ onConnect: (params: Connection) => void;
14
+ };
15
+ export declare function useGraph({ entity, relations }: UseGraphProps): UseGraphReturn;
@@ -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
@@ -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';
@@ -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);
@@ -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
@@ -1,2 +1,3 @@
1
1
  export * from './global';
2
2
  export * from './dark';
3
+ export { xyflow } from './xyflow';
@@ -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;