@vio-live/web-sdk 0.5.0 → 0.5.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-HNQG56SD.js → chunk-7Q4MJ5NQ.js} +6 -3
- package/dist/chunk-7Q4MJ5NQ.js.map +1 -0
- package/dist/{chunk-5CKG3F56.js → chunk-LRXVUOEG.js} +3 -3
- package/dist/{chunk-5CKG3F56.js.map → chunk-LRXVUOEG.js.map} +1 -1
- package/dist/core/index.d.ts +3 -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-HNQG56SD.js.map +0 -1
|
@@ -3850,7 +3850,7 @@ function toSmallestUnit(amount, currency) {
|
|
|
3850
3850
|
}
|
|
3851
3851
|
|
|
3852
3852
|
// src/core/version.ts
|
|
3853
|
-
var SDK_VERSION = "0.5.
|
|
3853
|
+
var SDK_VERSION = "0.5.1";
|
|
3854
3854
|
|
|
3855
3855
|
// src/core/analytics/analytics-manager.ts
|
|
3856
3856
|
var SESSION_TTL_MS = 30 * 60 * 1e3;
|
|
@@ -4030,6 +4030,9 @@ var AnalyticsManager = class extends EventTarget {
|
|
|
4030
4030
|
sponsor_id: ctx.sponsorId,
|
|
4031
4031
|
activation_id: ctx.activationId,
|
|
4032
4032
|
content_url: ctx.contentUrl ?? (typeof location !== "undefined" ? location.href : void 0),
|
|
4033
|
+
// Deletion-proof reporting: sources have no trash bin — the title
|
|
4034
|
+
// snapshotted at event time keeps reports legible if content dies.
|
|
4035
|
+
content_title: ctx.contentTitle ?? (typeof document !== "undefined" && document.title ? document.title.slice(0, 255) : void 0),
|
|
4033
4036
|
variant: ctx.variant
|
|
4034
4037
|
});
|
|
4035
4038
|
const com = opts.commerce;
|
|
@@ -4461,5 +4464,5 @@ var _vioGlobal = globalThis;
|
|
|
4461
4464
|
var Vio = _vioGlobal.__VIO_FACADE__ ?? (_vioGlobal.__VIO_FACADE__ = new VioFacade());
|
|
4462
4465
|
|
|
4463
4466
|
export { ADD_ITEM_MUTATION, AnalyticsManager, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, Vio, VioApi, VioApiError, __decorateClass, addItem, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, primaryImageUrl, showApplePaySheet, updateCheckout, updateItem, updateShippingsBySupplier };
|
|
4464
|
-
//# sourceMappingURL=chunk-
|
|
4465
|
-
//# sourceMappingURL=chunk-
|
|
4467
|
+
//# sourceMappingURL=chunk-7Q4MJ5NQ.js.map
|
|
4468
|
+
//# sourceMappingURL=chunk-7Q4MJ5NQ.js.map
|