@eventcatalog/core 2.43.1 → 2.43.2

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.
@@ -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 = "2.43.1";
40
+ var version = "2.43.2";
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-QYZZIYJW.js";
4
- import "../chunk-A6LT34RD.js";
3
+ } from "../chunk-AHBMOYOU.js";
4
+ import "../chunk-MJG5DK3Z.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.43.1";
109
+ var version = "2.43.2";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-ZV5T7TKQ.js";
4
- import "../chunk-QYZZIYJW.js";
5
- import "../chunk-A6LT34RD.js";
3
+ } from "../chunk-63AEX7TR.js";
4
+ import "../chunk-AHBMOYOU.js";
5
+ import "../chunk-MJG5DK3Z.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-QYZZIYJW.js";
3
+ } from "./chunk-AHBMOYOU.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-A6LT34RD.js";
3
+ } from "./chunk-MJG5DK3Z.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.43.1";
2
+ var version = "2.43.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.43.1";
28
+ var version = "2.43.2";
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-A6LT34RD.js";
3
+ } from "./chunk-MJG5DK3Z.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -2,12 +2,14 @@ import { OAuthUserConfig } from '@auth/core/providers';
2
2
  import { GitHubProfile } from '@auth/core/providers/github';
3
3
  import { OktaProfile } from '@auth/core/providers/okta';
4
4
  import { Auth0Profile } from '@auth/core/providers/auth0';
5
+ import { MicrosoftEntraIDProfile } from '@auth/core/providers/microsoft-entra-id';
5
6
 
6
7
  interface EventCatalogAuthConfig {
7
8
  providers?: {
8
9
  github?: OAuthUserConfig<GitHubProfile>;
9
10
  okta?: OAuthUserConfig<OktaProfile>;
10
11
  auth0?: OAuthUserConfig<Auth0Profile>;
12
+ entra?: OAuthUserConfig<MicrosoftEntraIDProfile>;
11
13
  };
12
14
  customAuthConfig?: string;
13
15
  customMiddleware?: string;
@@ -2,12 +2,14 @@ import { OAuthUserConfig } from '@auth/core/providers';
2
2
  import { GitHubProfile } from '@auth/core/providers/github';
3
3
  import { OktaProfile } from '@auth/core/providers/okta';
4
4
  import { Auth0Profile } from '@auth/core/providers/auth0';
5
+ import { MicrosoftEntraIDProfile } from '@auth/core/providers/microsoft-entra-id';
5
6
 
6
7
  interface EventCatalogAuthConfig {
7
8
  providers?: {
8
9
  github?: OAuthUserConfig<GitHubProfile>;
9
10
  okta?: OAuthUserConfig<OktaProfile>;
10
11
  auth0?: OAuthUserConfig<Auth0Profile>;
12
+ entra?: OAuthUserConfig<MicrosoftEntraIDProfile>;
11
13
  };
12
14
  customAuthConfig?: string;
13
15
  customMiddleware?: string;
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.43.1";
160
+ var version = "2.43.2";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-DCLTVJDP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-ZV5T7TKQ.js";
10
- import "./chunk-QYZZIYJW.js";
9
+ } from "./chunk-63AEX7TR.js";
10
+ import "./chunk-AHBMOYOU.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-EXAALOQA.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-A6LT34RD.js";
18
+ } from "./chunk-MJG5DK3Z.js";
19
19
  import {
20
20
  isAuthEnabled,
21
21
  isBackstagePluginEnabled,
@@ -6,6 +6,7 @@ import type { Account, Profile, User, Session } from '@auth/core/types';
6
6
  import { isAuthEnabled, isSSR } from '@utils/feature';
7
7
  import Google from '@auth/core/providers/google';
8
8
  import Auth0 from '@auth/core/providers/auth0';
9
+ import Entra from '@auth/core/providers/microsoft-entra-id';
9
10
 
10
11
  // Need to try and read the eventcatalog.auth.js file and get the auth providers from there
11
12
  const catalogDirectory = process.env.PROJECT_DIR || process.cwd();
@@ -67,6 +68,19 @@ const getAuthProviders = async () => {
67
68
  console.log('✅ Auth0 provider configured');
68
69
  }
69
70
 
71
+ // Microsoft Entra ID provider
72
+ if (authConfig.providers?.entra) {
73
+ const entraConfig = authConfig.providers.entra;
74
+ providers.push(
75
+ Entra({
76
+ clientId: entraConfig.clientId,
77
+ clientSecret: entraConfig.clientSecret,
78
+ issuer: entraConfig.issuer,
79
+ })
80
+ );
81
+ console.log('✅ Microsoft Entra ID provider configured');
82
+ }
83
+
70
84
  if (providers.length === 0) {
71
85
  console.warn('⚠️ No auth providers configured');
72
86
  }
@@ -56,6 +56,10 @@ const providerConfig = {
56
56
  name: 'Auth0',
57
57
  icon: `<svg class="w-5 h-5" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#000000" d="M12.549 1h-4.55l1.407 4.38h4.548l-3.68 2.61 1.406 4.405c2.37-1.725 3.143-4.336 2.274-7.016L12.55 1zM2.045 5.38h4.55L8 1H3.45L2.045 5.38c-.868 2.68-.094 5.29 2.275 7.015L5.725 7.99l-3.68-2.612zm2.275 7.015L8 15l3.68-2.605L8 9.745l-3.68 2.65z"></path></g></svg>`,
58
58
  },
59
+ entra: {
60
+ name: 'Microsoft',
61
+ icon: `<svg class="w-5 h-5" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#F35325" d="M1 1h6.5v6.5H1V1z"></path><path fill="#81BC06" d="M8.5 1H15v6.5H8.5V1z"></path><path fill="#05A6F0" d="M1 8.5h6.5V15H1V8.5z"></path><path fill="#FFBA08" d="M8.5 8.5H15V15H8.5V8.5z"></path></g></svg>`,
62
+ },
59
63
  };
60
64
  ---
61
65
 
@@ -261,7 +265,8 @@ const providerConfig = {
261
265
  providerButtons.forEach((button) => {
262
266
  const provider = button.getAttribute('data-provider');
263
267
  if (provider) {
264
- button.addEventListener('click', () => signIn(provider));
268
+ let providerId = provider === 'entra' ? 'microsoft-entra-id' : provider;
269
+ button.addEventListener('click', () => signIn(providerId));
265
270
  }
266
271
  });
267
272
  </script>
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.43.1",
9
+ "version": "2.43.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },