@jetshop/core 1.1.10-no-proxy.0 → 1.1.10-no-proxy.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,23 @@ import { TrackProductProps, TrackCartProps, TrackListProps, TrackPageProps } fro
2
2
  import { AnalyticsConfig } from '../../AnalyticsProvider';
3
3
  import { TrackingFunctionContext } from '../../tracking';
4
4
  export declare function init({ gtag: { trackingId } }: AnalyticsConfig): GtagFunc;
5
- declare type GtagFunc = (command: string, ...args: any[]) => void;
5
+ declare type Product = {
6
+ id: string | number;
7
+ name: string;
8
+ price: any;
9
+ category?: string;
10
+ list_name?: string;
11
+ list_position?: number;
12
+ };
13
+ declare type GtagOptions = {
14
+ content_type?: 'product';
15
+ items: Product[];
16
+ } | {
17
+ send_page_view: false;
18
+ } | {
19
+ page_path: string;
20
+ };
21
+ declare type GtagFunc = (command: string, arg: string, options?: GtagOptions) => void;
6
22
  export declare const trackProduct: ({ action, product, selectedVariation, list, index }: TrackProductProps, {}: TrackingFunctionContext) => void;
7
23
  export declare const trackCartCheckout: ({ cart }: TrackCartProps, {}: TrackingFunctionContext) => void;
8
24
  export declare const trackList: ({ listName, products }: TrackListProps, {}: TrackingFunctionContext) => void;
@@ -27,8 +27,8 @@ export const trackProduct = ({ action, product, selectedVariation, list, index }
27
27
  price: (selectedVariation && selectedVariation.price.incVat) ||
28
28
  (product.price && product.price.incVat),
29
29
  category: product.canonicalCategory && product.canonicalCategory.name,
30
- list: list,
31
- position: index
30
+ list_name: list,
31
+ list_position: index
32
32
  };
33
33
  switch (action) {
34
34
  case 'click':
@@ -44,7 +44,7 @@ export const trackProduct = ({ action, product, selectedVariation, list, index }
44
44
  gtag()('event', 'add_to_cart', { items: [productData] });
45
45
  break;
46
46
  case 'remove':
47
- gtag()('event', 'remove_from_cart ', { items: [productData] });
47
+ gtag()('event', 'remove_from_cart', { items: [productData] });
48
48
  break;
49
49
  default:
50
50
  console.log('Error: Gtag can not track action ' + action);
@@ -75,6 +75,6 @@ export const trackList = ({ listName, products }, {}) => {
75
75
  };
76
76
  export const trackPageView = ({ pathname }, { config: { gtag: { trackingId } } }) => {
77
77
  gtag()('config', trackingId, { page_path: pathname });
78
- // gtag()('event', 'page_view');
78
+ gtag()('event', 'page_view', { page_path: pathname });
79
79
  };
80
80
  //# sourceMappingURL=gtag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gtag.js","sourceRoot":"","sources":["gtag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUlE,MAAM,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAmB;IAC5D,IAAI,CAAC,UAAU,EAAE;QACf,OAAO;KACR;IAED,MAAM,MAAM,GAAG,+CAA+C,UAAU,EAAE,CAAC;IAE3E,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE;QAC1B,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAC/C;SAAM;QACL,MAAM,CAAC,GAAQ,MAAM,CAAC;QACtB,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC;QAChC,CAAC,CAAC,IAAI,GAAG,SAAS,IAAI;YACpB,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC9B,CAAC,CAAC;QACF,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;QACzB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;QAExD,YAAY,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;KAC/B;IAED,OAAO,IAAI,EAAE,CAAC;AAChB,CAAC;AAGD,MAAM,IAAI,GAAG,GAAG,EAAE,CAAE,MAAc,CAAC,IAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,EAAE,MAAM,EA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AAC;IACtD,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;AACxD,CAAC,CAAC"}
@@ -6,13 +6,13 @@ export const releware = {
6
6
  }
7
7
  const { id: productId } = args.product;
8
8
  switch (args.action) {
9
- case 'view_item':
9
+ case 'view':
10
10
  track({ productId, logType: 'view_item' }, context);
11
11
  break;
12
12
  case 'heed_recommendation':
13
13
  track({ productId, logType: 'heed_recommendation' }, context);
14
14
  break;
15
- case 'pick_item':
15
+ case 'add':
16
16
  track({ productId, logType: 'pick_item' }, context);
17
17
  break;
18
18
  default:
@@ -29,6 +29,8 @@ export const releware = {
29
29
  }
30
30
  };
31
31
  function track(options, context) {
32
+ if (!context.config.releware.enabled)
33
+ return;
32
34
  fetch(constructUrl(options, context), { mode: 'no-cors' }).catch(() => console.log('Error: could not fetch Releware tracking pixel'));
33
35
  }
34
36
  function constructUrl(options, context) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY,EAAE,CAAC,IAAuB,EAAE,OAAgC,EAAE,EAAE;QAC1E,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;YACxE,OAAO;SACR;QAED,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAEvC,QAAQ,IAAI,CAAC,MAAM,EAAE;YACnB,KAAK,WAAW;gBACd,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;gBACpD,MAAM;YACR,KAAK,qBAAqB;gBACxB,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC9D,MAAM;YACR,KAAK,WAAW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AE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CACpE,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CACnB,OAAsB,EACtB,OAAgC;IAEhC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IAEjD,OAAO,6CACL,OAAO,CAAC,SACV,kBAAkB,OAAO,CAAC,OAAO,QAAQ,OAAO,QAAQ,GAAG,EAAE,CAAC;AAChE,CAAC"}
@@ -21,8 +21,6 @@ export interface TrackPageProps {
21
21
  pathname: string;
22
22
  }
23
23
  export declare const trackProduct: (args: TrackProductProps) => (context: TrackingFunctionContext) => void;
24
- export declare const trackRelewareProduct: (args: TrackProductProps) => (context: TrackingFunctionContext) => void;
25
- export declare const trackRelewareCheckout: (args: TrackCartProps) => (context: TrackingFunctionContext) => void;
26
24
  export declare const trackCartCheckout: (args: TrackCartProps) => (context: TrackingFunctionContext) => void;
27
25
  export declare const trackList: (args: TrackListProps) => (context: TrackingFunctionContext) => void;
28
26
  export declare const trackPage: (args: TrackPageProps) => (context: TrackingFunctionContext) => void;
@@ -2,19 +2,11 @@ import * as gtag from './integrations/gtag';
2
2
  import { releware } from './integrations/releware';
3
3
  export const trackProduct = (args) => (context) => {
4
4
  gtag.trackProduct(args, context);
5
- };
6
- export const trackRelewareProduct = (args) => (context) => {
7
- if (!context.config.releware.enabled)
8
- return;
9
5
  releware.trackProduct(args, context);
10
6
  };
11
- export const trackRelewareCheckout = (args) => (context) => {
12
- if (!context.config.releware.enabled)
13
- return;
14
- releware.trackCart(args, context);
15
- };
16
7
  export const trackCartCheckout = (args) => (context) => {
17
8
  gtag.trackCartCheckout(args, context);
9
+ releware.trackCart(args, context);
18
10
  };
19
11
  export const trackList = (args) => (context) => {
20
12
  gtag.trackList(args, context);
@@ -1 +1 @@
1
- {"version":3,"file":"tracking.js","sourceRoot":"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;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC"}
1
+ {"version":3,"file":"tracking.js","sourceRoot":"","sources":["tracking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAI5C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AA4BnD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAuB,EAAE,EAAE,CAAC,CACvD,OAAgC,EAChC,EAAE;IACF,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,CACzD,OAAgC,EAChC,EAAE;IACF,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,CACjD,OAAgC,EAChC,EAAE;IACF,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,CACjD,OAAgC,EAChC,EAAE;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC"}
package/boot/client.js CHANGED
@@ -61,7 +61,7 @@ const Client = (tree, config) => {
61
61
  React.createElement(MediaProvider, null,
62
62
  React.createElement(AnalyticsProvider, { gtag: { trackingId: trackingID }, gtm: { containerId: tagManagerID }, releware: {
63
63
  enabled: config.relewareEnabled,
64
- baseUrl: selectedChannel.url,
64
+ baseUrl: document.domain,
65
65
  uid: config.relewareEnabled ? setUID(cookies) : null
66
66
  } },
67
67
  React.createElement(ApolloProvider, { client: client },
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["client.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,OAAO;AACP,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE1D,SAAS;AACT,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,YAAY;AACZ,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AAElD,UAAU;AACV,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,iBAAiB;AACjB,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,UAAU;AACV,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,WAAW;AACX,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,yEAAyE;AACzE,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B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AChB,IAAI,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAChC,GAAG,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,EAClC,QAAQ,EAAE;gCACR,OAAO,EAAE,MAAM,CAAC,eAAe;gCAC/B,OAAO,EAAE,QAAQ,CAAC,MAAM;gCACxB,GAAG,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;6BACrD;4BAED,oBAAC,cAAc,IAAC,MAAM,EAAE,MAAM;gCAC5B,oBAAC,eAAe,IACd,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ;oCAElB,oBAAC,aAAa;wCACZ,oBAAC,YAAY,QAAE,IAAI,CAAgB,CACrB,CACA,CACH,CACC,CACN,CACD,CACD,CACnB,CAAC;YAEF,OAAO,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,IAAuB,EAAE,EAAE;QAChC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -81,7 +81,8 @@ export default function createApolloServer({ apolloConfig, extensions = [] }) {
81
81
  });
82
82
  const apolloServer = new ApolloServer({
83
83
  schema,
84
- introspection: true,
84
+ // Disable introspection in production
85
+ introspection: process.env.NODE_ENV !== 'production',
85
86
  context: ({ req }) => {
86
87
  const incomingHeaders = get(req, 'headers', {});
87
88
  const headers = pick(incomingHeaders, forwardedHeaders);
@@ -1 +1 @@
1
- {"version":3,"file":"createApolloServer.js","sourceRoot":"","sources":["createApolloServer.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,E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ment } from 'react';
11
11
  import Analytics from '../../analytics/Analytics';
12
12
  import ProductMetadata from '../ProductMetadata';
13
13
  import ProductVariationProvider from '../ProductVariationProvider/ProductVariationProvider';
14
- import { trackProduct, trackRelewareProduct } from '@jetshop/core/analytics/tracking';
14
+ import { trackProduct } from '@jetshop/core/analytics/tracking';
15
15
  class ProductRoute extends Component {
16
16
  constructor() {
17
17
  super(...arguments);
@@ -37,8 +37,7 @@ class ProductRoute extends Component {
37
37
  const product = this.getProduct();
38
38
  return (React.createElement(Fragment, null,
39
39
  product.id !== '' && (React.createElement(Fragment, null,
40
- React.createElement(Analytics, { track: trackProduct({ action: 'view', product }) &&
41
- trackRelewareProduct({ action: 'view_item', product }) }),
40
+ React.createElement(Analytics, { track: trackProduct({ action: 'view', product }) }),
42
41
  React.createElement(ProductMetadata, { product: product }),
43
42
  React.createElement("link", { rel: "canonical", href: product.primaryRoute && product.primaryRoute.path }))),
44
43
  React.createElement(ProductVariationProvider, { product: product },
@@ -1 +1 @@
1
- {"version":3,"file":"ProductRoute.js","sourceRoot":"","sources":["ProductRoute.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,sDAAsD,CAAC;AAE5F,OAAO,EACL,YAAY,EACZ,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAW1C,MAAM,YAAa,SAAQ,SAAgC;IAA3D;;QACE,eAAU,GAAG,GAAY,EAAE;YACzB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YACnC,OAAO,IAAI,IAAI,IAAI,CAAC,KAAK;gBACvB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACnB,CAAC,CAAC,IAAI,CAAC,OAAO,IA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{ trackProduct, trackRelewareProduct } from '@jetshop/core/analytics/tracking';
2
+ import { trackProduct } from '@jetshop/core/analytics/tracking';
3
3
  import { ProductVariationConsumer } from '@jetshop/core/components/ProductVariationProvider/ProductVariationContext';
4
4
  import { cartFragment } from '@jetshop/core/data/fragments';
5
5
  import { addToCart, setCartIdMutation } from '@jetshop/core/data/mutations';
@@ -40,8 +40,7 @@ class AddToCart extends Component {
40
40
  action: 'add',
41
41
  product,
42
42
  selectedVariation
43
- }) &&
44
- trackRelewareProduct({ action: 'pick_item', product }));
43
+ }));
45
44
  onAddToCart && onAddToCart(selectedVariation);
46
45
  mutate({
47
46
  variables: {
@@ -1 +1 @@
1
- {"version":3,"file":"AddToCart.js","sourceRoot":"","sources":["AddToCart.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EACL,YAAY,EACZ,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2EAA2E,CAAC;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAc,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAW,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAEL,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,QAAQ,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAQzC,MAAM,SAAU,SAAQ,SAA6B;IAArD;;QACE,cAAS,GAAG,CAAC,MAAc,EAAE,EAAE;YAC7B,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,G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CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBACtC,aAAa;oBACX,iBAAiB,IAAI,iBAAiB,CAAC,aAAa,CAAC;aACxD;iBAAM;gBACL,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;aACvC;YACD,IAAI,aAAa,EAAE;gBACjB,KAAK,CACH,YAAY,CAAC;oBACX,MAAM,EAAE,KAAK;oBACb,OAAO;oBACP,iBAAiB;iBAClB,CAAC,CACH,CAAC;gBACF,WAAW,IAAI,WAAW,CAAC,iBAAiB,CAAC,CAAC;gBAC9C,MAAM,CAAC;oBACL,SAAS,EAAE;wBACT,KAAK,EAAE;4BACL,MAAM;4BACN,aAAa;4BACb,QAAQ;yBACT;qBACF;oBACD,kBAAkB,EAAE;wBAClB,SAAS,EAAE;4BACT,IAAI,EAAE,8BAA8B,CAClC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,CACP;4BACD,UAAU,EAAE,cAAc;yBAC3B;qBACF;iBACF,CAAC,CAAC;aACJ;iBAAM;gBACL,gBAAgB,EAAE,CAAC;aACpB;QACH,CAAC,EAAE,aAAa,CAAC,CAEV,CACZ,CACwB,CAC5B,CACS,CACb,CAAC;IACJ,CAAC;CACF;AACD,eAAe,WAAW,CACxB,UAAU,CAAC,CAAC,KAAqB,EAAE,EAAE,CAAC,CACpC,oBAAC,KAAK,IAAC,KAAK,EAAE,WAAW,IACtB,CAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CACzB,oBAAC,QAAQ,IAAC,QAAQ,EAAE,iBAAiB,IAClC,iBAAiB,CAAC,EAAE,CAAC,CACpB,oBAAC,SAAS,oBACJ,KAAK,IACT,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,iBAAiB,IACpC,CACH,CACQ,CACZ,CACK,CACT,CAAC,CACH,CAAC"}
@@ -76,6 +76,16 @@ class ProductVariationProvider extends Component {
76
76
  this.setState({ missingOption });
77
77
  };
78
78
  const { product } = props;
79
+ this.state = {
80
+ quantity: 1,
81
+ selectedVariation: null,
82
+ selectedOptions: {},
83
+ options: product.variants.options,
84
+ product: null,
85
+ getSelectableOptionItems: this.getSelectableOptionItems,
86
+ setMissingOption: this.setMissingOption,
87
+ missingOption: null
88
+ };
79
89
  let partialState = {
80
90
  selectedOptions: {}
81
91
  };
@@ -84,7 +94,7 @@ class ProductVariationProvider extends Component {
84
94
  partialState = this.getSelectOptionState(option.name, option.values[0], partialState.selectedOptions);
85
95
  }
86
96
  });
87
- this.state = Object.assign({ quantity: 1, selectedVariation: null, selectedOptions: {}, options: product.variants.options, product: null, getSelectableOptionItems: this.getSelectableOptionItems, setMissingOption: this.setMissingOption, missingOption: null }, partialState);
97
+ this.state = Object.assign({}, this.state, partialState);
88
98
  }
89
99
  componentDidUpdate(prevProps) {
90
100
  const { product } = this.props;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductVariationProvider.js","sourceRoot":"","sources":["ProductVariationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,uBAGN,MAAM,2BAA2B,CAAC;AAOnC,MAAM,wBAAyB,SAAQ,SAGtC;IACC,YAAY,KAA4B;QACtC,KAAK,CAAC,KAAK,CAAC,CAAC;QAyCf,gBAAW,GAAG,CAAC,eAAgC,EAAE,EAAE;YACjD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACzC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CACpC,CAAC;YACF,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAyB,EAAE,EAAE;gBAChE,OAAO,SAAS,CAAC,MAAM;oBACrB,CAAC,CAAC,MAAM,CAAC,IAAI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,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE/B,OAAO,CACL,oBAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,oBAAO,IAAI,CAAC,KAAK,IAAE,OAAO,OAC9D,IAAI,CAAC,KAAK,CAAC,QAAQ,CACa,CACpC,CAAC;IACJ,CAAC;CACF;AAED,eAAe,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/core",
3
- "version": "1.1.10-no-proxy.0",
3
+ "version": "1.1.10-no-proxy.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -51,7 +51,7 @@
51
51
  "lodash.pick": "^4.4.0",
52
52
  "mobile-detect": "^1.4.3",
53
53
  "node-fetch": "^2.2.0",
54
- "nodemon": "^1.18.5",
54
+ "nodemon": "^1.18.7",
55
55
  "prop-types": "^15.6.2",
56
56
  "qs": "^6.5.2",
57
57
  "raven": "^2.6.4",
@@ -84,5 +84,5 @@
84
84
  "ci/.gitlab-ci.yml",
85
85
  "scripts"
86
86
  ],
87
- "gitHead": "f718e602acc1faf3e1f560e562c08298966fb461"
87
+ "gitHead": "7ecee77748c0c956a5ed344d2c634bf83411b3b0"
88
88
  }