@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,42 @@
|
|
|
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.useActionFactory = exports.useAction = exports.useActionsFactory = exports.useActions = exports.useIntegratedComponent = exports.useIntegratedFunction = void 0;
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const store_1 = require("./store");
|
|
11
|
+
const utils_1 = require("./utils");
|
|
12
|
+
const useIntegratedFunction = (id) => {
|
|
13
|
+
const integration = (0, store_1.useIntegrationsStore)((s) => s.functions?.[id]);
|
|
14
|
+
return (0, utils_1.buildIntegrationFunction)(integration);
|
|
15
|
+
};
|
|
16
|
+
exports.useIntegratedFunction = useIntegratedFunction;
|
|
17
|
+
const useIntegratedComponent = (id) => {
|
|
18
|
+
const integration = (0, store_1.useIntegrationsStore)((s) => s.components?.[id]);
|
|
19
|
+
return (0, react_1.useMemo)(() => (0, utils_1.buildIntegrationComponent)(integration), [integration]);
|
|
20
|
+
};
|
|
21
|
+
exports.useIntegratedComponent = useIntegratedComponent;
|
|
22
|
+
const useActions = (target, type) => {
|
|
23
|
+
const factories = (0, store_1.useIntegrationsStore)((s) => s.actions[type]);
|
|
24
|
+
return (0, react_1.useMemo)(() => (0, utils_1.buildIntegrationActions)(factories, target), [factories, target]);
|
|
25
|
+
};
|
|
26
|
+
exports.useActions = useActions;
|
|
27
|
+
const useActionsFactory = (type) => {
|
|
28
|
+
const factories = (0, store_1.useIntegrationsStore)((s) => s.actions[type]);
|
|
29
|
+
return (0, react_1.useCallback)((target) => (0, utils_1.buildIntegrationActions)(factories, target), [factories]);
|
|
30
|
+
};
|
|
31
|
+
exports.useActionsFactory = useActionsFactory;
|
|
32
|
+
const useAction = (type, id, target) => {
|
|
33
|
+
const factory = (0, store_1.useIntegrationsStore)((s) => s.actions[type][id]);
|
|
34
|
+
return (0, react_1.useMemo)(() => (0, utils_1.buildIntegrationAction)(factory, target), [factory, target]);
|
|
35
|
+
};
|
|
36
|
+
exports.useAction = useAction;
|
|
37
|
+
const useActionFactory = (type, id) => {
|
|
38
|
+
const factory = (0, store_1.useIntegrationsStore)((s) => s.actions[type][id]);
|
|
39
|
+
return [factory, !!factory];
|
|
40
|
+
};
|
|
41
|
+
exports.useActionFactory = useActionFactory;
|
|
42
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/integrations/hooks.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,iCAA6C;AAE7C,mCAA+C;AAC/C,mCAKiB;AAIV,MAAM,qBAAqB,GAAG,CAAC,EAAU,EAA0B,EAAE;IAC3E,MAAM,WAAW,GAAG,IAAA,4BAAoB,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnE,OAAO,IAAA,gCAAwB,EAAC,WAAW,CAAC,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,q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CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjE,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,8BAAsB,EAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB;AAEK,MAAM,gBAAgB,GAAG,CAC/B,IAAY,EACZ,EAAU,EACgC,EAAE;IAC5C,MAAM,OAAO,GAAG,IAAA,4BAAoB,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ActionFactory } from '../../types/integrations';
|
|
3
|
+
import type { AnyFunction } from '../../utils/typeUtils';
|
|
4
|
+
type Action<TTarget = unknown> = ActionFactory<TTarget>;
|
|
5
|
+
type Component<TProps extends Record<string, unknown> = Record<string, unknown>> = ComponentType<TProps>;
|
|
6
|
+
export type IntegrationsState = {
|
|
7
|
+
actions: {
|
|
8
|
+
[type: string]: {
|
|
9
|
+
[id: string]: Action;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
components: {
|
|
13
|
+
[id: string]: {
|
|
14
|
+
app: string;
|
|
15
|
+
Item: Component;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
functions: {
|
|
19
|
+
[id: string]: AnyFunction;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type IntegrationActions = {
|
|
23
|
+
removeActions: (...ids: Array<string>) => void;
|
|
24
|
+
registerActions: (...items: Array<{
|
|
25
|
+
id: string;
|
|
26
|
+
action: Action;
|
|
27
|
+
type: string;
|
|
28
|
+
}>) => void;
|
|
29
|
+
removeComponents: (...ids: Array<string>) => void;
|
|
30
|
+
registerComponents: (app: string) => <TProps extends Record<string, unknown>>(...items: Array<{
|
|
31
|
+
id: string;
|
|
32
|
+
component: Component<TProps>;
|
|
33
|
+
}>) => void;
|
|
34
|
+
removeFunctions: (...ids: Array<string>) => void;
|
|
35
|
+
registerFunctions: (...items: Array<{
|
|
36
|
+
id: string;
|
|
37
|
+
fn: AnyFunction;
|
|
38
|
+
}>) => void;
|
|
39
|
+
};
|
|
40
|
+
export declare const useIntegrationsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IntegrationsState & IntegrationActions>>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.useIntegrationsStore = void 0;
|
|
12
|
+
const immer_1 = require("immer");
|
|
13
|
+
const lodash_1 = require("lodash");
|
|
14
|
+
const zustand_1 = require("zustand");
|
|
15
|
+
const composer_1 = __importDefault(require("./composer"));
|
|
16
|
+
const constants_1 = require("../../constants");
|
|
17
|
+
const initialState = {
|
|
18
|
+
actions: {},
|
|
19
|
+
components: {
|
|
20
|
+
composer: {
|
|
21
|
+
Item: composer_1.default,
|
|
22
|
+
app: constants_1.SHELL_APP_ID
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
functions: {}
|
|
26
|
+
};
|
|
27
|
+
// extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
|
|
28
|
+
exports.useIntegrationsStore = (0, zustand_1.create)()((set) => ({
|
|
29
|
+
...initialState,
|
|
30
|
+
registerActions: (...items) => set((0, immer_1.produce)((state) => {
|
|
31
|
+
(0, lodash_1.forEach)(items, ({ id, action, type }) => {
|
|
32
|
+
if (!state.actions[type])
|
|
33
|
+
state.actions[type] = {};
|
|
34
|
+
state.actions[type][id] = action;
|
|
35
|
+
});
|
|
36
|
+
})),
|
|
37
|
+
registerComponents: (app) => (...items) => set((0, immer_1.produce)((state) => {
|
|
38
|
+
(0, lodash_1.forEach)(items, ({ id, component }) => {
|
|
39
|
+
state.components[id] = { app, Item: component };
|
|
40
|
+
});
|
|
41
|
+
})),
|
|
42
|
+
registerFunctions: (...items) => set((0, immer_1.produce)((state) => {
|
|
43
|
+
(0, lodash_1.forEach)(items, ({ id, fn }) => {
|
|
44
|
+
state.functions[id] = fn;
|
|
45
|
+
});
|
|
46
|
+
})),
|
|
47
|
+
removeActions: (...ids) => set((0, immer_1.produce)((state) => {
|
|
48
|
+
(0, lodash_1.forEach)(state.actions, (actionTypeMap, type) => {
|
|
49
|
+
(0, lodash_1.forEach)(actionTypeMap, (actionFactory, actionFactoryId) => {
|
|
50
|
+
if ((0, lodash_1.includes)(ids, actionFactoryId)) {
|
|
51
|
+
delete state.actions[type][actionFactoryId];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
})),
|
|
56
|
+
removeComponents: (...ids) => set((s) => ({
|
|
57
|
+
...s,
|
|
58
|
+
components: (0, lodash_1.omit)(s.components, ids)
|
|
59
|
+
})),
|
|
60
|
+
removeFunctions: (...ids) => set((s) => ({
|
|
61
|
+
...s,
|
|
62
|
+
functions: (0, lodash_1.omit)(s.functions, ids)
|
|
63
|
+
}))
|
|
64
|
+
}));
|
|
65
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/integ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ACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IntegrationsState } from './store';
|
|
3
|
+
import type { Action } from '../../types/integrations';
|
|
4
|
+
import type { AnyFunction } from '../../utils/typeUtils';
|
|
5
|
+
export declare function buildIntegrationComponent(integration: IntegrationsState['components'][string]): [React.FunctionComponent<Record<string, unknown>>, boolean];
|
|
6
|
+
export declare function buildIntegrationFunction(integration: IntegrationsState['functions'][string]): [AnyFunction, boolean];
|
|
7
|
+
export declare function buildIntegrationActions(integration: IntegrationsState['actions'][string], target: unknown): Array<Action>;
|
|
8
|
+
export declare function buildIntegrationAction(integration: IntegrationsState['actions'][string][string], target: unknown): [Action | undefined, boolean];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.buildIntegrationAction = exports.buildIntegrationActions = exports.buildIntegrationFunction = exports.buildIntegrationComponent = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
|
|
9
|
+
*
|
|
10
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
11
|
+
*/
|
|
12
|
+
const react_1 = __importDefault(require("react"));
|
|
13
|
+
const lodash_1 = require("lodash");
|
|
14
|
+
const app_context_provider_1 = __importDefault(require("../../boot/app/app-context-provider"));
|
|
15
|
+
function buildIntegrationComponent(integration) {
|
|
16
|
+
if (integration) {
|
|
17
|
+
const IntegrationComponent = (props) => (react_1.default.createElement(app_context_provider_1.default, { pkg: integration.app },
|
|
18
|
+
react_1.default.createElement(integration.Item, { ...props })));
|
|
19
|
+
return [IntegrationComponent, true];
|
|
20
|
+
}
|
|
21
|
+
return [() => null, false];
|
|
22
|
+
}
|
|
23
|
+
exports.buildIntegrationComponent = buildIntegrationComponent;
|
|
24
|
+
function buildIntegrationFunction(integration) {
|
|
25
|
+
return integration ? [integration, true] : [() => undefined, false];
|
|
26
|
+
}
|
|
27
|
+
exports.buildIntegrationFunction = buildIntegrationFunction;
|
|
28
|
+
function buildIntegrationActions(integration, target) {
|
|
29
|
+
return (0, lodash_1.compact)((0, lodash_1.map)(integration, (f) => {
|
|
30
|
+
try {
|
|
31
|
+
return f(target);
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
// eslint-disable-next-line no-console
|
|
35
|
+
console.error(e);
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
exports.buildIntegrationActions = buildIntegrationActions;
|
|
41
|
+
function buildIntegrationAction(integration, target) {
|
|
42
|
+
try {
|
|
43
|
+
return [integration?.(target), true];
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
return [undefined, false];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.buildIntegrationAction = buildIntegrationAction;
|
|
50
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/store/integrations/utils.tsx"],"names":[],"mappings":";;;;;;AAAA;;;;GAIG;AACH,kDAA0B;AAE1B,mCAAsC;AAGtC,+FAAqE;AAIrE,SAAgB,yBAAyB,CACxC,WAAoD;IAEpD,IAAI,WAAW,EAAE,CAAC;QACjB,MAAM,oBAAoB,GAAG,CAAC,KAA8B,EAAqB,EAAE,CAAC,CACnF,8BAAC,8BAAkB,IAAC,GAAG,EAAE,WAAW,CAAC,GAAG;YACvC,8BAAC,WAAW,CAAC,IAAI,OAAK,KAAK,GAAI,CACX,CACrB,CAAC;QACF,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,CAAC,GAAS,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC;AAZD,8DAYC;AAED,SAAgB,wBAAwB,CACvC,WAAmD;IAEnD,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAS,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC3E,CAAC;AAJD,4DAIC;AAED,SAAgB,uBAAuB,CACtC,WAAiD,EACjD,MAAe;IAEf,OAAO,IAAA,gBAAO,EACb,IAAA,YAAG,EAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;QACtB,IAAI,CAAC;YACJ,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,sCAAsC;YACtC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACjB,OAAO,SAAS,CAAC;QAClB,CAAC;IACF,CAAC,CAAC,CACF,CAAC;AACH,CAAC;AAfD,0DAeC;AAED,SAAgB,sBAAsB,CACrC,WAAyD,EACzD,MAAe;IAEf,IAAI,CAAC;QACJ,OAAO,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC;AATD,wDASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClientTitle = exports.getFavicon = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* SPDX-FileCopyrightText: 2023 Zextras <https://www.zextras.com>
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
8
|
+
*/
|
|
9
|
+
const store_1 = require("./store");
|
|
10
|
+
function getFavicon() {
|
|
11
|
+
return store_1.useLoginConfigStore.getState().carbonioWebUiFavicon;
|
|
12
|
+
}
|
|
13
|
+
exports.getFavicon = getFavicon;
|
|
14
|
+
function getClientTitle() {
|
|
15
|
+
return store_1.useLoginConfigStore.getState().carbonioWebUiTitle;
|
|
16
|
+
}
|
|
17
|
+
exports.getClientTitle = getClientTitle;
|
|
18
|
+
//# sourceMappingURL=getters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getters.js","sourceRoot":"","sources":["../../../src/store/login/getters.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,mCAA8C;AAE9C,SAAgB,UAAU;IACzB,OAAO,2BAAmB,CAAC,QAAQ,EAAE,CAAC,oBAAoB,CAAC;AAC5D,CAAC;AAFD,gCAEC;AAED,SAAgB,cAAc;IAC7B,OAAO,2BAAmB,CAAC,QAAQ,EAAE,CAAC,kBAAkB,CAAC;AAC1D,CAAC;AAFD,wCAEC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type LoginConfigStore = {
|
|
2
|
+
carbonioWebUiDarkMode?: boolean;
|
|
3
|
+
carbonioWebUiAppLogo?: string;
|
|
4
|
+
carbonioWebUiDarkAppLogo?: string;
|
|
5
|
+
carbonioWebUiTitle: string;
|
|
6
|
+
carbonioWebUiFavicon: string;
|
|
7
|
+
carbonioWebUiPrimaryColor?: string;
|
|
8
|
+
carbonioWebUiDarkPrimaryColor?: string;
|
|
9
|
+
carbonioWebUiLogoutURL?: string;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const useLoginConfigStore: import("zustand").UseBoundStore<import("zustand").StoreApi<LoginConfigStore>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useLoginConfigStore = void 0;
|
|
9
|
+
const zustand_1 = require("zustand");
|
|
10
|
+
// extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
|
|
11
|
+
exports.useLoginConfigStore = (0, zustand_1.create)()(() => ({
|
|
12
|
+
loaded: false,
|
|
13
|
+
// setup defaults for fields which does not depend on dark mode
|
|
14
|
+
carbonioWebUiTitle: 'Carbonio Client',
|
|
15
|
+
// default to png because this icon is used also in notification, and svg are not supported there
|
|
16
|
+
carbonioWebUiFavicon: `${BASE_PATH}favicon.png`
|
|
17
|
+
}));
|
|
18
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/login/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAiC;AAcjC,mHAAmH;AACtG,QAAA,mBAAmB,GAAG,IAAA,gBAAM,GAAoB,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,MAAM,EAAE,KAAK;IACb,+DAA+D;IAC/D,kBAAkB,EAAE,iBAAiB;IACrC,iGAAiG;IACjG,oBAAoB,EAAE,GAAG,SAAS,aAAa;CAC/C,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRefresh = exports.useNotify = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
8
|
+
*/
|
|
9
|
+
const store_1 = require("./store");
|
|
10
|
+
const useNotify = () => (0, store_1.useNetworkStore)((s) => s.notify ?? []);
|
|
11
|
+
exports.useNotify = useNotify;
|
|
12
|
+
const useRefresh = () => (0, store_1.useNetworkStore)((s) => s.refresh ?? {});
|
|
13
|
+
exports.useRefresh = useRefresh;
|
|
14
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/network/hooks.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,mCAA0C;AAGnC,MAAM,SAAS,GAAG,GAAiB,EAAE,CAAC,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AAAvE,QAAA,SAAS,aAA8D;AAC7E,MAAM,UAAU,GAAG,GAAgB,EAAE,CAAC,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;AAAxE,QAAA,UAAU,cAA8D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./store"), exports);
|
|
23
|
+
__exportStar(require("./hooks"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.useNetworkStore = void 0;
|
|
9
|
+
const zustand_1 = require("zustand");
|
|
10
|
+
// extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
|
|
11
|
+
exports.useNetworkStore = (0, zustand_1.create)()(() => ({
|
|
12
|
+
pollingInterval: 30000,
|
|
13
|
+
seq: 0
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/network/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAiC;AAIjC,mHAAmH;AACtG,QAAA,eAAe,GAAG,IAAA,gBAAM,GAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,eAAe,EAAE,KAAK;IACtB,GAAG,EAAE,CAAC;CACN,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AccountSettings } from '../../types/account';
|
|
2
|
+
import type { RawSoapResponse, SoapContext } from '../../types/network';
|
|
3
|
+
export declare const parsePollingInterval: (settings: AccountSettings) => number;
|
|
4
|
+
/**
|
|
5
|
+
* Return the polling interval for the next NoOp request.
|
|
6
|
+
* The interval length depends on the user settings, but it can be
|
|
7
|
+
* overridden by the server response/errors
|
|
8
|
+
* @param res
|
|
9
|
+
*/
|
|
10
|
+
export declare const getPollingInterval: (res: RawSoapResponse<{
|
|
11
|
+
waitDisallowed?: number;
|
|
12
|
+
}>) => number;
|
|
13
|
+
export declare const handleSync: ({ refresh, notify }: SoapContext) => Promise<void>;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.handleSync = exports.getPollingInterval = exports.parsePollingInterval = void 0;
|
|
9
|
+
const lodash_1 = require("lodash");
|
|
10
|
+
const store_1 = require("./store");
|
|
11
|
+
const workers_1 = require("../../workers");
|
|
12
|
+
const account_1 = require("../account");
|
|
13
|
+
const folder_1 = require("../folder");
|
|
14
|
+
const tags_1 = require("../tags");
|
|
15
|
+
/**
|
|
16
|
+
* Polling interval to use if the long polling delay
|
|
17
|
+
* is not allowed for the user
|
|
18
|
+
*/
|
|
19
|
+
const POLLING_NOWAIT_INTERVAL = 10000;
|
|
20
|
+
/**
|
|
21
|
+
* Polling interval to use if a previous request failed
|
|
22
|
+
* with a 500 error
|
|
23
|
+
*/
|
|
24
|
+
const POLLING_RETRY_INTERVAL = 60000;
|
|
25
|
+
const parsePollingInterval = (settings) => {
|
|
26
|
+
const pollingPref = settings.prefs?.zimbraPrefMailPollingInterval ?? '';
|
|
27
|
+
if (pollingPref === '500') {
|
|
28
|
+
return 500;
|
|
29
|
+
}
|
|
30
|
+
const pollingValue = parseInt(pollingPref, 10);
|
|
31
|
+
if (Number.isNaN(pollingValue)) {
|
|
32
|
+
return 30000;
|
|
33
|
+
}
|
|
34
|
+
if (pollingPref.includes('m')) {
|
|
35
|
+
return pollingValue * 60 * 1000;
|
|
36
|
+
}
|
|
37
|
+
return pollingValue * 1000;
|
|
38
|
+
};
|
|
39
|
+
exports.parsePollingInterval = parsePollingInterval;
|
|
40
|
+
/**
|
|
41
|
+
* Return the polling interval for the next NoOp request.
|
|
42
|
+
* The interval length depends on the user settings, but it can be
|
|
43
|
+
* overridden by the server response/errors
|
|
44
|
+
* @param res
|
|
45
|
+
*/
|
|
46
|
+
const getPollingInterval = (res) => {
|
|
47
|
+
const { pollingInterval } = store_1.useNetworkStore.getState();
|
|
48
|
+
const { settings } = account_1.useAccountStore.getState();
|
|
49
|
+
const waitDisallowed = res.Body && !('Fault' in res.Body) && res.Body.waitDisallowed;
|
|
50
|
+
const fault = res.Body && 'Fault' in res.Body && res.Body.Fault;
|
|
51
|
+
if (fault) {
|
|
52
|
+
return POLLING_RETRY_INTERVAL;
|
|
53
|
+
}
|
|
54
|
+
if (waitDisallowed) {
|
|
55
|
+
return POLLING_NOWAIT_INTERVAL;
|
|
56
|
+
}
|
|
57
|
+
if (!fault) {
|
|
58
|
+
return (0, exports.parsePollingInterval)(settings);
|
|
59
|
+
}
|
|
60
|
+
return pollingInterval;
|
|
61
|
+
};
|
|
62
|
+
exports.getPollingInterval = getPollingInterval;
|
|
63
|
+
const handleSync = ({ refresh, notify }) => new Promise((r) => {
|
|
64
|
+
const { seq } = store_1.useNetworkStore.getState();
|
|
65
|
+
if (refresh) {
|
|
66
|
+
workers_1.tagWorker.postMessage({
|
|
67
|
+
op: 'refresh',
|
|
68
|
+
tags: refresh.tags
|
|
69
|
+
});
|
|
70
|
+
workers_1.folderWorker.postMessage({
|
|
71
|
+
op: 'refresh',
|
|
72
|
+
folder: refresh.folder ?? []
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
if (notify?.length) {
|
|
76
|
+
(0, lodash_1.forEach)(notify, (item) => {
|
|
77
|
+
if (item.seq > seq) {
|
|
78
|
+
workers_1.tagWorker.postMessage({
|
|
79
|
+
op: 'notify',
|
|
80
|
+
notify: item,
|
|
81
|
+
state: tags_1.useTagStore.getState().tags
|
|
82
|
+
});
|
|
83
|
+
workers_1.folderWorker.postMessage({
|
|
84
|
+
op: 'notify',
|
|
85
|
+
notify: item,
|
|
86
|
+
state: folder_1.useFolderStore.getState().folders
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
r();
|
|
92
|
+
});
|
|
93
|
+
exports.handleSync = handleSync;
|
|
94
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/store/network/utils.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAAiC;AAEjC,mCAA0C;AAG1C,2CAAwD;AACxD,wCAA6C;AAC7C,sCAA2C;AAC3C,kCAAsC;AAEtC;;;GAGG;AACH,MAAM,uBAAuB,GAAG,KAAM,CAAC;AAEvC;;;GAGG;AACH,MAAM,sBAAsB,GAAG,KAAM,CAAC;AAE/B,MAAM,oBAAoB,GAAG,CAAC,QAAyB,EAAU,EAAE;IACzE,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,EAAE,6BAA6B,IAAI,EAAE,CAAC;IACxE,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC;IACZ,CAAC;IACD,MAAM,YAAY,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC/C,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC;IACd,CAAC;IACD,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,OAAO,YAAY,GAAG,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AAC,WAAW,CAAC;YACxB,EAAE,EAAE,SAAS;YACb,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;SAC5B,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,EAAE,MAAM,EAAE,CAAC;QACpB,IAAA,gBAAO,EAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACxB,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;gBACpB,mBAAS,CAAC,WAAW,CAAC;oBACrB,EAAE,EAAE,QAAQ;oBACZ,MAAM,EAAE,IAAI;oBACZ,KAAK,EAAE,kBAAW,CAAC,QAAQ,EAAE,CAAC,IAAI;iBAClC,CAAC,CAAC;gBACH,sBAAY,CAAC,WAAW,CAAC;oBACxB,EAAE,EAAE,QAAQ;oBACZ,MAAM,EAAE,IAAI;oBACZ,KAAK,EAAE,uBAAc,CAAC,QAAQ,EAAE,CAAC,OAAO;iBACxC,CAAC,CAAC;YACJ,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,CAAC,EAAE,CAAC;AACL,CAAC,CAAC,CAAC;AA9BS,QAAA,UAAU,cA8BnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.getTags = exports.useTags = void 0;
|
|
9
|
+
const lodash_1 = require("lodash");
|
|
10
|
+
const store_1 = require("./store");
|
|
11
|
+
const useTags = (ids) => (0, store_1.useTagStore)((s) => (ids ? (0, lodash_1.pick)(s.tags, ids) : s.tags));
|
|
12
|
+
exports.useTags = useTags;
|
|
13
|
+
const getTags = (ids) => ids ? (0, lodash_1.pick)(store_1.useTagStore.getState().tags, ids) : store_1.useTagStore.getState().tags;
|
|
14
|
+
exports.getTags = getTags;
|
|
15
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/tags/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAA8B;AAE9B,mCAAsC;AAG/B,MAAM,OAAO,GAAG,CAAC,GAA4B,EAAQ,EAAE,CAC7D,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,aAAI,EAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAD3C,QAAA,OAAO,WACoC;AACjD,MAAM,OAAO,GAAG,CAAC,GAA4B,EAAQ,EAAE,CAC7D,GAAG,CAAC,CAAC,CAAC,IAAA,aAAI,EAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC;AAD/D,QAAA,OAAO,WACwD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./hooks"), exports);
|
|
23
|
+
__exportStar(require("./store"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/tags/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.useTagStore = void 0;
|
|
9
|
+
const zustand_1 = require("zustand");
|
|
10
|
+
const workers_1 = require("../../workers");
|
|
11
|
+
// extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
|
|
12
|
+
exports.useTagStore = (0, zustand_1.create)()(() => ({
|
|
13
|
+
tags: {}
|
|
14
|
+
}));
|
|
15
|
+
workers_1.tagWorker.onmessage = ({ data }) => {
|
|
16
|
+
exports.useTagStore.setState(data);
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/tags/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAiC;AAGjC,2CAA0C;AAE1C,mHAAmH;AACtG,QAAA,WAAW,GAAG,IAAA,gBAAM,GAAY,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,IAAI,EAAE,EAAE;CACR,CAAC,CAAC,CAAC;AAEJ,mBAAS,CAAC,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,EAAQ,EAAE;IACxC,mBAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.43.1"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|