@zextras/carbonio-shell-ui 0.4.15 → 0.4.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-shell-ui",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "description": "The Zextras Carbonio web client",
5
5
  "main": "dist/zapp-shell.bundle.js",
6
6
  "types": "./types/index.d.ts",
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /* eslint-disable @typescript-eslint/ban-types */
7
7
 
8
- import { ComponentType, FC } from 'react';
8
+ import { ComponentType, Dispatch, FC, SetStateAction } from 'react';
9
9
  import { LinkProps } from 'react-router-dom';
10
10
  import { Reducer, Store } from 'redux';
11
11
  import { TFunction } from 'react-i18next';
@@ -31,7 +31,7 @@ import {
31
31
  SoapFetch
32
32
  } from '../account';
33
33
  import { Mods, TagActionResponse, CreateTagResponse, SoapNotify, SoapRefresh } from '../network';
34
- import { HistoryParams, ShellModes } from '../misc';
34
+ import { HistoryParams, ShellModes, AccordionFolder } from '../misc';
35
35
  import { Tag, Tags } from '../tags';
36
36
  import { Folder, Folders } from '../folder';
37
37
  import { QueryChip } from '../search';
@@ -219,8 +219,11 @@ export const useFoldersByView: (view: string) => Array<Folder>;
219
219
 
220
220
  export const useFoldersAccordionByView: (
221
221
  view: string,
222
- CustomComponent: ComponentType<{ folder: Folder }>
222
+ CustomComponent: ComponentType<{ folder: Folder }>,
223
+ itemProps?: (item: AccordionFolder) => Record<string, any>
223
224
  ) => Array<AccordionFolder>;
224
225
 
225
226
  // Run Search
226
227
  export const runSearch: (query: Array<QueryChip>, module: string) => void;
228
+
229
+ export const useLocalStorage: <T>(key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
@@ -10,6 +10,7 @@ import { i18n } from 'i18next';
10
10
  import { ComponentType } from 'react';
11
11
  import { CarbonioModule, PanelMode } from '../apps';
12
12
 
13
+ // eslint-disable-next-line no-shadow
13
14
  export enum JSNS {
14
15
  ACCOUNT = 'urn:zimbraAccount',
15
16
  ADMIN = 'urn:zimbraAdmin',