@zextras/carbonio-shell-ui 1.0.0 → 1.1.0

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 (100) hide show
  1. package/dist/{20d012c938e8d0dcc703e4edc2714d23.mp3 → 20d012c938e8d0dcc703.mp3} +0 -0
  2. package/dist/CHANGELOG.md +20 -0
  3. package/dist/PKGBUILD +7 -7
  4. package/dist/commit +1 -1
  5. package/dist/component.json +3 -3
  6. package/dist/{db1a38cf321d5b3025a31cd903b7d486.png → db1a38cf321d5b3025a3.png} +0 -0
  7. package/dist/{168d6383e73339293ac33d2726ba151e.woff → files/roboto-all-300-normal.woff} +0 -0
  8. package/dist/{c5d001fa922fa66a147f5f3aea5ef30e.woff → files/roboto-all-400-normal.woff} +0 -0
  9. package/dist/{0ab669b7a0d19b178f57d46f0e0db5cb.woff → files/roboto-all-500-normal.woff} +0 -0
  10. package/dist/{a457fde362a540fcadff80329251b6ae.woff → files/roboto-all-700-normal.woff} +0 -0
  11. package/dist/{1431d1cef06ad04f54588bf42acf2457.woff2 → files/roboto-cyrillic-300-normal.woff2} +0 -0
  12. package/dist/{71a33b6b50457b2c903a3a2312e8eea1.woff2 → files/roboto-cyrillic-400-normal.woff2} +0 -0
  13. package/dist/{cad7d3d9cb265e334e58e65cd1ae36e8.woff2 → files/roboto-cyrillic-500-normal.woff2} +0 -0
  14. package/dist/{d010f1f324e111a22e53f96b374e7122.woff2 → files/roboto-cyrillic-700-normal.woff2} +0 -0
  15. package/dist/{4777461b144e55145268a97fdea16395.woff2 → files/roboto-cyrillic-ext-300-normal.woff2} +0 -0
  16. package/dist/{804378952da8a10faae2681afaef3d53.woff2 → files/roboto-cyrillic-ext-400-normal.woff2} +0 -0
  17. package/dist/{62ced72e5832f02c279633803ce1e348.woff2 → files/roboto-cyrillic-ext-500-normal.woff2} +0 -0
  18. package/dist/{be4d02458ce53887dc3729735f37b7ae.woff2 → files/roboto-cyrillic-ext-700-normal.woff2} +0 -0
  19. package/dist/{db2632771401f61463fec5958f76fd7f.woff2 → files/roboto-greek-300-normal.woff2} +0 -0
  20. package/dist/{c35e4c3958e209d17b319ad751c0cec2.woff2 → files/roboto-greek-400-normal.woff2} +0 -0
  21. package/dist/{9ac81fefbe6c319ea40be5069cbf2b53.woff2 → files/roboto-greek-500-normal.woff2} +0 -0
  22. package/dist/{50e795c1345353b0e99611abfba3ea82.woff2 → files/roboto-greek-700-normal.woff2} +0 -0
  23. package/dist/{35b9d6be04b95f0f05306d334a22e71a.woff2 → files/roboto-greek-ext-300-normal.woff2} +0 -0
  24. package/dist/{169619821ea93019d1bba0c39cdfe80b.woff2 → files/roboto-greek-ext-400-normal.woff2} +0 -0
  25. package/dist/{6fb9cffb1d3e72bf92931a793383673a.woff2 → files/roboto-greek-ext-500-normal.woff2} +0 -0
  26. package/dist/{bd9854c751441ccc1a704e09f638e4d3.woff2 → files/roboto-greek-ext-700-normal.woff2} +0 -0
  27. package/dist/{c48fb6765a9fcb00b3300fee318b45df.woff2 → files/roboto-latin-300-normal.woff2} +0 -0
  28. package/dist/{b009a76ad6afe4ebd301e36f847a29be.woff2 → files/roboto-latin-400-normal.woff2} +0 -0
  29. package/dist/{f25d774ecfe0996f8eb574b643d41915.woff2 → files/roboto-latin-500-normal.woff2} +0 -0
  30. package/dist/{227c93190fe7f82de3f802ce0b614d3b.woff2 → files/roboto-latin-700-normal.woff2} +0 -0
  31. package/dist/{dc7dcec8e3f654e0ed63f83e580d9c05.woff2 → files/roboto-latin-ext-300-normal.woff2} +0 -0
  32. package/dist/{861b791f9de857a6e7bcf77612740c18.woff2 → files/roboto-latin-ext-400-normal.woff2} +0 -0
  33. package/dist/{9165081d10e1ba60138421473b64c3e3.woff2 → files/roboto-latin-ext-500-normal.woff2} +0 -0
  34. package/dist/{ed67ad54b1a8f5d211503d1685cd9249.woff2 → files/roboto-latin-ext-700-normal.woff2} +0 -0
  35. package/dist/{32fc45a3d1e8ea11fabc34cc5a93806f.woff2 → files/roboto-vietnamese-300-normal.woff2} +0 -0
  36. package/dist/{3230f9b040f3c630e0c34c9296b74778.woff2 → files/roboto-vietnamese-400-normal.woff2} +0 -0
  37. package/dist/{d8642a3d1d4ef6179644843ecacc53b6.woff2 → files/roboto-vietnamese-500-normal.woff2} +0 -0
  38. package/dist/{3425a701027d0699e369d364c89b9395.woff2 → files/roboto-vietnamese-700-normal.woff2} +0 -0
  39. package/dist/i18n/it.json +1 -1
  40. package/dist/i18n/pl.json +1 -1
  41. package/dist/i18n/ru.json +1 -1
  42. package/dist/i18n/tr.json +1 -1
  43. package/dist/index.html +1 -7
  44. package/dist/{src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.9ea622ae.chunk.js → src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.f02c03f9.chunk.js} +733 -986
  45. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.f02c03f9.chunk.js.map +1 -0
  46. package/dist/{src_workers_folder_ts.6e447458.chunk.js → src_workers_folder_ts.8fc1d390.chunk.js} +44 -7
  47. package/dist/src_workers_folder_ts.8fc1d390.chunk.js.map +1 -0
  48. package/dist/{src_workers_tag_ts.6a226161.chunk.js → src_workers_tag_ts.4f5cef62.chunk.js} +106 -106
  49. package/dist/{src_workers_tag_ts.6a226161.chunk.js.map → src_workers_tag_ts.4f5cef62.chunk.js.map} +1 -1
  50. package/dist/{style.9d8f338e.css → style.bc61f842.css} +51 -51
  51. package/dist/style.bc61f842.css.map +1 -0
  52. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-2df2d2.css → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-881368.css} +4 -4
  53. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-2df2d2.css.map → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-881368.css.map} +1 -1
  54. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-2df2d2.22ed60c4.chunk.js → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-881368.fbbefd15.chunk.js} +2371 -567
  55. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-2df2d2.22ed60c4.chunk.js.map → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-881368.fbbefd15.chunk.js.map} +1 -1
  56. package/dist/zapp-shell.bundle.js +141 -132
  57. package/dist/zapp-shell.bundle.js.map +1 -1
  58. package/package.json +10 -10
  59. package/types/account/index.d.ts +3 -8
  60. package/types/exports/index.d.ts +140 -133
  61. package/types/integrations/index.d.ts +1 -1
  62. package/types/loginConfig/index.d.ts +2 -0
  63. package/types/misc/index.d.ts +2 -9
  64. package/types/network/index.d.ts +1 -1
  65. package/types/network/soap.d.ts +1 -0
  66. package/dist/02bc5d70cd204ba4ff65.woff2 +0 -1
  67. package/dist/0d0c0711489df92f6ebe.woff2 +0 -1
  68. package/dist/29984f8c70b21e62becf.woff2 +0 -1
  69. package/dist/3f478a8bb7fe40e15012.woff2 +0 -1
  70. package/dist/47ff671789516a7f0561.woff2 +0 -1
  71. package/dist/59c8d8db76c50cf4f8bc.woff2 +0 -1
  72. package/dist/5b7f75f20a2111247956.woff2 +0 -1
  73. package/dist/606d5eb64baa63e15e27.woff2 +0 -1
  74. package/dist/61f82fb7cd263e651521.woff2 +0 -1
  75. package/dist/6207bdf658c5df65ec26.woff2 +0 -1
  76. package/dist/693f967d01d870c8706d.woff2 +0 -1
  77. package/dist/69b9eca1b73be6442b79.woff2 +0 -1
  78. package/dist/6d08531389398403c965.woff2 +0 -1
  79. package/dist/71fdc62f86e39e176bdf.woff2 +0 -1
  80. package/dist/767e88fc71229a6b3818.woff2 +0 -1
  81. package/dist/7af344330efd68b8b132.woff2 +0 -1
  82. package/dist/810ed0c45d0f3efdcf02.woff2 +0 -1
  83. package/dist/8430c84b60239941a91a.woff2 +0 -1
  84. package/dist/957f391386373df63f07.woff2 +0 -1
  85. package/dist/a03317af61258e6c44b3.woff2 +0 -1
  86. package/dist/ad4db50c48faafed6e47.woff2 +0 -1
  87. package/dist/b38f950f21bb1bad70d0.woff2 +0 -1
  88. package/dist/b3bd46abad6aed7d1fe1.woff +0 -1
  89. package/dist/be4840e2129105365c75.woff2 +0 -1
  90. package/dist/bef62ef324d2651f34f5.woff +0 -1
  91. package/dist/cd5410f97253470e8ad8.woff2 +0 -1
  92. package/dist/d8341d4e2ae00ca565ff.woff +0 -1
  93. package/dist/e9c1e1efdf7a9db4f2b4.woff2 +0 -1
  94. package/dist/ef9295704ee59e22dae6.woff2 +0 -1
  95. package/dist/f5f77baf862c1d2ccab2.woff2 +0 -1
  96. package/dist/f99bf8aa0cd9e400e42f.woff2 +0 -1
  97. package/dist/fafa0d357d24b92a0eab.woff +0 -1
  98. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.9ea622ae.chunk.js.map +0 -1
  99. package/dist/src_workers_folder_ts.6e447458.chunk.js.map +0 -1
  100. package/dist/style.9d8f338e.css.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-shell-ui",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "The Zextras Carbonio web client",
5
5
  "main": "dist/zapp-shell.bundle.js",
6
6
  "types": "./types/index.d.ts",
@@ -11,15 +11,16 @@
11
11
  "scripts": {
12
12
  "build:clean": "rm -rf lib && rm -rf dist && rm -rf pkg",
13
13
  "test": "echo jest",
14
- "_postinstall": "is-ci || husky install",
15
- "prepublishOnly": "pinst --disable && npm run build:clean && npm run build -- -d",
16
- "postpublish": "pinst --enable && rm -rf lib",
14
+ "prepare": "is-ci || husky install",
15
+ "prepack": "npm run build:clean && npm run build -- -d",
16
+ "postpublish": "rm -rf lib",
17
17
  "type-check": "tsc --noEmit",
18
18
  "type-check:watch": "npm run type-check -- --watch",
19
- "lint": "eslint --ext .js,.jsx,.ts,.tsx --resolve-plugins-relative-to node_modules/@zextras/zapp-config src",
19
+ "lint": "eslint --ext .js,.jsx,.ts,.tsx --resolve-plugins-relative-to node_modules/@zextras/carbonio-ui-configs src",
20
20
  "build": "sdk build",
21
21
  "deploy": "sdk deploy",
22
22
  "start": "sdk watch",
23
+ "packTo": "npm pack --pack-destination $PKG_PATH && cd $PKG_PATH && npm i zextras-carbonio-shell-ui-$npm_package_version.tgz",
23
24
  "deploy-on-module": "npm pack && rm -rf $PKG_PATH/node_modules/@zextras/carbonio-shell-ui/* && tar -xf zextras-carbonio-shell-ui-$npm_package_version.tgz -C $PKG_PATH/node_modules/@zextras/carbonio-shell-ui/ --strip-components 1",
24
25
  "pull-translations": "git subtree pull -P translations git@bitbucket.org:zextras/com_zextras_zapp_shell.git master --squash",
25
26
  "push-translations": "git subtree push -P translations git@bitbucket.org:zextras/com_zextras_zapp_shell.git"
@@ -67,7 +68,7 @@
67
68
  "@types/ua-parser-js": "^0.7.36",
68
69
  "@types/webpack-env": "1.16.3",
69
70
  "@zextras/carbonio-ui-configs": "^0.1.11",
70
- "@zextras/carbonio-ui-sdk": "1.3.1",
71
+ "@zextras/carbonio-ui-sdk": "^1.5.0",
71
72
  "autoprefixer": "10.4.2",
72
73
  "babel-jest": "27.3.1",
73
74
  "babel-loader": "8.2.3",
@@ -85,7 +86,6 @@
85
86
  "moment": "2.29.1",
86
87
  "msw": "0.36.7",
87
88
  "node-fetch": "2.6.6",
88
- "pinst": "2.1.6",
89
89
  "postcss-loader": "6.2.1",
90
90
  "prop-types": "15.8.1",
91
91
  "rollup": "2.66.1",
@@ -100,7 +100,7 @@
100
100
  "@fontsource/roboto": "^4.5.7",
101
101
  "@sentry/browser": "^6.17.7",
102
102
  "@tinymce/tinymce-react": "^3.13.0",
103
- "@zextras/carbonio-design-system": "^1.0.0",
103
+ "@zextras/carbonio-design-system": "^1.1.0",
104
104
  "@zextras/carbonio-ui-preview": "^1.0.0",
105
105
  "darkreader": "4.9.46",
106
106
  "history": "^5.2.0",
@@ -121,13 +121,13 @@
121
121
  "redux-logger": "3.0.6",
122
122
  "redux-persist": "6.0.0",
123
123
  "remark-gfm": "3.0.1",
124
- "tinymce": "^5.10.2",
124
+ "tinymce": "^5.10.7",
125
125
  "ua-parser-js": "^1.0.2",
126
126
  "zustand": "^3.7.2"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@reduxjs/toolkit": "^1.6.2",
130
- "@zextras/carbonio-design-system": ">=1.0.0",
130
+ "@zextras/carbonio-design-system": "^1.0.0",
131
131
  "core-js": "^3.19.1",
132
132
  "moment": "^2.29.1",
133
133
  "node-fetch": "^2.6.6",
@@ -4,8 +4,9 @@
4
4
  * SPDX-License-Identifier: AGPL-3.0-only
5
5
  */
6
6
 
7
- import { DARK_READER_PROP_KEY, SHELL_APP_ID } from '../../src/constants';
8
- import { DarkReaderPropValues } from '../misc';
7
+ import type { DarkReaderPropValues } from '../misc';
8
+ import { DARK_READER_PROP_KEY } from '../../src/constants';
9
+ import type { SHELL_APP_ID } from '../exports';
9
10
 
10
11
  export interface ZimletProp {
11
12
  name: string;
@@ -19,12 +20,6 @@ export interface ZappDarkreaderModeZimletProp extends ZimletProp {
19
20
  _content: DarkReaderPropValues;
20
21
  }
21
22
 
22
- export function isZappDarkreaderModeZimletProp(
23
- prop: ZimletProp
24
- ): ZimletProp is ZappDarkreaderModeZimletProp {
25
- return prop.name === DARK_READER_PROP_KEY && prop.zimlet === SHELL_APP_ID;
26
- }
27
-
28
23
  export type SoapFetch = <Request, Response>(
29
24
  api: string,
30
25
  body: Request,
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * SPDX-License-Identifier: AGPL-3.0-only
5
5
  */
6
- /* eslint-disable @typescript-eslint/ban-types */
7
6
 
8
7
  import { i18n } from 'i18next';
9
8
  import { ComponentType, Dispatch, FC, SetStateAction } from 'react';
@@ -38,203 +37,211 @@ import { INotificationManager } from '../notification';
38
37
  import { QueryChip } from '../search';
39
38
  import { Tag, Tags } from '../tags';
40
39
 
41
- export const getBridgedFunctions: () => {
40
+ declare const getBridgedFunctions: () => {
42
41
  createModal: (...params: any[]) => void;
43
42
  createSnackbar: (...params: any[]) => void;
44
43
  getHistory: () => History;
45
44
  };
46
- export const editSettings: (mods: Mods) => Promise<any>;
47
- export const ZIMBRA_STANDARD_COLORS: Array<{ zValue: number; hex: string; zLabel: string }>;
48
- export const FOLDERS: {
45
+ declare const editSettings: (mods: Mods) => Promise<any>;
46
+ declare const ZIMBRA_STANDARD_COLORS: Array<{ zValue: number; hex: string; zLabel: string }>;
47
+ declare const FOLDERS: {
49
48
  [name: string]: string;
50
49
  };
51
- export const SHELL_APP_ID = 'carbonio-shell-ui';
52
- export const SETTINGS_APP_ID = 'settings';
53
- export const SEARCH_APP_ID = 'search';
54
- export const ACTION_TYPES: {
50
+ declare const SHELL_APP_ID = 'carbonio-shell-ui';
51
+ declare const SETTINGS_APP_ID = 'settings';
52
+ declare const SEARCH_APP_ID = 'search';
53
+ declare const ACTION_TYPES: {
55
54
  [name: string]: string;
56
55
  };
57
- export const SHELL_MODES: Record<string, ShellModes>;
58
- export const BASENAME: string;
59
-
60
- export const IS_STANDALONE: boolean;
61
-
62
- export const getIntegratedHook: (id: string) => [Function, boolean];
63
- export const getIntegratedFunction: (id: string) => [Function, boolean];
64
- export const getIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
65
- export const getActions: <T>(target: T, type: string) => Array<Action>;
66
- export const getActionsFactory: (type: string) => <T>(target: T) => Array<Action>;
67
- export const getAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
68
- export const getActionFactory: <T>(
56
+ declare const ROOT_NAME: string;
57
+ declare const SHELL_MODES: Record<string, ShellModes>;
58
+ declare const BASENAME: string;
59
+
60
+ declare const IS_STANDALONE: boolean;
61
+
62
+ // eslint-disable-next-line @typescript-eslint/ban-types
63
+ declare const getIntegratedHook: (id: string) => [Function, boolean];
64
+ // eslint-disable-next-line @typescript-eslint/ban-types
65
+ declare const getIntegratedFunction: (id: string) => [Function, boolean];
66
+ declare const getIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
67
+ declare const getActions: <T>(target: T, type: string) => Array<Action>;
68
+ declare const getActionsFactory: (type: string) => <T>(target: T) => Array<Action>;
69
+ declare const getAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
70
+ declare const getActionFactory: <T>(
69
71
  type: string,
70
72
  id: string
71
73
  ) => [ActionFactory<T> | undefined, boolean];
72
- export const useIntegratedHook: (id: string) => [Function, boolean];
73
- export const useIntegratedFunction: (id: string) => [Function, boolean];
74
- export const useIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
75
- export const useActions: <T>(target: T, type: string) => Array<Action>;
76
- export const useActionsFactory: <T>(type: string) => CombinedActionFactory<T>;
77
- export const useAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
78
- export const useActionFactory: <T>(
74
+ // eslint-disable-next-line @typescript-eslint/ban-types
75
+ declare const useIntegratedHook: (id: string) => [Function, boolean];
76
+ // eslint-disable-next-line @typescript-eslint/ban-types
77
+ declare const useIntegratedFunction: (id: string) => [Function, boolean];
78
+ declare const useIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
79
+ declare const useActions: <T>(target: T, type: string) => Array<Action>;
80
+ declare const useActionsFactory: <T>(type: string) => CombinedActionFactory<T>;
81
+ declare const useAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
82
+ declare const useActionFactory: <T>(
79
83
  type: string,
80
84
  id: string
81
85
  ) => [ActionFactory<T> | undefined, boolean];
82
- export const useApp: () => CarbonioModule;
83
- export const getApp: () => CarbonioModule;
84
- export const useAppContext: <T>() => T;
85
- export const getAppContext: <T>() => T;
86
- export const useUserAccount: () => Account;
87
- export const useUserAccounts: () => Array<Account>;
88
- export const useUserRights: () => AccountRights;
89
- export const useUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
90
- export const getUserAccount: () => Account;
91
- export const getUserAccounts: () => Array<Account>;
92
- export const getUserRights: () => AccountRights;
93
- export const getUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
94
- export const useTags: () => Tags;
95
- export const getTags: () => Tags;
96
- export const useTag: (id: string) => Tag;
97
- export const getTag: (id: string) => Tag;
98
- export const useFolder: (id: string) => BaseFolder | Folder | LinkFolder;
99
- export const getFolder: (id: string) => BaseFolder | Folder | LinkFolder;
100
- export const useFolders: () => Folders;
101
- export const getFolders: () => Folders;
102
- export const useRoot: (name: string) => Folder;
103
- export const getRoot: (name: string) => Folder;
104
- export const useRoots: () => Roots;
105
- export const getRoots: () => Roots;
106
- export const useRootByView: (view: string) => Folder;
107
- export const getRootByView: (view: string) => Folder;
108
- export const createTag: (tag: Omit<Tag, 'id'>) => Promise<CreateTagResponse>;
109
- export const renameTag: (id: string, name: string) => Promise<TagActionResponse>;
110
- export const deleteTag: (id: string) => Promise<TagActionResponse>;
111
- export const changeTagColor: (id: string, color: number | string) => Promise<TagActionResponse>;
112
- export const useUserSettings: () => AccountSettings;
113
- export const useUserSetting: <T = void>(...path: Array<string>) => string | T;
114
- export const getUserSettings: () => AccountSettings;
115
- export const getUserSetting: <T = void>(...path: Array<string>) => string | T;
116
- export const useNotify: () => Array<SoapNotify>;
117
- export const useRefresh: () => SoapRefresh;
118
- export const AppLink: FC<LinkProps>;
119
- export const Spinner: FC;
120
-
121
- export const useIsMobile: () => boolean;
122
- export const soapFetch: SoapFetch;
123
- export const xmlSoapFetch: SoapFetch;
124
- export const report: (error: Error, hint?: unknown) => void;
125
- export const setAppContext: <T>(obj: T) => void;
126
-
127
- export const removeActions: (...ids: Array<string>) => void;
128
- export const registerActions: (
86
+ declare const useApp: () => CarbonioModule;
87
+ declare const getApp: () => CarbonioModule;
88
+ declare const useAppContext: <T>() => T;
89
+ declare const getAppContext: <T>() => T;
90
+ declare const useUserAccount: () => Account;
91
+ declare const useUserAccounts: () => Array<Account>;
92
+ declare const useUserRights: () => AccountRights;
93
+ declare const useUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
94
+ declare const getUserAccount: () => Account;
95
+ declare const getUserAccounts: () => Array<Account>;
96
+ declare const getUserRights: () => AccountRights;
97
+ declare const getUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
98
+ declare const useTags: () => Tags;
99
+ declare const getTags: () => Tags;
100
+ declare const useTag: (id: string) => Tag;
101
+ declare const getTag: (id: string) => Tag;
102
+ declare const useFolder: (id: string) => BaseFolder | Folder | LinkFolder;
103
+ declare const getFolder: (id: string) => BaseFolder | Folder | LinkFolder;
104
+ declare const useFolders: () => Folders;
105
+ declare const getFolders: () => Folders;
106
+ declare const useRoot: (name: string) => Folder;
107
+ declare const getRoot: (name: string) => Folder;
108
+ declare const useRoots: () => Roots;
109
+ declare const getRoots: () => Roots;
110
+ declare const useRootByView: (view: string) => Folder;
111
+ declare const getRootByView: (view: string) => Folder;
112
+ declare const createTag: (tag: Omit<Tag, 'id'>) => Promise<CreateTagResponse>;
113
+ declare const renameTag: (id: string, name: string) => Promise<TagActionResponse>;
114
+ declare const deleteTag: (id: string) => Promise<TagActionResponse>;
115
+ declare const changeTagColor: (id: string, color: number | string) => Promise<TagActionResponse>;
116
+ declare const useUserSettings: () => AccountSettings;
117
+ declare const useUserSetting: <T = void>(...path: Array<string>) => string | T;
118
+ declare const getUserSettings: () => AccountSettings;
119
+ declare const getUserSetting: <T = void>(...path: Array<string>) => string | T;
120
+ declare const useNotify: () => Array<SoapNotify>;
121
+ declare const useRefresh: () => SoapRefresh;
122
+ declare const AppLink: FC<LinkProps>;
123
+ declare const Spinner: FC;
124
+
125
+ declare const useIsMobile: () => boolean;
126
+ declare const soapFetch: SoapFetch;
127
+ declare const xmlSoapFetch: SoapFetch;
128
+ declare const report: (error: Error, hint?: unknown) => void;
129
+ declare const setAppContext: <T>(obj: T) => void;
130
+
131
+ declare const removeActions: (...ids: Array<string>) => void;
132
+ declare const registerActions: (
129
133
  ...items: Array<{ id: string; action: ActionFactory<unknown>; type: string }>
130
134
  ) => void;
131
- export const removeComponents: (...ids: Array<string>) => void;
132
- export const registerComponents: (
135
+ declare const removeComponents: (...ids: Array<string>) => void;
136
+ declare const registerComponents: (
133
137
  ...items: Array<{ id: string; component: ComponentType }>
134
138
  ) => void;
135
- export const removeHooks: (...ids: Array<string>) => void;
136
- export const registerHooks: (...items: Array<{ id: string; hook: AnyFunction }>) => void;
137
- export const removeFunctions: (...ids: Array<string>) => void;
138
- export const registerFunctions: (...items: Array<{ id: string; fn: AnyFunction }>) => void;
139
+ declare const removeHooks: (...ids: Array<string>) => void;
140
+ declare const registerHooks: (...items: Array<{ id: string; hook: AnyFunction }>) => void;
141
+ declare const removeFunctions: (...ids: Array<string>) => void;
142
+ declare const registerFunctions: (...items: Array<{ id: string; fn: AnyFunction }>) => void;
139
143
  // add route (id route primaryBar secondaryBar app)
140
- export const addRoute: (routeData: Partial<AppRouteDescriptor>) => string;
141
- export const setRouteVisibility: (id: string, visible: boolean) => void;
144
+ declare const addRoute: (routeData: Partial<AppRouteDescriptor>) => string;
145
+ declare const setRouteVisibility: (id: string, visible: boolean) => void;
142
146
  // remove route (id | route)
143
- export const removeRoute: (id: string) => void;
147
+ declare const removeRoute: (id: string) => void;
144
148
  //
145
149
  // update primaryBar
146
- export const updatePrimaryBadge: (badge: Partial<BadgeInfo>, id: string) => void;
147
- export const updateUtilityBadge: (badge: Partial<BadgeInfo>, id: string) => void;
150
+ declare const updatePrimaryBadge: (badge: Partial<BadgeInfo>, id: string) => void;
151
+ declare const updateUtilityBadge: (badge: Partial<BadgeInfo>, id: string) => void;
148
152
  //
149
153
  // add board
150
- export const addBoardView: (data: Object & Partial<BoardView>) => string;
154
+ declare const addBoardView: (data: Record<string, unknown> & Partial<BoardView>) => string;
151
155
  // remove board
152
- export const removeBoardView: (id: string) => void;
156
+ declare const removeBoardView: (id: string) => void;
153
157
  //
154
158
  // add settings
155
- export const addSettingsView: (data: Partial<SettingsView>) => string;
159
+ declare const addSettingsView: (data: Partial<SettingsView>) => string;
156
160
  // remove settings
157
- export const removeSettingsView: (id: string) => void;
161
+ declare const removeSettingsView: (id: string) => void;
158
162
  //
159
163
  // add search
160
- export const addSearchView: (data: Partial<SearchView>) => string;
164
+ declare const addSearchView: (data: Partial<SearchView>) => string;
161
165
  // remove search
162
- export const removeSearchView: (id: string) => void;
166
+ declare const removeSearchView: (id: string) => void;
163
167
  //
164
168
  // add utility
165
- export const addUtilityView: (data: Partial<UtilityView>) => string;
169
+ declare const addUtilityView: (data: Partial<UtilityView>) => string;
166
170
  // remove utility
167
- export const removeUtilityView: (id: string) => void;
171
+ declare const removeUtilityView: (id: string) => void;
168
172
  //
169
173
  // add primaryAccessory
170
- export const addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => string;
174
+ declare const addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => string;
171
175
  // remove primaryAccessory
172
- export const removePrimaryAccessoryView: (id: string) => void;
176
+ declare const removePrimaryAccessoryView: (id: string) => void;
173
177
  //
174
178
  // add secondaryAccessory
175
- export const addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => string;
179
+ declare const addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => string;
176
180
  // remove secondaryAccessory
177
- export const removeSecondaryAccessoryView: (id: string) => void;
178
- export const usePushHistoryCallback: () => (params: HistoryParams) => void;
179
- export const useReplaceHistoryCallback: () => (params: HistoryParams) => void;
180
- export const useGoBackHistoryCallback: () => () => void;
181
- export const pushHistory: (params: HistoryParams) => void;
182
- export const replaceHistory: (params: HistoryParams) => void;
183
- export const goBackHistory: () => void;
184
- export const useCurrentRoute: () => AppRoute | undefined;
185
- export const getCurrentRoute: () => AppRoute | undefined;
181
+ declare const removeSecondaryAccessoryView: (id: string) => void;
182
+ declare const usePushHistoryCallback: () => (params: HistoryParams) => void;
183
+ declare const useReplaceHistoryCallback: () => (params: HistoryParams) => void;
184
+ declare const useGoBackHistoryCallback: () => () => void;
185
+ declare const pushHistory: (params: HistoryParams) => void;
186
+ declare const replaceHistory: (params: HistoryParams) => void;
187
+ declare const goBackHistory: () => void;
188
+ declare const useCurrentRoute: () => AppRoute | undefined;
189
+ declare const getCurrentRoute: () => AppRoute | undefined;
186
190
 
187
191
  // FOLDERS
188
192
 
189
193
  // ROOTS
190
194
 
191
195
  // ROOTS BY USER
192
- export const useRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
193
- export const getRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
196
+ declare const useRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
197
+ declare const getRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
194
198
 
195
199
  // SEARCHES
196
200
 
197
- export const useSearchFolder: (id: string) => SearchFolder | undefined;
198
- export const useSearchFolders: (id: string) => SearchFolder | undefined;
199
- export const getSearchFolder: () => Searches;
200
- export const getSearchFolders: () => Searches;
201
+ declare const useSearchFolder: (id: string) => SearchFolder | undefined;
202
+ declare const useSearchFolders: (id: string) => SearchFolder | undefined;
203
+ declare const getSearchFolder: () => Searches;
204
+ declare const getSearchFolders: () => Searches;
201
205
 
202
206
  // Accordion-ize
203
207
 
204
- export const useFoldersByView: (view: string) => Array<Folder>;
208
+ declare const useFoldersByView: (view: string) => Array<Folder>;
205
209
 
206
- export const useFoldersAccordionByView: (
210
+ declare const useFoldersAccordionByView: (
207
211
  view: string,
208
212
  CustomComponent: ComponentType<{ folder: Folder }>,
209
213
  itemProps?: (item: AccordionFolder) => Record<string, any>
210
214
  ) => Array<AccordionFolder>;
211
215
 
212
216
  // NOTIFICATION
213
- export const getNotificationManager: () => INotificationManager;
217
+ declare const getNotificationManager: () => INotificationManager;
214
218
 
215
219
  // Run Search
216
- export const runSearch: (query: Array<QueryChip>, module: string) => void;
220
+ declare const runSearch: (query: Array<QueryChip>, module: string) => void;
217
221
 
218
- export const useLocalStorage: <T>(key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
222
+ declare const useLocalStorage: <T>(
223
+ key: string,
224
+ initialValue: T
225
+ ) => [T, Dispatch<SetStateAction<T>>];
219
226
 
220
227
  // TRANSLATIONS
221
- export const getI18n: () => i18n;
222
- export const useI18n: () => i18n;
223
- export const t: TFunction;
228
+ declare const getI18n: () => i18n;
229
+ declare const useI18n: () => i18n;
230
+ declare const t: TFunction;
224
231
 
225
- export const addBoard: <T = any>(
232
+ declare const addBoard: <T = any>(
226
233
  board: Omit<Board<T>, 'app' | 'icon' | 'id'> & { id?: string; icon?: string },
227
234
  expanded?: boolean
228
235
  ) => Board;
229
- export const closeBoard: (id: string) => void;
230
- export const updateBoard: <T = any>(id: string, board: Partial<Board<T>>) => void;
231
- export const updateBoardContext: <T = any>(id: string, context: T) => void;
232
- export const getBoardById: <T>(id: string) => Board<T>;
233
- export const getBoardContextById: <T>(id: string) => T;
234
- export const useBoardContextById: <T>(id: string) => T;
235
- export const useBoardById: <T>(id: string) => Board<T>;
236
- export const minimizeBoards: () => void;
237
- export const reopenBoards: () => void;
238
- export const setCurrentBoard: (id: string) => void;
239
- export const useBoardHooks: () => BoardHooksContext;
240
- export const useBoard: <T>() => Board<T>;
236
+ declare const closeBoard: (id: string) => void;
237
+ declare const updateBoard: <T = any>(id: string, board: Partial<Board<T>>) => void;
238
+ declare const updateBoardContext: <T = any>(id: string, context: T) => void;
239
+ declare const getBoardById: <T>(id: string) => Board<T>;
240
+ declare const getBoardContextById: <T>(id: string) => T;
241
+ declare const useBoardContextById: <T>(id: string) => T;
242
+ declare const useBoardById: <T>(id: string) => Board<T>;
243
+ declare const minimizeBoards: () => void;
244
+ declare const reopenBoards: () => void;
245
+ declare const setCurrentBoard: (id: string) => void;
246
+ declare const useBoardHooks: () => BoardHooksContext;
247
+ declare const useBoard: <T>() => Board<T>;
@@ -30,7 +30,7 @@ export type Action = {
30
30
  label: string;
31
31
  icon: string;
32
32
  click: (ev: SyntheticEvent<HTMLElement> | KeyboardEvent) => void;
33
- type: 'divider';
33
+ type?: 'divider';
34
34
  primary?: boolean;
35
35
  group?: string;
36
36
  disabled?: boolean;
@@ -10,4 +10,6 @@ export type LoginConfigStore = {
10
10
  carbonioWebUiDarkAppLogo?: string;
11
11
  carbonioWebUiTitle?: string;
12
12
  carbonioWebUiFavicon?: string;
13
+ carbonioWebUiPrimaryColor?: string;
14
+ carbonioWebUiDarkPrimaryColor?: string;
13
15
  };
@@ -21,15 +21,6 @@ export enum JSNS {
21
21
 
22
22
  export type DarkReaderPropValues = typeof DARK_READER_VALUES[number];
23
23
 
24
- export function isDarkReaderPropValues(
25
- maybeDarkReaderPropValue: unknown
26
- ): maybeDarkReaderPropValue is DarkReaderPropValues {
27
- return (
28
- typeof maybeDarkReaderPropValue === 'string' &&
29
- DARK_READER_VALUES.includes(maybeDarkReaderPropValue)
30
- );
31
- }
32
-
33
24
  // eslint-disable-next-line @typescript-eslint/ban-types
34
25
  export type PackageDependentFunction = (app: string) => Function;
35
26
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -250,6 +241,8 @@ export type BaseFolder = {
250
241
  // ACL for sharing
251
242
  acl?: { grant: Array<Grant> };
252
243
  retentionPolicy?: SoapRetentionPolicy;
244
+ // indicates whether this folder is displayed in Calendars
245
+ checked?: boolean;
253
246
  };
254
247
 
255
248
  export type LinkFolderFields = {
@@ -118,7 +118,7 @@ export type IdentityMods = {
118
118
  createList?: { prefs: CreateIdentityProps }[];
119
119
  };
120
120
 
121
- export type PrefsMods = Record<string, string | number | boolean>;
121
+ export type PrefsMods = Record<string, unknown>;
122
122
 
123
123
  export type Mods = Record<string, Record<string, unknown>> & {
124
124
  props?: PropsMods;
@@ -74,6 +74,7 @@ export type SoapNotify = {
74
74
  m?: Array<unknown>;
75
75
  c?: Array<unknown>;
76
76
  folder?: Array<Partial<SoapFolder>>;
77
+ link?: Array<Partial<SoapLink>>;
77
78
  tag?: Array<Partial<Tag>>;
78
79
  mbx: [{ s: number }];
79
80
  };
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "db2632771401f61463fec5958f76fd7f.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "227c93190fe7f82de3f802ce0b614d3b.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "d8642a3d1d4ef6179644843ecacc53b6.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "32fc45a3d1e8ea11fabc34cc5a93806f.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "b009a76ad6afe4ebd301e36f847a29be.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "d010f1f324e111a22e53f96b374e7122.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "3425a701027d0699e369d364c89b9395.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "c35e4c3958e209d17b319ad751c0cec2.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "6fb9cffb1d3e72bf92931a793383673a.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "804378952da8a10faae2681afaef3d53.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "9165081d10e1ba60138421473b64c3e3.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "50e795c1345353b0e99611abfba3ea82.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "f25d774ecfe0996f8eb574b643d41915.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "cad7d3d9cb265e334e58e65cd1ae36e8.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "62ced72e5832f02c279633803ce1e348.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "ed67ad54b1a8f5d211503d1685cd9249.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "4777461b144e55145268a97fdea16395.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "71a33b6b50457b2c903a3a2312e8eea1.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "3230f9b040f3c630e0c34c9296b74778.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "dc7dcec8e3f654e0ed63f83e580d9c05.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "be4d02458ce53887dc3729735f37b7ae.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "861b791f9de857a6e7bcf77612740c18.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "a457fde362a540fcadff80329251b6ae.woff";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "c48fb6765a9fcb00b3300fee318b45df.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "c5d001fa922fa66a147f5f3aea5ef30e.woff";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "35b9d6be04b95f0f05306d334a22e71a.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "168d6383e73339293ac33d2726ba151e.woff";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "bd9854c751441ccc1a704e09f638e4d3.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "9ac81fefbe6c319ea40be5069cbf2b53.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "169619821ea93019d1bba0c39cdfe80b.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "1431d1cef06ad04f54588bf42acf2457.woff2";
@@ -1 +0,0 @@
1
- export default __webpack_public_path__ + "0ab669b7a0d19b178f57d46f0e0db5cb.woff";