@jpmorganchase/mosaic-store 0.1.0-beta.18 → 0.1.0-beta.20
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/chunk-TTE3IDKD.js +1 -0
- package/dist/index.js +1 -1
- package/dist/types/sidebar.d.ts +2 -0
- package/dist/useSidebar.d.ts +1 -1
- package/dist/useSidebar.js +1 -1
- package/package.json +1 -1
- package/src/types/sidebar.ts +2 -0
- package/src/useSidebar.ts +2 -2
- package/dist/chunk-VFFDF2MZ.js +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@jpmorganchase/mosaic-store:build: cache hit, replaying output
|
|
1
|
+
@jpmorganchase/mosaic-store:build: cache hit, replaying output c25d0e73e75a9b44
|
|
2
2
|
@jpmorganchase/mosaic-store:build: $ npm-run-all --parallel build:*
|
|
3
3
|
@jpmorganchase/mosaic-store:build: $ node ../../scripts/bundle.js
|
|
4
4
|
@jpmorganchase/mosaic-store:build: $ tsc
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @jpmorganchase/mosaic-store
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9c7b8ff: pip to beta.20
|
|
8
|
+
|
|
9
|
+
## 0.1.0-beta.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ad06d4c: ensure spinner is removed after page has loaded
|
|
14
|
+
|
|
3
15
|
## 0.1.0-beta.18
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-5G75LNTO.js";import{a as o}from"./chunk-T4F7TF3E.js";import{d as t}from"./chunk-VRIJA4FE.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};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-GG4KZ7Z6.js";import{a as g}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-GG4KZ7Z6.js";import{a as g}from"./chunk-TTE3IDKD.js";import{a as c}from"./chunk-5G75LNTO.js";import{a as j}from"./chunk-XXDRCMNC.js";import{a as h}from"./chunk-N6Q3GQDQ.js";import{a as p}from"./chunk-FTFVN4S3.js";import"./chunk-ASPK4M5R.js";import"./chunk-ZJYDN5YH.js";import"./chunk-UK5NIPTI.js";import"./chunk-ZYJGHEAC.js";import"./chunk-BZYGOU7Y.js";import"./chunk-UGD4MMRB.js";import"./chunk-BHMVW2ZZ.js";import"./chunk-5L7EI47O.js";import"./chunk-MBLLQB7A.js";import{a as m}from"./chunk-ZMWHBFUG.js";import"./chunk-VXYECVIB.js";import{a as t}from"./chunk-T4F7TF3E.js";import{a as x}from"./chunk-PNYO3347.js";import{a as i}from"./chunk-OC2YQSBN.js";import{a}from"./chunk-NEIN7MAT.js";import{a as b}from"./chunk-UMJOUVJQ.js";import{a as o,b as r,c as e,d as f}from"./chunk-VRIJA4FE.js";export{m as MenuItemType,o as StoreProvider,r as initializeStore,p as useAppHeader,t as useBreadcrumbs,x as useColorMode,e as useCreateStore,i as useFooter,a as useLayout,b as useMeta,d as useNextPrev,c as useRoute,g as useSidebar,f as useStore,j as useStoreActions,h as useTableOfContents};
|
package/dist/types/sidebar.d.ts
CHANGED
package/dist/useSidebar.d.ts
CHANGED
package/dist/useSidebar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-TTE3IDKD.js";import"./chunk-5G75LNTO.js";import"./chunk-T4F7TF3E.js";import"./chunk-VRIJA4FE.js";export{a as useSidebar};
|
package/package.json
CHANGED
package/src/types/sidebar.ts
CHANGED
package/src/useSidebar.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { useRoute } from './useRoute';
|
|
|
4
4
|
import type { Breadcrumb } from './types';
|
|
5
5
|
|
|
6
6
|
export function useSidebar() {
|
|
7
|
-
const
|
|
7
|
+
const menu = useStore(state => state.sidebarData) || [];
|
|
8
8
|
const { route } = useRoute();
|
|
9
9
|
const { breadcrumbs } = useBreadcrumbs();
|
|
10
10
|
return {
|
|
11
|
-
|
|
11
|
+
menu,
|
|
12
12
|
selectedNodeId: route,
|
|
13
13
|
expandedNodeIds: getIds(breadcrumbs)
|
|
14
14
|
};
|
package/dist/chunk-VFFDF2MZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-5G75LNTO.js";import{a as o}from"./chunk-T4F7TF3E.js";import{d as t}from"./chunk-VRIJA4FE.js";function b(){let r=t(u=>u.sidebarData)||[],{route:e}=s(),{breadcrumbs:d}=o();return{sidebarData:r,selectedNodeId:e,expandedNodeIds:a(d)}}function a(r){return new Set(r.map(({id:e})=>e.substr(0,e.lastIndexOf("."))))}export{b as a};
|