@jetshop/core 6.2.6 → 6.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/boot/client/startClient.js +3 -3
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +5 -1
- package/boot/server/createRenderer.js.map +1 -1
- package/components/ConfigProvider.d.ts +3 -2
- package/components/ConfigProvider.js.map +1 -1
- package/components/Mutation/useRemoveFromCart.js +2 -16
- package/components/Mutation/useRemoveFromCart.js.map +1 -1
- package/package.json +1 -1
@@ -93,8 +93,8 @@ const startClient = (tree, config) => {
|
|
93
93
|
channelHandler.setRecommendedChannel(recommendedChannel);
|
94
94
|
channelHandler.setChannels(channels);
|
95
95
|
channelHandler.setChannelGroup(group);
|
96
|
-
const channelOverrides = config.channelOverrides && selectedChannel.
|
97
|
-
? config.channelOverrides[selectedChannel.
|
96
|
+
const channelOverrides = config.channelOverrides && selectedChannel.id
|
97
|
+
? config.channelOverrides[selectedChannel.id]
|
98
98
|
: {};
|
99
99
|
const { intl } = Object.assign(Object.assign({}, config), channelOverrides);
|
100
100
|
const intlOptions = createIntlOptions({
|
@@ -117,7 +117,7 @@ const startClient = (tree, config) => {
|
|
117
117
|
// hydration. This prevents `cache-and-network` routes from re-fetching
|
118
118
|
// immediately after hydration
|
119
119
|
client.disableNetworkFetches = true;
|
120
|
-
const wrappedTree = (React.createElement(SharedTree, { activeBreakpoint: activeBreakpoint, config: config, cookies: cookies, releware: releware, client: client, Router: BrowserRouter, channelHandler: channelHandler, previewHandler: previewHandler },
|
120
|
+
const wrappedTree = (React.createElement(SharedTree, { activeBreakpoint: activeBreakpoint, config: Object.assign(Object.assign({}, config), channelOverrides), cookies: cookies, releware: releware, client: client, Router: BrowserRouter, channelHandler: channelHandler, previewHandler: previewHandler },
|
121
121
|
React.createElement(CartIdProvider, null,
|
122
122
|
React.createElement(AuthProvider, { auth: authHandler }, tree))));
|
123
123
|
return wrappedTree;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startClient.js","sourceRoot":"","sources":["startCl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AM,CAAC,CAAC;KAC5D;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -40,9 +40,13 @@ const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler,
|
|
40
40
|
const modules = [];
|
41
41
|
const routerContext = { url: null, statusCode: 200 };
|
42
42
|
const helmetContext = { helmet: null };
|
43
|
+
const selectedChannel = channelHandler === null || channelHandler === void 0 ? void 0 : channelHandler.selectedChannel;
|
44
|
+
const channelOverrides = (renderOptions === null || renderOptions === void 0 ? void 0 : renderOptions.channelOverrides) && (selectedChannel === null || selectedChannel === void 0 ? void 0 : selectedChannel.id)
|
45
|
+
? renderOptions.channelOverrides[selectedChannel.id]
|
46
|
+
: {};
|
43
47
|
const wrappedTree = (React.createElement(ChunkExtractorManager, { extractor: extractor },
|
44
48
|
React.createElement(IntlContext.Provider, { value: translator },
|
45
|
-
React.createElement(SharedTree, { activeBreakpoint: req.breakpoint, config: renderOptions, cookies: req.universalCookies, helmetContext: helmetContext, client: client, channelHandler: channelHandler, previewHandler: previewHandler, Router: StaticRouter, routerProps: {
|
49
|
+
React.createElement(SharedTree, { activeBreakpoint: req.breakpoint, config: Object.assign(Object.assign({}, renderOptions), channelOverrides), cookies: req.universalCookies, helmetContext: helmetContext, client: client, channelHandler: channelHandler, previewHandler: previewHandler, Router: StaticRouter, routerProps: {
|
46
50
|
location: req.originalUrl,
|
47
51
|
context: routerContext
|
48
52
|
} },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderer.js","sourceRoot":"","sources":["createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAIhD,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,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 export interface ApolloConfig {
|
|
26
26
|
}[];
|
27
27
|
}
|
28
28
|
export interface ChannelOverrides {
|
29
|
-
[
|
29
|
+
[id: number]: Omit<BootOptions, 'usePolyfilling' | 'apolloConfig' | 'intl' | 'disableGeoRedirect' | 'singleDomainMode' | 'optimize' | 'routes' | 'loginPath' | 'pathsWithNoAuthRequired'>;
|
30
30
|
}
|
31
31
|
export interface OptimizeConfig {
|
32
32
|
container: string;
|
@@ -48,7 +48,8 @@ interface Theme {
|
|
48
48
|
export interface BootOptions {
|
49
49
|
theme: Theme;
|
50
50
|
apolloConfig: ApolloConfig;
|
51
|
-
|
51
|
+
/** Deprecated */
|
52
|
+
trackingID?: string;
|
52
53
|
additionalGtagTrackingIds: string[];
|
53
54
|
brandCustomField?: string;
|
54
55
|
useArticleNumberAsId?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfigProvider.js","sourceRoot":"","sources":["ConfigProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"ConfigProvider.js","sourceRoot":"","sources":["ConfigProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsH5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAC5C,SAAS,CACV,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAO9B;QAP8B,EAC7B,MAAM,EAAE,UAAU,EAClB,QAAQ,OAKT,EAJI,IAAI,cAHsB,sBAI9B,CADQ;IAKP,MAAM,MAAM,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC5C,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,kBAAC,KAAK,EAAE,MAAM,IAAM,IAAI,GAChD,QAAQ,CACkB,CAC9B,CAAC;AACJ,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { useMutation
|
1
|
+
import { useMutation } from '@apollo/client';
|
2
2
|
import { CartIdContext } from '../Cart/CartIdContext';
|
3
|
-
import { getRemoveFromCartOptimisticResponse } from './cartMutationUtils';
|
4
3
|
import { useContext } from 'react';
|
5
4
|
import { useTracker } from '../../analytics/Analytics';
|
6
5
|
import { trackProductEvent } from '../../analytics/tracking';
|
@@ -9,9 +8,8 @@ import { unSlugify } from '@jetshop/core/analytics/integrations/unslugify';
|
|
9
8
|
import { breadcrumbsWithoutProduct } from '@jetshop/core/analytics/utils/breadcrumbsWithoutProduct';
|
10
9
|
export default function useRemoveFromCart({ removeFromCartMutation, cartQuery }) {
|
11
10
|
throwErrorInDev(!cartQuery, `You forgot to pass 'cartQuery' to useRemoveFromCart`);
|
12
|
-
const { cartId
|
11
|
+
const { cartId } = useContext(CartIdContext);
|
13
12
|
const track = useTracker();
|
14
|
-
const client = useApolloClient();
|
15
13
|
const [removeFromCartMutationFn] = useMutation(removeFromCartMutation, {
|
16
14
|
onCompleted: () => localStorage.setItem('cartChange', '1')
|
17
15
|
});
|
@@ -31,18 +29,6 @@ export default function useRemoveFromCart({ removeFromCartMutation, cartQuery })
|
|
31
29
|
itemId
|
32
30
|
}
|
33
31
|
},
|
34
|
-
optimisticResponse: {
|
35
|
-
removeFromCart: {
|
36
|
-
cart: getRemoveFromCartOptimisticResponse({
|
37
|
-
itemId,
|
38
|
-
client,
|
39
|
-
cartId,
|
40
|
-
setCartId,
|
41
|
-
cartQuery
|
42
|
-
}),
|
43
|
-
__typename: 'CartMutation'
|
44
|
-
}
|
45
|
-
},
|
46
32
|
update: (cache, { data }) => {
|
47
33
|
cache.modify({
|
48
34
|
fields: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useRemoveFromCart.js","sourceRoot":"","sources":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