@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
|
@@ -32,8 +32,8 @@ import { createEnhancedHistory } from '@commercetools-frontend/browser-history';
|
|
|
32
32
|
import { DOMAINS } from '@commercetools-frontend/constants';
|
|
33
33
|
import { NotificationProviderForCustomComponent, NotificationsList } from '@commercetools-frontend/react-notifications';
|
|
34
34
|
import { createTestMiddleware } from '@commercetools-frontend/sdk/test-utils';
|
|
35
|
-
import { A as ApplicationEntryPoint } from '../../dist/application-entry-point-
|
|
36
|
-
import { n as createReduxStore, d as createApolloClient } from '../../dist/configure-apollo-
|
|
35
|
+
import { A as ApplicationEntryPoint } from '../../dist/application-entry-point-a1dfe994.esm.js';
|
|
36
|
+
import { n as createReduxStore, d as createApolloClient } from '../../dist/configure-apollo-89ea99bf.esm.js';
|
|
37
37
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
38
38
|
import '@commercetools-frontend/application-components';
|
|
39
39
|
import '@commercetools-frontend/permissions';
|
|
@@ -50,7 +50,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
|
50
50
|
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
51
51
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
52
52
|
import '@commercetools-frontend/sentry';
|
|
53
|
-
import '../../dist/constants-
|
|
53
|
+
import '../../dist/constants-b962b73e.esm.js';
|
|
54
54
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
55
55
|
import 'redux-logger';
|
|
56
56
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
@@ -75,10 +75,8 @@ import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
|
75
75
|
import '@apollo/client/link/retry';
|
|
76
76
|
|
|
77
77
|
const _excluded = ["children"],
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
_excluded2 = ["children"];
|
|
80
79
|
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; }
|
|
81
|
-
|
|
82
80
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context9, _context10; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(source), !0)).call(_context9, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context10 = ownKeys(Object(source))).call(_context10, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
83
81
|
const defaultProject = {
|
|
84
82
|
key: 'test-with-big-data',
|
|
@@ -143,61 +141,51 @@ const defaultEnvironment = {
|
|
|
143
141
|
cdnUrl: 'http://localhost:3001',
|
|
144
142
|
servedByProxy: false
|
|
145
143
|
};
|
|
146
|
-
|
|
147
144
|
const LoadingFallback = () => jsx(Fragment, {
|
|
148
145
|
children: 'Loading...'
|
|
149
146
|
});
|
|
147
|
+
LoadingFallback.displayName = 'LoadingFallback';
|
|
150
148
|
|
|
151
|
-
|
|
149
|
+
// For backwards compatibility we need to denormalize the given `permissions` option
|
|
152
150
|
// (which is now deprecated) to `allAppliedPermissions`, in order to pass the value
|
|
153
151
|
// to the `project` prop in the application context provider.
|
|
154
|
-
|
|
155
152
|
const denormalizePermissions = permissions => {
|
|
156
153
|
var _context;
|
|
157
|
-
|
|
158
154
|
if (!permissions) return [];
|
|
159
155
|
return _reduceInstanceProperty(_context = _Object$keys(permissions)).call(_context, (allAppliedPermissions, permissionKey) => [...allAppliedPermissions, {
|
|
160
156
|
name: permissionKey,
|
|
161
157
|
value: permissions[permissionKey]
|
|
162
158
|
}], []);
|
|
163
|
-
};
|
|
159
|
+
};
|
|
160
|
+
// For backwards compatibility we need to denormalize the given `actionRights` option
|
|
164
161
|
// (which is now deprecated) to `allAppliedActionRights`, in order to pass the value
|
|
165
162
|
// to the `project` prop in the application context provider.
|
|
166
|
-
|
|
167
|
-
|
|
168
163
|
const denormalizeActionRights = actionRights => {
|
|
169
164
|
var _context2;
|
|
170
|
-
|
|
171
165
|
if (!actionRights) return [];
|
|
172
166
|
return _reduceInstanceProperty(_context2 = _Object$keys(actionRights)).call(_context2, (allAppliedActionRights, actionRightGroup) => {
|
|
173
167
|
var _context3;
|
|
174
|
-
|
|
175
168
|
return [...allAppliedActionRights, ..._reduceInstanceProperty(_context3 = _Object$keys(actionRights[actionRightGroup])).call(_context3, (allActionRightsByGroup, actionRightKey) => [...allActionRightsByGroup, {
|
|
176
169
|
group: actionRightGroup,
|
|
177
170
|
name: actionRightKey,
|
|
178
171
|
value: actionRights[actionRightGroup][actionRightKey]
|
|
179
172
|
}], [])];
|
|
180
173
|
}, []);
|
|
181
|
-
};
|
|
174
|
+
};
|
|
175
|
+
// For backwards compatibility we need to denormalize the given `dataFences` option
|
|
182
176
|
// (which is now deprecated) to `allAppliedDataFences`, in order to pass the value
|
|
183
177
|
// to the `project` prop in the application context provider.
|
|
184
|
-
|
|
185
|
-
|
|
186
178
|
const denormalizeDataFences = dataFences => {
|
|
187
179
|
var _context4;
|
|
188
|
-
|
|
189
180
|
if (!dataFences) return [];
|
|
190
181
|
return _reduceInstanceProperty(_context4 = _Object$keys(dataFences)).call(_context4, (allAppliedDataFences, dataFenceGroupKey) => {
|
|
191
182
|
var _context5;
|
|
192
|
-
|
|
193
183
|
switch (dataFenceGroupKey) {
|
|
194
184
|
case 'store':
|
|
195
185
|
return [...allAppliedDataFences, ..._reduceInstanceProperty(_context5 = _Object$keys(dataFences.store)).call(_context5, (allResources, resourceType) => {
|
|
196
186
|
var _context6;
|
|
197
|
-
|
|
198
187
|
return [...allResources, ..._reduceInstanceProperty(_context6 = _Object$keys(dataFences.store[resourceType])).call(_context6, (allPermissions, permissionKey) => {
|
|
199
188
|
var _context7;
|
|
200
|
-
|
|
201
189
|
return [...allPermissions, ..._mapInstanceProperty(_context7 = _valuesInstanceProperty(dataFences.store[resourceType][permissionKey])).call(_context7, value => ({
|
|
202
190
|
__typename: 'StoreDataFence',
|
|
203
191
|
type: 'store',
|
|
@@ -207,37 +195,32 @@ const denormalizeDataFences = dataFences => {
|
|
|
207
195
|
}))];
|
|
208
196
|
}, [])];
|
|
209
197
|
}, [])];
|
|
210
|
-
|
|
211
198
|
default:
|
|
212
199
|
return allAppliedDataFences;
|
|
213
200
|
}
|
|
214
201
|
}, []);
|
|
215
202
|
};
|
|
216
|
-
|
|
217
203
|
const mapResourceAccessToAppliedPermissions = resourceAccesses => _mapInstanceProperty(resourceAccesses).call(resourceAccesses, resourceAccess => ({
|
|
218
204
|
name: "can".concat(resourceAccess),
|
|
219
205
|
value: true
|
|
220
206
|
}));
|
|
221
|
-
|
|
222
207
|
const wrapIfNeeded = (children, wrapper) => wrapper ? /*#__PURE__*/createElement(wrapper, null, children) : children;
|
|
223
|
-
|
|
224
208
|
const ApolloProviderWrapper = props => {
|
|
225
209
|
var _props$apolloClient, _apolloClient$cache$a;
|
|
226
|
-
|
|
227
210
|
const apolloClient = (_props$apolloClient = props.apolloClient) !== null && _props$apolloClient !== void 0 ? _props$apolloClient : createApolloClient();
|
|
228
211
|
const enableApolloMocks = Boolean(props.mocks && props.mocks.length > 0);
|
|
229
|
-
|
|
230
212
|
if (!enableApolloMocks) {
|
|
231
|
-
return (
|
|
213
|
+
return (
|
|
214
|
+
// eslint-disable-next-line testing-library/no-node-access
|
|
232
215
|
jsx(ApolloProvider, {
|
|
233
216
|
client: apolloClient,
|
|
234
217
|
children: props.children
|
|
235
218
|
})
|
|
236
219
|
);
|
|
237
220
|
}
|
|
238
|
-
|
|
239
221
|
return jsx(MockedProvider, {
|
|
240
|
-
mocks: props.mocks
|
|
222
|
+
mocks: props.mocks
|
|
223
|
+
// The `addTypename` field is a private field of the cache in TS
|
|
241
224
|
// but we should be able to still access it.
|
|
242
225
|
// This is to ensure the `addTypename` behavior is the same between the
|
|
243
226
|
// Apollo cache and the mocked provider.
|
|
@@ -247,7 +230,9 @@ const ApolloProviderWrapper = props => {
|
|
|
247
230
|
cache: apolloClient.cache,
|
|
248
231
|
children: props.children
|
|
249
232
|
});
|
|
250
|
-
};
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// This function renders any component within the application context, as if it
|
|
251
236
|
// was rendered inside <ApplicationShell />.
|
|
252
237
|
// The context is not completely set up yet, some things are missing:
|
|
253
238
|
// - Tracking on context
|
|
@@ -255,59 +240,49 @@ const ApolloProviderWrapper = props => {
|
|
|
255
240
|
// - possibly more that I'm not aware of right now
|
|
256
241
|
//
|
|
257
242
|
// We can add these things as we go and when we need them.
|
|
258
|
-
|
|
259
|
-
|
|
260
243
|
ApolloProviderWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
261
244
|
apolloClient: _pt.any,
|
|
262
245
|
mocks: _pt.any,
|
|
263
246
|
children: _pt.element.isRequired
|
|
264
247
|
} : {};
|
|
265
|
-
|
|
266
248
|
function createApplicationProviders() {
|
|
267
249
|
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
250
|
+
_ref$disableAutomatic = _ref.disableAutomaticEntryPointRoutes,
|
|
251
|
+
disableAutomaticEntryPointRoutes = _ref$disableAutomatic === void 0 ? false : _ref$disableAutomatic,
|
|
252
|
+
_ref$disableRoutePerm = _ref.disableRoutePermissionCheck,
|
|
253
|
+
disableRoutePermissionCheck = _ref$disableRoutePerm === void 0 ? false : _ref$disableRoutePerm,
|
|
254
|
+
_ref$locale = _ref.locale,
|
|
255
|
+
locale = _ref$locale === void 0 ? 'en' : _ref$locale,
|
|
256
|
+
mocks = _ref.mocks,
|
|
257
|
+
apolloClient = _ref.apolloClient,
|
|
258
|
+
route = _ref.route,
|
|
259
|
+
history = _ref.history,
|
|
260
|
+
_ref$flags = _flagsInstanceProperty(_ref),
|
|
261
|
+
flags = _ref$flags === void 0 ? {} : _ref$flags,
|
|
262
|
+
environment = _ref.environment,
|
|
263
|
+
user = _ref.user,
|
|
264
|
+
project = _ref.project,
|
|
265
|
+
_ref$dataLocale = _ref.dataLocale,
|
|
266
|
+
dataLocale = _ref$dataLocale === void 0 ? 'en' : _ref$dataLocale;
|
|
286
267
|
const mergedUser = user === null ? undefined : _objectSpread(_objectSpread({}, defaultUser), user);
|
|
287
268
|
const mergedProject = project === null ? undefined : _objectSpread(_objectSpread({}, defaultProject), project);
|
|
269
|
+
const mergedEnvironment = _objectSpread(_objectSpread({}, defaultEnvironment), environment);
|
|
288
270
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
271
|
+
// Provide default permissions to render the application route.
|
|
292
272
|
if (mergedProject) {
|
|
293
273
|
if (mergedProject.allAppliedPermissions.length === 0) {
|
|
294
274
|
const defaultPermissionKeys = entryPointUriPathToPermissionKeys(mergedEnvironment.entryPointUriPath);
|
|
295
275
|
mergedProject.allAppliedPermissions = mapResourceAccessToAppliedPermissions([defaultPermissionKeys.View]);
|
|
296
276
|
}
|
|
297
277
|
}
|
|
298
|
-
|
|
299
278
|
let initialRoute = route;
|
|
300
|
-
|
|
301
279
|
if (!route && mergedProject) {
|
|
302
280
|
var _context8;
|
|
303
|
-
|
|
304
281
|
initialRoute = _concatInstanceProperty(_context8 = "/".concat(mergedProject.key, "/")).call(_context8, mergedEnvironment.entryPointUriPath);
|
|
305
282
|
}
|
|
306
|
-
|
|
307
283
|
const memoryHistory = history !== null && history !== void 0 ? history : createEnhancedHistory(createMemoryHistory({
|
|
308
284
|
initialEntries: [initialRoute || '/']
|
|
309
285
|
}));
|
|
310
|
-
|
|
311
286
|
const ApplicationProviders = props => jsx(IntlProvider, {
|
|
312
287
|
locale: locale,
|
|
313
288
|
children: jsx(ApolloProviderWrapper, {
|
|
@@ -327,11 +302,13 @@ function createApplicationProviders() {
|
|
|
327
302
|
children: jsx(ApplicationEntryPoint, {
|
|
328
303
|
environment: mergedEnvironment,
|
|
329
304
|
disableRoutePermissionCheck: disableRoutePermissionCheck,
|
|
330
|
-
render: disableAutomaticEntryPointRoutes ?
|
|
305
|
+
render: disableAutomaticEntryPointRoutes ?
|
|
306
|
+
// eslint-disable-next-line testing-library/no-node-access
|
|
331
307
|
() => jsx(Fragment, {
|
|
332
308
|
children: props.children
|
|
333
309
|
}) : undefined,
|
|
334
|
-
children: disableAutomaticEntryPointRoutes ? undefined :
|
|
310
|
+
children: disableAutomaticEntryPointRoutes ? undefined :
|
|
311
|
+
// eslint-disable-next-line testing-library/no-node-access
|
|
335
312
|
props.children
|
|
336
313
|
})
|
|
337
314
|
})
|
|
@@ -340,7 +317,6 @@ function createApplicationProviders() {
|
|
|
340
317
|
})
|
|
341
318
|
})
|
|
342
319
|
});
|
|
343
|
-
|
|
344
320
|
ApplicationProviders.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
345
321
|
children: _pt.node.isRequired
|
|
346
322
|
} : {};
|
|
@@ -351,27 +327,25 @@ function createApplicationProviders() {
|
|
|
351
327
|
mergedEnvironment,
|
|
352
328
|
history: memoryHistory
|
|
353
329
|
};
|
|
354
|
-
}
|
|
355
|
-
// https://github.com/kentcdodds/react-testing-library-course/blob/2a5b1560656790bb1d9c055fba3845780b2c2c97/src/__tests__/react-router-03.js
|
|
356
|
-
|
|
330
|
+
}
|
|
357
331
|
|
|
332
|
+
// Inspired by
|
|
333
|
+
// https://github.com/kentcdodds/react-testing-library-course/blob/2a5b1560656790bb1d9c055fba3845780b2c2c97/src/__tests__/react-router-03.js
|
|
358
334
|
function renderApp(ui) {
|
|
359
335
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
360
|
-
|
|
361
336
|
const _createApplicationPro = createApplicationProviders(options),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
337
|
+
ApplicationProviders = _createApplicationPro.ApplicationProviders,
|
|
338
|
+
mergedUser = _createApplicationPro.mergedUser,
|
|
339
|
+
mergedProject = _createApplicationPro.mergedProject,
|
|
340
|
+
mergedEnvironment = _createApplicationPro.mergedEnvironment,
|
|
341
|
+
history = _createApplicationPro.history;
|
|
368
342
|
|
|
343
|
+
// eslint-disable-next-line testing-library/render-result-naming-convention
|
|
369
344
|
const rendered = rtl.render(ui, _objectSpread(_objectSpread({}, options), {}, {
|
|
370
345
|
// eslint-disable-next-line react/display-name
|
|
371
346
|
wrapper: _ref2 => {
|
|
372
347
|
let children = _ref2.children,
|
|
373
|
-
|
|
374
|
-
|
|
348
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
375
349
|
return jsx(ApplicationProviders, _objectSpread(_objectSpread({}, props), {}, {
|
|
376
350
|
children: wrapIfNeeded(children, options.wrapper)
|
|
377
351
|
}));
|
|
@@ -390,20 +364,20 @@ function renderApp(ui) {
|
|
|
390
364
|
environment: mergedEnvironment
|
|
391
365
|
});
|
|
392
366
|
}
|
|
393
|
-
|
|
394
367
|
function createReduxProviders() {
|
|
395
368
|
let _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
369
|
+
_ref3$store = _ref3.store,
|
|
370
|
+
store = _ref3$store === void 0 ? undefined : _ref3$store,
|
|
371
|
+
_ref3$storeState = _ref3.storeState,
|
|
372
|
+
storeState = _ref3$storeState === void 0 ? undefined : _ref3$storeState,
|
|
373
|
+
_ref3$sdkMocks = _ref3.sdkMocks,
|
|
374
|
+
sdkMocks = _ref3$sdkMocks === void 0 ? [] : _ref3$sdkMocks,
|
|
375
|
+
_ref3$mapNotification = _ref3.mapNotificationToComponent,
|
|
376
|
+
mapNotificationToComponent = _ref3$mapNotification === void 0 ? () => null : _ref3$mapNotification;
|
|
405
377
|
!!(store && storeState) ? process.env.NODE_ENV !== "production" ? invariant(false, '@commercetools-frontend/application-shell/test-utils: You provided both `store` and `storeState`. Please provide only one of them.') : invariant(false) : void 0;
|
|
406
|
-
!!(store && sdkMocks.length > 0) ? process.env.NODE_ENV !== "production" ? invariant(false, '@commercetools-frontend/application-shell/test-utils: You provided both `store` and `sdkMocks`. Please provide only one of them.') : invariant(false) : void 0;
|
|
378
|
+
!!(store && sdkMocks.length > 0) ? process.env.NODE_ENV !== "production" ? invariant(false, '@commercetools-frontend/application-shell/test-utils: You provided both `store` and `sdkMocks`. Please provide only one of them.') : invariant(false) : void 0;
|
|
379
|
+
|
|
380
|
+
// Determine the redux store to use in tests.
|
|
407
381
|
// - When the user passed in a "store", we use that store and ignore
|
|
408
382
|
// sdkMocks and storeState.
|
|
409
383
|
// - When the user passed in no sdkMocks, we create a store using the
|
|
@@ -413,14 +387,12 @@ function createReduxProviders() {
|
|
|
413
387
|
// create a store which applies a special middleware to allow mocking sdk
|
|
414
388
|
// responses. We further initialize the store with the provided storeState.
|
|
415
389
|
// If storeState is undefined, then the defaults kick in anyways.
|
|
416
|
-
|
|
417
390
|
const reduxStore = (() => {
|
|
418
391
|
if (store) return store;
|
|
419
392
|
if (sdkMocks.length === 0) return createReduxStore(storeState);
|
|
420
393
|
const testingMiddleware = createTestMiddleware(sdkMocks);
|
|
421
394
|
return createReduxStore(storeState, [testingMiddleware]);
|
|
422
395
|
})();
|
|
423
|
-
|
|
424
396
|
const ReduxProviders = props => jsx(NotificationProviderForCustomComponent, {
|
|
425
397
|
mapNotificationToComponent: mapNotificationToComponent,
|
|
426
398
|
children: jsx(Provider, {
|
|
@@ -436,7 +408,6 @@ function createReduxProviders() {
|
|
|
436
408
|
})
|
|
437
409
|
})
|
|
438
410
|
});
|
|
439
|
-
|
|
440
411
|
ReduxProviders.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
441
412
|
children: _pt.node.isRequired
|
|
442
413
|
} : {};
|
|
@@ -444,25 +415,22 @@ function createReduxProviders() {
|
|
|
444
415
|
ReduxProviders,
|
|
445
416
|
reduxStore
|
|
446
417
|
};
|
|
447
|
-
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// Test setup for rendering with Redux
|
|
448
421
|
// We expose a sophisticated function because we plan to get rid of Redux
|
|
449
422
|
// Use this function only when your test actually needs Redux
|
|
450
|
-
|
|
451
|
-
|
|
452
423
|
function renderAppWithRedux(ui) {
|
|
453
424
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
454
|
-
|
|
455
425
|
const _createReduxProviders = createReduxProviders(options),
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
426
|
+
ReduxProviders = _createReduxProviders.ReduxProviders,
|
|
427
|
+
reduxStore = _createReduxProviders.reduxStore;
|
|
428
|
+
// eslint-disable-next-line testing-library/render-result-naming-convention
|
|
460
429
|
const rendered = renderApp(ui, _objectSpread(_objectSpread({}, options), {}, {
|
|
461
430
|
// eslint-disable-next-line react/display-name
|
|
462
431
|
wrapper: _ref4 => {
|
|
463
432
|
let children = _ref4.children,
|
|
464
|
-
|
|
465
|
-
|
|
433
|
+
props = _objectWithoutProperties(_ref4, _excluded2);
|
|
466
434
|
return jsx(ReduxProviders, _objectSpread(_objectSpread({}, props), {}, {
|
|
467
435
|
children: wrapIfNeeded(children, options.wrapper)
|
|
468
436
|
}));
|
|
@@ -475,22 +443,19 @@ function renderAppWithRedux(ui) {
|
|
|
475
443
|
store: reduxStore
|
|
476
444
|
});
|
|
477
445
|
}
|
|
478
|
-
|
|
479
446
|
function renderHook(callback) {
|
|
480
447
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
481
|
-
|
|
482
448
|
const _createReduxProviders2 = createReduxProviders(options),
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
449
|
+
ReduxProviders = _createReduxProviders2.ReduxProviders,
|
|
450
|
+
reduxStore = _createReduxProviders2.reduxStore;
|
|
486
451
|
const _createApplicationPro2 = createApplicationProviders(options),
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
452
|
+
ApplicationProviders = _createApplicationPro2.ApplicationProviders,
|
|
453
|
+
mergedUser = _createApplicationPro2.mergedUser,
|
|
454
|
+
mergedProject = _createApplicationPro2.mergedProject,
|
|
455
|
+
mergedEnvironment = _createApplicationPro2.mergedEnvironment,
|
|
456
|
+
history = _createApplicationPro2.history;
|
|
493
457
|
|
|
458
|
+
// eslint-disable-next-line testing-library/render-result-naming-convention
|
|
494
459
|
const rendered = rtlHooks.renderHook(callback, _objectSpread(_objectSpread({}, options), {}, {
|
|
495
460
|
// eslint-disable-next-line react/display-name
|
|
496
461
|
wrapper: _ref5 => {
|
|
@@ -509,8 +474,9 @@ function renderHook(callback) {
|
|
|
509
474
|
project: mergedProject,
|
|
510
475
|
environment: mergedEnvironment
|
|
511
476
|
});
|
|
512
|
-
}
|
|
477
|
+
}
|
|
513
478
|
|
|
479
|
+
// namespace for hooks related helpers
|
|
514
480
|
const hooks = _objectSpread(_objectSpread({}, rtlHooks), {}, {
|
|
515
481
|
renderHook
|
|
516
482
|
});
|