@eventcatalog/core 4.10.11 → 4.10.13
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-N6U5CNT7.js → chunk-34RMFKFB.js} +1 -1
- package/dist/{chunk-TWZKZIRW.js → chunk-IIECZFXN.js} +1 -1
- package/dist/{chunk-RLGMIZSH.js → chunk-JHUICVBT.js} +1 -1
- package/dist/{chunk-3XTFNVGA.js → chunk-PADMH2RJ.js} +1 -1
- package/dist/{chunk-VFRR3M72.js → chunk-SSSN5FXC.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.config.d.cts +9 -0
- package/dist/eventcatalog.config.d.ts +9 -0
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/astro.config.mjs +2 -0
- package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +208 -119
- package/eventcatalog/src/components/ChatPanel/ChatPanelButton.tsx +28 -8
- package/eventcatalog/src/components/ChatPanel/OfflineReply.tsx +45 -0
- package/eventcatalog/src/components/Header.astro +11 -6
- package/eventcatalog/src/components/MDX/Design/Design.astro +2 -2
- package/eventcatalog/src/components/MDX/EntityMap/EntityMap.astro +2 -2
- package/eventcatalog/src/components/MDX/Flow/Flow.astro +2 -2
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.astro +2 -2
- package/eventcatalog/src/components/MDX/ResourceRef/ResourceRef.astro +22 -40
- package/eventcatalog/src/components/Search/Search.astro +11 -4
- package/eventcatalog/src/components/Settings/AssistantSettingsForm.tsx +29 -24
- package/eventcatalog/src/content.config.ts +1 -1
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +3 -3
- package/eventcatalog/src/pages/diagrams/[id]/[version]/index.astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +5 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +10 -4
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/asyncapi/[filename].astro +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +3 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/spec/[filename].astro +2 -2
- package/eventcatalog/src/pages/visualiser/designs/[id]/index.astro +2 -2
- package/eventcatalog/src/plugins/link-validation.ts +42 -0
- package/eventcatalog/src/utils/collections/glob-loader.spec.ts +69 -2
- package/eventcatalog/src/utils/collections/glob-loader.ts +5 -3
- package/eventcatalog/src/utils/collections/schema-loader.ts +1 -1
- package/eventcatalog/src/utils/feature.ts +1 -0
- package/eventcatalog/src/utils/link-validation.ts +224 -0
- package/eventcatalog/src/utils/resource-reference-links.ts +29 -0
- package/package.json +5 -4
|
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
140
140
|
var import_os = __toESM(require("os"), 1);
|
|
141
141
|
|
|
142
142
|
// package.json
|
|
143
|
-
var version = "4.10.
|
|
143
|
+
var version = "4.10.13";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-34RMFKFB.js";
|
|
4
|
+
import "../chunk-IIECZFXN.js";
|
|
5
5
|
import "../chunk-ZAZHAVKB.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-PADMH2RJ.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
144
144
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
145
145
|
|
|
146
146
|
// package.json
|
|
147
|
-
var version = "4.10.
|
|
147
|
+
var version = "4.10.13";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -242,6 +242,15 @@ interface Config {
|
|
|
242
242
|
host?: string | boolean;
|
|
243
243
|
trailingSlash?: boolean;
|
|
244
244
|
output?: 'server' | 'static';
|
|
245
|
+
/** Validate internal links and anchors after static builds. Set false to disable. */
|
|
246
|
+
linkValidation?: false | {
|
|
247
|
+
/** @default 'warn' */
|
|
248
|
+
onBrokenLinks?: 'warn' | 'error' | 'ignore';
|
|
249
|
+
/** @default 'warn' */
|
|
250
|
+
onBrokenAnchors?: 'warn' | 'error' | 'ignore';
|
|
251
|
+
/** Glob patterns for destination URL paths, relative to the catalog base (e.g. /api/**). */
|
|
252
|
+
ignore?: string[];
|
|
253
|
+
};
|
|
245
254
|
server?: {
|
|
246
255
|
allowedHosts?: string[] | true;
|
|
247
256
|
};
|
|
@@ -242,6 +242,15 @@ interface Config {
|
|
|
242
242
|
host?: string | boolean;
|
|
243
243
|
trailingSlash?: boolean;
|
|
244
244
|
output?: 'server' | 'static';
|
|
245
|
+
/** Validate internal links and anchors after static builds. Set false to disable. */
|
|
246
|
+
linkValidation?: false | {
|
|
247
|
+
/** @default 'warn' */
|
|
248
|
+
onBrokenLinks?: 'warn' | 'error' | 'ignore';
|
|
249
|
+
/** @default 'warn' */
|
|
250
|
+
onBrokenAnchors?: 'warn' | 'error' | 'ignore';
|
|
251
|
+
/** Glob patterns for destination URL paths, relative to the catalog base (e.g. /api/**). */
|
|
252
|
+
ignore?: string[];
|
|
253
|
+
};
|
|
245
254
|
server?: {
|
|
246
255
|
allowedHosts?: string[] | true;
|
|
247
256
|
};
|
package/dist/eventcatalog.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-34RMFKFB.js";
|
|
8
|
+
import "./chunk-IIECZFXN.js";
|
|
9
9
|
import "./chunk-ZAZHAVKB.js";
|
|
10
10
|
import {
|
|
11
11
|
FederationConflictError,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
} from "./chunk-B7HCX5HM.js";
|
|
32
32
|
import {
|
|
33
33
|
generate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SSSN5FXC.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JHUICVBT.js";
|
|
38
38
|
import {
|
|
39
39
|
resolve_catalog_dependencies_default
|
|
40
40
|
} from "./chunk-LHR4G2UO.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import "./chunk-W5JQON7Z.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-PADMH2RJ.js";
|
|
58
58
|
import {
|
|
59
59
|
linkCoreNodeModules,
|
|
60
60
|
resolveInstalledCoreNodeModules
|
package/dist/generate.cjs
CHANGED
|
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
108
108
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
|
-
var version = "4.10.
|
|
111
|
+
var version = "4.10.13";
|
|
112
112
|
|
|
113
113
|
// src/constants.ts
|
|
114
114
|
var VERSION = version;
|
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SSSN5FXC.js";
|
|
4
|
+
import "./chunk-JHUICVBT.js";
|
|
5
|
+
import "./chunk-PADMH2RJ.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -17,6 +17,7 @@ import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
|
17
17
|
import { eventCatalogLikeC4 } from './src/plugins/likec4';
|
|
18
18
|
import { loadAstroCompressIntegration } from './src/plugins/astro-compress';
|
|
19
19
|
import { astroTrailingSlashEndpointFix } from './src/plugins/astro-trailing-slash-endpoint-fix';
|
|
20
|
+
import { linkValidation } from './src/plugins/link-validation';
|
|
20
21
|
|
|
21
22
|
import rehypeExpressiveCode from 'rehype-expressive-code';
|
|
22
23
|
|
|
@@ -111,6 +112,7 @@ export default defineConfig({
|
|
|
111
112
|
effectiveOutput !== 'server' && compress && (await loadAstroCompressIntegration(projectDirectory)),
|
|
112
113
|
ecstudioWatcher(),
|
|
113
114
|
eventCatalogIntegration(),
|
|
115
|
+
linkValidation(config.linkValidation),
|
|
114
116
|
].filter(Boolean),
|
|
115
117
|
vite: {
|
|
116
118
|
plugins: [
|