@sonic-equipment/ui 253.0.0 → 254.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config.js CHANGED
@@ -70,11 +70,11 @@ const configPerEnvironment = {
70
70
  production: () => ({
71
71
  ALGOLIA_API_KEY: 'e31a3a53449eceb4d0f9273b9bcd9759',
72
72
  ALGOLIA_APP_ID: '14CUFCVMAD',
73
- ALGOLIA_HOST: 'shop.sonic-equipment.com',
74
- BFF_API_URL: 'https://shop.sonic-equipment.com/api/v1/bff',
73
+ ALGOLIA_HOST: 'shopapi.sonic-equipment.com',
74
+ BFF_API_URL: 'https://shopapi.sonic-equipment.com/api/v1/bff',
75
75
  COOKIE_DOMAIN: '.sonic-equipment.com',
76
76
  HOME_PAGE_URL: 'https://sonic-equipment.com/',
77
- SHOP_API_URL: 'https://shop.sonic-equipment.com',
77
+ SHOP_API_URL: 'https://shopapi.sonic-equipment.com',
78
78
  SHOP_URL: 'https://shop.sonic-equipment.com',
79
79
  }),
80
80
  sandbox: () => ({
@@ -1 +1,3 @@
1
- export declare function PaymentPage(): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function PaymentPage({ hasReturnedFromAdyen, }: {
2
+ hasReturnedFromAdyen?: boolean;
3
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -9,13 +9,11 @@ import { usePaths } from '../../../shared/routing/use-paths.js';
9
9
  import { hasNo } from '../../../shared/utils/types.js';
10
10
  import { ErrorPage } from '../../error-page/error-page.js';
11
11
  import { LoadingPage } from '../../loading-page/loading-page.js';
12
- import { useHasReturnedFromAdyen } from './hooks/use-has-returned-from-adyen.js';
13
12
  import { PaymentPageContent } from './payment-page-content.js';
14
13
 
15
14
  const PAYMENT_FORM_ID = 'paymentForm';
16
- function PaymentPage() {
15
+ function PaymentPage({ hasReturnedFromAdyen, }) {
17
16
  const paths = usePaths();
18
- const hasReturnedFromAdyen = useHasReturnedFromAdyen();
19
17
  const isAuthenticated = useIsAuthenticated();
20
18
  const { data: cart, error, isLoading: isLoadingCart, } = useFetchCurrentCartWithAtp({
21
19
  forceRecalculation: !hasReturnedFromAdyen,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "253.0.0",
3
+ "version": "254.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {