@bigbinary/neeto-commons-frontend 4.3.6 → 4.3.7

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.
@@ -10,12 +10,13 @@ function initializeMixpanel(skip) {
10
10
  var _globalProps$user, _globalProps$organiza;
11
11
  var analyticsId = "".concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email, "-").concat((_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain);
12
12
  if (globalProps.mixpanelProjectToken && !(skip !== null && skip !== void 0 && skip.mixpanel)) {
13
- var _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$organiza2;
13
+ var _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5, _globalProps$organiza2;
14
14
  _mixpanelBrowser["default"].init(globalProps.mixpanelProjectToken);
15
15
  _mixpanelBrowser["default"].people.set({
16
16
  $first_name: (_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.firstName,
17
17
  $last_name: (_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.lastName,
18
- user: (_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email,
18
+ $email: (_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email,
19
+ user: (_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.email,
19
20
  subdomain: (_globalProps$organiza2 = globalProps.organization) === null || _globalProps$organiza2 === void 0 ? void 0 : _globalProps$organiza2.subdomain
20
21
  });
21
22
  _mixpanelBrowser["default"].identify(analyticsId);
@@ -1 +1 @@
1
- {"version":3,"file":"mixpanel.js","names":["_mixpanelBrowser","_interopRequireDefault","require","initializeMixpanel","skip","_globalProps$user","_globalProps$organiza","analyticsId","concat","globalProps","user","email","organization","subdomain","mixpanelProjectToken","mixpanel","_globalProps$user2","_globalProps$user3","_globalProps$user4","_globalProps$organiza2","init","people","set","$first_name","firstName","$last_name","lastName","identify"],"sources":["../../../src/initializers/mixpanel.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport default function initializeMixpanel(skip) {\n const analyticsId = `${globalProps.user?.email}-${globalProps.organization?.subdomain}`;\n\n if (globalProps.mixpanelProjectToken && !skip?.mixpanel) {\n mixpanel.init(globalProps.mixpanelProjectToken);\n mixpanel.people.set({\n $first_name: globalProps.user?.firstName,\n $last_name: globalProps.user?.lastName,\n user: globalProps.user?.email,\n subdomain: globalProps.organization?.subdomain,\n });\n mixpanel.identify(analyticsId);\n } else {\n /*\n We need to initialize mixpanel with a bogus token in development and test environment to\n prevent mixpanel library from throwing an error when we use mixpanel.track() method in react components.\n */\n mixpanel.init(\"TEST_TOKEN\");\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,kBAAkBA,CAACC,IAAI,EAAE;EAAA,IAAAC,iBAAA,EAAAC,qBAAA;EAC/C,IAAMC,WAAW,MAAAC,MAAA,EAAAH,iBAAA,GAAMI,WAAW,CAACC,IAAI,cAAAL,iBAAA,uBAAhBA,iBAAA,CAAkBM,KAAK,OAAAH,MAAA,EAAAF,qBAAA,GAAIG,WAAW,CAACG,YAAY,cAAAN,qBAAA,uBAAxBA,qBAAA,CAA0BO,SAAS,CAAE;EAEvF,IAAIJ,WAAW,CAACK,oBAAoB,IAAI,EAACV,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEW,QAAQ,GAAE;IAAA,IAAAC,kBAAA,EAAAC,kBAAA,EAAAC,kBAAA,EAAAC,sBAAA;IACvDJ,2BAAQ,CAACK,IAAI,CAACX,WAAW,CAACK,oBAAoB,CAAC;IAC/CC,2BAAQ,CAACM,MAAM,CAACC,GAAG,CAAC;MAClBC,WAAW,GAAAP,kBAAA,GAAEP,WAAW,CAACC,IAAI,cAAAM,kBAAA,uBAAhBA,kBAAA,CAAkBQ,SAAS;MACxCC,UAAU,GAAAR,kBAAA,GAAER,WAAW,CAACC,IAAI,cAAAO,kBAAA,uBAAhBA,kBAAA,CAAkBS,QAAQ;MACtChB,IAAI,GAAAQ,kBAAA,GAAET,WAAW,CAACC,IAAI,cAAAQ,kBAAA,uBAAhBA,kBAAA,CAAkBP,KAAK;MAC7BE,SAAS,GAAAM,sBAAA,GAAEV,WAAW,CAACG,YAAY,cAAAO,sBAAA,uBAAxBA,sBAAA,CAA0BN;IACvC,CAAC,CAAC;IACFE,2BAAQ,CAACY,QAAQ,CAACpB,WAAW,CAAC;EAChC,CAAC,MAAM;IACL;AACJ;AACA;AACA;IACIQ,2BAAQ,CAACK,IAAI,CAAC,YAAY,CAAC;EAC7B;AACF"}
1
+ {"version":3,"file":"mixpanel.js","names":["_mixpanelBrowser","_interopRequireDefault","require","initializeMixpanel","skip","_globalProps$user","_globalProps$organiza","analyticsId","concat","globalProps","user","email","organization","subdomain","mixpanelProjectToken","mixpanel","_globalProps$user2","_globalProps$user3","_globalProps$user4","_globalProps$user5","_globalProps$organiza2","init","people","set","$first_name","firstName","$last_name","lastName","$email","identify"],"sources":["../../../src/initializers/mixpanel.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport default function initializeMixpanel(skip) {\n const analyticsId = `${globalProps.user?.email}-${globalProps.organization?.subdomain}`;\n\n if (globalProps.mixpanelProjectToken && !skip?.mixpanel) {\n mixpanel.init(globalProps.mixpanelProjectToken);\n mixpanel.people.set({\n $first_name: globalProps.user?.firstName,\n $last_name: globalProps.user?.lastName,\n $email: globalProps.user?.email,\n user: globalProps.user?.email,\n subdomain: globalProps.organization?.subdomain,\n });\n mixpanel.identify(analyticsId);\n } else {\n /*\n We need to initialize mixpanel with a bogus token in development and test environment to\n prevent mixpanel library from throwing an error when we use mixpanel.track() method in react components.\n */\n mixpanel.init(\"TEST_TOKEN\");\n }\n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;AACJ;AACA;AACA;IACIQ,2BAAQ,CAACM,IAAI,CAAC,YAAY,CAAC;EAC7B;AACF"}
@@ -3,12 +3,13 @@ export default function initializeMixpanel(skip) {
3
3
  var _globalProps$user, _globalProps$organiza;
4
4
  var analyticsId = "".concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email, "-").concat((_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain);
5
5
  if (globalProps.mixpanelProjectToken && !(skip !== null && skip !== void 0 && skip.mixpanel)) {
6
- var _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$organiza2;
6
+ var _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5, _globalProps$organiza2;
7
7
  mixpanel.init(globalProps.mixpanelProjectToken);
8
8
  mixpanel.people.set({
9
9
  $first_name: (_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.firstName,
10
10
  $last_name: (_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.lastName,
11
- user: (_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email,
11
+ $email: (_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email,
12
+ user: (_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.email,
12
13
  subdomain: (_globalProps$organiza2 = globalProps.organization) === null || _globalProps$organiza2 === void 0 ? void 0 : _globalProps$organiza2.subdomain
13
14
  });
14
15
  mixpanel.identify(analyticsId);
@@ -1 +1 @@
1
- {"version":3,"file":"mixpanel.js","names":["mixpanel","initializeMixpanel","skip","_globalProps$user","_globalProps$organiza","analyticsId","concat","globalProps","user","email","organization","subdomain","mixpanelProjectToken","_globalProps$user2","_globalProps$user3","_globalProps$user4","_globalProps$organiza2","init","people","set","$first_name","firstName","$last_name","lastName","identify"],"sources":["../../src/initializers/mixpanel.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport default function initializeMixpanel(skip) {\n const analyticsId = `${globalProps.user?.email}-${globalProps.organization?.subdomain}`;\n\n if (globalProps.mixpanelProjectToken && !skip?.mixpanel) {\n mixpanel.init(globalProps.mixpanelProjectToken);\n mixpanel.people.set({\n $first_name: globalProps.user?.firstName,\n $last_name: globalProps.user?.lastName,\n user: globalProps.user?.email,\n subdomain: globalProps.organization?.subdomain,\n });\n mixpanel.identify(analyticsId);\n } else {\n /*\n We need to initialize mixpanel with a bogus token in development and test environment to\n prevent mixpanel library from throwing an error when we use mixpanel.track() method in react components.\n */\n mixpanel.init(\"TEST_TOKEN\");\n }\n}\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,kBAAkB;AAEvC,eAAe,SAASC,kBAAkBA,CAACC,IAAI,EAAE;EAAA,IAAAC,iBAAA,EAAAC,qBAAA;EAC/C,IAAMC,WAAW,MAAAC,MAAA,EAAAH,iBAAA,GAAMI,WAAW,CAACC,IAAI,cAAAL,iBAAA,uBAAhBA,iBAAA,CAAkBM,KAAK,OAAAH,MAAA,EAAAF,qBAAA,GAAIG,WAAW,CAACG,YAAY,cAAAN,qBAAA,uBAAxBA,qBAAA,CAA0BO,SAAS,CAAE;EAEvF,IAAIJ,WAAW,CAACK,oBAAoB,IAAI,EAACV,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEF,QAAQ,GAAE;IAAA,IAAAa,kBAAA,EAAAC,kBAAA,EAAAC,kBAAA,EAAAC,sBAAA;IACvDhB,QAAQ,CAACiB,IAAI,CAACV,WAAW,CAACK,oBAAoB,CAAC;IAC/CZ,QAAQ,CAACkB,MAAM,CAACC,GAAG,CAAC;MAClBC,WAAW,GAAAP,kBAAA,GAAEN,WAAW,CAACC,IAAI,cAAAK,kBAAA,uBAAhBA,kBAAA,CAAkBQ,SAAS;MACxCC,UAAU,GAAAR,kBAAA,GAAEP,WAAW,CAACC,IAAI,cAAAM,kBAAA,uBAAhBA,kBAAA,CAAkBS,QAAQ;MACtCf,IAAI,GAAAO,kBAAA,GAAER,WAAW,CAACC,IAAI,cAAAO,kBAAA,uBAAhBA,kBAAA,CAAkBN,KAAK;MAC7BE,SAAS,GAAAK,sBAAA,GAAET,WAAW,CAACG,YAAY,cAAAM,sBAAA,uBAAxBA,sBAAA,CAA0BL;IACvC,CAAC,CAAC;IACFX,QAAQ,CAACwB,QAAQ,CAACnB,WAAW,CAAC;EAChC,CAAC,MAAM;IACL;AACJ;AACA;AACA;IACIL,QAAQ,CAACiB,IAAI,CAAC,YAAY,CAAC;EAC7B;AACF"}
1
+ {"version":3,"file":"mixpanel.js","names":["mixpanel","initializeMixpanel","skip","_globalProps$user","_globalProps$organiza","analyticsId","concat","globalProps","user","email","organization","subdomain","mixpanelProjectToken","_globalProps$user2","_globalProps$user3","_globalProps$user4","_globalProps$user5","_globalProps$organiza2","init","people","set","$first_name","firstName","$last_name","lastName","$email","identify"],"sources":["../../src/initializers/mixpanel.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport default function initializeMixpanel(skip) {\n const analyticsId = `${globalProps.user?.email}-${globalProps.organization?.subdomain}`;\n\n if (globalProps.mixpanelProjectToken && !skip?.mixpanel) {\n mixpanel.init(globalProps.mixpanelProjectToken);\n mixpanel.people.set({\n $first_name: globalProps.user?.firstName,\n $last_name: globalProps.user?.lastName,\n $email: globalProps.user?.email,\n user: globalProps.user?.email,\n subdomain: globalProps.organization?.subdomain,\n });\n mixpanel.identify(analyticsId);\n } else {\n /*\n We need to initialize mixpanel with a bogus token in development and test environment to\n prevent mixpanel library from throwing an error when we use mixpanel.track() method in react components.\n */\n mixpanel.init(\"TEST_TOKEN\");\n }\n}\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,kBAAkB;AAEvC,eAAe,SAASC,kBAAkBA,CAACC,IAAI,EAAE;EAAA,IAAAC,iBAAA,EAAAC,qBAAA;EAC/C,IAAMC,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version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",