@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,146 @@
|
|
|
1
|
+
import type { DynamicThemeFix } from 'darkreader';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated This constant is not used inside shell, and therefore it does not belong to it
|
|
4
|
+
* reference: https://zextras.atlassian.net/wiki/spaces/IRIS/pages/223215854/UI+Guidelines+and+theming
|
|
5
|
+
*/
|
|
6
|
+
export declare const ZIMBRA_STANDARD_COLORS: {
|
|
7
|
+
zValue: number;
|
|
8
|
+
hex: string;
|
|
9
|
+
zLabel: string;
|
|
10
|
+
}[];
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Folders concept is something that does not belong to shell
|
|
13
|
+
*/
|
|
14
|
+
export declare const FOLDERS: {
|
|
15
|
+
readonly USER_ROOT: "1";
|
|
16
|
+
readonly INBOX: "2";
|
|
17
|
+
readonly TRASH: "3";
|
|
18
|
+
readonly SPAM: "4";
|
|
19
|
+
readonly SENT: "5";
|
|
20
|
+
readonly DRAFTS: "6";
|
|
21
|
+
readonly CONTACTS: "7";
|
|
22
|
+
readonly TAGS: "8";
|
|
23
|
+
readonly CONVERSATIONS: "9";
|
|
24
|
+
readonly CALENDAR: "10";
|
|
25
|
+
readonly ROOT: "11";
|
|
26
|
+
readonly NOTEBOOK: "12";
|
|
27
|
+
readonly AUTO_CONTACTS: "13";
|
|
28
|
+
readonly IM_LOGS: "14";
|
|
29
|
+
readonly TASKS: "15";
|
|
30
|
+
readonly BRIEFCASE: "16";
|
|
31
|
+
readonly LAST_SYSTEM_FOLDER_POSITION: "16.1";
|
|
32
|
+
};
|
|
33
|
+
export declare const SHELL_APP_ID = "carbonio-shell-ui";
|
|
34
|
+
export declare const SETTINGS_APP_ID = "settings";
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated This constant is not used and will be deleted in next releases
|
|
37
|
+
*/
|
|
38
|
+
export declare const ACCOUNTS_APP_ID = "accounts";
|
|
39
|
+
export declare const SEARCH_APP_ID = "search";
|
|
40
|
+
export declare const ACTION_TYPES: {
|
|
41
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
42
|
+
readonly CONVERSATION: "conversation";
|
|
43
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
44
|
+
readonly CONVERSATION_lIST: "conversation_list";
|
|
45
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
46
|
+
readonly MESSAGE: "message";
|
|
47
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
48
|
+
readonly MESSAGE_lIST: "message_list";
|
|
49
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
50
|
+
readonly CONTACT: "contact";
|
|
51
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
52
|
+
readonly CONTACT_lIST: "contact_list";
|
|
53
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
54
|
+
readonly INVITE: "invite";
|
|
55
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
56
|
+
readonly INVITE_lIST: "invite_list";
|
|
57
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
58
|
+
readonly APPOINTMENT: "appointment";
|
|
59
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
60
|
+
readonly APPOINTMENT_lIST: "appointment_list";
|
|
61
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
62
|
+
readonly FOLDER: "folder";
|
|
63
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
64
|
+
readonly FOLDER_lIST: "folder_list";
|
|
65
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
66
|
+
readonly CALENDAR: "calendar";
|
|
67
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
68
|
+
readonly CALENDAR_lIST: "calendar_list";
|
|
69
|
+
readonly NEW: "new";
|
|
70
|
+
};
|
|
71
|
+
export declare const darkReaderDynamicThemeFixes: DynamicThemeFix;
|
|
72
|
+
export declare const IS_FOCUS_MODE: boolean;
|
|
73
|
+
export declare const BASENAME: string;
|
|
74
|
+
export declare const EMAIL_VALIDATION_REGEX: RegExp;
|
|
75
|
+
/** @deprecated This user root concept does not belong to the shell, and therefore it will be removed asap */
|
|
76
|
+
export declare const ROOT_NAME = "USER_ROOT";
|
|
77
|
+
export declare const DARK_READER_VALUES: readonly ["auto", "enabled", "disabled"];
|
|
78
|
+
/** @deprecated this const is not used inside shell, and therefore it does not belong to it */
|
|
79
|
+
export declare const FOLDER_VIEW: {
|
|
80
|
+
search_folder: string;
|
|
81
|
+
tag: string;
|
|
82
|
+
conversation: string;
|
|
83
|
+
message: string;
|
|
84
|
+
contact: string;
|
|
85
|
+
document: string;
|
|
86
|
+
appointment: string;
|
|
87
|
+
virtual_conversation: string;
|
|
88
|
+
remote_folder: string;
|
|
89
|
+
wiki: string;
|
|
90
|
+
task: string;
|
|
91
|
+
chat: string;
|
|
92
|
+
};
|
|
93
|
+
export declare const LOCAL_STORAGE_SETTINGS_KEY = "settings";
|
|
94
|
+
export declare const LOCAL_STORAGE_LAST_PRIMARY_KEY = "config";
|
|
95
|
+
export declare const LOCAL_STORAGE_SEARCH_KEY = "search_suggestions";
|
|
96
|
+
export declare const LOCAL_STORAGE_BOARD_SIZE = "board_size";
|
|
97
|
+
export declare const SCALING_OPTIONS: readonly [{
|
|
98
|
+
readonly value: 75;
|
|
99
|
+
readonly label: "xs";
|
|
100
|
+
}, {
|
|
101
|
+
readonly value: 87.5;
|
|
102
|
+
readonly label: "s";
|
|
103
|
+
}, {
|
|
104
|
+
readonly value: 100;
|
|
105
|
+
readonly label: "m";
|
|
106
|
+
}, {
|
|
107
|
+
readonly value: 112.5;
|
|
108
|
+
readonly label: "l";
|
|
109
|
+
}, {
|
|
110
|
+
readonly value: 125;
|
|
111
|
+
readonly label: "xl";
|
|
112
|
+
}];
|
|
113
|
+
export declare const BASE_FONT_SIZE = 100;
|
|
114
|
+
export declare const SCALING_LIMIT: {
|
|
115
|
+
readonly width: 1400;
|
|
116
|
+
readonly height: 900;
|
|
117
|
+
readonly dpr: 2;
|
|
118
|
+
};
|
|
119
|
+
export declare const LOGIN_V3_CONFIG_PATH = "/zx/login/v3/config";
|
|
120
|
+
export declare const DARK_READER_PROP_KEY = "zappDarkreaderMode";
|
|
121
|
+
export declare const SENTRY_SHELL_DSN = "https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6";
|
|
122
|
+
export declare const RESULT_LABEL_TYPE: {
|
|
123
|
+
readonly normal: "normal";
|
|
124
|
+
readonly warning: "warning";
|
|
125
|
+
readonly error: "error";
|
|
126
|
+
};
|
|
127
|
+
export declare const HEADER_BAR_HEIGHT = "3.75rem";
|
|
128
|
+
export declare const PRIMARY_BAR_WIDTH = "3.0625rem";
|
|
129
|
+
export declare const BOARD_HEADER_HEIGHT = "3rem";
|
|
130
|
+
export declare const BOARD_TAB_WIDTH = "calc(3rem + 15ch)";
|
|
131
|
+
export declare const BOARD_CONTAINER_ZINDEX = 10;
|
|
132
|
+
export declare const BOARD_MIN_VISIBILITY: {
|
|
133
|
+
top: number;
|
|
134
|
+
left: number;
|
|
135
|
+
};
|
|
136
|
+
export declare const DELEGATED_SEND_SAVE_TARGET: string[];
|
|
137
|
+
export declare const CUSTOM_EVENTS: {
|
|
138
|
+
readonly updateView: "updateView";
|
|
139
|
+
};
|
|
140
|
+
export declare const JSNS: {
|
|
141
|
+
readonly account: "urn:zimbraAccount";
|
|
142
|
+
readonly admin: "urn:zimbraAdmin";
|
|
143
|
+
readonly mail: "urn:zimbraMail";
|
|
144
|
+
readonly all: "urn:zimbra";
|
|
145
|
+
readonly sync: "urn:zimbraSync";
|
|
146
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JSNS = exports.CUSTOM_EVENTS = exports.DELEGATED_SEND_SAVE_TARGET = exports.BOARD_MIN_VISIBILITY = exports.BOARD_CONTAINER_ZINDEX = exports.BOARD_TAB_WIDTH = exports.BOARD_HEADER_HEIGHT = exports.PRIMARY_BAR_WIDTH = exports.HEADER_BAR_HEIGHT = exports.RESULT_LABEL_TYPE = exports.SENTRY_SHELL_DSN = exports.DARK_READER_PROP_KEY = exports.LOGIN_V3_CONFIG_PATH = exports.SCALING_LIMIT = exports.BASE_FONT_SIZE = exports.SCALING_OPTIONS = exports.LOCAL_STORAGE_BOARD_SIZE = exports.LOCAL_STORAGE_SEARCH_KEY = exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = exports.LOCAL_STORAGE_SETTINGS_KEY = exports.FOLDER_VIEW = exports.DARK_READER_VALUES = exports.ROOT_NAME = exports.EMAIL_VALIDATION_REGEX = exports.BASENAME = exports.IS_FOCUS_MODE = exports.darkReaderDynamicThemeFixes = exports.ACTION_TYPES = exports.SEARCH_APP_ID = exports.ACCOUNTS_APP_ID = exports.SETTINGS_APP_ID = exports.SHELL_APP_ID = exports.FOLDERS = exports.ZIMBRA_STANDARD_COLORS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This constant is not used inside shell, and therefore it does not belong to it
|
|
6
|
+
* reference: https://zextras.atlassian.net/wiki/spaces/IRIS/pages/223215854/UI+Guidelines+and+theming
|
|
7
|
+
*/
|
|
8
|
+
exports.ZIMBRA_STANDARD_COLORS = [
|
|
9
|
+
{ zValue: 0, hex: '#000000', zLabel: 'black' },
|
|
10
|
+
{ zValue: 1, hex: '#2b73d2', zLabel: 'blue' },
|
|
11
|
+
{ zValue: 2, hex: '#29B6F6', zLabel: 'cyan' },
|
|
12
|
+
{ zValue: 3, hex: '#66BB6A', zLabel: 'green' },
|
|
13
|
+
{ zValue: 4, hex: '#7e57c2', zLabel: 'purple' },
|
|
14
|
+
{ zValue: 5, hex: '#ef5350', zLabel: 'red' },
|
|
15
|
+
{ zValue: 6, hex: '#ffc107', zLabel: 'yellow' },
|
|
16
|
+
{ zValue: 7, hex: '#edaeab', zLabel: 'pink' },
|
|
17
|
+
{ zValue: 8, hex: '#828282', zLabel: 'gray' },
|
|
18
|
+
{ zValue: 9, hex: '#FF7043', zLabel: 'orange' }
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Folders concept is something that does not belong to shell
|
|
22
|
+
*/
|
|
23
|
+
exports.FOLDERS = {
|
|
24
|
+
USER_ROOT: '1',
|
|
25
|
+
INBOX: '2',
|
|
26
|
+
TRASH: '3',
|
|
27
|
+
SPAM: '4',
|
|
28
|
+
SENT: '5',
|
|
29
|
+
DRAFTS: '6',
|
|
30
|
+
CONTACTS: '7',
|
|
31
|
+
TAGS: '8',
|
|
32
|
+
CONVERSATIONS: '9',
|
|
33
|
+
CALENDAR: '10',
|
|
34
|
+
ROOT: '11',
|
|
35
|
+
NOTEBOOK: '12', // no longer created in new mailboxes since Helix (bug 39647). old mailboxes may still contain a system folder with id 12
|
|
36
|
+
AUTO_CONTACTS: '13',
|
|
37
|
+
IM_LOGS: '14',
|
|
38
|
+
TASKS: '15',
|
|
39
|
+
BRIEFCASE: '16',
|
|
40
|
+
LAST_SYSTEM_FOLDER_POSITION: '16.1'
|
|
41
|
+
};
|
|
42
|
+
exports.SHELL_APP_ID = 'carbonio-shell-ui';
|
|
43
|
+
exports.SETTINGS_APP_ID = 'settings';
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated This constant is not used and will be deleted in next releases
|
|
46
|
+
*/
|
|
47
|
+
exports.ACCOUNTS_APP_ID = 'accounts';
|
|
48
|
+
exports.SEARCH_APP_ID = 'search';
|
|
49
|
+
exports.ACTION_TYPES = {
|
|
50
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
51
|
+
CONVERSATION: 'conversation',
|
|
52
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
53
|
+
CONVERSATION_lIST: 'conversation_list',
|
|
54
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
55
|
+
MESSAGE: 'message',
|
|
56
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
57
|
+
MESSAGE_lIST: 'message_list',
|
|
58
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
59
|
+
CONTACT: 'contact',
|
|
60
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
61
|
+
CONTACT_lIST: 'contact_list',
|
|
62
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
63
|
+
INVITE: 'invite',
|
|
64
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
65
|
+
INVITE_lIST: 'invite_list',
|
|
66
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
67
|
+
APPOINTMENT: 'appointment',
|
|
68
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
69
|
+
APPOINTMENT_lIST: 'appointment_list',
|
|
70
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
71
|
+
FOLDER: 'folder',
|
|
72
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
73
|
+
FOLDER_lIST: 'folder_list',
|
|
74
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
75
|
+
CALENDAR: 'calendar',
|
|
76
|
+
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
77
|
+
CALENDAR_lIST: 'calendar_list',
|
|
78
|
+
NEW: 'new'
|
|
79
|
+
};
|
|
80
|
+
exports.darkReaderDynamicThemeFixes = {
|
|
81
|
+
ignoreImageAnalysis: ['.no-dr-invert *'],
|
|
82
|
+
invert: [],
|
|
83
|
+
css: `
|
|
84
|
+
.tox, .force-white-bg, .tox-swatches-menu, .tox .tox-edit-area__iframe {
|
|
85
|
+
background-color: #fff !important;
|
|
86
|
+
background: #fff !important;
|
|
87
|
+
}
|
|
88
|
+
`,
|
|
89
|
+
ignoreInlineStyle: ['.tox-menu *'],
|
|
90
|
+
disableStyleSheetsProxy: false
|
|
91
|
+
};
|
|
92
|
+
const base = '/carbonio/';
|
|
93
|
+
const focusModeBase = `${base}focus-mode`;
|
|
94
|
+
exports.IS_FOCUS_MODE = window.location.pathname.startsWith(focusModeBase);
|
|
95
|
+
exports.BASENAME = exports.IS_FOCUS_MODE ? focusModeBase : base;
|
|
96
|
+
exports.EMAIL_VALIDATION_REGEX =
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, max-len, no-control-regex
|
|
98
|
+
/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;
|
|
99
|
+
/** @deprecated This user root concept does not belong to the shell, and therefore it will be removed asap */
|
|
100
|
+
exports.ROOT_NAME = 'USER_ROOT';
|
|
101
|
+
exports.DARK_READER_VALUES = ['auto', 'enabled', 'disabled'];
|
|
102
|
+
/** @deprecated this const is not used inside shell, and therefore it does not belong to it */
|
|
103
|
+
exports.FOLDER_VIEW = {
|
|
104
|
+
search_folder: 'search folder',
|
|
105
|
+
tag: 'tag',
|
|
106
|
+
conversation: 'conversation',
|
|
107
|
+
message: 'message',
|
|
108
|
+
contact: 'contact',
|
|
109
|
+
document: 'document',
|
|
110
|
+
appointment: 'appointment',
|
|
111
|
+
virtual_conversation: 'virtual conversation',
|
|
112
|
+
remote_folder: 'remote folder',
|
|
113
|
+
wiki: 'wiki',
|
|
114
|
+
task: 'task',
|
|
115
|
+
chat: 'chat'
|
|
116
|
+
};
|
|
117
|
+
exports.LOCAL_STORAGE_SETTINGS_KEY = 'settings';
|
|
118
|
+
exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = 'config';
|
|
119
|
+
exports.LOCAL_STORAGE_SEARCH_KEY = 'search_suggestions';
|
|
120
|
+
exports.LOCAL_STORAGE_BOARD_SIZE = 'board_size';
|
|
121
|
+
exports.SCALING_OPTIONS = [
|
|
122
|
+
{ value: 75, label: 'xs' },
|
|
123
|
+
{ value: 87.5, label: 's' },
|
|
124
|
+
{ value: 100, label: 'm' },
|
|
125
|
+
{ value: 112.5, label: 'l' },
|
|
126
|
+
{ value: 125, label: 'xl' }
|
|
127
|
+
];
|
|
128
|
+
exports.BASE_FONT_SIZE = 100;
|
|
129
|
+
exports.SCALING_LIMIT = {
|
|
130
|
+
width: 1400,
|
|
131
|
+
height: 900,
|
|
132
|
+
dpr: 2 // device pixel ratio
|
|
133
|
+
};
|
|
134
|
+
exports.LOGIN_V3_CONFIG_PATH = '/zx/login/v3/config';
|
|
135
|
+
exports.DARK_READER_PROP_KEY = 'zappDarkreaderMode';
|
|
136
|
+
exports.SENTRY_SHELL_DSN = 'https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6';
|
|
137
|
+
exports.RESULT_LABEL_TYPE = {
|
|
138
|
+
normal: 'normal',
|
|
139
|
+
warning: 'warning',
|
|
140
|
+
error: 'error'
|
|
141
|
+
};
|
|
142
|
+
exports.HEADER_BAR_HEIGHT = '3.75rem';
|
|
143
|
+
exports.PRIMARY_BAR_WIDTH = '3.0625rem';
|
|
144
|
+
exports.BOARD_HEADER_HEIGHT = '3rem';
|
|
145
|
+
exports.BOARD_TAB_WIDTH = 'calc(3rem + 15ch)';
|
|
146
|
+
exports.BOARD_CONTAINER_ZINDEX = 10;
|
|
147
|
+
exports.BOARD_MIN_VISIBILITY = {
|
|
148
|
+
top: 50,
|
|
149
|
+
left: 30
|
|
150
|
+
};
|
|
151
|
+
exports.DELEGATED_SEND_SAVE_TARGET = ['owner', 'sender', 'both', 'none'];
|
|
152
|
+
exports.CUSTOM_EVENTS = { updateView: 'updateView' };
|
|
153
|
+
exports.JSNS = {
|
|
154
|
+
account: 'urn:zimbraAccount',
|
|
155
|
+
admin: 'urn:zimbraAdmin',
|
|
156
|
+
mail: 'urn:zimbraMail',
|
|
157
|
+
all: 'urn:zimbra',
|
|
158
|
+
sync: 'urn:zimbraSync'
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACU,QAAA,sBAAsB,GAAG;IACrC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;IAC9C,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;IAC7C,EAA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AC5C,QAAA,gBAAgB,GAAG,mEAAmE,CAAC;AAEvF,QAAA,iBAAiB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACL,CAAC;AAEE,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,iBAAiB,GAAG,WAAW,CAAC;AAChC,QAAA,mBAAmB,GAAG,MAAM,CAAC;AAC7B,QAAA,eAAe,GAAG,mBAAmB,CAAC;AACtC,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAC5B,QAAA,oBAAoB,GAAG;IACnC,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;CACR,CAAC;AAEW,QAAA,0BAA0B,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACjE,QAAA,aAAa,GAAG,EAAE,UAAU,EAAE,YAAY,EAAW,CAAC;AAEtD,QAAA,IAAI,GAAG;IACnB,OAAO,EAAE,mBAAmB;IAC5B,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,gBAAgB;CACb,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export type LocaleDescriptor = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
dateFnsLocale?: string;
|
|
5
|
+
tinymceLocale?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const SUPPORTED_LOCALES: {
|
|
8
|
+
readonly zh_CN: {
|
|
9
|
+
readonly name: "中文 (中国)";
|
|
10
|
+
readonly value: "zh_CN";
|
|
11
|
+
readonly dateFnsLocale: "zh-CN";
|
|
12
|
+
readonly tinymceLocale: "zh-Hans";
|
|
13
|
+
};
|
|
14
|
+
readonly nl: {
|
|
15
|
+
readonly name: "Nederlands";
|
|
16
|
+
readonly value: "nl";
|
|
17
|
+
};
|
|
18
|
+
readonly en: {
|
|
19
|
+
readonly name: "English";
|
|
20
|
+
readonly value: "en";
|
|
21
|
+
readonly dateFnsLocale: "en-US";
|
|
22
|
+
};
|
|
23
|
+
readonly de: {
|
|
24
|
+
readonly name: "Deutsch";
|
|
25
|
+
readonly value: "de";
|
|
26
|
+
};
|
|
27
|
+
readonly hi: {
|
|
28
|
+
readonly name: "हिंदी";
|
|
29
|
+
readonly value: "hi";
|
|
30
|
+
};
|
|
31
|
+
readonly it: {
|
|
32
|
+
readonly name: "italiano";
|
|
33
|
+
readonly value: "it";
|
|
34
|
+
};
|
|
35
|
+
readonly ja: {
|
|
36
|
+
readonly name: "日本語";
|
|
37
|
+
readonly value: "ja";
|
|
38
|
+
};
|
|
39
|
+
readonly pt: {
|
|
40
|
+
readonly name: "português";
|
|
41
|
+
readonly value: "pt";
|
|
42
|
+
readonly tinymceLocale: "pt_BR";
|
|
43
|
+
};
|
|
44
|
+
readonly pl: {
|
|
45
|
+
readonly name: "polski";
|
|
46
|
+
readonly value: "pl";
|
|
47
|
+
};
|
|
48
|
+
readonly pt_BR: {
|
|
49
|
+
readonly name: "português (Brasil)";
|
|
50
|
+
readonly value: "pt_BR";
|
|
51
|
+
readonly dateFnsLocale: "pt-BR";
|
|
52
|
+
};
|
|
53
|
+
readonly ro: {
|
|
54
|
+
readonly name: "română";
|
|
55
|
+
readonly value: "ro";
|
|
56
|
+
};
|
|
57
|
+
readonly ru: {
|
|
58
|
+
readonly name: "русский";
|
|
59
|
+
readonly value: "ru";
|
|
60
|
+
};
|
|
61
|
+
readonly es: {
|
|
62
|
+
readonly name: "español";
|
|
63
|
+
readonly value: "es";
|
|
64
|
+
};
|
|
65
|
+
readonly th: {
|
|
66
|
+
readonly name: "ไทย";
|
|
67
|
+
readonly value: "th";
|
|
68
|
+
readonly tinymceLocale: "th_TH";
|
|
69
|
+
};
|
|
70
|
+
readonly tr: {
|
|
71
|
+
readonly name: "Türkçe";
|
|
72
|
+
readonly value: "tr";
|
|
73
|
+
};
|
|
74
|
+
readonly fr: {
|
|
75
|
+
readonly name: "français";
|
|
76
|
+
readonly value: "fr";
|
|
77
|
+
readonly tinymceLocale: "fr_FR";
|
|
78
|
+
};
|
|
79
|
+
readonly vi: {
|
|
80
|
+
readonly name: "Tiếng Việt";
|
|
81
|
+
readonly value: "vi";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2023 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SUPPORTED_LOCALES = void 0;
|
|
9
|
+
exports.SUPPORTED_LOCALES = {
|
|
10
|
+
zh_CN: {
|
|
11
|
+
name: '中文 (中国)',
|
|
12
|
+
value: 'zh_CN',
|
|
13
|
+
dateFnsLocale: 'zh-CN',
|
|
14
|
+
tinymceLocale: 'zh-Hans'
|
|
15
|
+
},
|
|
16
|
+
nl: {
|
|
17
|
+
name: 'Nederlands',
|
|
18
|
+
value: 'nl'
|
|
19
|
+
},
|
|
20
|
+
en: {
|
|
21
|
+
name: 'English',
|
|
22
|
+
value: 'en',
|
|
23
|
+
dateFnsLocale: 'en-US'
|
|
24
|
+
},
|
|
25
|
+
de: {
|
|
26
|
+
name: 'Deutsch',
|
|
27
|
+
value: 'de'
|
|
28
|
+
},
|
|
29
|
+
hi: {
|
|
30
|
+
name: 'हिंदी',
|
|
31
|
+
value: 'hi'
|
|
32
|
+
},
|
|
33
|
+
it: {
|
|
34
|
+
name: 'italiano',
|
|
35
|
+
value: 'it'
|
|
36
|
+
},
|
|
37
|
+
ja: {
|
|
38
|
+
name: '日本語',
|
|
39
|
+
value: 'ja'
|
|
40
|
+
},
|
|
41
|
+
pt: {
|
|
42
|
+
name: 'português',
|
|
43
|
+
value: 'pt',
|
|
44
|
+
tinymceLocale: 'pt_BR'
|
|
45
|
+
},
|
|
46
|
+
pl: {
|
|
47
|
+
name: 'polski',
|
|
48
|
+
value: 'pl'
|
|
49
|
+
},
|
|
50
|
+
pt_BR: {
|
|
51
|
+
name: 'português (Brasil)',
|
|
52
|
+
value: 'pt_BR',
|
|
53
|
+
dateFnsLocale: 'pt-BR'
|
|
54
|
+
},
|
|
55
|
+
ro: {
|
|
56
|
+
name: 'română',
|
|
57
|
+
value: 'ro'
|
|
58
|
+
},
|
|
59
|
+
ru: {
|
|
60
|
+
name: 'русский',
|
|
61
|
+
value: 'ru'
|
|
62
|
+
},
|
|
63
|
+
es: {
|
|
64
|
+
name: 'español',
|
|
65
|
+
value: 'es'
|
|
66
|
+
},
|
|
67
|
+
th: {
|
|
68
|
+
name: 'ไทย',
|
|
69
|
+
value: 'th',
|
|
70
|
+
tinymceLocale: 'th_TH'
|
|
71
|
+
},
|
|
72
|
+
tr: {
|
|
73
|
+
name: 'Türkçe',
|
|
74
|
+
value: 'tr'
|
|
75
|
+
},
|
|
76
|
+
fr: {
|
|
77
|
+
name: 'français',
|
|
78
|
+
value: 'fr',
|
|
79
|
+
tinymceLocale: 'fr_FR'
|
|
80
|
+
},
|
|
81
|
+
vi: {
|
|
82
|
+
name: 'Tiếng Việt',
|
|
83
|
+
value: 'vi'
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=locales.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.js","sourceRoot":"","sources":["../../src/constants/locales.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAgBU,QAAA,iBAAiB,GAAG;IAChC,KAAK,EAAE;QACN,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,OAAO;QACd,aAAa,EAAE,OAAO;QACtB,aAAa,EAAE,SAAS;KACxB;IACD,EAAE,EAAE;QACH,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,OAAO;KACtB;IACD,EAAE,EAAE;QACH,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,IAAI;KACX;IAED,EAAE,EAAE;QACH,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,OAAO;KACtB;IACD,EAAE,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;KACX;IACD,KAAK,EAAE;QACN,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,OAAO;QACd,aAAa,EAAE,OAAO;KACtB;IAED,EAAE,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;KACX;IAED,EAAE,EAAE;QACH,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;KACX;IAED,EAAE,EAAE;QACH,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,OAAO;KACtB;IACD,EAAE,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;KACX;IACD,EAAE,EAAE;QACH,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,OAAO;KACtB;IACD,EAAE,EAAE;QACH,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,IAAI;KACX;CACmD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { To } from 'history';
|
|
2
|
+
import type { AppRoute } from '../types/apps';
|
|
3
|
+
import type { HistoryParams } from '../types/misc';
|
|
4
|
+
export declare const useCurrentRoute: () => AppRoute | undefined;
|
|
5
|
+
export declare const getCurrentRoute: () => AppRoute | undefined;
|
|
6
|
+
export declare const parseParams: (params: HistoryParams) => To;
|
|
7
|
+
export declare const usePushHistoryCallback: () => (params: HistoryParams) => void;
|
|
8
|
+
export declare const useReplaceHistoryCallback: () => (params: HistoryParams) => void;
|
|
9
|
+
export declare function useGoBackHistoryCallback(): () => void;
|
|
10
|
+
export declare const pushHistory: (params: HistoryParams) => void;
|
|
11
|
+
export declare const replaceHistory: (params: HistoryParams) => void;
|
|
12
|
+
export declare const goBackHistory: () => void;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.goBackHistory = exports.replaceHistory = exports.pushHistory = exports.useGoBackHistoryCallback = exports.useReplaceHistoryCallback = exports.usePushHistoryCallback = exports.parseParams = exports.getCurrentRoute = exports.useCurrentRoute = void 0;
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const lodash_1 = require("lodash");
|
|
11
|
+
const react_router_dom_1 = require("react-router-dom");
|
|
12
|
+
const app_1 = require("../store/app");
|
|
13
|
+
const context_bridge_1 = require("../store/context-bridge");
|
|
14
|
+
const useCurrentRoute = () => {
|
|
15
|
+
const location = (0, react_router_dom_1.useLocation)();
|
|
16
|
+
const routes = (0, app_1.useRoutes)();
|
|
17
|
+
return (0, react_1.useMemo)(() => (0, lodash_1.find)(routes, ({ route }) => (0, lodash_1.startsWith)((0, lodash_1.trim)(location.pathname, '/'), route)), [location.pathname, routes]);
|
|
18
|
+
};
|
|
19
|
+
exports.useCurrentRoute = useCurrentRoute;
|
|
20
|
+
const getCurrentRoute = () => {
|
|
21
|
+
const history = context_bridge_1.useContextBridge.getState().functions.getHistory?.();
|
|
22
|
+
const routes = (0, app_1.getRoutes)();
|
|
23
|
+
return (0, lodash_1.find)(routes, (r) => (0, lodash_1.startsWith)((0, lodash_1.trim)(history.location.pathname, '/'), r.route));
|
|
24
|
+
};
|
|
25
|
+
exports.getCurrentRoute = getCurrentRoute;
|
|
26
|
+
const parseParams = (params) => {
|
|
27
|
+
if (typeof params === 'string') {
|
|
28
|
+
return (0, lodash_1.replace)(`/${(0, exports.getCurrentRoute)()?.route}/${params}`, '//', '/');
|
|
29
|
+
}
|
|
30
|
+
const routeToApply = params.route
|
|
31
|
+
? (0, lodash_1.find)((0, app_1.getRoutes)(), (r) => r.id === params.route || r.route === params.route)
|
|
32
|
+
: (0, exports.getCurrentRoute)();
|
|
33
|
+
return typeof params.path === 'string'
|
|
34
|
+
? (0, lodash_1.replace)(`/${routeToApply?.route}/${params.path}`, '//', '/')
|
|
35
|
+
: {
|
|
36
|
+
search: params.path.search,
|
|
37
|
+
hash: params.path.hash,
|
|
38
|
+
pathname: (0, lodash_1.replace)(`/${routeToApply?.route}/${params.path.pathname}`, '//', '/')
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
exports.parseParams = parseParams;
|
|
42
|
+
const usePushHistoryCallback = () => {
|
|
43
|
+
const history = (0, react_router_dom_1.useHistory)();
|
|
44
|
+
return (0, react_1.useCallback)((params) => history.push((0, exports.parseParams)(params)), [history]);
|
|
45
|
+
};
|
|
46
|
+
exports.usePushHistoryCallback = usePushHistoryCallback;
|
|
47
|
+
const useReplaceHistoryCallback = () => {
|
|
48
|
+
const history = (0, react_router_dom_1.useHistory)();
|
|
49
|
+
return (0, react_1.useCallback)((params) => history.replace((0, exports.parseParams)(params)), [history]);
|
|
50
|
+
};
|
|
51
|
+
exports.useReplaceHistoryCallback = useReplaceHistoryCallback;
|
|
52
|
+
function useGoBackHistoryCallback() {
|
|
53
|
+
const history = (0, react_router_dom_1.useHistory)();
|
|
54
|
+
return history.goBack;
|
|
55
|
+
}
|
|
56
|
+
exports.useGoBackHistoryCallback = useGoBackHistoryCallback;
|
|
57
|
+
const pushHistory = (params) => {
|
|
58
|
+
const history = context_bridge_1.useContextBridge.getState().functions.getHistory?.();
|
|
59
|
+
history.push((0, exports.parseParams)(params));
|
|
60
|
+
};
|
|
61
|
+
exports.pushHistory = pushHistory;
|
|
62
|
+
const replaceHistory = (params) => {
|
|
63
|
+
const history = context_bridge_1.useContextBridge.getState().functions.getHistory?.();
|
|
64
|
+
history.replace((0, exports.parseParams)(params));
|
|
65
|
+
};
|
|
66
|
+
exports.replaceHistory = replaceHistory;
|
|
67
|
+
const goBackHistory = () => context_bridge_1.useContextBridge.getState().functions.getHistory?.().goBack();
|
|
68
|
+
exports.goBackHistory = goBackHistory;
|
|
69
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/history/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAA6C;AAG7C,mCAAyD;AACzD,uDAA2D;AAE3D,sCAAoD;AACpD,4DAA2D;AAIpD,MAAM,eAAe,GAAG,GAAyB,EAAE;IACzD,MAAM,QAAQ,GAAG,IAAA,8BAAW,GAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAA,eAAS,GAAE,CAAC;IAC3B,OAAO,IAAA,eAAO,EACb,GAAG,EAAE,CAAC,IAAA,aAAI,EAAC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,mBAAU,EAAC,IAAA,aAAI,EAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,EAClF,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAC3B,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B;AACK,MAAM,eAAe,GAAG,GAAy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,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC;IACrE,OAAO,CAAC,OAAO,CAAC,IAAA,mBAAW,EAAC,MAAM,CAAC,CAAC,CAAC;AACtC,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB;AAEK,MAAM,aAAa,GAAG,GAAS,EAAE,CACvC,iCAAgB,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;AADlD,QAAA,aAAa,iBACqC"}
|
package/lib/lib.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The library to integrate in the Carbonio environment.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* The library includes all and only those utils exposed
|
|
6
|
+
* by the shell to the modules at runtime.
|
|
7
|
+
* This utils include all functions required to register the module,
|
|
8
|
+
* plus some other utils to manage the interaction with the both the shell
|
|
9
|
+
* and other modules.
|
|
10
|
+
* There are also some components exposed for creating a consistent UI
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
import type { AppDependantFunctions as AppFunctions } from './boot/app/app-loader-functions';
|
|
15
|
+
import type { AppDependantSetters as AppSetters } from './boot/app/app-loader-setters';
|
|
16
|
+
import type { report as reportApp } from './reporting/functions';
|
|
17
|
+
export * from './constants';
|
|
18
|
+
export * from './ui-extras/app-link';
|
|
19
|
+
export * from './ui-extras/spinner';
|
|
20
|
+
export * from './settings/components/settings-header';
|
|
21
|
+
export declare const report: ReturnType<typeof reportApp>;
|
|
22
|
+
export declare const setAppContext: AppSetters['setAppContext'];
|
|
23
|
+
export declare const addRoute: AppSetters['addRoute'];
|
|
24
|
+
export declare const addBoardView: AppSetters['addBoardView'];
|
|
25
|
+
export declare const addSettingsView: AppSetters['addSettingsView'];
|
|
26
|
+
export declare const addSearchView: AppSetters['addSearchView'];
|
|
27
|
+
export declare const addUtilityView: AppSetters['addUtilityView'];
|
|
28
|
+
export declare const addPrimaryAccessoryView: AppSetters['addPrimaryAccessoryView'];
|
|
29
|
+
export declare const addSecondaryAccessoryView: AppSetters['addSecondaryAccessoryView'];
|
|
30
|
+
export declare const registerComponents: AppSetters['registerComponents'];
|
|
31
|
+
export declare const editSettings: AppSetters['editSettings'];
|
|
32
|
+
export { registerActions, removeActions, registerFunctions, removeFunctions, removeRoute, removeComponents, removeBoardView, removeSearchView, removeUtilityView, removeSettingsView, removeSecondaryAccessoryView, removePrimaryAccessoryView, setRouteVisibility, updateUtilityBadge, updatePrimaryBadge, upsertApp } from './boot/app/app-loader-setters';
|
|
33
|
+
export declare const getI18n: AppFunctions['getI18n'];
|
|
34
|
+
export declare const t: AppFunctions['t'];
|
|
35
|
+
export declare const soapFetch: AppFunctions['soapFetch'];
|
|
36
|
+
export declare const xmlSoapFetch: AppFunctions['xmlSoapFetch'];
|
|
37
|
+
export declare const useAppContext: AppFunctions['useAppContext'];
|
|
38
|
+
export declare const getAppContext: AppFunctions['getAppContext'];
|
|
39
|
+
export declare const useApp: AppFunctions['useApp'];
|
|
40
|
+
export declare const getApp: AppFunctions['getApp'];
|
|
41
|
+
export declare const addBoard: AppFunctions['addBoard'];
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use hooks to access to functions which require context
|
|
44
|
+
*/
|
|
45
|
+
export declare const getBridgedFunctions: AppFunctions['getBridgedFunctions'];
|
|
46
|
+
export { useAction, useActions, useActionsFactory, useActionFactory, useIntegratedComponent, useIntegratedFunction } from './boot/app/app-loader-functions';
|
|
47
|
+
export { getAction, getActions, getActionsFactory, getActionFactory, getIntegratedComponent, getIntegratedFunction } from './boot/app/app-loader-functions';
|
|
48
|
+
export { getUserAccount, getUserAccounts, getUserSetting, getUserSettings, useUserAccount, useUserAccounts, useUserSetting, useUserSettings, useUserRight, useUserRights, getUserRight, getUserRights, useAuthenticated } from './boot/app/app-loader-functions';
|
|
49
|
+
export { getTags, useTags } from './boot/app/app-loader-functions';
|
|
50
|
+
export { changeTagColor, createTag, deleteTag, renameTag } from './boot/app/app-loader-functions';
|
|
51
|
+
export { useNotify, useRefresh } from './boot/app/app-loader-functions';
|
|
52
|
+
export { getFolder, getFolders, useFolder, useFolders, useRoot, getRoot, useRoots, getRoots, useSearchFolder, useSearchFolders, getSearchFolder, getSearchFolders, useFoldersByView, useFoldersAccordionByView, useRootByUser, getRootByUser } from './boot/app/app-loader-functions';
|
|
53
|
+
export { closeBoard, updateBoard, updateBoardContext, getBoardById, getBoardContextById, useBoardContextById, useBoardById, useBoard, minimizeBoards, reopenBoards, setCurrentBoard, useBoardHooks } from './boot/app/app-loader-functions';
|
|
54
|
+
export { usePushHistoryCallback, useGoBackHistoryCallback, useReplaceHistoryCallback, getCurrentRoute, useCurrentRoute, replaceHistory, goBackHistory, pushHistory } from './boot/app/app-loader-functions';
|
|
55
|
+
export { getNotificationManager } from './boot/app/app-loader-functions';
|
|
56
|
+
export { runSearch } from './boot/app/app-loader-functions';
|
|
57
|
+
export { useIsMobile } from './boot/app/app-loader-functions';
|
|
58
|
+
export { useLocalStorage } from './boot/app/app-loader-functions';
|
|
59
|
+
export { Tracker } from './boot/tracker';
|
|
60
|
+
export type { PrimaryBarComponentProps, SecondaryBarComponentProps, UtilityBarComponentProps, BoardViewComponentProps, AppViewComponentProps, SettingsViewProps, SearchViewProps, PrimaryAccessoryViewProps, SecondaryAccessoryViewProps, SettingsSubSection, BadgeInfo } from './types/apps';
|
|
61
|
+
export type { BooleanString, GeneralizedTime, Duration, Account, AccountSettings, AccountSettingsPrefs, Identity, IdentityAttrs } from './types/account';
|
|
62
|
+
export type { Board } from './types/boards';
|
|
63
|
+
export type { BoardHooksContext } from './store/boards/hooks';
|
|
64
|
+
export type { CreateTagResponse } from './network/tags';
|
|
65
|
+
export type { Tag, Tags } from './types/tags';
|
|
66
|
+
export type { INotificationManager, NotificationConfig, AudioNotificationConfig, PopupNotificationConfig } from './notification/NotificationManager';
|
|
67
|
+
export type { QueryItem, QueryChip } from './types/search';
|
|
68
|
+
export type { Folder, Folders, LinkFolder } from './types/folder';
|
|
69
|
+
export type { Grant } from './types/misc';
|
|
70
|
+
export type { SuccessSoapResponse, ErrorSoapResponse, ErrorSoapBodyResponse, SoapResponse, SoapLink, SoapFolder, SoapNotify, SoapContext, SoapBody, SoapHeader } from './types/network/soap';
|
|
71
|
+
export type { BatchRequest } from './types/network';
|
|
72
|
+
export type { Action } from './types/integrations';
|
|
73
|
+
export type { HistoryParams } from './types/misc';
|
|
74
|
+
export type { FolderMessage } from './types/workers';
|