@eventcatalog/core 2.58.0 → 2.58.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-TIETK4WY.js → chunk-PV4MP6U4.js} +1 -1
- package/dist/{chunk-GKUPYLJL.js → chunk-WK6GQM5P.js} +1 -1
- package/dist/{chunk-PAKFTVIV.js → chunk-ZBPULBAC.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/astro.config.mjs +13 -7
- package/eventcatalog/src/components/MDX/Attachments.astro +1 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-PV4MP6U4.js";
|
|
4
|
+
import "../chunk-WK6GQM5P.js";
|
|
5
|
+
import "../chunk-ZBPULBAC.js";
|
|
6
6
|
import "../chunk-UPONRQSN.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,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-PV4MP6U4.js";
|
|
10
|
+
import "./chunk-WK6GQM5P.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-55D645EH.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZBPULBAC.js";
|
|
19
19
|
import {
|
|
20
20
|
getProjectOutDir,
|
|
21
21
|
isAuthEnabled,
|
|
@@ -13,6 +13,8 @@ import remarkComment from 'remark-comment'
|
|
|
13
13
|
import rehypeSlug from 'rehype-slug';
|
|
14
14
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
15
15
|
|
|
16
|
+
import rehypeExpressiveCode from 'rehype-expressive-code'
|
|
17
|
+
|
|
16
18
|
/** @type {import('bin/eventcatalog.config').Config} */
|
|
17
19
|
import config from './eventcatalog.config';
|
|
18
20
|
import expressiveCode from 'astro-expressive-code';
|
|
@@ -23,6 +25,13 @@ const base = config.base || '/';
|
|
|
23
25
|
const host = config.host || false;
|
|
24
26
|
const compress = config.compress ?? true;
|
|
25
27
|
|
|
28
|
+
const expressiveCodeConfig = {
|
|
29
|
+
themes: ['andromeeda'],
|
|
30
|
+
defaultProps: {
|
|
31
|
+
wrap: true,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
// https://astro.build/config
|
|
27
36
|
export default defineConfig({
|
|
28
37
|
base,
|
|
@@ -53,25 +62,22 @@ export default defineConfig({
|
|
|
53
62
|
react(),
|
|
54
63
|
tailwind(),
|
|
55
64
|
expressiveCode({
|
|
56
|
-
|
|
57
|
-
defaultProps: {
|
|
58
|
-
// Enable word wrap by default
|
|
59
|
-
wrap: true,
|
|
60
|
-
},
|
|
65
|
+
...expressiveCodeConfig,
|
|
61
66
|
}),
|
|
62
|
-
|
|
63
67
|
mdx({
|
|
64
68
|
// https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
|
|
65
69
|
optimize: config.mdxOptimize || false,
|
|
66
70
|
remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid, plantuml],
|
|
67
71
|
rehypePlugins: [
|
|
72
|
+
[rehypeExpressiveCode, {
|
|
73
|
+
...expressiveCodeConfig,
|
|
74
|
+
}],
|
|
68
75
|
rehypeSlug,
|
|
69
76
|
[
|
|
70
77
|
rehypeAutolinkHeadings,
|
|
71
78
|
{
|
|
72
79
|
behavior: 'append',
|
|
73
80
|
properties: { className: ['anchor-link'] },
|
|
74
|
-
|
|
75
81
|
},
|
|
76
82
|
],
|
|
77
83
|
],
|
|
@@ -91,7 +91,7 @@ const sortedGroups = Object.entries(groupedAttachments).sort(([a], [b]) => {
|
|
|
91
91
|
) : (
|
|
92
92
|
<div class="space-y-6">
|
|
93
93
|
{sortedGroups.map(([groupType, groupAttachments], index) => (
|
|
94
|
-
<div
|
|
94
|
+
<div>
|
|
95
95
|
<h4 class="text-sm font-medium text-gray-900 mb-3 uppercase tracking-wider">
|
|
96
96
|
{groupType} ({groupAttachments.length})
|
|
97
97
|
</h4>
|
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.58.
|
|
9
|
+
"version": "2.58.2",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"ai": "^4.3.9",
|
|
61
61
|
"astro": "^5.13.8",
|
|
62
62
|
"astro-compress": "^2.3.8",
|
|
63
|
-
"astro-expressive-code": "^0.
|
|
63
|
+
"astro-expressive-code": "^0.41.3",
|
|
64
64
|
"astro-seo": "^0.8.4",
|
|
65
65
|
"auth-astro": "^4.2.0",
|
|
66
66
|
"axios": "^1.7.7",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"react-markdown": "^10.1.0",
|
|
94
94
|
"react-syntax-highlighter": "^15.6.1",
|
|
95
95
|
"rehype-autolink-headings": "^7.1.0",
|
|
96
|
+
"rehype-expressive-code": "^0.41.3",
|
|
96
97
|
"rehype-slug": "^6.0.0",
|
|
97
98
|
"remark-comment": "^1.0.0",
|
|
98
99
|
"remark-directive": "^3.0.0",
|