@eventcatalog/core 2.54.4 → 2.54.6
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/README.md +2 -1
- 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-ILYNXPYT.js → chunk-VK6PF4A5.js} +1 -1
- package/dist/{chunk-QTOY4HR4.js → chunk-WDYJMVBW.js} +1 -1
- package/dist/{chunk-RSPVRELK.js → chunk-ZPY6TKZV.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/Search/Search.astro +13 -6
- package/eventcatalog/src/utils/files.ts +10 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
|
|
35
35
|
|
|
36
36
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
37
|
-
[](#contributors-)
|
|
38
38
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
39
39
|
|
|
40
40
|
[Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
|
|
@@ -257,6 +257,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
257
257
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ababilone"><img src="https://avatars.githubusercontent.com/u/925013?v=4?s=100" width="100px;" alt="Arnaud Babilone"/><br /><sub><b>Arnaud Babilone</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=ababilone" title="Code">💻</a></td>
|
|
258
258
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/alexanderhorner"><img src="https://avatars.githubusercontent.com/u/18349361?v=4?s=100" width="100px;" alt="Alexander Horner"/><br /><sub><b>Alexander Horner</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=alexanderhorner" title="Code">💻</a></td>
|
|
259
259
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/simonwfarrow"><img src="https://avatars.githubusercontent.com/u/3245908?v=4?s=100" width="100px;" alt="simonwfarrow"/><br /><sub><b>simonwfarrow</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=simonwfarrow" title="Code">💻</a></td>
|
|
260
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/augusto-romero-arango"><img src="https://avatars.githubusercontent.com/u/142316821?v=4?s=100" width="100px;" alt="Augusto Romero Arango"/><br /><sub><b>Augusto Romero Arango</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=augusto-romero-arango" title="Code">💻</a></td>
|
|
260
261
|
</tr>
|
|
261
262
|
</tbody>
|
|
262
263
|
</table>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZPY6TKZV.js";
|
|
4
|
+
import "../chunk-WDYJMVBW.js";
|
|
5
|
+
import "../chunk-VK6PF4A5.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-XE6PFSH5.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZPY6TKZV.js";
|
|
10
|
+
import "./chunk-WDYJMVBW.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-LDBRNJIL.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VK6PF4A5.js";
|
|
19
19
|
import {
|
|
20
20
|
getProjectOutDir,
|
|
21
21
|
isAuthEnabled,
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
import MagnifyingGlassIcon from '@heroicons/react/24/outline/MagnifyingGlassIcon';
|
|
3
3
|
import SearchModal from './SearchModal.tsx';
|
|
4
|
+
import { buildUrl } from '@utils/url-builder.ts';
|
|
5
|
+
|
|
6
|
+
const pagefindJsUrl = buildUrl('/pagefind/pagefind.js');
|
|
7
|
+
const pagefindCssUrl = buildUrl('/pagefind/pagefind-ui.css');
|
|
4
8
|
---
|
|
5
9
|
|
|
6
|
-
<link href=
|
|
7
|
-
<script type="module">
|
|
10
|
+
<link href={pagefindCssUrl} rel="stylesheet" />
|
|
11
|
+
<script type="module" define:vars={{ pagefindJsUrl }}>
|
|
8
12
|
// Load Pagefind and expose it globally
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
try {
|
|
14
|
+
const pagefind = await import(pagefindJsUrl);
|
|
15
|
+
window.pagefind = pagefind;
|
|
16
|
+
window.dispatchEvent(new CustomEvent('pagefindLoaded'));
|
|
17
|
+
} catch (error) {
|
|
18
|
+
console.error('Failed to load pagefind:', error);
|
|
19
|
+
}
|
|
13
20
|
</script>
|
|
14
21
|
|
|
15
22
|
<div>
|
|
@@ -12,12 +12,18 @@ export const resolveProjectPath = (filePath: string, projectDir: string = proces
|
|
|
12
12
|
const projectDirName = path.basename(projectDir);
|
|
13
13
|
const projectParentName = path.basename(path.dirname(projectDir));
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
// Normalize path separators for cross-platform compatibility
|
|
16
|
+
const normalizedPathAfterDotDot = pathAfterDotDot.replace(/[/\\]/g, path.sep);
|
|
17
|
+
const expectedPattern = `${projectParentName}${path.sep}${projectDirName}${path.sep}`;
|
|
18
|
+
|
|
19
|
+
if (normalizedPathAfterDotDot.startsWith(expectedPattern)) {
|
|
20
|
+
const remainingPath = normalizedPathAfterDotDot.substring(expectedPattern.length);
|
|
17
21
|
return path.join(projectDir, remainingPath);
|
|
18
22
|
} else {
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
// Instead of going to parent directory, resolve relative to current project directory
|
|
24
|
+
// This fixes the issue where ../ paths were incorrectly resolved outside the project
|
|
25
|
+
// Normalize the path separators before joining
|
|
26
|
+
return path.join(projectDir, normalizedPathAfterDotDot);
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
return path.join(projectDir, filePath);
|