@zextras/carbonio-shell-ui 6.0.0 → 7.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 (461) hide show
  1. package/lib/boot/app/app-context-provider.d.ts +7 -0
  2. package/lib/boot/app/app-context-provider.js +17 -0
  3. package/lib/boot/app/app-context-provider.js.map +1 -0
  4. package/lib/boot/app/app-error-catcher.d.ts +3 -0
  5. package/lib/boot/app/app-error-catcher.js +41 -0
  6. package/lib/boot/app/app-error-catcher.js.map +1 -0
  7. package/lib/boot/app/app-loader-functions.d.ts +37 -0
  8. package/lib/boot/app/app-loader-functions.js +121 -0
  9. package/lib/boot/app/app-loader-functions.js.map +1 -0
  10. package/lib/boot/app/app-loader-setters.d.ts +38 -0
  11. package/lib/boot/app/app-loader-setters.js +46 -0
  12. package/lib/boot/app/app-loader-setters.js.map +1 -0
  13. package/lib/boot/matomo.d.ts +12 -0
  14. package/lib/boot/matomo.js +22 -0
  15. package/lib/boot/matomo.js.map +1 -0
  16. package/lib/boot/module-i18next-provider.d.ts +7 -0
  17. package/lib/boot/module-i18next-provider.js +22 -0
  18. package/lib/boot/module-i18next-provider.js.map +1 -0
  19. package/lib/boot/tracker.d.ts +11 -0
  20. package/lib/boot/tracker.js +57 -0
  21. package/lib/boot/tracker.js.map +1 -0
  22. package/lib/constants/index.d.ts +146 -0
  23. package/lib/constants/index.js +160 -0
  24. package/lib/constants/index.js.map +1 -0
  25. package/lib/constants/locales.d.ts +83 -0
  26. package/lib/constants/locales.js +86 -0
  27. package/lib/constants/locales.js.map +1 -0
  28. package/lib/history/hooks.d.ts +12 -0
  29. package/lib/history/hooks.js +69 -0
  30. package/lib/history/hooks.js.map +1 -0
  31. package/lib/lib.d.ts +74 -0
  32. package/lib/lib.js +134 -0
  33. package/lib/lib.js.map +1 -0
  34. package/lib/network/edit-settings.d.ts +14 -0
  35. package/lib/network/edit-settings.js +144 -0
  36. package/lib/network/edit-settings.js.map +1 -0
  37. package/lib/network/fetch.d.ts +4 -0
  38. package/lib/network/fetch.js +175 -0
  39. package/lib/network/fetch.js.map +1 -0
  40. package/lib/network/tags.d.ts +27 -0
  41. package/lib/network/tags.js +31 -0
  42. package/lib/network/tags.js.map +1 -0
  43. package/lib/network/user-agent.d.ts +1 -0
  44. package/lib/network/user-agent.js +15 -0
  45. package/lib/network/user-agent.js.map +1 -0
  46. package/lib/network/utils.d.ts +2 -0
  47. package/lib/network/utils.js +17 -0
  48. package/lib/network/utils.js.map +1 -0
  49. package/lib/notification/NotificationManager.d.ts +22 -0
  50. package/lib/notification/NotificationManager.js +153 -0
  51. package/lib/notification/NotificationManager.js.map +1 -0
  52. package/lib/reporting/functions.d.ts +2 -0
  53. package/lib/reporting/functions.js +14 -0
  54. package/lib/reporting/functions.js.map +1 -0
  55. package/lib/reporting/store.d.ts +8 -0
  56. package/lib/reporting/store.js +43 -0
  57. package/lib/reporting/store.js.map +1 -0
  58. package/lib/search/run-search.d.ts +2 -0
  59. package/lib/search/run-search.js +17 -0
  60. package/lib/search/run-search.js.map +1 -0
  61. package/lib/search/search-store.d.ts +2 -0
  62. package/lib/search/search-store.js +20 -0
  63. package/lib/search/search-store.js.map +1 -0
  64. package/lib/search/useSearchModule.d.ts +3 -0
  65. package/lib/search/useSearchModule.js +21 -0
  66. package/lib/search/useSearchModule.js.map +1 -0
  67. package/lib/settings/components/settings-header.d.ts +9 -0
  68. package/lib/settings/components/settings-header.js +86 -0
  69. package/lib/settings/components/settings-header.js.map +1 -0
  70. package/lib/shell/hooks/useIsMobile.d.ts +4 -0
  71. package/lib/shell/hooks/useIsMobile.js +22 -0
  72. package/lib/shell/hooks/useIsMobile.js.map +1 -0
  73. package/lib/shell/hooks/useLocalStorage.d.ts +14 -0
  74. package/lib/shell/hooks/useLocalStorage.js +77 -0
  75. package/lib/shell/hooks/useLocalStorage.js.map +1 -0
  76. package/lib/shell/shell-context.d.ts +4 -0
  77. package/lib/shell/shell-context.js +11 -0
  78. package/lib/shell/shell-context.js.map +1 -0
  79. package/lib/store/account/hooks.d.ts +14 -0
  80. package/lib/store/account/hooks.js +51 -0
  81. package/lib/store/account/hooks.js.map +1 -0
  82. package/lib/store/account/index.d.ts +2 -0
  83. package/lib/store/account/index.js +24 -0
  84. package/lib/store/account/index.js.map +1 -0
  85. package/lib/store/account/store.d.ts +2 -0
  86. package/lib/store/account/store.js +23 -0
  87. package/lib/store/account/store.js.map +1 -0
  88. package/lib/store/app/hooks.d.ts +14 -0
  89. package/lib/store/app/hooks.js +41 -0
  90. package/lib/store/app/hooks.js.map +1 -0
  91. package/lib/store/app/index.d.ts +2 -0
  92. package/lib/store/app/index.js +24 -0
  93. package/lib/store/app/index.js.map +1 -0
  94. package/lib/store/app/store.d.ts +44 -0
  95. package/lib/store/app/store.js +265 -0
  96. package/lib/store/app/store.js.map +1 -0
  97. package/lib/store/app/utils.d.ts +10 -0
  98. package/lib/store/app/utils.js +123 -0
  99. package/lib/store/app/utils.js.map +1 -0
  100. package/lib/store/boards/hooks.d.ts +31 -0
  101. package/lib/store/boards/hooks.js +82 -0
  102. package/lib/store/boards/hooks.js.map +1 -0
  103. package/lib/store/boards/index.d.ts +2 -0
  104. package/lib/store/boards/index.js +24 -0
  105. package/lib/store/boards/index.js.map +1 -0
  106. package/lib/store/boards/store.d.ts +23 -0
  107. package/lib/store/boards/store.js +124 -0
  108. package/lib/store/boards/store.js.map +1 -0
  109. package/lib/store/context-bridge.d.ts +11 -0
  110. package/lib/store/context-bridge.js +34 -0
  111. package/lib/store/context-bridge.js.map +1 -0
  112. package/lib/store/folder/hooks.d.ts +21 -0
  113. package/lib/store/folder/hooks.js +77 -0
  114. package/lib/store/folder/hooks.js.map +1 -0
  115. package/lib/store/folder/index.d.ts +2 -0
  116. package/lib/store/folder/index.js +24 -0
  117. package/lib/store/folder/index.js.map +1 -0
  118. package/lib/store/folder/store.d.ts +2 -0
  119. package/lib/store/folder/store.js +20 -0
  120. package/lib/store/folder/store.js.map +1 -0
  121. package/lib/store/folder/utils.d.ts +16 -0
  122. package/lib/store/folder/utils.js +53 -0
  123. package/lib/store/folder/utils.js.map +1 -0
  124. package/lib/store/i18n/hooks.d.ts +4 -0
  125. package/lib/store/i18n/hooks.js +21 -0
  126. package/lib/store/i18n/hooks.js.map +1 -0
  127. package/lib/store/i18n/store.d.ts +13 -0
  128. package/lib/store/i18n/store.js +104 -0
  129. package/lib/store/i18n/store.js.map +1 -0
  130. package/lib/store/integrations/composer.d.ts +49 -0
  131. package/lib/store/integrations/composer.js +233 -0
  132. package/lib/store/integrations/composer.js.map +1 -0
  133. package/lib/store/integrations/getters.d.ts +9 -0
  134. package/lib/store/integrations/getters.js +41 -0
  135. package/lib/store/integrations/getters.js.map +1 -0
  136. package/lib/store/integrations/hooks.d.ts +9 -0
  137. package/lib/store/integrations/hooks.js +42 -0
  138. package/lib/store/integrations/hooks.js.map +1 -0
  139. package/lib/store/integrations/store.d.ts +41 -0
  140. package/lib/store/integrations/store.js +65 -0
  141. package/lib/store/integrations/store.js.map +1 -0
  142. package/lib/store/integrations/utils.d.ts +8 -0
  143. package/lib/store/integrations/utils.js +50 -0
  144. package/lib/store/integrations/utils.js.map +1 -0
  145. package/lib/store/login/getters.d.ts +2 -0
  146. package/lib/store/login/getters.js +18 -0
  147. package/lib/store/login/getters.js.map +1 -0
  148. package/lib/store/login/store.d.ts +12 -0
  149. package/lib/store/login/store.js +18 -0
  150. package/lib/store/login/store.js.map +1 -0
  151. package/lib/store/network/hooks.d.ts +3 -0
  152. package/lib/store/network/hooks.js +14 -0
  153. package/lib/store/network/hooks.js.map +1 -0
  154. package/lib/store/network/index.d.ts +2 -0
  155. package/lib/store/network/index.js +24 -0
  156. package/lib/store/network/index.js.map +1 -0
  157. package/lib/store/network/store.d.ts +2 -0
  158. package/lib/store/network/store.js +15 -0
  159. package/lib/store/network/store.js.map +1 -0
  160. package/lib/store/network/utils.d.ts +13 -0
  161. package/lib/store/network/utils.js +94 -0
  162. package/lib/store/network/utils.js.map +1 -0
  163. package/lib/store/tags/hooks.d.ts +3 -0
  164. package/lib/store/tags/hooks.js +15 -0
  165. package/lib/store/tags/hooks.js.map +1 -0
  166. package/lib/store/tags/index.d.ts +2 -0
  167. package/lib/store/tags/index.js +24 -0
  168. package/lib/store/tags/index.js.map +1 -0
  169. package/lib/store/tags/store.d.ts +2 -0
  170. package/lib/store/tags/store.js +18 -0
  171. package/lib/store/tags/store.js.map +1 -0
  172. package/lib/tsdoc-metadata.json +11 -0
  173. package/lib/types/account/index.d.ts +140 -0
  174. package/lib/types/account/index.js +8 -0
  175. package/lib/types/account/index.js.map +1 -0
  176. package/lib/types/apps/index.d.ts +120 -0
  177. package/lib/types/apps/index.js +9 -0
  178. package/lib/types/apps/index.js.map +1 -0
  179. package/lib/types/boards/index.d.ts +10 -0
  180. package/lib/types/boards/index.js +3 -0
  181. package/lib/types/boards/index.js.map +1 -0
  182. package/lib/types/folder/index.d.ts +29 -0
  183. package/lib/types/folder/index.js +8 -0
  184. package/lib/types/folder/index.js.map +1 -0
  185. package/lib/types/integrations/index.d.ts +8 -0
  186. package/lib/types/integrations/index.js +8 -0
  187. package/lib/types/integrations/index.js.map +1 -0
  188. package/lib/types/misc/index.d.ts +156 -0
  189. package/lib/types/misc/index.js +8 -0
  190. package/lib/types/misc/index.js.map +1 -0
  191. package/lib/types/network/entities.d.ts +47 -0
  192. package/lib/types/network/entities.js +3 -0
  193. package/lib/types/network/entities.js.map +1 -0
  194. package/lib/types/network/index.d.ts +171 -0
  195. package/lib/types/network/index.js +23 -0
  196. package/lib/types/network/index.js.map +1 -0
  197. package/lib/types/network/soap.d.ts +102 -0
  198. package/lib/types/network/soap.js +8 -0
  199. package/lib/types/network/soap.js.map +1 -0
  200. package/lib/types/search/index.d.ts +11 -0
  201. package/lib/types/search/index.js +23 -0
  202. package/lib/types/search/index.js.map +1 -0
  203. package/lib/types/search/items.d.ts +6 -0
  204. package/lib/types/search/items.js +3 -0
  205. package/lib/types/search/items.js.map +1 -0
  206. package/lib/types/tags/index.d.ts +12 -0
  207. package/lib/types/tags/index.js +9 -0
  208. package/lib/types/tags/index.js.map +1 -0
  209. package/lib/types/workers/index.d.ts +17 -0
  210. package/lib/types/workers/index.js +3 -0
  211. package/lib/types/workers/index.js.map +1 -0
  212. package/lib/ui-extras/app-link.d.ts +6 -0
  213. package/lib/ui-extras/app-link.js +40 -0
  214. package/lib/ui-extras/app-link.js.map +1 -0
  215. package/lib/ui-extras/nav-guard.d.ts +9 -0
  216. package/lib/ui-extras/nav-guard.js +96 -0
  217. package/lib/ui-extras/nav-guard.js.map +1 -0
  218. package/lib/ui-extras/spinner.d.ts +2 -0
  219. package/lib/ui-extras/spinner.js +18 -0
  220. package/lib/ui-extras/spinner.js.map +1 -0
  221. package/lib/utils/typeUtils.d.ts +14 -0
  222. package/lib/utils/typeUtils.js +3 -0
  223. package/lib/utils/typeUtils.js.map +1 -0
  224. package/lib/utils/utils.d.ts +20 -0
  225. package/lib/utils/utils.js +39 -0
  226. package/lib/utils/utils.js.map +1 -0
  227. package/lib/workers/index.d.ts +2 -0
  228. package/lib/workers/index.js +15 -0
  229. package/lib/workers/index.js.map +1 -0
  230. package/package.json +34 -37
  231. package/dist/20d012c938e8d0dcc703.mp3 +0 -0
  232. package/dist/2d9c9ae572663301cb7d.js +0 -75391
  233. package/dist/CHANGELOG.md +0 -701
  234. package/dist/carbonio-head.svg +0 -200
  235. package/dist/carbonio.svg +0 -10
  236. package/dist/commit +0 -1
  237. package/dist/component.json +0 -13
  238. package/dist/favicon.png +0 -0
  239. package/dist/files/roboto-cyrillic-300-normal.woff +0 -0
  240. package/dist/files/roboto-cyrillic-300-normal.woff2 +0 -0
  241. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  242. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  243. package/dist/files/roboto-cyrillic-500-normal.woff +0 -0
  244. package/dist/files/roboto-cyrillic-500-normal.woff2 +0 -0
  245. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  246. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  247. package/dist/files/roboto-cyrillic-ext-300-normal.woff +0 -0
  248. package/dist/files/roboto-cyrillic-ext-300-normal.woff2 +0 -0
  249. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  250. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  251. package/dist/files/roboto-cyrillic-ext-500-normal.woff +0 -0
  252. package/dist/files/roboto-cyrillic-ext-500-normal.woff2 +0 -0
  253. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  254. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  255. package/dist/files/roboto-greek-300-normal.woff +0 -0
  256. package/dist/files/roboto-greek-300-normal.woff2 +0 -0
  257. package/dist/files/roboto-greek-400-normal.woff +0 -0
  258. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  259. package/dist/files/roboto-greek-500-normal.woff +0 -0
  260. package/dist/files/roboto-greek-500-normal.woff2 +0 -0
  261. package/dist/files/roboto-greek-700-normal.woff +0 -0
  262. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  263. package/dist/files/roboto-greek-ext-300-normal.woff +0 -0
  264. package/dist/files/roboto-greek-ext-300-normal.woff2 +0 -0
  265. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  266. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  267. package/dist/files/roboto-greek-ext-500-normal.woff +0 -0
  268. package/dist/files/roboto-greek-ext-500-normal.woff2 +0 -0
  269. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  270. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  271. package/dist/files/roboto-latin-300-normal.woff +0 -0
  272. package/dist/files/roboto-latin-300-normal.woff2 +0 -0
  273. package/dist/files/roboto-latin-400-normal.woff +0 -0
  274. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  275. package/dist/files/roboto-latin-500-normal.woff +0 -0
  276. package/dist/files/roboto-latin-500-normal.woff2 +0 -0
  277. package/dist/files/roboto-latin-700-normal.woff +0 -0
  278. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  279. package/dist/files/roboto-latin-ext-300-normal.woff +0 -0
  280. package/dist/files/roboto-latin-ext-300-normal.woff2 +0 -0
  281. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  282. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  283. package/dist/files/roboto-latin-ext-500-normal.woff +0 -0
  284. package/dist/files/roboto-latin-ext-500-normal.woff2 +0 -0
  285. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  286. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  287. package/dist/files/roboto-vietnamese-300-normal.woff +0 -0
  288. package/dist/files/roboto-vietnamese-300-normal.woff2 +0 -0
  289. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  290. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  291. package/dist/files/roboto-vietnamese-500-normal.woff +0 -0
  292. package/dist/files/roboto-vietnamese-500-normal.woff2 +0 -0
  293. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  294. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  295. package/dist/i18n/ar.json +0 -1
  296. package/dist/i18n/de.json +0 -438
  297. package/dist/i18n/en-US.json +0 -1
  298. package/dist/i18n/en.json +0 -438
  299. package/dist/i18n/es-419.json +0 -1
  300. package/dist/i18n/es.json +0 -438
  301. package/dist/i18n/fa.json +0 -1
  302. package/dist/i18n/fi.json +0 -12
  303. package/dist/i18n/fr.json +0 -438
  304. package/dist/i18n/hi.json +0 -438
  305. package/dist/i18n/hr.json +0 -1
  306. package/dist/i18n/hu.json +0 -31
  307. package/dist/i18n/id.json +0 -438
  308. package/dist/i18n/it.json +0 -438
  309. package/dist/i18n/ja.json +0 -438
  310. package/dist/i18n/ky.json +0 -6
  311. package/dist/i18n/nl.json +0 -438
  312. package/dist/i18n/pl.json +0 -438
  313. package/dist/i18n/pt-PT.json +0 -1
  314. package/dist/i18n/pt.json +0 -438
  315. package/dist/i18n/pt_BR.json +0 -438
  316. package/dist/i18n/ro.json +0 -9
  317. package/dist/i18n/ru.json +0 -438
  318. package/dist/i18n/th.json +0 -438
  319. package/dist/i18n/tr.json +0 -438
  320. package/dist/i18n/uk.json +0 -186
  321. package/dist/i18n/vi.json +0 -396
  322. package/dist/i18n/zh_Hans.json +0 -412
  323. package/dist/index.html +0 -25
  324. package/dist/notification.mp3 +0 -0
  325. package/dist/package/PKGBUILD +0 -45
  326. package/dist/plugins/help/js/i18n/keynav/de.js +0 -90
  327. package/dist/plugins/help/js/i18n/keynav/en.js +0 -90
  328. package/dist/plugins/help/js/i18n/keynav/es.js +0 -90
  329. package/dist/plugins/help/js/i18n/keynav/fr_FR.js +0 -90
  330. package/dist/plugins/help/js/i18n/keynav/hi.js +0 -90
  331. package/dist/plugins/help/js/i18n/keynav/it.js +0 -90
  332. package/dist/plugins/help/js/i18n/keynav/ja.js +0 -90
  333. package/dist/plugins/help/js/i18n/keynav/nl.js +0 -90
  334. package/dist/plugins/help/js/i18n/keynav/pl.js +0 -90
  335. package/dist/plugins/help/js/i18n/keynav/pt_BR.js +0 -90
  336. package/dist/plugins/help/js/i18n/keynav/ro.js +0 -90
  337. package/dist/plugins/help/js/i18n/keynav/ru.js +0 -90
  338. package/dist/plugins/help/js/i18n/keynav/th_TH.js +0 -90
  339. package/dist/plugins/help/js/i18n/keynav/tr.js +0 -90
  340. package/dist/plugins/help/js/i18n/keynav/vi.js +0 -90
  341. package/dist/skins/content/dark/content.css +0 -59
  342. package/dist/skins/content/dark/content.min.css +0 -8
  343. package/dist/skins/content/default/content.css +0 -49
  344. package/dist/skins/content/default/content.min.css +0 -8
  345. package/dist/skins/content/document/content.css +0 -53
  346. package/dist/skins/content/document/content.min.css +0 -8
  347. package/dist/skins/content/writer/content.css +0 -50
  348. package/dist/skins/content/writer/content.min.css +0 -8
  349. package/dist/skins/ui/oxide/content.css +0 -615
  350. package/dist/skins/ui/oxide/content.inline.css +0 -608
  351. package/dist/skins/ui/oxide/content.inline.min.css +0 -8
  352. package/dist/skins/ui/oxide/content.min.css +0 -8
  353. package/dist/skins/ui/oxide/content.mobile.css +0 -29
  354. package/dist/skins/ui/oxide/content.mobile.min.css +0 -8
  355. package/dist/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  356. package/dist/skins/ui/oxide/skin.css +0 -2884
  357. package/dist/skins/ui/oxide/skin.min.css +0 -8
  358. package/dist/skins/ui/oxide/skin.mobile.css +0 -673
  359. package/dist/skins/ui/oxide/skin.mobile.min.css +0 -8
  360. package/dist/skins/ui/oxide-dark/content.css +0 -596
  361. package/dist/skins/ui/oxide-dark/content.inline.css +0 -608
  362. package/dist/skins/ui/oxide-dark/content.inline.min.css +0 -8
  363. package/dist/skins/ui/oxide-dark/content.min.css +0 -8
  364. package/dist/skins/ui/oxide-dark/content.mobile.css +0 -29
  365. package/dist/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  366. package/dist/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  367. package/dist/skins/ui/oxide-dark/skin.css +0 -2884
  368. package/dist/skins/ui/oxide-dark/skin.min.css +0 -8
  369. package/dist/skins/ui/oxide-dark/skin.mobile.css +0 -673
  370. package/dist/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  371. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.css +0 -21
  372. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.css.map +0 -1
  373. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.d07f086d.chunk.js +0 -13399
  374. package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.d07f086d.chunk.js.map +0 -1
  375. package/dist/src_workers_folder_ts.2df69eae.chunk.js +0 -537
  376. package/dist/src_workers_folder_ts.2df69eae.chunk.js.map +0 -1
  377. package/dist/src_workers_tag_ts.59a752d7.chunk.js +0 -113
  378. package/dist/src_workers_tag_ts.59a752d7.chunk.js.map +0 -1
  379. package/dist/style.a7eb9e6c.css +0 -389
  380. package/dist/style.a7eb9e6c.css.map +0 -1
  381. package/dist/tinymce/langs/de.js +0 -1
  382. package/dist/tinymce/langs/es.js +0 -1
  383. package/dist/tinymce/langs/fr_FR.js +0 -1
  384. package/dist/tinymce/langs/hi.js +0 -1
  385. package/dist/tinymce/langs/it.js +0 -1
  386. package/dist/tinymce/langs/ja.js +0 -1
  387. package/dist/tinymce/langs/nl.js +0 -1
  388. package/dist/tinymce/langs/pl.js +0 -1
  389. package/dist/tinymce/langs/pt_BR.js +0 -1
  390. package/dist/tinymce/langs/ro.js +0 -1
  391. package/dist/tinymce/langs/ru.js +0 -1
  392. package/dist/tinymce/langs/th_TH.js +0 -1
  393. package/dist/tinymce/langs/tr.js +0 -1
  394. package/dist/tinymce/langs/vi.js +0 -1
  395. package/dist/tinymce/langs/zh-Hans.js +0 -1
  396. package/dist/vendors-node_modules_date-fns__lib_isSameUTCWeek_index_js-node_modules_date-fns_locale__lib_b-41ea83.3e405109.chunk.js +0 -412
  397. package/dist/vendors-node_modules_date-fns__lib_isSameUTCWeek_index_js-node_modules_date-fns_locale__lib_b-41ea83.3e405109.chunk.js.map +0 -1
  398. package/dist/vendors-node_modules_date-fns_locale_de_index_js.42fc0cb6.chunk.js +0 -787
  399. package/dist/vendors-node_modules_date-fns_locale_de_index_js.42fc0cb6.chunk.js.map +0 -1
  400. package/dist/vendors-node_modules_date-fns_locale_en-US_index_js.1575ad91.chunk.js +0 -693
  401. package/dist/vendors-node_modules_date-fns_locale_en-US_index_js.1575ad91.chunk.js.map +0 -1
  402. package/dist/vendors-node_modules_date-fns_locale_es_index_js.a054d7dc.chunk.js +0 -685
  403. package/dist/vendors-node_modules_date-fns_locale_es_index_js.a054d7dc.chunk.js.map +0 -1
  404. package/dist/vendors-node_modules_date-fns_locale_fr_index_js.20eefc5f.chunk.js +0 -644
  405. package/dist/vendors-node_modules_date-fns_locale_fr_index_js.20eefc5f.chunk.js.map +0 -1
  406. package/dist/vendors-node_modules_date-fns_locale_hi_index_js.016d9c1b.chunk.js +0 -741
  407. package/dist/vendors-node_modules_date-fns_locale_hi_index_js.016d9c1b.chunk.js.map +0 -1
  408. package/dist/vendors-node_modules_date-fns_locale_it_index_js.b1509e74.chunk.js +0 -531
  409. package/dist/vendors-node_modules_date-fns_locale_it_index_js.b1509e74.chunk.js.map +0 -1
  410. package/dist/vendors-node_modules_date-fns_locale_ja_index_js.7ee709ea.chunk.js +0 -703
  411. package/dist/vendors-node_modules_date-fns_locale_ja_index_js.7ee709ea.chunk.js.map +0 -1
  412. package/dist/vendors-node_modules_date-fns_locale_nl_index_js.03ea6284.chunk.js +0 -638
  413. package/dist/vendors-node_modules_date-fns_locale_nl_index_js.03ea6284.chunk.js.map +0 -1
  414. package/dist/vendors-node_modules_date-fns_locale_pl_index_js.b1a781fa.chunk.js +0 -623
  415. package/dist/vendors-node_modules_date-fns_locale_pl_index_js.b1a781fa.chunk.js.map +0 -1
  416. package/dist/vendors-node_modules_date-fns_locale_pt-BR_index_js.695bc207.chunk.js +0 -682
  417. package/dist/vendors-node_modules_date-fns_locale_pt-BR_index_js.695bc207.chunk.js.map +0 -1
  418. package/dist/vendors-node_modules_date-fns_locale_pt_index_js.09460edb.chunk.js +0 -678
  419. package/dist/vendors-node_modules_date-fns_locale_pt_index_js.09460edb.chunk.js.map +0 -1
  420. package/dist/vendors-node_modules_date-fns_locale_ro_index_js.53425395.chunk.js +0 -670
  421. package/dist/vendors-node_modules_date-fns_locale_ro_index_js.53425395.chunk.js.map +0 -1
  422. package/dist/vendors-node_modules_date-fns_locale_ru_index_js.ab8b44d9.chunk.js +0 -707
  423. package/dist/vendors-node_modules_date-fns_locale_ru_index_js.ab8b44d9.chunk.js.map +0 -1
  424. package/dist/vendors-node_modules_date-fns_locale_th_index_js.9f2448ee.chunk.js +0 -672
  425. package/dist/vendors-node_modules_date-fns_locale_th_index_js.9f2448ee.chunk.js.map +0 -1
  426. package/dist/vendors-node_modules_date-fns_locale_tr_index_js.c47c86fa.chunk.js +0 -677
  427. package/dist/vendors-node_modules_date-fns_locale_tr_index_js.c47c86fa.chunk.js.map +0 -1
  428. package/dist/vendors-node_modules_date-fns_locale_vi_index_js.d02adf1c.chunk.js +0 -765
  429. package/dist/vendors-node_modules_date-fns_locale_vi_index_js.d02adf1c.chunk.js.map +0 -1
  430. package/dist/vendors-node_modules_date-fns_locale_zh-CN_index_js.505f5507.chunk.js +0 -521
  431. package/dist/vendors-node_modules_date-fns_locale_zh-CN_index_js.505f5507.chunk.js.map +0 -1
  432. package/dist/vendors-node_modules_lodash_lodash_js-node_modules_core-js_modules_es_array_push_js.8ced7511.chunk.js +0 -19112
  433. package/dist/vendors-node_modules_lodash_lodash_js-node_modules_core-js_modules_es_array_push_js.8ced7511.chunk.js.map +0 -1
  434. package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.88e81e25.chunk.js +0 -219343
  435. package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.88e81e25.chunk.js.map +0 -1
  436. package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.css +0 -4104
  437. package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.css.map +0 -1
  438. package/dist/yap.json +0 -11
  439. package/dist/zapp-shell.bundle.js +0 -30430
  440. package/dist/zapp-shell.bundle.js.map +0 -1
  441. package/types/account/index.d.ts +0 -179
  442. package/types/apps/index.d.ts +0 -198
  443. package/types/boards/index.d.ts +0 -31
  444. package/types/exports/index.d.ts +0 -256
  445. package/types/folder/index.d.ts +0 -33
  446. package/types/i18n/index.d.ts +0 -19
  447. package/types/index.d.ts +0 -20
  448. package/types/integrations/index.d.ts +0 -41
  449. package/types/loginConfig/index.d.ts +0 -17
  450. package/types/misc/index.d.ts +0 -309
  451. package/types/network/entities.d.ts +0 -106
  452. package/types/network/index.d.ts +0 -239
  453. package/types/network/soap.d.ts +0 -106
  454. package/types/notification/index.d.ts +0 -31
  455. package/types/search/index.d.ts +0 -18
  456. package/types/search/items.d.ts +0 -13
  457. package/types/settings/index.d.ts +0 -10
  458. package/types/styled-components.d.ts +0 -18
  459. package/types/tags/index.d.ts +0 -21
  460. package/types/theme/index.d.ts +0 -9
  461. package/types/workers/index.d.ts +0 -24
@@ -1,179 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
3
- *
4
- * SPDX-License-Identifier: AGPL-3.0-only
5
- */
6
-
7
- import { DARK_READER_PROP_KEY, DELEGATED_SEND_SAVE_TARGET } from '../../src/constants';
8
- import { StringOfLength } from '../../src/utils/typeUtils';
9
- import type { SHELL_APP_ID } from '../exports';
10
- import type { DarkReaderPropValues } from '../misc';
11
- import { AccountACEInfo } from '../network/entities';
12
-
13
- export interface ZimletProp {
14
- name: string;
15
- zimlet: string;
16
- _content: string;
17
- }
18
-
19
- export interface ZappDarkreaderModeZimletProp extends ZimletProp {
20
- name: typeof DARK_READER_PROP_KEY;
21
- zimlet: SHELL_APP_ID;
22
- _content: DarkReaderPropValues;
23
- }
24
-
25
- export type SoapFetch = <Request, Response>(
26
- api: string,
27
- body: Request,
28
- account?: string,
29
- signal?: AbortSignal
30
- ) => Promise<Response>;
31
-
32
- export type AccountState = {
33
- authenticated: boolean;
34
- account?: Account;
35
- rights?: Array<AccountACEInfo>;
36
- settings: AccountSettings;
37
- zimbraVersion?: string;
38
- usedQuota: number;
39
- };
40
-
41
- export interface Identity {
42
- /** Identity name */
43
- name?: string;
44
- /** Identity ID */
45
- id: string;
46
- /** Attributes */
47
- _attrs: IdentityAttrs;
48
- }
49
-
50
- export type Account = {
51
- id: string;
52
- name: string;
53
- displayName: string;
54
- signatures: { signature: Array<unknown> };
55
- identities: { identity: Array<Identity> };
56
- rights: AccountRights;
57
- };
58
-
59
- export type DelegateProps = {
60
- email: string;
61
- right: string;
62
- };
63
-
64
- export type BooleanString = 'TRUE' | 'FALSE';
65
-
66
- type GenTimeObj = {
67
- year: `${number}` & StringOfLength<4>;
68
- month: `${number}` & StringOfLength<2>;
69
- date: `${number}` & StringOfLength<2>;
70
- hour: `${number}` & StringOfLength<2>;
71
- min: `${number}` & StringOfLength<2>;
72
- sec: `${number}` & StringOfLength<2>;
73
- ms: (`.${number}` & StringOfLength<4>) | '';
74
- timezone: 'Z' | '';
75
- };
76
-
77
- export type GeneralizedTime =
78
- `${GenTimeObj['year']}${GenTimeObj['month']}${GenTimeObj['date']}${GenTimeObj['hour']}${GenTimeObj['min']}${GenTimeObj['sec']}${GenTimeObj['ms']}${GenTimeObj['timezone']}`;
79
-
80
- export type DurationUnit = 'd' | 'h' | 'm' | 's' | 'ms';
81
-
82
- export type Duration = `${number}${DurationUnit | ''}`;
83
-
84
- export interface AccountSettingsPrefs {
85
- zimbraPrefOutOfOfficeExternalReply?: string;
86
- zimbraPrefOutOfOfficeReply?: string;
87
- zimbraPrefOutOfOfficeReplyEnabled?: BooleanString;
88
- zimbraPrefOutOfOfficeExternalReplyEnabled?: BooleanString;
89
- zimbraPrefExternalSendersType?: 'ALL' | 'ALLNOTINAB' | 'INAB' | 'INSD';
90
- zimbraPrefOutOfOfficeSuppressExternalReply?: BooleanString;
91
- zimbraPrefOutOfOfficeFreeBusyStatus?: 'BUSY' | 'OUTOFOFFICE';
92
- zimbraPrefOutOfOfficeStatusAlertOnLogin?: BooleanString;
93
- zimbraPrefIncludeSharedItemsInSearch?: BooleanString;
94
- zimbraPrefIncludeSpamInSearch?: BooleanString;
95
- zimbraPrefIncludeTrashInSearch?: BooleanString;
96
- zimbraPrefOutOfOfficeFromDate?: GeneralizedTime;
97
- zimbraPrefOutOfOfficeUntilDate?: GeneralizedTime;
98
- zimbraPrefHtmlEditorDefaultFontColor?: string;
99
- zimbraPrefHtmlEditorDefaultFontFamily?: string;
100
- zimbraPrefHtmlEditorDefaultFontSize?: string;
101
- zimbraPrefLocale?: string;
102
- zimbraPrefMailPollingInterval?: Duration;
103
- zimbraPrefMailTrustedSenderList?: Array<string> | string;
104
- zimbraPrefDelegatedSendSaveTarget?: (typeof DELEGATED_SEND_SAVE_TARGET)[number];
105
- zimbraPrefTimeZoneId?: string;
106
- [key: string]: string | number | Array<string | number>;
107
- }
108
-
109
- export type AccountSettingsAttrs = {
110
- zimbraFeatureOptionsEnabled?: BooleanString;
111
- zimbraIdentityMaxNumEntries?: number;
112
- [key: string]: string | number | Array<string | number>;
113
- };
114
-
115
- export type AccountSettings = {
116
- attrs: AccountSettingsAttrs;
117
- prefs: AccountSettingsPrefs;
118
- props: Array<ZimletProp>;
119
- };
120
-
121
- export interface IdentityAttrs {
122
- /** default mail signature for account/identity/dataSource */
123
- zimbraPrefDefaultSignatureId?: string;
124
- zimbraPrefForwardReplyFormat?: `'text' | 'html' | 'same'`;
125
- /** forward/reply signature id for account/identity/dataSource */
126
- zimbraPrefForwardReplySignatureId?: string;
127
- /** email address to put in from header. Deprecated on data source as of bug 67068. */
128
- zimbraPrefFromAddress?: string;
129
- /** Type of the email address from header. (sendAs or sendOnBehalfOf) */
130
- zimbraPrefFromAddressType: 'sendAs' | 'sendOnBehalfOf';
131
- /** personal part of email address put in from header */
132
- zimbraPrefFromDisplay?: string;
133
- zimbraPrefIdentityId?: string;
134
- /** name of the identity */
135
- zimbraPrefIdentityName?: string;
136
- zimbraPrefMailSignatureStyle?: 'outlook' | 'internet';
137
- /** address to put in reply-to header */
138
- zimbraPrefReplyToAddress?: string;
139
- /** personal part of email address put in reply-to header */
140
- zimbraPrefReplyToDisplay?: string;
141
- /** TRUE if we should set a reply-to header */
142
- zimbraPrefReplyToEnabled?: BooleanString;
143
- /** name of folder to save sent mail in (deprecatedSince 5.0 in identity) */
144
- zimbraPrefSentMailFolder?: string;
145
- zimbraPrefWhenInFolderIds?: Array<string | null>;
146
- /** TRUE if we should look at zimbraPrefWhenInFolderIds (deprecatedSince 5.0 in account) */
147
- zimbraPrefWhenInFoldersEnabled?: BooleanString;
148
- /** addresses that we will look at to see if we should use an identity (deprecatedSince 5.0 in account) */
149
- zimbraPrefWhenSentToAddresses?: Array<string | null>;
150
- /** TRUE if we should look at zimbraPrefWhenSentToAddresses (deprecatedSince 5.0 in account) */
151
- zimbraPrefWhenSentToEnabled?: BooleanString;
152
- /** whether or not to save outgoing mail (deprecatedSince 5.0 in identity) */
153
- zimbraPrefSaveToSent?: BooleanString;
154
- }
155
-
156
- export type AccountRightTargetEmail = {
157
- addr: string;
158
- };
159
-
160
- export type AccountRightTarget = {
161
- d: string;
162
- id: string;
163
- name: string;
164
- type: string;
165
- email: Array<AccountRightTargetEmail>;
166
- };
167
-
168
- export type AccountRightName =
169
- | 'sendAs'
170
- | 'sendAsDistList'
171
- | 'viewFreeBusy'
172
- | 'sendOnBehalfOf'
173
- | 'sendOnBehalfOfDistList';
174
- export type AccountRights = {
175
- targets: Array<{
176
- right: AccountRightName;
177
- target: Array<AccountRightTarget>;
178
- }>;
179
- };
@@ -1,198 +0,0 @@
1
- /* eslint-disable @typescript-eslint/ban-types */
2
- /*
3
- * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
- *
5
- * SPDX-License-Identifier: AGPL-3.0-only
6
- */
7
-
8
- import React, { ComponentType, FC } from 'react';
9
-
10
- import { DefaultTheme } from 'styled-components';
11
-
12
- import { QueryChip } from '../search';
13
-
14
- export type CarbonioModule = {
15
- commit: string;
16
- description: string;
17
- // eslint-disable-next-line camelcase
18
- js_entrypoint: string;
19
- name: string;
20
- priority: number;
21
- version: string;
22
- type: 'carbonio' | 'shell';
23
- attrKey?: string;
24
- icon: string;
25
- display: string;
26
- sentryDsn?: string;
27
- };
28
-
29
- export type AppRoute = {
30
- id: string;
31
- route: string;
32
- app: string;
33
- focusMode?: boolean;
34
- };
35
-
36
- export type AppRouteData = AppRoute & {
37
- primaryBar: PrimaryBarView;
38
- secondaryBar?: SecondaryBarView;
39
- appView: AppView;
40
- };
41
-
42
- export type BadgeInfo = {
43
- show: boolean;
44
- count?: number;
45
- showCount?: boolean;
46
- color?: keyof DefaultTheme['palette'];
47
- };
48
-
49
- export type CarbonioView<P> = {
50
- id: string;
51
- app: string;
52
- route: string;
53
- component: ComponentType<P>;
54
- };
55
-
56
- export type CarbonioAccessoryView<P> = {
57
- id: string;
58
- app: string;
59
- whitelistRoutes?: Array<string>;
60
- blacklistRoutes?: Array<string>;
61
- position: number;
62
- component: ComponentType<P>;
63
- };
64
- export type PrimaryBarComponentProps = { active: boolean };
65
- export type SecondaryBarComponentProps = { expanded: boolean };
66
- export type AppViewComponentProps = {};
67
- export type BoardViewComponentProps = {
68
- windowHistory: History;
69
- };
70
- export type SettingsViewProps = {};
71
- export type SearchViewProps = {
72
- useQuery: () => [QueryChip[], Function];
73
- ResultsHeader: FC<{ label: string }>;
74
- useDisableSearch: () => [boolean, Function];
75
- };
76
- export type PrimaryAccessoryViewProps = {};
77
- export type SecondaryAccessoryViewProps = { expanded: boolean };
78
- export type PanelMode = 'closed' | 'overlap' | 'open';
79
-
80
- export type UtilityBarComponentProps = { mode: PanelMode; setMode: (mode: PanelMode) => void };
81
- export type PrimaryBarView = Omit<CarbonioView<PrimaryBarComponentProps>, 'component'> & {
82
- component: string | ComponentType<PrimaryBarComponentProps>;
83
- badge: BadgeInfo;
84
- position: number;
85
- visible: boolean;
86
- label: string;
87
- };
88
-
89
- export type SecondaryBarView = CarbonioView<SecondaryBarComponentProps>;
90
-
91
- export type AppView = CarbonioView<AppViewComponentProps>;
92
-
93
- export type BoardView = CarbonioView<BoardViewComponentProps>;
94
-
95
- export type UtilityView = CarbonioAccessoryView<UtilityBarComponentProps> & {
96
- button: string | ComponentType<UtilityBarComponentProps>;
97
- component: ComponentType<UtilityBarComponentProps>;
98
- badge: BadgeInfo;
99
- label: string;
100
- };
101
- export type SettingsSubSection = { label: string; id: string };
102
- export type SettingsView = CarbonioView<SettingsViewProps> & {
103
- icon: string;
104
- label: string;
105
- position: number;
106
- subSections?: Array<SettingsSubSection>;
107
- };
108
-
109
- export type SearchView = CarbonioView<SearchViewProps> & {
110
- icon: string;
111
- label: string;
112
- position: number;
113
- };
114
-
115
- export type PrimaryAccessoryView = CarbonioAccessoryView<PrimaryAccessoryViewProps> & {
116
- component: string | ComponentType;
117
- onClick?: (ev: KeyboardEvent | React.MouseEvent<HTMLButtonElement> | undefined) => void;
118
- label: string;
119
- };
120
-
121
- export type SecondaryAccessoryView = CarbonioAccessoryView<SecondaryAccessoryViewProps>;
122
-
123
- export type AppRouteDescriptor = {
124
- id: string;
125
- route: string;
126
- app: string;
127
- primaryBar: string | ComponentType<PrimaryBarComponentProps>;
128
- badge: BadgeInfo;
129
- position: number;
130
- visible: boolean;
131
- label: string;
132
- secondaryBar?: ComponentType<SecondaryBarComponentProps>;
133
- appView: ComponentType<AppViewComponentProps>;
134
- focusMode?: boolean;
135
- };
136
- export type AppSetters = {
137
- setApps: (apps: Array<Partial<CarbonioModule>>) => void;
138
- // add route (id route primaryBar secondaryBar app)
139
- addRoute: (routeData: AppRouteDescriptor) => string;
140
- setRouteVisibility: (id: string, visible: boolean) => void;
141
- // remove route (id | route)
142
- removeRoute: (id: string) => void;
143
- //
144
- // update primaryBar
145
- updatePrimaryBadge: (badge: Partial<BadgeInfo>, id: string) => void;
146
- updateUtilityBadge: (badge: Partial<BadgeInfo>, id: string) => void;
147
- //
148
- // add board
149
- addBoardView: (data: BoardView) => string;
150
- // remove board
151
- removeBoardView: (id: string) => void;
152
- //
153
- // add settings
154
- addSettingsView: (data: SettingsView) => string;
155
- // remove settings
156
- removeSettingsView: (id: string) => void;
157
- //
158
- // add search
159
- addSearchView: (data: SearchView) => string;
160
- // remove search
161
- removeSearchView: (id: string) => void;
162
- //
163
- // add utility
164
- addUtilityView: (data: UtilityView) => string;
165
- // remove utility
166
- removeUtilityView: (id: string) => void;
167
- //
168
- // add primaryAccessory
169
- addPrimaryAccessoryView: (data: PrimaryAccessoryView) => string;
170
- // remove primaryAccessory
171
- removePrimaryAccessoryView: (id: string) => void;
172
- //
173
- // add secondaryAccessory
174
- addSecondaryAccessoryView: (data: SecondaryAccessoryView) => string;
175
- // remove secondaryAccessory
176
- removeSecondaryAccessoryView: (id: string) => void;
177
- setAppContext: (app: string) => (context: unknown) => void;
178
- };
179
- export type AppState = {
180
- focusMode: false | string;
181
- apps: Record<string, CarbonioModule>;
182
- appContexts: Record<string, unknown>;
183
- entryPoints: Record<string, ComponentType>;
184
- routes: Record<string, AppRoute>;
185
- views: {
186
- primaryBar: Array<PrimaryBarView>;
187
- secondaryBar: Array<SecondaryBarView>;
188
- appView: Array<AppView>;
189
- board: Array<BoardView>;
190
- utilityBar: Array<UtilityView>;
191
- settings: Array<SettingsView>;
192
- search: Array<SearchView>;
193
- primaryBarAccessories: Array<PrimaryAccessoryView>;
194
- secondaryBarAccessories: Array<SecondaryAccessoryView>;
195
- };
196
- setters: AppSetters;
197
- shell: CarbonioModule;
198
- };
@@ -1,31 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
3
- *
4
- * SPDX-License-Identifier: AGPL-3.0-only
5
- */
6
- export type Board<T = unknown> = {
7
- id: string;
8
- url: string;
9
- app: string;
10
- icon: string;
11
- title: string;
12
- context?: T;
13
- onClose?: (board: Board<T>) => void;
14
- onGoToPanel?: (board: Board<T>) => void;
15
- };
16
-
17
- export type BoardState = {
18
- orderedBoards: Array<string>;
19
- boards: Record<string, Board>;
20
- expanded: boolean;
21
- minimized: boolean;
22
- current?: string;
23
- };
24
-
25
- export type BoardHooksContext = {
26
- closeBoard: () => void;
27
- updateBoard: (b: Partial<Board>) => void;
28
- setCurrentBoard: () => void;
29
- getBoardContext: <T>() => T;
30
- getBoard: <T>() => Board<T>;
31
- };
@@ -1,256 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
3
- *
4
- * SPDX-License-Identifier: AGPL-3.0-only
5
- */
6
-
7
- import { ComponentType, Dispatch, FC, SetStateAction } from 'react';
8
-
9
- import { CreateModalFn, CreateSnackbarFn } from '@zextras/carbonio-design-system';
10
- import { i18n } from 'i18next';
11
- import { TFunction } from 'react-i18next';
12
- import { LinkProps } from 'react-router-dom';
13
-
14
- import { type EditSettingsBatchResponse } from '../../src/network/edit-settings';
15
- import {
16
- Account,
17
- AccountRightName,
18
- AccountRights,
19
- AccountRightTarget,
20
- AccountSettings,
21
- SoapFetch
22
- } from '../account';
23
- import {
24
- AppRoute,
25
- AppRouteDescriptor,
26
- BadgeInfo,
27
- BoardView,
28
- CarbonioModule,
29
- PrimaryAccessoryView,
30
- SearchView,
31
- SecondaryAccessoryView,
32
- SettingsView,
33
- UtilityView
34
- } from '../apps';
35
- import { Board, BoardHooksContext } from '../boards';
36
- import { Folder, Folders, LinkFolder, Roots, Searches, SearchFolder } from '../folder';
37
- import { Action, ActionFactory, AnyFunction, CombinedActionFactory } from '../integrations';
38
- import { AccordionFolder, BaseFolder, HistoryParams, ShellModes } from '../misc';
39
- import { CreateTagResponse, Mods, SoapNotify, SoapRefresh, TagActionResponse } from '../network';
40
- import { INotificationManager } from '../notification';
41
- import { QueryChip } from '../search';
42
- import { Tag, Tags } from '../tags';
43
-
44
- declare const getBridgedFunctions: () => {
45
- createModal: CreateModalFn;
46
- createSnackbar: CreateSnackbarFn;
47
- getHistory: () => History;
48
- };
49
- declare const editSettings: (
50
- mods: Mods
51
- ) => Promise<EditSettingsBatchResponse & { type?: 'fulfilled' }>;
52
- declare const ZIMBRA_STANDARD_COLORS: Array<{ zValue: number; hex: string; zLabel: string }>;
53
- declare const FOLDERS: {
54
- [name: string]: string;
55
- };
56
- declare const SHELL_APP_ID = 'carbonio-shell-ui';
57
- declare const SETTINGS_APP_ID = 'settings';
58
- declare const SEARCH_APP_ID = 'search';
59
- declare const ACTION_TYPES: {
60
- [name: string]: string;
61
- };
62
- declare const ROOT_NAME: string;
63
- declare const SHELL_MODES: Record<string, ShellModes>;
64
- declare const BASENAME: string;
65
-
66
- declare const IS_FOCUS_MODE: boolean;
67
-
68
- // eslint-disable-next-line @typescript-eslint/ban-types
69
- declare const getIntegratedFunction: (id: string) => [Function, boolean];
70
- declare const getIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
71
- declare const getActions: <T>(target: T, type: string) => Array<Action>;
72
- declare const getActionsFactory: (type: string) => <T>(target: T) => Array<Action>;
73
- declare const getAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
74
- declare const getActionFactory: <T>(
75
- type: string,
76
- id: string
77
- ) => [ActionFactory<T> | undefined, boolean];
78
- // eslint-disable-next-line @typescript-eslint/ban-types
79
- declare const useIntegratedFunction: (id: string) => [Function, boolean];
80
- declare const useIntegratedComponent: (id: string) => [ComponentType<unknown>, boolean];
81
- declare const useActions: <T>(target: T, type: string) => Array<Action>;
82
- declare const useActionsFactory: <T>(type: string) => CombinedActionFactory<T>;
83
- declare const useAction: <T>(type: string, id: string, target?: T) => [Action | undefined, boolean];
84
- declare const useActionFactory: <T>(
85
- type: string,
86
- id: string
87
- ) => [ActionFactory<T> | undefined, boolean];
88
- declare const useApp: () => CarbonioModule;
89
- declare const getApp: () => CarbonioModule;
90
- declare const useAppContext: <T>() => T;
91
- declare const getAppContext: <T>() => T;
92
- declare const useUserAccount: () => Account;
93
- declare const useAuthenticated: () => boolean;
94
- declare const useUserAccounts: () => Array<Account>;
95
- declare const useUserRights: () => AccountRights;
96
- declare const useUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
97
- declare const getUserAccount: () => Account | undefined;
98
- declare const getUserAccounts: () => Array<Account>;
99
- declare const getUserRights: () => AccountRights;
100
- declare const getUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
101
- declare const useTags: () => Tags;
102
- declare const getTags: () => Tags;
103
- declare const useTag: (id: string) => Tag;
104
- declare const getTag: (id: string) => Tag;
105
- declare const useFolder: (id: string) => BaseFolder | Folder | LinkFolder;
106
- declare const getFolder: (id: string) => BaseFolder | Folder | LinkFolder;
107
- declare const useFolders: () => Folders;
108
- declare const getFolders: () => Folders;
109
- declare const useRoot: (name: string) => Folder;
110
- declare const getRoot: (name: string) => Folder;
111
- declare const useRoots: () => Roots;
112
- declare const getRoots: () => Roots;
113
- declare const useRootByView: (view: string) => Folder;
114
- declare const getRootByView: (view: string) => Folder;
115
- declare const createTag: (tag: Omit<Tag, 'id'>) => Promise<CreateTagResponse>;
116
- declare const renameTag: (id: string, name: string) => Promise<TagActionResponse>;
117
- declare const deleteTag: (id: string) => Promise<TagActionResponse>;
118
- declare const changeTagColor: (id: string, color: number | string) => Promise<TagActionResponse>;
119
- declare const useUserSettings: () => AccountSettings;
120
- declare const useUserSetting: <T = void>(...path: Array<string>) => string | T;
121
- declare const getUserSettings: () => AccountSettings;
122
- declare const getUserSetting: <T = void>(...path: Array<string>) => string | T;
123
- declare const useNotify: () => Array<SoapNotify>;
124
- declare const useRefresh: () => SoapRefresh;
125
- declare const AppLink: FC<LinkProps>;
126
- declare const Spinner: FC;
127
-
128
- declare const useIsMobile: () => boolean;
129
- declare const soapFetch: SoapFetch;
130
- declare const xmlSoapFetch: SoapFetch;
131
- declare const report: (error: Error, hint?: unknown) => void;
132
- declare const setAppContext: <T>(obj: T) => void;
133
-
134
- declare const removeActions: (...ids: Array<string>) => void;
135
- declare const registerActions: (
136
- ...items: Array<{ id: string; action: ActionFactory<unknown>; type: string }>
137
- ) => void;
138
- declare const removeComponents: (...ids: Array<string>) => void;
139
- declare const registerComponents: <P>(
140
- ...items: Array<{ id: string; component: ComponentType<P> }>
141
- ) => void;
142
- declare const removeFunctions: (...ids: Array<string>) => void;
143
- declare const registerFunctions: (...items: Array<{ id: string; fn: AnyFunction }>) => void;
144
- // add route (id route primaryBar secondaryBar app)
145
- declare const addRoute: (routeData: Partial<AppRouteDescriptor>) => string;
146
- declare const setRouteVisibility: (id: string, visible: boolean) => void;
147
- // remove route (id | route)
148
- declare const removeRoute: (id: string) => void;
149
- //
150
- // update primaryBar
151
- declare const updatePrimaryBadge: (badge: Partial<BadgeInfo>, id: string) => void;
152
- declare const updateUtilityBadge: (badge: Partial<BadgeInfo>, id: string) => void;
153
- //
154
- // add board
155
- declare const addBoardView: (data: Record<string, unknown> & Partial<BoardView>) => string;
156
- // remove board
157
- declare const removeBoardView: (id: string) => void;
158
- //
159
- // add settings
160
- declare const addSettingsView: (data: Partial<SettingsView>) => string;
161
- // remove settings
162
- declare const removeSettingsView: (id: string) => void;
163
- //
164
- // add search
165
- declare const addSearchView: (data: Partial<SearchView>) => string;
166
- // remove search
167
- declare const removeSearchView: (id: string) => void;
168
- //
169
- // add utility
170
- declare const addUtilityView: (data: Partial<UtilityView>) => string;
171
- // remove utility
172
- declare const removeUtilityView: (id: string) => void;
173
- //
174
- // add primaryAccessory
175
- declare const addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => string;
176
- // remove primaryAccessory
177
- declare const removePrimaryAccessoryView: (id: string) => void;
178
- //
179
- // add secondaryAccessory
180
- declare const addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => string;
181
- // remove secondaryAccessory
182
- declare const removeSecondaryAccessoryView: (id: string) => void;
183
- declare const usePushHistoryCallback: () => (params: HistoryParams) => void;
184
- declare const useReplaceHistoryCallback: () => (params: HistoryParams) => void;
185
- declare const useGoBackHistoryCallback: () => () => void;
186
- declare const pushHistory: (params: HistoryParams) => void;
187
- declare const replaceHistory: (params: HistoryParams) => void;
188
- declare const goBackHistory: () => void;
189
- declare const useCurrentRoute: () => AppRoute | undefined;
190
- declare const getCurrentRoute: () => AppRoute | undefined;
191
-
192
- // FOLDERS
193
-
194
- // ROOTS
195
-
196
- // ROOTS BY USER
197
- declare const useRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
198
- declare const getRootByUser: (userId: string) => Folder | SearchFolder | Record<string, never>;
199
-
200
- // SEARCHES
201
-
202
- declare const useSearchFolder: (id: string) => SearchFolder | undefined;
203
- declare const useSearchFolders: (id: string) => SearchFolder | undefined;
204
- declare const getSearchFolder: () => Searches;
205
- declare const getSearchFolders: () => Searches;
206
-
207
- // Accordion-ize
208
-
209
- declare const useFoldersByView: (view: string) => Array<Folder>;
210
-
211
- declare const useFoldersAccordionByView: (
212
- view: string,
213
- CustomComponent: ComponentType<{ folder: Folder }>,
214
- itemProps?: (item: AccordionFolder) => Record<string, unknown>
215
- ) => Array<AccordionFolder>;
216
-
217
- // NOTIFICATION
218
- declare const getNotificationManager: () => INotificationManager;
219
-
220
- // Run Search
221
- declare const runSearch: (query: Array<QueryChip>, module: string) => void;
222
-
223
- declare const useLocalStorage: <T>(
224
- key: string,
225
- initialValue: T
226
- ) => [T, Dispatch<SetStateAction<T>>];
227
-
228
- // TRANSLATIONS
229
- declare const getI18n: () => i18n;
230
- declare const useI18n: () => i18n;
231
- declare const t: TFunction;
232
-
233
- declare const addBoard: <T = unknown>(
234
- board: Omit<Board<T>, 'app' | 'icon' | 'id'> & { id?: string; icon?: string },
235
- expanded?: boolean
236
- ) => Board;
237
- declare const closeBoard: (id: string) => void;
238
- declare const updateBoard: <T = unknown>(id: string, board: Partial<Board<T>>) => void;
239
- declare const updateBoardContext: <T = unknown>(id: string, context: T) => void;
240
- declare const getBoardById: <T>(id: string) => Board<T>;
241
- declare const getBoardContextById: <T>(id: string) => T;
242
- declare const useBoardContextById: <T>(id: string) => T;
243
- declare const useBoardById: <T>(id: string) => Board<T>;
244
- declare const minimizeBoards: () => void;
245
- declare const reopenBoards: () => void;
246
- declare const setCurrentBoard: (id: string) => void;
247
- declare const useBoardHooks: () => BoardHooksContext;
248
- declare const useBoard: <T>() => Board<T>;
249
-
250
- declare class Tracker {
251
- constructor(siteId: number);
252
-
253
- public trackPageView(customTitle?: string): void;
254
-
255
- public trackEvent(category: string, action: string, name?: string, value?: number): void;
256
- }
@@ -1,33 +0,0 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
3
- *
4
- * SPDX-License-Identifier: AGPL-3.0-only
5
- */
6
-
7
- import { BaseFolder, LinkFolderFields, SearchFolderFields } from '../misc';
8
-
9
- export type FolderFields = {
10
- // Additional Parameters
11
- isLink: boolean;
12
- depth: number;
13
- parent?: Folder;
14
- children: Array<Folder>;
15
- };
16
-
17
- export type UserFolder = BaseFolder & FolderFields & { isLink: false };
18
-
19
- export type LinkFolder = BaseFolder & FolderFields & LinkFolderFields & { isLink: true };
20
-
21
- export type SearchFolder = BaseFolder &
22
- Pick<FolderFields, 'parent' | 'isLink'> &
23
- SearchFolderFields;
24
- export type Folder = UserFolder | LinkFolder;
25
-
26
- export type Folders = { [id: string]: Folder };
27
- export type Roots = { [id: string]: Folder };
28
- export type Searches = { [id: string]: SearchFolder };
29
- export type FolderState = {
30
- folders: Folders;
31
- roots: Roots;
32
- searches: Searches;
33
- };