@eventcatalog/core 2.24.1 → 2.24.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.
package/README.md CHANGED
@@ -265,4 +265,4 @@ This project follows the [all-contributors](https://github.com/all-contributors/
265
265
 
266
266
  # License
267
267
 
268
- MIT
268
+ MIT.
@@ -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.24.1";
40
+ var version = "2.24.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-XDRFRTPG.js";
4
- import "../chunk-XBPWZJUU.js";
3
+ } from "../chunk-Q77NQ43U.js";
4
+ import "../chunk-AMO6QDAS.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.24.1";
109
+ var version = "2.24.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-TGASC7WJ.js";
4
- import "../chunk-XDRFRTPG.js";
5
- import "../chunk-XBPWZJUU.js";
3
+ } from "../chunk-VOOF34RB.js";
4
+ import "../chunk-Q77NQ43U.js";
5
+ import "../chunk-AMO6QDAS.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.24.1";
2
+ var version = "2.24.2";
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-XBPWZJUU.js";
3
+ } from "./chunk-AMO6QDAS.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-XDRFRTPG.js";
3
+ } from "./chunk-Q77NQ43U.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.24.1";
28
+ var version = "2.24.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-XBPWZJUU.js";
3
+ } from "./chunk-AMO6QDAS.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.24.1";
164
+ var version = "2.24.2";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-OW2FQPYP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-TGASC7WJ.js";
10
- import "./chunk-XDRFRTPG.js";
9
+ } from "./chunk-VOOF34RB.js";
10
+ import "./chunk-Q77NQ43U.js";
11
11
  import {
12
12
  catalogToAstro
13
13
  } from "./chunk-CXKIF3EI.js";
14
14
  import {
15
15
  VERSION
16
- } from "./chunk-XBPWZJUU.js";
16
+ } from "./chunk-AMO6QDAS.js";
17
17
  import {
18
18
  isBackstagePluginEnabled
19
19
  } from "./chunk-XMDPVKIJ.js";
@@ -13,8 +13,8 @@ self.onmessage = async (event) => {
13
13
  try {
14
14
  // Initialize the vector store
15
15
  if (event?.data?.init && !documents && !embeddings) {
16
- const documentsImport = await fetch(`/generated/ai/documents.json`);
17
- const embeddingsImport = await fetch(`/generated/ai/embeddings.json`);
16
+ const documentsImport = await fetch(`/ai/documents.json`);
17
+ const embeddingsImport = await fetch(`/ai/embeddings.json`);
18
18
 
19
19
  documents = await documentsImport.json();
20
20
  embeddings = await embeddingsImport.json();
@@ -31,7 +31,24 @@ const generatorConfig = `
31
31
  {
32
32
  isEnabled ? (
33
33
  directoryExists ? (
34
- <Chat client:only="react" />
34
+ <>
35
+ <div id="browserWarning" class="flex items-center justify-center w-full p-4 sm:p-8" style="display: none;">
36
+ <div class="max-w-2xl text-center bg-yellow-100 text-yellow-800 px-8 py-6 rounded-lg shadow-md">
37
+ <h2 class="text-2xl font-bold mb-4">Unsupported Browser</h2>
38
+ <p>
39
+ EventCatalog AI Assistant uses LLM models in the browser which is{' '}
40
+ <a href="https://developer.mozilla.org/en-US/docs/Web/API/GPU" class="text-blue-500 hover:underline">
41
+ only supported in Chrome and Edge browsers
42
+ </a>
43
+ . <br />
44
+ Please switch to a supported browser for the best experience.
45
+ </p>
46
+ </div>
47
+ </div>
48
+ <div id="chatContainer" class="w-full">
49
+ <Chat client:only="react" />
50
+ </div>
51
+ </>
35
52
  ) : (
36
53
  <div class="flex items-center justify-center w-full p-4 sm:p-8">
37
54
  <div class="max-w-2xl text-center">
@@ -105,6 +122,30 @@ const generatorConfig = `
105
122
  </div>
106
123
  </VerticalSideBarLayout>
107
124
 
125
+ <script>
126
+ function checkBrowser() {
127
+ const userAgent = navigator.userAgent.toLowerCase();
128
+ const isChrome = /chrome/.test(userAgent) && !/edg/.test(userAgent);
129
+ const isEdge = /edg/.test(userAgent);
130
+
131
+ const warningElement = document.getElementById('browserWarning') as HTMLElement;
132
+ const chatContainer = document.getElementById('chatContainer') as HTMLElement;
133
+
134
+ if (warningElement && chatContainer) {
135
+ if (!isChrome && !isEdge) {
136
+ warningElement.style.display = 'flex';
137
+ chatContainer.style.display = 'none';
138
+ } else {
139
+ warningElement.style.display = 'none';
140
+ chatContainer.style.display = 'block';
141
+ }
142
+ }
143
+ }
144
+
145
+ // Run check when DOM is loaded
146
+ document.addEventListener('DOMContentLoaded', checkBrowser);
147
+ </script>
148
+
108
149
  <style>
109
150
  .loading-status.ready {
110
151
  background-color: rgb(240 253 244); /* light green bg */
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.24.1",
9
+ "version": "2.24.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -29,7 +29,7 @@
29
29
  "@asyncapi/avro-schema-parser": "^3.0.24",
30
30
  "@asyncapi/parser": "^3.4.0",
31
31
  "@asyncapi/react-component": "^2.4.3",
32
- "@eventcatalog/generator-ai": "^0.1.1",
32
+ "@eventcatalog/generator-ai": "^0.1.2",
33
33
  "@headlessui/react": "^2.0.3",
34
34
  "@heroicons/react": "^2.1.3",
35
35
  "@huggingface/transformers": "^3.3.3",