@eventcatalog/core 2.19.3 → 2.19.5
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-HKXWXCBU.js → chunk-BLDONK5J.js} +15 -16
- package/dist/{chunk-GOZSBK4C.js → chunk-OKHQFK4L.js} +1 -1
- package/dist/{chunk-XVQA6PHI.js → chunk-Q6OST5JI.js} +1 -1
- package/dist/{chunk-QWOWEO4Q.js → chunk-TWY4P4FZ.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +16 -17
- package/dist/eventcatalog.js +4 -4
- package/dist/resolve-catalog-dependencies.cjs +15 -16
- package/dist/resolve-catalog-dependencies.js +1 -1
- package/eventcatalog/package.json +2 -3
- package/eventcatalog/src/components/Checkbox.astro +38 -0
- package/eventcatalog/src/components/MDX/SchemaViewer/SchemaViewer.tsx +2 -2
- package/eventcatalog/src/components/MDX/SchemaViewer/css/stoplight-mosaic-styles.css +29609 -0
- package/eventcatalog/src/components/MDX/SchemaViewer/css/stoplight-mosaic-theme-default.css +333 -0
- package/eventcatalog/src/components/Tables/Table.tsx +28 -2
- package/eventcatalog/src/layouts/DiscoverLayout.astro +8 -3
- package/eventcatalog/src/utils/collections/file-diffs.ts +3 -24
- package/eventcatalog/src/utils/collections/util.ts +12 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<h4>Features: Documentation generator for Event Driven Architectures, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
|
|
33
33
|
|
|
34
34
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
35
|
-
[](#contributors-)
|
|
36
36
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
37
37
|
|
|
38
38
|
[Read the Docs](https://eventcatalog.dev/) | [Edit the Docs](https://github.com/event-catalog/docs) | [View Demo](https://demo.eventcatalog.dev/docs)
|
|
@@ -251,6 +251,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
251
251
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/d-o-h"><img src="https://avatars.githubusercontent.com/u/23699653?v=4?s=100" width="100px;" alt="d-o-h"/><br /><sub><b>d-o-h</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=d-o-h" title="Code">💻</a></td>
|
|
252
252
|
<td align="center" valign="top" width="14.28%"><a href="https://pallares.io"><img src="https://avatars.githubusercontent.com/u/1077520?v=4?s=100" width="100px;" alt="Cristian Pallarés"/><br /><sub><b>Cristian Pallarés</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=skyrpex" title="Code">💻</a></td>
|
|
253
253
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SebasRendon12"><img src="https://avatars.githubusercontent.com/u/69688183?v=4?s=100" width="100px;" alt="Sebastian Rendon"/><br /><sub><b>Sebastian Rendon</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=SebasRendon12" title="Code">💻</a></td>
|
|
254
|
+
<td align="center" valign="top" width="14.28%"><a href="http://craig0990.co.uk"><img src="https://avatars.githubusercontent.com/u/461897?v=4?s=100" width="100px;" alt="Craig Roberts"/><br /><sub><b>Craig Roberts</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=craig0990" title="Code">💻</a></td>
|
|
254
255
|
</tr>
|
|
255
256
|
</tbody>
|
|
256
257
|
</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-TWY4P4FZ.js";
|
|
4
|
+
import "../chunk-Q6OST5JI.js";
|
|
5
|
+
import "../chunk-OKHQFK4L.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
// src/resolve-catalog-dependencies.js
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
8
|
+
import matter from "gray-matter";
|
|
8
9
|
var resolve_catalog_dependencies_default = async (catalogDir, core) => {
|
|
9
10
|
const catalogConfig = await getEventCatalogConfigFile(catalogDir);
|
|
10
11
|
const dependencies = catalogConfig?.dependencies ?? null;
|
|
@@ -19,25 +20,23 @@ var resolve_catalog_dependencies_default = async (catalogDir, core) => {
|
|
|
19
20
|
const resourceTypes = Object.keys(dependencies);
|
|
20
21
|
for (const resourceType of resourceTypes) {
|
|
21
22
|
for (const dependency of dependencies[resourceType]) {
|
|
22
|
-
const
|
|
23
|
+
const frontmatter = {
|
|
23
24
|
id: dependency.id,
|
|
25
|
+
name: dependency.id,
|
|
24
26
|
version: dependency.version || "1.0.0"
|
|
25
27
|
};
|
|
26
|
-
const markdown =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:::
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`;
|
|
40
|
-
const resourceFile = path.join(dependenciesDir, resourceType, resource.id, `index.md`);
|
|
28
|
+
const markdown = matter.stringify(
|
|
29
|
+
{
|
|
30
|
+
content: [
|
|
31
|
+
":::warning",
|
|
32
|
+
"You are running EventCatalog with dependencies enabled.",
|
|
33
|
+
"This resource is mocked and is a dependency. This means that the resource is managed and owned by another catalog.",
|
|
34
|
+
":::"
|
|
35
|
+
].join("\n\n")
|
|
36
|
+
},
|
|
37
|
+
frontmatter
|
|
38
|
+
);
|
|
39
|
+
const resourceFile = path.join(dependenciesDir, resourceType, dependency.id, `index.md`);
|
|
41
40
|
fs.mkdirSync(path.dirname(resourceFile), { recursive: true });
|
|
42
41
|
fs.writeFileSync(resourceFile, markdown);
|
|
43
42
|
}
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
161
161
|
var import_os = __toESM(require("os"), 1);
|
|
162
162
|
|
|
163
163
|
// package.json
|
|
164
|
-
var version = "2.19.
|
|
164
|
+
var version = "2.19.5";
|
|
165
165
|
|
|
166
166
|
// src/constants.ts
|
|
167
167
|
var VERSION = version;
|
|
@@ -469,6 +469,7 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
469
469
|
// src/resolve-catalog-dependencies.js
|
|
470
470
|
var import_node_path4 = __toESM(require("path"), 1);
|
|
471
471
|
var import_node_fs3 = __toESM(require("fs"), 1);
|
|
472
|
+
var import_gray_matter2 = __toESM(require("gray-matter"), 1);
|
|
472
473
|
var resolve_catalog_dependencies_default = async (catalogDir, core2) => {
|
|
473
474
|
const catalogConfig = await getEventCatalogConfigFile(catalogDir);
|
|
474
475
|
const dependencies = catalogConfig?.dependencies ?? null;
|
|
@@ -483,25 +484,23 @@ var resolve_catalog_dependencies_default = async (catalogDir, core2) => {
|
|
|
483
484
|
const resourceTypes = Object.keys(dependencies);
|
|
484
485
|
for (const resourceType of resourceTypes) {
|
|
485
486
|
for (const dependency of dependencies[resourceType]) {
|
|
486
|
-
const
|
|
487
|
+
const frontmatter = {
|
|
487
488
|
id: dependency.id,
|
|
489
|
+
name: dependency.id,
|
|
488
490
|
version: dependency.version || "1.0.0"
|
|
489
491
|
};
|
|
490
|
-
const markdown =
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
:::
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
`;
|
|
504
|
-
const resourceFile = import_node_path4.default.join(dependenciesDir, resourceType, resource.id, `index.md`);
|
|
492
|
+
const markdown = import_gray_matter2.default.stringify(
|
|
493
|
+
{
|
|
494
|
+
content: [
|
|
495
|
+
":::warning",
|
|
496
|
+
"You are running EventCatalog with dependencies enabled.",
|
|
497
|
+
"This resource is mocked and is a dependency. This means that the resource is managed and owned by another catalog.",
|
|
498
|
+
":::"
|
|
499
|
+
].join("\n\n")
|
|
500
|
+
},
|
|
501
|
+
frontmatter
|
|
502
|
+
);
|
|
503
|
+
const resourceFile = import_node_path4.default.join(dependenciesDir, resourceType, dependency.id, `index.md`);
|
|
505
504
|
import_node_fs3.default.mkdirSync(import_node_path4.default.dirname(resourceFile), { recursive: true });
|
|
506
505
|
import_node_fs3.default.writeFileSync(resourceFile, markdown);
|
|
507
506
|
}
|
package/dist/eventcatalog.js
CHANGED
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./chunk-SHCMAL37.js";
|
|
4
4
|
import {
|
|
5
5
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TWY4P4FZ.js";
|
|
7
|
+
import "./chunk-Q6OST5JI.js";
|
|
8
8
|
import {
|
|
9
9
|
catalogToAstro
|
|
10
10
|
} from "./chunk-WF34R5UT.js";
|
|
11
11
|
import {
|
|
12
12
|
VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OKHQFK4L.js";
|
|
14
14
|
import {
|
|
15
15
|
generate
|
|
16
16
|
} from "./chunk-YEQVKHST.js";
|
|
17
17
|
import "./chunk-7JDTB3U5.js";
|
|
18
18
|
import {
|
|
19
19
|
resolve_catalog_dependencies_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BLDONK5J.js";
|
|
21
21
|
import "./chunk-E7TXTI7G.js";
|
|
22
22
|
|
|
23
23
|
// src/eventcatalog.ts
|
|
@@ -71,6 +71,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
71
71
|
// src/resolve-catalog-dependencies.js
|
|
72
72
|
var import_node_path2 = __toESM(require("path"), 1);
|
|
73
73
|
var import_node_fs2 = __toESM(require("fs"), 1);
|
|
74
|
+
var import_gray_matter2 = __toESM(require("gray-matter"), 1);
|
|
74
75
|
var resolve_catalog_dependencies_default = async (catalogDir, core) => {
|
|
75
76
|
const catalogConfig = await getEventCatalogConfigFile(catalogDir);
|
|
76
77
|
const dependencies = catalogConfig?.dependencies ?? null;
|
|
@@ -85,25 +86,23 @@ var resolve_catalog_dependencies_default = async (catalogDir, core) => {
|
|
|
85
86
|
const resourceTypes = Object.keys(dependencies);
|
|
86
87
|
for (const resourceType of resourceTypes) {
|
|
87
88
|
for (const dependency of dependencies[resourceType]) {
|
|
88
|
-
const
|
|
89
|
+
const frontmatter = {
|
|
89
90
|
id: dependency.id,
|
|
91
|
+
name: dependency.id,
|
|
90
92
|
version: dependency.version || "1.0.0"
|
|
91
93
|
};
|
|
92
|
-
const markdown =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
:::
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
`;
|
|
106
|
-
const resourceFile = import_node_path2.default.join(dependenciesDir, resourceType, resource.id, `index.md`);
|
|
94
|
+
const markdown = import_gray_matter2.default.stringify(
|
|
95
|
+
{
|
|
96
|
+
content: [
|
|
97
|
+
":::warning",
|
|
98
|
+
"You are running EventCatalog with dependencies enabled.",
|
|
99
|
+
"This resource is mocked and is a dependency. This means that the resource is managed and owned by another catalog.",
|
|
100
|
+
":::"
|
|
101
|
+
].join("\n\n")
|
|
102
|
+
},
|
|
103
|
+
frontmatter
|
|
104
|
+
);
|
|
105
|
+
const resourceFile = import_node_path2.default.join(dependenciesDir, resourceType, dependency.id, `index.md`);
|
|
107
106
|
import_node_fs2.default.mkdirSync(import_node_path2.default.dirname(resourceFile), { recursive: true });
|
|
108
107
|
import_node_fs2.default.writeFileSync(resourceFile, markdown);
|
|
109
108
|
}
|
|
@@ -27,13 +27,12 @@
|
|
|
27
27
|
"@headlessui/react": "^2.0.3",
|
|
28
28
|
"@heroicons/react": "^2.1.3",
|
|
29
29
|
"@iconify-json/logos": "^1.2.4",
|
|
30
|
-
"@stoplight/json-schema-viewer": "^4.
|
|
31
|
-
"@stoplight/mosaic": "^1.53.2",
|
|
30
|
+
"@stoplight/json-schema-viewer": "^4.16.4",
|
|
32
31
|
"@tailwindcss/typography": "^0.5.13",
|
|
33
32
|
"@tanstack/react-table": "^8.17.3",
|
|
34
33
|
"@xyflow/react": "^12.3.6",
|
|
35
34
|
"astro": "^5.1.5",
|
|
36
|
-
"astro-expressive-code": "^0.
|
|
35
|
+
"astro-expressive-code": "^0.40.1",
|
|
37
36
|
"astro-pagefind": "^1.7.0",
|
|
38
37
|
"astro-seo": "^0.8.4",
|
|
39
38
|
"dagre": "^0.8.5",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types';
|
|
3
|
+
|
|
4
|
+
export type Props = HTMLAttributes<'input'> & {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const { id, name, label, class: className, ...attrs } = Astro.props;
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<label for={id} class="relative block cursor-pointer select-none pl-5">
|
|
14
|
+
<input id={id} name={name} type="checkbox" class="h-0 w-0 cursor-pointer appearance-none group" {...attrs} />
|
|
15
|
+
<span class="text-md text-gray-700">{label}</span>
|
|
16
|
+
</label>
|
|
17
|
+
|
|
18
|
+
<style>
|
|
19
|
+
input::before {
|
|
20
|
+
@apply absolute left-0 top-1/2 block h-4 w-4 -translate-y-1/2 rounded-[4px] border border-gray-300;
|
|
21
|
+
content: '';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input:checked::before {
|
|
25
|
+
@apply bg-purple-600;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input:focus::before {
|
|
29
|
+
@apply outline outline-purple-300;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
input:checked::after {
|
|
33
|
+
@apply absolute left-0 top-1/2 block h-4 w-4 -translate-y-1/2 bg-center bg-no-repeat;
|
|
34
|
+
content: '';
|
|
35
|
+
/** inline unicons checkmark SVG */
|
|
36
|
+
background-image: url("data:image/svg+xml;utf-8,<svg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M9.04731 1.01279C9.34958 1.296 9.36503 1.77062 9.08182 2.07289L4.19342 7.29032C3.77774 7.73398 3.07363 7.73398 2.65795 7.29032L1.01279 5.53443C0.729585 5.23216 0.745038 4.75754 1.04731 4.47433C1.34958 4.19112 1.8242 4.20658 2.1074 4.50884L3.42568 5.91586L7.98721 1.04731C8.27042 0.745037 8.74504 0.729585 9.04731 1.01279Z' fill='white'/></svg>");
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -3,8 +3,8 @@ import { useEffect, useState } from 'react';
|
|
|
3
3
|
import 'prismjs';
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { JsonSchemaViewer } from '@stoplight/json-schema-viewer';
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
6
|
+
import './css/stoplight-mosaic-styles.css';
|
|
7
|
+
import './css/stoplight-mosaic-theme-default.css';
|
|
8
8
|
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
10
|
|