@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
@@ -0,0 +1,171 @@
1
+ /// <reference types="node" />
2
+ import type { AccountACEInfo } from './entities';
3
+ import type { SoapBody, SoapContext } from './soap';
4
+ import type { JSNS } from '../../constants';
5
+ import type { Exactify, RequireAtLeastOne, ValueOf } from '../../utils/typeUtils';
6
+ import type { AccountRights, AccountSettingsPrefs, Identity, IdentityAttrs, ZimletProp } from '../account';
7
+ 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<unknown>;
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
+ };
54
+ export type PropsMods = Record<string, {
55
+ app: string;
56
+ value: unknown;
57
+ }>;
58
+ export type PermissionsMods = {
59
+ freeBusy: {
60
+ current: AccountACEInfo[];
61
+ new: AccountACEInfo;
62
+ };
63
+ inviteRight: {
64
+ current: AccountACEInfo[];
65
+ new: AccountACEInfo;
66
+ };
67
+ };
68
+ /**
69
+ * @deprecated
70
+ */
71
+ export type CreateIdentityProps = {
72
+ requestId: number;
73
+ /** name of the identity */
74
+ zimbraPrefIdentityName: string | undefined;
75
+ /** personal part of email address put in from header */
76
+ zimbraPrefFromDisplay: string | undefined;
77
+ /** email address to put in from header. Deprecated on data source as of bug 67068. */
78
+ zimbraPrefFromAddress: string | undefined;
79
+ /** Type of the email address from header. (sendAs or sendOnBehalfOf) */
80
+ zimbraPrefFromAddressType: 'sendAs' | 'sendOnBehalfOf';
81
+ /** TRUE if we should set a reply-to header */
82
+ zimbraPrefReplyToEnabled: 'TRUE' | 'FALSE' | undefined;
83
+ /** personal part of email address put in reply-to header */
84
+ zimbraPrefReplyToDisplay: string | undefined;
85
+ /** address to put in reply-to header */
86
+ zimbraPrefReplyToAddress: string | undefined;
87
+ /** default mail signature for account/identity/dataSource */
88
+ zimbraPrefDefaultSignatureId: string | undefined;
89
+ /** forward/reply signature id for account/identity/dataSource */
90
+ zimbraPrefForwardReplySignatureId: string | undefined;
91
+ /** TRUE if we should look at zimbraPrefWhenSentToAddresses (deprecatedSince 5.0 in account) */
92
+ zimbraPrefWhenSentToEnabled: string | undefined;
93
+ /** TRUE if we should look at zimbraPrefWhenInFolderIds (deprecatedSince 5.0 in account) */
94
+ zimbraPrefWhenInFoldersEnabled: string | undefined;
95
+ };
96
+ export type CreateIdentityResponse = {
97
+ identity: [Identity];
98
+ };
99
+ export type ModifyIdentityResponse = Record<string, never>;
100
+ export type DeleteIdentityResponse = Record<string, never>;
101
+ export type ModifyPropertiesResponse = Record<string, never>;
102
+ export type ModifyPrefsResponse = Record<string, never>;
103
+ export type RevokeRightsResponse = {
104
+ ace?: AccountACEInfo[];
105
+ };
106
+ export type GrantRightsResponse = {
107
+ ace?: AccountACEInfo[];
108
+ };
109
+ export type IdentityMods = {
110
+ modifyList?: Record<string, {
111
+ id: string;
112
+ prefs: Partial<IdentityAttrs>;
113
+ }>;
114
+ deleteList?: string[];
115
+ createList?: {
116
+ prefs: Partial<IdentityAttrs>;
117
+ }[];
118
+ };
119
+ export type PrefsMods = Record<string, unknown> & AccountSettingsPrefs;
120
+ export interface Mods extends Record<string, Record<string, unknown> | undefined> {
121
+ props?: PropsMods;
122
+ prefs?: PrefsMods;
123
+ permissions?: PermissionsMods;
124
+ identity?: IdentityMods;
125
+ }
126
+ 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;
127
+ export type RemoveMod = (type: keyof Mods, key: keyof NonNullable<Mods[typeof type]>) => void;
128
+ export type Locale = {
129
+ id: string;
130
+ localName: string;
131
+ name: string;
132
+ };
133
+ export type AvailableLocalesResponse = {
134
+ locale: Array<Locale>;
135
+ };
136
+ export type NetworkState = SoapContext & {
137
+ noOpTimeout?: NodeJS.Timeout;
138
+ pollingInterval: number;
139
+ seq: number;
140
+ };
141
+ export type ModifyPrefsRequest = SoapBody<{
142
+ _attrs: AccountSettingsPrefs;
143
+ }>;
144
+ export type CreateIdentityRequest = SoapBody<{
145
+ identity: {
146
+ name?: string;
147
+ _attrs: IdentityAttrs;
148
+ };
149
+ }>;
150
+ export type ModifyIdentityRequest = SoapBody<{
151
+ identity: {
152
+ _attrs?: IdentityAttrs;
153
+ } & RequireAtLeastOne<Pick<Identity, 'id' | 'name'>>;
154
+ }>;
155
+ export type DeleteIdentityRequest = SoapBody<{
156
+ identity: {
157
+ name?: string;
158
+ id?: string;
159
+ };
160
+ requestId?: string;
161
+ }>;
162
+ export type ModifyPropertiesRequest = SoapBody<{
163
+ prop: Array<{
164
+ name: string;
165
+ zimlet: string;
166
+ _content: unknown;
167
+ }>;
168
+ }>;
169
+ export type BatchRequest<T extends Exactify<Record<`${string}Request`, unknown>, T> = Record<`${string}Request`, unknown>> = SoapBody<T>;
170
+ export type BatchResponse<T extends Exactify<Record<`${string}Response`, unknown>, T> = Record<`${string}Response`, unknown>> = SoapBody<T>;
171
+ export type NameSpace = ValueOf<typeof JSNS>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ __exportStar(require("./soap"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAcH,yCAAuB"}
@@ -0,0 +1,102 @@
1
+ import type { NameSpace } from './index';
2
+ import type { BaseFolder, LinkFolderFields, SearchFolderFields } from '../misc';
3
+ import type { Tag } from '../tags';
4
+ export interface RawSoapHeader {
5
+ context: RawSoapContext;
6
+ }
7
+ export interface SoapHeader {
8
+ context: SoapContext;
9
+ }
10
+ export type SoapBody<TBody = Record<string, unknown>> = TBody & {
11
+ _jsns: NameSpace;
12
+ };
13
+ export interface RawSuccessSoapResponse<R> {
14
+ Body: R;
15
+ Header: RawSoapHeader;
16
+ }
17
+ export interface SuccessSoapResponse<R> {
18
+ Body: Record<string, R>;
19
+ Header: SoapHeader;
20
+ }
21
+ export interface SoapFault {
22
+ Detail: {
23
+ Error: {
24
+ Code: string;
25
+ Detail: string;
26
+ };
27
+ };
28
+ Reason: {
29
+ Text: string;
30
+ };
31
+ }
32
+ export type ErrorSoapBodyResponse = {
33
+ Fault: SoapFault;
34
+ };
35
+ export interface RawErrorSoapResponse {
36
+ Body: ErrorSoapBodyResponse;
37
+ Header: RawSoapHeader;
38
+ }
39
+ export type ErrorSoapResponse = {
40
+ Body: ErrorSoapBodyResponse;
41
+ Header: SoapHeader;
42
+ };
43
+ export type RawSoapResponse<R extends Record<string, unknown>> = RawSuccessSoapResponse<R> | RawErrorSoapResponse;
44
+ export type SoapResponse<R> = SuccessSoapResponse<R> | ErrorSoapResponse;
45
+ export interface RawSoapContext {
46
+ refresh?: SoapRefresh;
47
+ notify?: Array<RawSoapNotify>;
48
+ change?: {
49
+ token: number;
50
+ };
51
+ session?: {
52
+ id: number;
53
+ _content: number;
54
+ };
55
+ }
56
+ export interface SoapContext extends Omit<RawSoapContext, 'notify'> {
57
+ notify?: Array<SoapNotify>;
58
+ }
59
+ export type SoapFolder = BaseFolder & {
60
+ folder?: Array<SoapFolder>;
61
+ link?: Array<SoapLink>;
62
+ search?: Array<SoapSearchFolder>;
63
+ };
64
+ export type SoapSearchFolder = SoapFolder & SearchFolderFields;
65
+ export type SoapLink = SoapFolder & LinkFolderFields;
66
+ export type SoapRefresh = {
67
+ seq?: number;
68
+ version?: string;
69
+ mbx?: [{
70
+ s: number;
71
+ }];
72
+ folder?: SoapFolder[];
73
+ tags?: {
74
+ tag: Array<Tag>;
75
+ };
76
+ };
77
+ export type RawSoapNotify = {
78
+ seq: number;
79
+ created?: {
80
+ m?: Array<unknown>;
81
+ c?: Array<unknown>;
82
+ folder?: Array<SoapFolder>;
83
+ link?: Array<SoapLink>;
84
+ tag?: Array<Tag>;
85
+ };
86
+ modified?: {
87
+ m?: Array<unknown>;
88
+ c?: Array<unknown>;
89
+ folder?: Array<Partial<SoapFolder>>;
90
+ link?: Array<Partial<SoapLink>>;
91
+ tag?: Array<Partial<Tag>>;
92
+ mbx: [{
93
+ s: number;
94
+ }];
95
+ };
96
+ deleted?: {
97
+ id?: string;
98
+ };
99
+ };
100
+ export type SoapNotify = Omit<RawSoapNotify, 'deleted'> & {
101
+ deleted: string[];
102
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=soap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap.js","sourceRoot":"","sources":["../../../src/types/network/soap.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,11 @@
1
+ import type { QueryChip } from './items';
2
+ export * from './items';
3
+ export type SearchState = {
4
+ query: Array<QueryChip>;
5
+ module?: string;
6
+ searchDisabled: boolean;
7
+ tooltip?: string;
8
+ setSearchDisabled: (searchDisabled: boolean) => void;
9
+ updateQuery: (query: Array<QueryChip> | ((q: Array<QueryChip>) => Array<QueryChip>)) => void;
10
+ updateModule: (module: string) => void;
11
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ __exportStar(require("./items"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/search/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAIH,0CAAwB"}
@@ -0,0 +1,6 @@
1
+ import type { ChipItem } from '@zextras/carbonio-design-system';
2
+ export interface QueryItem {
3
+ value?: string;
4
+ app?: string;
5
+ }
6
+ export type QueryChip = ChipItem & QueryItem;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/types/search/items.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export type Tag = {
2
+ color?: number;
3
+ id: string;
4
+ name: string;
5
+ rgb?: string;
6
+ u?: number;
7
+ n?: number;
8
+ };
9
+ export type Tags = Record<string, Tag>;
10
+ export type TagState = {
11
+ tags: Tags;
12
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /* eslint-disable @typescript-eslint/ban-types */
3
+ /*
4
+ * SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
5
+ *
6
+ * SPDX-License-Identifier: AGPL-3.0-only
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/tags/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD;;;;GAIG"}
@@ -0,0 +1,17 @@
1
+ import type { SoapNotify, SoapRefresh } from '../network';
2
+ import type { Tags } from '../tags';
3
+ export type SyncNotifyMessage = {
4
+ op: 'notify';
5
+ notify: SoapNotify;
6
+ };
7
+ export type SyncRefreshMessage = SoapRefresh & {
8
+ op: 'refresh';
9
+ };
10
+ export type SyncMessage = SyncNotifyMessage | SyncRefreshMessage;
11
+ export type WorkerMessage<T> = {
12
+ data: SyncMessage & T;
13
+ };
14
+ export type TagMessage = WorkerMessage<{
15
+ state: Tags;
16
+ }>;
17
+ export type FolderMessage = WorkerMessage<Record<string, never>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/workers/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ import type { LinkProps } from 'react-router-dom';
3
+ export type AppLinkProps = LinkProps & {
4
+ route?: string;
5
+ };
6
+ export declare const AppLink: FC<AppLinkProps>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
20
+ }) : function(o, v) {
21
+ o["default"] = v;
22
+ });
23
+ var __importStar = (this && this.__importStar) || function (mod) {
24
+ if (mod && mod.__esModule) return mod;
25
+ var result = {};
26
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
+ __setModuleDefault(result, mod);
28
+ return result;
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.AppLink = void 0;
32
+ const react_1 = __importStar(require("react"));
33
+ const react_router_dom_1 = require("react-router-dom");
34
+ const hooks_1 = require("../history/hooks");
35
+ const AppLink = ({ to, route, ...rest }) => {
36
+ const _to = (0, react_1.useMemo)(() => (0, hooks_1.parseParams)({ path: to, route }), [route, to]);
37
+ return react_1.default.createElement(react_router_dom_1.Link, { style: { textDecoration: 'none' }, to: _to, ...rest });
38
+ };
39
+ exports.AppLink = AppLink;
40
+ //# sourceMappingURL=app-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-link.js","sourceRoot":"","sources":["../../src/ui-extras/app-link.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,+CAAuC;AAGvC,uDAAkD;AAElD,4CAA+C;AAKxC,MAAM,OAAO,GAAqB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACnE,MAAM,GAAG,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,mBAAW,EAAC,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACzE,OAAO,8BAAC,uBAAM,IAAC,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,KAAM,IAAI,GAAI,CAAC;AACzE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { ModalProps } from '@zextras/carbonio-design-system';
3
+ export interface RouteLeavingGuardProps {
4
+ children: ModalProps['children'];
5
+ when?: boolean;
6
+ onSave: () => Promise<PromiseSettledResult<Awaited<unknown>>[]>;
7
+ dataHasError?: boolean;
8
+ }
9
+ export declare const RouteLeavingGuard: ({ children, when, onSave, dataHasError }: RouteLeavingGuardProps) => React.JSX.Element;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
20
+ }) : function(o, v) {
21
+ o["default"] = v;
22
+ });
23
+ var __importStar = (this && this.__importStar) || function (mod) {
24
+ if (mod && mod.__esModule) return mod;
25
+ var result = {};
26
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
+ __setModuleDefault(result, mod);
28
+ return result;
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.RouteLeavingGuard = void 0;
32
+ const react_1 = __importStar(require("react"));
33
+ const carbonio_design_system_1 = require("@zextras/carbonio-design-system");
34
+ const lodash_1 = require("lodash");
35
+ const react_router_dom_1 = require("react-router-dom");
36
+ const hooks_1 = require("../store/i18n/hooks");
37
+ const RouteLeavingGuard = ({ children, when, onSave, dataHasError = false }) => {
38
+ const history = (0, react_router_dom_1.useHistory)();
39
+ const lastLocationInitial = (0, react_1.useMemo)(() => history.location, [history]);
40
+ const [modalVisible, setModalVisible] = (0, react_1.useState)(false);
41
+ const lastLocationRef = (0, react_1.useRef)(lastLocationInitial);
42
+ const confirmedNavigationRef = (0, react_1.useRef)(false);
43
+ const t = (0, hooks_1.getT)();
44
+ const cancel = (0, react_1.useCallback)(() => {
45
+ setModalVisible(false);
46
+ confirmedNavigationRef.current = false;
47
+ }, []);
48
+ const confirmNavigation = (0, react_1.useCallback)(() => {
49
+ confirmedNavigationRef.current = true;
50
+ if (lastLocationRef.current) {
51
+ // Navigate to the previous blocked location with your navigate function
52
+ history.push(lastLocationRef.current);
53
+ }
54
+ }, [history]);
55
+ const handleBlockedNavigation = (0, react_1.useCallback)((nextLocation) => {
56
+ if (!confirmedNavigationRef.current &&
57
+ `${nextLocation.pathname}${nextLocation.search || ''}` !==
58
+ `${history.location.pathname}${history.location.search}`) {
59
+ setModalVisible(true);
60
+ lastLocationRef.current = nextLocation;
61
+ return false;
62
+ }
63
+ return true;
64
+ }, [history.location.pathname, history.location.search]);
65
+ const onConfirm = (0, react_1.useCallback)(() => {
66
+ onSave()
67
+ .then((results) => {
68
+ const rejected = (0, lodash_1.filter)(results, (result) => result.status === 'rejected');
69
+ if (rejected.length > 0) {
70
+ console.error(rejected);
71
+ cancel();
72
+ }
73
+ else {
74
+ setModalVisible(false);
75
+ confirmNavigation();
76
+ }
77
+ })
78
+ .catch((reason) => {
79
+ console.error(reason);
80
+ cancel();
81
+ });
82
+ }, [cancel, confirmNavigation, onSave]);
83
+ const onSecondaryAction = (0, react_1.useCallback)(() => {
84
+ setModalVisible(false);
85
+ confirmNavigation();
86
+ }, [confirmNavigation]);
87
+ return (react_1.default.createElement(react_1.default.Fragment, null,
88
+ react_1.default.createElement(react_router_dom_1.Prompt, { when: when, message: handleBlockedNavigation }),
89
+ react_1.default.createElement(carbonio_design_system_1.Modal, { showCloseIcon: true, closeIconTooltip: t('label.close', 'Close'), open: modalVisible, title: dataHasError
90
+ ? t('label.cannot_save_changes', 'Some changes cannot be saved')
91
+ : t('label.unsaved_changes', 'You have unsaved changes'), onClose: cancel, onConfirm: dataHasError ? onSecondaryAction : onConfirm, confirmLabel: dataHasError
92
+ ? t('label.leave_anyway', 'Leave anyway')
93
+ : t('label.save_and_leave', 'Save and leave'), onSecondaryAction: dataHasError ? cancel : onSecondaryAction, secondaryActionLabel: dataHasError ? t('label.cancel', 'Cancel') : t('label.leave_anyway', 'Leave anyway'), optionalFooter: !dataHasError ? (react_1.default.createElement(carbonio_design_system_1.Button, { color: "secondary", type: "outlined", label: t('label.cancel', 'Cancel'), onClick: cancel })) : undefined }, children)));
94
+ };
95
+ exports.RouteLeavingGuard = RouteLeavingGuard;
96
+ //# sourceMappingURL=nav-guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-guard.js","sourceRoot":"","sources":["../../src/ui-extras/nav-guard.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Spinner: () => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.Spinner = void 0;
12
+ const react_1 = __importDefault(require("react"));
13
+ const carbonio_design_system_1 = require("@zextras/carbonio-design-system");
14
+ const lodash_1 = require("lodash");
15
+ const Spinner = () => (react_1.default.createElement(carbonio_design_system_1.Container, { width: "fill", height: "fill", mainAlignment: "center", crossAlignment: "center" },
16
+ react_1.default.createElement(carbonio_design_system_1.Button, { type: "ghost", label: "Button", color: "primary", loading: true, onClick: lodash_1.noop })));
17
+ exports.Spinner = Spinner;
18
+ //# sourceMappingURL=spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/ui-extras/spinner.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,kDAA0B;AAE1B,4EAAoE;AACpE,mCAA8B;AAEvB,MAAM,OAAO,GAAG,GAAsB,EAAE,CAAC,CAC/C,8BAAC,kCAAS,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ;IAEnF,8BAAC,+BAAM,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,QAAC,OAAO,EAAE,aAAI,GAAI,CAClE,CACZ,CAAC;AALW,QAAA,OAAO,WAKlB"}
@@ -0,0 +1,14 @@
1
+ export type StringOfLength<Min, Max = Min> = string & {
2
+ min: Min;
3
+ max: Max;
4
+ readonly StringOfLength: unique symbol;
5
+ };
6
+ export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
7
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
8
+ }[Keys];
9
+ export type Override<TObj extends Record<string, unknown>, TOverride extends Partial<Record<keyof TObj, unknown>>> = Omit<TObj, keyof TOverride> & TOverride;
10
+ export type AnyFunction = (...args: any[]) => any;
11
+ export type ValueOf<T extends Record<string, unknown>> = T[keyof T];
12
+ export type Exactify<T, X extends T> = T & {
13
+ [K in keyof X]: K extends keyof T ? X[K] : never;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=typeUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeUtils.js","sourceRoot":"","sources":["../../src/utils/typeUtils.ts"],"names":[],"mappings":""}