@gomusdev/web-components 4.14.1 → 4.14.3
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/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.14.3 (2026-08-04)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **order:** guard go-order cart cleanup against mounting before shop.load()
|
|
8
|
+
|
|
9
|
+
## 4.14.2 (2026-08-04)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **checkout:** allow overriding the checkoutSuccess url via go.config urls
|
|
14
|
+
|
|
3
15
|
## 4.14.1 (2026-08-03)
|
|
4
16
|
|
|
5
17
|
### Bug Fixes
|
|
@@ -18667,8 +18667,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18667
18667
|
if (beforeSubmit) await beforeSubmit(form.details.formData);
|
|
18668
18668
|
const meta = checkout.data.meta;
|
|
18669
18669
|
const navigateTo = configStore.config.navigateTo;
|
|
18670
|
-
if (meta.status === "success")
|
|
18671
|
-
|
|
18670
|
+
if (meta.status === "success") {
|
|
18671
|
+
const checkoutSuccess = configStore.config.urls.checkoutSuccess ?? shop.urls.checkoutSuccess;
|
|
18672
|
+
navigateTo?.(checkoutSuccess(checkout.data.order.token));
|
|
18673
|
+
} else if (meta.status === "fail") navigateTo?.(shop.urls.checkoutFailure(""));
|
|
18672
18674
|
else if (meta.payment_url) navigateTo?.(meta.payment_url);
|
|
18673
18675
|
else if (meta.payment_data) postToPaymentProvider(meta.payment_data);
|
|
18674
18676
|
else navigateTo?.(shop.urls.checkoutFailure(""));
|
|
@@ -36555,10 +36557,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36555
36557
|
let token = prop($$props, "token", 7);
|
|
36556
36558
|
const orderDetails = new OrderDetails(token());
|
|
36557
36559
|
setDetails($$props.$$host, orderDetails);
|
|
36560
|
+
let cleanedUpToken;
|
|
36558
36561
|
user_effect(() => {
|
|
36559
36562
|
orderDetails.token = token();
|
|
36563
|
+
const cart = shop.cart;
|
|
36564
|
+
if (!cart || cleanedUpToken === token()) return;
|
|
36565
|
+
cleanedUpToken = token();
|
|
36560
36566
|
untrack(() => {
|
|
36561
|
-
|
|
36567
|
+
cart.clearItems();
|
|
36562
36568
|
if (shop.auth.isGuest()) shop.auth.signOut();
|
|
36563
36569
|
});
|
|
36564
36570
|
});
|
|
@@ -18666,8 +18666,10 @@ async function finalizeCheckout(form, formId) {
|
|
|
18666
18666
|
if (beforeSubmit) await beforeSubmit(form.details.formData);
|
|
18667
18667
|
const meta = checkout.data.meta;
|
|
18668
18668
|
const navigateTo = configStore.config.navigateTo;
|
|
18669
|
-
if (meta.status === "success")
|
|
18670
|
-
|
|
18669
|
+
if (meta.status === "success") {
|
|
18670
|
+
const checkoutSuccess = configStore.config.urls.checkoutSuccess ?? shop.urls.checkoutSuccess;
|
|
18671
|
+
navigateTo?.(checkoutSuccess(checkout.data.order.token));
|
|
18672
|
+
} else if (meta.status === "fail") navigateTo?.(shop.urls.checkoutFailure(""));
|
|
18671
18673
|
else if (meta.payment_url) navigateTo?.(meta.payment_url);
|
|
18672
18674
|
else if (meta.payment_data) postToPaymentProvider(meta.payment_data);
|
|
18673
18675
|
else navigateTo?.(shop.urls.checkoutFailure(""));
|
|
@@ -36554,10 +36556,14 @@ function Order($$anchor, $$props) {
|
|
|
36554
36556
|
let token = prop($$props, "token", 7);
|
|
36555
36557
|
const orderDetails = new OrderDetails(token());
|
|
36556
36558
|
setDetails($$props.$$host, orderDetails);
|
|
36559
|
+
let cleanedUpToken;
|
|
36557
36560
|
user_effect(() => {
|
|
36558
36561
|
orderDetails.token = token();
|
|
36562
|
+
const cart = shop.cart;
|
|
36563
|
+
if (!cart || cleanedUpToken === token()) return;
|
|
36564
|
+
cleanedUpToken = token();
|
|
36559
36565
|
untrack(() => {
|
|
36560
|
-
|
|
36566
|
+
cart.clearItems();
|
|
36561
36567
|
if (shop.auth.isGuest()) shop.auth.signOut();
|
|
36562
36568
|
});
|
|
36563
36569
|
});
|