@commercetools-frontend/application-shell 24.7.2 → 24.8.1
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/dist/{application-entry-point-87fc1d21.esm.js → application-entry-point-10a5e1a5.esm.js} +1 -17
- package/dist/{application-entry-point-25a893ee.cjs.prod.js → application-entry-point-8c4b8e53.cjs.prod.js} +1 -5
- package/dist/{application-entry-point-66e4e42e.cjs.dev.js → application-entry-point-c87294b0.cjs.dev.js} +1 -18
- package/dist/commercetools-frontend-application-shell.cjs.d.ts +2 -2
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +5 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -4
- package/dist/commercetools-frontend-application-shell.esm.js +5 -4
- package/dist/{custom-view-dev-host-d0430873.cjs.dev.js → custom-view-dev-host-661cfc61.cjs.dev.js} +5 -8
- package/dist/{custom-view-dev-host-54e9ab34.esm.js → custom-view-dev-host-a7b97ce5.esm.js} +5 -7
- package/dist/{custom-view-dev-host-22fc5ded.cjs.prod.js → custom-view-dev-host-e05871d6.cjs.prod.js} +5 -5
- package/dist/declarations/src/components/application-page-title/index.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/index.d.ts +1 -1
- package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +1 -1
- package/dist/declarations/src/components/application-shell-provider/index.d.ts +1 -1
- package/dist/declarations/src/components/configure-intl-provider/index.d.ts +1 -1
- package/dist/declarations/src/components/custom-view-shell/index.d.ts +1 -1
- package/dist/declarations/src/components/error-apologizer/index.d.ts +0 -1
- package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +1 -1
- package/dist/declarations/src/components/fetch-user/index.d.ts +1 -1
- package/dist/declarations/src/components/inject-reducers/index.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-login/index.d.ts +0 -1
- package/dist/declarations/src/components/redirect-to-logout/index.d.ts +1 -2
- package/dist/declarations/src/components/route-catch-all/index.d.ts +0 -1
- package/dist/declarations/src/components/setup-flop-flip-provider/index.d.ts +1 -1
- package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts +1 -1
- package/dist/declarations/src/components/suspended-route/index.d.ts +3 -3
- package/dist/declarations/src/components/suspended-route/protected-route.d.ts +0 -1
- package/dist/declarations/src/components/suspended-route/suspended-protected-route.d.ts +1 -2
- package/dist/declarations/src/export-types.d.ts +1 -1
- package/dist/declarations/src/hooks/use-routes-creator/index.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +21 -21
- package/dist/declarations/src/ssr/index.d.ts +1 -1
- package/dist/declarations/src/test-utils/custom-views-utils.d.ts +1 -1
- package/dist/declarations/src/test-utils/index.d.ts +2 -2
- package/dist/declarations/src/test-utils/test-utils.d.ts +2 -2
- package/dist/declarations/src/utils/get-previous-project-key/index.d.ts +1 -1
- package/dist/declarations/src/utils/setup-global-error-listener/index.d.ts +1 -1
- package/dist/declarations-connectors/dist/commercetools-frontend-application-shell-connectors.cjs.d.ts +2 -0
- package/dist/declarations-connectors/src/components/application-context/application-context.d.ts +109 -0
- package/dist/declarations-connectors/src/components/application-context/index.d.ts +10 -0
- package/dist/declarations-connectors/src/components/application-context/normalizers.d.ts +48 -0
- package/dist/declarations-connectors/src/components/custom-view-context/custom-view-context.d.ts +19 -0
- package/dist/declarations-connectors/src/components/custom-view-context/index.d.ts +4 -0
- package/dist/declarations-connectors/src/components/project-extension-image-regex/index.d.ts +3 -0
- package/dist/declarations-connectors/src/components/project-extension-image-regex/project-extension-image-regex.d.ts +37 -0
- package/dist/declarations-connectors/src/configure-apollo.d.ts +7 -0
- package/dist/declarations-connectors/src/export-types.d.ts +21 -0
- package/dist/declarations-connectors/src/hooks/apollo-hooks/apollo-hooks.d.ts +12 -0
- package/dist/declarations-connectors/src/hooks/apollo-hooks/index.d.ts +1 -0
- package/dist/declarations-connectors/src/hooks/custom-views/use-custom-view-parent-data-refresher.d.ts +5 -0
- package/dist/declarations-connectors/src/index.d.ts +12 -0
- package/dist/declarations-connectors/src/types/generated/mc.d.ts +742 -0
- package/dist/declarations-connectors/src/utils/apollo-client-runtime-cache.d.ts +4 -0
- package/dist/declarations-connectors/src/utils/apollo-context.d.ts +16 -0
- package/dist/declarations-connectors/src/utils/get-correlation-id/get-correlation-id.d.ts +3 -0
- package/dist/declarations-connectors/src/utils/get-correlation-id/index.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/get-mc-api-url/index.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/http-client.d.ts +107 -0
- package/dist/declarations-connectors/src/utils/index.d.ts +7 -0
- package/dist/declarations-connectors/src/utils/logger.d.ts +10 -0
- package/dist/declarations-connectors/src/utils/oidc-storage.d.ts +12 -0
- package/dist/declarations-connectors/src/utils/select-project-key-from-url/index.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/select-project-key-from-url/select-project-key-from-url.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/select-team-id-from-storage/index.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/select-team-id-from-storage/select-team-id-from-storage.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/select-user-id/index.d.ts +1 -0
- package/dist/declarations-connectors/src/utils/select-user-id/select-user-id.d.ts +1 -0
- package/dist/declarations-connectors/src/version.d.ts +2 -0
- package/dist/{index-b76590b3.cjs.prod.js → index-245e2980.cjs.prod.js} +20 -15
- package/dist/{index-0459c0f4.cjs.dev.js → index-614accc4.cjs.dev.js} +20 -15
- package/dist/{index-63d718c6.cjs.dev.js → index-6e8b15ab.cjs.dev.js} +19 -142
- package/dist/{index-a5d2d010.esm.js → index-86039df7.esm.js} +19 -14
- package/dist/{index-f9551c06.esm.js → index-bfee32ba.esm.js} +19 -141
- package/dist/{index-82b627fb.cjs.prod.js → index-f38829e5.cjs.prod.js} +19 -66
- package/dist/{navbar-5b3ac835.cjs.dev.js → navbar-022383bd.cjs.dev.js} +3 -113
- package/dist/{navbar-2c26c0f7.esm.js → navbar-844d350d.esm.js} +3 -112
- package/dist/{navbar-654f1534.cjs.prod.js → navbar-acc2cd1b.cjs.prod.js} +3 -21
- package/dist/{oidc-callback-ca30194b.cjs.prod.js → oidc-callback-156358f9.cjs.prod.js} +6 -6
- package/dist/{oidc-callback-b1c0fb4b.cjs.dev.js → oidc-callback-168de462.cjs.dev.js} +6 -9
- package/dist/{oidc-callback-73295cb5.esm.js → oidc-callback-f2e3befb.esm.js} +6 -8
- package/dist/{project-container-b4fee0d6.cjs.dev.js → project-container-1261b8d4.cjs.dev.js} +10 -20
- package/dist/{project-container-3921c886.cjs.prod.js → project-container-8016faca.cjs.prod.js} +10 -11
- package/dist/{project-container-9c471740.esm.js → project-container-bebda614.esm.js} +10 -19
- package/dist/{project-expired-1a49823c.cjs.prod.js → project-expired-65da94bb.cjs.prod.js} +6 -5
- package/dist/{project-expired-fa42e755.esm.js → project-expired-b656ef29.esm.js} +6 -5
- package/dist/{project-expired-081090ed.cjs.dev.js → project-expired-b92bd5a9.cjs.dev.js} +6 -5
- package/dist/{project-not-found-871c2a08.esm.js → project-not-found-c2f814e3.esm.js} +6 -5
- package/dist/{project-not-found-927b2193.cjs.dev.js → project-not-found-c4b9a557.cjs.dev.js} +6 -5
- package/dist/{project-not-found-a8899d6a.cjs.prod.js → project-not-found-c80f0473.cjs.prod.js} +6 -5
- package/dist/{project-not-initialized-5a8ce431.cjs.dev.js → project-not-initialized-711d2a88.cjs.dev.js} +6 -5
- package/dist/{project-not-initialized-3fdfefab.esm.js → project-not-initialized-7bc049db.esm.js} +6 -5
- package/dist/{project-not-initialized-1a773477.cjs.prod.js → project-not-initialized-f6704f8c.cjs.prod.js} +6 -5
- package/dist/{project-suspended-93172b2c.cjs.dev.js → project-suspended-18e09af9.cjs.dev.js} +6 -5
- package/dist/{project-suspended-5fec80c9.cjs.prod.js → project-suspended-70f60ad4.cjs.prod.js} +6 -5
- package/dist/{project-suspended-696f83da.esm.js → project-suspended-b9a99fe3.esm.js} +6 -5
- package/dist/{quick-access-4022932f.cjs.prod.js → quick-access-483b0df9.cjs.prod.js} +16 -18
- package/dist/{quick-access-f19ebe03.cjs.dev.js → quick-access-a800a4a3.cjs.dev.js} +16 -37
- package/dist/{quick-access-d2009eae.esm.js → quick-access-d8ff6526.esm.js} +16 -36
- package/dist/{redirect-to-login-8c7575fb.cjs.prod.js → redirect-to-login-12f467b8.cjs.prod.js} +1 -2
- package/dist/{redirect-to-login-d9c20203.esm.js → redirect-to-login-2944c890.esm.js} +1 -2
- package/dist/{redirect-to-login-321190b7.cjs.dev.js → redirect-to-login-3bee13ba.cjs.dev.js} +1 -2
- package/dist/{redirect-to-logout-e67c2985.cjs.dev.js → redirect-to-logout-5a95dd2d.cjs.dev.js} +6 -5
- package/dist/{redirect-to-logout-2d42f7f1.cjs.prod.js → redirect-to-logout-7fda85d0.cjs.prod.js} +6 -5
- package/dist/{redirect-to-logout-64c4ab1e.esm.js → redirect-to-logout-aa221532.esm.js} +6 -5
- package/dist/{redirector-01f35da8.cjs.prod.js → redirector-0c72d0a4.cjs.prod.js} +0 -14
- package/dist/{redirector-98dfc5f0.cjs.dev.js → redirector-72ccfbc2.cjs.dev.js} +0 -14
- package/dist/{redirector-76670a54.esm.js → redirector-d856975f.esm.js} +0 -13
- package/dist/{requests-in-flight-loader-ac5fc71e.cjs.prod.js → requests-in-flight-loader-7f3ad61a.cjs.prod.js} +5 -4
- package/dist/{requests-in-flight-loader-02be8f44.esm.js → requests-in-flight-loader-a8044d17.esm.js} +5 -4
- package/dist/{requests-in-flight-loader-667bb113.cjs.dev.js → requests-in-flight-loader-f089e3c4.cjs.dev.js} +5 -4
- package/dist/{service-page-project-switcher-27c2172e.cjs.dev.js → service-page-project-switcher-651a2d2a.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-815e8660.esm.js → service-page-project-switcher-78608790.esm.js} +1 -1
- package/dist/{service-page-project-switcher-50e500af.cjs.prod.js → service-page-project-switcher-f24ba376.cjs.prod.js} +1 -1
- package/dist/{user-settings-menu-03a69aba.cjs.dev.js → user-settings-menu-6113cdd3.cjs.dev.js} +0 -15
- package/dist/{user-settings-menu-54cc2ed0.cjs.prod.js → user-settings-menu-d75f4958.cjs.prod.js} +0 -5
- package/dist/{user-settings-menu-a3ae7c85.esm.js → user-settings-menu-f98bea89.esm.js} +0 -14
- package/package.json +50 -50
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.d.ts +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.d.ts +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +5 -12
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +5 -5
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +5 -11
- package/dist/commercetools-frontend-application-shell.cjs.d.ts.map +0 -1
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +0 -10
- package/dist/declarations/src/components/app-bar/index.d.ts +0 -1
- package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +0 -10
- package/dist/declarations/src/components/application-entry-point/index.d.ts +0 -1
- package/dist/declarations/src/components/application-loader/application-loader.d.ts +0 -8
- package/dist/declarations/src/components/application-loader/index.d.ts +0 -1
- package/dist/declarations/src/components/application-shell/global-styles.d.ts +0 -3
- package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +0 -25
- package/dist/declarations/src/components/application-shell-provider/use-coerced-environment-values.d.ts +0 -6
- package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +0 -13
- package/dist/declarations/src/components/authenticated/authenticated.d.ts +0 -16
- package/dist/declarations/src/components/authenticated/has-cached-authentication-state.d.ts +0 -2
- package/dist/declarations/src/components/authenticated/index.d.ts +0 -1
- package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +0 -12
- package/dist/declarations/src/components/authenticated/oidc-callback.async.d.ts +0 -6
- package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +0 -11
- package/dist/declarations/src/components/authenticated/types.d.ts +0 -6
- package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +0 -8
- package/dist/declarations/src/components/back-to-project/index.d.ts +0 -1
- package/dist/declarations/src/components/back-to-project/messages.d.ts +0 -7
- package/dist/declarations/src/components/custom-view-dev-host/custom-view-dev-host.d.ts +0 -11
- package/dist/declarations/src/components/custom-view-dev-host/index.d.ts +0 -6
- package/dist/declarations/src/components/custom-view-flop-flip-provider/custom-view-flop-flip-provider.d.ts +0 -10
- package/dist/declarations/src/components/custom-view-flop-flip-provider/index.d.ts +0 -1
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.styles.d.ts +0 -9
- package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +0 -15
- package/dist/declarations/src/components/custom-view-shell-authenticated/index.d.ts +0 -1
- package/dist/declarations/src/components/error-apologizer/error-apologizer.d.ts +0 -5
- package/dist/declarations/src/components/error-apologizer/messages.d.ts +0 -11
- package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +0 -20
- package/dist/declarations/src/components/error-boundary/index.d.ts +0 -1
- package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +0 -18
- package/dist/declarations/src/components/fetch-project/index.d.ts +0 -1
- package/dist/declarations/src/components/loading-placeholder/index.d.ts +0 -1
- package/dist/declarations/src/components/loading-placeholder/loading-placeholder.d.ts +0 -10
- package/dist/declarations/src/components/locale-switcher/index.d.ts +0 -1
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +0 -13
- package/dist/declarations/src/components/locale-switcher/messages.d.ts +0 -18
- package/dist/declarations/src/components/navbar/index.d.ts +0 -6
- package/dist/declarations/src/components/navbar/legacy-icons/box.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/cart.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/connected-square.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/gear.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/heart.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/list-with-search.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/paperclip.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/plugin.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/rocket.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/speedometer.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/star.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/tag-multi.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/tree-structure.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/user-filled.d.ts +0 -2
- package/dist/declarations/src/components/navbar/legacy-icons/world.d.ts +0 -2
- package/dist/declarations/src/components/navbar/main-navbar.styles.d.ts +0 -51
- package/dist/declarations/src/components/navbar/menu-items.d.ts +0 -107
- package/dist/declarations/src/components/navbar/menu-items.styles.d.ts +0 -52
- package/dist/declarations/src/components/navbar/messages.d.ts +0 -15
- package/dist/declarations/src/components/navbar/navbar-skeleton.d.ts +0 -6
- package/dist/declarations/src/components/navbar/navbar-skeleton.styles.d.ts +0 -43
- package/dist/declarations/src/components/navbar/navbar.d.ts +0 -51
- package/dist/declarations/src/components/navbar/non-nullable.d.ts +0 -1
- package/dist/declarations/src/components/navbar/shared.styles.d.ts +0 -18
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +0 -25
- package/dist/declarations/src/components/project-container/index.d.ts +0 -59
- package/dist/declarations/src/components/project-container/messages.d.ts +0 -7
- package/dist/declarations/src/components/project-container/project-container.d.ts +0 -15
- package/dist/declarations/src/components/project-data-locale/index.d.ts +0 -1
- package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +0 -14
- package/dist/declarations/src/components/project-expired/index.d.ts +0 -6
- package/dist/declarations/src/components/project-expired/messages.d.ts +0 -11
- package/dist/declarations/src/components/project-expired/project-expired.d.ts +0 -5
- package/dist/declarations/src/components/project-not-found/index.d.ts +0 -6
- package/dist/declarations/src/components/project-not-found/messages.d.ts +0 -15
- package/dist/declarations/src/components/project-not-found/project-not-found.d.ts +0 -5
- package/dist/declarations/src/components/project-not-initialized/index.d.ts +0 -6
- package/dist/declarations/src/components/project-not-initialized/messages.d.ts +0 -11
- package/dist/declarations/src/components/project-not-initialized/project-not-initialized.d.ts +0 -5
- package/dist/declarations/src/components/project-suspended/index.d.ts +0 -8
- package/dist/declarations/src/components/project-suspended/messages.d.ts +0 -15
- package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +0 -8
- package/dist/declarations/src/components/project-switcher/index.d.ts +0 -1
- package/dist/declarations/src/components/project-switcher/messages.d.ts +0 -28
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +0 -12
- package/dist/declarations/src/components/quick-access/butler/butler.d.ts +0 -14
- package/dist/declarations/src/components/quick-access/butler/index.d.ts +0 -1
- package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +0 -13
- package/dist/declarations/src/components/quick-access/butler-command/index.d.ts +0 -1
- package/dist/declarations/src/components/quick-access/butler-container/butler-container.d.ts +0 -6
- package/dist/declarations/src/components/quick-access/butler-container/index.d.ts +0 -1
- package/dist/declarations/src/components/quick-access/constants.d.ts +0 -24
- package/dist/declarations/src/components/quick-access/create-commands.d.ts +0 -13
- package/dist/declarations/src/components/quick-access/history-entries.d.ts +0 -3
- package/dist/declarations/src/components/quick-access/index.d.ts +0 -8
- package/dist/declarations/src/components/quick-access/messages.d.ts +0 -247
- package/dist/declarations/src/components/quick-access/pim-indexer-states.d.ts +0 -6
- package/dist/declarations/src/components/quick-access/quick-access.d.ts +0 -12
- package/dist/declarations/src/components/quick-access/sub-commands.d.ts +0 -17
- package/dist/declarations/src/components/quick-access/types.d.ts +0 -31
- package/dist/declarations/src/components/quick-access/utils.d.ts +0 -5
- package/dist/declarations/src/components/redirect-to-login/redirect-to-login.d.ts +0 -5
- package/dist/declarations/src/components/redirect-to-logout/redirect-to-logout.d.ts +0 -6
- package/dist/declarations/src/components/redirect-to-project-create/index.d.ts +0 -6
- package/dist/declarations/src/components/redirect-to-project-create/redirect-to-project-create.d.ts +0 -5
- package/dist/declarations/src/components/redirector/index.d.ts +0 -1
- package/dist/declarations/src/components/redirector/redirector.d.ts +0 -23
- package/dist/declarations/src/components/requests-in-flight-loader/constants.d.ts +0 -1
- package/dist/declarations/src/components/requests-in-flight-loader/index.d.ts +0 -7
- package/dist/declarations/src/components/requests-in-flight-loader/messages.d.ts +0 -8
- package/dist/declarations/src/components/requests-in-flight-loader/reducer.d.ts +0 -4
- package/dist/declarations/src/components/requests-in-flight-loader/requests-in-flight-loader.d.ts +0 -6
- package/dist/declarations/src/components/requests-in-flight-loader/types.d.ts +0 -9
- package/dist/declarations/src/components/route-catch-all/route-catch-all.d.ts +0 -2
- package/dist/declarations/src/components/service-page-project-switcher/index.d.ts +0 -1
- package/dist/declarations/src/components/service-page-project-switcher/service-page-project-switcher.d.ts +0 -5
- package/dist/declarations/src/components/theme-switcher/index.d.ts +0 -1
- package/dist/declarations/src/components/theme-switcher/theme-switcher.d.ts +0 -2
- package/dist/declarations/src/components/user-settings-menu/index.d.ts +0 -12
- package/dist/declarations/src/components/user-settings-menu/messages.d.ts +0 -33
- package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +0 -20
- package/dist/declarations/src/constants.d.ts +0 -42
- package/dist/declarations/src/hooks/use-applications-menu/index.d.ts +0 -1
- package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +0 -9
- package/dist/declarations/src/hooks/use-is-served-by-proxy/index.d.ts +0 -1
- package/dist/declarations/src/hooks/use-is-served-by-proxy/use-is-served-by-proxy.d.ts +0 -2
- package/dist/declarations/src/middleware/hide-notifications.d.ts +0 -3
- package/dist/declarations/src/middleware/logger.d.ts +0 -3
- package/dist/declarations/src/types/generated/ctp.d.ts +0 -14279
- package/dist/declarations/src/types/generated/proxy.d.ts +0 -154
- package/dist/declarations/src/utils/get-mc-api-url/index.d.ts +0 -1
- package/dist/declarations/src/utils/get-mc-origin/get-mc-origin.d.ts +0 -18
- package/dist/declarations/src/utils/get-mc-origin/index.d.ts +0 -1
- package/dist/declarations/src/utils/index.d.ts +0 -3
- package/dist/declarations/src/utils/location/index.d.ts +0 -1
- package/dist/declarations/src/utils/location/location.d.ts +0 -5
- package/dist/declarations/src/utils/select-project-key-from-local-storage/index.d.ts +0 -1
- package/dist/declarations/src/utils/select-project-key-from-local-storage/select-project-key-from-local-storage.d.ts +0 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.d.ts.map +0 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.d.ts.map +0 -1
- /package/dist/{declarations → declarations-connectors}/src/types/generated/settings.d.ts +0 -0
- /package/dist/{declarations → declarations-connectors}/src/utils/get-mc-api-url/get-mc-api-url.d.ts +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type JSX, type ReactNode } from 'react';
|
|
2
|
-
import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
|
|
3
|
-
import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
|
|
4
|
-
type TProjectContainerProps = {
|
|
5
|
-
user: TFetchLoggedInUserQuery['user'];
|
|
6
|
-
environment: TProviderProps<{}>['environment'];
|
|
7
|
-
disableRoutePermissionCheck?: boolean;
|
|
8
|
-
render?: () => JSX.Element;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare const ProjectContainer: {
|
|
12
|
-
(props: TProjectContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
export default ProjectContainer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './project-data-locale';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type RenderFnArgs = {
|
|
3
|
-
locale: string;
|
|
4
|
-
setProjectDataLocale: (locale: string) => void;
|
|
5
|
-
};
|
|
6
|
-
type Props = {
|
|
7
|
-
locales: string[];
|
|
8
|
-
children: (args: RenderFnArgs) => ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const ProjectDataLocale: {
|
|
11
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export default ProjectDataLocale;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const ProjectSuspended: import("react").LazyExoticComponent<{
|
|
3
|
-
(props: {
|
|
4
|
-
isTemporary?: boolean | undefined;
|
|
5
|
-
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
}>;
|
|
8
|
-
export default ProjectSuspended;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
defaultSuspensionMessage: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
temporaryMaintenanceSuspensionMessage: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
paragraph1: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './project-switcher';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
projectsLabel: {
|
|
3
|
-
id: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
};
|
|
7
|
-
searchPlaceholder: {
|
|
8
|
-
id: string;
|
|
9
|
-
description: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
|
-
};
|
|
12
|
-
noResults: {
|
|
13
|
-
id: string;
|
|
14
|
-
description: string;
|
|
15
|
-
defaultMessage: string;
|
|
16
|
-
};
|
|
17
|
-
suspended: {
|
|
18
|
-
id: string;
|
|
19
|
-
description: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
expired: {
|
|
23
|
-
id: string;
|
|
24
|
-
description: string;
|
|
25
|
-
defaultMessage: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { OptionProps, ValueContainerProps } from 'react-select';
|
|
2
|
-
import { TOption } from '@commercetools-uikit/select-input';
|
|
3
|
-
type Props = {
|
|
4
|
-
projectKey?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const ValueContainer: ({ children, ...restProps }: ValueContainerProps<TOption>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const ProjectSwitcherOption: (props: OptionProps<TOption>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const ProjectSwitcher: {
|
|
9
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export default ProjectSwitcher;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Command, SearchText, HistoryEntry } from '../types';
|
|
2
|
-
type Props = {
|
|
3
|
-
historyEntries: HistoryEntry[];
|
|
4
|
-
onHistoryEntriesChange: (historyEntries: HistoryEntry[]) => void;
|
|
5
|
-
search: (searchText: SearchText) => Promise<Command[]>;
|
|
6
|
-
getNextCommands: (command: Command) => Promise<Command[]>;
|
|
7
|
-
executeCommand: (command: Command, meta: {
|
|
8
|
-
openInNewTab: boolean;
|
|
9
|
-
}) => void;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
classNameShakeAnimation: string;
|
|
12
|
-
};
|
|
13
|
-
declare const ButlerWithAnimation: (props: Omit<Props, 'classNameShakeAnimation'>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default ButlerWithAnimation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './butler';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MouseEventHandler } from 'react';
|
|
2
|
-
import type { Command } from '../types';
|
|
3
|
-
type Props = {
|
|
4
|
-
command: Command;
|
|
5
|
-
isSelected?: boolean;
|
|
6
|
-
onClick: MouseEventHandler<HTMLDivElement>;
|
|
7
|
-
onMouseEnter: MouseEventHandler<HTMLDivElement>;
|
|
8
|
-
};
|
|
9
|
-
declare const ButlerCommand: {
|
|
10
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
export default ButlerCommand;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './butler-command';
|
package/dist/declarations/src/components/quick-access/butler-container/butler-container.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const ButlerContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export default ButlerContainer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './butler-container';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const permissions: {
|
|
2
|
-
readonly ViewOrders: "ViewOrders";
|
|
3
|
-
readonly ManageOrders: "ManageOrders";
|
|
4
|
-
readonly ViewProducts: "ViewProducts";
|
|
5
|
-
readonly ManageProducts: "ManageProducts";
|
|
6
|
-
readonly ViewCategories: "ViewCategories";
|
|
7
|
-
readonly ManageCategories: "ManageCategories";
|
|
8
|
-
readonly ViewCustomers: "ViewCustomers";
|
|
9
|
-
readonly ManageCustomers: "ManageCustomers";
|
|
10
|
-
readonly ViewCustomerGroups: "ViewCustomerGroups";
|
|
11
|
-
readonly ManageCustomerGroups: "ManageCustomerGroups";
|
|
12
|
-
readonly ViewProductDiscounts: "ViewProductDiscounts";
|
|
13
|
-
readonly ManageProductDiscounts: "ManageProductDiscounts";
|
|
14
|
-
readonly ViewDiscountCodes: "ViewDiscountCodes";
|
|
15
|
-
readonly ManageDiscountCodes: "ManageDiscountCodes";
|
|
16
|
-
readonly ViewCartDiscounts: "ViewCartDiscounts";
|
|
17
|
-
readonly ManageCartDiscounts: "ManageCartDiscounts";
|
|
18
|
-
readonly ViewProjectSettings: "ViewProjectSettings";
|
|
19
|
-
readonly ManageProjectSettings: "ManageProjectSettings";
|
|
20
|
-
readonly ViewDeveloperSettings: "ViewDeveloperSettings";
|
|
21
|
-
readonly ManageDeveloperSettings: "ManageDeveloperSettings";
|
|
22
|
-
readonly ViewProductTypes: "ViewProductTypes";
|
|
23
|
-
readonly ManageProductTypes: "ManageProductTypes";
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
3
|
-
import type { Command } from './types';
|
|
4
|
-
type CreateCommandsOptions = {
|
|
5
|
-
intl: IntlShape;
|
|
6
|
-
applicationContext: TApplicationContext<{}>;
|
|
7
|
-
featureToggles: {
|
|
8
|
-
[key: string]: boolean;
|
|
9
|
-
};
|
|
10
|
-
changeProjectDataLocale?: (locale: string) => void;
|
|
11
|
-
};
|
|
12
|
-
declare const createCommands: ({ intl, applicationContext, featureToggles, changeProjectDataLocale, }: CreateCommandsOptions) => Command[];
|
|
13
|
-
export default createCommands;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type TQuickAccessProps = {
|
|
2
|
-
onChangeProjectDataLocale?: (locale: string) => void;
|
|
3
|
-
};
|
|
4
|
-
declare const QuickAccessTrigger: {
|
|
5
|
-
(props: TQuickAccessProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
export default QuickAccessTrigger;
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
inputPlacehoder: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
offline: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
noResults: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
setResourceLanguage: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
openDashboard: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
openProducts: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
};
|
|
26
|
-
openProductList: {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultMessage: string;
|
|
29
|
-
};
|
|
30
|
-
openProductVariantGeneral: {
|
|
31
|
-
id: string;
|
|
32
|
-
defaultMessage: string;
|
|
33
|
-
};
|
|
34
|
-
openProductVariantList: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
};
|
|
38
|
-
openProductVariantSearch: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
};
|
|
42
|
-
openModifiedProducts: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
};
|
|
46
|
-
openPimSearch: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
};
|
|
50
|
-
openAddProducts: {
|
|
51
|
-
id: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
openCategories: {
|
|
55
|
-
id: string;
|
|
56
|
-
defaultMessage: string;
|
|
57
|
-
};
|
|
58
|
-
openCategoriesList: {
|
|
59
|
-
id: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
};
|
|
62
|
-
openCategoriesSearch: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
};
|
|
66
|
-
openAddCategory: {
|
|
67
|
-
id: string;
|
|
68
|
-
defaultMessage: string;
|
|
69
|
-
};
|
|
70
|
-
openCustomers: {
|
|
71
|
-
id: string;
|
|
72
|
-
defaultMessage: string;
|
|
73
|
-
};
|
|
74
|
-
openCustomersList: {
|
|
75
|
-
id: string;
|
|
76
|
-
defaultMessage: string;
|
|
77
|
-
};
|
|
78
|
-
openAddCustomer: {
|
|
79
|
-
id: string;
|
|
80
|
-
defaultMessage: string;
|
|
81
|
-
};
|
|
82
|
-
openCustomerGroupsList: {
|
|
83
|
-
id: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
};
|
|
86
|
-
openAddCustomerGroup: {
|
|
87
|
-
id: string;
|
|
88
|
-
defaultMessage: string;
|
|
89
|
-
};
|
|
90
|
-
openOrders: {
|
|
91
|
-
id: string;
|
|
92
|
-
defaultMessage: string;
|
|
93
|
-
};
|
|
94
|
-
openOrdersList: {
|
|
95
|
-
id: string;
|
|
96
|
-
defaultMessage: string;
|
|
97
|
-
};
|
|
98
|
-
openAddOrder: {
|
|
99
|
-
id: string;
|
|
100
|
-
defaultMessage: string;
|
|
101
|
-
};
|
|
102
|
-
openDiscounts: {
|
|
103
|
-
id: string;
|
|
104
|
-
defaultMessage: string;
|
|
105
|
-
};
|
|
106
|
-
openProductDiscountsList: {
|
|
107
|
-
id: string;
|
|
108
|
-
defaultMessage: string;
|
|
109
|
-
};
|
|
110
|
-
openCartDiscountsList: {
|
|
111
|
-
id: string;
|
|
112
|
-
defaultMessage: string;
|
|
113
|
-
};
|
|
114
|
-
openDiscountCodesList: {
|
|
115
|
-
id: string;
|
|
116
|
-
defaultMessage: string;
|
|
117
|
-
};
|
|
118
|
-
openAddDiscount: {
|
|
119
|
-
id: string;
|
|
120
|
-
defaultMessage: string;
|
|
121
|
-
};
|
|
122
|
-
openAddProductDiscount: {
|
|
123
|
-
id: string;
|
|
124
|
-
defaultMessage: string;
|
|
125
|
-
};
|
|
126
|
-
openAddCartDiscount: {
|
|
127
|
-
id: string;
|
|
128
|
-
defaultMessage: string;
|
|
129
|
-
};
|
|
130
|
-
openAddDiscountCode: {
|
|
131
|
-
id: string;
|
|
132
|
-
defaultMessage: string;
|
|
133
|
-
};
|
|
134
|
-
openSettings: {
|
|
135
|
-
id: string;
|
|
136
|
-
defaultMessage: string;
|
|
137
|
-
};
|
|
138
|
-
openProjectSettings: {
|
|
139
|
-
id: string;
|
|
140
|
-
defaultMessage: string;
|
|
141
|
-
};
|
|
142
|
-
openProjectSettingsInternationalTab: {
|
|
143
|
-
id: string;
|
|
144
|
-
defaultMessage: string;
|
|
145
|
-
};
|
|
146
|
-
openProjectSettingsTaxesTab: {
|
|
147
|
-
id: string;
|
|
148
|
-
defaultMessage: string;
|
|
149
|
-
};
|
|
150
|
-
openProjectSettingsShippingMethodsTab: {
|
|
151
|
-
id: string;
|
|
152
|
-
defaultMessage: string;
|
|
153
|
-
};
|
|
154
|
-
openProjectSettingsChannelsTab: {
|
|
155
|
-
id: string;
|
|
156
|
-
defaultMessage: string;
|
|
157
|
-
};
|
|
158
|
-
openProjectSettingsStoresTab: {
|
|
159
|
-
id: string;
|
|
160
|
-
defaultMessage: string;
|
|
161
|
-
};
|
|
162
|
-
openProductTypesSettings: {
|
|
163
|
-
id: string;
|
|
164
|
-
defaultMessage: string;
|
|
165
|
-
};
|
|
166
|
-
openDeveloperSettings: {
|
|
167
|
-
id: string;
|
|
168
|
-
defaultMessage: string;
|
|
169
|
-
};
|
|
170
|
-
openCustomApplicationsSettings: {
|
|
171
|
-
id: string;
|
|
172
|
-
defaultMessage: string;
|
|
173
|
-
};
|
|
174
|
-
openApiClientsList: {
|
|
175
|
-
id: string;
|
|
176
|
-
defaultMessage: string;
|
|
177
|
-
};
|
|
178
|
-
openAddApiClient: {
|
|
179
|
-
id: string;
|
|
180
|
-
defaultMessage: string;
|
|
181
|
-
};
|
|
182
|
-
openSupport: {
|
|
183
|
-
id: string;
|
|
184
|
-
defaultMessage: string;
|
|
185
|
-
};
|
|
186
|
-
openMyProfile: {
|
|
187
|
-
id: string;
|
|
188
|
-
defaultMessage: string;
|
|
189
|
-
};
|
|
190
|
-
showPrivacyPolicy: {
|
|
191
|
-
id: string;
|
|
192
|
-
defaultMessage: string;
|
|
193
|
-
};
|
|
194
|
-
logout: {
|
|
195
|
-
id: string;
|
|
196
|
-
defaultMessage: string;
|
|
197
|
-
};
|
|
198
|
-
useProject: {
|
|
199
|
-
id: string;
|
|
200
|
-
defaultMessage: string;
|
|
201
|
-
};
|
|
202
|
-
openManageProjects: {
|
|
203
|
-
id: string;
|
|
204
|
-
defaultMessage: string;
|
|
205
|
-
};
|
|
206
|
-
openManageOrganizations: {
|
|
207
|
-
id: string;
|
|
208
|
-
defaultMessage: string;
|
|
209
|
-
};
|
|
210
|
-
openVariantById: {
|
|
211
|
-
id: string;
|
|
212
|
-
defaultMessage: string;
|
|
213
|
-
};
|
|
214
|
-
openVariantByKey: {
|
|
215
|
-
id: string;
|
|
216
|
-
defaultMessage: string;
|
|
217
|
-
};
|
|
218
|
-
openVariantBySku: {
|
|
219
|
-
id: string;
|
|
220
|
-
defaultMessage: string;
|
|
221
|
-
};
|
|
222
|
-
showProduct: {
|
|
223
|
-
id: string;
|
|
224
|
-
defaultMessage: string;
|
|
225
|
-
};
|
|
226
|
-
showProductVariant: {
|
|
227
|
-
id: string;
|
|
228
|
-
defaultMessage: string;
|
|
229
|
-
};
|
|
230
|
-
showProductVariantAttributes: {
|
|
231
|
-
id: string;
|
|
232
|
-
defaultMessage: string;
|
|
233
|
-
};
|
|
234
|
-
showProductVariantImages: {
|
|
235
|
-
id: string;
|
|
236
|
-
defaultMessage: string;
|
|
237
|
-
};
|
|
238
|
-
showProductVariantPrices: {
|
|
239
|
-
id: string;
|
|
240
|
-
defaultMessage: string;
|
|
241
|
-
};
|
|
242
|
-
showProductVariantInventory: {
|
|
243
|
-
id: string;
|
|
244
|
-
defaultMessage: string;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import pimIndexerStates from './pim-indexer-states';
|
|
2
|
-
type Props = {
|
|
3
|
-
pimIndexerState: keyof typeof pimIndexerStates;
|
|
4
|
-
onPimIndexerStateChange: (pimIndexerState: keyof typeof pimIndexerStates) => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
onChangeProjectDataLocale?: (locale: string) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const QuickAccess: {
|
|
9
|
-
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export default QuickAccess;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
3
|
-
import type { Command } from './types';
|
|
4
|
-
type CreateProductVariantSubCommandsOptions = {
|
|
5
|
-
intl: IntlShape;
|
|
6
|
-
applicationContext: TApplicationContext<{}>;
|
|
7
|
-
productId: string;
|
|
8
|
-
variantId: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const createProductVariantSubCommands: ({ intl, applicationContext, productId, variantId, }: CreateProductVariantSubCommandsOptions) => Command[];
|
|
11
|
-
type CreateProductTabsSubCommandsOptions = {
|
|
12
|
-
intl: IntlShape;
|
|
13
|
-
applicationContext: TApplicationContext<{}>;
|
|
14
|
-
productId: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const createProductTabsSubCommands: ({ intl, applicationContext, productId, }: CreateProductTabsSubCommandsOptions) => Command[];
|
|
17
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { OperationVariables, ApolloQueryResult } from '@apollo/client';
|
|
2
|
-
import type { DocumentNode } from 'graphql';
|
|
3
|
-
import type { TApolloContext } from '@commercetools-frontend/application-shell-connectors';
|
|
4
|
-
export declare const actionTypes: {
|
|
5
|
-
readonly go: "go";
|
|
6
|
-
};
|
|
7
|
-
export type ActionAsFn = () => void;
|
|
8
|
-
export type SubCommandAsFn = (execQuery: ExecGraphQlQuery) => Promise<Command[]>;
|
|
9
|
-
export type Action = {
|
|
10
|
-
type: typeof actionTypes.go;
|
|
11
|
-
to: string;
|
|
12
|
-
};
|
|
13
|
-
export type Command = {
|
|
14
|
-
id: string;
|
|
15
|
-
text: string;
|
|
16
|
-
keywords?: string[];
|
|
17
|
-
action: ActionAsFn | Action;
|
|
18
|
-
subCommands?: SubCommandAsFn | Command[];
|
|
19
|
-
};
|
|
20
|
-
export type SearchText = string;
|
|
21
|
-
export type SelectedResult = number;
|
|
22
|
-
export type Stack = {
|
|
23
|
-
searchText: SearchText;
|
|
24
|
-
results: Command[];
|
|
25
|
-
selectedResult: SelectedResult;
|
|
26
|
-
};
|
|
27
|
-
export type HistoryEntry = {
|
|
28
|
-
searchText: SearchText;
|
|
29
|
-
results: Command[];
|
|
30
|
-
};
|
|
31
|
-
export type ExecGraphQlQuery = <T>(document: DocumentNode, variables: OperationVariables, context?: TApolloContext) => Promise<ApolloQueryResult<T>['data']>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { TLocalizedString } from '../../types/generated/ctp';
|
|
2
|
-
import type { Command, ExecGraphQlQuery } from './types';
|
|
3
|
-
export declare const sanitize: (param: string) => string;
|
|
4
|
-
export declare const flattenCommands: (results: Command[], execQuery: ExecGraphQlQuery) => Promise<Command[]>;
|
|
5
|
-
export declare const translate: (nameAllLocales: TLocalizedString[], projectDataLocale: string) => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
|
|
2
|
-
type Props = {
|
|
3
|
-
reason?: (typeof LOGOUT_REASONS)[keyof typeof LOGOUT_REASONS];
|
|
4
|
-
};
|
|
5
|
-
declare const RedirectToLogout: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default RedirectToLogout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useRedirector, Redirector } from './redirector';
|