@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,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AppContextProviderProps {
|
|
3
|
+
pkg: string;
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
declare const AppContextProvider: ({ pkg, children }: AppContextProviderProps) => React.JSX.Element;
|
|
7
|
+
export default AppContextProvider;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const app_error_catcher_1 = __importDefault(require("./app-error-catcher"));
|
|
13
|
+
const module_i18next_provider_1 = require("../module-i18next-provider");
|
|
14
|
+
const AppContextProvider = ({ pkg, children }) => (react_1.default.createElement(module_i18next_provider_1.ModuleI18nextProvider, { pkg: pkg },
|
|
15
|
+
react_1.default.createElement(app_error_catcher_1.default, null, children)));
|
|
16
|
+
exports.default = AppContextProvider;
|
|
17
|
+
//# sourceMappingURL=app-context-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-context-provider.js","sourceRoot":"","sources":["../../../src/boot/app/app-context-provider.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,kDAA0B;AAE1B,4EAAkD;AAClD,wEAAmE;AAOnE,MAAM,kBAAkB,GAAG,CAAC,EAAE,GAAG,EAAE,QAAQ,EAA2B,EAAqB,EAAE,CAAC,CAC7F,8BAAC,+CAAqB,IAAC,GAAG,EAAE,GAAG;IAC9B,8BAAC,2BAAe,QAAE,QAAQ,CAAmB,CACtB,CACxB,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
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
|
+
const react_1 = __importStar(require("react"));
|
|
32
|
+
const carbonio_design_system_1 = require("@zextras/carbonio-design-system");
|
|
33
|
+
const AppErrorCatcher = ({ children }) => {
|
|
34
|
+
const onError = (0, react_1.useCallback)((error) => {
|
|
35
|
+
console.error(error);
|
|
36
|
+
// ({event: 'report-exception',data: { exception: error }});
|
|
37
|
+
}, []);
|
|
38
|
+
return react_1.default.createElement(carbonio_design_system_1.Catcher, { onError: onError }, children);
|
|
39
|
+
};
|
|
40
|
+
exports.default = AppErrorCatcher;
|
|
41
|
+
//# sourceMappingURL=app-error-catcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-error-catcher.js","sourceRoot":"","sources":["../../../src/boot/app/app-error-catcher.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,+CAA2C;AAE3C,4EAA0D;AAE1D,MAAM,eAAe,GAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5C,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAK,EAAE,EAAE;QACrC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,4DAA4D;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,8BAAC,gCAAO,IAAC,OAAO,EAAE,OAAO,IAAG,QAAQ,CAAW,CAAC;AACxD,CAAC,CAAC;AACF,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getSoapFetch, getXmlSoapFetch } from '../../network/fetch';
|
|
2
|
+
import { getApp, getAppContext, getAppHook, getAppContextHook } from '../../store/app';
|
|
3
|
+
import { addBoard } from '../../store/boards';
|
|
4
|
+
import type { ContextBridgeState } from '../../store/context-bridge';
|
|
5
|
+
import { getI18n, getTFunction } from '../../store/i18n/hooks';
|
|
6
|
+
import type { CarbonioModule } from '../../types/apps';
|
|
7
|
+
export type AppDependantFunctions = {
|
|
8
|
+
getI18n: ReturnType<typeof getI18n>;
|
|
9
|
+
t: ReturnType<typeof getTFunction>;
|
|
10
|
+
soapFetch: ReturnType<typeof getSoapFetch>;
|
|
11
|
+
xmlSoapFetch: ReturnType<typeof getXmlSoapFetch>;
|
|
12
|
+
useAppContext: ReturnType<typeof getAppContextHook>;
|
|
13
|
+
getAppContext: ReturnType<typeof getAppContext>;
|
|
14
|
+
useApp: ReturnType<typeof getAppHook>;
|
|
15
|
+
getApp: ReturnType<typeof getApp>;
|
|
16
|
+
addBoard: ReturnType<typeof addBoard>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use hooks to access to functions which require context
|
|
19
|
+
*/
|
|
20
|
+
getBridgedFunctions: () => ContextBridgeState['functions'] & {
|
|
21
|
+
[K in keyof ContextBridgeState['packageDependentFunctions']]: ReturnType<ContextBridgeState['packageDependentFunctions'][K]>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const getAppDependantFunctions: (pkg: CarbonioModule) => AppDependantFunctions;
|
|
25
|
+
export { useAction, useActions, useActionsFactory, useActionFactory, useIntegratedComponent, useIntegratedFunction } from '../../store/integrations/hooks';
|
|
26
|
+
export { getAction, getActions, getActionsFactory, getActionFactory, getIntegratedComponent, getIntegratedFunction } from '../../store/integrations/getters';
|
|
27
|
+
export { getUserAccount, getUserAccounts, getUserSetting, getUserSettings, useUserAccount, useUserAccounts, useUserSetting, useUserSettings, useUserRight, useUserRights, getUserRight, getUserRights, useAuthenticated } from '../../store/account';
|
|
28
|
+
export { getTags, useTags } from '../../store/tags';
|
|
29
|
+
export { changeTagColor, createTag, deleteTag, renameTag } from '../../network/tags';
|
|
30
|
+
export { useNotify, useRefresh } from '../../store/network';
|
|
31
|
+
export { getFolder, getFolders, useFolder, useFolders, useRoot, getRoot, useRoots, getRoots, useSearchFolder, useSearchFolders, getSearchFolder, getSearchFolders, useFoldersByView, useFoldersAccordionByView, useRootByUser, getRootByUser } from '../../store/folder';
|
|
32
|
+
export { closeBoard, updateBoard, updateBoardContext, getBoardById, getBoardContextById, useBoardContextById, useBoardById, useBoard, minimizeBoards, reopenBoards, setCurrentBoard, useBoardHooks } from '../../store/boards';
|
|
33
|
+
export { usePushHistoryCallback, useGoBackHistoryCallback, useReplaceHistoryCallback, getCurrentRoute, useCurrentRoute, replaceHistory, goBackHistory, pushHistory } from '../../history/hooks';
|
|
34
|
+
export { getNotificationManager } from '../../notification/NotificationManager';
|
|
35
|
+
export { runSearch } from '../../search/run-search';
|
|
36
|
+
export { useIsMobile } from '../../shell/hooks/useIsMobile';
|
|
37
|
+
export { useLocalStorage } from '../../shell/hooks/useLocalStorage';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getRootByUser = exports.useRootByUser = exports.useFoldersAccordionByView = exports.useFoldersByView = exports.getSearchFolders = exports.getSearchFolder = exports.useSearchFolders = exports.useSearchFolder = exports.getRoots = exports.useRoots = exports.getRoot = exports.useRoot = exports.useFolders = exports.useFolder = exports.getFolders = exports.getFolder = exports.useRefresh = exports.useNotify = exports.renameTag = exports.deleteTag = exports.createTag = exports.changeTagColor = exports.useTags = exports.getTags = exports.useAuthenticated = exports.getUserRights = exports.getUserRight = exports.useUserRights = exports.useUserRight = exports.useUserSettings = exports.useUserSetting = exports.useUserAccounts = exports.useUserAccount = exports.getUserSettings = exports.getUserSetting = exports.getUserAccounts = exports.getUserAccount = exports.getIntegratedFunction = exports.getIntegratedComponent = exports.getActionFactory = exports.getActionsFactory = exports.getActions = exports.getAction = exports.useIntegratedFunction = exports.useIntegratedComponent = exports.useActionFactory = exports.useActionsFactory = exports.useActions = exports.useAction = exports.getAppDependantFunctions = void 0;
|
|
9
|
+
exports.useLocalStorage = exports.useIsMobile = exports.runSearch = exports.getNotificationManager = exports.pushHistory = exports.goBackHistory = exports.replaceHistory = exports.useCurrentRoute = exports.getCurrentRoute = exports.useReplaceHistoryCallback = exports.useGoBackHistoryCallback = exports.usePushHistoryCallback = exports.useBoardHooks = exports.setCurrentBoard = exports.reopenBoards = exports.minimizeBoards = exports.useBoard = exports.useBoardById = exports.useBoardContextById = exports.getBoardContextById = exports.getBoardById = exports.updateBoardContext = exports.updateBoard = exports.closeBoard = void 0;
|
|
10
|
+
const lodash_1 = require("lodash");
|
|
11
|
+
const fetch_1 = require("../../network/fetch");
|
|
12
|
+
const app_1 = require("../../store/app");
|
|
13
|
+
const boards_1 = require("../../store/boards");
|
|
14
|
+
const context_bridge_1 = require("../../store/context-bridge");
|
|
15
|
+
const hooks_1 = require("../../store/i18n/hooks");
|
|
16
|
+
const getAppDependantFunctions = (pkg) => ({
|
|
17
|
+
getI18n: (0, hooks_1.getI18n)(pkg.name),
|
|
18
|
+
t: (0, hooks_1.getTFunction)(pkg.name),
|
|
19
|
+
soapFetch: (0, fetch_1.getSoapFetch)(pkg.name),
|
|
20
|
+
xmlSoapFetch: (0, fetch_1.getXmlSoapFetch)(pkg.name),
|
|
21
|
+
useAppContext: (0, app_1.getAppContextHook)(pkg.name),
|
|
22
|
+
getAppContext: (0, app_1.getAppContext)(pkg.name),
|
|
23
|
+
useApp: (0, app_1.getAppHook)(pkg.name),
|
|
24
|
+
getApp: (0, app_1.getApp)(pkg.name),
|
|
25
|
+
addBoard: (0, boards_1.addBoard)(pkg.name),
|
|
26
|
+
getBridgedFunctions: () => {
|
|
27
|
+
const { packageDependentFunctions, functions } = context_bridge_1.useContextBridge.getState();
|
|
28
|
+
return {
|
|
29
|
+
...functions,
|
|
30
|
+
...(0, lodash_1.reduce)(packageDependentFunctions, (acc, f, name) => ({ ...acc, [name]: f(pkg.name) }), {})
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
exports.getAppDependantFunctions = getAppDependantFunctions;
|
|
35
|
+
var hooks_2 = require("../../store/integrations/hooks");
|
|
36
|
+
Object.defineProperty(exports, "useAction", { enumerable: true, get: function () { return hooks_2.useAction; } });
|
|
37
|
+
Object.defineProperty(exports, "useActions", { enumerable: true, get: function () { return hooks_2.useActions; } });
|
|
38
|
+
Object.defineProperty(exports, "useActionsFactory", { enumerable: true, get: function () { return hooks_2.useActionsFactory; } });
|
|
39
|
+
Object.defineProperty(exports, "useActionFactory", { enumerable: true, get: function () { return hooks_2.useActionFactory; } });
|
|
40
|
+
Object.defineProperty(exports, "useIntegratedComponent", { enumerable: true, get: function () { return hooks_2.useIntegratedComponent; } });
|
|
41
|
+
Object.defineProperty(exports, "useIntegratedFunction", { enumerable: true, get: function () { return hooks_2.useIntegratedFunction; } });
|
|
42
|
+
var getters_1 = require("../../store/integrations/getters");
|
|
43
|
+
Object.defineProperty(exports, "getAction", { enumerable: true, get: function () { return getters_1.getAction; } });
|
|
44
|
+
Object.defineProperty(exports, "getActions", { enumerable: true, get: function () { return getters_1.getActions; } });
|
|
45
|
+
Object.defineProperty(exports, "getActionsFactory", { enumerable: true, get: function () { return getters_1.getActionsFactory; } });
|
|
46
|
+
Object.defineProperty(exports, "getActionFactory", { enumerable: true, get: function () { return getters_1.getActionFactory; } });
|
|
47
|
+
Object.defineProperty(exports, "getIntegratedComponent", { enumerable: true, get: function () { return getters_1.getIntegratedComponent; } });
|
|
48
|
+
Object.defineProperty(exports, "getIntegratedFunction", { enumerable: true, get: function () { return getters_1.getIntegratedFunction; } });
|
|
49
|
+
var account_1 = require("../../store/account");
|
|
50
|
+
Object.defineProperty(exports, "getUserAccount", { enumerable: true, get: function () { return account_1.getUserAccount; } });
|
|
51
|
+
Object.defineProperty(exports, "getUserAccounts", { enumerable: true, get: function () { return account_1.getUserAccounts; } });
|
|
52
|
+
Object.defineProperty(exports, "getUserSetting", { enumerable: true, get: function () { return account_1.getUserSetting; } });
|
|
53
|
+
Object.defineProperty(exports, "getUserSettings", { enumerable: true, get: function () { return account_1.getUserSettings; } });
|
|
54
|
+
Object.defineProperty(exports, "useUserAccount", { enumerable: true, get: function () { return account_1.useUserAccount; } });
|
|
55
|
+
Object.defineProperty(exports, "useUserAccounts", { enumerable: true, get: function () { return account_1.useUserAccounts; } });
|
|
56
|
+
Object.defineProperty(exports, "useUserSetting", { enumerable: true, get: function () { return account_1.useUserSetting; } });
|
|
57
|
+
Object.defineProperty(exports, "useUserSettings", { enumerable: true, get: function () { return account_1.useUserSettings; } });
|
|
58
|
+
Object.defineProperty(exports, "useUserRight", { enumerable: true, get: function () { return account_1.useUserRight; } });
|
|
59
|
+
Object.defineProperty(exports, "useUserRights", { enumerable: true, get: function () { return account_1.useUserRights; } });
|
|
60
|
+
Object.defineProperty(exports, "getUserRight", { enumerable: true, get: function () { return account_1.getUserRight; } });
|
|
61
|
+
Object.defineProperty(exports, "getUserRights", { enumerable: true, get: function () { return account_1.getUserRights; } });
|
|
62
|
+
Object.defineProperty(exports, "useAuthenticated", { enumerable: true, get: function () { return account_1.useAuthenticated; } });
|
|
63
|
+
var tags_1 = require("../../store/tags");
|
|
64
|
+
Object.defineProperty(exports, "getTags", { enumerable: true, get: function () { return tags_1.getTags; } });
|
|
65
|
+
Object.defineProperty(exports, "useTags", { enumerable: true, get: function () { return tags_1.useTags; } });
|
|
66
|
+
var tags_2 = require("../../network/tags");
|
|
67
|
+
Object.defineProperty(exports, "changeTagColor", { enumerable: true, get: function () { return tags_2.changeTagColor; } });
|
|
68
|
+
Object.defineProperty(exports, "createTag", { enumerable: true, get: function () { return tags_2.createTag; } });
|
|
69
|
+
Object.defineProperty(exports, "deleteTag", { enumerable: true, get: function () { return tags_2.deleteTag; } });
|
|
70
|
+
Object.defineProperty(exports, "renameTag", { enumerable: true, get: function () { return tags_2.renameTag; } });
|
|
71
|
+
var network_1 = require("../../store/network");
|
|
72
|
+
Object.defineProperty(exports, "useNotify", { enumerable: true, get: function () { return network_1.useNotify; } });
|
|
73
|
+
Object.defineProperty(exports, "useRefresh", { enumerable: true, get: function () { return network_1.useRefresh; } });
|
|
74
|
+
var folder_1 = require("../../store/folder");
|
|
75
|
+
Object.defineProperty(exports, "getFolder", { enumerable: true, get: function () { return folder_1.getFolder; } });
|
|
76
|
+
Object.defineProperty(exports, "getFolders", { enumerable: true, get: function () { return folder_1.getFolders; } });
|
|
77
|
+
Object.defineProperty(exports, "useFolder", { enumerable: true, get: function () { return folder_1.useFolder; } });
|
|
78
|
+
Object.defineProperty(exports, "useFolders", { enumerable: true, get: function () { return folder_1.useFolders; } });
|
|
79
|
+
Object.defineProperty(exports, "useRoot", { enumerable: true, get: function () { return folder_1.useRoot; } });
|
|
80
|
+
Object.defineProperty(exports, "getRoot", { enumerable: true, get: function () { return folder_1.getRoot; } });
|
|
81
|
+
Object.defineProperty(exports, "useRoots", { enumerable: true, get: function () { return folder_1.useRoots; } });
|
|
82
|
+
Object.defineProperty(exports, "getRoots", { enumerable: true, get: function () { return folder_1.getRoots; } });
|
|
83
|
+
Object.defineProperty(exports, "useSearchFolder", { enumerable: true, get: function () { return folder_1.useSearchFolder; } });
|
|
84
|
+
Object.defineProperty(exports, "useSearchFolders", { enumerable: true, get: function () { return folder_1.useSearchFolders; } });
|
|
85
|
+
Object.defineProperty(exports, "getSearchFolder", { enumerable: true, get: function () { return folder_1.getSearchFolder; } });
|
|
86
|
+
Object.defineProperty(exports, "getSearchFolders", { enumerable: true, get: function () { return folder_1.getSearchFolders; } });
|
|
87
|
+
Object.defineProperty(exports, "useFoldersByView", { enumerable: true, get: function () { return folder_1.useFoldersByView; } });
|
|
88
|
+
Object.defineProperty(exports, "useFoldersAccordionByView", { enumerable: true, get: function () { return folder_1.useFoldersAccordionByView; } });
|
|
89
|
+
Object.defineProperty(exports, "useRootByUser", { enumerable: true, get: function () { return folder_1.useRootByUser; } });
|
|
90
|
+
Object.defineProperty(exports, "getRootByUser", { enumerable: true, get: function () { return folder_1.getRootByUser; } });
|
|
91
|
+
var boards_2 = require("../../store/boards");
|
|
92
|
+
Object.defineProperty(exports, "closeBoard", { enumerable: true, get: function () { return boards_2.closeBoard; } });
|
|
93
|
+
Object.defineProperty(exports, "updateBoard", { enumerable: true, get: function () { return boards_2.updateBoard; } });
|
|
94
|
+
Object.defineProperty(exports, "updateBoardContext", { enumerable: true, get: function () { return boards_2.updateBoardContext; } });
|
|
95
|
+
Object.defineProperty(exports, "getBoardById", { enumerable: true, get: function () { return boards_2.getBoardById; } });
|
|
96
|
+
Object.defineProperty(exports, "getBoardContextById", { enumerable: true, get: function () { return boards_2.getBoardContextById; } });
|
|
97
|
+
Object.defineProperty(exports, "useBoardContextById", { enumerable: true, get: function () { return boards_2.useBoardContextById; } });
|
|
98
|
+
Object.defineProperty(exports, "useBoardById", { enumerable: true, get: function () { return boards_2.useBoardById; } });
|
|
99
|
+
Object.defineProperty(exports, "useBoard", { enumerable: true, get: function () { return boards_2.useBoard; } });
|
|
100
|
+
Object.defineProperty(exports, "minimizeBoards", { enumerable: true, get: function () { return boards_2.minimizeBoards; } });
|
|
101
|
+
Object.defineProperty(exports, "reopenBoards", { enumerable: true, get: function () { return boards_2.reopenBoards; } });
|
|
102
|
+
Object.defineProperty(exports, "setCurrentBoard", { enumerable: true, get: function () { return boards_2.setCurrentBoard; } });
|
|
103
|
+
Object.defineProperty(exports, "useBoardHooks", { enumerable: true, get: function () { return boards_2.useBoardHooks; } });
|
|
104
|
+
var hooks_3 = require("../../history/hooks");
|
|
105
|
+
Object.defineProperty(exports, "usePushHistoryCallback", { enumerable: true, get: function () { return hooks_3.usePushHistoryCallback; } });
|
|
106
|
+
Object.defineProperty(exports, "useGoBackHistoryCallback", { enumerable: true, get: function () { return hooks_3.useGoBackHistoryCallback; } });
|
|
107
|
+
Object.defineProperty(exports, "useReplaceHistoryCallback", { enumerable: true, get: function () { return hooks_3.useReplaceHistoryCallback; } });
|
|
108
|
+
Object.defineProperty(exports, "getCurrentRoute", { enumerable: true, get: function () { return hooks_3.getCurrentRoute; } });
|
|
109
|
+
Object.defineProperty(exports, "useCurrentRoute", { enumerable: true, get: function () { return hooks_3.useCurrentRoute; } });
|
|
110
|
+
Object.defineProperty(exports, "replaceHistory", { enumerable: true, get: function () { return hooks_3.replaceHistory; } });
|
|
111
|
+
Object.defineProperty(exports, "goBackHistory", { enumerable: true, get: function () { return hooks_3.goBackHistory; } });
|
|
112
|
+
Object.defineProperty(exports, "pushHistory", { enumerable: true, get: function () { return hooks_3.pushHistory; } });
|
|
113
|
+
var NotificationManager_1 = require("../../notification/NotificationManager");
|
|
114
|
+
Object.defineProperty(exports, "getNotificationManager", { enumerable: true, get: function () { return NotificationManager_1.getNotificationManager; } });
|
|
115
|
+
var run_search_1 = require("../../search/run-search");
|
|
116
|
+
Object.defineProperty(exports, "runSearch", { enumerable: true, get: function () { return run_search_1.runSearch; } });
|
|
117
|
+
var useIsMobile_1 = require("../../shell/hooks/useIsMobile");
|
|
118
|
+
Object.defineProperty(exports, "useIsMobile", { enumerable: true, get: function () { return useIsMobile_1.useIsMobile; } });
|
|
119
|
+
var useLocalStorage_1 = require("../../shell/hooks/useLocalStorage");
|
|
120
|
+
Object.defineProperty(exports, "useLocalStorage", { enumerable: true, get: function () { return useLocalStorage_1.useLocalStorage; } });
|
|
121
|
+
//# sourceMappingURL=app-loader-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-loader-functions.js","sourceRoot":"","sources":["../../../src/boot/app/app-loader-functions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,mCAAgC;AAEhC,+CAAoE;AACpE,yCAAuF;AACvF,+CAA8C;AAE9C,+DAA8D;AAC9D,kDAA+D;AAwBxD,MAAM,wBAAwB,GAAG,CAAC,GAAmB,EAAyB,EAAE,CAAC,CAAC;IACxF,OAAO,EAAE,IAAA,eAAO,EAAC,GAAG,CAAC,IAAI,CAAC;IAC1B,CAAC,EAAE,IAAA,oBAAY,EAAC,GAAG,CAAC,IAAI,CAAC;IACzB,SAAS,EAAE,IAAA,oBAAY,EAAC,GAAG,CAAC,IAAI,CAAC;IACjC,YAAY,EAAE,IAAA,uBAAe,EAAC,GAAG,CAAC,IAAI,CAAC;IACvC,aAAa,EAAE,IAAA,uBAAiB,EAAC,GAAG,CAAC,IAAI,CAAC;IAC1C,aAAa,EAAE,IAAA,mBAAa,EAAC,GAAG,CAAC,IAAI,CAAC;IACtC,MAAM,EAAE,IAAA,gBAAU,EAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,MAAM,EAAE,IAAA,YAAM,EAAC,GAAG,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,mBAAmB,EAAE,GAA6D,EAAE;QACnF,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,GAAG,iCAAgB,CAAC,QAAQ,EAAE,CAAC;QAC7E,OAAO;YACN,GAAG,SAAS;YACZ,GAAG,IAAA,eAAM,EAAC,yBAAyB,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;SAC7F,CAAC;IACH,CAAC;CACD,CAAC,CAAC;AAjBU,QAAA,wBAAwB,4BAiBlC;AAEH,wDAOwC;AANvC,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,0GAAA,iBAAiB,OAAA;AACjB,yGAAA,gBAAgB,OAAA;AAChB,+GAAA,sBAAsB,OAAA;AACtB,8GAAA,qBAAqB,OAAA;AAGtB,4DAO0C;AANzC,oGAAA,SAAS,OAAA;AACT,qGAAA,UAAU,OAAA;AACV,4GAAA,iBAAiB,OAAA;AACjB,2GAAA,gBAAgB,OAAA;AAChB,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AAGtB,+CAc6B;AAb5B,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,2GAAA,gBAAgB,OAAA;AAGjB,yCAAoD;AAA3C,+FAAA,OAAO,OAAA;AAAE,+FAAA,OAAO,OAAA;AACzB,2CAAqF;AAA5E,sGAAA,cAAc,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,iGAAA,SAAS,OAAA;AAExD,+CAA4D;AAAnD,oGAAA,SAAS,OAAA;AAAE,qGAAA,UAAU,OAAA;AAE9B,6CAiB4B;AAhB3B,mGAAA,SAAS,OAAA;AACT,oGAAA,UAAU,OAAA;AACV,mGAAA,SAAS,OAAA;AACT,oGAAA,UAAU,OAAA;AACV,iGAAA,OAAO,OAAA;AACP,iGAAA,OAAO,OAAA;AACP,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AACR,yGAAA,eAAe,OAAA;AACf,0GAAA,gBAAgB,OAAA;AAChB,yGAAA,eAAe,OAAA;AACf,0GAAA,gBAAgB,OAAA;AAChB,0GAAA,gBAAgB,OAAA;AAChB,mHAAA,yBAAyB,OAAA;AACzB,uGAAA,aAAa,OAAA;AACb,uGAAA,aAAa,OAAA;AAGd,6CAa4B;AAZ3B,oGAAA,UAAU,OAAA;AACV,qGAAA,WAAW,OAAA;AACX,4GAAA,kBAAkB,OAAA;AAClB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AACnB,sGAAA,YAAY,OAAA;AACZ,kGAAA,QAAQ,OAAA;AACR,wGAAA,cAAc,OAAA;AACd,sGAAA,YAAY,OAAA;AACZ,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AAGd,6CAS6B;AAR5B,+GAAA,sBAAsB,OAAA;AACtB,iHAAA,wBAAwB,OAAA;AACxB,kHAAA,yBAAyB,OAAA;AACzB,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AACf,uGAAA,cAAc,OAAA;AACd,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AAGZ,8EAAgF;AAAvE,6HAAA,sBAAsB,OAAA;AAE/B,sDAAoD;AAA3C,uGAAA,SAAS,OAAA;AAElB,6DAA4D;AAAnD,0GAAA,WAAW,OAAA;AAEpB,qEAAoE;AAA3D,kHAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getEditSettingsForApp } from '../../network/edit-settings';
|
|
2
|
+
import type { AppActions as StoreAppSetters } from '../../store/app';
|
|
3
|
+
import type { IntegrationActions } from '../../store/integrations/store';
|
|
4
|
+
import type { AppRouteDescriptor, BoardView, CarbonioModule, PrimaryAccessoryView, SearchView, SecondaryAccessoryView, SettingsView, UtilityView } from '../../types/apps';
|
|
5
|
+
export type AppDependantSetters = {
|
|
6
|
+
setAppContext: ReturnType<StoreAppSetters['setAppContext']>;
|
|
7
|
+
addRoute: (data: Partial<AppRouteDescriptor>) => ReturnType<StoreAppSetters['addRoute']>;
|
|
8
|
+
addBoardView: (data: Partial<BoardView>) => ReturnType<StoreAppSetters['addBoardView']>;
|
|
9
|
+
addSettingsView: (data: Partial<SettingsView>) => ReturnType<StoreAppSetters['addSettingsView']>;
|
|
10
|
+
addSearchView: (data: Partial<SearchView>) => ReturnType<StoreAppSetters['addSearchView']>;
|
|
11
|
+
addUtilityView: (data: Partial<UtilityView>) => ReturnType<StoreAppSetters['addUtilityView']>;
|
|
12
|
+
addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => ReturnType<StoreAppSetters['addPrimaryAccessoryView']>;
|
|
13
|
+
addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => ReturnType<StoreAppSetters['addSecondaryAccessoryView']>;
|
|
14
|
+
registerComponents: ReturnType<IntegrationActions['registerComponents']>;
|
|
15
|
+
editSettings: ReturnType<typeof getEditSettingsForApp>;
|
|
16
|
+
};
|
|
17
|
+
export declare const getAppDependantSetters: (pkg: CarbonioModule) => AppDependantSetters;
|
|
18
|
+
export declare const updatePrimaryBadge: (badge: Partial<import("../../types/apps").BadgeInfo>, id: string) => void, updateUtilityBadge: (badge: Partial<import("../../types/apps").BadgeInfo>, id: string) => void, setRouteVisibility: (id: string, visible: boolean) => void, removeRoute: (id: string) => void, removeBoardView: (id: string) => void, removeSettingsView: (id: string) => void, removeSearchView: (id: string) => void, removeUtilityView: (id: string) => void, removePrimaryAccessoryView: (id: string) => void, removeSecondaryAccessoryView: (id: string) => void,
|
|
19
|
+
/**
|
|
20
|
+
* Add or update the translatable display and description labels for an app.
|
|
21
|
+
* These fields are the ones used in the UI.
|
|
22
|
+
* @param app - The app to update based on the name field
|
|
23
|
+
* @example
|
|
24
|
+
* upsertApp(\{
|
|
25
|
+
* name: 'carbonio-example-ui',
|
|
26
|
+
* display: t('label.app_name', 'Example')
|
|
27
|
+
* description: t('label.app_description', 'Example module')
|
|
28
|
+
* \});
|
|
29
|
+
*/
|
|
30
|
+
upsertApp: (app: Pick<CarbonioModule, "description" | "name" | "display">) => void;
|
|
31
|
+
export declare const registerFunctions: (...items: {
|
|
32
|
+
id: string;
|
|
33
|
+
fn: import("../../utils/typeUtils").AnyFunction;
|
|
34
|
+
}[]) => void, removeFunctions: (...ids: string[]) => void, registerActions: (...items: {
|
|
35
|
+
id: string;
|
|
36
|
+
action: (target: unknown) => import("../../lib").Action;
|
|
37
|
+
type: string;
|
|
38
|
+
}[]) => void, removeActions: (...ids: string[]) => void, removeComponents: (...ids: string[]) => void;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 _a, _b;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.removeComponents = exports.removeActions = exports.registerActions = exports.removeFunctions = exports.registerFunctions = exports.upsertApp = exports.removeSecondaryAccessoryView = exports.removePrimaryAccessoryView = exports.removeUtilityView = exports.removeSearchView = exports.removeSettingsView = exports.removeBoardView = exports.removeRoute = exports.setRouteVisibility = exports.updateUtilityBadge = exports.updatePrimaryBadge = exports.getAppDependantSetters = void 0;
|
|
10
|
+
const edit_settings_1 = require("../../network/edit-settings");
|
|
11
|
+
const app_1 = require("../../store/app");
|
|
12
|
+
const utils_1 = require("../../store/app/utils");
|
|
13
|
+
const store_1 = require("../../store/integrations/store");
|
|
14
|
+
const getAppDependantSetters = (pkg) => {
|
|
15
|
+
const appStore = app_1.useAppStore.getState();
|
|
16
|
+
const integrations = store_1.useIntegrationsStore.getState();
|
|
17
|
+
return {
|
|
18
|
+
setAppContext: appStore.setAppContext(pkg.name),
|
|
19
|
+
addRoute: (route) => appStore.addRoute((0, utils_1.normalizeRoute)(route, pkg)),
|
|
20
|
+
addBoardView: (data) => appStore.addBoardView((0, utils_1.normalizeBoardView)(data, pkg)),
|
|
21
|
+
addSettingsView: (data) => appStore.addSettingsView((0, utils_1.normalizeSettingsView)(data, pkg)),
|
|
22
|
+
addSearchView: (data) => appStore.addSearchView((0, utils_1.normalizeSearchView)(data, pkg)),
|
|
23
|
+
addUtilityView: (data) => appStore.addUtilityView((0, utils_1.normalizeUtilityView)(data, pkg)),
|
|
24
|
+
addPrimaryAccessoryView: (data) => appStore.addPrimaryAccessoryView((0, utils_1.normalizePrimaryAccessoryView)(data, pkg)),
|
|
25
|
+
addSecondaryAccessoryView: (data) => appStore.addSecondaryAccessoryView((0, utils_1.normalizeSecondaryAccessoryView)(data, pkg)),
|
|
26
|
+
registerComponents: integrations.registerComponents(pkg.name),
|
|
27
|
+
/** @deprecated */
|
|
28
|
+
editSettings: (0, edit_settings_1.getEditSettingsForApp)(pkg.name)
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.getAppDependantSetters = getAppDependantSetters;
|
|
32
|
+
_a = app_1.useAppStore.getState(), exports.updatePrimaryBadge = _a.updatePrimaryBadge, exports.updateUtilityBadge = _a.updateUtilityBadge, exports.setRouteVisibility = _a.setRouteVisibility, exports.removeRoute = _a.removeRoute, exports.removeBoardView = _a.removeBoardView, exports.removeSettingsView = _a.removeSettingsView, exports.removeSearchView = _a.removeSearchView, exports.removeUtilityView = _a.removeUtilityView, exports.removePrimaryAccessoryView = _a.removePrimaryAccessoryView, exports.removeSecondaryAccessoryView = _a.removeSecondaryAccessoryView,
|
|
33
|
+
/**
|
|
34
|
+
* Add or update the translatable display and description labels for an app.
|
|
35
|
+
* These fields are the ones used in the UI.
|
|
36
|
+
* @param app - The app to update based on the name field
|
|
37
|
+
* @example
|
|
38
|
+
* upsertApp(\{
|
|
39
|
+
* name: 'carbonio-example-ui',
|
|
40
|
+
* display: t('label.app_name', 'Example')
|
|
41
|
+
* description: t('label.app_description', 'Example module')
|
|
42
|
+
* \});
|
|
43
|
+
*/
|
|
44
|
+
exports.upsertApp = _a.upsertApp;
|
|
45
|
+
_b = store_1.useIntegrationsStore.getState(), exports.registerFunctions = _b.registerFunctions, exports.removeFunctions = _b.removeFunctions, exports.registerActions = _b.registerActions, exports.removeActions = _b.removeActions, exports.removeComponents = _b.removeComponents;
|
|
46
|
+
//# sourceMappingURL=app-loader-setters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-loader-setters.js","sourceRoot":"","sources":["../../../src/boot/app/app-loader-setters.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,+DAAoE;AAEpE,yCAA8C;AAC9C,iDAQ+B;AAE/B,0DAAsE;AA6B/D,MAAM,sBAAsB,GAAG,CAAC,GAAmB,EAAuB,EAAE;IAClF,MAAM,QAAQ,GAAG,iBAAW,CAAC,QAAQ,EAAE,CAAC;IACxC,MAAM,YAAY,GAAG,4BAAoB,CAAC,QAAQ,EAAE,CAAC;IACrD,OAAO;QACN,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC;QAC/C,QAAQ,EAAE,CAAC,KAAkC,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAA,sBAAc,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC/F,YAAY,EAAE,CAAC,IAAwB,EAAE,EAAE,CAC1C,QAAQ,CAAC,YAAY,CAAC,IAAA,0BAAkB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACrD,eAAe,EAAE,CAAC,IAA2B,EAAE,EAAE,CAChD,QAAQ,CAAC,eAAe,CAAC,IAAA,6BAAqB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3D,aAAa,EAAE,CAAC,IAAyB,EAAE,EAAE,CAC5C,QAAQ,CAAC,aAAa,CAAC,IAAA,2BAAmB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACvD,cAAc,EAAE,CAAC,IAA0B,EAAE,EAAE,CAC9C,QAAQ,CAAC,cAAc,CAAC,IAAA,4BAAoB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACzD,uBAAuB,EAAE,CAAC,IAAmC,EAAE,EAAE,CAChE,QAAQ,CAAC,uBAAuB,CAAC,IAAA,qCAA6B,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3E,yBAAyB,EAAE,CAAC,IAAqC,EAAE,EAAE,CACpE,QAAQ,CAAC,yBAAyB,CAAC,IAAA,uCAA+B,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC/E,kBAAkB,EAAE,YAAY,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC;QAC7D,kBAAkB;QAClB,YAAY,EAAE,IAAA,qCAAqB,EAAC,GAAG,CAAC,IAAI,CAAC;KAC7C,CAAC;AACH,CAAC,CAAC;AAtBW,QAAA,sBAAsB,0BAsBjC;AAEW,KAuBT,iBAAW,CAAC,QAAQ,EAAE,EAtBzB,0BAAkB,0BAClB,0BAAkB,0BAClB,0BAAkB,0BAClB,mBAAW,mBACX,uBAAe,uBACf,0BAAkB,0BAClB,wBAAgB,wBAChB,yBAAiB,yBACjB,kCAA0B,kCAC1B,oCAA4B;AAC5B;;;;;;;;;;GAUG;AACH,iBAAS,gBACiB;AAEd,KAMT,4BAAoB,CAAC,QAAQ,EAAE,EALlC,yBAAiB,yBACjB,uBAAe,uBACf,uBAAe,uBACf,qBAAa,qBACb,wBAAgB,uBACmB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface MatomoTracker {
|
|
2
|
+
trackPageView(customTitle?: string): void;
|
|
3
|
+
trackEvent(category: string, action: string, name?: string, value?: number): void;
|
|
4
|
+
setCustomUrl(url: string): void;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
const Matomo: {
|
|
8
|
+
getTracker(trackerUrl: string, siteId: number): MatomoTracker;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function initMatomo(url: string): void;
|
|
12
|
+
export declare function getMatomoTracker(url: string, siteId: number): MatomoTracker;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMatomoTracker = exports.initMatomo = void 0;
|
|
4
|
+
function initMatomo(url) {
|
|
5
|
+
const matomoScriptId = 'matomo-script';
|
|
6
|
+
if (document.getElementById(matomoScriptId)) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const matomoScript = document.createElement('script');
|
|
10
|
+
const scriptElement = document.getElementsByTagName('script')[0];
|
|
11
|
+
matomoScript.type = 'text/javascript';
|
|
12
|
+
matomoScript.async = true;
|
|
13
|
+
matomoScript.src = `${url}matomo.js`;
|
|
14
|
+
matomoScript.id = matomoScriptId;
|
|
15
|
+
scriptElement.parentNode?.insertBefore(matomoScript, scriptElement);
|
|
16
|
+
}
|
|
17
|
+
exports.initMatomo = initMatomo;
|
|
18
|
+
function getMatomoTracker(url, siteId) {
|
|
19
|
+
return Matomo.getTracker(`${url}matomo.php`, siteId);
|
|
20
|
+
}
|
|
21
|
+
exports.getMatomoTracker = getMatomoTracker;
|
|
22
|
+
//# sourceMappingURL=matomo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matomo.js","sourceRoot":"","sources":["../../src/boot/matomo.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,UAAU,CAAC,GAAW;IACrC,MAAM,cAAc,GAAG,eAAe,CAAC;IAEvC,IAAI,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QAC7C,OAAO;IACR,CAAC;IAED,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACjE,YAAY,CAAC,IAAI,GAAG,iBAAiB,CAAC;IACtC,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,GAAG,GAAG,GAAG,GAAG,WAAW,CAAC;IACrC,YAAY,CAAC,EAAE,GAAG,cAAc,CAAC;IACjC,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AACrE,CAAC;AAdD,gCAcC;AAED,SAAgB,gBAAgB,CAAC,GAAW,EAAE,MAAc;IAC3D,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2024 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.ModuleI18nextProvider = void 0;
|
|
12
|
+
const react_1 = __importDefault(require("react"));
|
|
13
|
+
const react_i18next_1 = require("react-i18next");
|
|
14
|
+
const constants_1 = require("../constants");
|
|
15
|
+
const store_1 = require("../store/i18n/store");
|
|
16
|
+
const ModuleI18nextProvider = ({ pkg, children }) => {
|
|
17
|
+
const { instances, defaultI18n } = store_1.useI18nStore.getState();
|
|
18
|
+
const i18n = instances[pkg] ?? instances[constants_1.SHELL_APP_ID] ?? defaultI18n;
|
|
19
|
+
return react_1.default.createElement(react_i18next_1.I18nextProvider, { i18n: i18n }, children);
|
|
20
|
+
};
|
|
21
|
+
exports.ModuleI18nextProvider = ModuleI18nextProvider;
|
|
22
|
+
//# sourceMappingURL=module-i18next-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-i18next-provider.js","sourceRoot":"","sources":["../../src/boot/module-i18next-provider.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,kDAA0B;AAE1B,iDAAgD;AAEhD,4CAA4C;AAC5C,+CAAmD;AAM5C,MAAM,qBAAqB,GAAG,CAAC,EACrC,GAAG,EACH,QAAQ,EACoB,EAAqB,EAAE;IACnD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,oBAAY,CAAC,QAAQ,EAAE,CAAC;IAC3D,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,wBAAY,CAAC,IAAI,WAAW,CAAC;IAEtE,OAAO,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI,IAAG,QAAQ,CAAmB,CAAC;AAClE,CAAC,CAAC;AARW,QAAA,qBAAqB,yBAQhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Tracker {
|
|
2
|
+
private static readonly URL;
|
|
3
|
+
private matomoTracker;
|
|
4
|
+
private static isEnabled;
|
|
5
|
+
private readonly siteId;
|
|
6
|
+
constructor(siteId: number);
|
|
7
|
+
static enableTracker(isEnabled: boolean): void;
|
|
8
|
+
trackPageView(customTitle?: string): void;
|
|
9
|
+
trackEvent(category: string, action: string, name?: string, value?: number): void;
|
|
10
|
+
private getMatomoTrackerInstance;
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Tracker = void 0;
|
|
9
|
+
const matomo_1 = require("./matomo");
|
|
10
|
+
class Tracker {
|
|
11
|
+
static URL = 'https://analytics.zextras.tools/';
|
|
12
|
+
matomoTracker;
|
|
13
|
+
static isEnabled = false;
|
|
14
|
+
siteId;
|
|
15
|
+
constructor(siteId) {
|
|
16
|
+
this.siteId = siteId;
|
|
17
|
+
if (Tracker.isEnabled) {
|
|
18
|
+
this.matomoTracker = (0, matomo_1.getMatomoTracker)(Tracker.URL, siteId);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.matomoTracker = null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
static enableTracker(isEnabled) {
|
|
25
|
+
if (isEnabled) {
|
|
26
|
+
(0, matomo_1.initMatomo)(Tracker.URL);
|
|
27
|
+
}
|
|
28
|
+
Tracker.isEnabled = isEnabled;
|
|
29
|
+
}
|
|
30
|
+
trackPageView(customTitle) {
|
|
31
|
+
const tracker = this.getMatomoTrackerInstance();
|
|
32
|
+
tracker?.setCustomUrl(window.location.href);
|
|
33
|
+
tracker?.trackPageView(customTitle);
|
|
34
|
+
}
|
|
35
|
+
trackEvent(category, action, name, value) {
|
|
36
|
+
const tracker = this.getMatomoTrackerInstance();
|
|
37
|
+
tracker?.setCustomUrl(window.location.href);
|
|
38
|
+
tracker?.trackEvent(category, action, name, value);
|
|
39
|
+
}
|
|
40
|
+
getMatomoTrackerInstance() {
|
|
41
|
+
if (!Tracker.isEnabled) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
if (this.matomoTracker === null) {
|
|
45
|
+
try {
|
|
46
|
+
this.matomoTracker = (0, matomo_1.getMatomoTracker)(Tracker.URL, this.siteId);
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
// eslint-disable-next-line no-console
|
|
50
|
+
console.warn('Matomo is not initialized yet: ', e);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return this.matomoTracker;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.Tracker = Tracker;
|
|
57
|
+
//# sourceMappingURL=tracker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracker.js","sourceRoot":"","sources":["../../src/boot/tracker.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAA4E;AAE5E,MAAa,OAAO;IACX,MAAM,CAAU,GAAG,GAAG,kCAAkC,CAAC;IAEzD,aAAa,CAAuB;IAEpC,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC;IAEhB,MAAM,CAAS;IAEhC,YAAY,MAAc;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,GAAG,IAAA,yBAAgB,EAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC3B,CAAC;IACF,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,SAAkB;QAC7C,IAAI,SAAS,EAAE,CAAC;YACf,IAAA,mBAAU,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,aAAa,CAAC,WAAoB;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChD,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IAEM,UAAU,CAAC,QAAgB,EAAE,MAAc,EAAE,IAAa,EAAE,KAAc;QAChF,MAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChD,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,EAAE,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;IAEO,wBAAwB;QAC/B,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACb,CAAC;QACD,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YACjC,IAAI,CAAC;gBACJ,IAAI,CAAC,aAAa,GAAG,IAAA,yBAAgB,EAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACjE,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACZ,sCAAsC;gBACtC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAC;YACpD,CAAC;QACF,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC3B,CAAC;;AAlDF,0BAmDC"}
|