@artisan-commerce/analytics-web 0.2.0-canary.51 → 0.2.0-canary.52
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 +8 -0
- package/dist/bundle.cjs.js +29 -29
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +29 -29
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +29 -29
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.esm.js
CHANGED
|
@@ -35,7 +35,7 @@ const getState$1 = () => {
|
|
|
35
35
|
|
|
36
36
|
var name = "@artisan-commerce/analytics-web";
|
|
37
37
|
var description = "Artisn commerce analytics web library";
|
|
38
|
-
var version = "0.2.0-canary.
|
|
38
|
+
var version = "0.2.0-canary.51";
|
|
39
39
|
var main = "./dist/bundle.cjs.js";
|
|
40
40
|
var module = "./dist/bundle.esm.js";
|
|
41
41
|
var types = "./dist/bundle.d.ts";
|
|
@@ -77,7 +77,7 @@ var dependencies = {
|
|
|
77
77
|
};
|
|
78
78
|
var devDependencies = {
|
|
79
79
|
"@artisan-commerce/products": "0.9.0-canary.33",
|
|
80
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
80
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.49",
|
|
81
81
|
"@artisan-commerce/types": "0.14.0-canary.25"
|
|
82
82
|
};
|
|
83
83
|
var peerDependencies = {
|
|
@@ -869,19 +869,19 @@ const CONSTANTS = {
|
|
|
869
869
|
DEFAULT_SHOPPING_CART_NAME: "default",
|
|
870
870
|
DEFAULT_MAX_SHOPPING_CARTS: 2
|
|
871
871
|
};
|
|
872
|
-
var __defProp$
|
|
873
|
-
var __getOwnPropSymbols$
|
|
874
|
-
var __hasOwnProp$
|
|
875
|
-
var __propIsEnum$
|
|
876
|
-
var __defNormalProp$
|
|
877
|
-
var __spreadValues$
|
|
872
|
+
var __defProp$k$1 = Object.defineProperty;
|
|
873
|
+
var __getOwnPropSymbols$k$1 = Object.getOwnPropertySymbols;
|
|
874
|
+
var __hasOwnProp$k$1 = Object.prototype.hasOwnProperty;
|
|
875
|
+
var __propIsEnum$k$1 = Object.prototype.propertyIsEnumerable;
|
|
876
|
+
var __defNormalProp$k$1 = (obj, key, value) => key in obj ? __defProp$k$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
877
|
+
var __spreadValues$k$1 = (a, b) => {
|
|
878
878
|
for (var prop in b || (b = {}))
|
|
879
|
-
if (__hasOwnProp$
|
|
880
|
-
__defNormalProp$
|
|
881
|
-
if (__getOwnPropSymbols$
|
|
882
|
-
for (var prop of __getOwnPropSymbols$
|
|
883
|
-
if (__propIsEnum$
|
|
884
|
-
__defNormalProp$
|
|
879
|
+
if (__hasOwnProp$k$1.call(b, prop))
|
|
880
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
881
|
+
if (__getOwnPropSymbols$k$1)
|
|
882
|
+
for (var prop of __getOwnPropSymbols$k$1(b)) {
|
|
883
|
+
if (__propIsEnum$k$1.call(b, prop))
|
|
884
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
885
885
|
}
|
|
886
886
|
return a;
|
|
887
887
|
};
|
|
@@ -897,7 +897,7 @@ const initialState = {
|
|
|
897
897
|
initialized: false
|
|
898
898
|
};
|
|
899
899
|
Object.freeze(initialState);
|
|
900
|
-
let state = __spreadValues$
|
|
900
|
+
let state = __spreadValues$k$1({}, initialState);
|
|
901
901
|
Object.seal(state);
|
|
902
902
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
903
903
|
var dayjs_min = { exports: {} };
|
|
@@ -1511,21 +1511,21 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
|
|
|
1511
1511
|
return acc + tax.percentage / 100 * grossPrice;
|
|
1512
1512
|
}, 0);
|
|
1513
1513
|
};
|
|
1514
|
-
var __defProp$
|
|
1514
|
+
var __defProp$g$1 = Object.defineProperty;
|
|
1515
1515
|
var __defProps$d$1 = Object.defineProperties;
|
|
1516
1516
|
var __getOwnPropDescs$d$1 = Object.getOwnPropertyDescriptors;
|
|
1517
|
-
var __getOwnPropSymbols$
|
|
1518
|
-
var __hasOwnProp$
|
|
1519
|
-
var __propIsEnum$
|
|
1520
|
-
var __defNormalProp$
|
|
1521
|
-
var __spreadValues$
|
|
1517
|
+
var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
|
|
1518
|
+
var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
|
|
1519
|
+
var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
|
|
1520
|
+
var __defNormalProp$g$1 = (obj, key, value) => key in obj ? __defProp$g$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1521
|
+
var __spreadValues$g$1 = (a, b) => {
|
|
1522
1522
|
for (var prop in b || (b = {}))
|
|
1523
|
-
if (__hasOwnProp$
|
|
1524
|
-
__defNormalProp$
|
|
1525
|
-
if (__getOwnPropSymbols$
|
|
1526
|
-
for (var prop of __getOwnPropSymbols$
|
|
1527
|
-
if (__propIsEnum$
|
|
1528
|
-
__defNormalProp$
|
|
1523
|
+
if (__hasOwnProp$g$1.call(b, prop))
|
|
1524
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1525
|
+
if (__getOwnPropSymbols$g$1)
|
|
1526
|
+
for (var prop of __getOwnPropSymbols$g$1(b)) {
|
|
1527
|
+
if (__propIsEnum$g$1.call(b, prop))
|
|
1528
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1529
1529
|
}
|
|
1530
1530
|
return a;
|
|
1531
1531
|
};
|
|
@@ -1607,7 +1607,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1607
1607
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1608
1608
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1609
1609
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1610
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1610
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1611
1611
|
totalDiscounts: newTotalDiscounts2,
|
|
1612
1612
|
total: Number(newTotal2)
|
|
1613
1613
|
});
|
|
@@ -1616,7 +1616,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1616
1616
|
const totalDiscount = newSubtotal;
|
|
1617
1617
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1618
1618
|
const newTotal = prevTotal - totalDiscount;
|
|
1619
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1619
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1620
1620
|
totalDiscounts: newTotalDiscounts,
|
|
1621
1621
|
total: newTotal
|
|
1622
1622
|
});
|