@snowplow/react-native-tracker 4.0.2-dev.0 → 4.1.1-dev.0

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.
Files changed (133) hide show
  1. package/README.md +38 -30
  2. package/dist/commonjs/constants.js +20 -0
  3. package/dist/commonjs/constants.js.map +1 -0
  4. package/dist/commonjs/event_store.js +150 -0
  5. package/dist/commonjs/event_store.js.map +1 -0
  6. package/dist/commonjs/events.js +42 -0
  7. package/dist/commonjs/events.js.map +1 -0
  8. package/dist/commonjs/index.js +29 -0
  9. package/dist/commonjs/index.js.map +1 -0
  10. package/dist/commonjs/plugins/app_context/index.js +47 -0
  11. package/dist/commonjs/plugins/app_context/index.js.map +1 -0
  12. package/dist/commonjs/plugins/app_install/index.js +60 -0
  13. package/dist/commonjs/plugins/app_install/index.js.map +1 -0
  14. package/dist/commonjs/plugins/app_lifecycle/index.js +126 -0
  15. package/dist/commonjs/plugins/app_lifecycle/index.js.map +1 -0
  16. package/dist/commonjs/plugins/deep_links/index.js +64 -0
  17. package/dist/commonjs/plugins/deep_links/index.js.map +1 -0
  18. package/dist/commonjs/plugins/platform_context/index.js +749 -0
  19. package/dist/commonjs/plugins/platform_context/index.js.map +1 -0
  20. package/dist/commonjs/plugins/session/index.js +197 -0
  21. package/dist/commonjs/plugins/session/index.js.map +1 -0
  22. package/dist/commonjs/plugins.js +147 -0
  23. package/dist/commonjs/plugins.js.map +1 -0
  24. package/dist/commonjs/subject.js +82 -0
  25. package/dist/commonjs/subject.js.map +1 -0
  26. package/dist/commonjs/tracker.js +188 -0
  27. package/dist/commonjs/tracker.js.map +1 -0
  28. package/dist/commonjs/types.js +313 -0
  29. package/dist/commonjs/types.js.map +1 -0
  30. package/dist/commonjs/utils.js +35 -0
  31. package/dist/commonjs/utils.js.map +1 -0
  32. package/dist/module/constants.js +16 -0
  33. package/dist/module/constants.js.map +1 -0
  34. package/dist/module/event_store.js +145 -0
  35. package/dist/module/event_store.js.map +1 -0
  36. package/dist/module/events.js +38 -0
  37. package/dist/module/events.js.map +1 -0
  38. package/dist/module/index.js +7 -0
  39. package/dist/module/index.js.map +1 -0
  40. package/dist/module/plugins/app_context/index.js +44 -0
  41. package/dist/module/plugins/app_context/index.js.map +1 -0
  42. package/dist/module/plugins/app_install/index.js +56 -0
  43. package/dist/module/plugins/app_install/index.js.map +1 -0
  44. package/dist/module/plugins/app_lifecycle/index.js +122 -0
  45. package/dist/module/plugins/app_lifecycle/index.js.map +1 -0
  46. package/dist/module/plugins/deep_links/index.js +60 -0
  47. package/dist/module/plugins/deep_links/index.js.map +1 -0
  48. package/dist/module/plugins/platform_context/index.js +745 -0
  49. package/dist/module/plugins/platform_context/index.js.map +1 -0
  50. package/dist/module/plugins/session/index.js +192 -0
  51. package/dist/module/plugins/session/index.js.map +1 -0
  52. package/dist/module/plugins.js +143 -0
  53. package/dist/module/plugins.js.map +1 -0
  54. package/dist/module/subject.js +78 -0
  55. package/dist/module/subject.js.map +1 -0
  56. package/dist/module/tracker.js +183 -0
  57. package/dist/module/tracker.js.map +1 -0
  58. package/dist/module/types.js +113 -0
  59. package/dist/module/types.js.map +1 -0
  60. package/dist/module/utils.js +31 -0
  61. package/dist/module/utils.js.map +1 -0
  62. package/dist/typescript/commonjs/package.json +1 -0
  63. package/dist/typescript/commonjs/src/constants.d.ts +14 -0
  64. package/dist/typescript/commonjs/src/constants.d.ts.map +1 -0
  65. package/dist/typescript/commonjs/src/event_store.d.ts +4 -0
  66. package/dist/typescript/commonjs/src/event_store.d.ts.map +1 -0
  67. package/dist/typescript/commonjs/src/events.d.ts +10 -0
  68. package/dist/typescript/commonjs/src/events.d.ts.map +1 -0
  69. package/dist/typescript/commonjs/src/index.d.ts +4 -0
  70. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  71. package/dist/typescript/commonjs/src/plugins/app_context/index.d.ts +11 -0
  72. package/dist/typescript/commonjs/src/plugins/app_context/index.d.ts.map +1 -0
  73. package/dist/typescript/commonjs/src/plugins/app_install/index.d.ts +10 -0
  74. package/dist/typescript/commonjs/src/plugins/app_install/index.d.ts.map +1 -0
  75. package/dist/typescript/commonjs/src/plugins/app_lifecycle/index.d.ts +13 -0
  76. package/dist/typescript/commonjs/src/plugins/app_lifecycle/index.d.ts.map +1 -0
  77. package/dist/typescript/commonjs/src/plugins/deep_links/index.d.ts +8 -0
  78. package/dist/typescript/commonjs/src/plugins/deep_links/index.d.ts.map +1 -0
  79. package/dist/typescript/commonjs/src/plugins/platform_context/index.d.ts +12 -0
  80. package/dist/typescript/commonjs/src/plugins/platform_context/index.d.ts.map +1 -0
  81. package/dist/typescript/commonjs/src/plugins/session/index.d.ts +19 -0
  82. package/dist/typescript/commonjs/src/plugins/session/index.d.ts.map +1 -0
  83. package/dist/typescript/commonjs/src/plugins.d.ts +6 -0
  84. package/dist/typescript/commonjs/src/plugins.d.ts.map +1 -0
  85. package/dist/typescript/commonjs/src/subject.d.ts +19 -0
  86. package/dist/typescript/commonjs/src/subject.d.ts.map +1 -0
  87. package/dist/typescript/commonjs/src/tracker.d.ts +28 -0
  88. package/dist/typescript/commonjs/src/tracker.d.ts.map +1 -0
  89. package/dist/typescript/commonjs/src/types.d.ts +784 -0
  90. package/dist/typescript/commonjs/src/types.d.ts.map +1 -0
  91. package/dist/typescript/commonjs/src/utils.d.ts +3 -0
  92. package/dist/typescript/commonjs/src/utils.d.ts.map +1 -0
  93. package/dist/typescript/module/package.json +1 -0
  94. package/dist/typescript/module/src/constants.d.ts +14 -0
  95. package/dist/typescript/module/src/constants.d.ts.map +1 -0
  96. package/dist/typescript/module/src/event_store.d.ts +4 -0
  97. package/dist/typescript/module/src/event_store.d.ts.map +1 -0
  98. package/dist/typescript/module/src/events.d.ts +10 -0
  99. package/dist/typescript/module/src/events.d.ts.map +1 -0
  100. package/dist/typescript/module/src/index.d.ts +4 -0
  101. package/dist/typescript/module/src/index.d.ts.map +1 -0
  102. package/dist/typescript/module/src/plugins/app_context/index.d.ts +11 -0
  103. package/dist/typescript/module/src/plugins/app_context/index.d.ts.map +1 -0
  104. package/dist/typescript/module/src/plugins/app_install/index.d.ts +10 -0
  105. package/dist/typescript/module/src/plugins/app_install/index.d.ts.map +1 -0
  106. package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts +13 -0
  107. package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts.map +1 -0
  108. package/dist/typescript/module/src/plugins/deep_links/index.d.ts +8 -0
  109. package/dist/typescript/module/src/plugins/deep_links/index.d.ts.map +1 -0
  110. package/dist/typescript/module/src/plugins/platform_context/index.d.ts +12 -0
  111. package/dist/typescript/module/src/plugins/platform_context/index.d.ts.map +1 -0
  112. package/dist/typescript/module/src/plugins/session/index.d.ts +19 -0
  113. package/dist/typescript/module/src/plugins/session/index.d.ts.map +1 -0
  114. package/dist/typescript/module/src/plugins.d.ts +6 -0
  115. package/dist/typescript/module/src/plugins.d.ts.map +1 -0
  116. package/dist/typescript/module/src/subject.d.ts +19 -0
  117. package/dist/typescript/module/src/subject.d.ts.map +1 -0
  118. package/dist/typescript/module/src/tracker.d.ts +28 -0
  119. package/dist/typescript/module/src/tracker.d.ts.map +1 -0
  120. package/dist/typescript/module/src/types.d.ts +784 -0
  121. package/dist/typescript/module/src/types.d.ts.map +1 -0
  122. package/dist/typescript/module/src/utils.d.ts +3 -0
  123. package/dist/typescript/module/src/utils.d.ts.map +1 -0
  124. package/package.json +57 -14
  125. package/dist/index.cjs.d.ts +0 -499
  126. package/dist/index.cjs.js +0 -2656
  127. package/dist/index.cjs.js.map +0 -1
  128. package/dist/index.cjs.min.d.ts +0 -499
  129. package/dist/index.cjs.min.js +0 -63
  130. package/dist/index.cjs.min.js.map +0 -1
  131. package/dist/index.module.d.ts +0 -499
  132. package/dist/index.module.js +0 -250
  133. package/dist/index.module.js.map +0 -1
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
11
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
12
+ import { trackerCore, version } from '@snowplow/tracker-core';
13
+ import { newEmitter } from '@snowplow/tracker-core';
14
+ import { newReactNativeEventStore } from "./event_store.js";
15
+ import { newTrackEventFunctions } from "./events.js";
16
+ import { newSubject } from "./subject.js";
17
+ import { ScreenTrackingPlugin, trackListItemView, trackScreenView, trackScrollChanged } from '@snowplow/browser-plugin-screen-tracking';
18
+ import { newSessionPlugin } from "./plugins/session/index.js";
19
+ import { newDeepLinksPlugin } from "./plugins/deep_links/index.js";
20
+ import { newPlugins } from "./plugins.js";
21
+ import { newPlatformContextPlugin } from "./plugins/platform_context/index.js";
22
+ import { newAppLifecyclePlugin } from "./plugins/app_lifecycle/index.js";
23
+ import { newAppInstallPlugin } from "./plugins/app_install/index.js";
24
+ import { newAppContextPlugin } from "./plugins/app_context/index.js";
25
+ var initializedTrackers = {};
26
+
27
+ /**
28
+ * Creates a new tracker instance with the given configuration
29
+ * @param configuration - Configuration for the tracker
30
+ * @returns Tracker instance
31
+ */
32
+ export function newTracker(_x) {
33
+ return _newTracker.apply(this, arguments);
34
+ }
35
+
36
+ /**
37
+ * Retrieves an initialized tracker given its namespace
38
+ * @param trackerNamespace - Tracker namespace
39
+ * @returns Tracker instance if exists
40
+ */
41
+ function _newTracker() {
42
+ _newTracker = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(configuration) {
43
+ var _configuration$plugin;
44
+ var namespace, appId, _configuration$encode, encodeBase64, emitter, callback, core, _newPlugins, addPlugin, sessionPlugin, deepLinksPlugin, subject, screenPlugin, platformContextPlugin, lifecyclePlugin, installPlugin, appContextPlugin, tracker;
45
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
46
+ while (1) switch (_context.prev = _context.next) {
47
+ case 0:
48
+ namespace = configuration.namespace, appId = configuration.appId, _configuration$encode = configuration.encodeBase64, encodeBase64 = _configuration$encode === void 0 ? false : _configuration$encode;
49
+ if (!(configuration.eventStore === undefined)) {
50
+ _context.next = 5;
51
+ break;
52
+ }
53
+ _context.next = 4;
54
+ return newReactNativeEventStore(configuration);
55
+ case 4:
56
+ configuration.eventStore = _context.sent;
57
+ case 5:
58
+ emitter = newEmitter(configuration);
59
+ callback = function callback(payload) {
60
+ emitter.input(payload.build());
61
+ };
62
+ core = trackerCore({
63
+ base64: encodeBase64,
64
+ callback: callback
65
+ });
66
+ core.setPlatform('mob'); // default platform
67
+ core.setTrackerVersion('rn-' + version);
68
+ core.setTrackerNamespace(namespace);
69
+ if (appId) {
70
+ core.setAppId(appId);
71
+ }
72
+ _newPlugins = newPlugins(namespace, core), addPlugin = _newPlugins.addPlugin;
73
+ _context.next = 15;
74
+ return newSessionPlugin(configuration);
75
+ case 15:
76
+ sessionPlugin = _context.sent;
77
+ addPlugin(sessionPlugin);
78
+ _context.next = 19;
79
+ return newDeepLinksPlugin(configuration, core);
80
+ case 19:
81
+ deepLinksPlugin = _context.sent;
82
+ addPlugin(deepLinksPlugin);
83
+ subject = newSubject(core, configuration);
84
+ addPlugin(subject.subjectPlugin);
85
+ screenPlugin = ScreenTrackingPlugin(configuration);
86
+ addPlugin({
87
+ plugin: screenPlugin
88
+ });
89
+ _context.next = 27;
90
+ return newPlatformContextPlugin(configuration);
91
+ case 27:
92
+ platformContextPlugin = _context.sent;
93
+ addPlugin(platformContextPlugin);
94
+ _context.next = 31;
95
+ return newAppLifecyclePlugin(configuration, core);
96
+ case 31:
97
+ lifecyclePlugin = _context.sent;
98
+ addPlugin(lifecyclePlugin);
99
+ installPlugin = newAppInstallPlugin(configuration, core);
100
+ addPlugin(installPlugin);
101
+ appContextPlugin = newAppContextPlugin(configuration);
102
+ addPlugin(appContextPlugin);
103
+ ((_configuration$plugin = configuration.plugins) !== null && _configuration$plugin !== void 0 ? _configuration$plugin : []).forEach(function (plugin) {
104
+ return addPlugin({
105
+ plugin: plugin
106
+ });
107
+ });
108
+ tracker = _objectSpread(_objectSpread(_objectSpread({}, newTrackEventFunctions(core)), subject.properties), {}, {
109
+ namespace: namespace,
110
+ setAppId: core.setAppId,
111
+ setPlatform: core.setPlatform,
112
+ flush: emitter.flush,
113
+ addGlobalContexts: core.addGlobalContexts,
114
+ removeGlobalContexts: core.removeGlobalContexts,
115
+ clearGlobalContexts: core.clearGlobalContexts,
116
+ enablePlatformContext: platformContextPlugin.enablePlatformContext,
117
+ disablePlatformContext: platformContextPlugin.disablePlatformContext,
118
+ refreshPlatformContext: platformContextPlugin.refreshPlatformContext,
119
+ getSessionId: sessionPlugin.getSessionId,
120
+ getSessionIndex: sessionPlugin.getSessionIndex,
121
+ getSessionUserId: sessionPlugin.getSessionUserId,
122
+ getSessionState: sessionPlugin.getSessionState,
123
+ addPlugin: addPlugin,
124
+ trackScreenViewEvent: function trackScreenViewEvent(argmap, context) {
125
+ return trackScreenView(_objectSpread(_objectSpread({}, argmap), {}, {
126
+ context: context
127
+ }), [namespace]);
128
+ },
129
+ trackScrollChangedEvent: function trackScrollChangedEvent(argmap, context) {
130
+ return trackScrollChanged(_objectSpread(_objectSpread({}, argmap), {}, {
131
+ context: context
132
+ }), [namespace]);
133
+ },
134
+ trackListItemViewEvent: function trackListItemViewEvent(argmap, context) {
135
+ return trackListItemView(_objectSpread(_objectSpread({}, argmap), {}, {
136
+ context: context
137
+ }), [namespace]);
138
+ },
139
+ trackDeepLinkReceivedEvent: deepLinksPlugin.trackDeepLinkReceivedEvent,
140
+ getIsInBackground: lifecyclePlugin.getIsInBackground,
141
+ getBackgroundIndex: lifecyclePlugin.getBackgroundIndex,
142
+ getForegroundIndex: lifecyclePlugin.getForegroundIndex
143
+ });
144
+ initializedTrackers[namespace] = {
145
+ tracker: tracker,
146
+ core: core
147
+ };
148
+ return _context.abrupt("return", tracker);
149
+ case 41:
150
+ case "end":
151
+ return _context.stop();
152
+ }
153
+ }, _callee);
154
+ }));
155
+ return _newTracker.apply(this, arguments);
156
+ }
157
+ export function getTracker(trackerNamespace) {
158
+ var _initializedTrackers$;
159
+ return (_initializedTrackers$ = initializedTrackers[trackerNamespace]) === null || _initializedTrackers$ === void 0 ? void 0 : _initializedTrackers$.tracker;
160
+ }
161
+
162
+ /**
163
+ * Removes a tracker given its namespace
164
+ *
165
+ * @param trackerNamespace - Tracker namespace
166
+ */
167
+ export function removeTracker(trackerNamespace) {
168
+ if (initializedTrackers[trackerNamespace]) {
169
+ var _initializedTrackers$2;
170
+ (_initializedTrackers$2 = initializedTrackers[trackerNamespace]) === null || _initializedTrackers$2 === void 0 || _initializedTrackers$2.core.deactivate();
171
+ delete initializedTrackers[trackerNamespace];
172
+ }
173
+ }
174
+
175
+ /**
176
+ * Removes all initialized trackers
177
+ *
178
+ * @returns - A boolean promise
179
+ */
180
+ export function removeAllTrackers() {
181
+ Object.keys(initializedTrackers).forEach(removeTracker);
182
+ }
183
+ //# sourceMappingURL=tracker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","_objectSpread","arguments","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","_toPrimitive","toPrimitive","String","Number","asyncGeneratorStep","_asyncToGenerator","_next","_throw","trackerCore","version","newEmitter","newReactNativeEventStore","newTrackEventFunctions","newSubject","ScreenTrackingPlugin","trackListItemView","trackScreenView","trackScrollChanged","newSessionPlugin","newDeepLinksPlugin","newPlugins","newPlatformContextPlugin","newAppLifecyclePlugin","newAppInstallPlugin","newAppContextPlugin","initializedTrackers","newTracker","_x","_newTracker","_callee","configuration","_configuration$plugin","namespace","appId","_configuration$encode","encodeBase64","emitter","callback","core","_newPlugins","addPlugin","sessionPlugin","deepLinksPlugin","subject","screenPlugin","platformContextPlugin","lifecyclePlugin","installPlugin","appContextPlugin","tracker","_callee$","_context","eventStore","undefined","payload","input","build","base64","setPlatform","setTrackerVersion","setTrackerNamespace","setAppId","subjectPlugin","plugin","plugins","properties","flush","addGlobalContexts","removeGlobalContexts","clearGlobalContexts","enablePlatformContext","disablePlatformContext","refreshPlatformContext","getSessionId","getSessionIndex","getSessionUserId","getSessionState","trackScreenViewEvent","argmap","context","trackScrollChangedEvent","trackListItemViewEvent","trackDeepLinkReceivedEvent","getIsInBackground","getBackgroundIndex","getForegroundIndex","getTracker","trackerNamespace","_initializedTrackers$","removeTracker","_initializedTrackers$2","deactivate","removeAllTrackers"],"sourceRoot":"../../src","sources":["tracker.ts"],"mappings":";;;+CACA,qJAAAA,mBAAA,YAAAA,oBAAA,WAAAC,CAAA,SAAAC,CAAA,EAAAD,CAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,EAAAC,CAAA,GAAAH,CAAA,CAAAI,cAAA,EAAAC,CAAA,GAAAJ,MAAA,CAAAK,cAAA,cAAAP,CAAA,EAAAD,CAAA,EAAAE,CAAA,IAAAD,CAAA,CAAAD,CAAA,IAAAE,CAAA,CAAAO,KAAA,KAAAC,CAAA,wBAAAC,MAAA,GAAAA,MAAA,OAAAC,CAAA,GAAAF,CAAA,CAAAG,QAAA,kBAAAC,CAAA,GAAAJ,CAAA,CAAAK,aAAA,uBAAAC,CAAA,GAAAN,CAAA,CAAAO,WAAA,8BAAAC,OAAAjB,CAAA,EAAAD,CAAA,EAAAE,CAAA,WAAAC,MAAA,CAAAK,cAAA,CAAAP,CAAA,EAAAD,CAAA,IAAAS,KAAA,EAA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BAAkB;YACtDC,kBAAkB,EAAEvC,eAAe,CAACuC;UAAkB;UAExD5D,mBAAmB,CAACO,SAAS,CAAC,GAAG;YAAEiB,OAAO,EAAPA,OAAO;YAAEX,IAAI,EAAJA;UAAK,CAAC;UAAC,OAAAa,QAAA,CAAAtG,MAAA,WAE5CoG,OAAO;QAAA;QAAA;UAAA,OAAAE,QAAA,CAAArE,IAAA;MAAA;IAAA,GAAA+C,OAAA;EAAA,CACf;EAAA,OAAAD,WAAA,CAAAnC,KAAA,OAAAE,SAAA;AAAA;AAOD,OAAO,SAAS2F,UAAUA,CAACC,gBAAwB,EAAkC;EAAA,IAAAC,qBAAA;EACnF,QAAAA,qBAAA,GAAO/D,mBAAmB,CAAC8D,gBAAgB,CAAC,cAAAC,qBAAA,uBAArCA,qBAAA,CAAuCvC,OAAO;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASwC,aAAaA,CAACF,gBAAwB,EAAQ;EAC5D,IAAI9D,mBAAmB,CAAC8D,gBAAgB,CAAC,EAAE;IAAA,IAAAG,sBAAA;IACzC,CAAAA,sBAAA,GAAAjE,mBAAmB,CAAC8D,gBAAgB,CAAC,cAAAG,sBAAA,eAArCA,sBAAA,CAAuCpD,IAAI,CAACqD,UAAU,CAAC,CAAC;IACxD,OAAOlE,mBAAmB,CAAC8D,gBAAgB,CAAC;EAC9C;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASK,iBAAiBA,CAAA,EAAS;EACxC1M,MAAM,CAACsF,IAAI,CAACiD,mBAAmB,CAAC,CAAC7F,OAAO,CAAC6J,aAAa,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Configuration for the event store
5
+ */
6
+
7
+ /**
8
+ * Configuration for session tracking
9
+ */
10
+
11
+ /**
12
+ * Configuration for app lifecycle tracking
13
+ */
14
+
15
+ /**
16
+ * The configuration object for initialising the tracker
17
+ */
18
+
19
+ export var PlatformContextProperty = /*#__PURE__*/function (PlatformContextProperty) {
20
+ PlatformContextProperty["Carrier"] = "carrier";
21
+ PlatformContextProperty["NetworkType"] = "networkType";
22
+ PlatformContextProperty["NetworkTechnology"] = "networkTechnology";
23
+ PlatformContextProperty["AppleIdfa"] = "appleIdfa";
24
+ PlatformContextProperty["AppleIdfv"] = "appleIdfv";
25
+ PlatformContextProperty["PhysicalMemory"] = "physicalMemory";
26
+ PlatformContextProperty["AppAvailableMemory"] = "appAvailableMemory";
27
+ PlatformContextProperty["BatteryLevel"] = "batteryLevel";
28
+ PlatformContextProperty["BatteryState"] = "batteryState";
29
+ PlatformContextProperty["LowPowerMode"] = "lowPowerMode";
30
+ PlatformContextProperty["AvailableStorage"] = "availableStorage";
31
+ PlatformContextProperty["TotalStorage"] = "totalStorage";
32
+ PlatformContextProperty["IsPortrait"] = "isPortrait";
33
+ PlatformContextProperty["Resolution"] = "resolution";
34
+ PlatformContextProperty["Scale"] = "scale";
35
+ PlatformContextProperty["Language"] = "language";
36
+ PlatformContextProperty["AndroidIdfa"] = "androidIdfa";
37
+ PlatformContextProperty["SystemAvailableMemory"] = "systemAvailableMemory";
38
+ PlatformContextProperty["AppSetId"] = "appSetId";
39
+ PlatformContextProperty["AppSetIdScope"] = "appSetIdScope";
40
+ return PlatformContextProperty;
41
+ }({});
42
+
43
+ /**
44
+ * Overrides for the values for properties of the platform context.
45
+ */
46
+
47
+ /**
48
+ * Configuration for deep link tracking
49
+ */
50
+
51
+ /**
52
+ * Configuration of subject properties tracked with events
53
+ */
54
+
55
+ /**
56
+ * Screen size in pixels
57
+ */
58
+
59
+ /**
60
+ * Trigger for MessageNotification event
61
+ */
62
+
63
+ /**
64
+ * Attachment object that identify an attachment in the MessageNotification.
65
+ */
66
+
67
+ /**
68
+ * MessageNotification event properties
69
+ * schema: iglu:com.snowplowanalytics.mobile/message_notification/jsonschema/1-0-0
70
+ */
71
+
72
+ /**
73
+ * EventContext type
74
+ */
75
+
76
+ /**
77
+ * ScreenView event properties
78
+ * schema: iglu:com.snowplowanalytics.mobile/screen_view/jsonschema/1-0-0
79
+ */
80
+
81
+ /**
82
+ * Event tracked when a scroll view's scroll position changes.
83
+ * If screen engagement tracking is enabled, the scroll changed events will be aggregated into a `screen_summary` entity.
84
+ *
85
+ * Schema: `iglu:com.snowplowanalytics.mobile/scroll_changed/jsonschema/1-0-0`
86
+ */
87
+
88
+ /**
89
+ * Event tracking the view of an item in a list.
90
+ * If screen engagement tracking is enabled, the list item view events will be aggregated into a `screen_summary` entity.
91
+ *
92
+ * Schema: `iglu:com.snowplowanalytics.mobile/list_item_view/jsonschema/1-0-0`
93
+ */
94
+
95
+ /**
96
+ * Timing event properties
97
+ */
98
+
99
+ /**
100
+ * DeepLinkReceived event properties
101
+ * schema: iglu:com.snowplowanalytics.mobile/deep_link_received/jsonschema/1-0-0
102
+ */
103
+
104
+ /**
105
+ * Current session state that is tracked in events.
106
+ */
107
+
108
+ /**
109
+ * The ReactNativeTracker type
110
+ */
111
+
112
+ export { version, PageViewEvent, StructuredEvent, FormFocusOrChangeEvent, SelfDescribingJson, Timestamp, PayloadBuilder, Payload, CorePlugin, CoreConfiguration, ContextGenerator, ContextFilter, EventPayloadAndContext, EventStore, EventStoreIterator, EventStorePayload, TrackerCore, Logger, EmitterConfiguration, EmitterConfigurationBase, EventJson, JsonProcessor, TrueTimestamp, DeviceTimestamp, EventMethod, RequestFailure, EventBatch, EventJsonWithKeys, LOG_LEVEL, ConditionalContextProvider, ContextPrimitive, CorePluginConfiguration, Emitter, FilterProvider, RuleSetProvider, RuleSet } from '@snowplow/tracker-core';
113
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PlatformContextProperty","version","PageViewEvent","StructuredEvent","FormFocusOrChangeEvent","SelfDescribingJson","Timestamp","PayloadBuilder","Payload","CorePlugin","CoreConfiguration","ContextGenerator","ContextFilter","EventPayloadAndContext","EventStore","EventStoreIterator","EventStorePayload","TrackerCore","Logger","EmitterConfiguration","EmitterConfigurationBase","EventJson","JsonProcessor","TrueTimestamp","DeviceTimestamp","EventMethod","RequestFailure","EventBatch","EventJsonWithKeys","LOG_LEVEL","ConditionalContextProvider","ContextPrimitive","CorePluginConfiguration","Emitter","FilterProvider","RuleSetProvider","RuleSet"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;AASA;AACA;AACA;;AAiBA;AACA;AACA;;AAcA;AACA;AACA;;AAoCA;AACA;AACA;;AAkBA,WAAYA,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;;AAmGnC;AACA;AACA;;AAgGA;AACA;AACA;;AASA;AACA;AACA;;AA6CA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAgFA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAgCA;AACA;AACA;AACA;AACA;AACA;;AA4BA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;;AAoBA;AACA;AACA;AACA;;AAYA;AACA;AACA;;AAoCA;AACA;AACA;;AAmQA,SACEC,OAAO,EACPC,aAAa,EACbC,eAAe,EACfC,sBAAsB,EACtBC,kBAAkB,EAClBC,SAAS,EACTC,cAAc,EACdC,OAAO,EACPC,UAAU,EACVC,iBAAiB,EACjBC,gBAAgB,EAChBC,aAAa,EACbC,sBAAsB,EACtBC,UAAU,EACVC,kBAAkB,EAClBC,iBAAiB,EACjBC,WAAW,EACXC,MAAM,EACNC,oBAAoB,EACpBC,wBAAwB,EACxBC,SAAS,EACTC,aAAa,EACbC,aAAa,EACbC,eAAe,EACfC,WAAW,EACXC,cAAc,EACdC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,0BAA0B,EAC1BC,gBAAgB,EAChBC,uBAAuB,EACvBC,OAAO,EACPC,cAAc,EACdC,eAAe,EACfC,OAAO,QACF,wBAAwB","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
5
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
6
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
+ // Returns the "useful" schema, i.e. what would someone want to use to identify events.
8
+ // For some events this is the 'e' property but for self-describing events, this is the
9
+ // 'schema' from the 'ue_px' field.
10
+ export function getUsefulSchema(sb) {
11
+ var eventJson = sb.getJson();
12
+ var _iterator = _createForOfIteratorHelper(eventJson),
13
+ _step;
14
+ try {
15
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
16
+ var json = _step.value;
17
+ if (json.keyIfEncoded === 'ue_px' && _typeof(json.json['data']) === 'object') {
18
+ var schema = json.json['data']['schema'];
19
+ if (typeof schema == 'string') {
20
+ return schema;
21
+ }
22
+ }
23
+ }
24
+ } catch (err) {
25
+ _iterator.e(err);
26
+ } finally {
27
+ _iterator.f();
28
+ }
29
+ return '';
30
+ }
31
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getUsefulSchema","sb","eventJson","getJson","_iterator","_createForOfIteratorHelper","_step","s","n","done","json","value","keyIfEncoded","_typeof","schema","err","e","f"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAACC,EAAkB,EAAU;EAC1D,IAAIC,SAAS,GAAGD,EAAE,CAACE,OAAO,CAAC,CAAC;EAAC,IAAAC,SAAA,GAAAC,0BAAA,CACVH,SAAS;IAAAI,KAAA;EAAA;IAA5B,KAAAF,SAAA,CAAAG,CAAA,MAAAD,KAAA,GAAAF,SAAA,CAAAI,CAAA,IAAAC,IAAA,GAA8B;MAAA,IAAnBC,IAAI,GAAAJ,KAAA,CAAAK,KAAA;MACb,IAAID,IAAI,CAACE,YAAY,KAAK,OAAO,IAAIC,OAAA,CAAOH,IAAI,CAACA,IAAI,CAAC,MAAM,CAAC,MAAK,QAAQ,EAAE;QAC1E,IAAMI,MAAM,GAAIJ,IAAI,CAACA,IAAI,CAAC,MAAM,CAAC,CAA6B,QAAQ,CAAC;QACvE,IAAI,OAAOI,MAAM,IAAI,QAAQ,EAAE;UAC7B,OAAOA,MAAM;QACf;MACF;IACF;EAAC,SAAAC,GAAA;IAAAX,SAAA,CAAAY,CAAA,CAAAD,GAAA;EAAA;IAAAX,SAAA,CAAAa,CAAA;EAAA;EACD,OAAO,EAAE;AACX","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,14 @@
1
+ export declare const FOREGROUND_EVENT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application_foreground/jsonschema/1-0-0";
2
+ export declare const BACKGROUND_EVENT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application_background/jsonschema/1-0-0";
3
+ export declare const DEEP_LINK_RECEIVED_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/deep_link_received/jsonschema/1-0-0";
4
+ export declare const SCREEN_VIEW_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/screen_view/jsonschema/1-0-0";
5
+ export declare const APPLICATION_INSTALL_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application_install/jsonschema/1-0-0";
6
+ export declare const CLIENT_SESSION_ENTITY_SCHEMA = "iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2";
7
+ export declare const MOBILE_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/mobile_context/jsonschema/1-0-3";
8
+ export declare const DEEP_LINK_ENTITY_SCHEMA = "iglu:com.snowplowanalytics.mobile/deep_link/jsonschema/1-0-0";
9
+ export declare const LIFECYCLE_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0";
10
+ export declare const MOBILE_APPLICATION_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0";
11
+ export declare const APPLICATION_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0";
12
+ export declare const PAGE_URL_PROPERTY = "url";
13
+ export declare const PAGE_REFERRER_PROPERTY = "refr";
14
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,gFAAgF,CAAC;AACrH,eAAO,MAAM,uBAAuB,gFAAgF,CAAC;AACrH,eAAO,MAAM,+BAA+B,0EAA0E,CAAC;AACvH,eAAO,MAAM,wBAAwB,mEAAmE,CAAC;AACzG,eAAO,MAAM,gCAAgC,2EAA2E,CAAC;AAEzH,eAAO,MAAM,4BAA4B,wEAAuE,CAAA;AAChH,eAAO,MAAM,qBAAqB,wEAAwE,CAAC;AAC3G,eAAO,MAAM,uBAAuB,iEAAiE,CAAC;AACtG,eAAO,MAAM,wBAAwB,6EAA6E,CAAC;AACnH,eAAO,MAAM,iCAAiC,mEAAmE,CAAC;AAClH,eAAO,MAAM,0BAA0B,qEAAqE,CAAC;AAE7G,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,sBAAsB,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { EventStore } from '@snowplow/tracker-core';
2
+ import { EventStoreConfiguration, TrackerConfiguration } from './types';
3
+ export declare function newReactNativeEventStore({ namespace, maxEventStoreSize, useAsyncStorageForEventStore: useAsyncStorage, }: EventStoreConfiguration & TrackerConfiguration): Promise<EventStore>;
4
+ //# sourceMappingURL=event_store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event_store.d.ts","sourceRoot":"","sources":["../../../../src/event_store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4C,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGxE,wBAAsB,wBAAwB,CAAC,EAC7C,SAAS,EACT,iBAAwB,EACxB,4BAA4B,EAAE,eAAsB,GACrD,EAAE,uBAAuB,GAAG,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAuCtE"}
@@ -0,0 +1,10 @@
1
+ import { PageViewEvent, SelfDescribingJson, StructuredEvent, TrackerCore } from '@snowplow/tracker-core';
2
+ import { EventContext, MessageNotificationProps, TimingProps } from './types';
3
+ export declare function newTrackEventFunctions(core: TrackerCore): {
4
+ trackSelfDescribingEvent: <T extends Record<string, unknown> = Record<string, unknown>>(argmap: SelfDescribingJson<T>, contexts?: EventContext[] | undefined) => void;
5
+ trackStructuredEvent: (argmap: StructuredEvent, contexts?: EventContext[] | undefined) => unknown;
6
+ trackPageViewEvent: (argmap: PageViewEvent, contexts?: EventContext[] | undefined) => unknown;
7
+ trackTimingEvent: (argmap: TimingProps, contexts?: EventContext[] | undefined) => void;
8
+ trackMessageNotificationEvent: (argmap: MessageNotificationProps, contexts?: EventContext[] | undefined) => void;
9
+ };
10
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW;;mCAQhB,eAAe;iCAIjB,aAAa;+BAIf,WAAW;4CAUE,wBAAwB;EAiBxE"}
@@ -0,0 +1,4 @@
1
+ import 'react-native-get-random-values';
2
+ export * from './types';
3
+ export * from './tracker';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAC;AAExC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { CorePluginConfiguration } from '@snowplow/tracker-core';
2
+ import { AppLifecycleConfiguration } from '../../types';
3
+ /**
4
+ * Tracks the application context entity with information about the app version.
5
+ * If appBuild is provided, a mobile application context is tracked, otherwise the Web equivalent is tracked.
6
+ *
7
+ * Entity schema if `appBuild` property is set: `iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0`
8
+ * Entity schema if `appBuild` property is not set: `iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0`
9
+ */
10
+ export declare function newAppContextPlugin({ appVersion, appBuild }: AppLifecycleConfiguration): CorePluginConfiguration;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAsB,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAGxD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,yBAAyB,GAAG,uBAAuB,CAgChH"}
@@ -0,0 +1,10 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { AppLifecycleConfiguration, TrackerConfiguration } from '../../types';
3
+ /**
4
+ * Tracks an application install event on the first run of the app.
5
+ * Stores the install event in AsyncStorage to prevent tracking on subsequent runs.
6
+ *
7
+ * Event schema: `iglu:com.snowplowanalytics.mobile/application_install/jsonschema/1-0-0`
8
+ */
9
+ export declare function newAppInstallPlugin({ namespace, installAutotracking }: TrackerConfiguration & AppLifecycleConfiguration, core: TrackerCore): CorePluginConfiguration;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_install/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,uBAAuB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI9E;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,SAAS,EAAE,mBAA2B,EAAE,EAAE,oBAAoB,GAAG,yBAAyB,EAC5F,IAAI,EAAE,WAAW,GAChB,uBAAuB,CAsBzB"}
@@ -0,0 +1,13 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { AppLifecycleConfiguration } from '../../types';
3
+ export interface AppLifecyclePlugin extends CorePluginConfiguration {
4
+ getIsInBackground: () => boolean | undefined;
5
+ getBackgroundIndex: () => number | undefined;
6
+ getForegroundIndex: () => number | undefined;
7
+ }
8
+ /**
9
+ * Tracks foreground and background events automatically when the app state changes.
10
+ * Also adds a lifecycle context to all events with information about the app visibility.
11
+ */
12
+ export declare function newAppLifecyclePlugin({ lifecycleAutotracking }: AppLifecycleConfiguration, core: TrackerCore): Promise<AppLifecyclePlugin>;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EAEvB,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAgB,MAAM,aAAa,CAAC;AAItE,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IACjE,iBAAiB,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;IAC7C,kBAAkB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC7C,kBAAkB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,EAAE,qBAA4B,EAAE,EAAE,yBAAyB,EAC3D,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAyE7B"}
@@ -0,0 +1,8 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { DeepLinkConfiguration, DeepLinkReceivedProps, EventContext } from '../../types';
3
+ interface DeepLinksPlugin extends CorePluginConfiguration {
4
+ trackDeepLinkReceivedEvent: (argmap: DeepLinkReceivedProps, contexts?: EventContext[]) => void;
5
+ }
6
+ export declare function newDeepLinksPlugin({ deepLinkContext }: DeepLinkConfiguration, core: TrackerCore): DeepLinksPlugin;
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/deep_links/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,uBAAuB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIzF,UAAU,eAAgB,SAAQ,uBAAuB;IACvD,0BAA0B,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAChG;AAED,wBAAgB,kBAAkB,CAChC,EAAE,eAAsB,EAAE,EAAE,qBAAqB,EACjD,IAAI,EAAE,WAAW,GAChB,eAAe,CAuDjB"}
@@ -0,0 +1,12 @@
1
+ import { CorePluginConfiguration } from '@snowplow/tracker-core';
2
+ import { PlatformContextConfiguration } from '../../types';
3
+ export interface PlatformContextPlugin extends CorePluginConfiguration {
4
+ enablePlatformContext: () => Promise<void>;
5
+ disablePlatformContext: () => void;
6
+ refreshPlatformContext: () => Promise<void>;
7
+ }
8
+ /**
9
+ * Tracks a mobile_context entity with all events if platformContext is enabled.
10
+ */
11
+ export declare function newPlatformContextPlugin({ platformContext, platformContextProperties, platformContextRetriever, }?: PlatformContextConfiguration): Promise<PlatformContextPlugin>;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/platform_context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAA2B,MAAM,aAAa,CAAC;AAKpF,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,qBAAqB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,sBAAsB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C;AAoFD;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,eAAsB,EACtB,yBAAyB,EACzB,wBAAwB,GACzB,GAAE,4BAAiC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiOpE"}
@@ -0,0 +1,19 @@
1
+ import { CorePluginConfiguration } from '@snowplow/tracker-core';
2
+ import { SessionConfiguration, SessionState, TrackerConfiguration } from '../../types';
3
+ interface SessionPlugin extends CorePluginConfiguration {
4
+ getSessionUserId: () => Promise<string | undefined>;
5
+ getSessionId: () => Promise<string | undefined>;
6
+ getSessionIndex: () => Promise<number | undefined>;
7
+ getSessionState: () => Promise<SessionState>;
8
+ startNewSession: () => Promise<void>;
9
+ }
10
+ /**
11
+ * Creates a new session plugin for tracking the session information.
12
+ * The plugin will add the session context to all events and start a new session if the current one has timed out.
13
+ *
14
+ * The session state is stored in AsyncStorage.
15
+ * Each restart of the app or creation of a new tracker instance will trigger a new session with reference to the previous session.
16
+ */
17
+ export declare function newSessionPlugin({ namespace, foregroundSessionTimeout, backgroundSessionTimeout, }: TrackerConfiguration & SessionConfiguration): Promise<SessionPlugin>;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAkB,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAYvF,UAAU,aAAc,SAAQ,uBAAuB;IACrD,gBAAgB,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD,YAAY,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD,eAAe,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AA4BD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,SAAS,EACT,wBAAwB,EACxB,wBAAwB,GACzB,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAiEtE"}
@@ -0,0 +1,6 @@
1
+ import { BrowserPluginConfiguration } from '@snowplow/browser-tracker-core';
2
+ import { TrackerCore } from '@snowplow/tracker-core';
3
+ export declare function newPlugins(namespace: string, core: TrackerCore): {
4
+ addPlugin: (plugin: BrowserPluginConfiguration) => void;
5
+ };
6
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAkC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AA2DrD,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW;wBAEvC,0BAA0B;EAQjD"}
@@ -0,0 +1,19 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { ScreenSize, SubjectConfiguration } from './types';
3
+ export declare function newSubject(core: TrackerCore, configuration?: SubjectConfiguration): {
4
+ subjectPlugin: CorePluginConfiguration;
5
+ properties: {
6
+ setUserId: (userId: string) => void;
7
+ setIpAddress: (ip: string) => void;
8
+ setUseragent: (useragent: string) => void;
9
+ setTimezone: (timezone: string) => void;
10
+ setLanguage: (lang: string) => void;
11
+ setScreenResolution: (screenSize: ScreenSize) => void;
12
+ setNetworkUserId: (userId: string | undefined) => void;
13
+ setDomainUserId: (userId: string | undefined) => void;
14
+ setSubjectData: (data: SubjectConfiguration) => void;
15
+ setColorDepth: (colorDepth: number) => void;
16
+ setScreenViewport: (screenSize: ScreenSize) => void;
17
+ };
18
+ };
19
+ //# sourceMappingURL=subject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subject.d.ts","sourceRoot":"","sources":["../../../../src/subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,oBAAoB;;;;;;;;;mCAY9C,MAAM,GAAG,SAAS;kCAInB,MAAM,GAAG,SAAS;+BAYrB,oBAAoB;oCARf,MAAM;;;EA+D1C"}