@zextras/carbonio-shell-ui 13.0.0 → 14.0.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 (41) hide show
  1. package/THIRDPARTIES +0 -2
  2. package/assets/carbonio-head.svg +200 -0
  3. package/assets/carbonio.svg +10 -0
  4. package/assets/favicon.png +0 -0
  5. package/assets/notification.mp3 +0 -0
  6. package/lib/boot/app/app-dependant-exports.d.ts +0 -2
  7. package/lib/boot/app/app-dependant-exports.js +0 -2
  8. package/lib/boot/app/app-dependant-exports.js.map +1 -1
  9. package/lib/lib.d.ts +0 -6
  10. package/lib/lib.js.map +1 -1
  11. package/lib/settings/components/settings-header.d.ts +14 -2
  12. package/lib/settings/components/settings-header.js +8 -8
  13. package/lib/settings/components/settings-header.js.map +1 -1
  14. package/lib/store/app/utils.js +1 -2
  15. package/lib/store/app/utils.js.map +1 -1
  16. package/lib/store/integrations/store.js +1 -11
  17. package/lib/store/integrations/store.js.map +1 -1
  18. package/lib/testing.d.ts +8 -0
  19. package/lib/testing.js +21 -0
  20. package/lib/testing.js.map +1 -0
  21. package/lib/tsdoc-metadata.json +1 -1
  22. package/lib/types/apps/index.d.ts +0 -4
  23. package/lib/types/network/index.d.ts +2 -72
  24. package/lib/types/network/index.js.map +1 -1
  25. package/package.json +41 -25
  26. package/lib/constants/default-locales.d.ts +0 -10
  27. package/lib/constants/default-locales.js +0 -159
  28. package/lib/constants/default-locales.js.map +0 -1
  29. package/lib/constants/dynamic-locales.json +0 -1
  30. package/lib/network/edit-settings.d.ts +0 -26
  31. package/lib/network/edit-settings.js +0 -156
  32. package/lib/network/edit-settings.js.map +0 -1
  33. package/lib/reporting/functions.d.ts +0 -4
  34. package/lib/reporting/functions.js +0 -16
  35. package/lib/reporting/functions.js.map +0 -1
  36. package/lib/store/integrations/composer.d.ts +0 -52
  37. package/lib/store/integrations/composer.js +0 -249
  38. package/lib/store/integrations/composer.js.map +0 -1
  39. package/lib/types/network/entities.d.ts +0 -47
  40. package/lib/types/network/entities.js +0 -3
  41. package/lib/types/network/entities.js.map +0 -1
@@ -1,71 +1,13 @@
1
1
  import type { AccountSettingsPrefs } from '@zextras/carbonio-ui-soap-lib';
2
- import type { AccountACEInfo } from './entities';
3
- import type { SoapBody, SoapContext, SoapFault } from './soap';
2
+ import type { SoapBody, SoapFault } from './soap';
4
3
  import type { JSNS } from '../../constants';
5
4
  import type { Exactify, RequireAtLeastOne, ValueOf } from '../../utils/typeUtils';
6
- import type { AccountRights, Identity, IdentityAttrs, Signature, ZimletProp } from '../account';
5
+ import type { Identity, IdentityAttrs } from '../account';
7
6
  export * from './soap';
8
- export type ZimletPkgDescription = {
9
- zimlet: Array<{
10
- name: string;
11
- label: string;
12
- description: string;
13
- version: string;
14
- zapp?: 'true';
15
- 'zapp-main'?: string;
16
- 'zapp-version'?: string;
17
- 'zapp-handlers'?: string;
18
- 'zapp-style'?: string;
19
- 'zapp-theme'?: string;
20
- 'zapp-serviceworker-extension'?: string;
21
- }>;
22
- zimletContext: Array<{
23
- baseUrl: string;
24
- presence: 'enabled';
25
- priority: number;
26
- }>;
27
- };
28
- export type GetInfoResponse = {
29
- name: string;
30
- id: string;
31
- attrs: {
32
- _attrs: {
33
- displayName: string;
34
- };
35
- };
36
- prefs: {
37
- _attrs: AccountSettingsPrefs;
38
- };
39
- signatures: {
40
- signature: Array<Signature>;
41
- };
42
- identities: {
43
- identity: Array<Identity>;
44
- };
45
- zimlets: {
46
- zimlet: Array<ZimletPkgDescription>;
47
- };
48
- props: {
49
- prop: Array<ZimletProp>;
50
- };
51
- version: string;
52
- rights: AccountRights;
53
- lifetime: number;
54
- };
55
7
  export type PropsMods = Record<string, {
56
8
  app: string;
57
9
  value: unknown;
58
10
  }>;
59
- export type PermissionsMods = {
60
- freeBusy: {
61
- current: AccountACEInfo[];
62
- new: AccountACEInfo;
63
- };
64
- inviteRight: {
65
- current: AccountACEInfo[];
66
- new: AccountACEInfo;
67
- };
68
- };
69
11
  export type CreateIdentityResponse = {
70
12
  identity: [Identity];
71
13
  };
@@ -73,12 +15,6 @@ export type ModifyIdentityResponse = Record<string, never>;
73
15
  export type DeleteIdentityResponse = Record<string, never>;
74
16
  export type ModifyPropertiesResponse = Record<string, never>;
75
17
  export type ModifyPrefsResponse = Record<string, never>;
76
- export type RevokeRightsResponse = {
77
- ace?: AccountACEInfo[];
78
- };
79
- export type GrantRightsResponse = {
80
- ace?: AccountACEInfo[];
81
- };
82
18
  export type IdentityMods = {
83
19
  modifyList?: Record<string, {
84
20
  id: string;
@@ -93,16 +29,10 @@ export type PrefsMods = Record<string, unknown> & AccountSettingsPrefs;
93
29
  export interface Mods extends Record<string, Record<string, unknown> | undefined> {
94
30
  props?: PropsMods;
95
31
  prefs?: PrefsMods;
96
- permissions?: PermissionsMods;
97
32
  identity?: IdentityMods;
98
33
  }
99
34
  export type AddMod = <ModsType extends keyof Mods = keyof Mods, TypeKey extends keyof NonNullable<Mods[ModsType]> = keyof NonNullable<Mods[ModsType]>>(type: ModsType, key: TypeKey, value: NonNullable<Mods[ModsType]>[TypeKey]) => void;
100
35
  export type RemoveMod = (type: keyof Mods, key: keyof NonNullable<Mods[typeof type]>) => void;
101
- export type NetworkState = SoapContext & {
102
- noOpTimeout?: NodeJS.Timeout;
103
- pollingInterval: number;
104
- seq: number;
105
- };
106
36
  export type ModifyPrefsRequest = SoapBody<{
107
37
  _attrs: AccountSettingsPrefs;
108
38
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAUH,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AASH,yCAAuB"}
package/package.json CHANGED
@@ -1,15 +1,31 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-shell-ui",
3
- "version": "13.0.0",
3
+ "version": "14.0.0",
4
4
  "description": "The Zextras Carbonio web client",
5
5
  "main": "./lib/lib.js",
6
6
  "types": "./lib/lib.d.ts",
7
+ "typesVersions": {
8
+ "*": {
9
+ "testing": [
10
+ "./lib/testing.d.ts"
11
+ ]
12
+ }
13
+ },
7
14
  "exports": {
8
- ".": "./lib/lib.js",
15
+ ".": {
16
+ "import": "./lib/lib.js",
17
+ "require": "./lib/lib.js",
18
+ "types": "./lib/lib.d.ts"
19
+ },
20
+ "./testing": {
21
+ "import": "./lib/testing.js",
22
+ "require": "./lib/testing.js",
23
+ "types": "./lib/testing.d.ts"
24
+ },
9
25
  "./*": null
10
26
  },
11
27
  "engines": {
12
- "node": "v20",
28
+ "node": "v22",
13
29
  "npm": "v10"
14
30
  },
15
31
  "scripts": {
@@ -26,7 +42,7 @@
26
42
  "build:dev": "npm run build:pkg -- --dev --pkgRel $(date +%s) && npm run build:lib",
27
43
  "prebuild:pkg": "rm -rf dist pkg; tsc --project tsconfig.build.json",
28
44
  "build:pkg": "sdk build",
29
- "postbuild:pkg": "rm carbonio.webpack.js src/constants/default-locales.js",
45
+ "postbuild:pkg": "rm carbonio.webpack.js",
30
46
  "prebuild:lib": "rm -rf lib",
31
47
  "build:lib": "tsc -p tsconfig.lib.json && npx api-extractor run --verbose",
32
48
  "build:lib:local": "tsc -p tsconfig.lib.json && npx api-extractor run --verbose --local",
@@ -40,6 +56,7 @@
40
56
  },
41
57
  "files": [
42
58
  "lib/",
59
+ "assets/",
43
60
  "THIRDPARTIES"
44
61
  ],
45
62
  "keywords": [
@@ -48,40 +65,40 @@
48
65
  "author": "Zextras Dev Team <https://www.zextras.com/carbonio/>",
49
66
  "license": "AGPL-3.0-only",
50
67
  "devDependencies": {
51
- "@babel/core": "^7.26.10",
52
- "@babel/preset-env": "^7.26.9",
53
- "@babel/preset-react": "^7.26.3",
54
- "@babel/preset-typescript": "^7.27.0",
68
+ "@babel/core": "^7.28.5",
69
+ "@babel/preset-env": "^7.28.5",
70
+ "@babel/preset-react": "^7.28.5",
71
+ "@babel/preset-typescript": "^7.28.5",
55
72
  "@commitlint/cli": "^20.1.0",
56
73
  "@commitlint/config-conventional": "^20.0.0",
57
74
  "@emotion/babel-plugin": "^11.13.5",
58
75
  "@emotion/jest": "^11.13.0",
59
76
  "@faker-js/faker": "^8.4.1",
60
- "@microsoft/api-extractor": "^7.42.3",
77
+ "@microsoft/api-extractor": "^7.55.2",
61
78
  "@svgr/webpack": "^8.1.0",
62
79
  "@testing-library/dom": "^10.4.0",
63
80
  "@testing-library/jest-dom": "^6.6.3",
64
81
  "@testing-library/react": "^16.2.0",
65
82
  "@testing-library/user-event": "^14.6.1",
66
- "@tsconfig/node20": "^20.1.5",
83
+ "@tsconfig/node22": "^22.0.5",
67
84
  "@types/jest": "^30.0.0",
68
- "@types/lodash": "^4.17.4",
69
- "@types/node": "^20.17.27",
85
+ "@types/lodash": "^4.17.23",
86
+ "@types/node": "^22.19.3",
70
87
  "@types/react": "^18.3.11",
71
88
  "@types/react-dom": "^18.3.0",
72
89
  "@types/webpack": "^5.28.5",
73
90
  "@types/webpack-env": "^1.18.8",
74
91
  "@zextras/carbonio-search-ui": "github:zextras/carbonio-search-ui#devel",
75
92
  "@zextras/carbonio-ui-configs": "^2.1.0",
76
- "@zextras/carbonio-ui-sdk": "^2.2.0",
77
- "autoprefixer": "^10.4.17",
78
- "babel-plugin-transform-import-meta": "^2.3.2",
93
+ "@zextras/carbonio-ui-sdk": "2.2.1",
94
+ "autoprefixer": "^10.4.24",
95
+ "babel-plugin-transform-import-meta": "^2.3.3",
79
96
  "copy-webpack-plugin": "^13.0.1",
80
97
  "core-js": "^3.39.0",
81
98
  "css-loader": "^6.10.0",
82
- "dotenv": "^17.2.2",
99
+ "dotenv": "^17.3.1",
83
100
  "eslint-plugin-notice": "^0.9.10",
84
- "html-webpack-plugin": "^5.6.4",
101
+ "html-webpack-plugin": "^5.6.6",
85
102
  "husky": "^9.0.11",
86
103
  "identity-obj-proxy": "^3.0.0",
87
104
  "is-ci": "^3.0.1",
@@ -92,9 +109,10 @@
92
109
  "mini-css-extract-plugin": "^2.9.4",
93
110
  "msw": "^2.4.8",
94
111
  "postcss-loader": "^8.1.1",
112
+ "sonarqube-scanner": "^4.3.4",
95
113
  "ts-node": "^10.9.2",
96
114
  "typescript": "^5.3.3",
97
- "webpack": "^5.102.0",
115
+ "webpack": "^5.104.1",
98
116
  "webpack-cli": "^6.0.1"
99
117
  },
100
118
  "overrides": {
@@ -106,23 +124,21 @@
106
124
  "@emotion/react": "^11.14.0",
107
125
  "@emotion/styled": "^11.14.1",
108
126
  "@fontsource/roboto": "^5.0.8",
109
- "@tinymce/tinymce-react": "^4.3.2",
110
- "@zextras/carbonio-design-system": "11.0.1",
111
- "@zextras/carbonio-ui-preview": "4.0.0",
112
- "@zextras/carbonio-ui-soap-lib": "1.0.3",
127
+ "@zextras/carbonio-design-system": "12.0.0",
128
+ "@zextras/carbonio-ui-preview": "4.0.1",
129
+ "@zextras/carbonio-ui-soap-lib": "1.0.4",
113
130
  "darkreader": "^4.9.79",
114
131
  "date-fns": "^4.1.0",
115
132
  "i18next": "^22.5.1",
116
133
  "i18next-chained-backend": "^4.6.2",
117
134
  "i18next-http-backend": "^2.5.0",
118
135
  "immer": "^10.0.3",
119
- "lodash": "^4.17.21",
136
+ "lodash": "^4.17.23",
120
137
  "posthog-js": "^1.234.4",
121
138
  "react": "^18.3.1",
122
139
  "react-dom": "^18.3.1",
123
140
  "react-i18next": "^12.3.1",
124
141
  "react-router-dom": "^6.30.0",
125
- "tinymce": "^6.8.4",
126
142
  "zustand": "^5.0.3"
127
143
  },
128
144
  "peerDependencies": {
@@ -131,7 +147,7 @@
131
147
  "@zextras/carbonio-design-system": "^11.0.0",
132
148
  "@zextras/carbonio-ui-preview": "^4.0.0",
133
149
  "core-js": "^3.39.0",
134
- "lodash": "^4.17.21",
150
+ "lodash": "^4.17.23",
135
151
  "react": "^18.3.1",
136
152
  "react-dom": "^18.3.1",
137
153
  "react-i18next": "^12.3.1",
@@ -1,10 +0,0 @@
1
- type LocaleValue = {
2
- value: string;
3
- name: string;
4
- tinymceLocale: string | undefined;
5
- labelKey: string;
6
- labelDefaultValue: string;
7
- };
8
- export declare const STATIC_LOCALES: Record<string, LocaleValue>;
9
- export declare const DEFAULT_LOCALES: Record<string, LocaleValue>;
10
- export {};
@@ -1,159 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DEFAULT_LOCALES = exports.STATIC_LOCALES = void 0;
7
- /*
8
- * SPDX-FileCopyrightText: 2025 Zextras <https://www.zextras.com>
9
- *
10
- * SPDX-License-Identifier: AGPL-3.0-only
11
- */
12
- const dynamic_locales_json_1 = __importDefault(require("./dynamic-locales.json"));
13
- exports.STATIC_LOCALES = {
14
- zh_CN: {
15
- name: '中文 (中国)',
16
- value: 'zh_CN',
17
- tinymceLocale: 'zh-Hans',
18
- labelKey: 'locale.label_chinese',
19
- labelDefaultValue: 'Chinese (China) - {{value}}'
20
- },
21
- nl: {
22
- name: 'Nederlands',
23
- value: 'nl',
24
- tinymceLocale: 'nl',
25
- labelKey: 'locale.label_dutch',
26
- labelDefaultValue: 'Dutch - {{value}}'
27
- },
28
- en: {
29
- name: 'English',
30
- value: 'en',
31
- tinymceLocale: 'en',
32
- labelKey: 'locale.label_english',
33
- labelDefaultValue: 'English - {{value}}'
34
- },
35
- de: {
36
- name: 'Deutsch',
37
- value: 'de',
38
- tinymceLocale: 'de',
39
- labelKey: 'locale.label_german',
40
- labelDefaultValue: 'German - {{value}}'
41
- },
42
- hi: {
43
- name: 'हिंदी',
44
- value: 'hi',
45
- tinymceLocale: 'hi',
46
- labelKey: 'locale.label_hindi',
47
- labelDefaultValue: 'Hindi - {{value}}'
48
- },
49
- hu: {
50
- name: 'Magyar',
51
- value: 'hu',
52
- tinymceLocale: 'hu_HU',
53
- labelKey: 'locale.label_hungarian',
54
- labelDefaultValue: 'Hungarian - {{value}}'
55
- },
56
- it: {
57
- name: 'italiano',
58
- value: 'it',
59
- tinymceLocale: 'it',
60
- labelKey: 'locale.label_italian',
61
- labelDefaultValue: 'Italian - {{value}}'
62
- },
63
- ja: {
64
- name: '日本語',
65
- value: 'ja',
66
- tinymceLocale: 'ja',
67
- labelKey: 'locale.label_japanese',
68
- labelDefaultValue: 'Japanese - {{value}}'
69
- },
70
- pt: {
71
- name: 'português',
72
- value: 'pt',
73
- tinymceLocale: 'pt_BR',
74
- labelKey: 'locale.label_portuguese',
75
- labelDefaultValue: 'Portuguese - {{value}}'
76
- },
77
- pl: {
78
- name: 'polski',
79
- value: 'pl',
80
- tinymceLocale: 'pl',
81
- labelKey: 'locale.label_polish',
82
- labelDefaultValue: 'Polish - {{value}}'
83
- },
84
- ro: {
85
- name: 'română',
86
- value: 'ro',
87
- tinymceLocale: 'ro',
88
- labelKey: 'locale.label_romanian',
89
- labelDefaultValue: 'Romanian - {{value}}'
90
- },
91
- ru: {
92
- name: 'русский',
93
- value: 'ru',
94
- tinymceLocale: 'ru',
95
- labelKey: 'locale.label_russian',
96
- labelDefaultValue: 'Russian - {{value}}'
97
- },
98
- es: {
99
- name: 'español',
100
- value: 'es',
101
- tinymceLocale: 'es',
102
- labelKey: 'locale.label_spanish',
103
- labelDefaultValue: 'Spanish - {{value}}'
104
- },
105
- th: {
106
- name: 'ไทย',
107
- value: 'th',
108
- tinymceLocale: 'th_TH',
109
- labelKey: 'locale.label_thai',
110
- labelDefaultValue: 'Thai - {{value}}'
111
- },
112
- tr: {
113
- name: 'Türkçe',
114
- value: 'tr',
115
- tinymceLocale: 'tr',
116
- labelKey: 'locale.label_turkish',
117
- labelDefaultValue: 'Turkish - {{value}}'
118
- },
119
- fr: {
120
- name: 'français',
121
- value: 'fr',
122
- tinymceLocale: 'fr_FR',
123
- labelKey: 'locale.label_french',
124
- labelDefaultValue: 'French - {{value}}'
125
- },
126
- vi: {
127
- name: 'Tiếng Việt',
128
- value: 'vi',
129
- tinymceLocale: 'vi',
130
- labelKey: 'locale.label_vietnamese',
131
- labelDefaultValue: 'Vietnamese - {{value}}'
132
- },
133
- ky: {
134
- name: 'Кыргызча',
135
- value: 'ky',
136
- tinymceLocale: 'ky',
137
- labelKey: 'locale.label_kyrgyz',
138
- labelDefaultValue: 'Kyrgyz - {{value}}'
139
- },
140
- bs: {
141
- name: 'Bosanski',
142
- value: 'bs',
143
- tinymceLocale: 'bs',
144
- labelKey: 'locale.label_bosnian',
145
- labelDefaultValue: 'Bosnian - {{value}}'
146
- },
147
- sl: {
148
- name: 'Slovenščina',
149
- value: 'sl',
150
- tinymceLocale: 'sl_SI',
151
- labelKey: 'locale.label_slovenian',
152
- labelDefaultValue: 'Slovenian - {{value}}'
153
- }
154
- };
155
- exports.DEFAULT_LOCALES = {
156
- ...exports.STATIC_LOCALES,
157
- ...dynamic_locales_json_1.default
158
- };
159
- //# sourceMappingURL=default-locales.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-locales.js","sourceRoot":"","sources":["../../src/constants/default-locales.ts"],"names":[],"mappings":";;;;;;AAAA;;;;GAIG;AACH,kFAAoD;AAUvC,QAAA,cAAc,GAAgC;IAC1D,KAAK,EAAE;QACN,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,OAAO;QACd,aAAa,EAAE,SAAS;QACxB,QAAQ,EAAE,sBAAsB;QAChC,iBAAiB,EAAE,6BAA6B;KAChD;IACD,EAAE,EAAE;QACH,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,oBAAoB;QAC9B,iBAAiB,EAAE,mBAAmB;KACtC;IACD,EAAE,EAAE;QACH,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,sBAAsB;QAChC,iBAAiB,EAAE,qBAAqB;KAC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AAa,EAAE,OAAO;QACtB,QAAQ,EAAE,wBAAwB;QAClC,iBAAiB,EAAE,uBAAuB;KAC1C;CACD,CAAC;AAEW,QAAA,eAAe,GAAgC;IAC3D,GAAG,sBAAc;IACjB,GAAG,8BAAc;CACjB,CAAC"}
@@ -1 +0,0 @@
1
- {}
@@ -1,26 +0,0 @@
1
- import type { Mods, CreateIdentityResponse, ModifyPropertiesResponse, ModifyPrefsResponse, ModifyIdentityResponse, RevokeRightsResponse, DeleteIdentityResponse, GrantRightsResponse } from '../types/network';
2
- export type EditSettingsBatchResponse = {
3
- ModifyPropertiesResponse?: ModifyPropertiesResponse[];
4
- ModifyPrefsResponse?: ModifyPrefsResponse[];
5
- ModifyIdentityResponse?: ModifyIdentityResponse[];
6
- DeleteIdentityResponse?: DeleteIdentityResponse[];
7
- CreateIdentityResponse?: CreateIdentityResponse[];
8
- RevokeRightsResponse?: RevokeRightsResponse[];
9
- GrantRightsResponse?: GrantRightsResponse[];
10
- };
11
- /**
12
- * @deprecated Use a specific soap fetch request per module instead.
13
- *
14
- * The edit settings function is performing a xml request which leads to network errors due to
15
- * the content, and it is highly linking shell with modules.
16
- * When the data are not related to the account, the management of the settings should be internal
17
- * to the module itself. When the data to update are something strictly related to the account, and
18
- * are or might be useful to other modules, the network update should be performed by the module itself,
19
- * and then be propagated to other modules, to let every module interested in those data to react to the update.
20
- *
21
- * See SHELL-226, SHELL-222 to see how to propagate the update of settings to all other modules.
22
- */
23
- export declare const editSettings: (mods: Partial<Mods>, appId?: string) => Promise<EditSettingsBatchResponse>;
24
- export declare const getEditSettingsForApp: (app: string) => (mods: Mods) => Promise<EditSettingsBatchResponse & {
25
- type: "fulfilled";
26
- }>;
@@ -1,156 +0,0 @@
1
- "use strict";
2
- /*
3
- * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
- *
5
- * SPDX-License-Identifier: AGPL-3.0-only
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getEditSettingsForApp = exports.editSettings = void 0;
9
- const carbonio_ui_soap_lib_1 = require("@zextras/carbonio-ui-soap-lib");
10
- const lodash_1 = require("lodash");
11
- const constants_1 = require("../constants");
12
- const account_1 = require("../store/account");
13
- /**
14
- * @deprecated Use a specific soap fetch request per module instead.
15
- *
16
- * The edit settings function is performing a xml request which leads to network errors due to
17
- * the content, and it is highly linking shell with modules.
18
- * When the data are not related to the account, the management of the settings should be internal
19
- * to the module itself. When the data to update are something strictly related to the account, and
20
- * are or might be useful to other modules, the network update should be performed by the module itself,
21
- * and then be propagated to other modules, to let every module interested in those data to react to the update.
22
- *
23
- * See SHELL-226, SHELL-222 to see how to propagate the update of settings to all other modules.
24
- */
25
- const editSettings = (mods, appId = constants_1.SHELL_APP_ID) => (0, carbonio_ui_soap_lib_1.legacyXmlSoapFetch)('Batch', `<BatchRequest xmlns="urn:zimbra" onerror="stop">${mods.props
26
- ? `<ModifyPropertiesRequest xmlns="urn:zimbraAccount">${(0, lodash_1.map)(mods.props, (prop, key) => `<prop name="${key}" zimlet="${prop.app ?? appId}">${prop.value}</prop>`)}</ModifyPropertiesRequest>`
27
- : ''}${mods.prefs
28
- ? `<ModifyPrefsRequest xmlns="urn:zimbraAccount">${(0, lodash_1.map)(mods.prefs, (pref, key) => (0, lodash_1.isArray)(pref)
29
- ? (0, lodash_1.map)(pref, (p) => `<pref name="${key}">${p}</pref>`).join('')
30
- : `<pref name="${key}">${pref}</pref>`).join('')}</ModifyPrefsRequest>`
31
- : ''}${mods.identity?.modifyList
32
- ? (0, lodash_1.map)(mods.identity.modifyList, (item) => `<ModifyIdentityRequest xmlns="urn:zimbraAccount" requestId="0"><identity id="${item.id}">${(0, lodash_1.map)(item.prefs, (value, key) => `<a name="${key}">${value}</a>`).join('')}</identity></ModifyIdentityRequest>`).join('')
33
- : ''}${mods.identity?.deleteList
34
- ? (0, lodash_1.map)(mods.identity.deleteList, (item) => `<DeleteIdentityRequest xmlns="urn:zimbraAccount" requestId="0"><identity id="${item}"/></DeleteIdentityRequest>`).join('')
35
- : ''}${mods.identity?.createList
36
- ? (0, lodash_1.map)(mods.identity.createList, (item, index) => `<CreateIdentityRequest xmlns="urn:zimbraAccount" requestId="${index}"><identity name="${item.prefs.zimbraPrefIdentityName}"><a name="zimbraPrefIdentityName">${item.prefs.zimbraPrefIdentityName}</a><a name="zimbraPrefFromDisplay">${item.prefs.zimbraPrefFromDisplay}</a><a name="zimbraPrefFromAddress">${item.prefs.zimbraPrefFromAddress}</a><a name="zimbraPrefFromAddressType">sendAs</a><a name="zimbraPrefReplyToEnabled">${item.prefs.zimbraPrefReplyToEnabled}</a><a name="zimbraPrefReplyToDisplay">${item.prefs.zimbraPrefReplyToDisplay}</a><a name="zimbraPrefReplyToAddress">${item.prefs.zimbraPrefReplyToAddress}</a><a name="zimbraPrefDefaultSignatureId">${item.prefs.zimbraPrefDefaultSignatureId}</a><a name="zimbraPrefForwardReplySignatureId">${item.prefs.zimbraPrefForwardReplySignatureId}</a><a name="zimbraPrefWhenSentToEnabled">${item.prefs.zimbraPrefWhenSentToEnabled}</a><a name="zimbraPrefWhenInFoldersEnabled">${item.prefs.zimbraPrefWhenInFoldersEnabled}</a></identity></CreateIdentityRequest>`).join('')
37
- : ''}${mods.permissions
38
- ? `<RevokeRightsRequest xmlns="urn:zimbraAccount" requestId="0">${mods.permissions.freeBusy
39
- ? (0, lodash_1.map)(mods.permissions.freeBusy.current, (right) => {
40
- if (right.gt === 'dom')
41
- return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" d="zextras.com"/>`;
42
- if (right.gt === 'all' && right.deny)
43
- return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" deny="1"/>`;
44
- if (right.gt === 'usr')
45
- return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" d="${right.d}"/>`;
46
- return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" />`;
47
- }).join('')
48
- : ''}${mods.permissions.inviteRight
49
- ? (0, lodash_1.map)(mods.permissions.inviteRight.current, (right) => {
50
- if (right.gt === 'all' && right.deny)
51
- return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" deny="1"/>`;
52
- if (right.gt === 'usr')
53
- return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" d="${right.d}"/>`;
54
- return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" />`;
55
- }).join('')
56
- : ''}</RevokeRightsRequest><GrantRightsRequest xmlns="urn:zimbraAccount" requestId="1">${mods.permissions.freeBusy
57
- ? `${(() => {
58
- if (mods.permissions.freeBusy.new.gt === 'dom') {
59
- return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" d="zextras.com"/>`;
60
- }
61
- if (mods.permissions.freeBusy.new.gt === 'all' &&
62
- mods.permissions.freeBusy.new.deny) {
63
- return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" deny="1"/>`;
64
- }
65
- if (mods.permissions.freeBusy.new.gt === 'usr') {
66
- return (0, lodash_1.map)(mods.permissions.freeBusy.new.d, (u) =>
67
- // FIXME: usage differs from the declaration of the AccountACE
68
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
69
- // @ts-ignore
70
- `<ace right="viewFreeBusy" gt="${mods.permissions?.freeBusy.new.gt}" d="${u.email}"/>`).join('');
71
- }
72
- return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" />`;
73
- })()}`
74
- : ''}${mods.permissions.inviteRight
75
- ? `${(() => {
76
- if (mods.permissions.inviteRight.new.gt === 'all' &&
77
- mods.permissions.inviteRight.new.deny) {
78
- return `<ace right="invite" gt="${mods.permissions.inviteRight.new.gt}" deny="1"/>`;
79
- }
80
- if (mods.permissions.inviteRight.new.gt === 'usr') {
81
- return (0, lodash_1.map)(mods.permissions.inviteRight.new.d, (u) =>
82
- // FIXME: usage differs from the declaration of the AccountACE
83
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
84
- // @ts-ignore
85
- `<ace right="invite" gt="${mods.permissions?.inviteRight.new.gt}" d="${u.email}"/>`).join('');
86
- }
87
- return `<ace right="invite" gt="${mods.permissions?.inviteRight.new.gt}" />`;
88
- })()}`
89
- : ''}
90
- </GrantRightsRequest>`
91
- : ''}</BatchRequest>`).then((r) => {
92
- account_1.useAccountStore.setState((s) => ({
93
- settings: {
94
- ...s.settings,
95
- prefs: (0, lodash_1.reduce)(mods.prefs, (acc, pref, key) => ({
96
- ...acc,
97
- [key]: pref
98
- }), s.settings.prefs),
99
- props: (0, lodash_1.reduce)(mods.props, (acc, { app, value }, key) => {
100
- const propIndex = (0, lodash_1.findIndex)(acc, (p) => p.name === key && p.zimlet === app);
101
- if (propIndex >= 0) {
102
- // eslint-disable-next-line no-param-reassign
103
- acc[propIndex] = {
104
- name: key,
105
- zimlet: app,
106
- _content: value
107
- };
108
- }
109
- else {
110
- acc.push({
111
- name: key,
112
- zimlet: app,
113
- _content: value
114
- });
115
- }
116
- return acc;
117
- }, s.settings.props)
118
- },
119
- account: {
120
- ...s.account,
121
- displayName: (0, lodash_1.find)(mods?.identity?.modifyList, (item) => item.id === s?.account?.id)?.prefs
122
- .zimbraPrefIdentityName || s.account?.displayName,
123
- identities: {
124
- identity: typeof s.account !== 'undefined'
125
- ? (0, lodash_1.reduce)(mods?.identity?.modifyList, (acc, { id, prefs }) => {
126
- const propIndex = (0, lodash_1.findIndex)(acc, (itemMods, indexAccount) => acc[indexAccount].id === id);
127
- if (propIndex > -1) {
128
- // eslint-disable-next-line no-param-reassign
129
- acc[propIndex]._attrs = {
130
- ...acc[propIndex]._attrs,
131
- ...prefs
132
- };
133
- if (prefs.zimbraPrefIdentityName && acc[propIndex].name !== 'DEFAULT') {
134
- // eslint-disable-next-line no-param-reassign
135
- acc[propIndex].name = prefs.zimbraPrefIdentityName;
136
- }
137
- }
138
- return acc;
139
- }, [
140
- ...(0, lodash_1.filter)(s.account.identities.identity, (item) => !mods?.identity?.deleteList?.includes(item.id)).filter((i) => i.name !== 'DEFAULT'),
141
- ...(0, lodash_1.map)(r?.CreateIdentityResponse, (item) => item.identity[0]),
142
- ...(0, lodash_1.filter)(s.account.identities.identity, (item) => !mods?.identity?.deleteList?.includes(item.id)).filter((i) => i.name === 'DEFAULT')
143
- ])
144
- : undefined
145
- }
146
- }
147
- }));
148
- return r;
149
- });
150
- exports.editSettings = editSettings;
151
- const getEditSettingsForApp = (app) => (mods) => (0, exports.editSettings)(mods, app).then((r) => ({
152
- ...r,
153
- type: 'fulfilled'
154
- }));
155
- exports.getEditSettingsForApp = getEditSettingsForApp;
156
- //# sourceMappingURL=edit-settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit-settings.js","sourceRoot":"","sources":["../../src/network/edit-settings.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wEAAmE;AACnE,mCAAuE;AAEvE,4CAA4C;AAC5C,8CAAmD;AAuBnD;;;;;;;;;;;GAWG;AACI,MAAM,YAAY,GAAG,CAC3B,IAAmB,EACnB,QAAgB,wBAAY,EACS,EAAE,CACvC,IAAA,yCAAkB,EACjB,OAAO,EACP,mDACC,IAAI,CAAC,KAAK;IACT,CAAC,CAAC,sDAAsD,IAAA,YAAG,EACzD,IAAI,CAAC,KAAK,EACV,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,eAAe,GAAG,aAAa,IAAI,CAAC,GAAG,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,SAAS,CACvF,4BAA4B;IAC9B,CAAC,CAAC,EACJ,GACC,IAAI,CAAC,KAAK;IACT,CAAC,CAAC,iDAAiD,IAAA,YAAG,EAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAC/E,IAAA,gBAAO,EAAC,IAAI,CAAC;QACZ,CAAC,CAAC,IAAA,YAAG,EAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9D,CAA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QAAQ,EAC7B,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CACxD,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC;qBACrC,CACD;oBACF,CAAC,CAAC,SAAS;aACb;SACU;KACZ,CAAC,CAAC,CAAC;IACJ,OAAO,CAAC,CAAC;AACV,CAAC,CAAC,CAAC;AA5MS,QAAA,YAAY,gBA4MrB;AAEG,MAAM,qBAAqB,GACjC,CAAC,GAAW,EAAE,EAAE,CAChB,CAAC,IAAU,EAA8D,EAAE,CAC1E,IAAA,oBAAY,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACpC,GAAG,CAAC;IACJ,IAAI,EAAE,WAAW;CACjB,CAAC,CAAC,CAAC;AANO,QAAA,qBAAqB,yBAM5B"}
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated it will be removed in the next release
3
- */
4
- export declare const report: (appId: string) => (error: Event, hint?: unknown) => void;