@eventcatalog/core 3.39.4 → 3.39.6

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 (71) 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-NSR4DZXS.js → chunk-4OSFLWLG.js} +1 -1
  6. package/dist/{chunk-WLUQZCIH.js → chunk-IKZ5ITXP.js} +1 -1
  7. package/dist/{chunk-PVOVC2UV.js → chunk-LEUIMTEQ.js} +1 -1
  8. package/dist/{chunk-O2CZERUN.js → chunk-MQAZ4LXP.js} +1 -1
  9. package/dist/{chunk-ONQOIF2X.js → chunk-ORVOST63.js} +1 -1
  10. package/dist/constants.cjs +1 -1
  11. package/dist/constants.js +1 -1
  12. package/dist/docs/api/03-domain-api.md +16 -0
  13. package/dist/docs/api/04-service-api.md +16 -0
  14. package/dist/docs/api/05-command-api.md +16 -0
  15. package/dist/docs/api/06-event-api.md +16 -0
  16. package/dist/docs/api/06-query-api.md +16 -0
  17. package/dist/docs/api/08-channel-api.md +16 -0
  18. package/dist/docs/api/09-flow-api.md +16 -0
  19. package/dist/docs/api/10-entity-api.md +15 -0
  20. package/dist/docs/api/12-data-product-api.md +17 -0
  21. package/dist/docs/development/01-fundamentals.md +7 -0
  22. package/dist/docs/development/01-getting-started/installation.md +8 -0
  23. package/dist/docs/development/01-getting-started/project-structure.md +2 -0
  24. package/dist/docs/development/bring-your-own-documentation/01-introduction.md +3 -1
  25. package/dist/docs/development/customization/customize-sidebars/00-application-sidebar.md +45 -5
  26. package/dist/docs/editor/00-overview.md +73 -0
  27. package/dist/docs/editor/01-first-edit.md +124 -0
  28. package/dist/docs/editor/_category_.json +12 -0
  29. package/dist/docs/editor/explanation/_category_.json +11 -0
  30. package/dist/docs/editor/explanation/beta-status-feedback.md +48 -0
  31. package/dist/docs/editor/explanation/how-it-works.md +49 -0
  32. package/dist/docs/editor/explanation/markdown-mdx-git.md +58 -0
  33. package/dist/docs/editor/how-to/_category_.json +11 -0
  34. package/dist/docs/editor/how-to/add-schemas-and-specifications.md +66 -0
  35. package/dist/docs/editor/how-to/edit-resource.md +88 -0
  36. package/dist/docs/editor/how-to/invite-editors.md +68 -0
  37. package/dist/docs/editor/how-to/open-catalog.md +44 -0
  38. package/dist/docs/editor/how-to/preview-changes.md +55 -0
  39. package/dist/docs/editor/how-to/revert-local-changes.md +43 -0
  40. package/dist/docs/editor/how-to/review-and-commit-changes.md +57 -0
  41. package/dist/docs/editor/how-to/run-locally.md +71 -0
  42. package/dist/docs/editor/how-to/use-flow-editor.md +66 -0
  43. package/dist/docs/editor/how-to/use-slash-commands.md +67 -0
  44. package/dist/docs/editor/reference/_category_.json +11 -0
  45. package/dist/docs/editor/reference/cli.md +61 -0
  46. package/dist/docs/editor/reference/supported-content.md +81 -0
  47. package/dist/docs/editor/reference/supported-resources.md +51 -0
  48. package/dist/docs/editor/reference/troubleshooting.md +76 -0
  49. package/dist/eventcatalog.cjs +1 -1
  50. package/dist/eventcatalog.js +5 -5
  51. package/dist/generate.cjs +1 -1
  52. package/dist/generate.js +3 -3
  53. package/dist/utils/cli-logger.cjs +1 -1
  54. package/dist/utils/cli-logger.js +2 -2
  55. package/eventcatalog/src/components/Badge.astro +50 -0
  56. package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +1 -0
  57. package/eventcatalog/src/components/Tables/Discover/columns.tsx +35 -13
  58. package/eventcatalog/src/components/Tables/Table.tsx +1 -0
  59. package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +24 -11
  60. package/eventcatalog/src/content.config-shared-collections.ts +1 -0
  61. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +2 -18
  62. package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +250 -205
  63. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +2 -14
  64. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +2 -14
  65. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +3 -15
  66. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +2 -18
  67. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +2 -18
  68. package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +2 -11
  69. package/eventcatalog/src/utils/badge-styles.ts +31 -0
  70. package/eventcatalog/src/utils/sidebar-visibility.ts +41 -0
  71. package/package.json +4 -4
@@ -0,0 +1,71 @@
1
+ ---
2
+ sidebar_position: 1
3
+ sidebar_label: Run locally
4
+ title: Run EventCatalog Editor locally
5
+ description: Start EventCatalog Editor against a local EventCatalog project.
6
+ ---
7
+
8
+ Use this guide when you want to start EventCatalog Editor on your machine.
9
+
10
+ ## Prerequisites
11
+
12
+ You need:
13
+
14
+ - Node.js 22 or later
15
+ - Git
16
+ - An EventCatalog project containing `eventcatalog.config.js`
17
+ - EventCatalog Editor access through [EventCatalog Cloud](https://eventcatalog.cloud)
18
+
19
+ ## Run from a catalog directory
20
+
21
+ Open a terminal in your EventCatalog project and run:
22
+
23
+ ```bash
24
+ npx @eventcatalog/editor
25
+ ```
26
+
27
+ The editor starts on [http://localhost:3900](http://localhost:3900).
28
+
29
+ ## Run with an explicit catalog path
30
+
31
+ If you are not in the catalog directory, pass the catalog path:
32
+
33
+ ```bash
34
+ npx @eventcatalog/editor --catalog /path/to/my-catalog
35
+ ```
36
+
37
+ The directory must contain `eventcatalog.config.js`.
38
+
39
+ ## Choose a different editor port
40
+
41
+ Use `--port` when port `3900` is already in use:
42
+
43
+ ```bash
44
+ npx @eventcatalog/editor --port 3999
45
+ ```
46
+
47
+ ## Connect preview links to a running catalog
48
+
49
+ The editor looks for a local EventCatalog preview on port `3000` by default.
50
+
51
+ Start EventCatalog in your catalog project:
52
+
53
+ ```bash
54
+ npm run dev
55
+ ```
56
+
57
+ Then start the editor in another terminal:
58
+
59
+ ```bash
60
+ npx @eventcatalog/editor
61
+ ```
62
+
63
+ If your EventCatalog preview runs on another port, pass it to the editor:
64
+
65
+ ```bash
66
+ npx @eventcatalog/editor --eventcatalog-port 3001
67
+ ```
68
+
69
+ ## Stop the editor
70
+
71
+ Return to the terminal running the editor and press `Ctrl+C`.
@@ -0,0 +1,66 @@
1
+ ---
2
+ sidebar_position: 5
3
+ sidebar_label: Flow Editor
4
+ title: Use the Flow Editor
5
+ description: Create and update EventCatalog flows visually with EventCatalog Editor.
6
+ ---
7
+
8
+ Use the Flow Editor when you want to document a business process, user journey, or architecture workflow without editing the [flow](/docs/development/guides/flows/introduction) files by hand.
9
+
10
+ Flow resources are still stored in your local EventCatalog project. The editor gives you a visual way to create and arrange the steps, then writes the change back to your catalog files.
11
+
12
+ ![Flow editor showing a service node in a business flow](../images/flow-editor.png)
13
+
14
+ ## Open a flow
15
+
16
+ Start EventCatalog Editor and open a flow from the resource list.
17
+
18
+ If you are creating a new flow, create it from the editor first, then open it from the flow list.
19
+
20
+ Click the **Flow Editor** tab at the top of the resource to switch from the documentation view into the visual editor.
21
+
22
+ ## Add a step
23
+
24
+ Use **Add step** or choose an empty node in the flow.
25
+
26
+ The editor opens a picker so you can choose what kind of node belongs in the flow.
27
+
28
+ ![Flow editor node type picker](../images/flow-editor-pick-a-node.png)
29
+
30
+ ## Choose the right node
31
+
32
+ Use the node picker to add the resource that best represents the next step.
33
+
34
+ For example:
35
+
36
+ - Add a [service](/docs/development/guides/services/introduction) when a system performs work
37
+ - Add an [event](/docs/development/guides/messages/events/introduction) when something has happened
38
+ - Add a [command](/docs/development/guides/messages/commands/introduction) when one system asks another system to do something
39
+ - Add a [query](/docs/development/guides/messages/queries/introduction) when the flow reads information
40
+
41
+ Use existing catalog resources when they already exist. Create new resources when the flow reveals something that is missing from the catalog.
42
+
43
+ ## Review the flow
44
+
45
+ After adding steps, read the flow from left to right and check that it tells the story clearly.
46
+
47
+ Check that:
48
+
49
+ - The flow starts with the trigger or first meaningful step
50
+ - Each step uses the most accurate resource type
51
+ - Resource names match the language your team uses
52
+ - The flow is clear enough for someone who was not in the design discussion
53
+
54
+ ## Preview the flow
55
+
56
+ Use **Open Preview** to view the flow in your local EventCatalog site.
57
+
58
+ Preview helps you check how the flow will look to readers before you publish the local commit.
59
+
60
+ ## Publish the change
61
+
62
+ Open **Changes** and review the files the Flow Editor changed.
63
+
64
+ When the diff looks right, click **Publish**. In the beta editor, **Publish** commits your changes locally to Git.
65
+
66
+ After publishing, continue with your team's normal Git review and release workflow.
@@ -0,0 +1,67 @@
1
+ ---
2
+ sidebar_position: 6
3
+ sidebar_label: Use slash commands
4
+ title: Use slash commands
5
+ description: Insert Markdown blocks and EventCatalog components from the rich editor.
6
+ ---
7
+
8
+ Slash commands let you add content without remembering Markdown syntax or MDX component names.
9
+
10
+ Type `/` in an empty paragraph to open the command menu. The menu shows matching blocks, grouped by purpose, with a visual preview of the selected command.
11
+
12
+ ![Slash command menu showing EventCatalog diagram components](../images/custom-slash-commands.png)
13
+
14
+ ## Insert a block
15
+
16
+ 1. Click into the resource documentation.
17
+ 2. Start a new empty paragraph.
18
+ 3. Type `/`.
19
+ 4. Search or scroll to the block you want.
20
+ 5. Press `Enter` or click the command.
21
+
22
+ The editor inserts the matching Markdown or MDX block into the resource.
23
+
24
+ ## Add EventCatalog components
25
+
26
+ Slash commands are useful for adding EventCatalog-specific components without switching to source mode.
27
+
28
+ You can insert components such as:
29
+
30
+ - Node Graph
31
+ - Miro diagram
32
+ - Draw.io diagram
33
+ - Lucid diagram
34
+ - IcePanel diagram
35
+ - [Flow](/docs/development/guides/flows/introduction)
36
+ - Mermaid diagram
37
+ - Entity Map
38
+ - Schema Viewer
39
+ - Steps
40
+ - Tiles
41
+ - Accordion group
42
+ - Prompt
43
+ - Visibility
44
+ - Admonitions such as note, tip, warning, danger, and info
45
+
46
+ Some commands are available only when they make sense for the current resource. For example, **Schema Viewer** is available for [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), and [queries](/docs/development/guides/messages/queries/introduction), while **Entity Map** is available for [domains](/docs/development/guides/domains/introduction).
47
+
48
+ ## Use visual previews
49
+
50
+ The preview panel shows what the selected command is for before you insert it.
51
+
52
+ Use this when you are deciding between similar blocks, such as diagram components or callout types.
53
+
54
+ ## Edit the inserted block
55
+
56
+ After inserting a component, you can usually edit it directly in the rich editor.
57
+
58
+ If the component needs configuration that is not exposed visually yet, switch to source mode and edit the MDX.
59
+
60
+ ## When to use source mode instead
61
+
62
+ Use source mode when you need to:
63
+
64
+ - Paste an existing MDX component
65
+ - Change advanced component attributes
66
+ - Edit custom components that the slash menu does not know about
67
+ - Review the exact Markdown or MDX that will be saved
@@ -0,0 +1,11 @@
1
+ {
2
+ "label": "Reference",
3
+ "position": 4,
4
+ "collapsible": true,
5
+ "collapsed": false,
6
+ "link": {
7
+ "type": "generated-index",
8
+ "title": "Editor reference",
9
+ "description": "Lookup information for EventCatalog Editor commands, supported resources, content support, and troubleshooting."
10
+ }
11
+ }
@@ -0,0 +1,61 @@
1
+ ---
2
+ sidebar_position: 1
3
+ sidebar_label: CLI
4
+ title: EventCatalog Editor CLI reference
5
+ description: Command and option reference for running EventCatalog Editor.
6
+ ---
7
+
8
+ Run the editor with:
9
+
10
+ ```bash
11
+ npx @eventcatalog/editor
12
+ ```
13
+
14
+ ## Requirements
15
+
16
+ - Node.js 22 or later
17
+ - Git
18
+ - An EventCatalog directory containing `eventcatalog.config.js`
19
+
20
+ ## Options
21
+
22
+ | Option | Description | Default |
23
+ | --- | --- | --- |
24
+ | `--catalog <path>` | Path to the EventCatalog root to edit. | Current directory, a detected child catalog, or browser selection |
25
+ | `--port <n>` | Port for the editor server. | `3900` |
26
+ | `--eventcatalog-port <n>` | Port where local EventCatalog preview is running. | `3000` |
27
+ | `--no-open` | Start the editor without opening the browser automatically. | Opens browser |
28
+ | `--help`, `-h` | Show CLI help. | |
29
+ | `--version`, `-v` | Show the installed editor version. | |
30
+
31
+ ## Examples
32
+
33
+ Run from a catalog directory:
34
+
35
+ ```bash
36
+ npx @eventcatalog/editor
37
+ ```
38
+
39
+ Run against a specific catalog:
40
+
41
+ ```bash
42
+ npx @eventcatalog/editor --catalog /Users/me/dev/my-catalog
43
+ ```
44
+
45
+ Use a different editor port:
46
+
47
+ ```bash
48
+ npx @eventcatalog/editor --port 3999
49
+ ```
50
+
51
+ Use a different EventCatalog preview port:
52
+
53
+ ```bash
54
+ npx @eventcatalog/editor --eventcatalog-port 3001
55
+ ```
56
+
57
+ Start without opening a browser:
58
+
59
+ ```bash
60
+ npx @eventcatalog/editor --no-open
61
+ ```
@@ -0,0 +1,81 @@
1
+ ---
2
+ sidebar_position: 3
3
+ sidebar_label: Supported content
4
+ title: Supported content and MDX
5
+ description: Markdown, MDX, and component support in EventCatalog Editor.
6
+ ---
7
+
8
+ EventCatalog Editor supports rich editing for common Markdown content and source editing for advanced Markdown and MDX.
9
+
10
+ ## Rich editor content
11
+
12
+ The rich editor supports:
13
+
14
+ - Headings
15
+ - Paragraphs
16
+ - Bold and italic text
17
+ - Links
18
+ - Bullet lists
19
+ - Numbered lists
20
+ - Blockquotes
21
+ - Code blocks
22
+ - Horizontal dividers
23
+ - Tables
24
+
25
+ Use `/` in an empty paragraph to open the slash command menu.
26
+
27
+ ![Slash command menu showing component previews](../images/custom-slash-commands.png)
28
+
29
+ ## Slash commands
30
+
31
+ Slash commands can insert Markdown blocks and EventCatalog components from the rich editor.
32
+
33
+ Common command groups include:
34
+
35
+ - Text: headings, paragraphs, and quotes
36
+ - Lists: bullet and ordered lists
37
+ - Advanced: code blocks, dividers, and tables
38
+ - Admonitions: note, tip, warning, danger, and info callouts
39
+ - Diagrams: Node Graph, [Flow](/docs/development/guides/flows/introduction), Mermaid, Miro, Draw.io, Lucid, IcePanel, Entity Map, and Schema Viewer
40
+ - Layout: Steps, Tiles, and Accordion group
41
+ - AI: Prompt and Visibility blocks
42
+
43
+ Some commands are resource-aware. For example, Schema Viewer appears for [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), and [queries](/docs/development/guides/messages/queries/introduction), and Entity Map appears for [domains](/docs/development/guides/domains/introduction).
44
+
45
+ ## Source mode
46
+
47
+ Use source mode for:
48
+
49
+ - Frontmatter edits
50
+ - Custom Markdown
51
+ - MDX components
52
+ - Content the rich editor does not expose yet
53
+
54
+ Source mode edits the full document source.
55
+
56
+ ## MDX components
57
+
58
+ The editor understands common EventCatalog MDX components and keeps unknown or complex components as blocks so they can round trip through the editor.
59
+
60
+ Examples of EventCatalog content you may see include:
61
+
62
+ - `NodeGraph`
63
+ - `EntityMap`
64
+ - `Mermaid`
65
+ - `Steps`
66
+ - `Schema`
67
+ - `SchemaViewer`
68
+ - `MessageTable`
69
+ - `ChannelInformation`
70
+ - `OpenAPI`
71
+ - `AsyncAPI`
72
+ - `Admonition`
73
+ - `ResourceGroupList`
74
+
75
+ If a component cannot be edited visually yet, use source mode.
76
+
77
+ ## Editor modes
78
+
79
+ Use the header controls to switch between visual editing and source editing.
80
+
81
+ ![Editor header showing visual and source mode controls](../images/header.png)
@@ -0,0 +1,51 @@
1
+ ---
2
+ sidebar_position: 2
3
+ sidebar_label: Supported resources
4
+ title: Supported resources
5
+ description: Resource types and capabilities currently supported by EventCatalog Editor.
6
+ ---
7
+
8
+ EventCatalog Editor can browse and edit the main EventCatalog resource types.
9
+
10
+ | Resource type | Browse | Edit docs | Edit metadata | Create | Delete | Notes |
11
+ | --- | --- | --- | --- | --- | --- | --- |
12
+ | [Domain](/docs/development/guides/domains/introduction) | Yes | Yes | Yes | Yes | Yes | Supports services, messages, entities, specifications, and ubiquitous language |
13
+ | [Service](/docs/development/guides/services/introduction) | Yes | Yes | Yes | Yes | Yes | Supports message relationships, data store relationships, and specifications |
14
+ | [Event](/docs/development/guides/messages/events/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas and producer/consumer relationships |
15
+ | [Command](/docs/development/guides/messages/commands/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas, operations, and producer/consumer relationships |
16
+ | [Query](/docs/development/guides/messages/queries/introduction) | Yes | Yes | Yes | Yes | Yes | Supports schemas, operations, and producer/consumer relationships |
17
+ | [Channel](/docs/development/guides/channels/introduction) | Yes | Yes | Yes | Yes | Yes | Supports common metadata |
18
+ | [Entity](/docs/development/guides/domains/entities/introduction) | Yes | Yes | Yes | Yes | Yes | Supports common metadata |
19
+ | [Data store](/docs/development/guides/data/introduction) | Yes | Yes | Yes | Yes | Yes | Represented as EventCatalog container resources |
20
+ | [Flow](/docs/development/guides/flows/introduction) | Yes | Yes | Yes | Yes | Yes | Supports flow step editing |
21
+ | [User](/docs/development/guides/owners/users/introduction) | Yes | Yes | Yes | Yes | Yes | Versionless |
22
+ | [Team](/docs/development/guides/owners/teams/introduction) | Yes | Yes | Yes | Yes | Yes | Versionless |
23
+
24
+ ## Schemas
25
+
26
+ Schemas are supported on:
27
+
28
+ - [Events](/docs/development/guides/messages/events/introduction)
29
+ - [Commands](/docs/development/guides/messages/commands/introduction)
30
+ - [Queries](/docs/development/guides/messages/queries/introduction)
31
+
32
+ ## Specifications
33
+
34
+ Specifications are supported on:
35
+
36
+ - [Domains](/docs/development/guides/domains/introduction)
37
+ - [Services](/docs/development/guides/services/introduction)
38
+
39
+ Supported specification types:
40
+
41
+ - OpenAPI
42
+ - AsyncAPI
43
+ - GraphQL
44
+
45
+ ## Versionless resources
46
+
47
+ Users and teams are versionless in EventCatalog. Other resources use versions.
48
+
49
+ ## Beta limitations
50
+
51
+ Some advanced resource fields may still require source mode. If a visual field is missing, switch to source mode and edit the underlying Markdown, MDX, or frontmatter directly.
@@ -0,0 +1,76 @@
1
+ ---
2
+ sidebar_position: 4
3
+ sidebar_label: Troubleshooting
4
+ title: Troubleshooting EventCatalog Editor
5
+ description: Fix common issues when running EventCatalog Editor.
6
+ ---
7
+
8
+ ## The editor cannot find my catalog
9
+
10
+ Check that:
11
+
12
+ - You are running the editor from the catalog directory, or using `--catalog`
13
+ - The directory contains `eventcatalog.config.js`
14
+ - The config file can be loaded by Node.js
15
+ - Catalog dependencies are installed
16
+
17
+ Run with an explicit path:
18
+
19
+ ```bash
20
+ npx @eventcatalog/editor --catalog /path/to/my-catalog
21
+ ```
22
+
23
+ ## I cannot sign in
24
+
25
+ The editor uses [EventCatalog Cloud](https://eventcatalog.cloud) for access.
26
+
27
+ If sign-in fails:
28
+
29
+ - Check your internet connection
30
+ - Try signing out of [EventCatalog Cloud](https://eventcatalog.cloud) and signing in again
31
+ - Restart the local editor
32
+ - Check that your account has editor access
33
+
34
+ If you see an editor access message, ask an organization admin to [invite you as an editor](/docs/editor/how-to/invite-editors) or change your role to **Editor** or **Admin**. Viewer accounts can sign in to [EventCatalog Cloud](https://eventcatalog.cloud), but they cannot open a local editor session.
35
+
36
+ ## Preview is unavailable
37
+
38
+ Preview links require a local EventCatalog development server.
39
+
40
+ Start EventCatalog:
41
+
42
+ ```bash
43
+ npm run dev
44
+ ```
45
+
46
+ Then restart the editor. If your catalog runs on a different port, pass it with `--eventcatalog-port`.
47
+
48
+ ## Changes are not shown
49
+
50
+ The Changes page uses Git. Check that:
51
+
52
+ - Your catalog is inside a Git repository
53
+ - Git is installed
54
+ - The files have actually changed on disk
55
+
56
+ You can also check from a terminal:
57
+
58
+ ```bash
59
+ git status
60
+ ```
61
+
62
+ ## A save reports a conflict
63
+
64
+ A conflict means the file changed on disk after the editor loaded it.
65
+
66
+ Reload the resource, review the external change, and apply your edit again.
67
+
68
+ ## A visual field is missing
69
+
70
+ The beta editor does not expose every possible EventCatalog field as a form yet.
71
+
72
+ Use source mode to edit unsupported frontmatter or MDX directly.
73
+
74
+ ## Get help
75
+
76
+ Join the [EventCatalog Discord](https://eventcatalog.dev/discord) or [open an issue in the editor repository](https://github.com/event-catalog/eventcatalog-editor-code/issues).
@@ -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.39.4";
117
+ var version = "3.39.6";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -13,8 +13,8 @@ import {
13
13
  } from "./chunk-K3ZVEX2Y.js";
14
14
  import {
15
15
  log_build_default
16
- } from "./chunk-O2CZERUN.js";
17
- import "./chunk-ONQOIF2X.js";
16
+ } from "./chunk-MQAZ4LXP.js";
17
+ import "./chunk-ORVOST63.js";
18
18
  import "./chunk-4UVFXLPI.js";
19
19
  import {
20
20
  catalogToAstro
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-ULZYHF3V.js";
29
29
  import {
30
30
  generate
31
- } from "./chunk-PVOVC2UV.js";
31
+ } from "./chunk-LEUIMTEQ.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-NSR4DZXS.js";
34
+ } from "./chunk-4OSFLWLG.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-WLUQZCIH.js";
37
+ } from "./chunk-IKZ5ITXP.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  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.39.4";
81
+ var version = "3.39.6";
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-PVOVC2UV.js";
4
- import "./chunk-NSR4DZXS.js";
5
- import "./chunk-WLUQZCIH.js";
3
+ } from "./chunk-LEUIMTEQ.js";
4
+ import "./chunk-4OSFLWLG.js";
5
+ import "./chunk-IKZ5ITXP.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.39.4";
39
+ var version = "3.39.6";
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-NSR4DZXS.js";
4
- import "../chunk-WLUQZCIH.js";
3
+ } from "../chunk-4OSFLWLG.js";
4
+ import "../chunk-IKZ5ITXP.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -0,0 +1,50 @@
1
+ ---
2
+ import { getBadgeHref, getBadgeStyle } from '@utils/badge-styles';
3
+ import { ArrowTopRightOnSquareIcon } from '@heroicons/react/20/solid';
4
+
5
+ type Badge = {
6
+ id?: string;
7
+ content: string;
8
+ backgroundColor?: string;
9
+ textColor?: string;
10
+ icon?: any;
11
+ iconComponent?: any;
12
+ iconURL?: string;
13
+ class?: string;
14
+ url?: string;
15
+ };
16
+
17
+ type Props = {
18
+ badge: Badge;
19
+ className?: string;
20
+ };
21
+
22
+ const { badge, className = '' } = Astro.props;
23
+ const href = getBadgeHref(badge);
24
+ const Icon = badge.icon || badge.iconComponent;
25
+ const classes = `
26
+ inline-flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium
27
+ ${badge.backgroundColor ? 'bg-[rgb(var(--ec-content-hover))]' : 'bg-transparent'} border border-[rgb(var(--ec-page-border))]
28
+ text-[rgb(var(--ec-page-text))]
29
+ shadow-xs
30
+ ${badge.class ? badge.class : ''}
31
+ ${className}
32
+ `;
33
+ ---
34
+
35
+ {
36
+ href ? (
37
+ <a id={badge.id || undefined} href={href} class={classes} style={getBadgeStyle(badge)} title={badge.content}>
38
+ {Icon && <Icon className="w-4 h-4 flex-shrink-0" />}
39
+ {badge.iconURL && <img src={badge.iconURL} class="w-4 h-4 flex-shrink-0 opacity-80" alt="" />}
40
+ <span>{badge.content}</span>
41
+ <ArrowTopRightOnSquareIcon className="w-3.5 h-3.5 flex-shrink-0 opacity-70" aria-hidden="true" />
42
+ </a>
43
+ ) : (
44
+ <span id={badge.id || undefined} class={classes} style={getBadgeStyle(badge)} title={badge.content}>
45
+ {Icon && <Icon className="w-4 h-4 flex-shrink-0" />}
46
+ {badge.iconURL && <img src={badge.iconURL} class="w-4 h-4 flex-shrink-0 opacity-80" alt="" />}
47
+ <span>{badge.content}</span>
48
+ </span>
49
+ )
50
+ }
@@ -52,6 +52,7 @@ export interface DiscoverTableData {
52
52
  content: string;
53
53
  backgroundColor?: string;
54
54
  textColor?: string;
55
+ url?: string;
55
56
  }>;
56
57
  producers?: Array<any>;
57
58
  consumers?: Array<any>;