@eventcatalog/core 3.26.10 → 3.26.12

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.
Files changed (70) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/{chunk-R2DZZEDF.js → chunk-2YOG7LP3.js} +1 -1
  6. package/dist/{chunk-36UOEJB6.js → chunk-7H5F3UIH.js} +1 -1
  7. package/dist/{chunk-MCI7EV4M.js → chunk-H2UBNF2W.js} +1 -1
  8. package/dist/{chunk-MWXKKEYC.js → chunk-QFQIAUDF.js} +1 -1
  9. package/dist/{chunk-3WNDAYNT.js → chunk-ZLQPYLNW.js} +1 -1
  10. package/dist/constants.cjs +1 -1
  11. package/dist/constants.js +1 -1
  12. package/dist/eventcatalog.cjs +1 -1
  13. package/dist/eventcatalog.js +5 -5
  14. package/dist/generate.cjs +1 -1
  15. package/dist/generate.js +3 -3
  16. package/dist/utils/cli-logger.cjs +1 -1
  17. package/dist/utils/cli-logger.js +2 -2
  18. package/eventcatalog/astro.config.mjs +1 -1
  19. package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +2 -0
  20. package/eventcatalog/src/content.config.ts +3 -16
  21. package/eventcatalog/src/enterprise/LICENSE +57 -0
  22. package/eventcatalog/src/enterprise/ai/chat-api.ts +5 -0
  23. package/eventcatalog/src/enterprise/analytics/adapters/ga4.ts +5 -0
  24. package/eventcatalog/src/enterprise/analytics/adapters/gtm.ts +5 -0
  25. package/eventcatalog/src/enterprise/analytics/adapters/posthog.ts +5 -0
  26. package/eventcatalog/src/enterprise/analytics/tracker.ts +5 -0
  27. package/eventcatalog/src/enterprise/api/catalog.ts +5 -0
  28. package/eventcatalog/src/{pages → enterprise}/api/schemas/[collection]/[id]/[version]/index.ts +5 -0
  29. package/eventcatalog/src/{pages → enterprise}/api/schemas/services/[id]/[version]/[specification]/index.ts +5 -0
  30. package/eventcatalog/src/enterprise/auth/[...auth].ts +5 -0
  31. package/eventcatalog/src/enterprise/auth/middleware/middleware-auth.ts +5 -0
  32. package/eventcatalog/src/enterprise/auth/middleware/middleware.ts +5 -0
  33. package/eventcatalog/src/enterprise/collections/custom-pages.ts +5 -0
  34. package/eventcatalog/src/enterprise/collections/index.ts +6 -0
  35. package/eventcatalog/src/enterprise/collections/resource-docs-utils.ts +647 -0
  36. package/eventcatalog/src/enterprise/collections/resource-docs.ts +24 -0
  37. package/eventcatalog/src/enterprise/custom-documentation/collection.ts +5 -0
  38. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +5 -0
  39. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +5 -0
  40. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +5 -0
  41. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/index.tsx +5 -0
  42. package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/types.ts +5 -0
  43. package/eventcatalog/src/enterprise/custom-documentation/utils/badge-styles.ts +5 -0
  44. package/eventcatalog/src/enterprise/custom-documentation/utils/custom-docs.ts +5 -0
  45. package/eventcatalog/src/enterprise/feature.ts +68 -0
  46. package/eventcatalog/src/enterprise/fields/field-extractor.test.ts +5 -0
  47. package/eventcatalog/src/enterprise/fields/field-extractor.ts +5 -0
  48. package/eventcatalog/src/enterprise/fields/field-indexer.ts +5 -0
  49. package/eventcatalog/src/enterprise/fields/fields-db.test.ts +5 -0
  50. package/eventcatalog/src/enterprise/fields/fields-db.ts +5 -0
  51. package/eventcatalog/src/enterprise/fields/pages/api/fields.ts +5 -0
  52. package/eventcatalog/{integrations → src/enterprise/integrations}/eventcatalog-features.ts +48 -2
  53. package/eventcatalog/src/enterprise/mcp/mcp-server.ts +5 -0
  54. package/eventcatalog/src/enterprise/print/_message.data.ts +5 -0
  55. package/eventcatalog/src/enterprise/print/components/PrintSchemaViewer.tsx +5 -0
  56. package/eventcatalog/src/enterprise/print/utils.ts +5 -0
  57. package/eventcatalog/src/enterprise/tools/catalog-tools.ts +5 -0
  58. package/eventcatalog/src/enterprise/tools/index.ts +5 -0
  59. package/eventcatalog/src/enterprise/visualizer-layout/reset.ts +5 -0
  60. package/eventcatalog/src/enterprise/visualizer-layout/save.ts +5 -0
  61. package/eventcatalog/src/utils/collections/resource-docs.ts +13 -642
  62. package/eventcatalog/src/utils/feature.ts +27 -75
  63. package/package.json +6 -5
  64. package/LICENSE.md +0 -30
  65. package/eventcatalog/src/enterprise/LICENSE.txt +0 -4
  66. /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path]/_index.data.ts +0 -0
  67. /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path]/index.astro +0 -0
  68. /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/[...path].mdx.ts +0 -0
  69. /package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/feature.astro +0 -0
  70. /package/eventcatalog/src/{pages/docs/custom/index.astro → enterprise/custom-documentation/pages/docs/custom/root-index.astro} +0 -0
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.26.10";
40
+ var version = "3.26.12";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-MCI7EV4M.js";
4
- import "../chunk-R2DZZEDF.js";
3
+ } from "../chunk-H2UBNF2W.js";
4
+ import "../chunk-2YOG7LP3.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.26.10";
114
+ var version = "3.26.12";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-MWXKKEYC.js";
4
- import "../chunk-MCI7EV4M.js";
3
+ } from "../chunk-QFQIAUDF.js";
4
+ import "../chunk-H2UBNF2W.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-R2DZZEDF.js";
6
+ import "../chunk-2YOG7LP3.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.26.10";
2
+ var version = "3.26.12";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-R2DZZEDF.js";
3
+ } from "./chunk-2YOG7LP3.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-R2DZZEDF.js";
3
+ } from "./chunk-2YOG7LP3.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-MCI7EV4M.js";
3
+ } from "./chunk-H2UBNF2W.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-36UOEJB6.js";
3
+ } from "./chunk-7H5F3UIH.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.26.10";
28
+ var version = "3.26.12";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-R2DZZEDF.js";
3
+ } from "./chunk-2YOG7LP3.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.10";
117
+ var version = "3.26.12";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-MWXKKEYC.js";
10
- import "./chunk-MCI7EV4M.js";
9
+ } from "./chunk-QFQIAUDF.js";
10
+ import "./chunk-H2UBNF2W.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-3WNDAYNT.js";
25
+ } from "./chunk-ZLQPYLNW.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-36UOEJB6.js";
28
+ } from "./chunk-7H5F3UIH.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-R2DZZEDF.js";
31
+ } from "./chunk-2YOG7LP3.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.26.10";
81
+ var version = "3.26.12";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-3WNDAYNT.js";
4
- import "./chunk-36UOEJB6.js";
5
- import "./chunk-R2DZZEDF.js";
3
+ } from "./chunk-ZLQPYLNW.js";
4
+ import "./chunk-7H5F3UIH.js";
5
+ import "./chunk-2YOG7LP3.js";
6
6
  import "./chunk-5T63CXKU.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.26.10";
39
+ var version = "3.26.12";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-36UOEJB6.js";
4
- import "../chunk-R2DZZEDF.js";
3
+ } from "../chunk-7H5F3UIH.js";
4
+ import "../chunk-2YOG7LP3.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -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: z.object({
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: z.object({
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 { AnalyticsAdapter, EventProperties } from '../tracker';
2
7
 
3
8
  declare global {
@@ -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 { AnalyticsAdapter, EventProperties } from '../tracker';
2
7
 
3
8
  declare global {
@@ -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 { AnalyticsAdapter, EventProperties } from '../tracker';
2
7
 
3
8
  declare global {
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Licensed under the EventCatalog Commercial License.
3
+ * See /packages/core/eventcatalog/src/enterprise/LICENSE
4
+ */
5
+
1
6
  export type EventProperties = Record<string, string | number | boolean>;
2
7
 
3
8
  export interface AnalyticsAdapter {
@@ -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 { APIRoute } from 'astro';
2
7
  import utils from '@eventcatalog/sdk';
3
8
  import { isSSR } from '@utils/feature';
@@ -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 { APIRoute } from 'astro';
2
7
  import { getCollection } from 'astro:content';
3
8
  import path 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 { APIRoute } from 'astro';
2
7
  import { getCollection } from 'astro:content';
3
8
  import path 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 { AstroAuth } from 'auth-astro/server';
2
7
  export const prerender = false;
3
8
  export const { GET, POST } = AstroAuth();
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Licensed under the EventCatalog Commercial License.
3
+ * See /packages/core/eventcatalog/src/enterprise/LICENSE
4
+ */
5
+
1
6
  // src/middleware/auth.ts
2
7
  import type { MiddlewareHandler } from 'astro';
3
8
  import { getSession } from 'auth-astro/server';
@@ -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';
@@ -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 { z } from 'astro/zod';
2
7
  import { badge, ownerReference } from '../../content.config-shared-collections';
3
8
 
@@ -1 +1,7 @@
1
+ /**
2
+ * Licensed under the EventCatalog Commercial License.
3
+ * See /packages/core/eventcatalog/src/enterprise/LICENSE
4
+ */
5
+
1
6
  export { customPagesSchema } from './custom-pages';
7
+ export { resourceDocsSchema, resourceDocCategoriesSchema } from './resource-docs';