@eventcatalog/core 2.14.1 → 2.14.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.14.3
4
+
5
+ ### Patch Changes
6
+
7
+ - eb2c620: feat(core): added support to teams chat url in users and teams pages
8
+ - 95ed136: feat(core): added support for rendering avro schema formats in AsyncApi page
9
+
10
+ ## 2.14.2
11
+
12
+ ### Patch Changes
13
+
14
+ - bb4d278: fix(core): fixed styles for links in the step component
15
+
3
16
  ## 2.14.1
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -117,11 +117,11 @@ Thank you to our project sponsors.
117
117
 
118
118
  ## Gold sponsors
119
119
 
120
- <div align="center">
120
+ <!-- <div align="center">
121
121
  <img alt="hookdeck" src="./images/sponsors/hookdeck.svg" />
122
122
  <p style="margin: 0; padding: 0;">Serverless infrastructure for event-driven architecture. </p>
123
123
  <a href="https://hookdeck.com/?ref=eventcatalog-sponsor" target="_blank" >Learn more</a>
124
- </div>
124
+ </div> -->
125
125
 
126
126
  <hr />
127
127
 
@@ -162,7 +162,7 @@ var import_axios = __toESM(require("axios"), 1);
162
162
  var import_os = __toESM(require("os"), 1);
163
163
 
164
164
  // package.json
165
- var version = "2.14.1";
165
+ var version = "2.14.3";
166
166
 
167
167
  // scripts/constants.ts
168
168
  var VERSION = version;
@@ -135,7 +135,7 @@ import axios from "axios";
135
135
  import os from "os";
136
136
 
137
137
  // package.json
138
- var version = "2.14.1";
138
+ var version = "2.14.3";
139
139
 
140
140
  // scripts/constants.ts
141
141
  var VERSION = version;
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.14.1",
9
+ "version": "2.14.3",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -38,6 +38,7 @@
38
38
  "@astrojs/mdx": "^3.1.8",
39
39
  "@astrojs/react": "^3.6.2",
40
40
  "@astrojs/tailwind": "^5.1.2",
41
+ "@asyncapi/avro-schema-parser": "^3.0.24",
41
42
  "@asyncapi/react-component": "^2.4.3",
42
43
  "@headlessui/react": "^2.0.3",
43
44
  "@heroicons/react": "^2.1.3",
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg width="800px" height="800px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="#5059C9" d="M10.765 6.875h3.616c.342 0 .619.276.619.617v3.288a2.272 2.272 0 01-2.274 2.27h-.01a2.272 2.272 0 01-2.274-2.27V7.199c0-.179.145-.323.323-.323zM13.21 6.225c.808 0 1.464-.655 1.464-1.462 0-.808-.656-1.463-1.465-1.463s-1.465.655-1.465 1.463c0 .807.656 1.462 1.465 1.462z"/><path fill="#7B83EB" d="M8.651 6.225a2.114 2.114 0 002.117-2.112A2.114 2.114 0 008.65 2a2.114 2.114 0 00-2.116 2.112c0 1.167.947 2.113 2.116 2.113zM11.473 6.875h-5.97a.611.611 0 00-.596.625v3.75A3.669 3.669 0 008.488 15a3.669 3.669 0 003.582-3.75V7.5a.611.611 0 00-.597-.625z"/><path fill="#000000" d="M8.814 6.875v5.255a.598.598 0 01-.596.595H5.193a3.951 3.951 0 01-.287-1.476V7.5a.61.61 0 01.597-.624h3.31z" opacity=".1"/><path fill="#000000" d="M8.488 6.875v5.58a.6.6 0 01-.596.595H5.347a3.22 3.22 0 01-.267-.65 3.951 3.951 0 01-.172-1.15V7.498a.61.61 0 01.596-.624h2.985z" opacity=".2"/><path fill="#000000" d="M8.488 6.875v4.93a.6.6 0 01-.596.595H5.08a3.951 3.951 0 01-.172-1.15V7.498a.61.61 0 01.596-.624h2.985z" opacity=".2"/><path fill="#000000" d="M8.163 6.875v4.93a.6.6 0 01-.596.595H5.079a3.951 3.951 0 01-.172-1.15V7.498a.61.61 0 01.596-.624h2.66z" opacity=".2"/><path fill="#000000" d="M8.814 5.195v1.024c-.055.003-.107.006-.163.006-.055 0-.107-.003-.163-.006A2.115 2.115 0 016.593 4.6h1.625a.598.598 0 01.596.594z" opacity=".1"/><path fill="#000000" d="M8.488 5.52v.699a2.115 2.115 0 01-1.79-1.293h1.195a.598.598 0 01.595.594z" opacity=".2"/><path fill="#000000" d="M8.488 5.52v.699a2.115 2.115 0 01-1.79-1.293h1.195a.598.598 0 01.595.594z" opacity=".2"/><path fill="#000000" d="M8.163 5.52v.647a2.115 2.115 0 01-1.465-1.242h.87a.598.598 0 01.595.595z" opacity=".2"/><path fill="url(#microsoft-teams-color-16__paint0_linear_2372_494)" d="M1.597 4.925h5.969c.33 0 .597.267.597.596v5.958a.596.596 0 01-.597.596h-5.97A.596.596 0 011 11.479V5.521c0-.33.267-.596.597-.596z"/><path fill="#ffffff" d="M6.152 7.193H4.959v3.243h-.76V7.193H3.01v-.63h3.141v.63z"/><defs><linearGradient id="microsoft-teams-color-16__paint0_linear_2372_494" x1="2.244" x2="6.906" y1="4.46" y2="12.548" gradientUnits="userSpaceOnUse"><stop stop-color="#5A62C3"/><stop offset=".5" stop-color="#4D55BD"/><stop offset="1" stop-color="#3940AB"/></linearGradient></defs></svg>
@@ -2,7 +2,7 @@
2
2
  const { title } = Astro.props;
3
3
  ---
4
4
 
5
- <li class="mb-8 ml-6 w-full xl:max-w-[50%]">
5
+ <li class="mb-8 ml-6 w-full xl:max-w-[50%] step">
6
6
  <div class="flex items-center mb-4">
7
7
  <span class="step-number absolute flex items-center justify-center w-6 h-6 bg-primary/80 rounded-md -left-3 text-white">
8
8
  <div></div>
@@ -23,3 +23,13 @@ const { title } = Astro.props;
23
23
  });
24
24
  });
25
25
  </script>
26
+
27
+ <style is:global>
28
+ .step a {
29
+ color: #4b5563;
30
+ text-decoration: underline;
31
+ &:hover {
32
+ color: #b977f9;
33
+ }
34
+ }
35
+ </style>
@@ -231,6 +231,7 @@ const users = defineCollection({
231
231
  hidden: z.boolean().optional(),
232
232
  email: z.string().optional(),
233
233
  slackDirectMessageUrl: z.string().optional(),
234
+ msTeamsDirectMessageUrl: z.string().optional(),
234
235
  ownedDomains: z.array(reference('domains')).optional(),
235
236
  ownedServices: z.array(reference('services')).optional(),
236
237
  ownedEvents: z.array(reference('events')).optional(),
@@ -248,6 +249,7 @@ const teams = defineCollection({
248
249
  email: z.string().optional(),
249
250
  hidden: z.boolean().optional(),
250
251
  slackDirectMessageUrl: z.string().optional(),
252
+ msTeamsDirectMessageUrl: z.string().optional(),
251
253
  members: z.array(reference('users')).optional(),
252
254
  ownedCommands: z.array(reference('commands')).optional(),
253
255
  ownedDomains: z.array(reference('domains')).optional(),
@@ -4,6 +4,7 @@ import { readFileSync } from 'fs';
4
4
  import { createElement } from 'react';
5
5
  import { renderToString } from 'react-dom/server';
6
6
  import { Parser } from '@asyncapi/parser';
7
+ import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
7
8
 
8
9
  import type { CollectionTypes, PageTypes } from '@types';
9
10
 
@@ -46,7 +47,7 @@ const fileContent = readFileSync(pathOnDisk, 'utf-8');
46
47
 
47
48
  // AsyncAPI parser will parser schemas for users, they can turn this off.
48
49
  const parseSchemas = Config?.asyncAPI?.renderParsedSchemas ?? true;
49
- const parsed = await new Parser().parse(fileContent, { parseSchemas });
50
+ const parsed = await new Parser({ schemaParsers: [AvroSchemaParser()] }).parse(fileContent, { parseSchemas });
50
51
  const stringified = parsed.document?.json();
51
52
  const config: ConfigInterface = { show: { sidebar: true, errors: true } };
52
53
 
@@ -99,6 +99,16 @@ const ownedEventsList = [...events, ...commands].map((p) => ({
99
99
  </div>
100
100
  )
101
101
  }
102
+ {
103
+ props.data.msTeamsDirectMessageUrl && (
104
+ <div class="flex space-x-1 items-center text-xs text-gray-500 font-bold hover:underline hover:text-primary">
105
+ <img src="/icons/ms-teams.svg" class="w-4 h-4" />
106
+ <a href={`${props.data.msTeamsDirectMessageUrl}`} target="_blank" rel="noopener noreferrer">
107
+ Send DM on Teams
108
+ </a>
109
+ </div>
110
+ )
111
+ }
102
112
  </div>
103
113
  </div>
104
114
  </div>
@@ -96,6 +96,16 @@ const associatedTeams = teams.map((o) => ({
96
96
  </div>
97
97
  )
98
98
  }
99
+ {
100
+ props.data.msTeamsDirectMessageUrl && (
101
+ <div class="flex space-x-1 items-center text-xs text-gray-500 font-bold hover:underline hover:text-primary">
102
+ <img src="/icons/ms-teams.svg" class="w-4 h-4" />
103
+ <a href={`${props.data.msTeamsDirectMessageUrl}`} target="_blank" rel="noopener noreferrer">
104
+ Send DM on Teams
105
+ </a>
106
+ </div>
107
+ )
108
+ }
99
109
  </div>
100
110
  </div>
101
111
  </div>