@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.
- package/dist/{20d012c938e8d0dcc703e4edc2714d23.mp3 → 20d012c938e8d0dcc703.mp3} +0 -0
- package/dist/CHANGELOG.md +20 -0
- package/dist/PKGBUILD +7 -7
- package/dist/commit +1 -1
- package/dist/component.json +3 -3
- package/dist/{db1a38cf321d5b3025a31cd903b7d486.png → db1a38cf321d5b3025a3.png} +0 -0
- package/dist/{168d6383e73339293ac33d2726ba151e.woff → files/roboto-all-300-normal.woff} +0 -0
- package/dist/{c5d001fa922fa66a147f5f3aea5ef30e.woff → files/roboto-all-400-normal.woff} +0 -0
- package/dist/{0ab669b7a0d19b178f57d46f0e0db5cb.woff → files/roboto-all-500-normal.woff} +0 -0
- package/dist/{a457fde362a540fcadff80329251b6ae.woff → files/roboto-all-700-normal.woff} +0 -0
- package/dist/{1431d1cef06ad04f54588bf42acf2457.woff2 → files/roboto-cyrillic-300-normal.woff2} +0 -0
- package/dist/{71a33b6b50457b2c903a3a2312e8eea1.woff2 → files/roboto-cyrillic-400-normal.woff2} +0 -0
- package/dist/{cad7d3d9cb265e334e58e65cd1ae36e8.woff2 → files/roboto-cyrillic-500-normal.woff2} +0 -0
- package/dist/{d010f1f324e111a22e53f96b374e7122.woff2 → files/roboto-cyrillic-700-normal.woff2} +0 -0
- package/dist/{4777461b144e55145268a97fdea16395.woff2 → files/roboto-cyrillic-ext-300-normal.woff2} +0 -0
- package/dist/{804378952da8a10faae2681afaef3d53.woff2 → files/roboto-cyrillic-ext-400-normal.woff2} +0 -0
- package/dist/{62ced72e5832f02c279633803ce1e348.woff2 → files/roboto-cyrillic-ext-500-normal.woff2} +0 -0
- package/dist/{be4d02458ce53887dc3729735f37b7ae.woff2 → files/roboto-cyrillic-ext-700-normal.woff2} +0 -0
- package/dist/{db2632771401f61463fec5958f76fd7f.woff2 → files/roboto-greek-300-normal.woff2} +0 -0
- package/dist/{c35e4c3958e209d17b319ad751c0cec2.woff2 → files/roboto-greek-400-normal.woff2} +0 -0
- package/dist/{9ac81fefbe6c319ea40be5069cbf2b53.woff2 → files/roboto-greek-500-normal.woff2} +0 -0
- package/dist/{50e795c1345353b0e99611abfba3ea82.woff2 → files/roboto-greek-700-normal.woff2} +0 -0
- package/dist/{35b9d6be04b95f0f05306d334a22e71a.woff2 → files/roboto-greek-ext-300-normal.woff2} +0 -0
- package/dist/{169619821ea93019d1bba0c39cdfe80b.woff2 → files/roboto-greek-ext-400-normal.woff2} +0 -0
- package/dist/{6fb9cffb1d3e72bf92931a793383673a.woff2 → files/roboto-greek-ext-500-normal.woff2} +0 -0
- package/dist/{bd9854c751441ccc1a704e09f638e4d3.woff2 → files/roboto-greek-ext-700-normal.woff2} +0 -0
- package/dist/{c48fb6765a9fcb00b3300fee318b45df.woff2 → files/roboto-latin-300-normal.woff2} +0 -0
- package/dist/{b009a76ad6afe4ebd301e36f847a29be.woff2 → files/roboto-latin-400-normal.woff2} +0 -0
- package/dist/{f25d774ecfe0996f8eb574b643d41915.woff2 → files/roboto-latin-500-normal.woff2} +0 -0
- package/dist/{227c93190fe7f82de3f802ce0b614d3b.woff2 → files/roboto-latin-700-normal.woff2} +0 -0
- package/dist/{dc7dcec8e3f654e0ed63f83e580d9c05.woff2 → files/roboto-latin-ext-300-normal.woff2} +0 -0
- package/dist/{861b791f9de857a6e7bcf77612740c18.woff2 → files/roboto-latin-ext-400-normal.woff2} +0 -0
- package/dist/{9165081d10e1ba60138421473b64c3e3.woff2 → files/roboto-latin-ext-500-normal.woff2} +0 -0
- package/dist/{ed67ad54b1a8f5d211503d1685cd9249.woff2 → files/roboto-latin-ext-700-normal.woff2} +0 -0
- package/dist/{32fc45a3d1e8ea11fabc34cc5a93806f.woff2 → files/roboto-vietnamese-300-normal.woff2} +0 -0
- package/dist/{3230f9b040f3c630e0c34c9296b74778.woff2 → files/roboto-vietnamese-400-normal.woff2} +0 -0
- package/dist/{d8642a3d1d4ef6179644843ecacc53b6.woff2 → files/roboto-vietnamese-500-normal.woff2} +0 -0
- package/dist/{3425a701027d0699e369d364c89b9395.woff2 → files/roboto-vietnamese-700-normal.woff2} +0 -0
- package/dist/i18n/it.json +1 -1
- package/dist/i18n/pl.json +1 -1
- package/dist/i18n/ru.json +1 -1
- package/dist/i18n/tr.json +1 -1
- package/dist/index.html +1 -7
- 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
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.f02c03f9.chunk.js.map +1 -0
- package/dist/{src_workers_folder_ts.6e447458.chunk.js → src_workers_folder_ts.8fc1d390.chunk.js} +44 -7
- package/dist/src_workers_folder_ts.8fc1d390.chunk.js.map +1 -0
- package/dist/{src_workers_tag_ts.6a226161.chunk.js → src_workers_tag_ts.4f5cef62.chunk.js} +106 -106
- package/dist/{src_workers_tag_ts.6a226161.chunk.js.map → src_workers_tag_ts.4f5cef62.chunk.js.map} +1 -1
- package/dist/{style.9d8f338e.css → style.bc61f842.css} +51 -51
- package/dist/style.bc61f842.css.map +1 -0
- 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
- 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
- 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
- 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
- package/dist/zapp-shell.bundle.js +141 -132
- package/dist/zapp-shell.bundle.js.map +1 -1
- package/package.json +10 -10
- package/types/account/index.d.ts +3 -8
- package/types/exports/index.d.ts +140 -133
- package/types/integrations/index.d.ts +1 -1
- package/types/loginConfig/index.d.ts +2 -0
- package/types/misc/index.d.ts +2 -9
- package/types/network/index.d.ts +1 -1
- package/types/network/soap.d.ts +1 -0
- package/dist/02bc5d70cd204ba4ff65.woff2 +0 -1
- package/dist/0d0c0711489df92f6ebe.woff2 +0 -1
- package/dist/29984f8c70b21e62becf.woff2 +0 -1
- package/dist/3f478a8bb7fe40e15012.woff2 +0 -1
- package/dist/47ff671789516a7f0561.woff2 +0 -1
- package/dist/59c8d8db76c50cf4f8bc.woff2 +0 -1
- package/dist/5b7f75f20a2111247956.woff2 +0 -1
- package/dist/606d5eb64baa63e15e27.woff2 +0 -1
- package/dist/61f82fb7cd263e651521.woff2 +0 -1
- package/dist/6207bdf658c5df65ec26.woff2 +0 -1
- package/dist/693f967d01d870c8706d.woff2 +0 -1
- package/dist/69b9eca1b73be6442b79.woff2 +0 -1
- package/dist/6d08531389398403c965.woff2 +0 -1
- package/dist/71fdc62f86e39e176bdf.woff2 +0 -1
- package/dist/767e88fc71229a6b3818.woff2 +0 -1
- package/dist/7af344330efd68b8b132.woff2 +0 -1
- package/dist/810ed0c45d0f3efdcf02.woff2 +0 -1
- package/dist/8430c84b60239941a91a.woff2 +0 -1
- package/dist/957f391386373df63f07.woff2 +0 -1
- package/dist/a03317af61258e6c44b3.woff2 +0 -1
- package/dist/ad4db50c48faafed6e47.woff2 +0 -1
- package/dist/b38f950f21bb1bad70d0.woff2 +0 -1
- package/dist/b3bd46abad6aed7d1fe1.woff +0 -1
- package/dist/be4840e2129105365c75.woff2 +0 -1
- package/dist/bef62ef324d2651f34f5.woff +0 -1
- package/dist/cd5410f97253470e8ad8.woff2 +0 -1
- package/dist/d8341d4e2ae00ca565ff.woff +0 -1
- package/dist/e9c1e1efdf7a9db4f2b4.woff2 +0 -1
- package/dist/ef9295704ee59e22dae6.woff2 +0 -1
- package/dist/f5f77baf862c1d2ccab2.woff2 +0 -1
- package/dist/f99bf8aa0cd9e400e42f.woff2 +0 -1
- package/dist/fafa0d357d24b92a0eab.woff +0 -1
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.9ea622ae.chunk.js.map +0 -1
- package/dist/src_workers_folder_ts.6e447458.chunk.js.map +0 -1
- 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.
|
|
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
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"postpublish": "
|
|
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/
|
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
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",
|
package/types/account/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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,
|
package/types/exports/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
40
|
+
declare const getBridgedFunctions: () => {
|
|
42
41
|
createModal: (...params: any[]) => void;
|
|
43
42
|
createSnackbar: (...params: any[]) => void;
|
|
44
43
|
getHistory: () => History;
|
|
45
44
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
132
|
-
|
|
135
|
+
declare const removeComponents: (...ids: Array<string>) => void;
|
|
136
|
+
declare const registerComponents: (
|
|
133
137
|
...items: Array<{ id: string; component: ComponentType }>
|
|
134
138
|
) => void;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
141
|
-
|
|
144
|
+
declare const addRoute: (routeData: Partial<AppRouteDescriptor>) => string;
|
|
145
|
+
declare const setRouteVisibility: (id: string, visible: boolean) => void;
|
|
142
146
|
// remove route (id | route)
|
|
143
|
-
|
|
147
|
+
declare const removeRoute: (id: string) => void;
|
|
144
148
|
//
|
|
145
149
|
// update primaryBar
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
154
|
+
declare const addBoardView: (data: Record<string, unknown> & Partial<BoardView>) => string;
|
|
151
155
|
// remove board
|
|
152
|
-
|
|
156
|
+
declare const removeBoardView: (id: string) => void;
|
|
153
157
|
//
|
|
154
158
|
// add settings
|
|
155
|
-
|
|
159
|
+
declare const addSettingsView: (data: Partial<SettingsView>) => string;
|
|
156
160
|
// remove settings
|
|
157
|
-
|
|
161
|
+
declare const removeSettingsView: (id: string) => void;
|
|
158
162
|
//
|
|
159
163
|
// add search
|
|
160
|
-
|
|
164
|
+
declare const addSearchView: (data: Partial<SearchView>) => string;
|
|
161
165
|
// remove search
|
|
162
|
-
|
|
166
|
+
declare const removeSearchView: (id: string) => void;
|
|
163
167
|
//
|
|
164
168
|
// add utility
|
|
165
|
-
|
|
169
|
+
declare const addUtilityView: (data: Partial<UtilityView>) => string;
|
|
166
170
|
// remove utility
|
|
167
|
-
|
|
171
|
+
declare const removeUtilityView: (id: string) => void;
|
|
168
172
|
//
|
|
169
173
|
// add primaryAccessory
|
|
170
|
-
|
|
174
|
+
declare const addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => string;
|
|
171
175
|
// remove primaryAccessory
|
|
172
|
-
|
|
176
|
+
declare const removePrimaryAccessoryView: (id: string) => void;
|
|
173
177
|
//
|
|
174
178
|
// add secondaryAccessory
|
|
175
|
-
|
|
179
|
+
declare const addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => string;
|
|
176
180
|
// remove secondaryAccessory
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
193
|
-
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
|
|
208
|
+
declare const useFoldersByView: (view: string) => Array<Folder>;
|
|
205
209
|
|
|
206
|
-
|
|
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
|
-
|
|
217
|
+
declare const getNotificationManager: () => INotificationManager;
|
|
214
218
|
|
|
215
219
|
// Run Search
|
|
216
|
-
|
|
220
|
+
declare const runSearch: (query: Array<QueryChip>, module: string) => void;
|
|
217
221
|
|
|
218
|
-
|
|
222
|
+
declare const useLocalStorage: <T>(
|
|
223
|
+
key: string,
|
|
224
|
+
initialValue: T
|
|
225
|
+
) => [T, Dispatch<SetStateAction<T>>];
|
|
219
226
|
|
|
220
227
|
// TRANSLATIONS
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
228
|
+
declare const getI18n: () => i18n;
|
|
229
|
+
declare const useI18n: () => i18n;
|
|
230
|
+
declare const t: TFunction;
|
|
224
231
|
|
|
225
|
-
|
|
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
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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>;
|
package/types/misc/index.d.ts
CHANGED
|
@@ -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 = {
|
package/types/network/index.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export type IdentityMods = {
|
|
|
118
118
|
createList?: { prefs: CreateIdentityProps }[];
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
export type PrefsMods = Record<string,
|
|
121
|
+
export type PrefsMods = Record<string, unknown>;
|
|
122
122
|
|
|
123
123
|
export type Mods = Record<string, Record<string, unknown>> & {
|
|
124
124
|
props?: PropsMods;
|
package/types/network/soap.d.ts
CHANGED
|
@@ -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";
|