@bigbinary/neeto-commons-frontend 2.1.14 → 2.1.16

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/README.md CHANGED
@@ -162,6 +162,7 @@ Web utility functions [↗](./docs/utils/README.md)
162
162
  - [hasAllPermissions](./docs/utils/hasAllPermissions.md)
163
163
  - [createSubscription](./docs/utils/createSubscription.md)
164
164
  - [getFromLocalStorage](./docs/utils/getFromLocalStorage.md)
165
+ - [setToLocalStorage](./docs/utils/setToLocalStorage.md)
165
166
 
166
167
  </td>
167
168
 
@@ -11,14 +11,12 @@ var neetoui = require('@bigbinary/neetoui');
11
11
  var ramda = require('ramda');
12
12
  var reactI18next = require('react-i18next');
13
13
  var Logger = require('js-logger');
14
- var mixpanel = require('mixpanel-browser');
15
14
 
16
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
16
 
18
17
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
19
18
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
20
19
  var Logger__default = /*#__PURE__*/_interopDefaultLegacy(Logger);
21
- var mixpanel__default = /*#__PURE__*/_interopDefaultLegacy(mixpanel);
22
20
 
23
21
  function _typeof$1(obj) {
24
22
  "@babel/helpers - typeof";
@@ -2470,18 +2468,6 @@ function initializeLogger() {
2470
2468
  window.logger = Logger__default["default"];
2471
2469
  }
2472
2470
 
2473
- function initializeMixPanel() {
2474
- var isUserLoggedIn = !ramda.either(ramda.isEmpty, ramda.isNil)(globalProps.user);
2475
- mixpanel__default["default"].init(process.env.MIXPANEL_TOKEN || "TEST_TOKEN");
2476
- if (!isUserLoggedIn) return;
2477
- mixpanel__default["default"].people.set({
2478
- $email: globalProps.user.email,
2479
- $fist_name: globalProps.user.firstName,
2480
- $last_name: globalProps.user.lastName
2481
- });
2482
- mixpanel__default["default"].identify(globalProps.user.email);
2483
- }
2484
-
2485
2471
  var isObjectOrFunction = function isObjectOrFunction(object) {
2486
2472
  var type = _typeof$1(object);
2487
2473
  return type === "function" || type === "object" && !!object;
@@ -2510,7 +2496,6 @@ function initializeApplication(_ref) {
2510
2496
  // eslint-disable-next-line @bigbinary/neeto/no-globalProps-reassignment
2511
2497
  exports.globalProps = window.globalProps;
2512
2498
  }
2513
- if (!(skip !== null && skip !== void 0 && skip.mixpanel)) initializeMixPanel();
2514
2499
  if (_typeof$1(skip === null || skip === void 0 ? void 0 : skip.axios) === "object" || !(skip !== null && skip !== void 0 && skip.axios)) {
2515
2500
  initializeAxios(skip === null || skip === void 0 ? void 0 : skip.axios);
2516
2501
  }