@eventcatalog/core 4.7.8 → 4.7.10
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-ATTSNDSU.js → chunk-2Q7A4ART.js} +1 -1
- package/dist/{chunk-ZONBICNH.js → chunk-6U72KINX.js} +6 -1
- package/dist/{chunk-CAJUIMDJ.js → chunk-KLOHNCNF.js} +2 -1
- package/dist/{chunk-UMO3FJ6E.js → chunk-LCQSBYAQ.js} +1 -1
- package/dist/{chunk-HUEBZBWV.js → chunk-LNLKRSBC.js} +1 -1
- package/dist/{chunk-BPE7XT3R.js → chunk-LO3RBPLT.js} +1 -1
- package/dist/{chunk-FLFNI2YB.js → chunk-S3YIRWUX.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +9 -3
- package/dist/eventcatalog.js +7 -7
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/search-indexer.cjs +6 -1
- package/dist/search-indexer.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/watcher.cjs +2 -1
- package/dist/watcher.js +1 -1
- package/eventcatalog/src/styles/theme.css +10 -0
- package/package.json +3 -3
|
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
140
140
|
var import_os = __toESM(require("os"), 1);
|
|
141
141
|
|
|
142
142
|
// package.json
|
|
143
|
-
var version = "4.7.
|
|
143
|
+
var version = "4.7.10";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LCQSBYAQ.js";
|
|
4
|
+
import "../chunk-LNLKRSBC.js";
|
|
5
5
|
import "../chunk-K2XIENVT.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-S3YIRWUX.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -51,6 +51,10 @@ var valueToSearchText = (value) => {
|
|
|
51
51
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
52
52
|
return "";
|
|
53
53
|
};
|
|
54
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
55
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
56
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
57
|
+
};
|
|
54
58
|
var markdownToSearchText = (content) => {
|
|
55
59
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
56
60
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -242,7 +246,8 @@ var collectSearchRecords = async ({
|
|
|
242
246
|
date: parsed.data.date,
|
|
243
247
|
decisionMakers: parsed.data.decisionMakers,
|
|
244
248
|
appliesTo: parsed.data.appliesTo,
|
|
245
|
-
badges: parsed.data.badges
|
|
249
|
+
badges: parsed.data.badges,
|
|
250
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
246
251
|
});
|
|
247
252
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
248
253
|
if (!content.trim()) {
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
import watcher from "@parcel/watcher";
|
|
7
7
|
import fs from "fs";
|
|
8
8
|
import { rimrafSync } from "rimraf";
|
|
9
|
+
var toPosixPath = (p) => p.replace(/\\/g, "/");
|
|
9
10
|
async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
10
11
|
const subscription = await watcher.subscribe(
|
|
11
12
|
projectDirectory,
|
|
@@ -60,7 +61,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
|
60
61
|
callback
|
|
61
62
|
),
|
|
62
63
|
{
|
|
63
|
-
ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
|
|
64
|
+
ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
67
|
return () => subscription.unsubscribe();
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
144
144
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
145
145
|
|
|
146
146
|
// package.json
|
|
147
|
-
var version = "4.7.
|
|
147
|
+
var version = "4.7.10";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -564,6 +564,7 @@ function getRelativeTargetPath(filePath) {
|
|
|
564
564
|
|
|
565
565
|
// src/watcher.js
|
|
566
566
|
var import_rimraf = require("rimraf");
|
|
567
|
+
var toPosixPath = (p) => p.replace(/\\/g, "/");
|
|
567
568
|
async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
568
569
|
const subscription = await import_watcher.default.subscribe(
|
|
569
570
|
projectDirectory,
|
|
@@ -618,7 +619,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
|
618
619
|
callback
|
|
619
620
|
),
|
|
620
621
|
{
|
|
621
|
-
ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
|
|
622
|
+
ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
|
|
622
623
|
}
|
|
623
624
|
);
|
|
624
625
|
return () => subscription.unsubscribe();
|
|
@@ -1568,6 +1569,10 @@ var valueToSearchText = (value) => {
|
|
|
1568
1569
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
1569
1570
|
return "";
|
|
1570
1571
|
};
|
|
1572
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
1573
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
1574
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
1575
|
+
};
|
|
1571
1576
|
var markdownToSearchText = (content) => {
|
|
1572
1577
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
1573
1578
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -1759,7 +1764,8 @@ var collectSearchRecords = async ({
|
|
|
1759
1764
|
date: parsed.data.date,
|
|
1760
1765
|
decisionMakers: parsed.data.decisionMakers,
|
|
1761
1766
|
appliesTo: parsed.data.appliesTo,
|
|
1762
|
-
badges: parsed.data.badges
|
|
1767
|
+
badges: parsed.data.badges,
|
|
1768
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
1763
1769
|
});
|
|
1764
1770
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
1765
1771
|
if (!content.trim()) {
|
package/dist/eventcatalog.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LCQSBYAQ.js";
|
|
8
|
+
import "./chunk-LNLKRSBC.js";
|
|
9
9
|
import "./chunk-K2XIENVT.js";
|
|
10
10
|
import {
|
|
11
11
|
FederationConflictError,
|
|
@@ -31,19 +31,19 @@ import {
|
|
|
31
31
|
} from "./chunk-B7HCX5HM.js";
|
|
32
32
|
import {
|
|
33
33
|
generate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2Q7A4ART.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LO3RBPLT.js";
|
|
38
38
|
import {
|
|
39
39
|
resolve_catalog_dependencies_default
|
|
40
40
|
} from "./chunk-LHR4G2UO.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSearchIndex
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6U72KINX.js";
|
|
44
44
|
import {
|
|
45
45
|
watch
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KLOHNCNF.js";
|
|
47
47
|
import {
|
|
48
48
|
createAstroDevLineFilter,
|
|
49
49
|
createAstroLineFilter
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import "./chunk-W5JQON7Z.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-S3YIRWUX.js";
|
|
58
58
|
import {
|
|
59
59
|
linkCoreNodeModules,
|
|
60
60
|
resolveInstalledCoreNodeModules
|
package/dist/generate.cjs
CHANGED
|
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
108
108
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
|
-
var version = "4.7.
|
|
111
|
+
var version = "4.7.10";
|
|
112
112
|
|
|
113
113
|
// src/constants.ts
|
|
114
114
|
var VERSION = version;
|
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-2Q7A4ART.js";
|
|
4
|
+
import "./chunk-LO3RBPLT.js";
|
|
5
|
+
import "./chunk-S3YIRWUX.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/search-indexer.cjs
CHANGED
|
@@ -87,6 +87,10 @@ var valueToSearchText = (value) => {
|
|
|
87
87
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
88
88
|
return "";
|
|
89
89
|
};
|
|
90
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
91
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
92
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
93
|
+
};
|
|
90
94
|
var markdownToSearchText = (content) => {
|
|
91
95
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
92
96
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -278,7 +282,8 @@ var collectSearchRecords = async ({
|
|
|
278
282
|
date: parsed.data.date,
|
|
279
283
|
decisionMakers: parsed.data.decisionMakers,
|
|
280
284
|
appliesTo: parsed.data.appliesTo,
|
|
281
|
-
badges: parsed.data.badges
|
|
285
|
+
badges: parsed.data.badges,
|
|
286
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
282
287
|
});
|
|
283
288
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
284
289
|
if (!content.trim()) {
|
package/dist/search-indexer.js
CHANGED
package/dist/utils/cli-logger.js
CHANGED
package/dist/watcher.cjs
CHANGED
|
@@ -152,6 +152,7 @@ function getRelativeTargetPath(filePath) {
|
|
|
152
152
|
|
|
153
153
|
// src/watcher.js
|
|
154
154
|
var import_rimraf = require("rimraf");
|
|
155
|
+
var toPosixPath = (p) => p.replace(/\\/g, "/");
|
|
155
156
|
async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
156
157
|
const subscription = await import_watcher.default.subscribe(
|
|
157
158
|
projectDirectory,
|
|
@@ -206,7 +207,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
|
|
|
206
207
|
callback
|
|
207
208
|
),
|
|
208
209
|
{
|
|
209
|
-
ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
|
|
210
|
+
ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
|
|
210
211
|
}
|
|
211
212
|
);
|
|
212
213
|
return () => subscription.unsubscribe();
|
package/dist/watcher.js
CHANGED
|
@@ -336,6 +336,16 @@
|
|
|
336
336
|
--tw-prose-td-borders: rgb(33 38 45); /* #21262d */
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
/*
|
|
340
|
+
* Older generated documentation can contain pill markup with hard-coded
|
|
341
|
+
* light-theme Tailwind colors. Keep that content readable without changing
|
|
342
|
+
* the appearance of other custom prose elements.
|
|
343
|
+
*/
|
|
344
|
+
:root[data-theme="dark"] .prose .rounded-full.text-gray-900.border-gray-300 {
|
|
345
|
+
color: rgb(var(--ec-page-text));
|
|
346
|
+
border-color: rgb(var(--ec-page-border));
|
|
347
|
+
}
|
|
348
|
+
|
|
339
349
|
:root[data-theme="dark"] .prose code {
|
|
340
350
|
background-color: rgb(33 38 45); /* #21262d */
|
|
341
351
|
border-radius: 0.25rem;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "4.7.
|
|
10
|
+
"version": "4.7.10",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
"update-notifier": "^7.3.1",
|
|
120
120
|
"uuid": "^11.1.1",
|
|
121
121
|
"zod": "^4.3.6",
|
|
122
|
-
"@eventcatalog/
|
|
122
|
+
"@eventcatalog/linter": "1.1.14",
|
|
123
123
|
"@eventcatalog/visualiser": "^4.1.3",
|
|
124
|
-
"@eventcatalog/
|
|
124
|
+
"@eventcatalog/sdk": "2.27.4"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@astrojs/check": "^0.9.10",
|