@speedkit/cli 3.39.0 → 3.41.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 +14 -0
- package/README.md +1 -1
- package/dist/services/customer-config/templates/config_SpeedKit.js.hbs +9 -0
- package/dist/services/customer-config/templates/config_documentHandler.js.hbs +10 -2
- package/dist/services/customer-config/templates/config_dynamicBlocks.es6.hbs +6 -0
- package/dist/services/customer-config/templates/config_loadHandler.js.hbs +2 -21
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.41.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.40.0...v3.41.0) (2026-04-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** add shopify config plugin and remove custom a2c tracking event ([d96b6cc](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/d96b6cc76685cdc4881f89f5c5de4ac5e1a9e2e5))
|
|
7
|
+
|
|
8
|
+
# [3.40.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.39.0...v3.40.0) (2026-04-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customer-conifg:** add encouragement for url documentation for selectors ([b56e615](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/b56e6155e37dd0f74a6b5978308582d4a7a9750b))
|
|
14
|
+
|
|
1
15
|
# [3.39.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.38.0...v3.39.0) (2026-04-01)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -32,7 +32,16 @@
|
|
|
32
32
|
/\/backend/i,
|
|
33
33
|
{{/inline}}
|
|
34
34
|
|
|
35
|
+
{{#if isShopify}}
|
|
36
|
+
import { ShopifyPlugin } from "speed-kit-config/ShopifyPlugin";
|
|
37
|
+
|
|
38
|
+
(function() {
|
|
39
|
+
SpeedKit.configPlugins = SpeedKit.configPlugins || [];
|
|
40
|
+
SpeedKit.configPlugins.push(new ShopifyPlugin());
|
|
41
|
+
|
|
42
|
+
{{else}}
|
|
35
43
|
(function() {
|
|
44
|
+
{{/if}}
|
|
36
45
|
var ENABLED_HOSTS_CONFIGS = [
|
|
37
46
|
// Production:
|
|
38
47
|
{
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
...lazyLoadDefaultConfig,
|
|
21
21
|
elementSelectors: [
|
|
22
22
|
'.image-with-text-overlay__banner',
|
|
23
|
+
// e.g. <example-url>
|
|
23
24
|
],
|
|
24
25
|
limit: 1
|
|
25
26
|
},
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
...lazyLoadDefaultConfig,
|
|
30
31
|
elementSelectors: [
|
|
31
32
|
'.product-image__wrapper',
|
|
33
|
+
// e.g. <example-url>
|
|
32
34
|
],
|
|
33
35
|
limit: 4
|
|
34
36
|
},
|
|
@@ -38,6 +40,7 @@
|
|
|
38
40
|
...lazyLoadDefaultConfig,
|
|
39
41
|
elementSelectors: [
|
|
40
42
|
'.product-gallery__image',
|
|
43
|
+
// e.g. <example-url>
|
|
41
44
|
],
|
|
42
45
|
limit: 1
|
|
43
46
|
},
|
|
@@ -167,8 +170,13 @@ const config = {
|
|
|
167
170
|
{
|
|
168
171
|
whenPresent: 'body > #app',
|
|
169
172
|
waitFor: [
|
|
170
|
-
//
|
|
171
|
-
|
|
173
|
+
// TODO: adjust/replace this exemplary list
|
|
174
|
+
|
|
175
|
+
// PLP wait for first image to be loaded
|
|
176
|
+
// e.g. <example-url>
|
|
177
|
+
'.products-list-page__products-list .products-list__tiles__element:first-child img[src]',
|
|
178
|
+
// or the no results disclaimer appears:
|
|
179
|
+
'.products-list-page__products-list .no-results-found',
|
|
172
180
|
],
|
|
173
181
|
{{#if addSSRInnerShadowDomSupport}}
|
|
174
182
|
waitForCallback: waitForCallback.toString(),
|
|
@@ -39,12 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
|
|
41
41
|
// Stage Teaser:
|
|
42
|
+
// e.g. <example-url>
|
|
42
43
|
{
|
|
43
44
|
find: ".stage-teaser source",
|
|
44
45
|
compare: ["srcset"],
|
|
45
46
|
},
|
|
46
47
|
|
|
47
48
|
// PLP Items:
|
|
49
|
+
// e.g. <example-url>
|
|
48
50
|
{
|
|
49
51
|
find: ".product-grid .product img",
|
|
50
52
|
limit: 9, // only compare the first 9 products
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
},
|
|
53
55
|
|
|
54
56
|
// PDP Hero Image:
|
|
57
|
+
// e.g. <example-url>
|
|
55
58
|
{
|
|
56
59
|
find: ".product-detail .slide.main img",
|
|
57
60
|
compare: ["src"],
|
|
@@ -124,12 +127,14 @@
|
|
|
124
127
|
},
|
|
125
128
|
|
|
126
129
|
// Stage Teaser:
|
|
130
|
+
// e.g. <example-url>
|
|
127
131
|
{
|
|
128
132
|
find: ".stage-teaser source",
|
|
129
133
|
compare: ["srcset"],
|
|
130
134
|
},
|
|
131
135
|
|
|
132
136
|
// PLP Items:
|
|
137
|
+
// e.g. <example-url>
|
|
133
138
|
{
|
|
134
139
|
find: ".product-grid .product img",
|
|
135
140
|
limit: 9, // only compare the first 9 products
|
|
@@ -137,6 +142,7 @@
|
|
|
137
142
|
},
|
|
138
143
|
|
|
139
144
|
// PDP Hero Image:
|
|
145
|
+
// e.g. <example-url>
|
|
140
146
|
{
|
|
141
147
|
find: ".product-detail .slide.main img",
|
|
142
148
|
compare: ["src"],
|
|
@@ -237,30 +237,11 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
237
237
|
// },
|
|
238
238
|
// },
|
|
239
239
|
{{else}}
|
|
240
|
+
|
|
240
241
|
{{#if isShopify}}
|
|
241
|
-
|
|
242
|
-
key: "ecAddToCart",
|
|
243
|
-
// TODO depending on the used theme different events are in use variant:added, product-ajax:added, product:added
|
|
244
|
-
// TODO the correct event can easily spotted by search for the initiator of the /cart/add request after doing a addToCart
|
|
245
|
-
on: (callback) => document.addEventListener("product-ajax:added", callback),
|
|
246
|
-
append: function (event) {
|
|
247
|
-
// TODO depending on the used event the product is exposed under a different property
|
|
248
|
-
var product = event.detail.product;
|
|
249
|
-
|
|
250
|
-
if (product) {
|
|
251
|
-
return {
|
|
252
|
-
id: product.product_id,
|
|
253
|
-
price: (product.discounted_price ?? product.price) / 100, // price is in cents
|
|
254
|
-
currencyCode: window.Shopify?.currency?.active || defaultCurrency,
|
|
255
|
-
quantity: product.quantity,
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
|
|
242
|
+
// No custom ecAddToCart tracking event needed as it is already handled by the speed-kit-config/ShopifyPlugin
|
|
261
243
|
// No custom ecConversion tracking event as it is already handled by the Speed Kit Extension for Shopify
|
|
262
244
|
{{else}}
|
|
263
|
-
|
|
264
245
|
{
|
|
265
246
|
key: 'ecAddToCart',
|
|
266
247
|
// TODO: set proper 'on' event listener
|
package/oclif.manifest.json
CHANGED