@commercetools-frontend/application-shell 0.0.0-FEC-157-preview-releases-20241126230331
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/application-entry-point-547561a2.cjs.dev.js +109 -0
- package/dist/application-entry-point-54a9664f.esm.js +94 -0
- package/dist/application-entry-point-654951a6.cjs.prod.js +90 -0
- package/dist/box-09bf50e1.cjs.prod.js +30 -0
- package/dist/box-4857aa65.cjs.dev.js +30 -0
- package/dist/box-9cf180c1.esm.js +17 -0
- package/dist/cart-645074db.cjs.prod.js +30 -0
- package/dist/cart-b0044279.cjs.dev.js +30 -0
- package/dist/cart-bb491ca1.esm.js +17 -0
- package/dist/commercetools-frontend-application-shell.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-application-shell.cjs.d.ts.map +1 -0
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +215 -0
- package/dist/commercetools-frontend-application-shell.cjs.js +7 -0
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +215 -0
- package/dist/commercetools-frontend-application-shell.esm.js +81 -0
- package/dist/connected-square-2d046cb8.cjs.prod.js +30 -0
- package/dist/connected-square-a2fea344.cjs.dev.js +30 -0
- package/dist/connected-square-fe6a790f.esm.js +17 -0
- package/dist/custom-view-dev-host-076c2a9f.cjs.prod.js +197 -0
- package/dist/custom-view-dev-host-5eebbfcd.esm.js +188 -0
- package/dist/custom-view-dev-host-7e7d8572.cjs.dev.js +200 -0
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +10 -0
- package/dist/declarations/src/components/app-bar/index.d.ts +1 -0
- package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +10 -0
- package/dist/declarations/src/components/application-entry-point/index.d.ts +1 -0
- package/dist/declarations/src/components/application-loader/application-loader.d.ts +8 -0
- package/dist/declarations/src/components/application-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +25 -0
- package/dist/declarations/src/components/application-page-title/index.d.ts +1 -0
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +45 -0
- package/dist/declarations/src/components/application-shell/global-styles.d.ts +3 -0
- package/dist/declarations/src/components/application-shell/index.d.ts +1 -0
- package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +25 -0
- package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +17 -0
- package/dist/declarations/src/components/application-shell-provider/index.d.ts +1 -0
- package/dist/declarations/src/components/application-shell-provider/use-coerced-environment-values.d.ts +6 -0
- package/dist/declarations/src/components/application-shell-provider/utils.d.ts +3 -0
- package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +13 -0
- package/dist/declarations/src/components/authenticated/authenticated.d.ts +16 -0
- package/dist/declarations/src/components/authenticated/has-cached-authentication-state.d.ts +2 -0
- package/dist/declarations/src/components/authenticated/index.d.ts +1 -0
- package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +12 -0
- package/dist/declarations/src/components/authenticated/oidc-callback.async.d.ts +6 -0
- package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +11 -0
- package/dist/declarations/src/components/authenticated/types.d.ts +6 -0
- package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +8 -0
- package/dist/declarations/src/components/back-to-project/index.d.ts +1 -0
- package/dist/declarations/src/components/back-to-project/messages.d.ts +7 -0
- package/dist/declarations/src/components/configure-intl-provider/configure-intl-provider.d.ts +12 -0
- package/dist/declarations/src/components/configure-intl-provider/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-dev-host/custom-view-dev-host.d.ts +11 -0
- package/dist/declarations/src/components/custom-view-dev-host/index.d.ts +6 -0
- package/dist/declarations/src/components/custom-view-flop-flip-provider/custom-view-flop-flip-provider.d.ts +10 -0
- package/dist/declarations/src/components/custom-view-flop-flip-provider/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.d.ts +12 -0
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.styles.d.ts +9 -0
- package/dist/declarations/src/components/custom-view-shell/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +15 -0
- package/dist/declarations/src/components/custom-view-shell-authenticated/index.d.ts +1 -0
- package/dist/declarations/src/components/error-apologizer/error-apologizer.d.ts +5 -0
- package/dist/declarations/src/components/error-apologizer/index.d.ts +6 -0
- package/dist/declarations/src/components/error-apologizer/messages.d.ts +11 -0
- package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +20 -0
- package/dist/declarations/src/components/error-boundary/index.d.ts +1 -0
- package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +18 -0
- package/dist/declarations/src/components/fetch-project/index.d.ts +1 -0
- package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +16 -0
- package/dist/declarations/src/components/fetch-user/index.d.ts +1 -0
- package/dist/declarations/src/components/inject-reducers/index.d.ts +1 -0
- package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +14 -0
- package/dist/declarations/src/components/loading-placeholder/index.d.ts +1 -0
- package/dist/declarations/src/components/loading-placeholder/loading-placeholder.d.ts +10 -0
- package/dist/declarations/src/components/locale-switcher/index.d.ts +1 -0
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +12 -0
- package/dist/declarations/src/components/locale-switcher/messages.d.ts +18 -0
- package/dist/declarations/src/components/navbar/index.d.ts +6 -0
- package/dist/declarations/src/components/navbar/legacy-icons/box.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/cart.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/connected-square.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/gear.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/heart.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/list-with-search.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/paperclip.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/plugin.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/rocket.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/speedometer.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/star.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/tag-multi.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/tree-structure.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/user-filled.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/world.d.ts +2 -0
- package/dist/declarations/src/components/navbar/main-navbar.styles.d.ts +51 -0
- package/dist/declarations/src/components/navbar/menu-items.d.ts +107 -0
- package/dist/declarations/src/components/navbar/menu-items.styles.d.ts +52 -0
- package/dist/declarations/src/components/navbar/messages.d.ts +7 -0
- package/dist/declarations/src/components/navbar/navbar-skeleton.d.ts +6 -0
- package/dist/declarations/src/components/navbar/navbar-skeleton.styles.d.ts +43 -0
- package/dist/declarations/src/components/navbar/navbar.d.ts +51 -0
- package/dist/declarations/src/components/navbar/non-nullable.d.ts +1 -0
- package/dist/declarations/src/components/navbar/shared.styles.d.ts +18 -0
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +25 -0
- package/dist/declarations/src/components/project-container/index.d.ts +61 -0
- package/dist/declarations/src/components/project-container/messages.d.ts +7 -0
- package/dist/declarations/src/components/project-container/project-container.d.ts +17 -0
- package/dist/declarations/src/components/project-data-locale/index.d.ts +1 -0
- package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +14 -0
- package/dist/declarations/src/components/project-expired/index.d.ts +6 -0
- package/dist/declarations/src/components/project-expired/messages.d.ts +11 -0
- package/dist/declarations/src/components/project-expired/project-expired.d.ts +5 -0
- package/dist/declarations/src/components/project-not-found/index.d.ts +6 -0
- package/dist/declarations/src/components/project-not-found/messages.d.ts +15 -0
- package/dist/declarations/src/components/project-not-found/project-not-found.d.ts +5 -0
- package/dist/declarations/src/components/project-not-initialized/index.d.ts +6 -0
- package/dist/declarations/src/components/project-not-initialized/messages.d.ts +11 -0
- package/dist/declarations/src/components/project-not-initialized/project-not-initialized.d.ts +5 -0
- package/dist/declarations/src/components/project-suspended/index.d.ts +8 -0
- package/dist/declarations/src/components/project-suspended/messages.d.ts +15 -0
- package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +8 -0
- package/dist/declarations/src/components/project-switcher/index.d.ts +1 -0
- package/dist/declarations/src/components/project-switcher/messages.d.ts +28 -0
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +11 -0
- package/dist/declarations/src/components/quick-access/butler/butler.d.ts +14 -0
- package/dist/declarations/src/components/quick-access/butler/index.d.ts +1 -0
- package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +13 -0
- package/dist/declarations/src/components/quick-access/butler-command/index.d.ts +1 -0
- package/dist/declarations/src/components/quick-access/butler-container/butler-container.d.ts +6 -0
- package/dist/declarations/src/components/quick-access/butler-container/index.d.ts +1 -0
- package/dist/declarations/src/components/quick-access/constants.d.ts +24 -0
- package/dist/declarations/src/components/quick-access/create-commands.d.ts +13 -0
- package/dist/declarations/src/components/quick-access/history-entries.d.ts +3 -0
- package/dist/declarations/src/components/quick-access/index.d.ts +8 -0
- package/dist/declarations/src/components/quick-access/messages.d.ts +247 -0
- package/dist/declarations/src/components/quick-access/pim-indexer-states.d.ts +6 -0
- package/dist/declarations/src/components/quick-access/quick-access.d.ts +12 -0
- package/dist/declarations/src/components/quick-access/sub-commands.d.ts +17 -0
- package/dist/declarations/src/components/quick-access/types.d.ts +31 -0
- package/dist/declarations/src/components/quick-access/utils.d.ts +5 -0
- package/dist/declarations/src/components/redirect-to-login/index.d.ts +6 -0
- package/dist/declarations/src/components/redirect-to-login/redirect-to-login.d.ts +5 -0
- package/dist/declarations/src/components/redirect-to-logout/index.d.ts +5 -0
- package/dist/declarations/src/components/redirect-to-logout/redirect-to-logout.d.ts +6 -0
- package/dist/declarations/src/components/redirect-to-project-create/index.d.ts +6 -0
- package/dist/declarations/src/components/redirect-to-project-create/redirect-to-project-create.d.ts +5 -0
- package/dist/declarations/src/components/redirector/index.d.ts +1 -0
- package/dist/declarations/src/components/redirector/redirector.d.ts +23 -0
- package/dist/declarations/src/components/requests-in-flight-loader/constants.d.ts +1 -0
- package/dist/declarations/src/components/requests-in-flight-loader/index.d.ts +7 -0
- package/dist/declarations/src/components/requests-in-flight-loader/messages.d.ts +8 -0
- package/dist/declarations/src/components/requests-in-flight-loader/reducer.d.ts +4 -0
- package/dist/declarations/src/components/requests-in-flight-loader/requests-in-flight-loader.d.ts +6 -0
- package/dist/declarations/src/components/requests-in-flight-loader/types.d.ts +9 -0
- package/dist/declarations/src/components/route-catch-all/index.d.ts +3 -0
- package/dist/declarations/src/components/route-catch-all/route-catch-all.d.ts +2 -0
- package/dist/declarations/src/components/service-page-project-switcher/index.d.ts +1 -0
- package/dist/declarations/src/components/service-page-project-switcher/service-page-project-switcher.d.ts +5 -0
- package/dist/declarations/src/components/setup-flop-flip-provider/index.d.ts +1 -0
- package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts +17 -0
- package/dist/declarations/src/components/suspended-route/index.d.ts +1 -0
- package/dist/declarations/src/components/suspended-route/suspended-route.d.ts +6 -0
- package/dist/declarations/src/components/theme-switcher/index.d.ts +1 -0
- package/dist/declarations/src/components/theme-switcher/theme-switcher.d.ts +2 -0
- package/dist/declarations/src/components/user-settings-menu/index.d.ts +12 -0
- package/dist/declarations/src/components/user-settings-menu/messages.d.ts +33 -0
- package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +20 -0
- package/dist/declarations/src/configure-store.d.ts +22 -0
- package/dist/declarations/src/constants.d.ts +42 -0
- package/dist/declarations/src/export-types.d.ts +8 -0
- package/dist/declarations/src/hooks/use-applications-menu/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +13 -0
- package/dist/declarations/src/hooks/use-is-served-by-proxy/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-is-served-by-proxy/use-is-served-by-proxy.d.ts +2 -0
- package/dist/declarations/src/hooks/use-routes-creator/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-routes-creator/use-routes-creator.d.ts +22 -0
- package/dist/declarations/src/index.d.ts +33 -0
- package/dist/declarations/src/middleware/hide-notifications.d.ts +3 -0
- package/dist/declarations/src/middleware/logger.d.ts +3 -0
- package/dist/declarations/src/ssr/index.d.ts +2 -0
- package/dist/declarations/src/test-utils/custom-views-utils.d.ts +21 -0
- package/dist/declarations/src/test-utils/index.d.ts +2 -0
- package/dist/declarations/src/test-utils/test-utils.d.ts +83 -0
- package/dist/declarations/src/types/generated/ctp.d.ts +14279 -0
- package/dist/declarations/src/types/generated/mc.d.ts +742 -0
- package/dist/declarations/src/types/generated/proxy.d.ts +154 -0
- package/dist/declarations/src/types/generated/settings.d.ts +2116 -0
- package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +3 -0
- package/dist/declarations/src/utils/get-mc-api-url/index.d.ts +1 -0
- package/dist/declarations/src/utils/get-mc-origin/get-mc-origin.d.ts +18 -0
- package/dist/declarations/src/utils/get-mc-origin/index.d.ts +1 -0
- package/dist/declarations/src/utils/get-previous-project-key/get-previous-project-key.d.ts +2 -0
- package/dist/declarations/src/utils/get-previous-project-key/index.d.ts +1 -0
- package/dist/declarations/src/utils/index.d.ts +3 -0
- package/dist/declarations/src/utils/location/index.d.ts +1 -0
- package/dist/declarations/src/utils/location/location.d.ts +5 -0
- package/dist/declarations/src/utils/oidc.d.ts +10 -0
- package/dist/declarations/src/utils/select-project-key-from-local-storage/index.d.ts +1 -0
- package/dist/declarations/src/utils/select-project-key-from-local-storage/select-project-key-from-local-storage.d.ts +1 -0
- package/dist/declarations/src/utils/setup-global-error-listener/index.d.ts +1 -0
- package/dist/declarations/src/utils/setup-global-error-listener/setup-global-error-listener.d.ts +1 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/error-apologizer-76f087f4.esm.js +39 -0
- package/dist/error-apologizer-84dc825c.cjs.prod.js +53 -0
- package/dist/error-apologizer-f6793491.cjs.dev.js +53 -0
- package/dist/gear-4f7cde98.cjs.prod.js +30 -0
- package/dist/gear-ee90ba83.esm.js +17 -0
- package/dist/gear-f2668579.cjs.dev.js +30 -0
- package/dist/get-mc-origin-8f7a578c.cjs.prod.js +51 -0
- package/dist/get-mc-origin-a86dff20.cjs.dev.js +51 -0
- package/dist/get-mc-origin-fecfee07.esm.js +44 -0
- package/dist/heart-01f01038.cjs.prod.js +30 -0
- package/dist/heart-86f780f3.esm.js +17 -0
- package/dist/heart-e49dd92a.cjs.dev.js +30 -0
- package/dist/index-76b6a9ad.cjs.dev.js +2215 -0
- package/dist/index-91985d64.cjs.prod.js +232 -0
- package/dist/index-b1476d46.cjs.dev.js +232 -0
- package/dist/index-b2fb611e.esm.js +2150 -0
- package/dist/index-b6081c20.esm.js +206 -0
- package/dist/index-ff82019b.cjs.prod.js +2058 -0
- package/dist/list-with-search-027ab8eb.cjs.dev.js +30 -0
- package/dist/list-with-search-6462447e.cjs.prod.js +30 -0
- package/dist/list-with-search-d2901e34.esm.js +17 -0
- package/dist/location-537e0660.cjs.prod.js +32 -0
- package/dist/location-c835b8df.cjs.dev.js +32 -0
- package/dist/location-f21dbc25.esm.js +30 -0
- package/dist/navbar-1465f182.cjs.prod.js +1189 -0
- package/dist/navbar-62d10e1c.cjs.dev.js +1426 -0
- package/dist/navbar-7b53adec.esm.js +1394 -0
- package/dist/oidc-8827f9fe.cjs.dev.js +98 -0
- package/dist/oidc-b2520905.esm.js +84 -0
- package/dist/oidc-callback-17a812d6.esm.js +234 -0
- package/dist/oidc-callback-76814954.cjs.prod.js +243 -0
- package/dist/oidc-callback-adb8385b.cjs.dev.js +249 -0
- package/dist/oidc-d74e6aa2.cjs.prod.js +98 -0
- package/dist/paperclip-005ec544.cjs.dev.js +30 -0
- package/dist/paperclip-a820ee87.esm.js +17 -0
- package/dist/paperclip-fe72a70d.cjs.prod.js +30 -0
- package/dist/plugin-81ae1044.cjs.prod.js +30 -0
- package/dist/plugin-c7bf9e53.esm.js +17 -0
- package/dist/plugin-feb22442.cjs.dev.js +30 -0
- package/dist/project-container-091b168d.cjs.dev.js +390 -0
- package/dist/project-container-55778868.cjs.prod.js +381 -0
- package/dist/project-container-b5401554.esm.js +368 -0
- package/dist/project-expired-47196b04.cjs.dev.js +136 -0
- package/dist/project-expired-5d8570a3.cjs.prod.js +136 -0
- package/dist/project-expired-9efda620.esm.js +122 -0
- package/dist/project-not-found-6346d0bc.cjs.prod.js +129 -0
- package/dist/project-not-found-f069a112.esm.js +115 -0
- package/dist/project-not-found-fef5d1f1.cjs.dev.js +129 -0
- package/dist/project-not-initialized-cad5df83.esm.js +122 -0
- package/dist/project-not-initialized-d05d529a.cjs.prod.js +136 -0
- package/dist/project-not-initialized-e1b3ec3f.cjs.dev.js +136 -0
- package/dist/project-suspended-36f6576b.cjs.prod.js +134 -0
- package/dist/project-suspended-a29d0f56.cjs.dev.js +134 -0
- package/dist/project-suspended-b488c3fe.esm.js +120 -0
- package/dist/quick-access-5ffe0e5c.cjs.prod.js +1877 -0
- package/dist/quick-access-638c9699.esm.js +1888 -0
- package/dist/quick-access-ee38025a.cjs.dev.js +1917 -0
- package/dist/redirect-to-login-321190b7.cjs.dev.js +118 -0
- package/dist/redirect-to-login-8c7575fb.cjs.prod.js +118 -0
- package/dist/redirect-to-login-d9c20203.esm.js +116 -0
- package/dist/redirect-to-logout-03e7fdb7.cjs.dev.js +125 -0
- package/dist/redirect-to-logout-263d0e66.cjs.prod.js +125 -0
- package/dist/redirect-to-logout-3a4109b6.esm.js +112 -0
- package/dist/redirect-to-project-create-9249e554.esm.js +60 -0
- package/dist/redirect-to-project-create-e4ff7797.cjs.prod.js +68 -0
- package/dist/redirect-to-project-create-f4f01842.cjs.dev.js +68 -0
- package/dist/redirector-01f35da8.cjs.prod.js +75 -0
- package/dist/redirector-76670a54.esm.js +59 -0
- package/dist/redirector-98dfc5f0.cjs.dev.js +75 -0
- package/dist/requests-in-flight-loader-7f677421.cjs.prod.js +121 -0
- package/dist/requests-in-flight-loader-aafcb3cd.cjs.dev.js +121 -0
- package/dist/requests-in-flight-loader-e2d591ca.esm.js +106 -0
- package/dist/rocket-3372731a.cjs.dev.js +30 -0
- package/dist/rocket-bacf24be.esm.js +17 -0
- package/dist/rocket-cb99be06.cjs.prod.js +30 -0
- package/dist/route-catch-all-7803b1fd.esm.js +42 -0
- package/dist/route-catch-all-8e71a93c.cjs.prod.js +44 -0
- package/dist/route-catch-all-b979e1fd.cjs.dev.js +44 -0
- package/dist/service-page-project-switcher-05b50df7.cjs.prod.js +37 -0
- package/dist/service-page-project-switcher-0ee3a898.esm.js +40 -0
- package/dist/service-page-project-switcher-e7998e11.cjs.dev.js +46 -0
- package/dist/speedometer-26f52e73.cjs.prod.js +30 -0
- package/dist/speedometer-4c8e0b9c.esm.js +17 -0
- package/dist/speedometer-c1ec5a1d.cjs.dev.js +30 -0
- package/dist/star-6b9a91d2.cjs.dev.js +30 -0
- package/dist/star-af90a9c6.esm.js +17 -0
- package/dist/star-e4902bbb.cjs.prod.js +30 -0
- package/dist/tag-multi-1c065f61.cjs.prod.js +30 -0
- package/dist/tag-multi-4c2742de.esm.js +17 -0
- package/dist/tag-multi-abef3e15.cjs.dev.js +30 -0
- package/dist/tree-structure-3ec98cce.cjs.prod.js +30 -0
- package/dist/tree-structure-96ab0b7e.cjs.dev.js +30 -0
- package/dist/tree-structure-ca0498a0.esm.js +17 -0
- package/dist/use-applications-menu-222b9106.cjs.prod.js +173 -0
- package/dist/use-applications-menu-302a0ac8.cjs.dev.js +173 -0
- package/dist/use-applications-menu-b583e9c3.esm.js +158 -0
- package/dist/use-is-served-by-proxy-28f19a6f.cjs.dev.js +10 -0
- package/dist/use-is-served-by-proxy-480e8de8.cjs.prod.js +10 -0
- package/dist/use-is-served-by-proxy-a383da4b.esm.js +8 -0
- package/dist/user-filled-26f333b2.cjs.prod.js +30 -0
- package/dist/user-filled-34aeebcc.cjs.dev.js +30 -0
- package/dist/user-filled-61d8a81b.esm.js +17 -0
- package/dist/user-settings-menu-a0813186.cjs.dev.js +359 -0
- package/dist/user-settings-menu-dc94ceb2.esm.js +333 -0
- package/dist/user-settings-menu-ead5fed2.cjs.prod.js +335 -0
- package/dist/world-22189397.cjs.prod.js +30 -0
- package/dist/world-500baeb2.cjs.dev.js +30 -0
- package/dist/world-523efd61.esm.js +17 -0
- package/package.json +146 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.d.ts +2 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.d.ts.map +1 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +20 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.js +7 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +20 -0
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +4 -0
- package/ssr/package.json +4 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.d.ts +2 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.d.ts.map +1 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +556 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.js +7 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +547 -0
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +503 -0
- package/test-utils/package.json +4 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
2
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
3
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
11
|
+
import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
12
|
+
import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
13
|
+
import _Reflect$has from '@babel/runtime-corejs3/core-js-stable/reflect/has';
|
|
14
|
+
import { applyMiddleware, configureStore, combineReducers } from '@reduxjs/toolkit';
|
|
15
|
+
import mapValues from 'lodash/mapValues';
|
|
16
|
+
import omitEmpty from 'omit-empty-es';
|
|
17
|
+
import thunk from 'redux-thunk';
|
|
18
|
+
import { logger, selectProjectKeyFromUrl, getCorrelationId, selectUserId, oidcStorage, selectTeamIdFromStorage } from '@commercetools-frontend/application-shell-connectors';
|
|
19
|
+
import { SHOW_LOADING, HIDE_LOADING, NOTIFICATION_KINDS_PAGE, HIDE_ALL_PAGE_NOTIFICATIONS, SUPPORTED_HEADERS } from '@commercetools-frontend/constants';
|
|
20
|
+
import { removeNotification, ADD_NOTIFICATION, REMOVE_NOTIFICATION, middleware, reducer } from '@commercetools-frontend/notifications';
|
|
21
|
+
import { createMiddleware } from '@commercetools-frontend/sdk';
|
|
22
|
+
import { lazy } from 'react';
|
|
23
|
+
import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
24
|
+
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
25
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
26
|
+
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
27
|
+
import { selectPageNotifications } from '@commercetools-frontend/react-notifications';
|
|
28
|
+
import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
29
|
+
import { createLogger } from 'redux-logger';
|
|
30
|
+
|
|
31
|
+
const isShowRequestInFlightAction = action => action.type === SHOW_LOADING;
|
|
32
|
+
const isHideRequestInFlightAction = action => action.type === HIDE_LOADING;
|
|
33
|
+
const excludeFirstOccurrence = (list, item) => {
|
|
34
|
+
const index = _indexOfInstanceProperty(list).call(list, item);
|
|
35
|
+
return [..._sliceInstanceProperty(list).call(list, 0, index), ..._sliceInstanceProperty(list).call(list, index + 1)];
|
|
36
|
+
};
|
|
37
|
+
var requestsInFlightReducer = ((requestsInFlight, action) => {
|
|
38
|
+
if (!requestsInFlight || !action) return [];
|
|
39
|
+
if (isShowRequestInFlightAction(action)) return [...requestsInFlight, action.payload];
|
|
40
|
+
if (isHideRequestInFlightAction(action)) {
|
|
41
|
+
// may only remove first occurence
|
|
42
|
+
if (!_includesInstanceProperty(requestsInFlight).call(requestsInFlight, action.payload)) {
|
|
43
|
+
reportErrorToSentry(new Error(`Tried to hide "${action.payload}", but it was not progressing!`));
|
|
44
|
+
return requestsInFlight;
|
|
45
|
+
}
|
|
46
|
+
return excludeFirstOccurrence(requestsInFlight, action.payload);
|
|
47
|
+
}
|
|
48
|
+
return requestsInFlight;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const isAddNotificationErrorAction = action => {
|
|
52
|
+
const errorAction = action;
|
|
53
|
+
return errorAction.type === ADD_NOTIFICATION && errorAction.payload && (errorAction.payload.kind === NOTIFICATION_KINDS_PAGE['api-error'] || errorAction.payload.kind === NOTIFICATION_KINDS_PAGE['unexpected-error']);
|
|
54
|
+
};
|
|
55
|
+
const isHideAllNotificationsAction = action => action.type === HIDE_ALL_PAGE_NOTIFICATIONS;
|
|
56
|
+
const hideNotificationsMiddleware = _ref => {
|
|
57
|
+
let getState = _ref.getState;
|
|
58
|
+
return next => action => {
|
|
59
|
+
if (isHideAllNotificationsAction(action) || isAddNotificationErrorAction(action)) {
|
|
60
|
+
var _context;
|
|
61
|
+
const state = getState();
|
|
62
|
+
_forEachInstanceProperty(_context = selectPageNotifications(state)).call(_context, notification => {
|
|
63
|
+
next(removeNotification(notification.id));
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return next(action);
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const loggerMiddleware = createLogger({
|
|
71
|
+
logger,
|
|
72
|
+
collapsed: true,
|
|
73
|
+
colors: {
|
|
74
|
+
title: () => '#000000',
|
|
75
|
+
prevState: () => '#9E9E9E',
|
|
76
|
+
action: () => '#03A9F4',
|
|
77
|
+
nextState: () => '#4CAF50',
|
|
78
|
+
error: () => '#F20404'
|
|
79
|
+
},
|
|
80
|
+
// WARNING: Enabling this option causes huge performance degradation.
|
|
81
|
+
// Only enable if you want detailed debugging.
|
|
82
|
+
diff: false,
|
|
83
|
+
predicate: (_getState, action) => {
|
|
84
|
+
if (!action) return false;
|
|
85
|
+
const type = action.type,
|
|
86
|
+
payload = action.payload;
|
|
87
|
+
if (!type) return false;
|
|
88
|
+
if (_startsWithInstanceProperty(type).call(type, 'SHOW_') || _startsWithInstanceProperty(type).call(type, 'HIDE_') || _startsWithInstanceProperty(type).call(type, 'APOLLO_')) return false;
|
|
89
|
+
switch (type) {
|
|
90
|
+
case REMOVE_NOTIFICATION:
|
|
91
|
+
return false;
|
|
92
|
+
case ADD_NOTIFICATION:
|
|
93
|
+
{
|
|
94
|
+
const ignoredKinds = ['api-error', 'unexpected-error'];
|
|
95
|
+
return !_includesInstanceProperty(ignoredKinds).call(ignoredKinds, payload.kind);
|
|
96
|
+
}
|
|
97
|
+
default:
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
104
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
105
|
+
const mergeObjectValues = object => {
|
|
106
|
+
var _context;
|
|
107
|
+
return _reduceInstanceProperty(_context = _Object$entries(object)).call(_context, (acc, _ref) => {
|
|
108
|
+
let _ref2 = _slicedToArray(_ref, 2),
|
|
109
|
+
value = _ref2[1];
|
|
110
|
+
return _objectSpread(_objectSpread({}, acc), value);
|
|
111
|
+
}, {});
|
|
112
|
+
};
|
|
113
|
+
const patchedGetCorrelationId = () => getCorrelationId({
|
|
114
|
+
userId: selectUserId()
|
|
115
|
+
});
|
|
116
|
+
const getAdditionalHeaders = () => {
|
|
117
|
+
const sessionToken = oidcStorage.getSessionToken();
|
|
118
|
+
return omitEmpty({
|
|
119
|
+
[SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? `Bearer ${sessionToken}` : undefined,
|
|
120
|
+
[SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationIdentifier,
|
|
121
|
+
[SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
122
|
+
[SUPPORTED_HEADERS.X_TEAM_ID]: selectTeamIdFromStorage()
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
const sdkMiddleware = createMiddleware({
|
|
126
|
+
getCorrelationId: patchedGetCorrelationId,
|
|
127
|
+
getProjectKey: selectProjectKeyFromUrl,
|
|
128
|
+
getAdditionalHeaders
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated: This function should not be used directly anymore.
|
|
133
|
+
*/
|
|
134
|
+
const applyDefaultMiddlewares = function () {
|
|
135
|
+
for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
136
|
+
middlewares[_key] = arguments[_key];
|
|
137
|
+
}
|
|
138
|
+
return applyMiddleware(...middlewares, thunk, loggerMiddleware);
|
|
139
|
+
};
|
|
140
|
+
const createInternalReducer = function () {
|
|
141
|
+
let injectedReducers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
142
|
+
let preloadedState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
143
|
+
// not providing preloadedStateReducers to combineReducers will cause an error
|
|
144
|
+
// when preloadedState contains keys other than requestsInFlight and
|
|
145
|
+
// notifications:
|
|
146
|
+
// Unexpected key "new Key" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "requestsInFlight", "notifications". Unexpected keys will be ignored.
|
|
147
|
+
// https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer
|
|
148
|
+
const preloadedStateReducers = mapValues(preloadedState, value => () => value);
|
|
149
|
+
|
|
150
|
+
// NOTE: since we don't know in advance which reducers will be injected,
|
|
151
|
+
// we pass an `unknown` type to express this uncertainty and make the compiler happy.
|
|
152
|
+
return combineReducers(_objectSpread(_objectSpread({
|
|
153
|
+
requestsInFlight: requestsInFlightReducer,
|
|
154
|
+
notifications: reducer
|
|
155
|
+
}, injectedReducers), preloadedStateReducers));
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// We use a factory as it's more practicable for tests
|
|
159
|
+
// The application can import the configured store (the default export)
|
|
160
|
+
const createReduxStore = function () {
|
|
161
|
+
let preloadedState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
162
|
+
let additionalMiddlewares = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
163
|
+
const store = configureStore({
|
|
164
|
+
preloadedState,
|
|
165
|
+
reducer: createInternalReducer(undefined, preloadedState),
|
|
166
|
+
devTools: {
|
|
167
|
+
actionsDenylist: [SHOW_LOADING, HIDE_LOADING]
|
|
168
|
+
},
|
|
169
|
+
middleware: getDefaultMiddleware => [...additionalMiddlewares, hideNotificationsMiddleware, middleware, sdkMiddleware, ...getDefaultMiddleware({
|
|
170
|
+
// https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data
|
|
171
|
+
serializableCheck: false,
|
|
172
|
+
// This default check is logging warnings to console for some MC FE tests, probably
|
|
173
|
+
// due to lower resources when running tests on CI.
|
|
174
|
+
// We don't consider this check to be very valuable in this context so we decided
|
|
175
|
+
// to turn it off.
|
|
176
|
+
// https://redux-toolkit.js.org/api/immutabilityMiddleware
|
|
177
|
+
immutableCheck: false
|
|
178
|
+
}), loggerMiddleware]
|
|
179
|
+
});
|
|
180
|
+
const enhancedStore = store;
|
|
181
|
+
|
|
182
|
+
// Enable reducers to be injected on runtime (see `<InjectReducer>`)
|
|
183
|
+
enhancedStore.injectedReducers = {};
|
|
184
|
+
enhancedStore.injectReducers = _ref3 => {
|
|
185
|
+
let id = _ref3.id,
|
|
186
|
+
reducers = _ref3.reducers;
|
|
187
|
+
const hasReducerBeenInjected = _Reflect$has(enhancedStore.injectedReducers, id) && enhancedStore.injectedReducers[id] === reducers;
|
|
188
|
+
if (!hasReducerBeenInjected) {
|
|
189
|
+
// Keep track of the reducer by id, so we can check if it's been injected aleady
|
|
190
|
+
enhancedStore.injectedReducers[id] = reducers;
|
|
191
|
+
// ...when we create the new reducer though, we spread the reducers from each namespace
|
|
192
|
+
enhancedStore.replaceReducer(createInternalReducer(mergeObjectValues(enhancedStore.injectedReducers)));
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
enhancedStore.removeReducers = _ref4 => {
|
|
196
|
+
let id = _ref4.id;
|
|
197
|
+
delete enhancedStore.injectedReducers[id];
|
|
198
|
+
enhancedStore.replaceReducer(createInternalReducer(mergeObjectValues(enhancedStore.injectedReducers)));
|
|
199
|
+
};
|
|
200
|
+
return enhancedStore;
|
|
201
|
+
};
|
|
202
|
+
var internalReduxStore = createReduxStore();
|
|
203
|
+
|
|
204
|
+
const RouteCatchAll = /*#__PURE__*/lazy(() => import('./route-catch-all-7803b1fd.esm.js' /* webpackChunkName: "route-catch-all" */));
|
|
205
|
+
|
|
206
|
+
export { RouteCatchAll as R, applyDefaultMiddlewares as a, createReduxStore as c, internalReduxStore as i };
|