@eventcatalog/core 2.32.1 → 2.32.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-PTMNJZTX.js → chunk-DSBB2TAS.js} +1 -1
- package/dist/{chunk-OW47VWAS.js → chunk-IHJ2QDXX.js} +1 -1
- package/dist/{chunk-SPOXZSZQ.js → chunk-JJKQS722.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/components/MDX/Link/Link.astro +7 -0
- package/eventcatalog/src/components/MDX/ResourceLink/ResourceLink.astro +34 -0
- package/eventcatalog/src/components/MDX/components.tsx +16 -13
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IHJ2QDXX.js";
|
|
4
|
+
import "../chunk-DSBB2TAS.js";
|
|
5
|
+
import "../chunk-JJKQS722.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-UKJ7F5WR.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-IHJ2QDXX.js";
|
|
10
|
+
import "./chunk-DSBB2TAS.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-7SI5EVOX.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JJKQS722.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogProEnabled
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { buildUrl } from '@utils/url-builder';
|
|
3
|
+
|
|
4
|
+
const resourceToCollectionMap = {
|
|
5
|
+
service: 'services',
|
|
6
|
+
event: 'events',
|
|
7
|
+
command: 'commands',
|
|
8
|
+
query: 'queries',
|
|
9
|
+
domain: 'domains',
|
|
10
|
+
flow: 'flows',
|
|
11
|
+
channel: 'channels',
|
|
12
|
+
user: 'users',
|
|
13
|
+
team: 'teams',
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
const { id, version, type } = Astro.props;
|
|
17
|
+
const collection = resourceToCollectionMap[type as keyof typeof resourceToCollectionMap];
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
{
|
|
21
|
+
version && (
|
|
22
|
+
<a href={buildUrl(`/docs/${collection}/${id}/${version}`)} class="text-purple-500 hover:text-purple-700">
|
|
23
|
+
<slot />
|
|
24
|
+
</a>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
{
|
|
29
|
+
!version && (
|
|
30
|
+
<a href={buildUrl(`/docs/${collection}/${id}`)} class="text-purple-500 hover:text-purple-700">
|
|
31
|
+
<slot />
|
|
32
|
+
</a>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
@@ -16,7 +16,8 @@ import MessageTable from '@components/MDX/MessageTable/MessageTable.astro';
|
|
|
16
16
|
import ResourceGroupTable from '@components/MDX/ResourceGroupTable/ResourceGroupTable.astro';
|
|
17
17
|
import Tabs from '@components/MDX/Tabs/Tabs.astro';
|
|
18
18
|
import TabItem from '@components/MDX/Tabs/TabItem.astro';
|
|
19
|
-
|
|
19
|
+
import ResourceLink from '@components/MDX/ResourceLink/ResourceLink.astro';
|
|
20
|
+
import Link from '@components/MDX/Link/Link.astro';
|
|
20
21
|
// Portals: required for server/client components
|
|
21
22
|
import NodeGraphPortal from '@components/MDX/NodeGraph/NodeGraphPortal';
|
|
22
23
|
import SchemaViewerPortal from '@components/MDX/SchemaViewer/SchemaViewerPortal';
|
|
@@ -26,23 +27,25 @@ const components = (props: any) => {
|
|
|
26
27
|
return {
|
|
27
28
|
Accordion,
|
|
28
29
|
AccordionGroup,
|
|
30
|
+
Admonition,
|
|
31
|
+
AsyncAPI,
|
|
32
|
+
ChannelInformation: (mdxProp: any) => ChannelInformation({ ...props.data, ...mdxProp }),
|
|
33
|
+
File: (mdxProp: any) => File({ ...props, ...mdxProp }),
|
|
29
34
|
Flow,
|
|
35
|
+
Link: (mdxProp: any) => jsx(Link, { ...props, ...mdxProp }),
|
|
36
|
+
MessageTable: (mdxProp: any) => jsx(MessageTable, { ...props, ...mdxProp }),
|
|
37
|
+
NodeGraph: (mdxProp: any) => NodeGraphPortal({ ...props.data, ...mdxProp }),
|
|
30
38
|
OpenAPI,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
ResourceGroupTable: (mdxProp: any) => jsx(ResourceGroupTable, { ...props, ...mdxProp }),
|
|
40
|
+
ResourceLink: (mdxProp: any) => jsx(ResourceLink, { ...props, ...mdxProp }),
|
|
41
|
+
Schema: (mdxProp: any) => jsx(Schema, { ...props, ...mdxProp }),
|
|
42
|
+
SchemaViewer: (mdxProp: any) => SchemaViewerPortal({ ...props.data, ...mdxProp }),
|
|
34
43
|
Step,
|
|
35
44
|
Steps,
|
|
36
|
-
Tabs,
|
|
37
45
|
TabItem,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
ChannelInformation: (mdxProp: any) => ChannelInformation({ ...props.data, ...mdxProp }),
|
|
42
|
-
SchemaViewer: (mdxProp: any) => SchemaViewerPortal({ ...props.data, ...mdxProp }),
|
|
43
|
-
Schema: (mdxProp: any) => jsx(Schema, { ...props, ...mdxProp }),
|
|
44
|
-
MessageTable: (mdxProp: any) => jsx(MessageTable, { ...props, ...mdxProp }),
|
|
45
|
-
ResourceGroupTable: (mdxProp: any) => jsx(ResourceGroupTable, { ...props, ...mdxProp }),
|
|
46
|
+
Tabs,
|
|
47
|
+
Tile,
|
|
48
|
+
Tiles,
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
51
|
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/event-catalog/eventcatalog.git"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
-
"version": "2.32.
|
|
9
|
+
"version": "2.32.2",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@astrojs/markdown-remark": "^6.3.1",
|
|
25
|
-
"@astrojs/mdx": "^4.2.
|
|
26
|
-
"@astrojs/react": "^4.2.
|
|
25
|
+
"@astrojs/mdx": "^4.2.2",
|
|
26
|
+
"@astrojs/react": "^4.2.2",
|
|
27
27
|
"@astrojs/rss": "^4.0.11",
|
|
28
|
-
"@astrojs/tailwind": "^6.0.
|
|
28
|
+
"@astrojs/tailwind": "^6.0.2",
|
|
29
29
|
"@asyncapi/avro-schema-parser": "^3.0.24",
|
|
30
30
|
"@asyncapi/parser": "^3.4.0",
|
|
31
31
|
"@asyncapi/react-component": "^2.4.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@tailwindcss/typography": "^0.5.13",
|
|
47
47
|
"@tanstack/react-table": "^8.17.3",
|
|
48
48
|
"@xyflow/react": "^12.3.6",
|
|
49
|
-
"astro": "^5.5.
|
|
49
|
+
"astro": "^5.5.5",
|
|
50
50
|
"astro-expressive-code": "^0.40.1",
|
|
51
51
|
"astro-pagefind": "^1.6.0",
|
|
52
52
|
"astro-seo": "^0.8.4",
|