@zextras/carbonio-shell-ui 0.4.33 → 0.4.34

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 (47) hide show
  1. package/dist/20d012c938e8d0dcc703e4edc2714d23.mp3 +0 -0
  2. package/dist/CHANGELOG.md +18 -0
  3. package/dist/PKGBUILD +7 -7
  4. package/dist/carbonio-logo.png +0 -0
  5. package/dist/commit +1 -1
  6. package/dist/component.json +3 -3
  7. package/dist/db1a38cf321d5b3025a31cd903b7d486.png +0 -0
  8. package/dist/i18n/de.json +2 -64
  9. package/dist/i18n/en.json +1 -0
  10. package/dist/i18n/es.json +2 -64
  11. package/dist/i18n/fr.json +0 -45
  12. package/dist/i18n/hi.json +1 -62
  13. package/dist/i18n/id.json +2 -64
  14. package/dist/i18n/it.json +5 -72
  15. package/dist/i18n/ja.json +2 -64
  16. package/dist/i18n/nl.json +1 -62
  17. package/dist/i18n/pl.json +2 -47
  18. package/dist/i18n/pt.json +2 -64
  19. package/dist/i18n/pt_BR.json +2 -64
  20. package/dist/i18n/ru.json +3 -75
  21. package/dist/i18n/th.json +2 -64
  22. package/dist/i18n/tr.json +2 -64
  23. package/dist/i18n/zh_Hans.json +1 -63
  24. package/dist/index.html +3 -3
  25. package/dist/notification.mp3 +0 -0
  26. package/dist/{src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.eb90f67c.chunk.js → src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.7999114d.chunk.js} +751 -267
  27. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.7999114d.chunk.js.map +1 -0
  28. package/dist/{src_workers_folder_ts.674dd50d.chunk.js → src_workers_folder_ts.1dd80c66.chunk.js} +9 -9
  29. package/dist/src_workers_folder_ts.1dd80c66.chunk.js.map +1 -0
  30. package/dist/{src_workers_tag_ts.172f2d78.chunk.js → src_workers_tag_ts.e4d59fc8.chunk.js} +2 -2
  31. package/dist/{src_workers_tag_ts.172f2d78.chunk.js.map → src_workers_tag_ts.e4d59fc8.chunk.js.map} +1 -1
  32. package/dist/{style.28962493.css → style.918584a7.css} +29 -29
  33. package/dist/{style.28962493.css.map → style.918584a7.css.map} +1 -1
  34. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-1774a7.27a142bd.chunk.js → vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-322d00.969fe987.chunk.js} +558 -16
  35. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-1774a7.27a142bd.chunk.js.map → vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-322d00.969fe987.chunk.js.map} +1 -1
  36. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-1774a7.css → vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-322d00.css} +1 -1
  37. package/dist/{vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-1774a7.css.map → vendors-node_modules_reduxjs_toolkit_dist_redux-toolkit_esm_js-node_modules_sentry_browser_es-322d00.css.map} +1 -1
  38. package/dist/zapp-shell.bundle.js +4 -4
  39. package/dist/zapp-shell.bundle.js.map +1 -1
  40. package/package.json +8 -6
  41. package/types/exports/index.d.ts +4 -0
  42. package/types/index.d.ts +1 -0
  43. package/types/misc/index.d.ts +2 -2
  44. package/types/notification/index.d.ts +31 -0
  45. package/types/search/index.d.ts +0 -7
  46. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.eb90f67c.chunk.js.map +0 -1
  47. package/dist/src_workers_folder_ts.674dd50d.chunk.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-shell-ui",
3
- "version": "0.4.33",
3
+ "version": "0.4.34",
4
4
  "description": "The Zextras Carbonio web client",
5
5
  "main": "dist/zapp-shell.bundle.js",
6
6
  "types": "./types/index.d.ts",
@@ -19,7 +19,8 @@
19
19
  "lint": "eslint --ext .js,.jsx,.ts,.tsx --resolve-plugins-relative-to node_modules/@zextras/zapp-config src",
20
20
  "build": "sdk build",
21
21
  "deploy": "sdk deploy",
22
- "start": "sdk watch"
22
+ "start": "sdk watch",
23
+ "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"
23
24
  },
24
25
  "files": [
25
26
  "dist/",
@@ -29,13 +30,14 @@
29
30
  "keywords": [
30
31
  "zextras"
31
32
  ],
32
- "author": "Zextras DL Team <https://www.zextras.com/carbonio/>",
33
+ "author": "Zextras Crab Onions Team <https://www.zextras.com/carbonio/>",
33
34
  "maintainers": [
34
- "Matteo Dal Zovo <matteo.dalzovo@zextras.com>",
35
35
  "Gabriele Marino <gabriele.marino@zextras.com>",
36
36
  "Abhishek Kumar <abhishek.kumar@zextras.com>",
37
37
  "Giuliano Caregnato <giuliano.caregnato@zextras.com>",
38
- "Dhaval Dodiya <dhaval.dodiya@zextras.com>"
38
+ "Dhaval Dodiya <dhaval.dodiya@zextras.com>",
39
+ "Francesco Gottardi <francesco.gottardi@zextras.com>",
40
+ "Luca Stauble <luca.stauble@zextras.com>"
39
41
  ],
40
42
  "license": "AGPL-3.0-only",
41
43
  "devDependencies": {
@@ -99,7 +101,7 @@
99
101
  "@fontsource/roboto": "^4.5.7",
100
102
  "@sentry/browser": "^6.17.7",
101
103
  "@tinymce/tinymce-react": "^3.13.0",
102
- "@zextras/carbonio-design-system": "^0.3.7",
104
+ "@zextras/carbonio-design-system": "^0.3.10",
103
105
  "@zextras/carbonio-ui-preview": "^0.1.5",
104
106
  "darkreader": "4.9.46",
105
107
  "history": "^5.2.0",
@@ -35,6 +35,7 @@ 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';
38
+ import { INotificationManager } from '../notification';
38
39
 
39
40
  export const getBridgedFunctions: () => {
40
41
  addBoard: (path: string, context?: unknown | { app: string }) => void;
@@ -226,6 +227,9 @@ export const useFoldersAccordionByView: (
226
227
  itemProps?: (item: AccordionFolder) => Record<string, any>
227
228
  ) => Array<AccordionFolder>;
228
229
 
230
+ // NOTIFICATION
231
+ export const getNotificationManager: () => INotificationManager;
232
+
229
233
  // Run Search
230
234
  export const runSearch: (query: Array<QueryChip>, module: string) => void;
231
235
 
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './network';
8
8
  export * from './exports';
9
9
  export * from './account';
10
10
  export * from './apps';
11
+ export * from './notification';
11
12
  export * from './integrations';
12
13
  export * from './theme';
13
14
  export * from './search';
@@ -166,8 +166,8 @@ export type SoapPolicy = {
166
166
  };
167
167
 
168
168
  export type SoapRetentionPolicy = Array<{
169
- keep: Array<SoapPolicy>;
170
- purge: Array<SoapPolicy>;
169
+ keep: Array<{ policy: SoapPolicy }>;
170
+ purge: Array<{ policy: SoapPolicy }>;
171
171
  }>;
172
172
 
173
173
  export type FolderView =
@@ -0,0 +1,31 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
3
+ *
4
+ * SPDX-License-Identifier: AGPL-3.0-only
5
+ */
6
+
7
+ export type PopupNotificationConfig = {
8
+ title?: string;
9
+ message?: string;
10
+ icon?: string;
11
+ vibrate?: Array<number>;
12
+ tag?: string;
13
+ onClick?: (event: Event) => void;
14
+ };
15
+
16
+ export type AudioNotificationConfig = {
17
+ sound?: string;
18
+ };
19
+
20
+ export type NotificationConfig = {
21
+ showPopup?: boolean;
22
+ playSound?: boolean;
23
+ } & PopupNotificationConfig &
24
+ AudioNotificationConfig;
25
+
26
+ export interface INotificationManager {
27
+ playSound: (config: AudioNotificationConfig) => void;
28
+ showPopup: (config: PopupNotificationConfig) => void;
29
+ notify: (config: NotificationConfig) => void;
30
+ multipleNotify: (config: NotificationConfig[]) => void;
31
+ }
@@ -4,7 +4,6 @@
4
4
  * SPDX-License-Identifier: AGPL-3.0-only
5
5
  */
6
6
 
7
- import { AppRoute } from '../apps';
8
7
  import { QueryChip } from './items';
9
8
 
10
9
  export * from './items';
@@ -17,12 +16,6 @@ export type SearchState = {
17
16
  updateModule: (module: string) => void;
18
17
  };
19
18
 
20
- export type SearchBarProps = {
21
- activeRoute: AppRoute;
22
- primaryAction?: unknown;
23
- secondaryActions?: unknown;
24
- };
25
-
26
19
  // export type SelectLabelFactoryProps = {
27
20
  // selected: [{ label: string; value: string }];
28
21
  // open: boolean;