@eventcatalog/core 3.26.10 → 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-MWXKKEYC.js → chunk-24RZHNNP.js} +1 -1
- package/dist/{chunk-3WNDAYNT.js → chunk-B44ZJW35.js} +1 -1
- package/dist/{chunk-R2DZZEDF.js → chunk-PHJNSP6V.js} +1 -1
- package/dist/{chunk-MCI7EV4M.js → chunk-XP2QYGFD.js} +1 -1
- package/dist/{chunk-36UOEJB6.js → chunk-ZWJOF3OY.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 +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 +1 -1
- 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 +5 -0
- package/eventcatalog/src/enterprise/fields/field-extractor.ts +5 -0
- 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 +4 -3
- 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;
|
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
|
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 || '/';
|
|
@@ -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';
|