@jpmorganchase/mosaic-store 0.1.0-beta.89 → 0.1.0-beta.90

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.
Files changed (52) hide show
  1. package/dist/chunk-256AGL5I.js +1 -0
  2. package/dist/chunk-5GXF566S.js +1 -0
  3. package/dist/{chunk-UAOXD7FQ.js → chunk-6BPHTR6G.js} +1 -1
  4. package/dist/{chunk-K46AB54R.js → chunk-6VYGXDI5.js} +1 -1
  5. package/dist/{chunk-UGNPKB2C.js → chunk-AA7FGYRS.js} +1 -1
  6. package/dist/chunk-ATQVZ6KV.js +1 -0
  7. package/dist/{chunk-ZWWLRRM5.js → chunk-BNDCMZAE.js} +1 -1
  8. package/dist/{chunk-QKYKXXND.js → chunk-CF4MD2TQ.js} +1 -1
  9. package/dist/{chunk-BB64I3MP.js → chunk-G734VGFN.js} +1 -1
  10. package/dist/chunk-NZGUNCV2.js +1 -0
  11. package/dist/chunk-PSHWPPFM.js +1 -0
  12. package/dist/chunk-Q3JUP6BM.js +1 -0
  13. package/dist/{chunk-CAN3NWY7.js → chunk-YZFJJMDS.js} +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/store.d.ts +4 -5
  16. package/dist/store.js +1 -1
  17. package/dist/types/appHeader.d.ts +2 -2
  18. package/dist/types/breadcrumbs.d.ts +2 -2
  19. package/dist/types/colorMode.d.ts +1 -1
  20. package/dist/types/footer.d.ts +1 -1
  21. package/dist/types/helpLinks.d.ts +1 -1
  22. package/dist/types/layout.d.ts +1 -1
  23. package/dist/types/meta.d.ts +1 -1
  24. package/dist/types/navigation.d.ts +3 -3
  25. package/dist/types/route.d.ts +1 -1
  26. package/dist/types/searchIndex.d.ts +4 -4
  27. package/dist/types/sharedConfig.d.ts +2 -2
  28. package/dist/types/sidebar.d.ts +2 -2
  29. package/dist/types/tableOfContents.d.ts +2 -2
  30. package/dist/useAppHeader.d.ts +1 -1
  31. package/dist/useAppHeader.js +1 -1
  32. package/dist/useBreadcrumbs.js +1 -1
  33. package/dist/useColorMode.js +1 -1
  34. package/dist/useFooter.d.ts +1 -1
  35. package/dist/useFooter.js +1 -1
  36. package/dist/useLayout.d.ts +1 -1
  37. package/dist/useLayout.js +1 -1
  38. package/dist/useMeta.d.ts +1 -1
  39. package/dist/useMeta.js +1 -1
  40. package/dist/useNavigation.js +1 -1
  41. package/dist/useRoute.js +1 -1
  42. package/dist/useSearchIndex.js +1 -1
  43. package/dist/useSidebar.js +1 -1
  44. package/dist/useStoreActions.js +1 -1
  45. package/dist/useTableOfContents.js +1 -1
  46. package/package.json +5 -5
  47. package/dist/chunk-2FK3VR6P.js +0 -1
  48. package/dist/chunk-BEKPLXID.js +0 -1
  49. package/dist/chunk-EXW7MT2H.js +0 -1
  50. package/dist/chunk-JNWUSBDL.js +0 -1
  51. package/dist/chunk-KCLW2DTR.js +0 -1
  52. package/dist/chunk-UYD36OR2.js +0 -1
@@ -0,0 +1 @@
1
+ import{d as e}from"./chunk-6VYGXDI5.js";function u(){return{route:e(t=>t.route)}}export{u as a};
@@ -0,0 +1 @@
1
+ import{d as o}from"./chunk-6VYGXDI5.js";function f(){return o(e=>e.sharedConfig?.footer)}export{f as a};
@@ -1 +1 @@
1
- import{d as t}from"./chunk-K46AB54R.js";function u(e){return e.links!==void 0}function d(e){return e.link!==void 0}function M(){let e=t(n=>n.sharedConfig?.header);if(!e)return;let i=e.menu.reduce((n,p)=>{if(u(p)){let r={...p,type:"menu"};return[...n,r]}if(d(p)){let r={...p,type:"link"};return[...n,r]}return console.error("Unknown menu type passed to useAppHeader, ignoring",p),n},[]);return{...e,menu:i}}export{M as a};
1
+ import{d as t}from"./chunk-6VYGXDI5.js";function u(e){return e.links!==void 0}function d(e){return e.link!==void 0}function M(){let e=t(n=>n.sharedConfig?.header);if(!e)return;let i=e.menu.reduce((n,p)=>{if(u(p)){let r={...p,type:"menu"};return[...n,r]}if(d(p)){let r={...p,type:"link"};return[...n,r]}return console.error("Unknown menu type passed to useAppHeader, ignoring",p),n},[]);return{...e,menu:i}}export{M as a};
@@ -1 +1 @@
1
- import{useLayoutEffect as l,createContext as f,useContext as p}from"react";import{createStore as u,useStore as m}from"zustand";import{devtools as y,persist as C}from"zustand/middleware";var r;function s(){return{breadcrumbs:[],sidebarData:[],tableOfContents:[],navigation:{},searchIndex:[],searchConfig:{},sharedConfig:{},description:void 0,layout:void 0,route:void 0,title:void 0,colorMode:"light"}}var a=f(void 0);a.displayName="StoreContext";var P=a.Provider,g=e=>y(C(e,{name:"mosaic-theme-pref",partialize:t=>({colorMode:t.colorMode})})),n=(e={})=>u(g(o=>({...s(),...e,actions:{setColorMode:i=>o({colorMode:i})}})));function T(e,t=!1){if(typeof window>"u"||t)return()=>n(e);let o=Boolean(r);return r=r??n(e),l(()=>{if(e&&o){let i={...s(),...e},{colorMode:S,actions:d,...c}=r.getState();r.setState({...c,...i,colorMode:S,actions:d},!0)}}),()=>r}function v(e,t){let o=p(a);if(!o)throw new Error("Missing StoreProvider in the tree");return m(o,e,t)}export{P as a,n as b,T as c,v as d};
1
+ import{useLayoutEffect as l,createContext as f,useContext as p}from"react";import{createStore as u,useStore as m}from"zustand";import{devtools as y,persist as C}from"zustand/middleware";var r;function s(){return{breadcrumbs:[],sidebarData:[],tableOfContents:[],navigation:{},searchIndex:[],searchConfig:{},sharedConfig:{},description:void 0,layout:void 0,route:void 0,title:void 0,colorMode:"light"}}var a=f(void 0);a.displayName="StoreContext";var P=a.Provider,g=e=>y(C(e,{name:"mosaic-theme-pref",partialize:t=>({colorMode:t.colorMode})})),n=(e={})=>u(g(o=>({...s(),...e,actions:{setColorMode:i=>o({colorMode:i})}})));function T(e,t=!1){if(typeof window>"u"||t)return()=>n(e);let o=!!r;return r=r??n(e),l(()=>{if(e&&o){let i={...s(),...e},{colorMode:S,actions:d,...c}=r.getState();r.setState({...c,...i,colorMode:S,actions:d},!0)}}),()=>r}function v(e,t){let o=p(a);if(!o)throw new Error("Missing StoreProvider in the tree");return m(o,e,t)}export{P as a,n as b,T as c,v as d};
@@ -1 +1 @@
1
- import{d as c}from"./chunk-K46AB54R.js";function t(){let e=c(r=>r.searchIndex),o=c(r=>r.searchConfig),n=o!==void 0&&e!==void 0&&e.length>0;return{searchEnabled:n,searchIndex:n?e:[],searchConfig:n?o:{}}}export{t as a};
1
+ import{d as c}from"./chunk-6VYGXDI5.js";function t(){let e=c(r=>r.searchIndex),o=c(r=>r.searchConfig),n=o!==void 0&&e!==void 0&&e.length>0;return{searchEnabled:n,searchIndex:n?e:[],searchConfig:n?o:{}}}export{t as a};
@@ -0,0 +1 @@
1
+ import{d as o}from"./chunk-6VYGXDI5.js";var r=()=>o(t=>t.actions);export{r as a};
@@ -1 +1 @@
1
- import{d as t}from"./chunk-K46AB54R.js";function o(){return{meta:t(e=>({description:e.description,breadcrumbs:e.breadcrumbs,title:e.title}))}}export{o as a};
1
+ import{d as t}from"./chunk-6VYGXDI5.js";function o(){return{meta:t(e=>({description:e.description,breadcrumbs:e.breadcrumbs,title:e.title}))}}export{o as a};
@@ -1 +1 @@
1
- import{d as e}from"./chunk-K46AB54R.js";function m(t=1){let r=e(b=>b.breadcrumbs);return{breadcrumbs:r||[],enabled:r?.length>t}}export{m as a};
1
+ import{d as e}from"./chunk-6VYGXDI5.js";function m(t=1){let r=e(b=>b.breadcrumbs);return{breadcrumbs:r||[],enabled:r?.length>t}}export{m as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-2FK3VR6P.js";import{a as u}from"./chunk-QKYKXXND.js";import{d as s}from"./chunk-K46AB54R.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};
1
+ import{a as c}from"./chunk-256AGL5I.js";import{a as u}from"./chunk-CF4MD2TQ.js";import{d as s}from"./chunk-6VYGXDI5.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};
@@ -0,0 +1 @@
1
+ import{d as t}from"./chunk-6VYGXDI5.js";function e(){return{layout:t(o=>o.layout)}}export{e as a};
@@ -0,0 +1 @@
1
+ import{d as t}from"./chunk-6VYGXDI5.js";function s(){return{tableOfContents:t(e=>e.tableOfContents)||[]}}export{s as a};
@@ -0,0 +1 @@
1
+ import{d as o}from"./chunk-6VYGXDI5.js";function d(){return o(r=>r.colorMode)}export{d as a};
@@ -1 +1 @@
1
- import{d as t}from"./chunk-K46AB54R.js";function r(){let{next:o,prev:i}=t(n=>n.navigation)||{};return{next:o,prev:i}}export{r as a};
1
+ import{d as t}from"./chunk-6VYGXDI5.js";function r(){let{next:o,prev:i}=t(n=>n.navigation)||{};return{next:o,prev:i}}export{r as a};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as c}from"./chunk-CAN3NWY7.js";import{a as g}from"./chunk-UGNPKB2C.js";import{a as h}from"./chunk-BB64I3MP.js";import{a as d}from"./chunk-2FK3VR6P.js";import{a as k}from"./chunk-KCLW2DTR.js";import{a as i}from"./chunk-JNWUSBDL.js";import{a as p}from"./chunk-UAOXD7FQ.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-QKYKXXND.js";import{a as x}from"./chunk-UYD36OR2.js";import{a as j}from"./chunk-BEKPLXID.js";import{a}from"./chunk-EXW7MT2H.js";import{a as b}from"./chunk-ZWWLRRM5.js";import{a as o,b as r,c as e,d as f}from"./chunk-K46AB54R.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};
1
+ import{a as c}from"./chunk-YZFJJMDS.js";import{a as g}from"./chunk-AA7FGYRS.js";import{a as h}from"./chunk-G734VGFN.js";import{a as d}from"./chunk-256AGL5I.js";import{a as k}from"./chunk-ATQVZ6KV.js";import{a as i}from"./chunk-PSHWPPFM.js";import{a as p}from"./chunk-6BPHTR6G.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-CF4MD2TQ.js";import{a as x}from"./chunk-Q3JUP6BM.js";import{a as j}from"./chunk-5GXF566S.js";import{a}from"./chunk-NZGUNCV2.js";import{a as b}from"./chunk-BNDCMZAE.js";import{a as o,b as r,c as e,d as f}from"./chunk-6VYGXDI5.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/store.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StoreApi } from 'zustand';
3
2
  import type { BreadcrumbsSlice } from './types/breadcrumbs';
4
3
  import type { SearchIndexSlice } from './types/searchIndex';
@@ -8,7 +7,7 @@ import type { NavigationSlice } from './types/navigation';
8
7
  import type { SidebarSlice } from './types/sidebar';
9
8
  import type { TableOfContentsSlice } from './types/tableOfContents';
10
9
  import type { ColorMode } from './types/colorMode';
11
- export declare type SiteState = BreadcrumbsSlice & LayoutSlice & SidebarSlice & TableOfContentsSlice & NavigationSlice & SearchIndexSlice & SharedConfigSlice & {
10
+ export type SiteState = BreadcrumbsSlice & LayoutSlice & SidebarSlice & TableOfContentsSlice & NavigationSlice & SearchIndexSlice & SharedConfigSlice & {
12
11
  /** Page metadata description, used by search */
13
12
  description?: string;
14
13
  /** Page route */
@@ -20,7 +19,7 @@ export declare type SiteState = BreadcrumbsSlice & LayoutSlice & SidebarSlice &
20
19
  setColorMode: (colorMode: ColorMode) => void;
21
20
  };
22
21
  };
23
- declare type PeristedStoreState = Pick<SiteState, 'colorMode'>;
22
+ type PeristedStoreState = Pick<SiteState, 'colorMode'>;
24
23
  declare const StoreProvider: import("react").Provider<StoreApi<SiteState> | undefined>;
25
24
  declare const initializeStore: (preloadedState?: Partial<SiteState>) => Omit<Omit<StoreApi<SiteState>, "setState"> & {
26
25
  setState<A extends string | {
@@ -30,7 +29,7 @@ declare const initializeStore: (preloadedState?: Partial<SiteState>) => Omit<Omi
30
29
  persist: {
31
30
  setOptions: (options: Partial<import("zustand/middleware").PersistOptions<SiteState, PeristedStoreState>>) => void;
32
31
  clearStorage: () => void;
33
- rehydrate: () => void | Promise<void>;
32
+ rehydrate: () => Promise<void> | void;
34
33
  hasHydrated: () => boolean;
35
34
  onHydrate: (fn: (state: SiteState) => void) => () => void;
36
35
  onFinishHydration: (fn: (state: SiteState) => void) => () => void;
@@ -45,7 +44,7 @@ declare function useCreateStore(serverInitialState: Partial<SiteState>, isSSR?:
45
44
  persist: {
46
45
  setOptions: (options: Partial<import("zustand/middleware").PersistOptions<SiteState, PeristedStoreState>>) => void;
47
46
  clearStorage: () => void;
48
- rehydrate: () => void | Promise<void>;
47
+ rehydrate: () => Promise<void> | void;
49
48
  hasHydrated: () => boolean;
50
49
  onHydrate: (fn: (state: SiteState) => void) => () => void;
51
50
  onFinishHydration: (fn: (state: SiteState) => void) => () => void;
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-K46AB54R.js";export{a as StoreProvider,b as initializeStore,c as useCreateStore,d as useStore};
1
+ import{a,b,c,d}from"./chunk-6VYGXDI5.js";export{a as StoreProvider,b as initializeStore,c as useCreateStore,d as useStore};
@@ -9,7 +9,7 @@ export declare enum MenuItemType {
9
9
  /**
10
10
  * [[`Menu`]] defines App Header menus
11
11
  */
12
- export declare type Menu = MenuLinksItem | MenuLinkItem;
12
+ export type Menu = MenuLinksItem | MenuLinkItem;
13
13
  /**
14
14
  * [[`MenuLinksItem`]] defines a menu of links
15
15
  */
@@ -57,7 +57,7 @@ export interface AppHeaderMenuLinkItem {
57
57
  /**
58
58
  * [[`AppHeaderSlice`]] specifies the contents of the AppHeader
59
59
  */
60
- export declare type AppHeaderSlice = {
60
+ export type AppHeaderSlice = {
61
61
  /** App logo/title */
62
62
  title: string;
63
63
  /** Link to the home page */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [[`Breadcrumb`]] defines the breadcrumb for a page
3
3
  */
4
- export declare type Breadcrumb = {
4
+ export type Breadcrumb = {
5
5
  /** The associated route/path of the breadcrumb */
6
6
  path: string;
7
7
  /** Whether the breadcrumb is hidden */
@@ -14,7 +14,7 @@ export declare type Breadcrumb = {
14
14
  /**
15
15
  * [[`BreadcrumbsSlice`]] is the associated [[`Breadcrumb`]] items
16
16
  */
17
- export declare type BreadcrumbsSlice = {
17
+ export type BreadcrumbsSlice = {
18
18
  /** Path described in breadcrumbs */
19
19
  breadcrumbs: Breadcrumb[];
20
20
  };
@@ -1,3 +1,3 @@
1
1
  export declare const lightMode = "light";
2
2
  export declare const darkMode = "dark";
3
- export declare type ColorMode = typeof lightMode | typeof darkMode;
3
+ export type ColorMode = typeof lightMode | typeof darkMode;
@@ -2,7 +2,7 @@ import { HelpLinks } from './helpLinks';
2
2
  /**
3
3
  * [[`FooterSlice`]] specifies the footer props
4
4
  */
5
- export declare type FooterSlice = {
5
+ export type FooterSlice = {
6
6
  /** Footer description/message */
7
7
  description: string;
8
8
  /** Footer title */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [[`HelpLinks`]] specifies the support channels
3
3
  */
4
- export declare type HelpLinks = {
4
+ export type HelpLinks = {
5
5
  /** StackOverflow link label */
6
6
  stackoverflowLabel: string;
7
7
  /** StackOverflow URL for product support */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [[`LayoutSlice`]] specifies the page's anatomy
3
3
  */
4
- export declare type LayoutSlice = {
4
+ export type LayoutSlice = {
5
5
  /** Layout name that will define the page's anatomy */
6
6
  layout?: string;
7
7
  };
@@ -2,7 +2,7 @@ import type { Breadcrumb } from './breadcrumbs';
2
2
  /**
3
3
  * [[`MetaSlice`]] specifies the page's head metadata
4
4
  */
5
- export declare type MetaSlice = {
5
+ export type MetaSlice = {
6
6
  /** Page description */
7
7
  description?: string;
8
8
  /** Page breadcrumbs */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Page within a sequence
3
3
  */
4
- export declare type NavigationLink = {
4
+ export type NavigationLink = {
5
5
  /** page title */
6
6
  title: string;
7
7
  /** page route */
@@ -12,12 +12,12 @@ export declare type NavigationLink = {
12
12
  /**
13
13
  * [[`Navigation`]] specifies page navigation such as next or previous pages
14
14
  */
15
- export declare type Navigation = {
15
+ export type Navigation = {
16
16
  /** next page in sequence */
17
17
  next?: NavigationLink;
18
18
  /** previous page in sequence */
19
19
  prev?: NavigationLink;
20
20
  };
21
- export declare type NavigationSlice = {
21
+ export type NavigationSlice = {
22
22
  navigation?: Navigation;
23
23
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [[`RouteSlice`]] specifies the page's route
3
3
  */
4
- export declare type RouteSlice = {
4
+ export type RouteSlice = {
5
5
  /** Current page route */
6
6
  route?: string;
7
7
  };
@@ -1,10 +1,10 @@
1
- declare type SearchDataPage = {
1
+ type SearchDataPage = {
2
2
  title: string;
3
3
  content: string[];
4
4
  route: string;
5
5
  };
6
- export declare type SearchIndex = SearchDataPage[];
7
- export declare type SearchConfig = {
6
+ export type SearchIndex = SearchDataPage[];
7
+ export type SearchConfig = {
8
8
  includeScore?: boolean;
9
9
  includeMatches?: boolean;
10
10
  maxPatternLength?: number;
@@ -15,7 +15,7 @@ export declare type SearchConfig = {
15
15
  weight: number;
16
16
  }[];
17
17
  };
18
- export declare type SearchIndexSlice = {
18
+ export type SearchIndexSlice = {
19
19
  searchIndex?: SearchIndex;
20
20
  searchConfig?: SearchConfig;
21
21
  };
@@ -1,6 +1,6 @@
1
1
  import type { AppHeaderSlice } from './appHeader';
2
2
  import type { FooterSlice } from './footer';
3
- export declare type SharedConfig = {
3
+ export type SharedConfig = {
4
4
  /** Footer props */
5
5
  footer?: FooterSlice;
6
6
  /** Header props */
@@ -8,6 +8,6 @@ export declare type SharedConfig = {
8
8
  /** Sidebar props */
9
9
  sidebar?: Pick<FooterSlice, 'helpLinks'>;
10
10
  };
11
- export declare type SharedConfigSlice = {
11
+ export type SharedConfigSlice = {
12
12
  sharedConfig?: SharedConfig;
13
13
  };
@@ -27,11 +27,11 @@ export interface SidebarGroup {
27
27
  /** Whether the item is hidden */
28
28
  hidden: boolean;
29
29
  }
30
- export declare type SidebarItem = SidebarNode | SidebarGroup;
30
+ export type SidebarItem = SidebarNode | SidebarGroup;
31
31
  /**
32
32
  * [[`SidebarSlice`]] specifies sidebar content
33
33
  */
34
- export declare type SidebarSlice = {
34
+ export type SidebarSlice = {
35
35
  /** Sidebar items */
36
36
  sidebarData: SidebarItem[];
37
37
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [[`TableOfContentsItem`]] defines a table of contents item
3
3
  */
4
- export declare type TableOfContentsItem = {
4
+ export type TableOfContentsItem = {
5
5
  /** The depth of the heading */
6
6
  level: number;
7
7
  /** The id attribute of the heading */
@@ -12,7 +12,7 @@ export declare type TableOfContentsItem = {
12
12
  /**
13
13
  * [[`TableOfContentsSlice`]] defines the table of contents for a page
14
14
  */
15
- export declare type TableOfContentsSlice = {
15
+ export type TableOfContentsSlice = {
16
16
  /** Path described in breadcrumbs */
17
17
  tableOfContents: TableOfContentsItem[];
18
18
  };
@@ -1,5 +1,5 @@
1
1
  import type { AppHeaderSlice, AppHeaderMenuLinkItem, AppHeaderMenuLinksItem } from './types';
2
- export declare type AppHeaderMenu = Array<AppHeaderMenuLinksItem | AppHeaderMenuLinkItem>;
2
+ export type AppHeaderMenu = Array<AppHeaderMenuLinksItem | AppHeaderMenuLinkItem>;
3
3
  export interface AppHeader extends Omit<AppHeaderSlice, 'menu'> {
4
4
  menu: AppHeaderMenu;
5
5
  }
@@ -1 +1 @@
1
- import{a}from"./chunk-UAOXD7FQ.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"./chunk-ZMWHBFUG.js";import"./chunk-VXYECVIB.js";import"./chunk-K46AB54R.js";export{a as useAppHeader};
1
+ import{a}from"./chunk-6BPHTR6G.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"./chunk-ZMWHBFUG.js";import"./chunk-VXYECVIB.js";import"./chunk-6VYGXDI5.js";export{a as useAppHeader};
@@ -1 +1 @@
1
- import{a}from"./chunk-QKYKXXND.js";import"./chunk-K46AB54R.js";export{a as useBreadcrumbs};
1
+ import{a}from"./chunk-CF4MD2TQ.js";import"./chunk-6VYGXDI5.js";export{a as useBreadcrumbs};
@@ -1 +1 @@
1
- import{a}from"./chunk-UYD36OR2.js";import"./chunk-K46AB54R.js";export{a as useColorMode};
1
+ import{a}from"./chunk-Q3JUP6BM.js";import"./chunk-6VYGXDI5.js";export{a as useColorMode};
@@ -1,4 +1,4 @@
1
1
  import type { FooterSlice } from './types';
2
- declare type Footer = FooterSlice | undefined;
2
+ type Footer = FooterSlice | undefined;
3
3
  export declare function useFooter(): Footer;
4
4
  export {};
package/dist/useFooter.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-BEKPLXID.js";import"./chunk-K46AB54R.js";export{a as useFooter};
1
+ import{a}from"./chunk-5GXF566S.js";import"./chunk-6VYGXDI5.js";export{a as useFooter};
@@ -1,4 +1,4 @@
1
1
  import type { LayoutSlice } from './types';
2
- declare type Layout = LayoutSlice;
2
+ type Layout = LayoutSlice;
3
3
  export declare function useLayout(): Layout;
4
4
  export {};
package/dist/useLayout.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-EXW7MT2H.js";import"./chunk-K46AB54R.js";export{a as useLayout};
1
+ import{a}from"./chunk-NZGUNCV2.js";import"./chunk-6VYGXDI5.js";export{a as useLayout};
package/dist/useMeta.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { MetaSlice } from './types';
2
- export declare type Meta = {
2
+ export type Meta = {
3
3
  meta: MetaSlice;
4
4
  };
5
5
  export declare function useMeta(): Meta;
package/dist/useMeta.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-ZWWLRRM5.js";import"./chunk-K46AB54R.js";export{a as useMeta};
1
+ import{a}from"./chunk-BNDCMZAE.js";import"./chunk-6VYGXDI5.js";export{a as useMeta};
@@ -1 +1 @@
1
- import{a}from"./chunk-CAN3NWY7.js";import"./chunk-K46AB54R.js";export{a as useNavigation};
1
+ import{a}from"./chunk-YZFJJMDS.js";import"./chunk-6VYGXDI5.js";export{a as useNavigation};
package/dist/useRoute.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-2FK3VR6P.js";import"./chunk-K46AB54R.js";export{a as useRoute};
1
+ import{a}from"./chunk-256AGL5I.js";import"./chunk-6VYGXDI5.js";export{a as useRoute};
@@ -1 +1 @@
1
- import{a}from"./chunk-UGNPKB2C.js";import"./chunk-K46AB54R.js";export{a as useSearchIndex};
1
+ import{a}from"./chunk-AA7FGYRS.js";import"./chunk-6VYGXDI5.js";export{a as useSearchIndex};
@@ -1 +1 @@
1
- import{a}from"./chunk-BB64I3MP.js";import"./chunk-2FK3VR6P.js";import"./chunk-QKYKXXND.js";import"./chunk-K46AB54R.js";export{a as useSidebar};
1
+ import{a}from"./chunk-G734VGFN.js";import"./chunk-256AGL5I.js";import"./chunk-CF4MD2TQ.js";import"./chunk-6VYGXDI5.js";export{a as useSidebar};
@@ -1 +1 @@
1
- import{a}from"./chunk-KCLW2DTR.js";import"./chunk-K46AB54R.js";export{a as useStoreActions};
1
+ import{a}from"./chunk-ATQVZ6KV.js";import"./chunk-6VYGXDI5.js";export{a as useStoreActions};
@@ -1 +1 @@
1
- import{a}from"./chunk-JNWUSBDL.js";import"./chunk-K46AB54R.js";export{a as useTableOfContents};
1
+ import{a}from"./chunk-PSHWPPFM.js";import"./chunk-6VYGXDI5.js";export{a as useTableOfContents};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jpmorganchase/mosaic-store",
3
3
  "description": "Mosaic - Store for site configuration",
4
- "version": "0.1.0-beta.89",
4
+ "version": "0.1.0-beta.90",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
7
7
  "repository": {
@@ -25,21 +25,21 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "build": "npm-run-all --parallel build:*",
28
- "build:bundle": "node ../../scripts/bundle.js",
28
+ "build:bundle": "node ../../scripts/bundle.mjs",
29
29
  "build:types": "tsc",
30
30
  "clean": "npx del-cli 'dist/**' && find . -type d -empty -delete",
31
31
  "lint": "eslint --ignore-pattern \"**/__tests__/**\"",
32
- "dev": "node ../../scripts/bundle.js watch"
32
+ "dev": "node ../../scripts/bundle.mjs watch"
33
33
  },
34
34
  "devDependencies": {
35
35
  "del-cli": "^4.0.1",
36
- "typescript": "^4.8.3"
36
+ "typescript": "^5.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "zustand": "^4.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@types/react": "^18.0.26",
42
+ "@types/react": "^18.3.12",
43
43
  "react": "^18.2.0",
44
44
  "react-dom": "^18.2.0"
45
45
  }
@@ -1 +0,0 @@
1
- import{d as e}from"./chunk-K46AB54R.js";function u(){return{route:e(t=>t.route)}}export{u as a};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-K46AB54R.js";function f(){return o(e=>e.sharedConfig?.footer)}export{f as a};
@@ -1 +0,0 @@
1
- import{d as t}from"./chunk-K46AB54R.js";function e(){return{layout:t(o=>o.layout)}}export{e as a};
@@ -1 +0,0 @@
1
- import{d as t}from"./chunk-K46AB54R.js";function s(){return{tableOfContents:t(e=>e.tableOfContents)||[]}}export{s as a};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-K46AB54R.js";var r=()=>o(t=>t.actions);export{r as a};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-K46AB54R.js";function d(){return o(r=>r.colorMode)}export{d as a};