@jetshop/core 4.3.7 → 4.3.8-non-polyfill
Sign up to get free protection for your applications and to get access to all the features.
- package/boot/client/startClient.js +1 -8
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +5 -5
- package/boot/server/createRenderer.js.map +1 -1
- package/components/Auth/formFieldsFromSettings.d.ts +12 -12
- package/components/Auth/useAddressFields.d.ts +3 -3
- package/components/Auth/useCustomer.d.ts +6 -6
- package/components/Auth/useLoginFields.d.ts +3 -3
- package/hooks/Channels/useChannelSettings.d.ts +2 -2
- package/hooks/ProductList/list-transforms.d.ts +38 -29
- package/hooks/usePreconnectLinks.js +0 -4
- package/hooks/usePreconnectLinks.js.map +1 -1
- package/hooks/usePrice.d.ts +1 -1
- package/package.json +1 -1
- package/polyfills.d.ts +1 -1
- package/polyfills.js +1 -35
- package/polyfills.js.map +1 -1
- package/types.d.ts +937 -566
@@ -145,14 +145,7 @@ const startClient = (tree, config) => {
|
|
145
145
|
});
|
146
146
|
};
|
147
147
|
const main = (tree, config) => {
|
148
|
-
|
149
|
-
if (window.polyFillsLoaded) {
|
150
|
-
return startClient(tree, config);
|
151
|
-
}
|
152
|
-
else {
|
153
|
-
// If the polyfills have not been loaded we want to replace the bootShop to start the client instead so that once the polyfills are loaded, bootShop will start the client.
|
154
|
-
window.bootShop = () => startClient(tree, config);
|
155
|
-
}
|
148
|
+
return startClient(tree, config);
|
156
149
|
};
|
157
150
|
export default main;
|
158
151
|
//# sourceMappingURL=startClient.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startClient.js","sourceRoot":"","sources":["startClient.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO;AACP,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAEL,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,SAAS;AACT,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,UAAU;AACV,OAAO,EAAE,OAAO,EAAE,MAAM,SAA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M,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAC7C,WAAW,CACT,IAAI,EACJ,IAAI,EACJ,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAClD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,CAAC,IAAkB,EAAE,MAAmB,EAAE,EAAE;IACvD,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -17,7 +17,7 @@ import { renderToNodeStream } from 'react-dom/server';
|
|
17
17
|
import { ChunkExtractor, ChunkExtractorManager } from '@loadable/server';
|
18
18
|
import { StaticRouter } from 'react-router-dom';
|
19
19
|
import report from '../../errorReporting';
|
20
|
-
import {
|
20
|
+
import { createPolyfillMock } from '../../polyfills';
|
21
21
|
import { getActiveFiltersFromSearch } from '../../resolvers/filters/filterParams';
|
22
22
|
import { createClient } from '../apollo';
|
23
23
|
import SharedTree from '../SharedTree';
|
@@ -32,7 +32,7 @@ import _merge from 'lodash.merge';
|
|
32
32
|
import { salesSourceMiddleware } from './salesSource';
|
33
33
|
import { getPreloadLinkHeaderString } from './getPreloadAssets';
|
34
34
|
const injectDataIntoSlots = (template, data) => Object.keys(data).reduce((output, key) => output.replace(`<slot name="${key}"/>`, data[key]), template);
|
35
|
-
const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler, previewHandler, translator,
|
35
|
+
const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler, previewHandler, translator, config, extractor) => __awaiter(void 0, void 0, void 0, function* () {
|
36
36
|
const modules = [];
|
37
37
|
const routerContext = { url: null, statusCode: 200 };
|
38
38
|
const helmetContext = { helmet: null };
|
@@ -81,7 +81,7 @@ const wrapTree = (tree, req, renderOptions, client, channelHandler, authHandler,
|
|
81
81
|
statusCode: routerContext.statusCode,
|
82
82
|
helmet: helmetContext.helmet,
|
83
83
|
apolloState,
|
84
|
-
polyfill:
|
84
|
+
polyfill: createPolyfillMock()
|
85
85
|
};
|
86
86
|
});
|
87
87
|
const startResponse = ({ res, head, statusCode }) => {
|
@@ -174,7 +174,7 @@ const createRenderer = (template, tree, options) => (req, res) => __awaiter(void
|
|
174
174
|
selectedChannel,
|
175
175
|
options: intl.options
|
176
176
|
});
|
177
|
-
const { translator
|
177
|
+
const { translator } = yield setupIntl({
|
178
178
|
translations: intl.translations,
|
179
179
|
locale: selectedChannel.language.culture,
|
180
180
|
defaultLocale: intl.defaultLocale,
|
@@ -194,7 +194,7 @@ const createRenderer = (template, tree, options) => (req, res) => __awaiter(void
|
|
194
194
|
statsFile: loadableStatsPath,
|
195
195
|
entrypoints: ['client']
|
196
196
|
});
|
197
|
-
const { wrappedTree, routerUrl, statusCode, helmet: { title, meta, style, link }, apolloState, polyfill } = yield wrapTree(tree, req, options, client, channelHandler, authHandler, previewHandler, translator,
|
197
|
+
const { wrappedTree, routerUrl, statusCode, helmet: { title, meta, style, link }, apolloState, polyfill } = yield wrapTree(tree, req, options, client, channelHandler, authHandler, previewHandler, translator, {
|
198
198
|
loginPath: options.loginPath,
|
199
199
|
pathsWithNoAuthRequired: options.pathsWithNoAuthRequired
|
200
200
|
}, chunkExtractor);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderer.js","sourceRoot":"","sources":["createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,KAAuB,MAAM,OAAO,CAAC;AA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AAI,EAAE,UAAU,EAAE,CAAC,CAAC;IAEzC,qBAAqB;IACrB,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC;SAC3C,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QAExE,wCAAwC;SACvC,IAAI,CAAC,wBAAwB,EAAE,CAAC;SAChC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9D,2EAA2E;SAC1E,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;QACd,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEL,gEAAgE;IAChE,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAA,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -8,31 +8,31 @@ export declare function formFieldsFromSettings(selectedCountrySettings: CountryS
|
|
8
8
|
name: string;
|
9
9
|
label: any;
|
10
10
|
__typename?: "CustomerField";
|
11
|
-
fields?: CustomerField[];
|
12
|
-
pattern?: string;
|
13
11
|
required: boolean;
|
12
|
+
pattern?: string;
|
13
|
+
fields?: CustomerField[];
|
14
14
|
}[];
|
15
15
|
billingAddressFields: {
|
16
16
|
label: any;
|
17
17
|
placeholder: string;
|
18
18
|
type: string;
|
19
19
|
__typename?: "CustomerField";
|
20
|
-
fields?: CustomerField[];
|
21
20
|
id: string;
|
22
|
-
name: string;
|
23
|
-
pattern?: string;
|
24
21
|
required: boolean;
|
22
|
+
pattern?: string;
|
23
|
+
fields?: CustomerField[];
|
24
|
+
name: string;
|
25
25
|
}[];
|
26
26
|
deliveryAddressFields: {
|
27
27
|
label: any;
|
28
28
|
placeholder: string;
|
29
29
|
type: string;
|
30
30
|
__typename?: "CustomerField";
|
31
|
-
fields?: CustomerField[];
|
32
31
|
id: string;
|
33
|
-
name: string;
|
34
|
-
pattern?: string;
|
35
32
|
required: boolean;
|
33
|
+
pattern?: string;
|
34
|
+
fields?: CustomerField[];
|
35
|
+
name: string;
|
36
36
|
}[];
|
37
37
|
loginFields: {
|
38
38
|
type: string;
|
@@ -41,9 +41,9 @@ export declare function formFieldsFromSettings(selectedCountrySettings: CountryS
|
|
41
41
|
label: any;
|
42
42
|
placeholder: any;
|
43
43
|
__typename?: "CustomerField";
|
44
|
-
fields?: CustomerField[];
|
45
|
-
pattern?: string;
|
46
44
|
required: boolean;
|
45
|
+
pattern?: string;
|
46
|
+
fields?: CustomerField[];
|
47
47
|
}[];
|
48
48
|
pidField: {
|
49
49
|
type: string;
|
@@ -51,9 +51,9 @@ export declare function formFieldsFromSettings(selectedCountrySettings: CountryS
|
|
51
51
|
name: string;
|
52
52
|
label: any;
|
53
53
|
__typename?: "CustomerField";
|
54
|
-
fields?: CustomerField[];
|
55
|
-
pattern?: string;
|
56
54
|
required: boolean;
|
55
|
+
pattern?: string;
|
56
|
+
fields?: CustomerField[];
|
57
57
|
};
|
58
58
|
};
|
59
59
|
export declare function createValidatorForFields(fields: CustomerField[], { getFieldName, getFieldValue, customValidation }?: {
|
@@ -11,11 +11,11 @@ export default function useAddressFields(): {
|
|
11
11
|
label: string;
|
12
12
|
placeholder?: string;
|
13
13
|
__typename?: "CustomerField";
|
14
|
-
fields?: import("../../types").CustomerField[];
|
15
14
|
id: string;
|
16
|
-
name: string;
|
17
|
-
pattern?: string;
|
18
15
|
required: boolean;
|
16
|
+
pattern?: string;
|
17
|
+
fields?: import("../../types").CustomerField[];
|
18
|
+
name: string;
|
19
19
|
}[];
|
20
20
|
countries: import("../../types").Country[];
|
21
21
|
setCountryByCode: (countryCode: string) => void;
|
@@ -41,21 +41,21 @@ export declare function useCustomerQuery({ query, deliveryAddressId }: {
|
|
41
41
|
value: any;
|
42
42
|
label: any;
|
43
43
|
__typename?: "CustomerField";
|
44
|
-
fields?: CustomerField[];
|
45
44
|
id: string;
|
46
|
-
name: string;
|
47
|
-
pattern?: string;
|
48
45
|
required: boolean;
|
46
|
+
pattern?: string;
|
47
|
+
fields?: CustomerField[];
|
48
|
+
name: string;
|
49
49
|
}[];
|
50
50
|
deliveryAddress: {
|
51
51
|
value: any;
|
52
52
|
label: any;
|
53
53
|
__typename?: "CustomerField";
|
54
|
-
fields?: CustomerField[];
|
55
54
|
id: string;
|
56
|
-
name: string;
|
57
|
-
pattern?: string;
|
58
55
|
required: boolean;
|
56
|
+
pattern?: string;
|
57
|
+
fields?: CustomerField[];
|
58
|
+
name: string;
|
59
59
|
}[];
|
60
60
|
};
|
61
61
|
export declare function useCustomerUpdateMutation({ customerQuery }: {
|
@@ -11,10 +11,10 @@ export default function useLoginFields(): {
|
|
11
11
|
label: string;
|
12
12
|
placeholder?: string;
|
13
13
|
__typename?: "CustomerField";
|
14
|
-
fields?: import("../../types").CustomerField[];
|
15
14
|
id: string;
|
16
|
-
name: string;
|
17
|
-
pattern?: string;
|
18
15
|
required: boolean;
|
16
|
+
pattern?: string;
|
17
|
+
fields?: import("../../types").CustomerField[];
|
18
|
+
name: string;
|
19
19
|
}[];
|
20
20
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export declare function useChannelSettings(): {
|
2
2
|
__typename?: "ChannelSettings";
|
3
|
-
countrySettings?: import("../../types").CountrySettings[];
|
4
|
-
nostoAccountId?: string;
|
5
3
|
pricesIncVat?: boolean;
|
4
|
+
countrySettings?: import("../../types").CountrySettings[];
|
6
5
|
tracking?: import("../../types").Tracking;
|
6
|
+
nostoAccountId?: string;
|
7
7
|
};
|
@@ -19,48 +19,57 @@ productQueryResult: ProductsQuery): {
|
|
19
19
|
quantity: number;
|
20
20
|
isVariant: boolean;
|
21
21
|
variant: import("../../types").ProductVariant;
|
22
|
-
breadcrumbText?: string;
|
23
22
|
head?: import("../../types").HtmlHead;
|
24
23
|
primaryRoute?: import("../../types").Route;
|
24
|
+
breadcrumbText?: string;
|
25
25
|
__typename?: "Product";
|
26
|
+
id: number;
|
26
27
|
articleNumber: string;
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
name: string;
|
29
|
+
subName: string;
|
30
|
+
shortDescription: string;
|
31
|
+
description: string;
|
32
|
+
mainHeader: string;
|
33
|
+
publishedDate?: any;
|
30
34
|
canonicalCategory?: import("../../types").Category;
|
31
35
|
categories?: import("../../types").Category[];
|
32
|
-
|
33
|
-
|
36
|
+
campaigns?: import("../../types").Category[];
|
37
|
+
hasVariants: boolean;
|
38
|
+
hasVariantsWithDifferingPrices: boolean;
|
39
|
+
variants?: import("../../types").ProductVariants;
|
40
|
+
images?: import("../../types").ProductImage[];
|
41
|
+
relatedProducts?: Product[];
|
42
|
+
badges?: import("../../types").ProductBadge[];
|
43
|
+
price?: import("../../types").Price;
|
44
|
+
hidePrice?: boolean;
|
45
|
+
previousPrice?: import("../../types").Price;
|
46
|
+
defaultPrice?: import("../../types").Price;
|
47
|
+
defaultPreviousPrice?: import("../../types").Price;
|
48
|
+
recommendedPrice?: import("../../types").Price;
|
49
|
+
priceDateSpan?: import("../../types").ProductPriceDateSpan;
|
50
|
+
hasMemberPrice?: boolean;
|
51
|
+
memberPrice?: import("../../types").Price;
|
34
52
|
customerComments?: import("../../types").ProductComment[];
|
53
|
+
stockStatus?: import("../../types").StockStatus;
|
35
54
|
customFields?: import("../../types").CustomField[];
|
36
|
-
|
37
|
-
|
38
|
-
description: string;
|
55
|
+
warehouseStock?: import("../../types").Warehouse[];
|
56
|
+
recommendedProducts?: import("../../types").RecommendedProducts;
|
39
57
|
distributionPackageSize: number;
|
58
|
+
barcode?: string;
|
59
|
+
configurations?: import("../../types").ProductConfiguration[];
|
40
60
|
hasConfigurations: boolean;
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
inPackages?: Product[];
|
45
|
-
isPackage?: boolean;
|
61
|
+
hasFamilyMembers: boolean;
|
62
|
+
configurationPrice?: import("../../types").ProductConfigurationPrice;
|
63
|
+
quantitySuffix?: string;
|
46
64
|
isPreOrder?: boolean;
|
47
|
-
mainHeader: string;
|
48
|
-
name: string;
|
49
|
-
package?: import("../../types").Package;
|
50
65
|
preOrder?: import("../../types").ProductPreOrder;
|
51
|
-
|
52
|
-
|
53
|
-
publishedDate?: any;
|
54
|
-
quantitySuffix?: string;
|
55
|
-
recommendedPrice?: import("../../types").Price;
|
56
|
-
recommendedProducts?: import("../../types").RecommendedProducts;
|
57
|
-
relatedProducts?: Product[];
|
58
|
-
shortDescription: string;
|
59
|
-
stockStatus?: import("../../types").StockStatus;
|
60
|
-
subName: string;
|
66
|
+
isPackage?: boolean;
|
67
|
+
package?: import("../../types").Package;
|
61
68
|
upsell?: import("../../types").Upsell;
|
62
|
-
|
63
|
-
|
69
|
+
inPackages?: Product[];
|
70
|
+
hasUpsell?: boolean;
|
71
|
+
familyMembers?: Product[];
|
72
|
+
history?: import("../../types").ProductHistory;
|
64
73
|
}[];
|
65
74
|
export declare function getVariantFromProductDetails(variant: Product['articleNumber'], product: Product): import("../../types").ProductVariant;
|
66
75
|
export declare function flattenList(list: NormalizedProductList): FlattenedProductListItem[];
|
@@ -3,10 +3,6 @@ export function usePreconnectLinks({ ga = false, gtm = false } = {}) {
|
|
3
3
|
const { apolloConfig } = useShopConfig();
|
4
4
|
// These links are used with every store
|
5
5
|
const staticLinks = [
|
6
|
-
{
|
7
|
-
href: 'https://cdn.polyfill.io',
|
8
|
-
crossOrigin: null
|
9
|
-
},
|
10
6
|
(apolloConfig === null || apolloConfig === void 0 ? void 0 : apolloConfig.graphQLURI) && {
|
11
7
|
href: apolloConfig === null || apolloConfig === void 0 ? void 0 : apolloConfig.graphQLURI,
|
12
8
|
crossOrigin: null
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usePreconnectLinks.js","sourceRoot":"","sources":["usePreconnectLinks.tsx"],"names":[],"mappings":"AAAA,O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rice.d.ts
CHANGED
package/package.json
CHANGED
package/polyfills.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const createPolyfillMock: () => string;
|
package/polyfills.js
CHANGED
@@ -1,38 +1,4 @@
|
|
1
1
|
import { enableES5 } from 'immer';
|
2
2
|
enableES5();
|
3
|
-
const
|
4
|
-
'es6',
|
5
|
-
'Object.values',
|
6
|
-
'Object.entries',
|
7
|
-
'Object.keys',
|
8
|
-
'Object.assign',
|
9
|
-
'Array.prototype.find',
|
10
|
-
'Array.prototype.findIndex',
|
11
|
-
'Array.prototype.flatMap',
|
12
|
-
'Array.prototype.includes',
|
13
|
-
'Array.prototype.keys',
|
14
|
-
'Array.from',
|
15
|
-
'Array.prototype.fill',
|
16
|
-
'String.prototype.endsWith',
|
17
|
-
'String.prototype.startsWith',
|
18
|
-
'URL',
|
19
|
-
'IntersectionObserver',
|
20
|
-
`Intl.~locale.${locale}`,
|
21
|
-
'Promise',
|
22
|
-
'fetch',
|
23
|
-
'Symbol',
|
24
|
-
'ResizeObserver'
|
25
|
-
];
|
26
|
-
export const createPolyfill = (locale) => {
|
27
|
-
const features = polyfills(locale).join(',');
|
28
|
-
// Here we add two script tags to be run once the client is loaded. One sets a global variable 'polyFillsLoaded' to false and adds a function bootShop which, when called will set 'polyFillsLoaded' to true. The second script will load the polyfills and once they are loaded will call the bootShop function to let the client know that the polyfills have been loaded and that the shop can be started.
|
29
|
-
return `
|
30
|
-
<script>
|
31
|
-
window.polyFillsLoaded = false;
|
32
|
-
window.bootShop = function() {
|
33
|
-
window.polyFillsLoaded = true;
|
34
|
-
};
|
35
|
-
</script>
|
36
|
-
<script async defer src="https://cdn.polyfill.io/v3/polyfill${process.env.NODE_ENV === 'production' ? '.min' : ''}.js?callback=bootShop&features=${features}&flags=gated"></script>`;
|
37
|
-
};
|
3
|
+
export const createPolyfillMock = () => ``;
|
38
4
|
//# sourceMappingURL=polyfills.js.map
|
package/polyfills.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,SAAS,EAAE,CAAC;AAEZ,MAAM,
|
1
|
+
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,SAAS,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC"}
|