@eventcatalog/core 2.6.0 → 2.6.1

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,11 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4aecf6a: fix(core): fixed broken images for specifications on the service page
8
+
3
9
  ## 2.6.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
3
  "type": "module",
4
- "version": "2.6.0",
4
+ "version": "2.6.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -21,7 +21,7 @@ const numberOfSpecifications = Object.keys(specVersions).length;
21
21
  href={buildUrl(`/docs/${collectionItem.collection}/${collectionItem.data.id}/${collectionItem.data.version}/spec`)}
22
22
  class="text-sm flex items-center space-x-1 hover:underline hover:text-purple-500"
23
23
  >
24
- <img src="/icons/openapi.svg" class="h-4 w-4" />
24
+ <img src={buildUrl('/icons/openapi.svg')} class="h-4 w-4" />
25
25
  <span>OpenAPI spec</span>
26
26
  </a>
27
27
  )
@@ -32,7 +32,7 @@ const numberOfSpecifications = Object.keys(specVersions).length;
32
32
  href={buildUrl(`/docs/${collectionItem.collection}/${collectionItem.data.id}/${collectionItem.data.version}/asyncapi`)}
33
33
  class="text-sm flex items-center space-x-1 hover:underline hover:text-purple-500"
34
34
  >
35
- <img src="/icons/asyncapi.svg" class="h-4 w-4" />
35
+ <img src={buildUrl('/icons/asyncapi.svg')} class="h-4 w-4" />
36
36
  <span>AsyncAPI spec</span>
37
37
  </a>
38
38
  )
@@ -91,7 +91,7 @@ const getSpecificationBadges = () => {
91
91
  backgroundColor: 'white',
92
92
  textColor: 'gray',
93
93
  content: 'OpenAPI Spec',
94
- iconURL: '/icons/openapi.svg',
94
+ iconURL: buildUrl('/icons/openapi.svg'),
95
95
  class: 'text-black hover:underline',
96
96
  id: 'open-api-badge',
97
97
  url: buildUrl(`/docs/${props.collection}/${props.data.id}/${props.data.version}/spec`),
@@ -103,7 +103,7 @@ const getSpecificationBadges = () => {
103
103
  backgroundColor: 'white',
104
104
  textColor: 'gray',
105
105
  content: 'AsyncAPI Spec',
106
- iconURL: '/icons/asyncapi.svg',
106
+ iconURL: buildUrl('/icons/asyncapi.svg'),
107
107
  class: 'text-black hover:underline',
108
108
  id: 'asyncapi-badge',
109
109
  url: buildUrl(`/docs/${props.collection}/${props.data.id}/${props.data.version}/asyncapi`),