@eventcatalog/core 2.35.8 → 2.35.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/catalog-to-astro-content-directory.cjs +3 -0
- package/dist/catalog-to-astro-content-directory.js +1 -1
- package/dist/{chunk-RAHESCX4.js → chunk-APUSQIXG.js} +1 -1
- package/dist/{chunk-3LCAKJ2U.js → chunk-BLST6HNF.js} +1 -1
- package/dist/{chunk-5ZG43YD2.js → chunk-SLEMYHTU.js} +3 -0
- package/dist/{chunk-AS3INH2X.js → chunk-X5PED26N.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +4 -1
- package/dist/eventcatalog.js +4 -4
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +5 -0
- package/eventcatalog/src/utils/badges.tsx +22 -0
- package/package.json +1 -1
- package/eventcatalog/src/utils/badges.ts +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-X5PED26N.js";
|
|
4
|
+
import "../chunk-APUSQIXG.js";
|
|
5
|
+
import "../chunk-BLST6HNF.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -221,6 +221,9 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
221
221
|
if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
|
|
222
222
|
import_fs.default.mkdirSync(astroContentDir);
|
|
223
223
|
await verifyRequiredFieldsAreInCatalogConfigFile(source);
|
|
224
|
+
if (!import_fs.default.existsSync(path3.join(source, "eventcatalog.styles.css"))) {
|
|
225
|
+
import_fs.default.writeFileSync(path3.join(source, "eventcatalog.styles.css"), "");
|
|
226
|
+
}
|
|
224
227
|
await copyFiles(source, astroDir);
|
|
225
228
|
};
|
|
226
229
|
var checkAndConvertMdToMdx = async (source, astroDir) => {
|
|
@@ -38,6 +38,9 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
38
38
|
if (fs.existsSync(astroContentDir)) fs.rmSync(astroContentDir, { recursive: true });
|
|
39
39
|
fs.mkdirSync(astroContentDir);
|
|
40
40
|
await verifyRequiredFieldsAreInCatalogConfigFile(source);
|
|
41
|
+
if (!fs.existsSync(path.join(source, "eventcatalog.styles.css"))) {
|
|
42
|
+
fs.writeFileSync(path.join(source, "eventcatalog.styles.css"), "");
|
|
43
|
+
}
|
|
41
44
|
await copyFiles(source, astroDir);
|
|
42
45
|
};
|
|
43
46
|
var checkAndConvertMdToMdx = async (source, astroDir) => {
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
157
157
|
var import_os = __toESM(require("os"), 1);
|
|
158
158
|
|
|
159
159
|
// package.json
|
|
160
|
-
var version = "2.35.
|
|
160
|
+
var version = "2.35.10";
|
|
161
161
|
|
|
162
162
|
// src/constants.ts
|
|
163
163
|
var VERSION = version;
|
|
@@ -412,6 +412,9 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
412
412
|
if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
|
|
413
413
|
import_fs.default.mkdirSync(astroContentDir);
|
|
414
414
|
await verifyRequiredFieldsAreInCatalogConfigFile(source);
|
|
415
|
+
if (!import_fs.default.existsSync(path5.join(source, "eventcatalog.styles.css"))) {
|
|
416
|
+
import_fs.default.writeFileSync(path5.join(source, "eventcatalog.styles.css"), "");
|
|
417
|
+
}
|
|
415
418
|
await copyFiles(source, astroDir);
|
|
416
419
|
};
|
|
417
420
|
var checkAndConvertMdToMdx = async (source, astroDir) => {
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-X5PED26N.js";
|
|
10
|
+
import "./chunk-APUSQIXG.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SLEMYHTU.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BLST6HNF.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -45,6 +45,11 @@ const customDocs = await getCollection('customPages');
|
|
|
45
45
|
|
|
46
46
|
import { isEventCatalogUpgradeEnabled } from '@utils/feature';
|
|
47
47
|
|
|
48
|
+
// Try and load any custom styles if they exist
|
|
49
|
+
try {
|
|
50
|
+
await import('../../eventcatalog.styles.css');
|
|
51
|
+
} catch (error) {}
|
|
52
|
+
|
|
48
53
|
const currentPath = Astro.url.pathname;
|
|
49
54
|
|
|
50
55
|
const catalogHasDefaultLandingPageForDocs = await hasLandingPageForDocs();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as HeroIcons from '@heroicons/react/24/outline';
|
|
2
|
+
import * as ProtocolIcons from '@icons/protocols';
|
|
3
|
+
|
|
4
|
+
// const allIcons = [...HeroIcons, ...ProtocolIcons];
|
|
5
|
+
|
|
6
|
+
const protocolIcons = Object.keys(ProtocolIcons).reduce(
|
|
7
|
+
(icons, key) => {
|
|
8
|
+
const iconKey = key as keyof typeof ProtocolIcons;
|
|
9
|
+
icons[key.toLowerCase()] = ProtocolIcons[iconKey];
|
|
10
|
+
return icons;
|
|
11
|
+
},
|
|
12
|
+
{} as { [key: string]: string }
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const getIconForProtocol = (icon: keyof typeof protocolIcons) => {
|
|
16
|
+
const Icon = protocolIcons[icon];
|
|
17
|
+
return Icon ? (props: any) => <span {...props} dangerouslySetInnerHTML={{ __html: Icon }} /> : null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export function getIcon(iconName: string) {
|
|
21
|
+
return getIconForProtocol(iconName as keyof typeof protocolIcons) || HeroIcons[iconName as keyof typeof HeroIcons] || null;
|
|
22
|
+
}
|
package/package.json
CHANGED