@eventcatalog/core 3.0.0-beta.24 → 3.0.0-beta.25
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-7KD4X5PQ.js → chunk-3SWCGDD7.js} +1 -1
- package/dist/{chunk-HQW2RZD2.js → chunk-DFHXF3VF.js} +1 -1
- package/dist/{chunk-ZQX7H4YO.js → chunk-NAW6EPCS.js} +1 -1
- package/dist/{chunk-6A3FVZJI.js → chunk-OJA6CNVO.js} +1 -1
- package/dist/{chunk-4UUGLZEP.js → chunk-RA6AYXGJ.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/Search/SearchDataLoader.astro +25 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/SearchBar.tsx +1 -1
- package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +1 -1
- package/eventcatalog/src/components/SideNav/SideNav.astro +0 -15
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +3 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +1 -1
- package/eventcatalog/src/stores/{sidebar-store.ts → sidebar-store/index.ts} +1 -1
- package/package.json +1 -1
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/container.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/domain.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/flow.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/message.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/service.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/shared.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar/sidebar-builder.ts → stores/sidebar-store/state.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DFHXF3VF.js";
|
|
4
|
+
import "../chunk-OJA6CNVO.js";
|
|
5
|
+
import "../chunk-3SWCGDD7.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.0.0-beta.
|
|
112
|
+
var version = "3.0.0-beta.25";
|
|
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-DFHXF3VF.js";
|
|
10
|
+
import "./chunk-OJA6CNVO.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-5VBIXL6C.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RA6AYXGJ.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NAW6EPCS.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3SWCGDD7.js";
|
|
32
32
|
import "./chunk-UPONRQSN.js";
|
|
33
33
|
|
|
34
34
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
73
73
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
74
74
|
|
|
75
75
|
// package.json
|
|
76
|
-
var version = "3.0.0-beta.
|
|
76
|
+
var version = "3.0.0-beta.25";
|
|
77
77
|
|
|
78
78
|
// src/constants.ts
|
|
79
79
|
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-RA6AYXGJ.js";
|
|
4
|
+
import "./chunk-NAW6EPCS.js";
|
|
5
|
+
import "./chunk-3SWCGDD7.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* SearchDataLoader.astro
|
|
4
|
+
*
|
|
5
|
+
* This component loads the sidebar/search data independently of the sidebar UI.
|
|
6
|
+
* It ensures the search functionality works on all pages, even when the nested
|
|
7
|
+
* sidebar is not rendered (e.g., /discover pages).
|
|
8
|
+
*/
|
|
9
|
+
import { getNestedSideBarData } from '@stores/sidebar-store/state';
|
|
10
|
+
|
|
11
|
+
const props = await getNestedSideBarData();
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<script is:inline define:vars={{ props }}>
|
|
15
|
+
window.sidebarData = props;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import { setSidebarData } from '@stores/sidebar-store';
|
|
20
|
+
|
|
21
|
+
const data = (window as any).sidebarData;
|
|
22
|
+
if (data) {
|
|
23
|
+
setSidebarData(data);
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
ListOrdered,
|
|
18
18
|
ArrowLeftRight,
|
|
19
19
|
} from 'lucide-react';
|
|
20
|
-
import type { NavNode } from '
|
|
20
|
+
import type { NavNode } from '@stores/sidebar-store/state';
|
|
21
21
|
|
|
22
22
|
const cn = (...classes: (string | false | undefined)[]) => classes.filter(Boolean).join(' ');
|
|
23
23
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
4
4
|
import * as LucideIcons from 'lucide-react';
|
|
5
5
|
import { ChevronRight, ChevronLeft, ChevronDown, Home, Star, FileQuestion } from 'lucide-react';
|
|
6
|
-
import type {
|
|
6
|
+
import type { NavNode, ChildRef } from '@stores/sidebar-store/state';
|
|
7
7
|
import SearchBar from './SearchBar';
|
|
8
8
|
import { saveState, loadState, saveCollapsedSections, loadCollapsedSections } from './storage';
|
|
9
9
|
import { useStore } from '@nanostores/react';
|
|
@@ -2,26 +2,11 @@
|
|
|
2
2
|
import type { HTMLAttributes } from 'astro/types';
|
|
3
3
|
|
|
4
4
|
interface Props extends Omit<HTMLAttributes<'div'>, 'children'> {}
|
|
5
|
-
import { getNestedSideBarData } from './NestedSideBar/sidebar-builder';
|
|
6
5
|
import NestedSideBar from './NestedSideBar';
|
|
7
6
|
import { ClientRouter } from 'astro:transitions';
|
|
8
|
-
|
|
9
|
-
const props = await getNestedSideBarData();
|
|
10
7
|
---
|
|
11
8
|
|
|
12
9
|
<div {...Astro.props}>
|
|
13
10
|
<ClientRouter />
|
|
14
11
|
<NestedSideBar client:only="react" />
|
|
15
12
|
</div>
|
|
16
|
-
|
|
17
|
-
<script is:inline define:vars={{ props }}>
|
|
18
|
-
window.sidebarData = props;
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
import { setSidebarData } from '@stores/sidebar-store';
|
|
23
|
-
const data = (window as any).sidebarData;
|
|
24
|
-
if (data) {
|
|
25
|
-
setSidebarData(data);
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
import Header from '../components/Header.astro';
|
|
21
21
|
import SEO from '../components/Seo.astro';
|
|
22
22
|
import SideNav from '../components/SideNav/SideNav.astro';
|
|
23
|
+
import SearchDataLoader from '../components/Search/SearchDataLoader.astro';
|
|
23
24
|
import config from '@config';
|
|
24
25
|
import { getCollection } from 'astro:content';
|
|
25
26
|
import '@fontsource/inter';
|
|
@@ -225,6 +226,8 @@ const canPageBeEmbedded = isEmbedEnabled();
|
|
|
225
226
|
</style>
|
|
226
227
|
</head>
|
|
227
228
|
<body>
|
|
229
|
+
{/* Load search data even when sidebar is hidden */}
|
|
230
|
+
<SearchDataLoader />
|
|
228
231
|
<main id="eventcatalog-application" class="relative">
|
|
229
232
|
<Header />
|
|
230
233
|
<div class="flex">
|
|
@@ -15,7 +15,7 @@ import Admonition from '@components/MDX/Admonition';
|
|
|
15
15
|
import VersionList from '@components/Lists/VersionList.astro';
|
|
16
16
|
import CopyAsMarkdown from '@components/CopyAsMarkdown';
|
|
17
17
|
import FavoriteButton from '@components/FavoriteButton';
|
|
18
|
-
import { shouldRenderSideBarSection } from '@
|
|
18
|
+
import { shouldRenderSideBarSection } from '@stores/sidebar-store/builders/shared';
|
|
19
19
|
|
|
20
20
|
import {
|
|
21
21
|
QueueListIcon,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
/package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/flow.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|