@eventcatalog/visualiser 5.0.0-beta.8 → 5.0.0-beta.9
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/index.js
CHANGED
|
@@ -15508,10 +15508,14 @@ var NodeGraphBuilder = ({
|
|
|
15508
15508
|
(link) => window.location.href.includes(link.url)
|
|
15509
15509
|
)?.url || links[0].url,
|
|
15510
15510
|
onChange: (e) => {
|
|
15511
|
+
const url = links.find(
|
|
15512
|
+
(link) => link.url === e.target.value
|
|
15513
|
+
)?.url;
|
|
15514
|
+
if (!url) return;
|
|
15511
15515
|
if (onNavigate) {
|
|
15512
|
-
onNavigate(
|
|
15516
|
+
onNavigate(url);
|
|
15513
15517
|
} else {
|
|
15514
|
-
window.location.href =
|
|
15518
|
+
window.location.href = url;
|
|
15515
15519
|
}
|
|
15516
15520
|
},
|
|
15517
15521
|
className: "appearance-none pl-7 pr-6 py-0 text-[14px] bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] rounded-md border border-[rgb(var(--ec-page-border))] hover:bg-[rgb(var(--ec-page-border)/0.5)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[rgb(var(--ec-accent))]",
|