@commercetools-frontend/application-shell 22.2.1 → 22.3.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/dist/{application-entry-point-32a3b092.cjs.dev.js → application-entry-point-0c3254b0.cjs.dev.js} +10 -19
- package/dist/{application-entry-point-ac068fc0.cjs.prod.js → application-entry-point-2333abb6.cjs.prod.js} +10 -19
- package/dist/{application-entry-point-07dbf99c.esm.js → application-entry-point-a1dfe994.esm.js} +10 -19
- package/dist/{box-8850277f.cjs.prod.js → box-686bc950.cjs.dev.js} +0 -2
- package/dist/{box-4395623b.esm.js → box-6ce924c9.esm.js} +0 -2
- package/dist/{box-6b5be9a9.cjs.dev.js → box-e17daf6c.cjs.prod.js} +0 -2
- package/dist/{cart-a49faf67.esm.js → cart-3b156a46.esm.js} +0 -2
- package/dist/{cart-41f0b7bc.cjs.dev.js → cart-796beed7.cjs.dev.js} +0 -2
- package/dist/{cart-0698b97d.cjs.prod.js → cart-f2fc1baf.cjs.prod.js} +0 -2
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +5 -5
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -5
- package/dist/commercetools-frontend-application-shell.esm.js +5 -5
- package/dist/{configure-apollo-b2a0d497.cjs.prod.js → configure-apollo-70d83707.cjs.prod.js} +64 -181
- package/dist/{configure-apollo-4ea370b4.esm.js → configure-apollo-89ea99bf.esm.js} +64 -183
- package/dist/{configure-apollo-3daef70c.cjs.dev.js → configure-apollo-de2b9aa2.cjs.dev.js} +64 -183
- package/dist/{connected-square-47233754.cjs.dev.js → connected-square-960e046b.cjs.prod.js} +0 -2
- package/dist/{connected-square-b2e25621.cjs.prod.js → connected-square-961eb5b6.cjs.dev.js} +0 -2
- package/dist/{connected-square-3cac6bd7.esm.js → connected-square-f34a98ff.esm.js} +0 -2
- package/dist/{constants-a3c2194a.cjs.prod.js → constants-902cf3f3.cjs.prod.js} +2 -1
- package/dist/{constants-940f343f.esm.js → constants-b962b73e.esm.js} +2 -1
- package/dist/{constants-b201d328.cjs.dev.js → constants-e51cdcc0.cjs.dev.js} +2 -1
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +1 -1
- package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +1 -1
- package/dist/declarations/src/components/application-loader/application-loader.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/global-styles.d.ts +1 -1
- package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +1 -1
- package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +1 -2
- package/dist/declarations/src/components/application-shell-provider/utils.d.ts +2 -0
- package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/authenticated.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback.async.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +1 -1
- package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +1 -1
- package/dist/declarations/src/components/configure-intl-provider/configure-intl-provider.d.ts +1 -1
- package/dist/declarations/src/components/error-apologizer/error-apologizer.d.ts +1 -1
- package/dist/declarations/src/components/error-apologizer/index.d.ts +1 -1
- package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +1 -1
- package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +1 -1
- package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +1 -1
- package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +1 -1
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +2 -2
- package/dist/declarations/src/components/navbar/index.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/box.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/cart.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/connected-square.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/gear.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/heart.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/list-with-search.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/paperclip.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/plugin.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/rocket.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/speedometer.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/star.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/tag-multi.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/tree-structure.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/user-filled.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/world.d.ts +1 -1
- package/dist/declarations/src/components/navbar/loading-navbar.d.ts +1 -1
- package/dist/declarations/src/components/navbar/menu-items.d.ts +8 -8
- package/dist/declarations/src/components/navbar/navbar.d.ts +1 -1
- package/dist/declarations/src/components/project-container/index.d.ts +1 -1
- package/dist/declarations/src/components/project-container/project-container.d.ts +1 -1
- package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +1 -1
- package/dist/declarations/src/components/project-expired/index.d.ts +1 -1
- package/dist/declarations/src/components/project-expired/project-expired.d.ts +1 -1
- package/dist/declarations/src/components/project-not-found/index.d.ts +1 -1
- package/dist/declarations/src/components/project-not-found/project-not-found.d.ts +1 -1
- package/dist/declarations/src/components/project-not-initialized/index.d.ts +1 -1
- package/dist/declarations/src/components/project-not-initialized/project-not-initialized.d.ts +1 -1
- package/dist/declarations/src/components/project-suspended/index.d.ts +1 -1
- package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +1 -1
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +3 -3
- package/dist/declarations/src/components/quick-access/butler/butler.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/index.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/quick-access.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-login/index.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-login/redirect-to-login.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-logout/index.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-logout/redirect-to-logout.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-project-create/index.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-project-create/redirect-to-project-create.d.ts +1 -1
- package/dist/declarations/src/components/route-catch-all/index.d.ts +1 -1
- package/dist/declarations/src/components/route-catch-all/route-catch-all.d.ts +1 -1
- package/dist/declarations/src/components/service-page-project-switcher/service-page-project-switcher.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/suspended-route.d.ts +1 -1
- package/dist/declarations/src/components/theme-switcher/new-design-release-info-dialog.d.ts +1 -1
- package/dist/declarations/src/components/theme-switcher/theme-switcher.d.ts +1 -1
- package/dist/declarations/src/components/user-settings-menu/index.d.ts +1 -1
- package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +3 -3
- package/dist/declarations/src/types/generated/settings.d.ts +89 -1151
- package/dist/{error-apologizer-57a2fb57.cjs.prod.js → error-apologizer-24ad0b88.cjs.prod.js} +0 -3
- package/dist/{error-apologizer-d0409fcb.esm.js → error-apologizer-55551c07.esm.js} +0 -3
- package/dist/{error-apologizer-d20ca326.cjs.dev.js → error-apologizer-a5c03978.cjs.dev.js} +0 -3
- package/dist/{gear-300dd24c.esm.js → gear-1f381738.esm.js} +0 -2
- package/dist/{gear-2890f7fb.cjs.prod.js → gear-9b394c43.cjs.prod.js} +0 -2
- package/dist/{gear-e8014c5a.cjs.dev.js → gear-ab1f6210.cjs.dev.js} +0 -2
- package/dist/{get-mc-origin-7968e04f.cjs.prod.js → get-mc-origin-8f7a578c.cjs.prod.js} +10 -16
- package/dist/{get-mc-origin-314b77a2.cjs.dev.js → get-mc-origin-a86dff20.cjs.dev.js} +10 -16
- package/dist/{get-mc-origin-5df60933.esm.js → get-mc-origin-fecfee07.esm.js} +10 -16
- package/dist/{heart-000a023d.cjs.prod.js → heart-a6e7ccf9.cjs.dev.js} +0 -2
- package/dist/{heart-dded66b4.esm.js → heart-be7c779b.esm.js} +0 -2
- package/dist/{heart-f21b7d39.cjs.dev.js → heart-ebfab4cd.cjs.prod.js} +0 -2
- package/dist/{index-894f4596.cjs.dev.js → index-02a17607.cjs.dev.js} +241 -473
- package/dist/{index-3239484c.esm.js → index-667035b8.esm.js} +240 -472
- package/dist/{index-4e8fd5e2.cjs.prod.js → index-a03f4e81.cjs.prod.js} +237 -465
- package/dist/{list-with-search-a3302710.esm.js → list-with-search-3341bbf7.esm.js} +0 -2
- package/dist/{list-with-search-a5b72b33.cjs.prod.js → list-with-search-b5e9ae1b.cjs.dev.js} +0 -2
- package/dist/{list-with-search-ee796e9e.cjs.dev.js → list-with-search-e3ccba98.cjs.prod.js} +0 -2
- package/dist/{navbar-de19b951.cjs.prod.js → navbar-00a55ccf.cjs.prod.js} +53 -110
- package/dist/{navbar-af81c703.cjs.dev.js → navbar-1b61993a.cjs.dev.js} +53 -110
- package/dist/{navbar-614b1cce.esm.js → navbar-84dc97f9.esm.js} +53 -110
- package/dist/{new-design-release-info-dialog-629191c2.cjs.dev.js → new-design-release-info-dialog-57843832.cjs.dev.js} +0 -2
- package/dist/{new-design-release-info-dialog-879a4af8.cjs.prod.js → new-design-release-info-dialog-730137e2.cjs.prod.js} +0 -2
- package/dist/{new-design-release-info-dialog-6e19106c.esm.js → new-design-release-info-dialog-e2cd95fa.esm.js} +0 -2
- package/dist/{oidc-15d3a4c1.cjs.dev.js → oidc-4895bd80.cjs.dev.js} +13 -20
- package/dist/{oidc-callback-ab054f67.cjs.prod.js → oidc-callback-121ef6c1.cjs.prod.js} +12 -20
- package/dist/{oidc-callback-ec94dbba.esm.js → oidc-callback-cddf8bb4.esm.js} +12 -20
- package/dist/{oidc-callback-ca559a40.cjs.dev.js → oidc-callback-e60075ab.cjs.dev.js} +12 -20
- package/dist/{oidc-77115492.esm.js → oidc-d7f0409a.esm.js} +13 -20
- package/dist/{oidc-6c79100b.cjs.prod.js → oidc-da4ccc69.cjs.prod.js} +13 -20
- package/dist/{paperclip-23d1e69c.cjs.prod.js → paperclip-6f0b6ae5.cjs.prod.js} +0 -2
- package/dist/{paperclip-a61112e8.esm.js → paperclip-c76aec52.esm.js} +0 -2
- package/dist/{paperclip-d653c134.cjs.dev.js → paperclip-ec55e4a0.cjs.dev.js} +0 -2
- package/dist/{plugin-0ee6aee4.cjs.dev.js → plugin-16c01245.cjs.dev.js} +0 -2
- package/dist/{plugin-3d353a5b.esm.js → plugin-279f88cd.esm.js} +0 -2
- package/dist/{plugin-7e57f237.cjs.prod.js → plugin-f199ed20.cjs.prod.js} +0 -2
- package/dist/{project-container-8ca21a5f.cjs.dev.js → project-container-51e70095.cjs.dev.js} +21 -46
- package/dist/{project-container-493422d8.esm.js → project-container-98c2a789.esm.js} +21 -46
- package/dist/{project-container-805662a2.cjs.prod.js → project-container-e7f950b0.cjs.prod.js} +21 -45
- package/dist/{project-expired-f660e923.cjs.prod.js → project-expired-1cd4843f.cjs.prod.js} +6 -11
- package/dist/{project-expired-fe211a3d.esm.js → project-expired-513a8320.esm.js} +6 -11
- package/dist/{project-expired-d020ec6f.cjs.dev.js → project-expired-fd3efa19.cjs.dev.js} +6 -11
- package/dist/{project-not-found-b5502e08.esm.js → project-not-found-8bab15e7.esm.js} +6 -9
- package/dist/{project-not-found-46f1cd62.cjs.prod.js → project-not-found-9f21b30c.cjs.prod.js} +6 -9
- package/dist/{project-not-found-179f39e9.cjs.dev.js → project-not-found-e5eb5b7e.cjs.dev.js} +6 -9
- package/dist/{project-not-initialized-e9905ca9.cjs.dev.js → project-not-initialized-3cdb8692.cjs.dev.js} +6 -11
- package/dist/{project-not-initialized-0a4c847b.cjs.prod.js → project-not-initialized-a1a8d9dc.cjs.prod.js} +6 -11
- package/dist/{project-not-initialized-f14ed881.esm.js → project-not-initialized-a8562fd3.esm.js} +6 -11
- package/dist/{project-suspended-a1a46abb.cjs.dev.js → project-suspended-79c67f38.cjs.dev.js} +6 -10
- package/dist/{project-suspended-994f5d16.cjs.prod.js → project-suspended-8a558cb8.cjs.prod.js} +6 -10
- package/dist/{project-suspended-8e50fb5d.esm.js → project-suspended-e0fb960a.esm.js} +6 -10
- package/dist/{quick-access-4f55c2a1.cjs.dev.js → quick-access-0fb30eee.cjs.dev.js} +124 -194
- package/dist/{quick-access-9742ff95.esm.js → quick-access-8c7919d2.esm.js} +124 -194
- package/dist/{quick-access-e7d9ec95.cjs.prod.js → quick-access-ff6fee75.cjs.prod.js} +123 -191
- package/dist/{redirect-to-login-58e4614d.esm.js → redirect-to-login-02167259.esm.js} +14 -18
- package/dist/{redirect-to-login-d893ba27.cjs.prod.js → redirect-to-login-3c2a1258.cjs.prod.js} +14 -18
- package/dist/{redirect-to-login-7c89cdfd.cjs.dev.js → redirect-to-login-73396807.cjs.dev.js} +14 -18
- package/dist/{redirect-to-logout-7fa846f5.cjs.prod.js → redirect-to-logout-838758f3.cjs.prod.js} +7 -12
- package/dist/{redirect-to-logout-2967472e.esm.js → redirect-to-logout-b5c8fdbf.esm.js} +7 -12
- package/dist/{redirect-to-logout-429bb215.cjs.dev.js → redirect-to-logout-be3e139d.cjs.dev.js} +7 -12
- package/dist/{redirect-to-project-create-048efa71.cjs.prod.js → redirect-to-project-create-2266c427.cjs.prod.js} +1 -3
- package/dist/{redirect-to-project-create-f0e7b35e.cjs.dev.js → redirect-to-project-create-7b476aa6.cjs.dev.js} +1 -3
- package/dist/{redirect-to-project-create-052f293e.esm.js → redirect-to-project-create-c5323504.esm.js} +1 -3
- package/dist/{redirector-47a6be71.esm.js → redirector-368eeb0f.esm.js} +1 -8
- package/dist/{redirector-0d98f9df.cjs.dev.js → redirector-ec9fa17f.cjs.prod.js} +1 -8
- package/dist/{redirector-77ce2f5c.cjs.prod.js → redirector-f71198cc.cjs.dev.js} +1 -8
- package/dist/{requests-in-flight-loader-2d2db11b.cjs.dev.js → requests-in-flight-loader-3a40411c.cjs.dev.js} +5 -9
- package/dist/{requests-in-flight-loader-30deef32.esm.js → requests-in-flight-loader-78bce8a5.esm.js} +5 -9
- package/dist/{requests-in-flight-loader-06e4f458.cjs.prod.js → requests-in-flight-loader-d7963726.cjs.prod.js} +5 -9
- package/dist/{rocket-4b088727.esm.js → rocket-067c2f8c.esm.js} +0 -2
- package/dist/{rocket-3e3f0a98.cjs.prod.js → rocket-c6d44215.cjs.dev.js} +0 -2
- package/dist/{rocket-95b6858d.cjs.dev.js → rocket-f0bfae34.cjs.prod.js} +0 -2
- package/dist/{route-catch-all-3b490df1.cjs.prod.js → route-catch-all-293a1269.cjs.dev.js} +6 -6
- package/dist/{route-catch-all-9ac99936.cjs.dev.js → route-catch-all-373c69c6.cjs.prod.js} +6 -6
- package/dist/{route-catch-all-01cf0095.esm.js → route-catch-all-4af77675.esm.js} +6 -6
- package/dist/{service-page-project-switcher-52105f71.cjs.dev.js → service-page-project-switcher-2a4bc3ee.cjs.dev.js} +3 -4
- package/dist/{service-page-project-switcher-b1384fa6.cjs.prod.js → service-page-project-switcher-617a204e.cjs.prod.js} +3 -3
- package/dist/{service-page-project-switcher-ef6a88ea.esm.js → service-page-project-switcher-b99782a7.esm.js} +3 -4
- package/dist/{speedometer-2881cef6.cjs.prod.js → speedometer-0de260cf.cjs.prod.js} +0 -2
- package/dist/{speedometer-54f872f2.cjs.dev.js → speedometer-aedd9660.cjs.dev.js} +0 -2
- package/dist/{speedometer-08a11d5a.esm.js → speedometer-baa6ae82.esm.js} +0 -2
- package/dist/{star-52bf7a64.cjs.dev.js → star-49745c72.cjs.dev.js} +0 -2
- package/dist/{star-15244db1.esm.js → star-bd723a9c.esm.js} +0 -2
- package/dist/{star-f8502efb.cjs.prod.js → star-c11b0683.cjs.prod.js} +0 -2
- package/dist/{tag-multi-3be995ac.esm.js → tag-multi-1dee8212.esm.js} +0 -2
- package/dist/{tag-multi-1d1553b6.cjs.dev.js → tag-multi-2e7a68ec.cjs.dev.js} +0 -2
- package/dist/{tag-multi-f9acb1c2.cjs.prod.js → tag-multi-f8d9c9e6.cjs.prod.js} +0 -2
- package/dist/{tree-structure-c8753526.esm.js → tree-structure-0a1dc6bf.esm.js} +0 -2
- package/dist/{tree-structure-4650688d.cjs.dev.js → tree-structure-690366f9.cjs.prod.js} +0 -2
- package/dist/{tree-structure-f24ee3f6.cjs.prod.js → tree-structure-8c974c7a.cjs.dev.js} +0 -2
- package/dist/{use-applications-menu-a5568a7d.cjs.prod.js → use-applications-menu-2046cce4.cjs.dev.js} +30 -40
- package/dist/{use-applications-menu-3e85b058.cjs.dev.js → use-applications-menu-84a888d7.cjs.prod.js} +30 -40
- package/dist/{use-applications-menu-824f1519.esm.js → use-applications-menu-daf4a744.esm.js} +30 -40
- package/dist/{use-is-served-by-proxy-499bfa16.esm.js → use-is-served-by-proxy-77984220.esm.js} +0 -2
- package/dist/{use-is-served-by-proxy-2b4916e5.cjs.dev.js → use-is-served-by-proxy-845cace5.cjs.prod.js} +0 -2
- package/dist/{use-is-served-by-proxy-51e76976.cjs.prod.js → use-is-served-by-proxy-ed411f45.cjs.dev.js} +0 -2
- package/dist/{user-filled-2e6cb25e.cjs.dev.js → user-filled-58af1ae4.cjs.prod.js} +0 -2
- package/dist/{user-filled-815b49a0.cjs.prod.js → user-filled-5dd7a51a.cjs.dev.js} +0 -2
- package/dist/{user-filled-2dc4e79e.esm.js → user-filled-d40a7e17.esm.js} +0 -2
- package/dist/{user-settings-menu-1e5736ab.esm.js → user-settings-menu-b8ecc868.esm.js} +16 -53
- package/dist/{user-settings-menu-92a5cb53.cjs.prod.js → user-settings-menu-c50b95e4.cjs.prod.js} +16 -52
- package/dist/{user-settings-menu-615d91e4.cjs.dev.js → user-settings-menu-fe393647.cjs.dev.js} +16 -53
- package/dist/{version-tracker-5f6c37e6.cjs.dev.js → version-tracker-3b9eb5c6.cjs.dev.js} +5 -5
- package/dist/{version-tracker-73a18ff9.cjs.prod.js → version-tracker-4ad14ed3.cjs.prod.js} +5 -5
- package/dist/{version-tracker-3e5d5525.esm.js → version-tracker-f2e3185f.esm.js} +5 -5
- package/dist/{world-c5ea311a.esm.js → world-1b0e72fc.esm.js} +0 -2
- package/dist/{world-973090a5.cjs.dev.js → world-bfd04f52.cjs.dev.js} +0 -2
- package/dist/{world-e1f9dbf8.cjs.prod.js → world-f921d80c.cjs.prod.js} +0 -2
- package/package.json +41 -27
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +78 -112
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +78 -112
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +78 -112
|
@@ -2,12 +2,12 @@ import { useLocation } from 'react-router-dom';
|
|
|
2
2
|
import { v4 } from 'uuid';
|
|
3
3
|
import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
|
|
4
4
|
import { trimLeadingAndTrailingSlashes, joinPaths } from '@commercetools-frontend/url-utils';
|
|
5
|
-
import { b as OIDC_RESPONSE_TYPES } from './constants-
|
|
6
|
-
import { u as useIsServedByProxy } from './use-is-served-by-proxy-
|
|
7
|
-
import { g as getMcOrigin } from './get-mc-origin-
|
|
8
|
-
import { b as buildOidcScope } from './oidc-
|
|
9
|
-
import { b as getActiveProjectKey, o as setSessionScope, p as setSessionState } from './configure-apollo-
|
|
10
|
-
import { R as Redirector } from './redirector-
|
|
5
|
+
import { b as OIDC_RESPONSE_TYPES } from './constants-b962b73e.esm.js';
|
|
6
|
+
import { u as useIsServedByProxy } from './use-is-served-by-proxy-77984220.esm.js';
|
|
7
|
+
import { g as getMcOrigin } from './get-mc-origin-fecfee07.esm.js';
|
|
8
|
+
import { b as buildOidcScope } from './oidc-d7f0409a.esm.js';
|
|
9
|
+
import { b as getActiveProjectKey, o as setSessionScope, p as setSessionState } from './configure-apollo-89ea99bf.esm.js';
|
|
10
|
+
import { R as Redirector } from './redirector-368eeb0f.esm.js';
|
|
11
11
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
12
12
|
import '@commercetools-frontend/application-shell-connectors';
|
|
13
13
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
@@ -64,30 +64,28 @@ import 'prop-types';
|
|
|
64
64
|
import 'qss';
|
|
65
65
|
|
|
66
66
|
const generateAndCacheNonceWithState = state => {
|
|
67
|
-
const nonce = v4();
|
|
67
|
+
const nonce = v4();
|
|
68
|
+
// We store additional information within the given `nonce`
|
|
68
69
|
// to then retrieve it later when the IdP redirects back
|
|
69
70
|
// to our application. The URL will contain the `nonce` within
|
|
70
71
|
// the id_token and, once validated, we can retrieve and use
|
|
71
72
|
// the state object.
|
|
72
73
|
// https://auth0.com/docs/protocols/oauth2/oauth-state#how-to-use-the-parameter-to-restore-application-state
|
|
73
|
-
|
|
74
74
|
setSessionState(nonce, state);
|
|
75
75
|
return nonce;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
77
|
const RedirectToLogin = () => {
|
|
79
78
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2;
|
|
80
|
-
|
|
81
79
|
const location = useLocation();
|
|
82
80
|
const servedByProxy = useIsServedByProxy();
|
|
83
|
-
|
|
84
81
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
85
82
|
var _window$app$__DEVELOP3, _window$app$__DEVELOP4, _window$app$__DEVELOP5, _window$app$__DEVELOP6, _window$app$__DEVELOP7, _window$app$__DEVELOP8, _window$app$__DEVELOP9, _window$app$__DEVELOP10;
|
|
86
|
-
|
|
87
83
|
// We pick the project key from local storage. This assumes that the value
|
|
88
84
|
// as been previously set when the application starts up.
|
|
89
85
|
// This is necessary to allow switching projects and triggering a new login.
|
|
90
|
-
const nextProjectKey = getActiveProjectKey();
|
|
86
|
+
const nextProjectKey = getActiveProjectKey();
|
|
87
|
+
|
|
88
|
+
// According to the OIDC spec, the `state` parameter is recommended to be sent
|
|
91
89
|
// to the authorization server to help mitigating Cross-Site Request Forgery.
|
|
92
90
|
// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
|
|
93
91
|
// Using `state` or `nonce` is very similar but with subtle differences.
|
|
@@ -96,7 +94,6 @@ const RedirectToLogin = () => {
|
|
|
96
94
|
// and send it to the authorization server as the `state` parameter.
|
|
97
95
|
// https://auth0.com/docs/protocols/oauth2/redirect-users
|
|
98
96
|
// Additionally, we still send the `nonce` parameter as well.
|
|
99
|
-
|
|
100
97
|
const sessionId = generateAndCacheNonceWithState({
|
|
101
98
|
applicationId: window.app.applicationId,
|
|
102
99
|
// Store query parameters to be used after the callback redirect
|
|
@@ -109,10 +106,11 @@ const RedirectToLogin = () => {
|
|
|
109
106
|
oAuthScopes: (_window$app$__DEVELOP3 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP3 === void 0 ? void 0 : (_window$app$__DEVELOP4 = _window$app$__DEVELOP3.oidc) === null || _window$app$__DEVELOP4 === void 0 ? void 0 : _window$app$__DEVELOP4.oAuthScopes,
|
|
110
107
|
additionalOAuthScopes: (_window$app$__DEVELOP5 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP5 === void 0 ? void 0 : (_window$app$__DEVELOP6 = _window$app$__DEVELOP5.oidc) === null || _window$app$__DEVELOP6 === void 0 ? void 0 : _window$app$__DEVELOP6.additionalOAuthScopes,
|
|
111
108
|
teamId: (_window$app$__DEVELOP7 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP7 === void 0 ? void 0 : (_window$app$__DEVELOP8 = _window$app$__DEVELOP7.oidc) === null || _window$app$__DEVELOP8 === void 0 ? void 0 : _window$app$__DEVELOP8.teamId
|
|
112
|
-
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Store session scopes, to be able to detect if requested scopes changed
|
|
113
112
|
// in the application config and invalidate the session.
|
|
114
113
|
// This is only valid for local development.
|
|
115
|
-
|
|
116
114
|
setSessionScope(requestedScope);
|
|
117
115
|
return jsx(Redirector, {
|
|
118
116
|
to: "",
|
|
@@ -129,7 +127,6 @@ const RedirectToLogin = () => {
|
|
|
129
127
|
}
|
|
130
128
|
});
|
|
131
129
|
}
|
|
132
|
-
|
|
133
130
|
const mcOrigin = servedByProxy ? getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
134
131
|
return jsx(Redirector, {
|
|
135
132
|
to: "login",
|
|
@@ -141,7 +138,6 @@ const RedirectToLogin = () => {
|
|
|
141
138
|
}
|
|
142
139
|
});
|
|
143
140
|
};
|
|
144
|
-
|
|
145
141
|
RedirectToLogin.displayName = 'RedirectToLogin';
|
|
146
142
|
|
|
147
143
|
export { RedirectToLogin as default };
|
package/dist/{redirect-to-login-d893ba27.cjs.prod.js → redirect-to-login-3c2a1258.cjs.prod.js}
RENAMED
|
@@ -4,12 +4,12 @@ var reactRouterDom = require('react-router-dom');
|
|
|
4
4
|
var uuid = require('uuid');
|
|
5
5
|
var constants = require('@commercetools-frontend/constants');
|
|
6
6
|
var urlUtils = require('@commercetools-frontend/url-utils');
|
|
7
|
-
var constants$1 = require('./constants-
|
|
8
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
9
|
-
var getMcOrigin = require('./get-mc-origin-
|
|
10
|
-
var oidc = require('./oidc-
|
|
11
|
-
var configureApollo = require('./configure-apollo-
|
|
12
|
-
var redirector = require('./redirector-
|
|
7
|
+
var constants$1 = require('./constants-902cf3f3.cjs.prod.js');
|
|
8
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
9
|
+
var getMcOrigin = require('./get-mc-origin-8f7a578c.cjs.prod.js');
|
|
10
|
+
var oidc = require('./oidc-da4ccc69.cjs.prod.js');
|
|
11
|
+
var configureApollo = require('./configure-apollo-70d83707.cjs.prod.js');
|
|
12
|
+
var redirector = require('./redirector-ec9fa17f.cjs.prod.js');
|
|
13
13
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
14
14
|
require('@commercetools-frontend/application-shell-connectors');
|
|
15
15
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -66,30 +66,28 @@ require('prop-types');
|
|
|
66
66
|
require('qss');
|
|
67
67
|
|
|
68
68
|
const generateAndCacheNonceWithState = state => {
|
|
69
|
-
const nonce = uuid.v4();
|
|
69
|
+
const nonce = uuid.v4();
|
|
70
|
+
// We store additional information within the given `nonce`
|
|
70
71
|
// to then retrieve it later when the IdP redirects back
|
|
71
72
|
// to our application. The URL will contain the `nonce` within
|
|
72
73
|
// the id_token and, once validated, we can retrieve and use
|
|
73
74
|
// the state object.
|
|
74
75
|
// https://auth0.com/docs/protocols/oauth2/oauth-state#how-to-use-the-parameter-to-restore-application-state
|
|
75
|
-
|
|
76
76
|
configureApollo.setSessionState(nonce, state);
|
|
77
77
|
return nonce;
|
|
78
78
|
};
|
|
79
|
-
|
|
80
79
|
const RedirectToLogin = () => {
|
|
81
80
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2;
|
|
82
|
-
|
|
83
81
|
const location = reactRouterDom.useLocation();
|
|
84
82
|
const servedByProxy = useIsServedByProxy.useIsServedByProxy();
|
|
85
|
-
|
|
86
83
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
87
84
|
var _window$app$__DEVELOP3, _window$app$__DEVELOP4, _window$app$__DEVELOP5, _window$app$__DEVELOP6, _window$app$__DEVELOP7, _window$app$__DEVELOP8, _window$app$__DEVELOP9, _window$app$__DEVELOP10;
|
|
88
|
-
|
|
89
85
|
// We pick the project key from local storage. This assumes that the value
|
|
90
86
|
// as been previously set when the application starts up.
|
|
91
87
|
// This is necessary to allow switching projects and triggering a new login.
|
|
92
|
-
const nextProjectKey = configureApollo.getActiveProjectKey();
|
|
88
|
+
const nextProjectKey = configureApollo.getActiveProjectKey();
|
|
89
|
+
|
|
90
|
+
// According to the OIDC spec, the `state` parameter is recommended to be sent
|
|
93
91
|
// to the authorization server to help mitigating Cross-Site Request Forgery.
|
|
94
92
|
// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
|
|
95
93
|
// Using `state` or `nonce` is very similar but with subtle differences.
|
|
@@ -98,7 +96,6 @@ const RedirectToLogin = () => {
|
|
|
98
96
|
// and send it to the authorization server as the `state` parameter.
|
|
99
97
|
// https://auth0.com/docs/protocols/oauth2/redirect-users
|
|
100
98
|
// Additionally, we still send the `nonce` parameter as well.
|
|
101
|
-
|
|
102
99
|
const sessionId = generateAndCacheNonceWithState({
|
|
103
100
|
applicationId: window.app.applicationId,
|
|
104
101
|
// Store query parameters to be used after the callback redirect
|
|
@@ -111,10 +108,11 @@ const RedirectToLogin = () => {
|
|
|
111
108
|
oAuthScopes: (_window$app$__DEVELOP3 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP3 === void 0 ? void 0 : (_window$app$__DEVELOP4 = _window$app$__DEVELOP3.oidc) === null || _window$app$__DEVELOP4 === void 0 ? void 0 : _window$app$__DEVELOP4.oAuthScopes,
|
|
112
109
|
additionalOAuthScopes: (_window$app$__DEVELOP5 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP5 === void 0 ? void 0 : (_window$app$__DEVELOP6 = _window$app$__DEVELOP5.oidc) === null || _window$app$__DEVELOP6 === void 0 ? void 0 : _window$app$__DEVELOP6.additionalOAuthScopes,
|
|
113
110
|
teamId: (_window$app$__DEVELOP7 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP7 === void 0 ? void 0 : (_window$app$__DEVELOP8 = _window$app$__DEVELOP7.oidc) === null || _window$app$__DEVELOP8 === void 0 ? void 0 : _window$app$__DEVELOP8.teamId
|
|
114
|
-
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// Store session scopes, to be able to detect if requested scopes changed
|
|
115
114
|
// in the application config and invalidate the session.
|
|
116
115
|
// This is only valid for local development.
|
|
117
|
-
|
|
118
116
|
configureApollo.setSessionScope(requestedScope);
|
|
119
117
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
120
118
|
to: "",
|
|
@@ -131,7 +129,6 @@ const RedirectToLogin = () => {
|
|
|
131
129
|
}
|
|
132
130
|
});
|
|
133
131
|
}
|
|
134
|
-
|
|
135
132
|
const mcOrigin = servedByProxy ? getMcOrigin.getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
136
133
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
137
134
|
to: "login",
|
|
@@ -143,7 +140,6 @@ const RedirectToLogin = () => {
|
|
|
143
140
|
}
|
|
144
141
|
});
|
|
145
142
|
};
|
|
146
|
-
|
|
147
143
|
RedirectToLogin.displayName = 'RedirectToLogin';
|
|
148
144
|
|
|
149
145
|
exports["default"] = RedirectToLogin;
|
package/dist/{redirect-to-login-7c89cdfd.cjs.dev.js → redirect-to-login-73396807.cjs.dev.js}
RENAMED
|
@@ -4,12 +4,12 @@ var reactRouterDom = require('react-router-dom');
|
|
|
4
4
|
var uuid = require('uuid');
|
|
5
5
|
var constants = require('@commercetools-frontend/constants');
|
|
6
6
|
var urlUtils = require('@commercetools-frontend/url-utils');
|
|
7
|
-
var constants$1 = require('./constants-
|
|
8
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
9
|
-
var getMcOrigin = require('./get-mc-origin-
|
|
10
|
-
var oidc = require('./oidc-
|
|
11
|
-
var configureApollo = require('./configure-apollo-
|
|
12
|
-
var redirector = require('./redirector-
|
|
7
|
+
var constants$1 = require('./constants-e51cdcc0.cjs.dev.js');
|
|
8
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
9
|
+
var getMcOrigin = require('./get-mc-origin-a86dff20.cjs.dev.js');
|
|
10
|
+
var oidc = require('./oidc-4895bd80.cjs.dev.js');
|
|
11
|
+
var configureApollo = require('./configure-apollo-de2b9aa2.cjs.dev.js');
|
|
12
|
+
var redirector = require('./redirector-f71198cc.cjs.dev.js');
|
|
13
13
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
14
14
|
require('@commercetools-frontend/application-shell-connectors');
|
|
15
15
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -66,30 +66,28 @@ require('prop-types');
|
|
|
66
66
|
require('qss');
|
|
67
67
|
|
|
68
68
|
const generateAndCacheNonceWithState = state => {
|
|
69
|
-
const nonce = uuid.v4();
|
|
69
|
+
const nonce = uuid.v4();
|
|
70
|
+
// We store additional information within the given `nonce`
|
|
70
71
|
// to then retrieve it later when the IdP redirects back
|
|
71
72
|
// to our application. The URL will contain the `nonce` within
|
|
72
73
|
// the id_token and, once validated, we can retrieve and use
|
|
73
74
|
// the state object.
|
|
74
75
|
// https://auth0.com/docs/protocols/oauth2/oauth-state#how-to-use-the-parameter-to-restore-application-state
|
|
75
|
-
|
|
76
76
|
configureApollo.setSessionState(nonce, state);
|
|
77
77
|
return nonce;
|
|
78
78
|
};
|
|
79
|
-
|
|
80
79
|
const RedirectToLogin = () => {
|
|
81
80
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2;
|
|
82
|
-
|
|
83
81
|
const location = reactRouterDom.useLocation();
|
|
84
82
|
const servedByProxy = useIsServedByProxy.useIsServedByProxy();
|
|
85
|
-
|
|
86
83
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
87
84
|
var _window$app$__DEVELOP3, _window$app$__DEVELOP4, _window$app$__DEVELOP5, _window$app$__DEVELOP6, _window$app$__DEVELOP7, _window$app$__DEVELOP8, _window$app$__DEVELOP9, _window$app$__DEVELOP10;
|
|
88
|
-
|
|
89
85
|
// We pick the project key from local storage. This assumes that the value
|
|
90
86
|
// as been previously set when the application starts up.
|
|
91
87
|
// This is necessary to allow switching projects and triggering a new login.
|
|
92
|
-
const nextProjectKey = configureApollo.getActiveProjectKey();
|
|
88
|
+
const nextProjectKey = configureApollo.getActiveProjectKey();
|
|
89
|
+
|
|
90
|
+
// According to the OIDC spec, the `state` parameter is recommended to be sent
|
|
93
91
|
// to the authorization server to help mitigating Cross-Site Request Forgery.
|
|
94
92
|
// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
|
|
95
93
|
// Using `state` or `nonce` is very similar but with subtle differences.
|
|
@@ -98,7 +96,6 @@ const RedirectToLogin = () => {
|
|
|
98
96
|
// and send it to the authorization server as the `state` parameter.
|
|
99
97
|
// https://auth0.com/docs/protocols/oauth2/redirect-users
|
|
100
98
|
// Additionally, we still send the `nonce` parameter as well.
|
|
101
|
-
|
|
102
99
|
const sessionId = generateAndCacheNonceWithState({
|
|
103
100
|
applicationId: window.app.applicationId,
|
|
104
101
|
// Store query parameters to be used after the callback redirect
|
|
@@ -111,10 +108,11 @@ const RedirectToLogin = () => {
|
|
|
111
108
|
oAuthScopes: (_window$app$__DEVELOP3 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP3 === void 0 ? void 0 : (_window$app$__DEVELOP4 = _window$app$__DEVELOP3.oidc) === null || _window$app$__DEVELOP4 === void 0 ? void 0 : _window$app$__DEVELOP4.oAuthScopes,
|
|
112
109
|
additionalOAuthScopes: (_window$app$__DEVELOP5 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP5 === void 0 ? void 0 : (_window$app$__DEVELOP6 = _window$app$__DEVELOP5.oidc) === null || _window$app$__DEVELOP6 === void 0 ? void 0 : _window$app$__DEVELOP6.additionalOAuthScopes,
|
|
113
110
|
teamId: (_window$app$__DEVELOP7 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP7 === void 0 ? void 0 : (_window$app$__DEVELOP8 = _window$app$__DEVELOP7.oidc) === null || _window$app$__DEVELOP8 === void 0 ? void 0 : _window$app$__DEVELOP8.teamId
|
|
114
|
-
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// Store session scopes, to be able to detect if requested scopes changed
|
|
115
114
|
// in the application config and invalidate the session.
|
|
116
115
|
// This is only valid for local development.
|
|
117
|
-
|
|
118
116
|
configureApollo.setSessionScope(requestedScope);
|
|
119
117
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
120
118
|
to: "",
|
|
@@ -131,7 +129,6 @@ const RedirectToLogin = () => {
|
|
|
131
129
|
}
|
|
132
130
|
});
|
|
133
131
|
}
|
|
134
|
-
|
|
135
132
|
const mcOrigin = servedByProxy ? getMcOrigin.getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
136
133
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
137
134
|
to: "login",
|
|
@@ -143,7 +140,6 @@ const RedirectToLogin = () => {
|
|
|
143
140
|
}
|
|
144
141
|
});
|
|
145
142
|
};
|
|
146
|
-
|
|
147
143
|
RedirectToLogin.displayName = 'RedirectToLogin';
|
|
148
144
|
|
|
149
145
|
exports["default"] = RedirectToLogin;
|
package/dist/{redirect-to-logout-7fa846f5.cjs.prod.js → redirect-to-logout-838758f3.cjs.prod.js}
RENAMED
|
@@ -11,11 +11,11 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
var reactRouterDom = require('react-router-dom');
|
|
13
13
|
var constants = require('@commercetools-frontend/constants');
|
|
14
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
15
|
-
var getMcOrigin = require('./get-mc-origin-
|
|
16
|
-
var configureApollo = require('./configure-apollo-
|
|
17
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
18
|
-
var redirector = require('./redirector-
|
|
14
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
15
|
+
var getMcOrigin = require('./get-mc-origin-8f7a578c.cjs.prod.js');
|
|
16
|
+
var configureApollo = require('./configure-apollo-70d83707.cjs.prod.js');
|
|
17
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-a03f4e81.cjs.prod.js');
|
|
18
|
+
var redirector = require('./redirector-ec9fa17f.cjs.prod.js');
|
|
19
19
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
20
20
|
require('@commercetools-frontend/application-shell-connectors');
|
|
21
21
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -35,7 +35,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
|
35
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
37
37
|
require('@commercetools-frontend/sentry');
|
|
38
|
-
require('./constants-
|
|
38
|
+
require('./constants-902cf3f3.cjs.prod.js');
|
|
39
39
|
require('@commercetools-frontend/react-notifications');
|
|
40
40
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
41
41
|
require('redux-logger');
|
|
@@ -96,7 +96,7 @@ require('@flopflip/http-adapter');
|
|
|
96
96
|
require('@flopflip/launchdarkly-adapter');
|
|
97
97
|
require('react-redux');
|
|
98
98
|
require('lodash/upperFirst');
|
|
99
|
-
require('./oidc-
|
|
99
|
+
require('./oidc-da4ccc69.cjs.prod.js');
|
|
100
100
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
101
101
|
require('@commercetools-frontend/actions-global');
|
|
102
102
|
require('@commercetools-frontend/application-config/ssr');
|
|
@@ -114,24 +114,19 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
|
|
|
114
114
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
115
115
|
|
|
116
116
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
117
|
-
|
|
118
117
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
119
|
-
|
|
120
118
|
// When the application redirects to this route, we always force a hard redirect
|
|
121
119
|
// to the logout route of the authentication service.
|
|
122
120
|
const RedirectToLogout = props => {
|
|
123
121
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2, _props$reason;
|
|
124
|
-
|
|
125
122
|
const location = reactRouterDom.useLocation();
|
|
126
123
|
const servedByProxy = useIsServedByProxy.useIsServedByProxy();
|
|
127
|
-
|
|
128
124
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
129
125
|
// Remove the `sessionToken` from storage, so that the AppShell can initiate
|
|
130
126
|
// a new authorization flow.
|
|
131
127
|
configureApollo.clearSession();
|
|
132
128
|
return jsxRuntime.jsx(dist_commercetoolsFrontendApplicationShell.RedirectToLogin, {});
|
|
133
129
|
}
|
|
134
|
-
|
|
135
130
|
const mcOrigin = servedByProxy ? getMcOrigin.getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
136
131
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
137
132
|
to: "logout",
|
|
@@ -9,11 +9,11 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
10
|
import { useLocation } from 'react-router-dom';
|
|
11
11
|
import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
|
|
12
|
-
import { u as useIsServedByProxy } from './use-is-served-by-proxy-
|
|
13
|
-
import { g as getMcOrigin } from './get-mc-origin-
|
|
14
|
-
import { q as clearSession } from './configure-apollo-
|
|
15
|
-
import { R as RedirectToLogin } from './index-
|
|
16
|
-
import { R as Redirector } from './redirector-
|
|
12
|
+
import { u as useIsServedByProxy } from './use-is-served-by-proxy-77984220.esm.js';
|
|
13
|
+
import { g as getMcOrigin } from './get-mc-origin-fecfee07.esm.js';
|
|
14
|
+
import { q as clearSession } from './configure-apollo-89ea99bf.esm.js';
|
|
15
|
+
import { R as RedirectToLogin } from './index-667035b8.esm.js';
|
|
16
|
+
import { R as Redirector } from './redirector-368eeb0f.esm.js';
|
|
17
17
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
18
18
|
import '@commercetools-frontend/application-shell-connectors';
|
|
19
19
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
@@ -33,7 +33,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
|
33
33
|
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
34
34
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
35
35
|
import '@commercetools-frontend/sentry';
|
|
36
|
-
import './constants-
|
|
36
|
+
import './constants-b962b73e.esm.js';
|
|
37
37
|
import '@commercetools-frontend/react-notifications';
|
|
38
38
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
39
39
|
import 'redux-logger';
|
|
@@ -94,31 +94,26 @@ import '@flopflip/http-adapter';
|
|
|
94
94
|
import '@flopflip/launchdarkly-adapter';
|
|
95
95
|
import 'react-redux';
|
|
96
96
|
import 'lodash/upperFirst';
|
|
97
|
-
import './oidc-
|
|
97
|
+
import './oidc-d7f0409a.esm.js';
|
|
98
98
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
|
99
99
|
import '@commercetools-frontend/actions-global';
|
|
100
100
|
import '@commercetools-frontend/application-config/ssr';
|
|
101
101
|
import 'qss';
|
|
102
102
|
|
|
103
103
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
104
|
-
|
|
105
104
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
106
|
-
|
|
107
105
|
// When the application redirects to this route, we always force a hard redirect
|
|
108
106
|
// to the logout route of the authentication service.
|
|
109
107
|
const RedirectToLogout = props => {
|
|
110
108
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2, _props$reason;
|
|
111
|
-
|
|
112
109
|
const location = useLocation();
|
|
113
110
|
const servedByProxy = useIsServedByProxy();
|
|
114
|
-
|
|
115
111
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
116
112
|
// Remove the `sessionToken` from storage, so that the AppShell can initiate
|
|
117
113
|
// a new authorization flow.
|
|
118
114
|
clearSession();
|
|
119
115
|
return jsx(RedirectToLogin, {});
|
|
120
116
|
}
|
|
121
|
-
|
|
122
117
|
const mcOrigin = servedByProxy ? getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
123
118
|
return jsx(Redirector, {
|
|
124
119
|
to: "logout",
|
package/dist/{redirect-to-logout-429bb215.cjs.dev.js → redirect-to-logout-be3e139d.cjs.dev.js}
RENAMED
|
@@ -11,11 +11,11 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
12
|
var reactRouterDom = require('react-router-dom');
|
|
13
13
|
var constants = require('@commercetools-frontend/constants');
|
|
14
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
15
|
-
var getMcOrigin = require('./get-mc-origin-
|
|
16
|
-
var configureApollo = require('./configure-apollo-
|
|
17
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
18
|
-
var redirector = require('./redirector-
|
|
14
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
15
|
+
var getMcOrigin = require('./get-mc-origin-a86dff20.cjs.dev.js');
|
|
16
|
+
var configureApollo = require('./configure-apollo-de2b9aa2.cjs.dev.js');
|
|
17
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-02a17607.cjs.dev.js');
|
|
18
|
+
var redirector = require('./redirector-f71198cc.cjs.dev.js');
|
|
19
19
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
20
20
|
require('@commercetools-frontend/application-shell-connectors');
|
|
21
21
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -35,7 +35,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
|
35
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
37
37
|
require('@commercetools-frontend/sentry');
|
|
38
|
-
require('./constants-
|
|
38
|
+
require('./constants-e51cdcc0.cjs.dev.js');
|
|
39
39
|
require('@commercetools-frontend/react-notifications');
|
|
40
40
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
41
41
|
require('redux-logger');
|
|
@@ -96,7 +96,7 @@ require('@flopflip/http-adapter');
|
|
|
96
96
|
require('@flopflip/launchdarkly-adapter');
|
|
97
97
|
require('react-redux');
|
|
98
98
|
require('lodash/upperFirst');
|
|
99
|
-
require('./oidc-
|
|
99
|
+
require('./oidc-4895bd80.cjs.dev.js');
|
|
100
100
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
101
101
|
require('@commercetools-frontend/actions-global');
|
|
102
102
|
require('@commercetools-frontend/application-config/ssr');
|
|
@@ -114,24 +114,19 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
|
|
|
114
114
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
115
115
|
|
|
116
116
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
117
|
-
|
|
118
117
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
119
|
-
|
|
120
118
|
// When the application redirects to this route, we always force a hard redirect
|
|
121
119
|
// to the logout route of the authentication service.
|
|
122
120
|
const RedirectToLogout = props => {
|
|
123
121
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2, _props$reason;
|
|
124
|
-
|
|
125
122
|
const location = reactRouterDom.useLocation();
|
|
126
123
|
const servedByProxy = useIsServedByProxy.useIsServedByProxy();
|
|
127
|
-
|
|
128
124
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
129
125
|
// Remove the `sessionToken` from storage, so that the AppShell can initiate
|
|
130
126
|
// a new authorization flow.
|
|
131
127
|
configureApollo.clearSession();
|
|
132
128
|
return jsxRuntime.jsx(dist_commercetoolsFrontendApplicationShell.RedirectToLogin, {});
|
|
133
129
|
}
|
|
134
|
-
|
|
135
130
|
const mcOrigin = servedByProxy ? getMcOrigin.getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
136
131
|
return jsxRuntime.jsx(redirector.Redirector, {
|
|
137
132
|
to: "logout",
|
|
@@ -6,7 +6,7 @@ var designSystem = require('@commercetools-uikit/design-system');
|
|
|
6
6
|
var notifications = require('@commercetools-uikit/notifications');
|
|
7
7
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
8
8
|
var Text = require('@commercetools-uikit/text');
|
|
9
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
9
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
10
10
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
11
11
|
require('@commercetools-frontend/application-shell-connectors');
|
|
12
12
|
|
|
@@ -28,12 +28,10 @@ const RedirectToProjectCreate = () => {
|
|
|
28
28
|
* In turn this intends wo make explicit that we never want to
|
|
29
29
|
* render and instead just navigate away.
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
31
|
if (servedByProxy === true) {
|
|
33
32
|
useIsServedByProxy.location.replace('/account/projects/new');
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
return jsxRuntime.jsx("div", {
|
|
38
36
|
css: /*#__PURE__*/react.css("align-self:center;margin-top:", designSystem.customProperties.spacingXl, ";max-width:", designSystem.customProperties.constraint10, ";" + ("" ), "" ),
|
|
39
37
|
children: jsxRuntime.jsx(Card__default["default"], {
|
|
@@ -6,7 +6,7 @@ var designSystem = require('@commercetools-uikit/design-system');
|
|
|
6
6
|
var notifications = require('@commercetools-uikit/notifications');
|
|
7
7
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
8
8
|
var Text = require('@commercetools-uikit/text');
|
|
9
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
9
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
10
10
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
11
11
|
require('@commercetools-frontend/application-shell-connectors');
|
|
12
12
|
|
|
@@ -28,12 +28,10 @@ const RedirectToProjectCreate = () => {
|
|
|
28
28
|
* In turn this intends wo make explicit that we never want to
|
|
29
29
|
* render and instead just navigate away.
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
31
|
if (servedByProxy === true) {
|
|
33
32
|
useIsServedByProxy.location.replace('/account/projects/new');
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
return jsxRuntime.jsx("div", {
|
|
38
36
|
css: /*#__PURE__*/react.css("align-self:center;margin-top:", designSystem.customProperties.spacingXl, ";max-width:", designSystem.customProperties.constraint10, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:RedirectToProjectCreate;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlZGlyZWN0LXRvLXByb2plY3QtY3JlYXRlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QmMiLCJmaWxlIjoicmVkaXJlY3QtdG8tcHJvamVjdC1jcmVhdGUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IENhcmQgZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvY2FyZCc7XG5pbXBvcnQgeyBjdXN0b21Qcm9wZXJ0aWVzIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5pbXBvcnQgeyBDb250ZW50Tm90aWZpY2F0aW9uIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvbm90aWZpY2F0aW9ucyc7XG5pbXBvcnQgU3BhY2luZ3MgZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvc3BhY2luZ3MnO1xuaW1wb3J0IFRleHQgZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvdGV4dCc7XG5pbXBvcnQgdXNlSXNTZXJ2ZWRCeVByb3h5IGZyb20gJy4uLy4uL2hvb2tzL3VzZS1pc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HJvamVjdCBmcm9tIHlvdXIgbG9jYWwgZW52aXJvbm1lbnQuXG4gICAgICAgICAgPC9UZXh0LkJvZHk+XG4gICAgICAgIDwvU3BhY2luZ3MuU3RhY2s+XG4gICAgICA8L0NhcmQ+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuUmVkaXJlY3RUb1Byb2plY3RDcmVhdGUuZGlzcGxheU5hbWUgPSAnUmVkaXJlY3RUb1Byb2plY3RDcmVhdGUnO1xuXG5leHBvcnQgZGVmYXVsdCBSZWRpcmVjdFRvUHJvamVjdENyZWF0ZTtcbiJdfQ== */"),
|
|
39
37
|
children: jsxRuntime.jsx(Card__default["default"], {
|
|
@@ -4,7 +4,7 @@ import { customProperties } from '@commercetools-uikit/design-system';
|
|
|
4
4
|
import { ContentNotification } from '@commercetools-uikit/notifications';
|
|
5
5
|
import Spacings from '@commercetools-uikit/spacings';
|
|
6
6
|
import Text from '@commercetools-uikit/text';
|
|
7
|
-
import { u as useIsServedByProxy, l as location } from './use-is-served-by-proxy-
|
|
7
|
+
import { u as useIsServedByProxy, l as location } from './use-is-served-by-proxy-77984220.esm.js';
|
|
8
8
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
9
9
|
import '@commercetools-frontend/application-shell-connectors';
|
|
10
10
|
|
|
@@ -20,12 +20,10 @@ const RedirectToProjectCreate = () => {
|
|
|
20
20
|
* In turn this intends wo make explicit that we never want to
|
|
21
21
|
* render and instead just navigate away.
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
23
|
if (servedByProxy === true) {
|
|
25
24
|
location.replace('/account/projects/new');
|
|
26
25
|
return null;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
return jsx("div", {
|
|
30
28
|
css: /*#__PURE__*/css("align-self:center;margin-top:", customProperties.spacingXl, ";max-width:", customProperties.constraint10, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:RedirectToProjectCreate;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=ut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
@@ -11,26 +11,20 @@ import _pt from 'prop-types';
|
|
|
11
11
|
import _URL from '@babel/runtime-corejs3/core-js-stable/url';
|
|
12
12
|
import { useEffect } from 'react';
|
|
13
13
|
import { encode } from 'qss';
|
|
14
|
-
import { l as location } from './use-is-served-by-proxy-
|
|
14
|
+
import { l as location } from './use-is-served-by-proxy-77984220.esm.js';
|
|
15
15
|
|
|
16
16
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
17
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
|
|
20
18
|
const redirectTo = targetUrl => {
|
|
21
19
|
location.replace(targetUrl);
|
|
22
20
|
};
|
|
23
|
-
|
|
24
21
|
const Redirector = props => {
|
|
25
22
|
var _props$origin, _props$queryParams, _enhancedLocation$que;
|
|
26
|
-
|
|
27
23
|
// For now the authentication service runs on the same domain as the application,
|
|
28
24
|
// even on development (using the webpack dev server).
|
|
29
25
|
const originUrl = (_props$origin = props.origin) !== null && _props$origin !== void 0 ? _props$origin : window.location.origin;
|
|
30
26
|
const enhancedLocation = props.location || {};
|
|
31
|
-
|
|
32
27
|
const searchQuery = _objectSpread(_objectSpread({}, (_props$queryParams = props.queryParams) !== null && _props$queryParams !== void 0 ? _props$queryParams : {}), (_enhancedLocation$que = enhancedLocation.query) !== null && _enhancedLocation$que !== void 0 ? _enhancedLocation$que : {});
|
|
33
|
-
|
|
34
28
|
const targetUrlObject = new _URL(originUrl);
|
|
35
29
|
targetUrlObject.pathname = props.to || targetUrlObject.pathname;
|
|
36
30
|
targetUrlObject.search = "?".concat(encode(searchQuery));
|
|
@@ -40,7 +34,6 @@ const Redirector = props => {
|
|
|
40
34
|
}, [targetUrl]);
|
|
41
35
|
return null;
|
|
42
36
|
};
|
|
43
|
-
|
|
44
37
|
Redirector.propTypes = {
|
|
45
38
|
to: _pt.string.isRequired,
|
|
46
39
|
origin: _pt.string,
|
|
@@ -13,7 +13,7 @@ var _pt = require('prop-types');
|
|
|
13
13
|
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
14
14
|
var react = require('react');
|
|
15
15
|
var qss = require('qss');
|
|
16
|
-
var useIsServedByProxy = require('./use-is-served-by-proxy-
|
|
16
|
+
var useIsServedByProxy = require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
17
17
|
|
|
18
18
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -29,23 +29,17 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
|
29
29
|
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
30
30
|
|
|
31
31
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
|
-
|
|
33
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
34
|
-
|
|
35
33
|
const redirectTo = targetUrl => {
|
|
36
34
|
useIsServedByProxy.location.replace(targetUrl);
|
|
37
35
|
};
|
|
38
|
-
|
|
39
36
|
const Redirector = props => {
|
|
40
37
|
var _props$origin, _props$queryParams, _enhancedLocation$que;
|
|
41
|
-
|
|
42
38
|
// For now the authentication service runs on the same domain as the application,
|
|
43
39
|
// even on development (using the webpack dev server).
|
|
44
40
|
const originUrl = (_props$origin = props.origin) !== null && _props$origin !== void 0 ? _props$origin : window.location.origin;
|
|
45
41
|
const enhancedLocation = props.location || {};
|
|
46
|
-
|
|
47
42
|
const searchQuery = _objectSpread(_objectSpread({}, (_props$queryParams = props.queryParams) !== null && _props$queryParams !== void 0 ? _props$queryParams : {}), (_enhancedLocation$que = enhancedLocation.query) !== null && _enhancedLocation$que !== void 0 ? _enhancedLocation$que : {});
|
|
48
|
-
|
|
49
43
|
const targetUrlObject = new _URL__default["default"](originUrl);
|
|
50
44
|
targetUrlObject.pathname = props.to || targetUrlObject.pathname;
|
|
51
45
|
targetUrlObject.search = "?".concat(qss.encode(searchQuery));
|
|
@@ -55,7 +49,6 @@ const Redirector = props => {
|
|
|
55
49
|
}, [targetUrl]);
|
|
56
50
|
return null;
|
|
57
51
|
};
|
|
58
|
-
|
|
59
52
|
Redirector.propTypes = {
|
|
60
53
|
to: _pt__default["default"].string.isRequired,
|
|
61
54
|
origin: _pt__default["default"].string,
|