@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,14 @@
1
+ import type { Account, AccountRightName, AccountRights, AccountRightTarget, AccountSettings } from '../../types/account';
2
+ export declare const useAuthenticated: () => boolean;
3
+ export declare const useUserAccount: () => Account;
4
+ export declare const useUserAccounts: () => Array<Account>;
5
+ export declare const useUserRights: () => AccountRights;
6
+ export declare const useUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
7
+ export declare const useUserSettings: () => AccountSettings;
8
+ export declare const useUserSetting: <T = void>(...path: Array<string>) => string | T;
9
+ export declare const getUserAccount: () => Account | undefined;
10
+ export declare const getUserAccounts: () => Array<Account>;
11
+ export declare const getUserSettings: () => AccountSettings;
12
+ export declare const getUserSetting: <T = void>(...path: Array<string>) => string | T;
13
+ export declare const getUserRights: () => AccountRights;
14
+ export declare const getUserRight: (right: AccountRightName) => Array<AccountRightTarget>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.getUserRight = exports.getUserRights = exports.getUserSetting = exports.getUserSettings = exports.getUserAccounts = exports.getUserAccount = exports.useUserSetting = exports.useUserSettings = exports.useUserRight = exports.useUserRights = exports.useUserAccounts = exports.useUserAccount = exports.useAuthenticated = void 0;
9
+ const react_1 = require("react");
10
+ const lodash_1 = require("lodash");
11
+ const store_1 = require("./store");
12
+ const useAuthenticated = () => (0, store_1.useAccountStore)((s) => s.authenticated);
13
+ exports.useAuthenticated = useAuthenticated;
14
+ const useUserAccount = () => (0, store_1.useAccountStore)((s) => s.account);
15
+ exports.useUserAccount = useUserAccount;
16
+ const useUserAccounts = () => {
17
+ const acct = (0, store_1.useAccountStore)((s) => s.account);
18
+ return (0, react_1.useMemo)(() => (acct ? [acct] : []), [acct]);
19
+ };
20
+ exports.useUserAccounts = useUserAccounts;
21
+ const useUserRights = () => (0, store_1.useAccountStore)((s) => s.account?.rights ?? { targets: [] });
22
+ exports.useUserRights = useUserRights;
23
+ const useUserRight = (right) => {
24
+ const { targets } = (0, exports.useUserRights)();
25
+ return (0, react_1.useMemo)(() => (0, lodash_1.find)(targets, ['right', right])?.target ?? [], [right, targets]);
26
+ };
27
+ exports.useUserRight = useUserRight;
28
+ const useUserSettings = () => (0, store_1.useAccountStore)((s) => s.settings);
29
+ exports.useUserSettings = useUserSettings;
30
+ const useUserSetting = (...path) => (0, store_1.useAccountStore)((s) => (0, lodash_1.get)(s.settings, (0, lodash_1.join)(path, '.')));
31
+ exports.useUserSetting = useUserSetting;
32
+ const getUserAccount = () => store_1.useAccountStore.getState().account;
33
+ exports.getUserAccount = getUserAccount;
34
+ const getUserAccounts = () => {
35
+ const { account } = store_1.useAccountStore.getState();
36
+ const accounts = [];
37
+ if (account) {
38
+ accounts.push(account);
39
+ }
40
+ return accounts;
41
+ };
42
+ exports.getUserAccounts = getUserAccounts;
43
+ const getUserSettings = () => store_1.useAccountStore.getState().settings;
44
+ exports.getUserSettings = getUserSettings;
45
+ const getUserSetting = (...path) => (0, lodash_1.get)(store_1.useAccountStore.getState().settings, (0, lodash_1.join)(path, '.'));
46
+ exports.getUserSetting = getUserSetting;
47
+ const getUserRights = () => store_1.useAccountStore.getState().account?.rights ?? { targets: [] };
48
+ exports.getUserRights = getUserRights;
49
+ const getUserRight = (right) => (0, lodash_1.find)((0, exports.getUserRights)().targets, ['right', right])?.target ?? [];
50
+ exports.getUserRight = getUserRight;
51
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/account/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgC;AAEhC,mCAAyC;AAEzC,mCAA0C;AASnC,MAAM,gBAAgB,GAAG,GAAY,EAAE,CAAC,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;AAA1E,QAAA,gBAAgB,oBAA0D;AAEhF,MAAM,cAAc,GAAG,GAAY,EAAE,CAAC,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAkB,CAAC,CAAC;AAA7E,QAAA,cAAc,kBAA+D;AACnF,MAAM,eAAe,GAAG,GAAmB,EAAE;IACnD,MAAM,IAAI,GAAG,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC/C,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAHW,QAAA,eAAe,mBAG1B;AAEK,MAAM,aAAa,GAAG,GAAkB,EAAE,CAChD,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;AADjD,QAAA,aAAa,iBACoC;AAEvD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAA6B,EAAE;IAClF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,qBAAa,GAAE,CAAC;IACpC,OAAO,IAAA,eAAO,EACb,GAAG,EAAE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QAAQ,EAAE,IAAA,aAAI,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAD9C,QAAA,cAAc,kBACgC;AAEpD,MAAM,aAAa,GAAG,GAAkB,EAAE,CAChD,uBAAe,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AADlD,QAAA,aAAa,iBACqC;AAExD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAA6B,EAAE,CAClF,IAAA,aAAI,EAAC,IAAA,qBAAa,GAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,EAAE,MAAM,IAAK,EAAgC,CAAC;AADjF,QAAA,YAAY,gBACqE"}
@@ -0,0 +1,2 @@
1
+ export * from './hooks';
2
+ export * from './store';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2022 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("./hooks"), exports);
23
+ __exportStar(require("./store"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/account/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,0CAAwB"}
@@ -0,0 +1,2 @@
1
+ import type { AccountState } from '../../types/account';
2
+ export declare const useAccountStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AccountState>>;
@@ -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
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useAccountStore = void 0;
9
+ const zustand_1 = require("zustand");
10
+ // extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
11
+ exports.useAccountStore = (0, zustand_1.create)()(() => ({
12
+ authenticated: false,
13
+ account: undefined,
14
+ version: '',
15
+ settings: {
16
+ prefs: {},
17
+ attrs: {},
18
+ props: []
19
+ },
20
+ usedQuota: 0,
21
+ lastNotificationTime: Date.now()
22
+ }));
23
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/account/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAiC;AAIjC,mHAAmH;AACtG,QAAA,eAAe,GAAG,IAAA,gBAAM,GAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,aAAa,EAAE,KAAK;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE;QACT,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,EAAE;KACT;IACD,SAAS,EAAE,CAAC;IACZ,oBAAoB,EAAE,IAAI,CAAC,GAAG,EAAE;CAChC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { AppRoute, CarbonioModule } from '../../types/apps';
2
+ export declare const getAppHook: (appId: string) => () => CarbonioModule;
3
+ export declare const useApps: () => Record<string, CarbonioModule>;
4
+ export declare const useAppList: () => Array<CarbonioModule>;
5
+ export declare const getAppList: () => Array<CarbonioModule>;
6
+ export declare const getApp: (appId: string) => () => CarbonioModule | undefined;
7
+ export declare const getApps: () => Record<string, CarbonioModule>;
8
+ export declare const getAppContextHook: (appId: string) => <T>() => T;
9
+ export declare const getAppContext: (appId: string) => () => unknown;
10
+ export declare const getShell: () => CarbonioModule;
11
+ export declare const getRoutes: () => Record<string, AppRoute>;
12
+ export declare const useRoutes: () => Record<string, AppRoute>;
13
+ export declare const getRoute: (id: string) => AppRoute;
14
+ export declare const useRoute: (id: string) => AppRoute;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useRoute = exports.getRoute = exports.useRoutes = exports.getRoutes = exports.getShell = exports.getAppContext = exports.getAppContextHook = exports.getApps = exports.getApp = exports.getAppList = exports.useAppList = exports.useApps = exports.getAppHook = void 0;
9
+ const react_1 = require("react");
10
+ const lodash_1 = require("lodash");
11
+ const store_1 = require("./store");
12
+ const getAppHook = (appId) => () => (0, store_1.useAppStore)((s) => s.apps[appId]);
13
+ exports.getAppHook = getAppHook;
14
+ const useApps = () => (0, store_1.useAppStore)((s) => s.apps);
15
+ exports.useApps = useApps;
16
+ const useAppList = () => {
17
+ const apps = (0, exports.useApps)();
18
+ return (0, react_1.useMemo)(() => (0, lodash_1.sortBy)(apps, (a) => a.priority), [apps]);
19
+ };
20
+ exports.useAppList = useAppList;
21
+ const getAppList = () => (0, lodash_1.sortBy)(store_1.useAppStore.getState().apps, (a) => a.priority);
22
+ exports.getAppList = getAppList;
23
+ const getApp = (appId) => () => store_1.useAppStore.getState().apps[appId];
24
+ exports.getApp = getApp;
25
+ const getApps = () => store_1.useAppStore.getState().apps;
26
+ exports.getApps = getApps;
27
+ const getAppContextHook = (appId) => () => (0, store_1.useAppStore)((s) => s.appContexts[appId]);
28
+ exports.getAppContextHook = getAppContextHook;
29
+ const getAppContext = (appId) => () => store_1.useAppStore.getState().appContexts[appId];
30
+ exports.getAppContext = getAppContext;
31
+ const getShell = () => store_1.useAppStore.getState().shell;
32
+ exports.getShell = getShell;
33
+ const getRoutes = () => store_1.useAppStore.getState().routes;
34
+ exports.getRoutes = getRoutes;
35
+ const useRoutes = () => (0, store_1.useAppStore)((s) => s.routes);
36
+ exports.useRoutes = useRoutes;
37
+ const getRoute = (id) => store_1.useAppStore.getState().routes[id];
38
+ exports.getRoute = getRoute;
39
+ const useRoute = (id) => (0, store_1.useAppStore)((s) => s.routes[id]);
40
+ exports.useRoute = useRoute;
41
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/app/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgC;AAEhC,mCAAgC;AAEhC,mCAAsC;AAG/B,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAmB,EAAE,CACjE,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AADtB,QAAA,UAAU,cACY;AAC5B,MAAM,OAAO,GAAG,GAAmC,EAAE,CAAC,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAA3E,QAAA,OAAO,WAAoE;AACjF,MAAM,UAAU,GAAG,GAA0B,EAAE;IACrD,MAAM,IAAI,GAAG,IAAA,eAAO,GAAE,CAAC;IACvB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,eAAM,EAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAA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C,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAAzE,QAAA,SAAS,aAAgE;AAC/E,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAY,EAAE,CAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAAvE,QAAA,QAAQ,YAA+D;AAC7E,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAY,EAAE,CAAC,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AAAtE,QAAA,QAAQ,YAA8D"}
@@ -0,0 +1,2 @@
1
+ export * from './hooks';
2
+ export * from './store';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2022 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("./hooks"), exports);
23
+ __exportStar(require("./store"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/app/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,0CAAwB"}
@@ -0,0 +1,44 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { AppRoute, AppRouteDescriptor, AppView, BadgeInfo, BoardView, CarbonioModule, PrimaryAccessoryView, PrimaryBarView, SearchView, SecondaryAccessoryView, SecondaryBarView, SettingsView, UtilityView } from '../../types/apps';
3
+ export type AppState = {
4
+ focusMode: false | string;
5
+ apps: Record<string, CarbonioModule>;
6
+ appContexts: Record<string, unknown>;
7
+ entryPoints: Record<string, ComponentType>;
8
+ routes: Record<string, AppRoute>;
9
+ views: {
10
+ primaryBar: Array<PrimaryBarView>;
11
+ secondaryBar: Array<SecondaryBarView>;
12
+ appView: Array<AppView>;
13
+ board: Array<BoardView>;
14
+ utilityBar: Array<UtilityView>;
15
+ settings: Array<SettingsView>;
16
+ search: Array<SearchView>;
17
+ primaryBarAccessories: Array<PrimaryAccessoryView>;
18
+ secondaryBarAccessories: Array<SecondaryAccessoryView>;
19
+ };
20
+ shell: CarbonioModule;
21
+ };
22
+ export type AppActions = {
23
+ setApps: (apps: Array<Partial<CarbonioModule>>) => void;
24
+ upsertApp: (app: Pick<CarbonioModule, 'name' | 'display' | 'description'>) => void;
25
+ addRoute: (routeData: AppRouteDescriptor) => string;
26
+ setRouteVisibility: (id: string, visible: boolean) => void;
27
+ removeRoute: (id: string) => void;
28
+ updatePrimaryBadge: (badge: Partial<BadgeInfo>, id: string) => void;
29
+ updateUtilityBadge: (badge: Partial<BadgeInfo>, id: string) => void;
30
+ addBoardView: (data: BoardView) => string;
31
+ removeBoardView: (id: string) => void;
32
+ addSettingsView: (data: SettingsView) => string;
33
+ removeSettingsView: (id: string) => void;
34
+ addSearchView: (data: SearchView) => string;
35
+ removeSearchView: (id: string) => void;
36
+ addUtilityView: (data: UtilityView) => string;
37
+ removeUtilityView: (id: string) => void;
38
+ addPrimaryAccessoryView: (data: PrimaryAccessoryView) => string;
39
+ removePrimaryAccessoryView: (id: string) => void;
40
+ addSecondaryAccessoryView: (data: SecondaryAccessoryView) => string;
41
+ removeSecondaryAccessoryView: (id: string) => void;
42
+ setAppContext: (app: string) => (context: unknown) => void;
43
+ };
44
+ export declare const useAppStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppState & AppActions>>;
@@ -0,0 +1,265 @@
1
+ "use strict";
2
+ /*
3
+ * SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
4
+ *
5
+ * SPDX-License-Identifier: AGPL-3.0-only
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useAppStore = void 0;
9
+ const immer_1 = require("immer");
10
+ const lodash_1 = require("lodash");
11
+ const zustand_1 = require("zustand");
12
+ const utils_1 = require("./utils");
13
+ const constants_1 = require("../../constants");
14
+ const search_store_1 = require("../../search/search-store");
15
+ const useSearchModule_1 = require("../../search/useSearchModule");
16
+ const FOCUS_MODE_RESPONSE = 'focus-mode';
17
+ function addIfNotPresent(items, itemToAdd, onAdd) {
18
+ if (!(0, lodash_1.some)(items, (item) => item.id === itemToAdd.id)) {
19
+ items.push(itemToAdd);
20
+ onAdd?.(items, itemToAdd);
21
+ }
22
+ }
23
+ function sortByPosition(items) {
24
+ items.sort((a, b) => a.position - b.position);
25
+ }
26
+ function addAndSort(items, itemToAdd) {
27
+ addIfNotPresent(items, itemToAdd, sortByPosition);
28
+ }
29
+ function removeById(items, id) {
30
+ const index = (0, lodash_1.findIndex)(items, (item) => item.id === id);
31
+ if (index !== -1) {
32
+ items.splice(index, 1);
33
+ }
34
+ }
35
+ const initialState = {
36
+ focusMode: false,
37
+ apps: {},
38
+ appContexts: {},
39
+ shell: {
40
+ commit: '',
41
+ description: '',
42
+ js_entrypoint: '',
43
+ name: constants_1.SHELL_APP_ID,
44
+ priority: -1,
45
+ version: '',
46
+ type: 'shell',
47
+ attrKey: '',
48
+ icon: '',
49
+ display: 'Shell'
50
+ },
51
+ entryPoints: {},
52
+ routes: {},
53
+ views: {
54
+ primaryBar: [],
55
+ secondaryBar: [],
56
+ appView: [],
57
+ board: [],
58
+ utilityBar: [],
59
+ settings: [],
60
+ search: [],
61
+ primaryBarAccessories: [],
62
+ secondaryBarAccessories: []
63
+ }
64
+ };
65
+ // extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
66
+ exports.useAppStore = (0, zustand_1.create)()((set, get) => ({
67
+ ...initialState,
68
+ setApps: (apps) => {
69
+ set(() => {
70
+ const { moduleApps, shellApp, appContexts } = (0, lodash_1.reduce)(apps, (accumulator, app) => {
71
+ if (app.name) {
72
+ const normalizedApp = (0, utils_1.normalizeApp)(app);
73
+ if (app.name !== constants_1.SHELL_APP_ID) {
74
+ accumulator.moduleApps[app.name] = normalizedApp;
75
+ }
76
+ else {
77
+ accumulator.shellApp = normalizedApp;
78
+ }
79
+ accumulator.appContexts[app.name] = {};
80
+ }
81
+ return accumulator;
82
+ }, { moduleApps: {}, shellApp: {}, appContexts: {} });
83
+ return {
84
+ apps: moduleApps,
85
+ shell: shellApp,
86
+ appContexts
87
+ };
88
+ });
89
+ },
90
+ upsertApp: (app) => {
91
+ set((0, immer_1.produce)((state) => {
92
+ state.apps[app.name] = { ...state.apps[app.name], ...app };
93
+ }));
94
+ },
95
+ setAppContext: (app) => (context) => {
96
+ set((0, immer_1.produce)((state) => {
97
+ state.appContexts[app] = (0, lodash_1.merge)(state.appContexts[app], context);
98
+ }));
99
+ },
100
+ addRoute: (routeData) => {
101
+ const { focusMode } = get();
102
+ if (focusMode && (routeData.route !== focusMode || !routeData.focusMode)) {
103
+ return FOCUS_MODE_RESPONSE;
104
+ }
105
+ set((0, immer_1.produce)((state) => {
106
+ state.routes[routeData.id] = routeData;
107
+ if (routeData.primaryBar && !routeData.focusMode) {
108
+ addAndSort(state.views.primaryBar, {
109
+ app: routeData.app,
110
+ id: routeData.id,
111
+ route: routeData.route,
112
+ component: routeData.primaryBar,
113
+ badge: routeData.badge,
114
+ position: routeData.position,
115
+ visible: routeData.visible,
116
+ label: routeData.label
117
+ });
118
+ }
119
+ if (routeData.secondaryBar) {
120
+ addIfNotPresent(state.views.secondaryBar, {
121
+ app: routeData.app,
122
+ id: routeData.id,
123
+ route: routeData.route,
124
+ component: routeData.secondaryBar
125
+ });
126
+ }
127
+ if (routeData.appView) {
128
+ addIfNotPresent(state.views.appView, {
129
+ app: routeData.app,
130
+ id: routeData.id,
131
+ route: routeData.route,
132
+ component: routeData.appView
133
+ });
134
+ }
135
+ // TODO remove with SHELL-212
136
+ if (routeData.app && state.apps[routeData.app] && routeData.focusMode !== true) {
137
+ state.apps[routeData.app].display = routeData.label;
138
+ }
139
+ }));
140
+ return routeData.id;
141
+ },
142
+ setRouteVisibility: (id, visible) => {
143
+ set((0, immer_1.produce)((state) => {
144
+ const idx = (0, lodash_1.findIndex)(state.views.primaryBar, (view) => view.id === id);
145
+ if (idx >= 0) {
146
+ state.views.primaryBar[idx].visible = visible;
147
+ }
148
+ }));
149
+ },
150
+ removeRoute: (id) => {
151
+ set((0, immer_1.produce)((state) => {
152
+ delete state.routes[id];
153
+ removeById(state.views.primaryBar, id);
154
+ removeById(state.views.secondaryBar, id);
155
+ removeById(state.views.appView, id);
156
+ }));
157
+ },
158
+ addBoardView: (data) => {
159
+ set((0, immer_1.produce)((state) => {
160
+ addIfNotPresent(state.views.board, data);
161
+ }));
162
+ return data.id;
163
+ },
164
+ removeBoardView: (id) => {
165
+ set((0, immer_1.produce)((state) => {
166
+ removeById(state.views.board, id);
167
+ }));
168
+ },
169
+ addSettingsView: (data) => {
170
+ const { focusMode } = get();
171
+ if (focusMode && data.route !== focusMode) {
172
+ return FOCUS_MODE_RESPONSE;
173
+ }
174
+ set((0, immer_1.produce)((state) => {
175
+ addAndSort(state.views.settings, data);
176
+ }));
177
+ return data.id;
178
+ },
179
+ removeSettingsView: (id) => {
180
+ set((0, immer_1.produce)((state) => {
181
+ removeById(state.views.settings, id);
182
+ }));
183
+ },
184
+ addSearchView: (data) => {
185
+ const { focusMode, views: { search } } = get();
186
+ const lastSearchModule = sessionStorage.getItem(useSearchModule_1.SEARCH_MODULE_KEY) ?? undefined;
187
+ const currentSearchModule = search_store_1.useSearchStore.getState().module;
188
+ if (currentSearchModule !== lastSearchModule || currentSearchModule === undefined) {
189
+ const currentModuleSearchView = search.find((searchView) => searchView.route === currentSearchModule);
190
+ if (!currentModuleSearchView ||
191
+ data.position < currentModuleSearchView?.position ||
192
+ data.route === lastSearchModule) {
193
+ search_store_1.useSearchStore.getState().updateModule(data.route);
194
+ }
195
+ }
196
+ if (focusMode && data.route !== focusMode) {
197
+ return FOCUS_MODE_RESPONSE;
198
+ }
199
+ set((0, immer_1.produce)((state) => {
200
+ addAndSort(state.views.search, data);
201
+ }));
202
+ return data.id;
203
+ },
204
+ removeSearchView: (id) => {
205
+ set((0, immer_1.produce)((state) => {
206
+ removeById(state.views.search, id);
207
+ }));
208
+ },
209
+ addUtilityView: (data) => {
210
+ set((0, immer_1.produce)((state) => {
211
+ addAndSort(state.views.utilityBar, data);
212
+ }));
213
+ return data.id;
214
+ },
215
+ removeUtilityView: (id) => {
216
+ set((0, immer_1.produce)((state) => {
217
+ removeById(state.views.utilityBar, id);
218
+ }));
219
+ },
220
+ addPrimaryAccessoryView: (data) => {
221
+ set((0, immer_1.produce)((state) => {
222
+ addAndSort(state.views.primaryBarAccessories, data);
223
+ }));
224
+ return data.id;
225
+ },
226
+ removePrimaryAccessoryView: (id) => {
227
+ set((0, immer_1.produce)((state) => {
228
+ removeById(state.views.primaryBarAccessories, id);
229
+ }));
230
+ },
231
+ addSecondaryAccessoryView: (data) => {
232
+ set((0, immer_1.produce)((state) => {
233
+ addAndSort(state.views.secondaryBarAccessories, data);
234
+ }));
235
+ return data.id;
236
+ },
237
+ removeSecondaryAccessoryView: (id) => {
238
+ set((0, immer_1.produce)((state) => {
239
+ removeById(state.views.secondaryBarAccessories, id);
240
+ }));
241
+ },
242
+ updatePrimaryBadge: (badge, id) => {
243
+ set((0, immer_1.produce)((state) => {
244
+ const idx = (0, lodash_1.findIndex)(state.views.primaryBar, (bar) => bar.id === id);
245
+ if (idx >= 0) {
246
+ state.views.primaryBar[idx].badge = {
247
+ ...state.views.primaryBar[idx].badge,
248
+ ...badge
249
+ };
250
+ }
251
+ }));
252
+ },
253
+ updateUtilityBadge: (badge, id) => {
254
+ set((0, immer_1.produce)((state) => {
255
+ const idx = (0, lodash_1.findIndex)(state.views.utilityBar, (bar) => bar.id === id);
256
+ if (idx >= 0) {
257
+ state.views.utilityBar[idx].badge = {
258
+ ...state.views.utilityBar[idx].badge,
259
+ ...badge
260
+ };
261
+ }
262
+ }));
263
+ }
264
+ }));
265
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/app/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,iCAAgC;AAChC,mCAAwD;AACxD,qCAAiC;AAEjC,mCAAuC;AACvC,+CAA+C;AAC/C,4DAA2D;AAC3D,kEAAiE;AA4DjE,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEzC,SAAS,eAAe,CACvB,KAAU,EACV,SAAY,EACZ,KAAqC;IAErC,IAAI,CAAC,IAAA,aAAI,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC;QACtD,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtB,KAAK,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC;AAED,SAAS,cAAc,CAAiC,KAAU;IACjE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,UAAU,CAA8C,KAAU,EAAE,SAAY;IACxF,eAAe,CAAC,KAAK,E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,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK;oBACpC,GAAG,KAAK;iBACR,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CACF,CAAC;IACH,CAAC;CACD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AppRouteDescriptor, BadgeInfo, BoardView, CarbonioModule, PrimaryAccessoryView, SearchView, SecondaryAccessoryView, SettingsView, UtilityView } from '../../types/apps';
2
+ export declare const normalizeApp: (app: Partial<CarbonioModule>) => CarbonioModule;
3
+ export declare const normalizeBadgeInfo: (badge: Partial<BadgeInfo>) => BadgeInfo;
4
+ export declare const normalizeRoute: (data: Partial<AppRouteDescriptor>, app: CarbonioModule) => AppRouteDescriptor;
5
+ export declare const normalizeSettingsView: (data: Partial<SettingsView>, app: CarbonioModule) => SettingsView;
6
+ export declare const normalizeSearchView: (data: Partial<SearchView>, app: CarbonioModule) => SearchView;
7
+ export declare const normalizeUtilityView: (data: Partial<UtilityView>, app: CarbonioModule) => UtilityView;
8
+ export declare const normalizePrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>, app: CarbonioModule) => PrimaryAccessoryView;
9
+ export declare const normalizeSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>, app: CarbonioModule) => SecondaryAccessoryView;
10
+ export declare const normalizeBoardView: (data: Partial<BoardView>, app: CarbonioModule) => BoardView;