@eventcatalog/core 3.31.2 → 3.31.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-IPGFRHRL.js → chunk-4BGFG4MW.js} +1 -1
- package/dist/{chunk-7FECQ5B3.js → chunk-INJR34TF.js} +1 -1
- package/dist/{chunk-DL3PF5MS.js → chunk-VH65Q3HT.js} +1 -1
- package/dist/{chunk-5VANHNV3.js → chunk-VZ53X73K.js} +1 -1
- package/dist/{chunk-UOKUSIKW.js → chunk-ZB4D3AZB.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +34 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4BGFG4MW.js";
|
|
4
|
+
import "../chunk-VH65Q3HT.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZB4D3AZB.js";
|
|
7
7
|
import "../chunk-5T63CXKU.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.31.
|
|
117
|
+
var version = "3.31.3";
|
|
118
118
|
|
|
119
119
|
// src/constants.ts
|
|
120
120
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-K3ZVEX2Y.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4BGFG4MW.js";
|
|
10
|
+
import "./chunk-VH65Q3HT.js";
|
|
11
11
|
import "./chunk-4UVFXLPI.js";
|
|
12
12
|
import {
|
|
13
13
|
runMigrations
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-3KXCGYET.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-INJR34TF.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VZ53X73K.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZB4D3AZB.js";
|
|
32
32
|
import {
|
|
33
33
|
getEventCatalogConfigFile,
|
|
34
34
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-INJR34TF.js";
|
|
4
|
+
import "./chunk-VZ53X73K.js";
|
|
5
|
+
import "./chunk-ZB4D3AZB.js";
|
|
6
6
|
import "./chunk-5T63CXKU.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -272,6 +272,20 @@ const nodeGraphPropsForPage = nodeGraphs.find((nodeGraph: any) => nodeGraph.id =
|
|
|
272
272
|
|
|
273
273
|
const shouldRenderVersionList =
|
|
274
274
|
shouldRenderSideBarSection(props, 'versions') && props.data.versions && props.data.versions.length > 1;
|
|
275
|
+
const httpOperation =
|
|
276
|
+
['commands', 'queries'].includes(props.collection) && props.data.operation?.path ? props.data.operation : undefined;
|
|
277
|
+
const httpMethodColors: Record<string, { background: string; color: string }> = {
|
|
278
|
+
GET: { background: 'rgba(34,197,94,0.15)', color: '#22c55e' },
|
|
279
|
+
POST: { background: 'rgba(59,130,246,0.15)', color: '#3b82f6' },
|
|
280
|
+
PUT: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
|
|
281
|
+
PATCH: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
|
|
282
|
+
DELETE: { background: 'rgba(239,68,68,0.15)', color: '#ef4444' },
|
|
283
|
+
OPTIONS: { background: 'rgba(139,92,246,0.15)', color: '#8b5cf6' },
|
|
284
|
+
HEAD: { background: 'rgba(107,114,128,0.15)', color: '#6b7280' },
|
|
285
|
+
};
|
|
286
|
+
const httpMethodStyle = httpOperation?.method
|
|
287
|
+
? httpMethodColors[httpOperation.method.toUpperCase()] || { background: '#6b7280', color: '#ffffff' }
|
|
288
|
+
: undefined;
|
|
275
289
|
|
|
276
290
|
// This will render the graph for this page
|
|
277
291
|
nodeGraphs.push({
|
|
@@ -343,6 +357,26 @@ nodeGraphs.push({
|
|
|
343
357
|
</div>
|
|
344
358
|
|
|
345
359
|
<h2 class="text-base pt-4 text-[rgb(var(--ec-page-text-muted))] font-light">{props.data.summary}</h2>
|
|
360
|
+
{
|
|
361
|
+
httpOperation && (
|
|
362
|
+
<div class="pt-4">
|
|
363
|
+
<div
|
|
364
|
+
class="inline-flex max-w-full items-start gap-2 rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-content-hover))] px-3 py-2 text-sm text-[rgb(var(--ec-page-text))]"
|
|
365
|
+
aria-label="HTTP path"
|
|
366
|
+
>
|
|
367
|
+
{httpOperation.method && (
|
|
368
|
+
<span
|
|
369
|
+
class="mt-0.5 shrink-0 rounded-md px-2 py-0.5 font-mono text-xs font-semibold"
|
|
370
|
+
style={`background: ${httpMethodStyle?.background}; color: ${httpMethodStyle?.color};`}
|
|
371
|
+
>
|
|
372
|
+
{httpOperation.method}
|
|
373
|
+
</span>
|
|
374
|
+
)}
|
|
375
|
+
<code class="break-all font-mono text-[rgb(var(--ec-page-text))]">{httpOperation.path}</code>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
)
|
|
379
|
+
}
|
|
346
380
|
{
|
|
347
381
|
badges && (
|
|
348
382
|
<div class="flex flex-wrap gap-3 pt-6 pb-2">
|