@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,82 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ⚠️ WARNING: IMPORTANT LICENSE NOTICE ⚠️
|
|
3
|
-
*
|
|
4
|
-
* Manually setting environment variables (EVENTCATALOG_STARTER or EVENTCATALOG_SCALE) to 'true'
|
|
5
|
-
* or modifying these functions without a valid license is strictly prohibited and constitutes
|
|
6
|
-
* a violation of EventCatalog's terms of use and license agreement.
|
|
7
|
-
*
|
|
8
|
-
* To access premium features legally:
|
|
9
|
-
* 1. Visit https://www.eventcatalog.dev/pricing
|
|
10
|
-
* 2. Purchase an appropriate license
|
|
11
|
-
* 3. Follow the official activation instructions
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import fs from 'fs';
|
|
15
|
-
import { join } from 'path';
|
|
16
1
|
import config from '../../eventcatalog.config.js';
|
|
17
2
|
|
|
18
|
-
//
|
|
19
|
-
export const isEventCatalogStarterEnabled = () => process.env.EVENTCATALOG_STARTER === 'true';
|
|
20
|
-
export const isEventCatalogScaleEnabled = () => process.env.EVENTCATALOG_SCALE === 'true';
|
|
21
|
-
|
|
22
|
-
export const isPrivateRemoteSchemaEnabled = () => isEventCatalogScaleEnabled() || isEventCatalogStarterEnabled();
|
|
23
|
-
|
|
24
|
-
export const isEmbedEnabled = () => process.env.ENABLE_EMBED === 'true';
|
|
25
|
-
|
|
26
|
-
export const showEventCatalogBranding = () => {
|
|
27
|
-
const override = process.env.EVENTCATALOG_SHOW_BRANDING;
|
|
28
|
-
// if any value we return true
|
|
29
|
-
if (override) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
return !isEventCatalogStarterEnabled() && !isEventCatalogScaleEnabled();
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const showCustomBranding = () => {
|
|
36
|
-
return isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const isChangelogEnabled = () => config?.changelog?.enabled ?? false;
|
|
40
|
-
|
|
41
|
-
export const isCustomDocsEnabled = () => isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
|
|
42
|
-
export const isResourceDocsEnabled = () => isEventCatalogScaleEnabled();
|
|
43
|
-
|
|
44
|
-
export const isEventCatalogChatEnabled = () => {
|
|
45
|
-
const isFeatureEnabledFromPlan = isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
|
|
46
|
-
const directory = process.env.PROJECT_DIR || process.cwd();
|
|
47
|
-
const hasChatConfigurationFile = fs.existsSync(join(directory, 'eventcatalog.chat.js'));
|
|
48
|
-
return isFeatureEnabledFromPlan && hasChatConfigurationFile && isSSR();
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const isEventCatalogUpgradeEnabled = () => !isEventCatalogStarterEnabled() && !isEventCatalogScaleEnabled();
|
|
52
|
-
export const isCustomLandingPageEnabled = () => isEventCatalogStarterEnabled() || isEventCatalogScaleEnabled();
|
|
53
|
-
|
|
54
|
-
export const isMarkdownDownloadEnabled = () => config?.llmsTxt?.enabled ?? true;
|
|
55
|
-
export const isLLMSTxtEnabled = () => config?.llmsTxt?.enabled ?? true;
|
|
56
|
-
|
|
57
|
-
export const isAuthEnabled = () => {
|
|
58
|
-
const isAuthEnabledInCatalog = config?.auth?.enabled ?? false;
|
|
59
|
-
const directory = process.env.PROJECT_DIR || process.cwd();
|
|
60
|
-
const hasAuthConfigurationFile = fs.existsSync(join(directory, 'eventcatalog.auth.js'));
|
|
61
|
-
return (isAuthEnabledInCatalog && hasAuthConfigurationFile && isSSR() && isEventCatalogScaleEnabled()) || false;
|
|
62
|
-
};
|
|
63
|
-
|
|
3
|
+
// Open-source feature flags
|
|
64
4
|
export const isSSR = () => config?.output === 'server';
|
|
65
|
-
export const isRSSEnabled = () => config?.rss?.enabled ?? false;
|
|
66
5
|
export const isVisualiserEnabled = () => config?.visualiser?.enabled ?? true;
|
|
67
|
-
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export const isDiagramComparisonEnabled = () => isEventCatalogScaleEnabled();
|
|
73
|
-
|
|
74
|
-
export const isEventCatalogMCPEnabled = () => isEventCatalogScaleEnabled() && isSSR();
|
|
75
|
-
|
|
6
|
+
export const isChangelogEnabled = () => config?.changelog?.enabled ?? false;
|
|
7
|
+
export const isRSSEnabled = () => config?.rss?.enabled ?? false;
|
|
8
|
+
export const isLLMSTxtEnabled = () => config?.llmsTxt?.enabled ?? true;
|
|
9
|
+
export const isMarkdownDownloadEnabled = () => config?.llmsTxt?.enabled ?? true;
|
|
76
10
|
export const isFullCatalogAPIEnabled = () => config?.api?.fullCatalogAPIEnabled ?? false;
|
|
77
|
-
|
|
78
11
|
export const isDevMode = () => process.env.EVENTCATALOG_DEV_MODE === 'true';
|
|
79
12
|
|
|
80
|
-
export
|
|
81
|
-
|
|
82
|
-
|
|
13
|
+
// Re-export enterprise feature flags for backwards compatibility.
|
|
14
|
+
// These functions are subject to the EventCatalog Commercial License.
|
|
15
|
+
// See /packages/core/eventcatalog/src/enterprise/LICENSE
|
|
16
|
+
export {
|
|
17
|
+
isEventCatalogStarterEnabled,
|
|
18
|
+
isEventCatalogScaleEnabled,
|
|
19
|
+
isPrivateRemoteSchemaEnabled,
|
|
20
|
+
isEmbedEnabled,
|
|
21
|
+
showEventCatalogBranding,
|
|
22
|
+
showCustomBranding,
|
|
23
|
+
isCustomDocsEnabled,
|
|
24
|
+
isResourceDocsEnabled,
|
|
25
|
+
isEventCatalogChatEnabled,
|
|
26
|
+
isEventCatalogUpgradeEnabled,
|
|
27
|
+
isCustomLandingPageEnabled,
|
|
28
|
+
isAuthEnabled,
|
|
29
|
+
isCustomStylesEnabled,
|
|
30
|
+
isDiagramComparisonEnabled,
|
|
31
|
+
isEventCatalogMCPEnabled,
|
|
32
|
+
isIntegrationsEnabled,
|
|
33
|
+
isExportPDFEnabled,
|
|
34
|
+
} from '../enterprise/feature';
|
package/package.json
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/event-catalog/eventcatalog.git"
|
|
7
7
|
},
|
|
8
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
8
9
|
"type": "module",
|
|
9
|
-
"version": "3.26.
|
|
10
|
+
"version": "3.26.11",
|
|
10
11
|
"publishConfig": {
|
|
11
12
|
"access": "public"
|
|
12
13
|
},
|
|
@@ -102,9 +103,9 @@
|
|
|
102
103
|
"update-notifier": "^7.3.1",
|
|
103
104
|
"uuid": "^10.0.0",
|
|
104
105
|
"zod": "^4.3.6",
|
|
106
|
+
"@eventcatalog/linter": "1.0.17",
|
|
105
107
|
"@eventcatalog/sdk": "2.18.2",
|
|
106
|
-
"@eventcatalog/visualiser": "^3.16.1"
|
|
107
|
-
"@eventcatalog/linter": "1.0.17"
|
|
108
|
+
"@eventcatalog/visualiser": "^3.16.1"
|
|
108
109
|
},
|
|
109
110
|
"devDependencies": {
|
|
110
111
|
"@astrojs/check": "^0.9.8",
|
package/LICENSE.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Source code in this repository is split into two parts:
|
|
2
|
-
|
|
3
|
-
* Outside the `/src/enterprise` directory, source code in a given file is licensed under MIT (see below).
|
|
4
|
-
* Inside the `/src/enterprise` directory, source code in a given file is licensed under the EventCatalog Plugin/Commercial License, unless otherwise noted.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
All code outside of the `eventcatalog/src/enterprise` directory is licensed under the MIT license which is below.
|
|
9
|
-
|
|
10
|
-
MIT License
|
|
11
|
-
|
|
12
|
-
Copyright (c) 2022-2025 boyney123
|
|
13
|
-
|
|
14
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
-
in the Software without restriction, including without limitation the rights
|
|
17
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
-
furnished to do so, subject to the following conditions:
|
|
20
|
-
|
|
21
|
-
The above copyright notice and this permission notice shall be included in all
|
|
22
|
-
copies or substantial portions of the Software.
|
|
23
|
-
|
|
24
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
-
SOFTWARE.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
Usage of files in this directory and its subdirectories, and of EventCatalog Plugin / Enterprise features, is subject to
|
|
2
|
-
the EventCatalog Plugin Licenses (https://www.eventcatalog.dev), and conditional on having a
|
|
3
|
-
valid plugin license from EventCatalog. Access to files in this directory and its subdirectories does not constitute
|
|
4
|
-
permission to use this code or EventCatalog Plugin / Enterprise features.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/eventcatalog/src/{pages → enterprise/custom-documentation/pages}/docs/custom/feature.astro
RENAMED
|
File without changes
|