@eventcatalog/core 2.21.2 → 2.21.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/catalog-to-astro-content-directory.js +2 -2
- package/dist/{chunk-IZQ5RLJU.js → chunk-LF6C2UBE.js} +1 -1
- package/dist/{chunk-IVTWUNVW.js → chunk-N4Q2I3OP.js} +1 -1
- package/dist/chunk-XMDPVKIJ.js +48 -0
- package/dist/{chunk-WS3IUCJN.js → chunk-Y3RLX2GF.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +69 -12
- package/dist/eventcatalog.js +32 -19
- package/dist/features.cjs +82 -0
- package/dist/features.d.cts +3 -0
- package/dist/features.d.ts +3 -0
- package/dist/features.js +6 -0
- package/dist/watcher.js +2 -2
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +25 -1
- package/package.json +1 -1
- package/dist/{chunk-WF34R5UT.js → chunk-CXKIF3EI.js} +3 -3
- package/dist/{chunk-FSKZU5FH.js → chunk-OW2FQPYP.js} +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-N4Q2I3OP.js";
|
|
4
|
+
import "../chunk-Y3RLX2GF.js";
|
|
5
|
+
import "../chunk-LF6C2UBE.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/features.ts
|
|
2
|
+
import boxen from "boxen";
|
|
3
|
+
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
4
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
5
|
+
if (!LICENSE_KEY) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
const response = await fetch("https://api.eventcatalog.cloud/functions/v1/license", {
|
|
9
|
+
method: "POST",
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: `Bearer ${LICENSE_KEY}`,
|
|
12
|
+
"Content-Type": "application/json"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
if (response.status !== 200) {
|
|
16
|
+
console.log(
|
|
17
|
+
"\nTried to verify your backstage license but it is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
18
|
+
);
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
if (response.status === 200) {
|
|
22
|
+
const data = await response.json();
|
|
23
|
+
if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
|
|
24
|
+
console.log(
|
|
25
|
+
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
26
|
+
);
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
let message = "Backstage integration is enabled for EventCatalog";
|
|
30
|
+
if (data.is_trial) {
|
|
31
|
+
message += "\nYou are using a trial license for backstage integration.";
|
|
32
|
+
}
|
|
33
|
+
console.log(
|
|
34
|
+
boxen(message, {
|
|
35
|
+
padding: 1,
|
|
36
|
+
margin: 1,
|
|
37
|
+
borderColor: "green",
|
|
38
|
+
title: "@eventcatalog/backstage-plugin-eventcatalog",
|
|
39
|
+
titleAlignment: "center"
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return true;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
isBackstagePluginEnabled
|
|
48
|
+
};
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
161
161
|
var import_os = __toESM(require("os"), 1);
|
|
162
162
|
|
|
163
163
|
// package.json
|
|
164
|
-
var version = "2.21.
|
|
164
|
+
var version = "2.21.3";
|
|
165
165
|
|
|
166
166
|
// src/constants.ts
|
|
167
167
|
var VERSION = version;
|
|
@@ -514,7 +514,54 @@ var resolve_catalog_dependencies_default = async (catalogDir, core2) => {
|
|
|
514
514
|
|
|
515
515
|
// src/eventcatalog.ts
|
|
516
516
|
var import_semver = __toESM(require("semver"), 1);
|
|
517
|
+
var import_boxen2 = __toESM(require("boxen"), 1);
|
|
518
|
+
|
|
519
|
+
// src/features.ts
|
|
517
520
|
var import_boxen = __toESM(require("boxen"), 1);
|
|
521
|
+
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
522
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
523
|
+
if (!LICENSE_KEY) {
|
|
524
|
+
return false;
|
|
525
|
+
}
|
|
526
|
+
const response = await fetch("https://api.eventcatalog.cloud/functions/v1/license", {
|
|
527
|
+
method: "POST",
|
|
528
|
+
headers: {
|
|
529
|
+
Authorization: `Bearer ${LICENSE_KEY}`,
|
|
530
|
+
"Content-Type": "application/json"
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
if (response.status !== 200) {
|
|
534
|
+
console.log(
|
|
535
|
+
"\nTried to verify your backstage license but it is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
536
|
+
);
|
|
537
|
+
return false;
|
|
538
|
+
}
|
|
539
|
+
if (response.status === 200) {
|
|
540
|
+
const data = await response.json();
|
|
541
|
+
if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
|
|
542
|
+
console.log(
|
|
543
|
+
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
544
|
+
);
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
let message = "Backstage integration is enabled for EventCatalog";
|
|
548
|
+
if (data.is_trial) {
|
|
549
|
+
message += "\nYou are using a trial license for backstage integration.";
|
|
550
|
+
}
|
|
551
|
+
console.log(
|
|
552
|
+
(0, import_boxen.default)(message, {
|
|
553
|
+
padding: 1,
|
|
554
|
+
margin: 1,
|
|
555
|
+
borderColor: "green",
|
|
556
|
+
title: "@eventcatalog/backstage-plugin-eventcatalog",
|
|
557
|
+
titleAlignment: "center"
|
|
558
|
+
})
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
return true;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
// src/eventcatalog.ts
|
|
518
565
|
var boxenOptions = {
|
|
519
566
|
padding: 1,
|
|
520
567
|
margin: 1,
|
|
@@ -565,7 +612,7 @@ var checkForUpdate = () => {
|
|
|
565
612
|
const coreVersion = corePackageJson.version;
|
|
566
613
|
const userVersion = userEventCatalogVersion.replace(/[\^~]/, "");
|
|
567
614
|
if (import_semver.default.lt(userVersion, coreVersion)) {
|
|
568
|
-
const docusaurusUpdateMessage = (0,
|
|
615
|
+
const docusaurusUpdateMessage = (0, import_boxen2.default)(
|
|
569
616
|
`Update available for EventCatalog
|
|
570
617
|
@eventcatalog/core ${userVersion} \u2192 ${coreVersion}
|
|
571
618
|
|
|
@@ -591,6 +638,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
|
|
|
591
638
|
console.log("EventCatalog is starting at http://localhost:3000/docs");
|
|
592
639
|
await resolve_catalog_dependencies_default(dir, core);
|
|
593
640
|
await catalogToAstro(dir, core);
|
|
641
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
594
642
|
let watchUnsub;
|
|
595
643
|
try {
|
|
596
644
|
watchUnsub = await watch(dir, core);
|
|
@@ -601,7 +649,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
|
|
|
601
649
|
cwd: core,
|
|
602
650
|
env: {
|
|
603
651
|
PROJECT_DIR: dir,
|
|
604
|
-
CATALOG_DIR: core
|
|
652
|
+
CATALOG_DIR: core,
|
|
653
|
+
ENABLE_EMBED: canEmbedPages
|
|
605
654
|
}
|
|
606
655
|
}
|
|
607
656
|
]);
|
|
@@ -619,16 +668,24 @@ program.command("build").description("Run build of EventCatalog").action(async (
|
|
|
619
668
|
await log_build_default(dir);
|
|
620
669
|
await resolve_catalog_dependencies_default(dir, core);
|
|
621
670
|
await catalogToAstro(dir, core);
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
671
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
672
|
+
(0, import_node_child_process.execSync)(
|
|
673
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro build ${command.args.join(" ").trim()}`,
|
|
674
|
+
{
|
|
675
|
+
cwd: core,
|
|
676
|
+
stdio: "inherit"
|
|
677
|
+
}
|
|
678
|
+
);
|
|
626
679
|
});
|
|
627
|
-
var previewCatalog = ({ command }) => {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
680
|
+
var previewCatalog = async ({ command }) => {
|
|
681
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
682
|
+
(0, import_node_child_process.execSync)(
|
|
683
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
|
|
684
|
+
{
|
|
685
|
+
cwd: core,
|
|
686
|
+
stdio: "inherit"
|
|
687
|
+
}
|
|
688
|
+
);
|
|
632
689
|
};
|
|
633
690
|
program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
634
691
|
console.log("Starting preview of your build...");
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolve_catalog_dependencies_default
|
|
3
|
+
} from "./chunk-BLDONK5J.js";
|
|
1
4
|
import {
|
|
2
5
|
watch
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OW2FQPYP.js";
|
|
4
7
|
import {
|
|
5
8
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-N4Q2I3OP.js";
|
|
10
|
+
import "./chunk-Y3RLX2GF.js";
|
|
8
11
|
import {
|
|
9
12
|
catalogToAstro
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CXKIF3EI.js";
|
|
11
14
|
import {
|
|
12
15
|
VERSION
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LF6C2UBE.js";
|
|
17
|
+
import {
|
|
18
|
+
isBackstagePluginEnabled
|
|
19
|
+
} from "./chunk-XMDPVKIJ.js";
|
|
14
20
|
import {
|
|
15
21
|
generate
|
|
16
22
|
} from "./chunk-YEQVKHST.js";
|
|
17
|
-
import "./chunk-7JDTB3U5.js";
|
|
18
|
-
import {
|
|
19
|
-
resolve_catalog_dependencies_default
|
|
20
|
-
} from "./chunk-BLDONK5J.js";
|
|
21
23
|
import "./chunk-E7TXTI7G.js";
|
|
24
|
+
import "./chunk-7JDTB3U5.js";
|
|
22
25
|
|
|
23
26
|
// src/eventcatalog.ts
|
|
24
27
|
import { Command } from "commander";
|
|
@@ -106,6 +109,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
|
|
|
106
109
|
console.log("EventCatalog is starting at http://localhost:3000/docs");
|
|
107
110
|
await resolve_catalog_dependencies_default(dir, core);
|
|
108
111
|
await catalogToAstro(dir, core);
|
|
112
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
109
113
|
let watchUnsub;
|
|
110
114
|
try {
|
|
111
115
|
watchUnsub = await watch(dir, core);
|
|
@@ -116,7 +120,8 @@ program.command("dev").description("Run development server of EventCatalog").opt
|
|
|
116
120
|
cwd: core,
|
|
117
121
|
env: {
|
|
118
122
|
PROJECT_DIR: dir,
|
|
119
|
-
CATALOG_DIR: core
|
|
123
|
+
CATALOG_DIR: core,
|
|
124
|
+
ENABLE_EMBED: canEmbedPages
|
|
120
125
|
}
|
|
121
126
|
}
|
|
122
127
|
]);
|
|
@@ -134,16 +139,24 @@ program.command("build").description("Run build of EventCatalog").action(async (
|
|
|
134
139
|
await log_build_default(dir);
|
|
135
140
|
await resolve_catalog_dependencies_default(dir, core);
|
|
136
141
|
await catalogToAstro(dir, core);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
143
|
+
execSync(
|
|
144
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro build ${command.args.join(" ").trim()}`,
|
|
145
|
+
{
|
|
146
|
+
cwd: core,
|
|
147
|
+
stdio: "inherit"
|
|
148
|
+
}
|
|
149
|
+
);
|
|
141
150
|
});
|
|
142
|
-
var previewCatalog = ({ command }) => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
151
|
+
var previewCatalog = async ({ command }) => {
|
|
152
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
153
|
+
execSync(
|
|
154
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
|
|
155
|
+
{
|
|
156
|
+
cwd: core,
|
|
157
|
+
stdio: "inherit"
|
|
158
|
+
}
|
|
159
|
+
);
|
|
147
160
|
};
|
|
148
161
|
program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
149
162
|
console.log("Starting preview of your build...");
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/features.ts
|
|
31
|
+
var features_exports = {};
|
|
32
|
+
__export(features_exports, {
|
|
33
|
+
isBackstagePluginEnabled: () => isBackstagePluginEnabled
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(features_exports);
|
|
36
|
+
var import_boxen = __toESM(require("boxen"), 1);
|
|
37
|
+
var isBackstagePluginEnabled = async (licenseKey) => {
|
|
38
|
+
const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
|
|
39
|
+
if (!LICENSE_KEY) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
const response = await fetch("https://api.eventcatalog.cloud/functions/v1/license", {
|
|
43
|
+
method: "POST",
|
|
44
|
+
headers: {
|
|
45
|
+
Authorization: `Bearer ${LICENSE_KEY}`,
|
|
46
|
+
"Content-Type": "application/json"
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
if (response.status !== 200) {
|
|
50
|
+
console.log(
|
|
51
|
+
"\nTried to verify your backstage license but it is not valid. Please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
52
|
+
);
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (response.status === 200) {
|
|
56
|
+
const data = await response.json();
|
|
57
|
+
if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
|
|
58
|
+
console.log(
|
|
59
|
+
"\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
|
|
60
|
+
);
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
let message = "Backstage integration is enabled for EventCatalog";
|
|
64
|
+
if (data.is_trial) {
|
|
65
|
+
message += "\nYou are using a trial license for backstage integration.";
|
|
66
|
+
}
|
|
67
|
+
console.log(
|
|
68
|
+
(0, import_boxen.default)(message, {
|
|
69
|
+
padding: 1,
|
|
70
|
+
margin: 1,
|
|
71
|
+
borderColor: "green",
|
|
72
|
+
title: "@eventcatalog/backstage-plugin-eventcatalog",
|
|
73
|
+
titleAlignment: "center"
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return true;
|
|
78
|
+
};
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
isBackstagePluginEnabled
|
|
82
|
+
});
|
package/dist/features.js
ADDED
package/dist/watcher.js
CHANGED
|
@@ -142,6 +142,8 @@ const currentNavigationItem = navigationItems.find((item) => item.current);
|
|
|
142
142
|
const { title, description, sidebar: showSideBarOverride } = Astro.props;
|
|
143
143
|
|
|
144
144
|
const showSideBarOnLoad = currentNavigationItem?.sidebar;
|
|
145
|
+
|
|
146
|
+
const canPageBeEmbedded = process.env.ENABLE_EMBED === 'true';
|
|
145
147
|
---
|
|
146
148
|
|
|
147
149
|
<!doctype html>
|
|
@@ -209,10 +211,26 @@ const showSideBarOnLoad = currentNavigationItem?.sidebar;
|
|
|
209
211
|
>
|
|
210
212
|
<slot />
|
|
211
213
|
</main>
|
|
214
|
+
|
|
215
|
+
<!-- Creae a overlay that tells people to purchase backstage plugin if they want to embed the page -->
|
|
216
|
+
<div class="absolute inset-0 bg-black items-center justify-center z-50 hidden" id="embed-overlay">
|
|
217
|
+
<div class="text-white text-center space-y-4">
|
|
218
|
+
<div>
|
|
219
|
+
<h1 class="text-2xl font-bold">EventCatalog Backstage Integration</h1>
|
|
220
|
+
<p class="text-md text-red-500">Missing license key for backstage integration.</p>
|
|
221
|
+
</div>
|
|
222
|
+
<div>
|
|
223
|
+
<p class="text-sm text-gray-500">Please configure the backstage plugin to embed this page into Backstage.</p>
|
|
224
|
+
<a href="https://www.eventcatalog.dev/integrations/backstage" class="text-blue-500 text-xs"
|
|
225
|
+
>Configure backstage plugin →</a
|
|
226
|
+
>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
212
230
|
</div>
|
|
213
231
|
</body>
|
|
214
232
|
</html>
|
|
215
|
-
<script define:vars={{ navigationItems, currentNavigationItem, showSideBarOnLoad }}>
|
|
233
|
+
<script define:vars={{ navigationItems, currentNavigationItem, showSideBarOnLoad, canPageBeEmbedded }}>
|
|
216
234
|
// Listen for Astro transititions
|
|
217
235
|
document.addEventListener('astro:page-load', () => {
|
|
218
236
|
document.dispatchEvent(new CustomEvent('contentLoaded'));
|
|
@@ -230,6 +248,12 @@ const showSideBarOnLoad = currentNavigationItem?.sidebar;
|
|
|
230
248
|
const embeded = params.embed === 'true' ? true : false;
|
|
231
249
|
const content = document.getElementById('content');
|
|
232
250
|
|
|
251
|
+
if (embeded && !canPageBeEmbedded) {
|
|
252
|
+
const overlay = document.getElementById('embed-overlay');
|
|
253
|
+
overlay.style.display = 'flex';
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
|
|
233
257
|
if (embeded) {
|
|
234
258
|
const elementsToHide = [
|
|
235
259
|
'eventcatalog-vertical-nav',
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mapCatalogToAstro
|
|
3
|
-
} from "./chunk-7JDTB3U5.js";
|
|
4
1
|
import {
|
|
5
2
|
addPropertyToFrontMatter,
|
|
6
3
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
7
4
|
} from "./chunk-E7TXTI7G.js";
|
|
5
|
+
import {
|
|
6
|
+
mapCatalogToAstro
|
|
7
|
+
} from "./chunk-7JDTB3U5.js";
|
|
8
8
|
|
|
9
9
|
// src/catalog-to-astro-content-directory.js
|
|
10
10
|
import { glob } from "glob";
|