@speedkit/cli 2.85.1 → 2.87.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [2.87.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.86.0...v2.87.0) (2025-06-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** provide return templates for ecAddToCart tracking events ([4b5f502](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/4b5f502afed7cb479665fb8983199963562b070a))
|
|
7
|
+
* **customer-config:** switch ecAddToCart tracking event from set to append ([46d8833](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/46d8833e89d5317969ac72a5c7b846106d3a92ba))
|
|
8
|
+
|
|
9
|
+
# [2.86.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.85.1...v2.86.0) (2025-05-23)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* update pop list ([4a9d22a](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/4a9d22a97a41e1b0a450a6c850ce3a20dc5d176b))
|
|
15
|
+
|
|
1
16
|
## [2.85.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.85.0...v2.85.1) (2025-05-21)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
14
14
|
}
|
|
15
15
|
{{#if hasSoftNavigations}}
|
|
16
16
|
|
|
17
|
+
// Soft Navigation Handling:
|
|
17
18
|
var softLcpPending = false;
|
|
18
19
|
var latestUrl = location.href;
|
|
19
20
|
{{/if}}
|
|
@@ -22,6 +23,8 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
22
23
|
var pageTypeSent = false;
|
|
23
24
|
{{/if}}
|
|
24
25
|
|
|
26
|
+
var defaultCurrency = 'EUR'; // TODO: verify default currency
|
|
27
|
+
|
|
25
28
|
window.SpeedKit = window.SpeedKit || {};
|
|
26
29
|
SpeedKit.rumPlugins = SpeedKit.rumPlugins || [];
|
|
27
30
|
SpeedKit.rumPlugins.push(
|
|
@@ -31,8 +34,7 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
31
34
|
{{/if}}
|
|
32
35
|
{{#if useGATracking}}
|
|
33
36
|
new GAEcommerceTrackingPlugin({
|
|
34
|
-
|
|
35
|
-
defaultCurrency: "EUR"
|
|
37
|
+
defaultCurrency: defaultCurrency
|
|
36
38
|
}),
|
|
37
39
|
{{/if}}
|
|
38
40
|
|
|
@@ -270,11 +272,10 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
270
272
|
// // iterate over all added products
|
|
271
273
|
// for (var i = 0; i < ecommerce.add.products.length; i++) {
|
|
272
274
|
// aTCProductsArray.push({
|
|
273
|
-
// id: ecommerce.add.products[i].id
|
|
274
|
-
//
|
|
275
|
-
// currencyCode: currencyCode ? currencyCode : 'EUR',
|
|
275
|
+
// id: ecommerce.add.products[i].id, // optional – remove if no id is available
|
|
276
|
+
// currencyCode: currencyCode || defaultCurrency,
|
|
276
277
|
// price: Number(ecommerce.add.products[i].price),
|
|
277
|
-
// quantity: ecommerce.add.products[i].quantity
|
|
278
|
+
// quantity: Number(ecommerce.add.products[i].quantity) || 1,
|
|
278
279
|
// });
|
|
279
280
|
// }
|
|
280
281
|
//
|
|
@@ -302,8 +303,9 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
302
303
|
// var orderId = purchase.actionField.id;
|
|
303
304
|
// var orderValue = String(purchase.actionField.revenue).replace(',', '.');
|
|
304
305
|
// return {
|
|
305
|
-
//
|
|
306
|
-
//
|
|
306
|
+
// id: String(orderId),
|
|
307
|
+
// currencyCode: defaultCurrency,
|
|
308
|
+
// revenue: Number(orderValue),
|
|
307
309
|
// };
|
|
308
310
|
// },
|
|
309
311
|
// },
|
|
@@ -313,7 +315,7 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
313
315
|
// {
|
|
314
316
|
// key: 'ecAddToCart',
|
|
315
317
|
// on: onAddToCartClick,
|
|
316
|
-
//
|
|
318
|
+
// append: function () {
|
|
317
319
|
// if (window.ShopifyAnalytics?.lib) {
|
|
318
320
|
// var shopifyData = window.ShopifyAnalytics.lib;
|
|
319
321
|
// var product;
|
|
@@ -329,10 +331,9 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
329
331
|
//
|
|
330
332
|
// if (product) {
|
|
331
333
|
// return {
|
|
332
|
-
//
|
|
333
|
-
// variantId: product.variantId,
|
|
334
|
+
// id: product.productId + '_' + product.variantId, // optional – remove if no id is available
|
|
334
335
|
// price: Number(product.price),
|
|
335
|
-
//
|
|
336
|
+
// currencyCode: product.currency || defaultCurrency,
|
|
336
337
|
// quantity: 1,
|
|
337
338
|
// }
|
|
338
339
|
// }
|
|
@@ -354,7 +355,9 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
354
355
|
var orderValue = window.Shopify.checkout.total_price;
|
|
355
356
|
|
|
356
357
|
return {
|
|
357
|
-
id: orderId,
|
|
358
|
+
id: orderId,
|
|
359
|
+
currencyCode: orderCurrency || defaultCurrency,
|
|
360
|
+
revenue: Number(orderValue),
|
|
358
361
|
};
|
|
359
362
|
}
|
|
360
363
|
},
|
|
@@ -364,15 +367,33 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
364
367
|
{
|
|
365
368
|
key: 'ecAddToCart',
|
|
366
369
|
// TODO: set proper 'on' event listener
|
|
367
|
-
|
|
368
|
-
//
|
|
370
|
+
append: function() {
|
|
371
|
+
// var itemId = ...;
|
|
372
|
+
// var itemPrice = ...;
|
|
373
|
+
// var itemCurrency = ...;
|
|
374
|
+
// var itemQuantity = ...;
|
|
375
|
+
//
|
|
376
|
+
// return {
|
|
377
|
+
// id: String(itemId), // optional – remove if no id is available
|
|
378
|
+
// price: Number(itemPrice),
|
|
379
|
+
// currencyCode: itemCurrency || defaultCurrency,
|
|
380
|
+
// quantity: Number(itemQuantity) || 1,
|
|
381
|
+
// }
|
|
369
382
|
},
|
|
370
383
|
},
|
|
371
384
|
{
|
|
372
385
|
key: 'ecConversion',
|
|
373
386
|
// TODO: set proper 'on' event listener
|
|
374
387
|
set: function() {
|
|
375
|
-
//
|
|
388
|
+
// var orderId = ...;
|
|
389
|
+
// var orderValue = ...;
|
|
390
|
+
// var orderCurrency = ...;
|
|
391
|
+
//
|
|
392
|
+
// return {
|
|
393
|
+
// id: String(orderId),
|
|
394
|
+
// currencyCode: orderCurrency || defaultCurrency,
|
|
395
|
+
// revenue: Number(orderValue),
|
|
396
|
+
// };
|
|
376
397
|
},
|
|
377
398
|
},
|
|
378
399
|
{{/if}}
|
package/dist/templates/pops.js
CHANGED
|
@@ -1,92 +1,96 @@
|
|
|
1
1
|
const POP = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
2
|
+
BRU: "151.101.10.8",
|
|
3
|
+
PDK: "151.101.14.8",
|
|
4
|
+
BFI: "151.101.22.8",
|
|
5
|
+
SYD: "151.101.30.8",
|
|
6
|
+
AMS: "151.101.38.8",
|
|
7
|
+
SJC: "151.101.42.8",
|
|
8
|
+
NYC: "151.101.46.8",
|
|
9
|
+
WVI: "151.101.50.8",
|
|
10
|
+
HHR: "151.101.74.8",
|
|
11
|
+
HKG: "151.101.78.8",
|
|
12
|
+
MEL: "151.101.82.8",
|
|
13
|
+
BMA: "151.101.86.8",
|
|
14
|
+
ITM: "151.101.90.8",
|
|
15
|
+
GRU: "151.101.94.8",
|
|
16
|
+
BNE: "151.101.98.8",
|
|
17
|
+
PER: "151.101.106.8",
|
|
18
|
+
TYO: "151.101.110.8",
|
|
19
|
+
DFW: "151.101.114.8",
|
|
20
|
+
BOS: "151.101.118.8",
|
|
21
|
+
CDG: "151.101.122.8",
|
|
22
|
+
YYZ: "151.101.126.8",
|
|
23
|
+
MAD: "151.101.134.8",
|
|
24
|
+
YUL: "151.101.138.8",
|
|
25
|
+
FJR: "151.101.142.8",
|
|
26
|
+
CMH: "151.101.146.8",
|
|
27
|
+
MSP: "151.101.150.8",
|
|
28
|
+
BOM: "151.101.154.8",
|
|
29
|
+
MAA: "151.101.158.8",
|
|
30
|
+
AKL: "151.101.166.8",
|
|
31
|
+
JNB: "151.101.174.8",
|
|
32
|
+
GIG: "151.101.178.8",
|
|
33
|
+
IAH: "151.101.182.8",
|
|
34
|
+
LHR: "151.101.190.8",
|
|
35
|
+
LAX: "151.101.198.8",
|
|
36
|
+
PAO: "151.101.202.8",
|
|
37
|
+
YVR: "151.101.214.8",
|
|
38
|
+
EZE: "151.101.218.8",
|
|
39
|
+
SCL: "151.101.222.8",
|
|
40
|
+
CPT: "151.101.226.8",
|
|
41
|
+
HND: "151.101.230.8",
|
|
42
|
+
WLG: "151.101.234.8",
|
|
43
|
+
OSL: "151.101.238.8",
|
|
44
|
+
MXP: "151.101.242.8",
|
|
45
|
+
HEL: "151.101.246.8",
|
|
46
|
+
VIE: "199.232.18.8",
|
|
47
|
+
DEL: "199.232.22.8",
|
|
48
|
+
DUB: "199.232.26.8",
|
|
49
|
+
STP: "199.232.30.8",
|
|
50
|
+
LGA: "199.232.38.8",
|
|
51
|
+
CPH: "199.232.42.8",
|
|
52
|
+
QPG: "199.232.46.8",
|
|
53
|
+
BOG: "199.232.50.8",
|
|
54
|
+
MAN: "199.232.54.8",
|
|
55
|
+
LON: "199.232.58.8",
|
|
56
|
+
ACC: "199.232.62.8",
|
|
57
|
+
DEN: "199.232.66.8",
|
|
58
|
+
STL: "199.232.70.8",
|
|
59
|
+
MCI: "199.232.74.8",
|
|
60
|
+
MRS: "199.232.82.8",
|
|
61
|
+
EWR: "199.232.90.8",
|
|
62
|
+
LCK: "199.232.98.8",
|
|
63
|
+
CCU: "199.232.102.8",
|
|
64
|
+
HYD: "199.232.106.8",
|
|
65
|
+
LIM: "199.232.134.8",
|
|
66
|
+
WSI: "199.232.138.8",
|
|
67
|
+
PDX: "199.232.146.8",
|
|
68
|
+
PHX: "199.232.154.8",
|
|
69
|
+
BKK: "199.232.166.8",
|
|
70
|
+
PAR: "199.232.170.8",
|
|
71
|
+
MUC: "199.232.190.8",
|
|
72
|
+
SOF: "146.75.2.8",
|
|
73
|
+
FOR: "146.75.6.8",
|
|
74
|
+
DTW: "146.75.10.8",
|
|
75
|
+
CHC: "146.75.14.8",
|
|
76
|
+
MNL: "146.75.22.8",
|
|
77
|
+
KUL: "146.75.26.8",
|
|
78
|
+
IAD: "146.75.30.8",
|
|
79
|
+
SIN: "146.75.46.8",
|
|
80
|
+
ICN: "146.75.50.8",
|
|
81
|
+
LIN: "146.75.54.8",
|
|
82
|
+
PMO: "146.75.58.8",
|
|
83
|
+
FCO: "146.75.62.8",
|
|
84
|
+
DXB: "146.75.66.8",
|
|
85
|
+
LCY: "146.75.74.8",
|
|
86
|
+
CHI: "146.75.78.8",
|
|
87
|
+
GNV: "146.75.86.8",
|
|
88
|
+
LIS: "146.75.90.8",
|
|
89
|
+
BUR: "146.75.94.8",
|
|
90
|
+
HNL: "146.75.98.8",
|
|
91
|
+
ADL: "146.75.102.8",
|
|
92
|
+
YYC: "146.75.110.8",
|
|
93
|
+
NRT: "146.75.114.8",
|
|
94
|
+
FRA: "146.75.118.8",
|
|
95
|
+
MIA: "146.75.126.8",
|
|
96
|
+
};
|
package/oclif.manifest.json
CHANGED