@eventcatalog/core 2.45.2 → 2.45.3
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-GHBK2QBQ.js → chunk-KLNIUFPG.js} +1 -1
- package/dist/{chunk-JGJBD36S.js → chunk-YIR6C2W3.js} +1 -1
- package/dist/{chunk-LAXPNLIC.js → chunk-ZOCINDXG.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 -1
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +33 -0
- package/package.json +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-YIR6C2W3.js";
|
|
4
|
+
import "../chunk-ZOCINDXG.js";
|
|
5
|
+
import "../chunk-KLNIUFPG.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,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-YIR6C2W3.js";
|
|
10
|
+
import "./chunk-ZOCINDXG.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-EXAALOQA.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KLNIUFPG.js";
|
|
19
19
|
import {
|
|
20
20
|
isAuthEnabled,
|
|
21
21
|
isBackstagePluginEnabled,
|
|
@@ -9,7 +9,8 @@ import remarkDirective from 'remark-directive';
|
|
|
9
9
|
import { remarkDirectives } from "./src/remark-plugins/directives"
|
|
10
10
|
import node from '@astrojs/node';
|
|
11
11
|
import remarkComment from 'remark-comment'
|
|
12
|
-
import
|
|
12
|
+
import rehypeSlug from 'rehype-slug';
|
|
13
|
+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
13
14
|
|
|
14
15
|
/** @type {import('bin/eventcatalog.config').Config} */
|
|
15
16
|
import config from './eventcatalog.config';
|
|
@@ -60,6 +61,17 @@ export default defineConfig({
|
|
|
60
61
|
// https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
|
|
61
62
|
optimize: config.mdxOptimize || false,
|
|
62
63
|
remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid],
|
|
64
|
+
rehypePlugins: [
|
|
65
|
+
rehypeSlug,
|
|
66
|
+
[
|
|
67
|
+
rehypeAutolinkHeadings,
|
|
68
|
+
{
|
|
69
|
+
behavior: 'append',
|
|
70
|
+
properties: { className: ['anchor-link'] },
|
|
71
|
+
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
],
|
|
63
75
|
gfm: true,
|
|
64
76
|
}),
|
|
65
77
|
config.output !== 'server' && pagefind(),
|
|
@@ -189,6 +189,39 @@ const canPageBeEmbedded = process.env.ENABLE_EMBED === 'true';
|
|
|
189
189
|
visibility: visible;
|
|
190
190
|
z-index: 100;
|
|
191
191
|
}
|
|
192
|
+
|
|
193
|
+
/* Hide anchor link by default */
|
|
194
|
+
.anchor-link {
|
|
195
|
+
display: inline-block;
|
|
196
|
+
width: 1em;
|
|
197
|
+
height: 1em;
|
|
198
|
+
margin-left: 0.5rem;
|
|
199
|
+
margin-top: 0.25rem;
|
|
200
|
+
background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22m12.11%2015.39-3.88%203.88a2.52%202.52%200%200%201-3.5%200%202.47%202.47%200%200%201%200-3.5l3.88-3.88a1%201%200%200%200-1.42-1.42l-3.88%203.89a4.48%204.48%200%200%200%206.33%206.33l3.89-3.88a1%201%200%201%200-1.42-1.42Zm8.58-12.08a4.49%204.49%200%200%200-6.33%200l-3.89%203.88a1%201%200%200%200%201.42%201.42l3.88-3.88a2.52%202.52%200%200%201%203.5%200%202.47%202.47%200%200%201%200%203.5l-3.88%203.88a1%201%200%201%200%201.42%201.42l3.88-3.89a4.49%204.49%200%200%200%200-6.33ZM8.83%2015.17a1%201%200%200%200%201.1.22%201%201%200%200%200%20.32-.22l4.92-4.92a1%201%200%200%200-1.42-1.42l-4.92%204.92a1%201%200%200%200%200%201.42Z%22/%3E%3C/svg%3E');
|
|
201
|
+
background-repeat: no-repeat;
|
|
202
|
+
background-position: center;
|
|
203
|
+
background-size: 1em 1em;
|
|
204
|
+
opacity: 0;
|
|
205
|
+
transition: opacity 0.2s ease-in-out;
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
vertical-align: -2px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Show icon on heading hover */
|
|
211
|
+
h1:hover .anchor-link,
|
|
212
|
+
h2:hover .anchor-link,
|
|
213
|
+
h3:hover .anchor-link,
|
|
214
|
+
h4:hover .anchor-link,
|
|
215
|
+
h5:hover .anchor-link,
|
|
216
|
+
h6:hover .anchor-link {
|
|
217
|
+
opacity: 1;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* Show on keyboard focus */
|
|
221
|
+
.anchor-link:focus {
|
|
222
|
+
opacity: 1;
|
|
223
|
+
outline: none;
|
|
224
|
+
}
|
|
192
225
|
</style>
|
|
193
226
|
</head>
|
|
194
227
|
<body>
|
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.45.
|
|
9
|
+
"version": "2.45.3",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"react-dom": "^18.3.1",
|
|
86
86
|
"react-markdown": "^10.1.0",
|
|
87
87
|
"react-syntax-highlighter": "^15.6.1",
|
|
88
|
+
"rehype-autolink-headings": "^7.1.0",
|
|
88
89
|
"rehype-slug": "^6.0.0",
|
|
89
90
|
"remark-comment": "^1.0.0",
|
|
90
91
|
"remark-directive": "^3.0.0",
|