@artisan-commerce/analytics-rn 0.3.0-canary.53 → 0.3.0-canary.54
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 +30 -30
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +30 -30
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.0-canary.54](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.53...@artisan-commerce/analytics-rn@0.3.0-canary.54) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.3.0-canary.53](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.52...@artisan-commerce/analytics-rn@0.3.0-canary.53) (2021-11-27)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -49,7 +49,7 @@ const getState$1 = () => {
|
|
|
49
49
|
|
|
50
50
|
var name = "@artisan-commerce/analytics-rn";
|
|
51
51
|
var description = "Artisn commerce analytics react native library";
|
|
52
|
-
var version = "0.3.0-canary.
|
|
52
|
+
var version = "0.3.0-canary.54";
|
|
53
53
|
var main = "./dist/bundle.esm.js";
|
|
54
54
|
var module$1 = "./dist/bundle.esm.js";
|
|
55
55
|
var types = "./dist/bundle.d.ts";
|
|
@@ -92,7 +92,7 @@ var dependencies = {
|
|
|
92
92
|
};
|
|
93
93
|
var devDependencies = {
|
|
94
94
|
"@artisan-commerce/products": "0.9.0-canary.33",
|
|
95
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
95
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.50",
|
|
96
96
|
"@artisan-commerce/types": "0.14.0-canary.25",
|
|
97
97
|
"@babel/core": "^7.13.15",
|
|
98
98
|
"@babel/preset-env": "^7.10.4",
|
|
@@ -112,7 +112,7 @@ var peerDependencies = {
|
|
|
112
112
|
react: ">=16.8.6",
|
|
113
113
|
"react-native-fbsdk-next": "*"
|
|
114
114
|
};
|
|
115
|
-
var gitHead = "
|
|
115
|
+
var gitHead = "d5f9ee1b432e0f40e8291828b6f2e6caedd9e06a";
|
|
116
116
|
var packageJSON = {
|
|
117
117
|
name: name,
|
|
118
118
|
description: description,
|
|
@@ -742,19 +742,19 @@ const CONSTANTS = {
|
|
|
742
742
|
DEFAULT_SHOPPING_CART_NAME: "default",
|
|
743
743
|
DEFAULT_MAX_SHOPPING_CARTS: 2
|
|
744
744
|
};
|
|
745
|
-
var __defProp$
|
|
746
|
-
var __getOwnPropSymbols$
|
|
747
|
-
var __hasOwnProp$
|
|
748
|
-
var __propIsEnum$
|
|
749
|
-
var __defNormalProp$
|
|
750
|
-
var __spreadValues$
|
|
745
|
+
var __defProp$k$1 = Object.defineProperty;
|
|
746
|
+
var __getOwnPropSymbols$k$1 = Object.getOwnPropertySymbols;
|
|
747
|
+
var __hasOwnProp$k$1 = Object.prototype.hasOwnProperty;
|
|
748
|
+
var __propIsEnum$k$1 = Object.prototype.propertyIsEnumerable;
|
|
749
|
+
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;
|
|
750
|
+
var __spreadValues$k$1 = (a, b) => {
|
|
751
751
|
for (var prop in b || (b = {}))
|
|
752
|
-
if (__hasOwnProp$
|
|
753
|
-
__defNormalProp$
|
|
754
|
-
if (__getOwnPropSymbols$
|
|
755
|
-
for (var prop of __getOwnPropSymbols$
|
|
756
|
-
if (__propIsEnum$
|
|
757
|
-
__defNormalProp$
|
|
752
|
+
if (__hasOwnProp$k$1.call(b, prop))
|
|
753
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
754
|
+
if (__getOwnPropSymbols$k$1)
|
|
755
|
+
for (var prop of __getOwnPropSymbols$k$1(b)) {
|
|
756
|
+
if (__propIsEnum$k$1.call(b, prop))
|
|
757
|
+
__defNormalProp$k$1(a, prop, b[prop]);
|
|
758
758
|
}
|
|
759
759
|
return a;
|
|
760
760
|
};
|
|
@@ -770,7 +770,7 @@ const initialState = {
|
|
|
770
770
|
initialized: false
|
|
771
771
|
};
|
|
772
772
|
Object.freeze(initialState);
|
|
773
|
-
let state = __spreadValues$
|
|
773
|
+
let state = __spreadValues$k$1({}, initialState);
|
|
774
774
|
Object.seal(state);
|
|
775
775
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
776
776
|
var dayjs_min = { exports: {} };
|
|
@@ -1384,21 +1384,21 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
|
|
|
1384
1384
|
return acc + tax.percentage / 100 * grossPrice;
|
|
1385
1385
|
}, 0);
|
|
1386
1386
|
};
|
|
1387
|
-
var __defProp$
|
|
1387
|
+
var __defProp$g$1 = Object.defineProperty;
|
|
1388
1388
|
var __defProps$d$1 = Object.defineProperties;
|
|
1389
1389
|
var __getOwnPropDescs$d$1 = Object.getOwnPropertyDescriptors;
|
|
1390
|
-
var __getOwnPropSymbols$
|
|
1391
|
-
var __hasOwnProp$
|
|
1392
|
-
var __propIsEnum$
|
|
1393
|
-
var __defNormalProp$
|
|
1394
|
-
var __spreadValues$
|
|
1390
|
+
var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
|
|
1391
|
+
var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
|
|
1392
|
+
var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
|
|
1393
|
+
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;
|
|
1394
|
+
var __spreadValues$g$1 = (a, b) => {
|
|
1395
1395
|
for (var prop in b || (b = {}))
|
|
1396
|
-
if (__hasOwnProp$
|
|
1397
|
-
__defNormalProp$
|
|
1398
|
-
if (__getOwnPropSymbols$
|
|
1399
|
-
for (var prop of __getOwnPropSymbols$
|
|
1400
|
-
if (__propIsEnum$
|
|
1401
|
-
__defNormalProp$
|
|
1396
|
+
if (__hasOwnProp$g$1.call(b, prop))
|
|
1397
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1398
|
+
if (__getOwnPropSymbols$g$1)
|
|
1399
|
+
for (var prop of __getOwnPropSymbols$g$1(b)) {
|
|
1400
|
+
if (__propIsEnum$g$1.call(b, prop))
|
|
1401
|
+
__defNormalProp$g$1(a, prop, b[prop]);
|
|
1402
1402
|
}
|
|
1403
1403
|
return a;
|
|
1404
1404
|
};
|
|
@@ -1480,7 +1480,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1480
1480
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1481
1481
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1482
1482
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1483
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1483
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1484
1484
|
totalDiscounts: newTotalDiscounts2,
|
|
1485
1485
|
total: Number(newTotal2)
|
|
1486
1486
|
});
|
|
@@ -1489,7 +1489,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1489
1489
|
const totalDiscount = newSubtotal;
|
|
1490
1490
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1491
1491
|
const newTotal = prevTotal - totalDiscount;
|
|
1492
|
-
return __spreadProps$d$1(__spreadValues$
|
|
1492
|
+
return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1493
1493
|
totalDiscounts: newTotalDiscounts,
|
|
1494
1494
|
total: newTotal
|
|
1495
1495
|
});
|