@eventcatalog/core 3.26.9 → 3.26.11
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-7CRQXVYN.js → chunk-24RZHNNP.js} +1 -1
- package/dist/{chunk-7BSZQI3M.js → chunk-B44ZJW35.js} +1 -1
- package/dist/{chunk-U6H6DNUN.js → chunk-PHJNSP6V.js} +1 -1
- package/dist/{chunk-XRWNLEVD.js → chunk-XP2QYGFD.js} +1 -1
- package/dist/{chunk-NL4AAHR6.js → chunk-ZWJOF3OY.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +8 -5
- package/dist/eventcatalog.js +12 -9
- 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 +1 -1
- package/eventcatalog/src/components/FieldsExplorer/FieldsTable.tsx +5 -3
- package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +2 -0
- package/eventcatalog/src/content.config.ts +3 -16
- package/eventcatalog/src/enterprise/LICENSE +57 -0
- package/eventcatalog/src/enterprise/ai/chat-api.ts +5 -0
- package/eventcatalog/src/enterprise/analytics/adapters/ga4.ts +5 -0
- package/eventcatalog/src/enterprise/analytics/adapters/gtm.ts +5 -0
- package/eventcatalog/src/enterprise/analytics/adapters/posthog.ts +5 -0
- package/eventcatalog/src/enterprise/analytics/tracker.ts +5 -0
- package/eventcatalog/src/enterprise/api/catalog.ts +5 -0
- package/eventcatalog/src/{pages → enterprise}/api/schemas/[collection]/[id]/[version]/index.ts +5 -0
- package/eventcatalog/src/{pages → enterprise}/api/schemas/services/[id]/[version]/[specification]/index.ts +5 -0
- package/eventcatalog/src/enterprise/auth/[...auth].ts +5 -0
- package/eventcatalog/src/enterprise/auth/middleware/middleware-auth.ts +5 -0
- package/eventcatalog/src/enterprise/auth/middleware/middleware.ts +5 -0
- package/eventcatalog/src/enterprise/collections/custom-pages.ts +5 -0
- package/eventcatalog/src/enterprise/collections/index.ts +6 -0
- package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +647 -0
- package/eventcatalog/src/enterprise/collections/resource-docs.ts +24 -0
- package/eventcatalog/src/enterprise/custom-documentation/collection.ts +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/index.tsx +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/types.ts +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/utils/badge-styles.ts +5 -0
- package/eventcatalog/src/enterprise/custom-documentation/utils/custom-docs.ts +5 -0
- package/eventcatalog/src/enterprise/feature.ts +68 -0
- package/eventcatalog/src/enterprise/fields/field-extractor.test.ts +61 -0
- package/eventcatalog/src/enterprise/fields/field-extractor.ts +14 -6
- package/eventcatalog/src/enterprise/fields/field-indexer.ts +5 -0
- package/eventcatalog/src/enterprise/fields/fields-db.test.ts +5 -0
- package/eventcatalog/src/enterprise/fields/fields-db.ts +5 -0
- package/eventcatalog/src/enterprise/fields/pages/api/fields.ts +5 -0
- package/eventcatalog/{integrations → src/enterprise/integrations}/eventcatalog-features.ts +48 -2
- package/eventcatalog/src/enterprise/mcp/mcp-server.ts +5 -0
- package/eventcatalog/src/enterprise/print/_message.data.ts +5 -0
- package/eventcatalog/src/enterprise/print/components/PrintSchemaViewer.tsx +5 -0
- package/eventcatalog/src/enterprise/print/utils.ts +5 -0
- package/eventcatalog/src/enterprise/tools/catalog-tools.ts +5 -0
- package/eventcatalog/src/enterprise/tools/index.ts +5 -0
- package/eventcatalog/src/enterprise/visualizer-layout/reset.ts +5 -0
- package/eventcatalog/src/enterprise/visualizer-layout/save.ts +5 -0
- package/eventcatalog/src/utils/collections/resource-docs.ts +13 -642
- package/eventcatalog/src/utils/feature.ts +27 -75
- package/package.json +2 -1
- package/LICENSE.md +0 -30
- package/eventcatalog/src/enterprise/LICENSE.txt +0 -4
- /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path]/_index.data.ts +0 -0
- /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path]/index.astro +0 -0
- /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path].mdx.ts +0 -0
- /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/feature.astro +0 -0
- /package/eventcatalog/src/{pages/docs/custom/index.astro → enterprise/custom-documentation/pages/docs/custom/root-index.astro} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-24RZHNNP.js";
|
|
4
|
+
import "../chunk-XP2QYGFD.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-PHJNSP6V.js";
|
|
7
7
|
import "../chunk-5T63CXKU.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
|
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
114
114
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
115
115
|
|
|
116
116
|
// package.json
|
|
117
|
-
var version = "3.26.
|
|
117
|
+
var version = "3.26.11";
|
|
118
118
|
|
|
119
119
|
// src/constants.ts
|
|
120
120
|
var VERSION = version;
|
|
@@ -1117,7 +1117,8 @@ function walkJsonSchema(node, prefix, requiredList, rootSchema, fields) {
|
|
|
1117
1117
|
if (prop.$ref) {
|
|
1118
1118
|
const resolved = resolveLocalRef(prop.$ref, rootSchema);
|
|
1119
1119
|
if (resolved) {
|
|
1120
|
-
const
|
|
1120
|
+
const rawRefType = resolved.type || "object";
|
|
1121
|
+
const type2 = Array.isArray(rawRefType) ? [...rawRefType].sort().join(" | ") : rawRefType;
|
|
1121
1122
|
fields.push({ path: path9, type: type2, description: resolved.description || "", required: isRequired });
|
|
1122
1123
|
if (resolved.properties) {
|
|
1123
1124
|
walkJsonSchema(resolved, path9, resolved.required || [], rootSchema, fields);
|
|
@@ -1127,12 +1128,14 @@ function walkJsonSchema(node, prefix, requiredList, rootSchema, fields) {
|
|
|
1127
1128
|
}
|
|
1128
1129
|
continue;
|
|
1129
1130
|
}
|
|
1130
|
-
const
|
|
1131
|
+
const rawType = prop.type || (prop.enum ? "enum" : prop.$ref ? "$ref" : "object");
|
|
1132
|
+
const typeList = Array.isArray(rawType) ? rawType : [rawType];
|
|
1133
|
+
const type = Array.isArray(rawType) ? [...rawType].sort().join(" | ") : rawType;
|
|
1131
1134
|
fields.push({ path: path9, type, description: prop.description || "", required: isRequired });
|
|
1132
|
-
if (
|
|
1135
|
+
if (typeList.includes("object") && prop.properties) {
|
|
1133
1136
|
walkJsonSchema(prop, path9, prop.required || [], rootSchema, fields);
|
|
1134
1137
|
}
|
|
1135
|
-
if (
|
|
1138
|
+
if (typeList.includes("array") && prop.items) {
|
|
1136
1139
|
if (prop.items.type === "object" && prop.items.properties) {
|
|
1137
1140
|
walkJsonSchema(prop.items, `${path9}[]`, prop.items.required || [], rootSchema, fields);
|
|
1138
1141
|
}
|
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-24RZHNNP.js";
|
|
10
|
+
import "./chunk-XP2QYGFD.js";
|
|
11
11
|
import "./chunk-4UVFXLPI.js";
|
|
12
12
|
import {
|
|
13
13
|
runMigrations
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-3KXCGYET.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-B44ZJW35.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZWJOF3OY.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PHJNSP6V.js";
|
|
32
32
|
import {
|
|
33
33
|
getEventCatalogConfigFile,
|
|
34
34
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -464,7 +464,8 @@ function walkJsonSchema(node, prefix, requiredList, rootSchema, fields) {
|
|
|
464
464
|
if (prop.$ref) {
|
|
465
465
|
const resolved = resolveLocalRef(prop.$ref, rootSchema);
|
|
466
466
|
if (resolved) {
|
|
467
|
-
const
|
|
467
|
+
const rawRefType = resolved.type || "object";
|
|
468
|
+
const type2 = Array.isArray(rawRefType) ? [...rawRefType].sort().join(" | ") : rawRefType;
|
|
468
469
|
fields.push({ path: path3, type: type2, description: resolved.description || "", required: isRequired });
|
|
469
470
|
if (resolved.properties) {
|
|
470
471
|
walkJsonSchema(resolved, path3, resolved.required || [], rootSchema, fields);
|
|
@@ -474,12 +475,14 @@ function walkJsonSchema(node, prefix, requiredList, rootSchema, fields) {
|
|
|
474
475
|
}
|
|
475
476
|
continue;
|
|
476
477
|
}
|
|
477
|
-
const
|
|
478
|
+
const rawType = prop.type || (prop.enum ? "enum" : prop.$ref ? "$ref" : "object");
|
|
479
|
+
const typeList = Array.isArray(rawType) ? rawType : [rawType];
|
|
480
|
+
const type = Array.isArray(rawType) ? [...rawType].sort().join(" | ") : rawType;
|
|
478
481
|
fields.push({ path: path3, type, description: prop.description || "", required: isRequired });
|
|
479
|
-
if (
|
|
482
|
+
if (typeList.includes("object") && prop.properties) {
|
|
480
483
|
walkJsonSchema(prop, path3, prop.required || [], rootSchema, fields);
|
|
481
484
|
}
|
|
482
|
-
if (
|
|
485
|
+
if (typeList.includes("array") && prop.items) {
|
|
483
486
|
if (prop.items.type === "object" && prop.items.properties) {
|
|
484
487
|
walkJsonSchema(prop.items, `${path3}[]`, prop.items.required || [], rootSchema, fields);
|
|
485
488
|
}
|
package/dist/generate.cjs
CHANGED
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-B44ZJW35.js";
|
|
4
|
+
import "./chunk-ZWJOF3OY.js";
|
|
5
|
+
import "./chunk-PHJNSP6V.js";
|
|
6
6
|
import "./chunk-5T63CXKU.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -21,7 +21,7 @@ import rehypeExpressiveCode from 'rehype-expressive-code'
|
|
|
21
21
|
import config from './eventcatalog.config';
|
|
22
22
|
import expressiveCode from 'astro-expressive-code';
|
|
23
23
|
import ecstudioWatcher from './integrations/ecstudio-watcher.mjs';
|
|
24
|
-
import eventCatalogIntegration from './integrations/eventcatalog-features.ts';
|
|
24
|
+
import eventCatalogIntegration from './src/enterprise/integrations/eventcatalog-features.ts';
|
|
25
25
|
|
|
26
26
|
const projectDirectory = process.env.PROJECT_DIR || process.cwd();
|
|
27
27
|
const base = config.base || '/';
|
|
@@ -71,7 +71,7 @@ function FieldPathCell({ path }: { path: string }) {
|
|
|
71
71
|
const [copied, setCopied] = useState(false);
|
|
72
72
|
|
|
73
73
|
return (
|
|
74
|
-
<span className="inline-flex items-center gap-1 font-mono text-[rgb(var(--ec-page-text))]">
|
|
74
|
+
<span className="inline-flex items-center gap-1 font-mono text-[rgb(var(--ec-page-text))]" title={path}>
|
|
75
75
|
{path}
|
|
76
76
|
<button
|
|
77
77
|
className={`opacity-0 group-hover:opacity-100 transition-opacity p-0.5 rounded hover:bg-[rgb(var(--ec-content-hover))]`}
|
|
@@ -162,8 +162,10 @@ export default function FieldsTable({ fields, onSelectField, isLoading, isScaleE
|
|
|
162
162
|
className="group cursor-pointer transition-colors hover:bg-[rgb(var(--ec-content-hover))]"
|
|
163
163
|
onClick={() => onSelectField(field.path)}
|
|
164
164
|
>
|
|
165
|
-
<td className="px-4 py-3 text-sm">
|
|
166
|
-
<
|
|
165
|
+
<td className="px-4 py-3 text-sm max-w-[300px]">
|
|
166
|
+
<div className="overflow-x-auto">
|
|
167
|
+
<FieldPathCell path={field.path} />
|
|
168
|
+
</div>
|
|
167
169
|
</td>
|
|
168
170
|
<td className="px-4 py-3 text-sm font-mono text-[rgb(var(--ec-page-text-muted))]">{field.type}</td>
|
|
169
171
|
<td className="px-4 py-3 text-sm">
|
|
@@ -935,6 +935,7 @@ export default function NestedSideBar() {
|
|
|
935
935
|
<a
|
|
936
936
|
key={`item-${itemKey || index}`}
|
|
937
937
|
href={item.href}
|
|
938
|
+
title={item.title}
|
|
938
939
|
target={item.external ? '_blank' : undefined}
|
|
939
940
|
className={cn(baseClasses, parentClasses, activeClasses)}
|
|
940
941
|
>
|
|
@@ -947,6 +948,7 @@ export default function NestedSideBar() {
|
|
|
947
948
|
return (
|
|
948
949
|
<button
|
|
949
950
|
key={`item-${itemKey || index}`}
|
|
951
|
+
title={item.title}
|
|
950
952
|
onClick={() => handleDrillDown(item, itemKey)}
|
|
951
953
|
className={cn(baseClasses, parentClasses)}
|
|
952
954
|
>
|
|
@@ -8,7 +8,7 @@ import fs from 'fs';
|
|
|
8
8
|
import path from 'path';
|
|
9
9
|
|
|
10
10
|
// Enterprise Collections
|
|
11
|
-
import { customPagesSchema } from './enterprise/collections';
|
|
11
|
+
import { customPagesSchema, resourceDocsSchema, resourceDocCategoriesSchema } from './enterprise/collections';
|
|
12
12
|
|
|
13
13
|
export const projectDirBase = (() => {
|
|
14
14
|
const projectDir = process.env.PROJECT_DIR;
|
|
@@ -549,17 +549,7 @@ const resourceDocs = defineCollection({
|
|
|
549
549
|
]),
|
|
550
550
|
base: projectDirBase,
|
|
551
551
|
}),
|
|
552
|
-
schema:
|
|
553
|
-
id: z.string().optional(),
|
|
554
|
-
type: z.string().optional(),
|
|
555
|
-
version: z.string().optional(),
|
|
556
|
-
order: z.number().optional(),
|
|
557
|
-
badges: z.array(badge).optional(),
|
|
558
|
-
title: z.string().optional(),
|
|
559
|
-
summary: z.string().optional(),
|
|
560
|
-
slug: z.string().optional(),
|
|
561
|
-
hidden: z.boolean().optional(),
|
|
562
|
-
}),
|
|
552
|
+
schema: resourceDocsSchema,
|
|
563
553
|
});
|
|
564
554
|
|
|
565
555
|
const resourceDocCategories = defineCollection({
|
|
@@ -576,10 +566,7 @@ const resourceDocCategories = defineCollection({
|
|
|
576
566
|
]),
|
|
577
567
|
base: projectDirBase,
|
|
578
568
|
}),
|
|
579
|
-
schema:
|
|
580
|
-
label: z.string().optional(),
|
|
581
|
-
position: z.number().optional(),
|
|
582
|
-
}),
|
|
569
|
+
schema: resourceDocCategoriesSchema,
|
|
583
570
|
});
|
|
584
571
|
|
|
585
572
|
const domains = defineCollection({
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
The EventCatalog Commercial License (the "Commercial License")
|
|
2
|
+
Copyright (c) 2022-2026 EventCatalog Ltd
|
|
3
|
+
|
|
4
|
+
With regard to the EventCatalog Software:
|
|
5
|
+
|
|
6
|
+
This software and associated documentation files (the "Software") may only be
|
|
7
|
+
used in production, if you (and any entity that you represent) have agreed to,
|
|
8
|
+
and are in compliance with, the EventCatalog Terms of Service available
|
|
9
|
+
at https://www.eventcatalog.dev/terms, or other agreements governing the use of
|
|
10
|
+
the Software, as mutually agreed by you and EventCatalog Ltd ("EventCatalog"),
|
|
11
|
+
and otherwise have a valid EventCatalog Starter, Scale, or Enterprise
|
|
12
|
+
subscription ("Commercial Subscription").
|
|
13
|
+
|
|
14
|
+
Subject to the foregoing sentence, you are free to modify this Software and
|
|
15
|
+
publish patches to the Software. You agree that EventCatalog and/or its
|
|
16
|
+
licensors (as applicable) retain all right, title and interest in and to all
|
|
17
|
+
such modifications and/or patches, and all such modifications and/or patches
|
|
18
|
+
may only be used, copied, modified, displayed, distributed, or otherwise
|
|
19
|
+
exploited with a valid Commercial Subscription.
|
|
20
|
+
|
|
21
|
+
A 14-day free trial of premium features is available at
|
|
22
|
+
https://eventcatalog.cloud/ to help you evaluate the Software before purchasing
|
|
23
|
+
a Commercial Subscription.
|
|
24
|
+
|
|
25
|
+
Notwithstanding the foregoing, you may copy and modify the Software for
|
|
26
|
+
development and testing purposes, without requiring a subscription. You agree
|
|
27
|
+
that EventCatalog and/or its licensors (as applicable) retain all right, title
|
|
28
|
+
and interest in and to all such modifications. You are not granted any other
|
|
29
|
+
rights beyond what is expressly stated herein. Subject to the foregoing, it is
|
|
30
|
+
forbidden to copy, merge, publish, distribute, sublicense, and/or sell the
|
|
31
|
+
Software.
|
|
32
|
+
|
|
33
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
34
|
+
in the Software, and you may not remove or obscure any functionality in the
|
|
35
|
+
Software that is protected by the license key.
|
|
36
|
+
|
|
37
|
+
This Software is source-available for the purposes of transparency and
|
|
38
|
+
auditability. Source availability does not constitute a grant of rights to use
|
|
39
|
+
the Software in production without a valid Commercial Subscription.
|
|
40
|
+
|
|
41
|
+
This Commercial License applies only to the part of this Software that is not
|
|
42
|
+
distributed under the MIT license. Any part of this Software distributed under
|
|
43
|
+
the MIT license is copyrighted under the MIT license. The full text of this
|
|
44
|
+
Commercial License shall be included in all copies or substantial portions of
|
|
45
|
+
the Software.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
48
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
49
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
50
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
51
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
52
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
|
+
SOFTWARE.
|
|
54
|
+
|
|
55
|
+
For all third party components incorporated into the EventCatalog Software,
|
|
56
|
+
those components are licensed under the original license provided by the owner
|
|
57
|
+
of the applicable component.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Licensed under the EventCatalog Commercial License.
|
|
3
|
+
* See /packages/core/eventcatalog/src/enterprise/LICENSE
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
import type { APIContext } from 'astro';
|
|
2
7
|
import { convertToModelMessages, stepCountIs, streamText, tool, type LanguageModel, type ModelMessage, type UIMessage } from 'ai';
|
|
3
8
|
import { join } from 'node:path';
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Licensed under the EventCatalog Commercial License.
|
|
3
|
+
* See /packages/core/eventcatalog/src/enterprise/LICENSE
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
import type { MiddlewareHandler } from 'astro';
|
|
2
7
|
import { authMiddleware } from './middleware-auth.ts';
|
|
3
8
|
import { sequence } from 'astro:middleware';
|