@jay-framework/wix-stores 0.17.2 → 0.17.4
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/dist/index.client.js +5 -5
- package/package.json +15 -15
package/dist/index.client.js
CHANGED
|
@@ -376,7 +376,7 @@ function setupCardInteractions(refs, cards, storesContext) {
|
|
|
376
376
|
variantStockLoading.delete(productId);
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
refs.addToCartButton
|
|
379
|
+
refs.addToCartButton?.onclick(async ({ coordinate }) => {
|
|
380
380
|
const [productId] = coordinate;
|
|
381
381
|
const currentResults = cards.get();
|
|
382
382
|
const productIndex = currentResults.findIndex((p) => p._id === productId);
|
|
@@ -398,11 +398,11 @@ function setupCardInteractions(refs, cards, storesContext) {
|
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
refs.cardContainer
|
|
401
|
+
refs.cardContainer?.onmouseenter(({ coordinate }) => {
|
|
402
402
|
const [productId] = coordinate;
|
|
403
403
|
loadVariantStock(productId);
|
|
404
404
|
});
|
|
405
|
-
refs.quickOption
|
|
405
|
+
refs.quickOption?.choices?.choiceButton?.onclick(async ({ coordinate }) => {
|
|
406
406
|
const [productId, choiceId] = coordinate;
|
|
407
407
|
const currentResults = cards.get();
|
|
408
408
|
const productIndex = currentResults.findIndex((p) => p._id === productId);
|
|
@@ -469,7 +469,7 @@ function setupCardInteractions(refs, cards, storesContext) {
|
|
|
469
469
|
);
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
|
-
refs.secondQuickOption
|
|
472
|
+
refs.secondQuickOption?.choices?.choiceButton?.onclick(async ({ coordinate }) => {
|
|
473
473
|
const [productId, choiceId] = coordinate;
|
|
474
474
|
const currentResults = cards.get();
|
|
475
475
|
const productIndex = currentResults.findIndex((p) => p._id === productId);
|
|
@@ -504,7 +504,7 @@ function setupCardInteractions(refs, cards, storesContext) {
|
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
refs.viewOptionsButton
|
|
507
|
+
refs.viewOptionsButton?.onclick(({ coordinate }) => {
|
|
508
508
|
const [productId] = coordinate;
|
|
509
509
|
const product = cards.get().find((p) => p._id === productId);
|
|
510
510
|
if (product?.productUrl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/wix-stores",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wix Stores API client for Jay Framework",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"test": ":"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jay-framework/component": "^0.17.
|
|
42
|
-
"@jay-framework/fullstack-component": "^0.17.
|
|
43
|
-
"@jay-framework/reactive": "^0.17.
|
|
44
|
-
"@jay-framework/runtime": "^0.17.
|
|
45
|
-
"@jay-framework/secure": "^0.17.
|
|
46
|
-
"@jay-framework/stack-client-runtime": "^0.17.
|
|
47
|
-
"@jay-framework/stack-server-runtime": "^0.17.
|
|
48
|
-
"@jay-framework/wix-cart": "^0.17.
|
|
49
|
-
"@jay-framework/wix-server-client": "^0.17.
|
|
50
|
-
"@jay-framework/wix-utils": "^0.17.
|
|
41
|
+
"@jay-framework/component": "^0.17.4",
|
|
42
|
+
"@jay-framework/fullstack-component": "^0.17.4",
|
|
43
|
+
"@jay-framework/reactive": "^0.17.4",
|
|
44
|
+
"@jay-framework/runtime": "^0.17.4",
|
|
45
|
+
"@jay-framework/secure": "^0.17.4",
|
|
46
|
+
"@jay-framework/stack-client-runtime": "^0.17.4",
|
|
47
|
+
"@jay-framework/stack-server-runtime": "^0.17.4",
|
|
48
|
+
"@jay-framework/wix-cart": "^0.17.4",
|
|
49
|
+
"@jay-framework/wix-server-client": "^0.17.4",
|
|
50
|
+
"@jay-framework/wix-utils": "^0.17.4",
|
|
51
51
|
"@wix/categories": "^1.0.185",
|
|
52
52
|
"@wix/data-extension-schema": "^1.0.221",
|
|
53
53
|
"@wix/sdk": "^1.21.5",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@babel/core": "^7.23.7",
|
|
60
60
|
"@babel/preset-env": "^7.23.8",
|
|
61
61
|
"@babel/preset-typescript": "^7.23.3",
|
|
62
|
-
"@jay-framework/compiler-jay-stack": "^0.17.
|
|
63
|
-
"@jay-framework/jay-cli": "^0.17.
|
|
64
|
-
"@jay-framework/jay-stack-cli": "^0.17.
|
|
65
|
-
"@jay-framework/vite-plugin": "^0.17.
|
|
62
|
+
"@jay-framework/compiler-jay-stack": "^0.17.4",
|
|
63
|
+
"@jay-framework/jay-cli": "^0.17.4",
|
|
64
|
+
"@jay-framework/jay-stack-cli": "^0.17.4",
|
|
65
|
+
"@jay-framework/vite-plugin": "^0.17.4",
|
|
66
66
|
"nodemon": "^3.0.3",
|
|
67
67
|
"rimraf": "^5.0.5",
|
|
68
68
|
"tslib": "^2.6.2",
|