@eventcatalog/core 3.4.1 → 3.4.2
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-IVLW66F7.js → chunk-363MMCIA.js} +1 -1
- package/dist/{chunk-6AW5YJSJ.js → chunk-6TCIKRLP.js} +1 -1
- package/dist/{chunk-SPL7HGIZ.js → chunk-E4RUDCKA.js} +1 -1
- package/dist/{chunk-7CV7NFRY.js → chunk-JKOCGMX6.js} +1 -1
- package/dist/{chunk-56E6QDHD.js → chunk-JMIRAK3A.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/components/SideNav/NestedSideBar/index.tsx +12 -11
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6TCIKRLP.js";
|
|
4
|
+
import "../chunk-363MMCIA.js";
|
|
5
|
+
import "../chunk-JKOCGMX6.js";
|
|
6
6
|
import "../chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
109
109
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
|
-
var version = "3.4.
|
|
112
|
+
var version = "3.4.2";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6TCIKRLP.js";
|
|
10
|
+
import "./chunk-363MMCIA.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
} from "./chunk-5VBIXL6C.js";
|
|
22
22
|
import {
|
|
23
23
|
generate
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JMIRAK3A.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-E4RUDCKA.js";
|
|
28
28
|
import {
|
|
29
29
|
VERSION
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JKOCGMX6.js";
|
|
31
31
|
import "./chunk-UPONRQSN.js";
|
|
32
32
|
|
|
33
33
|
// src/eventcatalog.ts
|
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-JMIRAK3A.js";
|
|
4
|
+
import "./chunk-E4RUDCKA.js";
|
|
5
|
+
import "./chunk-JKOCGMX6.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -469,6 +469,18 @@ export default function NestedSideBar() {
|
|
|
469
469
|
};
|
|
470
470
|
}, [isInitialized, findAndNavigateToUrl, currentPath]);
|
|
471
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Check if a node is favorited
|
|
474
|
+
* Note: This hook must be defined before any early returns to comply with Rules of Hooks
|
|
475
|
+
*/
|
|
476
|
+
const isFavorited = useCallback(
|
|
477
|
+
(nodeKey: string | null): boolean => {
|
|
478
|
+
if (!nodeKey) return false;
|
|
479
|
+
return favorites.some((fav) => fav.nodeKey === nodeKey);
|
|
480
|
+
},
|
|
481
|
+
[favorites]
|
|
482
|
+
);
|
|
483
|
+
|
|
472
484
|
// Show loading state if no data yet
|
|
473
485
|
if (!data || roots.length === 0) {
|
|
474
486
|
return (
|
|
@@ -583,17 +595,6 @@ export default function NestedSideBar() {
|
|
|
583
595
|
}
|
|
584
596
|
};
|
|
585
597
|
|
|
586
|
-
/**
|
|
587
|
-
* Check if a node is favorited
|
|
588
|
-
*/
|
|
589
|
-
const isFavorited = useCallback(
|
|
590
|
-
(nodeKey: string | null): boolean => {
|
|
591
|
-
if (!nodeKey) return false;
|
|
592
|
-
return favorites.some((fav) => fav.nodeKey === nodeKey);
|
|
593
|
-
},
|
|
594
|
-
[favorites]
|
|
595
|
-
);
|
|
596
|
-
|
|
597
598
|
/**
|
|
598
599
|
* Toggle favorite status for a node
|
|
599
600
|
*/
|