@vio-live/web-sdk 0.11.0 → 0.11.1
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/{chunk-XU5LGUBU.js → chunk-7TGCXO5J.js} +9 -6
- package/dist/chunk-7TGCXO5J.js.map +1 -0
- package/dist/{chunk-U2QG4IVJ.js → chunk-TJ43TE7H.js} +3 -3
- package/dist/{chunk-U2QG4IVJ.js.map → chunk-TJ43TE7H.js.map} +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +3 -3
- package/dist/ui/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-XU5LGUBU.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vio, __decorateClass, primaryImageUrl, displayPrice, getGlobalCurrency, formatPrice } from './chunk-
|
|
1
|
+
import { Vio, __decorateClass, primaryImageUrl, displayPrice, getGlobalCurrency, formatPrice } from './chunk-TJ43TE7H.js';
|
|
2
2
|
import { LitElement, css, html } from 'lit';
|
|
3
3
|
import { property, state, query } from 'lit/decorators.js';
|
|
4
4
|
|
|
@@ -2458,10 +2458,13 @@ var VioCart = class extends LitElement {
|
|
|
2458
2458
|
this.open = false;
|
|
2459
2459
|
}
|
|
2460
2460
|
show() {
|
|
2461
|
+
const wasClosed = !this.open;
|
|
2461
2462
|
this.open = true;
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2463
|
+
if (wasClosed) {
|
|
2464
|
+
this.dispatchEvent(
|
|
2465
|
+
new CustomEvent("vio:open-cart", { bubbles: true, composed: true })
|
|
2466
|
+
);
|
|
2467
|
+
}
|
|
2465
2468
|
void this.loadAvailablePaymentMethods();
|
|
2466
2469
|
}
|
|
2467
2470
|
/** Which payment buttons to render — backend-configured per sponsor.
|
|
@@ -4872,5 +4875,5 @@ function registerVioElements() {
|
|
|
4872
4875
|
}
|
|
4873
4876
|
|
|
4874
4877
|
export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements };
|
|
4875
|
-
//# sourceMappingURL=chunk-
|
|
4876
|
-
//# sourceMappingURL=chunk-
|
|
4878
|
+
//# sourceMappingURL=chunk-7TGCXO5J.js.map
|
|
4879
|
+
//# sourceMappingURL=chunk-7TGCXO5J.js.map
|