@jetshop/template-trend 6.0.3 → 6.0.5

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.
@@ -47,7 +47,8 @@ describe('Cart', () => {
47
47
  cy.visit(PRODUCT_PAGE);
48
48
  cy.findByTestId('add-to-cart').click();
49
49
  cy.findByTestId('cart-button').click();
50
- cy.findByTestId('checkout-button').click();
51
- cy.url().should('contain', '/checkout');
50
+ cy.findByTestId('checkout-button')
51
+ .should('have.attr', 'href')
52
+ .and('include', 'checkout');
52
53
  });
53
54
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/template-trend",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "react-scripts build",
@@ -45,11 +45,11 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
- "@jetshop/core": "^6.0.3",
48
+ "@jetshop/core": "^6.0.5",
49
49
  "@jetshop/flight-shortcodes": "^2.0.10",
50
- "@jetshop/intl": "^6.0.3",
51
- "@jetshop/react-scripts": "^6.0.3",
52
- "@jetshop/ui": "^6.0.3",
50
+ "@jetshop/intl": "^6.0.5",
51
+ "@jetshop/react-scripts": "^6.0.5",
52
+ "@jetshop/ui": "^6.0.5",
53
53
  "@react-google-maps/api": "~2.18.1",
54
54
  "prop-types": "^15.6.2",
55
55
  "react": "^18",
package/src/server.js CHANGED
@@ -3,4 +3,14 @@ import { createApp } from '@jetshop/core/boot/server';
3
3
  import Shop from './components/Shop';
4
4
  import config from './shop.config';
5
5
 
6
- export default createApp(<Shop />, config);
6
+ import createFacebookTracker from '@jetshop/core/server/tracking/facebook';
7
+
8
+ export default createApp(<Shop />, {
9
+ ...config,
10
+ serverTrackers: [
11
+ createFacebookTracker({
12
+ pixelId: process.env.FACEBOOK_PIXEL_ID,
13
+ token: process.env.FACEBOOK_CAPI_TOKEN
14
+ })
15
+ ]
16
+ });
@@ -7,7 +7,6 @@ import {
7
7
  LoadableWindowedCategoryPage
8
8
  } from './components/CategoryPage/CategoryPage';
9
9
  import { theme } from './components/Theme';
10
- import createFacebookTracker from '@jetshop/core/server/tracking/facebook';
11
10
  import ProductPage from './components/ProductPage/ProductPage.loadable';
12
11
  import ContentPage from './components/ContentPage/ContentPage.loadable';
13
12
 
@@ -57,12 +56,6 @@ const config = {
57
56
  disableDefaultProductData: false
58
57
  },
59
58
  trackers: [],
60
- serverTrackers: [
61
- createFacebookTracker({
62
- pixelId: process.env.FACEBOOK_PIXEL_ID,
63
- token: process.env.FACEBOOK_CAPI_TOKEN
64
- })
65
- ],
66
59
  googleMapsApiKey: process.env.REACT_APP_GOOGLE_MAPS_API_KEY || '',
67
60
  loginPath: '/login',
68
61
  pathsWithNoAuthRequired: ['/login', '/reset-password', '/forgot-password'],
@@ -1,17 +1,34 @@
1
- export const cs = () => import('./cs.json');
2
- export const da = () => import('./da.json');
3
- export const de = () => import('./de.json');
4
- export const en = () => import('./en.json');
5
- export const es = () => import('./es.json');
6
- export const et = () => import('./et.json');
7
- export const fi = () => import('./fi.json');
8
- export const fr = () => import('./fr.json');
9
- export const it = () => import('./it.json');
10
- export const lv = () => import('./lv.json');
11
- export const nb = () => import('./nb.json');
12
- export const nl = () => import('./nl.json');
13
- export const pl = () => import('./pl.json');
14
- export const ru = () => import('./ru.json');
15
- export const sk = () => import('./sk.json');
16
- export const sr = () => import('./sr.json');
17
- export const sv = () => import('./sv.json');
1
+ export const cs = () =>
2
+ import(/* webpackChunkName: "translations-cs" */ './cs.json');
3
+ export const da = () =>
4
+ import(/* webpackChunkName: "translations-da" */ './da.json');
5
+ export const de = () =>
6
+ import(/* webpackChunkName: "translations-de" */ './de.json');
7
+ export const en = () =>
8
+ import(/* webpackChunkName: "translations-en" */ './en.json');
9
+ export const es = () =>
10
+ import(/* webpackChunkName: "translations-es" */ './es.json');
11
+ export const et = () =>
12
+ import(/* webpackChunkName: "translations-et" */ './et.json');
13
+ export const fi = () =>
14
+ import(/* webpackChunkName: "translations-fi" */ './fi.json');
15
+ export const fr = () =>
16
+ import(/* webpackChunkName: "translations-fr" */ './fr.json');
17
+ export const it = () =>
18
+ import(/* webpackChunkName: "translations-it" */ './it.json');
19
+ export const lv = () =>
20
+ import(/* webpackChunkName: "translations-lv" */ './lv.json');
21
+ export const nb = () =>
22
+ import(/* webpackChunkName: "translations-nb" */ './nb.json');
23
+ export const nl = () =>
24
+ import(/* webpackChunkName: "translations-nl" */ './nl.json');
25
+ export const pl = () =>
26
+ import(/* webpackChunkName: "translations-pl" */ './pl.json');
27
+ export const ru = () =>
28
+ import(/* webpackChunkName: "translations-ru" */ './ru.json');
29
+ export const sk = () =>
30
+ import(/* webpackChunkName: "translations-sk" */ './sk.json');
31
+ export const sr = () =>
32
+ import(/* webpackChunkName: "translations-sr" */ './sr.json');
33
+ export const sv = () =>
34
+ import(/* webpackChunkName: "translations-sv" */ './sv.json');