@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.
- package/lib/boot/app/app-context-provider.d.ts +7 -0
- package/lib/boot/app/app-context-provider.js +17 -0
- package/lib/boot/app/app-context-provider.js.map +1 -0
- package/lib/boot/app/app-error-catcher.d.ts +3 -0
- package/lib/boot/app/app-error-catcher.js +41 -0
- package/lib/boot/app/app-error-catcher.js.map +1 -0
- package/lib/boot/app/app-loader-functions.d.ts +37 -0
- package/lib/boot/app/app-loader-functions.js +121 -0
- package/lib/boot/app/app-loader-functions.js.map +1 -0
- package/lib/boot/app/app-loader-setters.d.ts +38 -0
- package/lib/boot/app/app-loader-setters.js +46 -0
- package/lib/boot/app/app-loader-setters.js.map +1 -0
- package/lib/boot/matomo.d.ts +12 -0
- package/lib/boot/matomo.js +22 -0
- package/lib/boot/matomo.js.map +1 -0
- package/lib/boot/module-i18next-provider.d.ts +7 -0
- package/lib/boot/module-i18next-provider.js +22 -0
- package/lib/boot/module-i18next-provider.js.map +1 -0
- package/lib/boot/tracker.d.ts +11 -0
- package/lib/boot/tracker.js +57 -0
- package/lib/boot/tracker.js.map +1 -0
- package/lib/constants/index.d.ts +146 -0
- package/lib/constants/index.js +160 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/locales.d.ts +83 -0
- package/lib/constants/locales.js +86 -0
- package/lib/constants/locales.js.map +1 -0
- package/lib/history/hooks.d.ts +12 -0
- package/lib/history/hooks.js +69 -0
- package/lib/history/hooks.js.map +1 -0
- package/lib/lib.d.ts +74 -0
- package/lib/lib.js +134 -0
- package/lib/lib.js.map +1 -0
- package/lib/network/edit-settings.d.ts +14 -0
- package/lib/network/edit-settings.js +144 -0
- package/lib/network/edit-settings.js.map +1 -0
- package/lib/network/fetch.d.ts +4 -0
- package/lib/network/fetch.js +175 -0
- package/lib/network/fetch.js.map +1 -0
- package/lib/network/tags.d.ts +27 -0
- package/lib/network/tags.js +31 -0
- package/lib/network/tags.js.map +1 -0
- package/lib/network/user-agent.d.ts +1 -0
- package/lib/network/user-agent.js +15 -0
- package/lib/network/user-agent.js.map +1 -0
- package/lib/network/utils.d.ts +2 -0
- package/lib/network/utils.js +17 -0
- package/lib/network/utils.js.map +1 -0
- package/lib/notification/NotificationManager.d.ts +22 -0
- package/lib/notification/NotificationManager.js +153 -0
- package/lib/notification/NotificationManager.js.map +1 -0
- package/lib/reporting/functions.d.ts +2 -0
- package/lib/reporting/functions.js +14 -0
- package/lib/reporting/functions.js.map +1 -0
- package/lib/reporting/store.d.ts +8 -0
- package/lib/reporting/store.js +43 -0
- package/lib/reporting/store.js.map +1 -0
- package/lib/search/run-search.d.ts +2 -0
- package/lib/search/run-search.js +17 -0
- package/lib/search/run-search.js.map +1 -0
- package/lib/search/search-store.d.ts +2 -0
- package/lib/search/search-store.js +20 -0
- package/lib/search/search-store.js.map +1 -0
- package/lib/search/useSearchModule.d.ts +3 -0
- package/lib/search/useSearchModule.js +21 -0
- package/lib/search/useSearchModule.js.map +1 -0
- package/lib/settings/components/settings-header.d.ts +9 -0
- package/lib/settings/components/settings-header.js +86 -0
- package/lib/settings/components/settings-header.js.map +1 -0
- package/lib/shell/hooks/useIsMobile.d.ts +4 -0
- package/lib/shell/hooks/useIsMobile.js +22 -0
- package/lib/shell/hooks/useIsMobile.js.map +1 -0
- package/lib/shell/hooks/useLocalStorage.d.ts +14 -0
- package/lib/shell/hooks/useLocalStorage.js +77 -0
- package/lib/shell/hooks/useLocalStorage.js.map +1 -0
- package/lib/shell/shell-context.d.ts +4 -0
- package/lib/shell/shell-context.js +11 -0
- package/lib/shell/shell-context.js.map +1 -0
- package/lib/store/account/hooks.d.ts +14 -0
- package/lib/store/account/hooks.js +51 -0
- package/lib/store/account/hooks.js.map +1 -0
- package/lib/store/account/index.d.ts +2 -0
- package/lib/store/account/index.js +24 -0
- package/lib/store/account/index.js.map +1 -0
- package/lib/store/account/store.d.ts +2 -0
- package/lib/store/account/store.js +23 -0
- package/lib/store/account/store.js.map +1 -0
- package/lib/store/app/hooks.d.ts +14 -0
- package/lib/store/app/hooks.js +41 -0
- package/lib/store/app/hooks.js.map +1 -0
- package/lib/store/app/index.d.ts +2 -0
- package/lib/store/app/index.js +24 -0
- package/lib/store/app/index.js.map +1 -0
- package/lib/store/app/store.d.ts +44 -0
- package/lib/store/app/store.js +265 -0
- package/lib/store/app/store.js.map +1 -0
- package/lib/store/app/utils.d.ts +10 -0
- package/lib/store/app/utils.js +123 -0
- package/lib/store/app/utils.js.map +1 -0
- package/lib/store/boards/hooks.d.ts +31 -0
- package/lib/store/boards/hooks.js +82 -0
- package/lib/store/boards/hooks.js.map +1 -0
- package/lib/store/boards/index.d.ts +2 -0
- package/lib/store/boards/index.js +24 -0
- package/lib/store/boards/index.js.map +1 -0
- package/lib/store/boards/store.d.ts +23 -0
- package/lib/store/boards/store.js +124 -0
- package/lib/store/boards/store.js.map +1 -0
- package/lib/store/context-bridge.d.ts +11 -0
- package/lib/store/context-bridge.js +34 -0
- package/lib/store/context-bridge.js.map +1 -0
- package/lib/store/folder/hooks.d.ts +21 -0
- package/lib/store/folder/hooks.js +77 -0
- package/lib/store/folder/hooks.js.map +1 -0
- package/lib/store/folder/index.d.ts +2 -0
- package/lib/store/folder/index.js +24 -0
- package/lib/store/folder/index.js.map +1 -0
- package/lib/store/folder/store.d.ts +2 -0
- package/lib/store/folder/store.js +20 -0
- package/lib/store/folder/store.js.map +1 -0
- package/lib/store/folder/utils.d.ts +16 -0
- package/lib/store/folder/utils.js +53 -0
- package/lib/store/folder/utils.js.map +1 -0
- package/lib/store/i18n/hooks.d.ts +4 -0
- package/lib/store/i18n/hooks.js +21 -0
- package/lib/store/i18n/hooks.js.map +1 -0
- package/lib/store/i18n/store.d.ts +13 -0
- package/lib/store/i18n/store.js +104 -0
- package/lib/store/i18n/store.js.map +1 -0
- package/lib/store/integrations/composer.d.ts +49 -0
- package/lib/store/integrations/composer.js +233 -0
- package/lib/store/integrations/composer.js.map +1 -0
- package/lib/store/integrations/getters.d.ts +9 -0
- package/lib/store/integrations/getters.js +41 -0
- package/lib/store/integrations/getters.js.map +1 -0
- package/lib/store/integrations/hooks.d.ts +9 -0
- package/lib/store/integrations/hooks.js +42 -0
- package/lib/store/integrations/hooks.js.map +1 -0
- package/lib/store/integrations/store.d.ts +41 -0
- package/lib/store/integrations/store.js +65 -0
- package/lib/store/integrations/store.js.map +1 -0
- package/lib/store/integrations/utils.d.ts +8 -0
- package/lib/store/integrations/utils.js +50 -0
- package/lib/store/integrations/utils.js.map +1 -0
- package/lib/store/login/getters.d.ts +2 -0
- package/lib/store/login/getters.js +18 -0
- package/lib/store/login/getters.js.map +1 -0
- package/lib/store/login/store.d.ts +12 -0
- package/lib/store/login/store.js +18 -0
- package/lib/store/login/store.js.map +1 -0
- package/lib/store/network/hooks.d.ts +3 -0
- package/lib/store/network/hooks.js +14 -0
- package/lib/store/network/hooks.js.map +1 -0
- package/lib/store/network/index.d.ts +2 -0
- package/lib/store/network/index.js +24 -0
- package/lib/store/network/index.js.map +1 -0
- package/lib/store/network/store.d.ts +2 -0
- package/lib/store/network/store.js +15 -0
- package/lib/store/network/store.js.map +1 -0
- package/lib/store/network/utils.d.ts +13 -0
- package/lib/store/network/utils.js +94 -0
- package/lib/store/network/utils.js.map +1 -0
- package/lib/store/tags/hooks.d.ts +3 -0
- package/lib/store/tags/hooks.js +15 -0
- package/lib/store/tags/hooks.js.map +1 -0
- package/lib/store/tags/index.d.ts +2 -0
- package/lib/store/tags/index.js +24 -0
- package/lib/store/tags/index.js.map +1 -0
- package/lib/store/tags/store.d.ts +2 -0
- package/lib/store/tags/store.js +18 -0
- package/lib/store/tags/store.js.map +1 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/lib/types/account/index.d.ts +140 -0
- package/lib/types/account/index.js +8 -0
- package/lib/types/account/index.js.map +1 -0
- package/lib/types/apps/index.d.ts +120 -0
- package/lib/types/apps/index.js +9 -0
- package/lib/types/apps/index.js.map +1 -0
- package/lib/types/boards/index.d.ts +10 -0
- package/lib/types/boards/index.js +3 -0
- package/lib/types/boards/index.js.map +1 -0
- package/lib/types/folder/index.d.ts +29 -0
- package/lib/types/folder/index.js +8 -0
- package/lib/types/folder/index.js.map +1 -0
- package/lib/types/integrations/index.d.ts +8 -0
- package/lib/types/integrations/index.js +8 -0
- package/lib/types/integrations/index.js.map +1 -0
- package/lib/types/misc/index.d.ts +156 -0
- package/lib/types/misc/index.js +8 -0
- package/lib/types/misc/index.js.map +1 -0
- package/lib/types/network/entities.d.ts +47 -0
- package/lib/types/network/entities.js +3 -0
- package/lib/types/network/entities.js.map +1 -0
- package/lib/types/network/index.d.ts +171 -0
- package/lib/types/network/index.js +23 -0
- package/lib/types/network/index.js.map +1 -0
- package/lib/types/network/soap.d.ts +102 -0
- package/lib/types/network/soap.js +8 -0
- package/lib/types/network/soap.js.map +1 -0
- package/lib/types/search/index.d.ts +11 -0
- package/lib/types/search/index.js +23 -0
- package/lib/types/search/index.js.map +1 -0
- package/lib/types/search/items.d.ts +6 -0
- package/lib/types/search/items.js +3 -0
- package/lib/types/search/items.js.map +1 -0
- package/lib/types/tags/index.d.ts +12 -0
- package/lib/types/tags/index.js +9 -0
- package/lib/types/tags/index.js.map +1 -0
- package/lib/types/workers/index.d.ts +17 -0
- package/lib/types/workers/index.js +3 -0
- package/lib/types/workers/index.js.map +1 -0
- package/lib/ui-extras/app-link.d.ts +6 -0
- package/lib/ui-extras/app-link.js +40 -0
- package/lib/ui-extras/app-link.js.map +1 -0
- package/lib/ui-extras/nav-guard.d.ts +9 -0
- package/lib/ui-extras/nav-guard.js +96 -0
- package/lib/ui-extras/nav-guard.js.map +1 -0
- package/lib/ui-extras/spinner.d.ts +2 -0
- package/lib/ui-extras/spinner.js +18 -0
- package/lib/ui-extras/spinner.js.map +1 -0
- package/lib/utils/typeUtils.d.ts +14 -0
- package/lib/utils/typeUtils.js +3 -0
- package/lib/utils/typeUtils.js.map +1 -0
- package/lib/utils/utils.d.ts +20 -0
- package/lib/utils/utils.js +39 -0
- package/lib/utils/utils.js.map +1 -0
- package/lib/workers/index.d.ts +2 -0
- package/lib/workers/index.js +15 -0
- package/lib/workers/index.js.map +1 -0
- package/package.json +34 -37
- package/dist/20d012c938e8d0dcc703.mp3 +0 -0
- package/dist/2d9c9ae572663301cb7d.js +0 -75391
- package/dist/CHANGELOG.md +0 -701
- package/dist/carbonio-head.svg +0 -200
- package/dist/carbonio.svg +0 -10
- package/dist/commit +0 -1
- package/dist/component.json +0 -13
- package/dist/favicon.png +0 -0
- package/dist/files/roboto-cyrillic-300-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-500-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-500-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-300-normal.woff +0 -0
- package/dist/files/roboto-greek-300-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-500-normal.woff +0 -0
- package/dist/files/roboto-greek-500-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-300-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-500-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-500-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-300-normal.woff +0 -0
- package/dist/files/roboto-latin-300-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-500-normal.woff +0 -0
- package/dist/files/roboto-latin-500-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-300-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-500-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-300-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-500-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/i18n/ar.json +0 -1
- package/dist/i18n/de.json +0 -438
- package/dist/i18n/en-US.json +0 -1
- package/dist/i18n/en.json +0 -438
- package/dist/i18n/es-419.json +0 -1
- package/dist/i18n/es.json +0 -438
- package/dist/i18n/fa.json +0 -1
- package/dist/i18n/fi.json +0 -12
- package/dist/i18n/fr.json +0 -438
- package/dist/i18n/hi.json +0 -438
- package/dist/i18n/hr.json +0 -1
- package/dist/i18n/hu.json +0 -31
- package/dist/i18n/id.json +0 -438
- package/dist/i18n/it.json +0 -438
- package/dist/i18n/ja.json +0 -438
- package/dist/i18n/ky.json +0 -6
- package/dist/i18n/nl.json +0 -438
- package/dist/i18n/pl.json +0 -438
- package/dist/i18n/pt-PT.json +0 -1
- package/dist/i18n/pt.json +0 -438
- package/dist/i18n/pt_BR.json +0 -438
- package/dist/i18n/ro.json +0 -9
- package/dist/i18n/ru.json +0 -438
- package/dist/i18n/th.json +0 -438
- package/dist/i18n/tr.json +0 -438
- package/dist/i18n/uk.json +0 -186
- package/dist/i18n/vi.json +0 -396
- package/dist/i18n/zh_Hans.json +0 -412
- package/dist/index.html +0 -25
- package/dist/notification.mp3 +0 -0
- package/dist/package/PKGBUILD +0 -45
- package/dist/plugins/help/js/i18n/keynav/de.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/en.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/es.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/fr_FR.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/hi.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/it.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/ja.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/nl.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/pl.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/pt_BR.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/ro.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/ru.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/th_TH.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/tr.js +0 -90
- package/dist/plugins/help/js/i18n/keynav/vi.js +0 -90
- package/dist/skins/content/dark/content.css +0 -59
- package/dist/skins/content/dark/content.min.css +0 -8
- package/dist/skins/content/default/content.css +0 -49
- package/dist/skins/content/default/content.min.css +0 -8
- package/dist/skins/content/document/content.css +0 -53
- package/dist/skins/content/document/content.min.css +0 -8
- package/dist/skins/content/writer/content.css +0 -50
- package/dist/skins/content/writer/content.min.css +0 -8
- package/dist/skins/ui/oxide/content.css +0 -615
- package/dist/skins/ui/oxide/content.inline.css +0 -608
- package/dist/skins/ui/oxide/content.inline.min.css +0 -8
- package/dist/skins/ui/oxide/content.min.css +0 -8
- package/dist/skins/ui/oxide/content.mobile.css +0 -29
- package/dist/skins/ui/oxide/content.mobile.min.css +0 -8
- package/dist/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/dist/skins/ui/oxide/skin.css +0 -2884
- package/dist/skins/ui/oxide/skin.min.css +0 -8
- package/dist/skins/ui/oxide/skin.mobile.css +0 -673
- package/dist/skins/ui/oxide/skin.mobile.min.css +0 -8
- package/dist/skins/ui/oxide-dark/content.css +0 -596
- package/dist/skins/ui/oxide-dark/content.inline.css +0 -608
- package/dist/skins/ui/oxide-dark/content.inline.min.css +0 -8
- package/dist/skins/ui/oxide-dark/content.min.css +0 -8
- package/dist/skins/ui/oxide-dark/content.mobile.css +0 -29
- package/dist/skins/ui/oxide-dark/content.mobile.min.css +0 -8
- package/dist/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/dist/skins/ui/oxide-dark/skin.css +0 -2884
- package/dist/skins/ui/oxide-dark/skin.min.css +0 -8
- package/dist/skins/ui/oxide-dark/skin.mobile.css +0 -673
- package/dist/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.css +0 -21
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.css.map +0 -1
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.d07f086d.chunk.js +0 -13399
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.d07f086d.chunk.js.map +0 -1
- package/dist/src_workers_folder_ts.2df69eae.chunk.js +0 -537
- package/dist/src_workers_folder_ts.2df69eae.chunk.js.map +0 -1
- package/dist/src_workers_tag_ts.59a752d7.chunk.js +0 -113
- package/dist/src_workers_tag_ts.59a752d7.chunk.js.map +0 -1
- package/dist/style.a7eb9e6c.css +0 -389
- package/dist/style.a7eb9e6c.css.map +0 -1
- package/dist/tinymce/langs/de.js +0 -1
- package/dist/tinymce/langs/es.js +0 -1
- package/dist/tinymce/langs/fr_FR.js +0 -1
- package/dist/tinymce/langs/hi.js +0 -1
- package/dist/tinymce/langs/it.js +0 -1
- package/dist/tinymce/langs/ja.js +0 -1
- package/dist/tinymce/langs/nl.js +0 -1
- package/dist/tinymce/langs/pl.js +0 -1
- package/dist/tinymce/langs/pt_BR.js +0 -1
- package/dist/tinymce/langs/ro.js +0 -1
- package/dist/tinymce/langs/ru.js +0 -1
- package/dist/tinymce/langs/th_TH.js +0 -1
- package/dist/tinymce/langs/tr.js +0 -1
- package/dist/tinymce/langs/vi.js +0 -1
- package/dist/tinymce/langs/zh-Hans.js +0 -1
- package/dist/vendors-node_modules_date-fns__lib_isSameUTCWeek_index_js-node_modules_date-fns_locale__lib_b-41ea83.3e405109.chunk.js +0 -412
- 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
- package/dist/vendors-node_modules_date-fns_locale_de_index_js.42fc0cb6.chunk.js +0 -787
- package/dist/vendors-node_modules_date-fns_locale_de_index_js.42fc0cb6.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_en-US_index_js.1575ad91.chunk.js +0 -693
- package/dist/vendors-node_modules_date-fns_locale_en-US_index_js.1575ad91.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_es_index_js.a054d7dc.chunk.js +0 -685
- package/dist/vendors-node_modules_date-fns_locale_es_index_js.a054d7dc.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_fr_index_js.20eefc5f.chunk.js +0 -644
- package/dist/vendors-node_modules_date-fns_locale_fr_index_js.20eefc5f.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_hi_index_js.016d9c1b.chunk.js +0 -741
- package/dist/vendors-node_modules_date-fns_locale_hi_index_js.016d9c1b.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_it_index_js.b1509e74.chunk.js +0 -531
- package/dist/vendors-node_modules_date-fns_locale_it_index_js.b1509e74.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_ja_index_js.7ee709ea.chunk.js +0 -703
- package/dist/vendors-node_modules_date-fns_locale_ja_index_js.7ee709ea.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_nl_index_js.03ea6284.chunk.js +0 -638
- package/dist/vendors-node_modules_date-fns_locale_nl_index_js.03ea6284.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_pl_index_js.b1a781fa.chunk.js +0 -623
- package/dist/vendors-node_modules_date-fns_locale_pl_index_js.b1a781fa.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_pt-BR_index_js.695bc207.chunk.js +0 -682
- package/dist/vendors-node_modules_date-fns_locale_pt-BR_index_js.695bc207.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_pt_index_js.09460edb.chunk.js +0 -678
- package/dist/vendors-node_modules_date-fns_locale_pt_index_js.09460edb.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_ro_index_js.53425395.chunk.js +0 -670
- package/dist/vendors-node_modules_date-fns_locale_ro_index_js.53425395.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_ru_index_js.ab8b44d9.chunk.js +0 -707
- package/dist/vendors-node_modules_date-fns_locale_ru_index_js.ab8b44d9.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_th_index_js.9f2448ee.chunk.js +0 -672
- package/dist/vendors-node_modules_date-fns_locale_th_index_js.9f2448ee.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_tr_index_js.c47c86fa.chunk.js +0 -677
- package/dist/vendors-node_modules_date-fns_locale_tr_index_js.c47c86fa.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_vi_index_js.d02adf1c.chunk.js +0 -765
- package/dist/vendors-node_modules_date-fns_locale_vi_index_js.d02adf1c.chunk.js.map +0 -1
- package/dist/vendors-node_modules_date-fns_locale_zh-CN_index_js.505f5507.chunk.js +0 -521
- package/dist/vendors-node_modules_date-fns_locale_zh-CN_index_js.505f5507.chunk.js.map +0 -1
- package/dist/vendors-node_modules_lodash_lodash_js-node_modules_core-js_modules_es_array_push_js.8ced7511.chunk.js +0 -19112
- package/dist/vendors-node_modules_lodash_lodash_js-node_modules_core-js_modules_es_array_push_js.8ced7511.chunk.js.map +0 -1
- package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.88e81e25.chunk.js +0 -219343
- 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
- package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.css +0 -4104
- package/dist/vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-f60063.css.map +0 -1
- package/dist/yap.json +0 -11
- package/dist/zapp-shell.bundle.js +0 -30430
- package/dist/zapp-shell.bundle.js.map +0 -1
- package/types/account/index.d.ts +0 -179
- package/types/apps/index.d.ts +0 -198
- package/types/boards/index.d.ts +0 -31
- package/types/exports/index.d.ts +0 -256
- package/types/folder/index.d.ts +0 -33
- package/types/i18n/index.d.ts +0 -19
- package/types/index.d.ts +0 -20
- package/types/integrations/index.d.ts +0 -41
- package/types/loginConfig/index.d.ts +0 -17
- package/types/misc/index.d.ts +0 -309
- package/types/network/entities.d.ts +0 -106
- package/types/network/index.d.ts +0 -239
- package/types/network/soap.d.ts +0 -106
- package/types/notification/index.d.ts +0 -31
- package/types/search/index.d.ts +0 -18
- package/types/search/items.d.ts +0 -13
- package/types/settings/index.d.ts +0 -10
- package/types/styled-components.d.ts +0 -18
- package/types/tags/index.d.ts +0 -21
- package/types/theme/index.d.ts +0 -9
- 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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/types/search/items.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/workers/index.ts"],"names":[],"mappings":""}
|
|
@@ -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,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 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.js","sourceRoot":"","sources":["../../src/utils/typeUtils.ts"],"names":[],"mappings":""}
|