@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.umd.js
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
var name = "@artisan-commerce/analytics-web";
|
|
43
43
|
var description = "Artisn commerce analytics web library";
|
|
44
|
-
var version = "0.2.0-canary.
|
|
44
|
+
var version = "0.2.0-canary.51";
|
|
45
45
|
var main = "./dist/bundle.cjs.js";
|
|
46
46
|
var module = "./dist/bundle.esm.js";
|
|
47
47
|
var types = "./dist/bundle.d.ts";
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
};
|
|
84
84
|
var devDependencies = {
|
|
85
85
|
"@artisan-commerce/products": "0.9.0-canary.33",
|
|
86
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
86
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.49",
|
|
87
87
|
"@artisan-commerce/types": "0.14.0-canary.25"
|
|
88
88
|
};
|
|
89
89
|
var peerDependencies = {
|
|
@@ -875,19 +875,19 @@ ${key}: ${value}`;
|
|
|
875
875
|
DEFAULT_SHOPPING_CART_NAME: "default",
|
|
876
876
|
DEFAULT_MAX_SHOPPING_CARTS: 2
|
|
877
877
|
};
|
|
878
|
-
var __defProp$
|
|
879
|
-
var __getOwnPropSymbols$
|
|
880
|
-
var __hasOwnProp$
|
|
881
|
-
var __propIsEnum$
|
|
882
|
-
var __defNormalProp$
|
|
883
|
-
var __spreadValues$
|
|
878
|
+
var __defProp$k$1 = Object.defineProperty;
|
|
879
|
+
var __getOwnPropSymbols$k$1 = Object.getOwnPropertySymbols;
|
|
880
|
+
var __hasOwnProp$k$1 = Object.prototype.hasOwnProperty;
|
|
881
|
+
var __propIsEnum$k$1 = Object.prototype.propertyIsEnumerable;
|
|
882
|
+
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;
|
|
883
|
+
var __spreadValues$k$1 = (a, b) => {
|
|
884
884
|
for (var prop in b || (b = {}))
|
|
885
|
-
if (__hasOwnProp$
|
|
886
|
-
__defNormalProp$
|
|
887
|
-
if (__getOwnPropSymbols$
|
|
888
|
-
for (var prop of __getOwnPropSymbols$
|
|
889
|
-
if (__propIsEnum$
|
|
890
|
-
__defNormalProp$
|
|
885
|
+
if (__hasOwnProp$k$1.call(b, prop))
|
|
886
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
887
|
+
if (__getOwnPropSymbols$k$1)
|
|
888
|
+
for (var prop of __getOwnPropSymbols$k$1(b)) {
|
|
889
|
+
if (__propIsEnum$k$1.call(b, prop))
|
|
890
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
891
891
|
}
|
|
892
892
|
return a;
|
|
893
893
|
};
|
|
@@ -903,7 +903,7 @@ ${key}: ${value}`;
|
|
|
903
903
|
initialized: false
|
|
904
904
|
};
|
|
905
905
|
Object.freeze(initialState);
|
|
906
|
-
let state = __spreadValues$
|
|
906
|
+
let state = __spreadValues$k$1({}, initialState);
|
|
907
907
|
Object.seal(state);
|
|
908
908
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
909
909
|
var dayjs_min = { exports: {} };
|
|
@@ -1517,21 +1517,21 @@ ${key}: ${value}`;
|
|
|
1517
1517
|
return acc + tax.percentage / 100 * grossPrice;
|
|
1518
1518
|
}, 0);
|
|
1519
1519
|
};
|
|
1520
|
-
var __defProp$
|
|
1520
|
+
var __defProp$g$1 = Object.defineProperty;
|
|
1521
1521
|
var __defProps$d$1 = Object.defineProperties;
|
|
1522
1522
|
var __getOwnPropDescs$d$1 = Object.getOwnPropertyDescriptors;
|
|
1523
|
-
var __getOwnPropSymbols$
|
|
1524
|
-
var __hasOwnProp$
|
|
1525
|
-
var __propIsEnum$
|
|
1526
|
-
var __defNormalProp$
|
|
1527
|
-
var __spreadValues$
|
|
1523
|
+
var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
|
|
1524
|
+
var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
|
|
1525
|
+
var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
|
|
1526
|
+
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;
|
|
1527
|
+
var __spreadValues$g$1 = (a, b) => {
|
|
1528
1528
|
for (var prop in b || (b = {}))
|
|
1529
|
-
if (__hasOwnProp$
|
|
1530
|
-
__defNormalProp$
|
|
1531
|
-
if (__getOwnPropSymbols$
|
|
1532
|
-
for (var prop of __getOwnPropSymbols$
|
|
1533
|
-
if (__propIsEnum$
|
|
1534
|
-
__defNormalProp$
|
|
1529
|
+
if (__hasOwnProp$g$1.call(b, prop))
|
|
1530
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1531
|
+
if (__getOwnPropSymbols$g$1)
|
|
1532
|
+
for (var prop of __getOwnPropSymbols$g$1(b)) {
|
|
1533
|
+
if (__propIsEnum$g$1.call(b, prop))
|
|
1534
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1535
1535
|
}
|
|
1536
1536
|
return a;
|
|
1537
1537
|
};
|
|
@@ -1613,7 +1613,7 @@ ${key}: ${value}`;
|
|
|
1613
1613
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1614
1614
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1615
1615
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1616
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1616
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1617
1617
|
totalDiscounts: newTotalDiscounts2,
|
|
1618
1618
|
total: Number(newTotal2)
|
|
1619
1619
|
});
|
|
@@ -1622,7 +1622,7 @@ ${key}: ${value}`;
|
|
|
1622
1622
|
const totalDiscount = newSubtotal;
|
|
1623
1623
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1624
1624
|
const newTotal = prevTotal - totalDiscount;
|
|
1625
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1625
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1626
1626
|
totalDiscounts: newTotalDiscounts,
|
|
1627
1627
|
total: newTotal
|
|
1628
1628
|
});
|