@jetshop/core 6.2.8 → 6.2.11
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.
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Generating `template.json`
|
|
2
|
+
|
|
3
|
+
This file is created from the container `GTM-M4Q6MBN` (test.demostore.se). If you want to make a new export, make your changes in the workspace and make a new export under Administrator -> Export container, and then commit the file to this repository.
|
|
@@ -4,7 +4,7 @@ export function usePreconnectLinks({ ga = false, gtm = false } = {}) {
|
|
|
4
4
|
// These links are used with every store
|
|
5
5
|
const staticLinks = [
|
|
6
6
|
usePolyfilling && {
|
|
7
|
-
href: 'https://
|
|
7
|
+
href: 'https://cdnjs.cloudflare.com',
|
|
8
8
|
crossOrigin: null
|
|
9
9
|
},
|
|
10
10
|
(apolloConfig === null || apolloConfig === void 0 ? void 0 : apolloConfig.graphQLURI) && {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePreconnectLinks.js","sourceRoot":"","sources":["usePreconnectLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYhD,MAAM,UAAU,kBAAkB,CAAC,EACjC,EAAE,GAAG,KAAK,EACV,GAAG,GAAG,KAAK,KACc,EAAE;IAC3B,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,aAAa,EAAE,CAAC;IAEzD,wCAAwC;IACxC,MAAM,WAAW,GAAG;QAClB,cAAc,IAAI;YAChB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"usePreconnectLinks.js","sourceRoot":"","sources":["usePreconnectLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYhD,MAAM,UAAU,kBAAkB,CAAC,EACjC,EAAE,GAAG,KAAK,EACV,GAAG,GAAG,KAAK,KACc,EAAE;IAC3B,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,aAAa,EAAE,CAAC;IAEzD,wCAAwC;IACxC,MAAM,WAAW,GAAG;QAClB,cAAc,IAAI;YAChB,IAAI,EAAE,8BAA8B;YACpC,WAAW,EAAE,IAAI;SAClB;QACD,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,KAAI;YAC1B,IAAI,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU;YAC9B,WAAW,EAAE,IAAI;SAClB;KACF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,+DAA+D;IAC/D,MAAM,OAAO,GAAG,EAAE;QAChB,CAAC,CAAC;YACE,kCAAkC;YAClC,wBAAwB;YACxB,iCAAiC;SAClC;QACH,CAAC,CAAC,EAAE,CAAC;IAEP,6CAA6C;IAC7C,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,OAAO;QACL,GAAG,WAAW;QACd,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;KACzE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/core",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -113,5 +113,6 @@
|
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"react": "^18",
|
|
115
115
|
"react-dom": "^18"
|
|
116
|
-
}
|
|
116
|
+
},
|
|
117
|
+
"gitHead": "bafce6bef141f0955f953070dee20a5478674051"
|
|
117
118
|
}
|
package/polyfills.js
CHANGED
|
@@ -28,11 +28,13 @@ export const createPolyfill = (locale, usePolyfilling) => {
|
|
|
28
28
|
<script>
|
|
29
29
|
window.polyFillsLoaded = false;
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// Set the polyFillsLoaded flag to true and start the shop
|
|
32
|
+
window.onPolyfillLoad = function() {
|
|
32
33
|
window.polyFillsLoaded = true;
|
|
34
|
+
window.bootShop();
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
// If polyfill
|
|
37
|
+
// If polyfill service does not respond, start the shop anyway
|
|
36
38
|
if (${usePolyfilling}) {
|
|
37
39
|
setTimeout(function () {
|
|
38
40
|
if(!window.polyFillsLoaded) {
|
|
@@ -43,9 +45,8 @@ export const createPolyfill = (locale, usePolyfilling) => {
|
|
|
43
45
|
</script>
|
|
44
46
|
|
|
45
47
|
${usePolyfilling
|
|
46
|
-
? `<script async defer src='https://
|
|
48
|
+
? `<script async defer src='https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0${process.env.NODE_ENV === 'production' ? '.min' : ''}.js&callback=onPolyfillLoad&features=${features}'></script>`
|
|
47
49
|
: '<script>window.bootShop();</script>'}
|
|
48
|
-
|
|
49
50
|
`;
|
|
50
51
|
};
|
|
51
52
|
//# sourceMappingURL=polyfills.js.map
|
package/polyfills.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC;IACpC,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,sBAAsB;IACtB,2BAA2B;IAC3B,yBAAyB;IACzB,0BAA0B;IAC1B,sBAAsB;IACtB,YAAY;IACZ,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;IAC7B,KAAK;IACL,sBAAsB;IACtB,gBAAgB,MAAM,EAAE;IACxB,SAAS;IACT,OAAO;IACP,QAAQ;IACR,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,cAAuB,EAAE,EAAE;IACxE,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7C,6YAA6Y;IAC7Y,OAAO
|
|
1
|
+
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["polyfills.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC;IACpC,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,sBAAsB;IACtB,2BAA2B;IAC3B,yBAAyB;IACzB,0BAA0B;IAC1B,sBAAsB;IACtB,YAAY;IACZ,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;IAC7B,KAAK;IACL,sBAAsB;IACtB,gBAAgB,MAAM,EAAE;IACxB,SAAS;IACT,OAAO;IACP,QAAQ;IACR,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,cAAuB,EAAE,EAAE;IACxE,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7C,6YAA6Y;IAC7Y,OAAO;;;;;;;;;;;QAWD,cAAc;;;;;;;;;IAUlB,cAAc;QACZ,CAAC,CAAC,kGACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACnD,wCAAwC,QAAQ,aAAa;QAC/D,CAAC,CAAC,qCACN;CACD,CAAC;AACF,CAAC,CAAC"}
|
package/types.d.ts
CHANGED
|
@@ -1346,6 +1346,7 @@ export type Order = {
|
|
|
1346
1346
|
currency?: Maybe<Currency>;
|
|
1347
1347
|
attachments?: Maybe<Array<Maybe<OrderAttachment>>>;
|
|
1348
1348
|
orderPurchaseLocation?: Maybe<Scalars['String']>;
|
|
1349
|
+
orderComments?: Maybe<Array<Maybe<OrderComment>>>;
|
|
1349
1350
|
};
|
|
1350
1351
|
|
|
1351
1352
|
|
|
@@ -1439,6 +1440,12 @@ export type OrderAttachment = {
|
|
|
1439
1440
|
url?: Maybe<Scalars['String']>;
|
|
1440
1441
|
};
|
|
1441
1442
|
|
|
1443
|
+
export type OrderComment = {
|
|
1444
|
+
__typename?: 'OrderComment';
|
|
1445
|
+
title?: Maybe<Scalars['String']>;
|
|
1446
|
+
text?: Maybe<Scalars['String']>;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1442
1449
|
export type MyPagesContent = {
|
|
1443
1450
|
__typename?: 'MyPagesContent';
|
|
1444
1451
|
/** Text that will show on the landing page on MyPages */
|