@jpmorganchase/mosaic-store 0.1.0-beta.75 → 0.1.0-beta.76
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/chunk-YOBGV3ZW.js +1 -0
- package/dist/index.js +1 -1
- package/dist/types/navigation.d.ts +2 -0
- package/dist/types/sidebar.d.ts +17 -4
- package/dist/useSidebar.d.ts +1 -1
- package/dist/useSidebar.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MCTKSIA2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-2NGTHKWE.js";import{a as u}from"./chunk-GNWK3KEN.js";import{d as s}from"./chunk-UWY445ZF.js";function p(){let e=s(o=>o.sidebarData)||[],{route:r}=c(),{breadcrumbs:t}=u();return{menu:e,selectedNodeId:r,selectedGroupIds:d(t)}}function d(e){let r=e.reduce((t,{id:o})=>[...t,o.replace(/\/[^\/]*$/,"")],[]);return new Set(r)}export{p as a};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-JDX7D2AR.js";import{a as g}from"./chunk-D3E7HZ32.js";import{a as h}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-JDX7D2AR.js";import{a as g}from"./chunk-D3E7HZ32.js";import{a as h}from"./chunk-YOBGV3ZW.js";import{a as d}from"./chunk-2NGTHKWE.js";import{a as k}from"./chunk-X5BH4J65.js";import{a as i}from"./chunk-EDMM5TSL.js";import{a as p}from"./chunk-SHXJLVWX.js";import"./chunk-BHW7CEID.js";import"./chunk-IS7TJ54I.js";import"./chunk-5L7EI47O.js";import"./chunk-MBLLQB7A.js";import"./chunk-ZJYDN5YH.js";import"./chunk-UK5NIPTI.js";import"./chunk-ZYJGHEAC.js";import"./chunk-BZYGOU7Y.js";import"./chunk-UGD4MMRB.js";import"./chunk-LAADEEXW.js";import"./chunk-BHMVW2ZZ.js";import{a as m}from"./chunk-ZMWHBFUG.js";import"./chunk-VXYECVIB.js";import{a as t}from"./chunk-GNWK3KEN.js";import{a as x}from"./chunk-2LDP6ZYH.js";import{a as j}from"./chunk-EOCK5YS5.js";import{a}from"./chunk-KAG3ZTOY.js";import{a as b}from"./chunk-ZIZ7BMWA.js";import{a as o,b as r,c as e,d as f}from"./chunk-UWY445ZF.js";export{m as MenuItemType,o as StoreProvider,r as initializeStore,p as useAppHeader,t as useBreadcrumbs,x as useColorMode,e as useCreateStore,j as useFooter,a as useLayout,b as useMeta,c as useNavigation,d as useRoute,g as useSearchIndex,h as useSidebar,f as useStore,k as useStoreActions,i as useTableOfContents};
|
package/dist/types/sidebar.d.ts
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface SidebarNode {
|
|
2
2
|
/** The id of the item */
|
|
3
3
|
id: string;
|
|
4
|
+
/** Node kind */
|
|
5
|
+
kind: 'data';
|
|
4
6
|
/** The name of the item */
|
|
5
7
|
name: string;
|
|
6
8
|
/** Sidebar data */
|
|
7
9
|
data: {
|
|
10
|
+
/** The level of the menu item from the sidebar root */
|
|
11
|
+
level: number;
|
|
8
12
|
/** The link of the item */
|
|
9
13
|
link: string;
|
|
10
14
|
};
|
|
11
|
-
/**
|
|
12
|
-
|
|
15
|
+
/** Whether the item is hidden */
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface SidebarGroup {
|
|
19
|
+
/** The id of the item */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Node kind */
|
|
22
|
+
kind: 'group';
|
|
13
23
|
/** Child nodes */
|
|
14
24
|
childNodes: SidebarItem[];
|
|
25
|
+
/** The name of the item */
|
|
26
|
+
name: string;
|
|
15
27
|
/** Whether the item is hidden */
|
|
16
28
|
hidden: boolean;
|
|
17
|
-
}
|
|
29
|
+
}
|
|
30
|
+
export declare type SidebarItem = SidebarNode | SidebarGroup;
|
|
18
31
|
/**
|
|
19
32
|
* [[`SidebarSlice`]] specifies sidebar content
|
|
20
33
|
*/
|
package/dist/useSidebar.d.ts
CHANGED
package/dist/useSidebar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-YOBGV3ZW.js";import"./chunk-2NGTHKWE.js";import"./chunk-GNWK3KEN.js";import"./chunk-UWY445ZF.js";export{a as useSidebar};
|
package/package.json
CHANGED
package/dist/chunk-MCTKSIA2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-2NGTHKWE.js";import{a as o}from"./chunk-GNWK3KEN.js";import{d as t}from"./chunk-UWY445ZF.js";function p(){let r=t(d=>d.sidebarData)||[],{route:e}=s(),{breadcrumbs:u}=o();return{menu:r,selectedNodeId:e,expandedNodeIds:m(u)}}function m(r){return new Set(r.map(({id:e})=>e.substr(0,e.lastIndexOf("."))))}export{p as a};
|