@journium/react 1.0.2 → 1.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Journium
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +1,6 @@
1
- import React, { createContext, useState, useEffect, useContext, useCallback } from 'react';
1
+ 'use strict';
2
+
3
+ var React = require('react');
2
4
 
3
5
  /**
4
6
  * uuidv7: A JavaScript implementation of UUID version 7
@@ -589,7 +591,7 @@ class BrowserIdentityManager {
589
591
  };
590
592
  this.saveIdentity();
591
593
  }
592
- identify(distinctId, attributes = {}) {
594
+ identify(distinctId, _attributes = {}) {
593
595
  if (!this.identity)
594
596
  return { previousDistinctId: null };
595
597
  const previousDistinctId = this.identity.distinct_id;
@@ -956,6 +958,10 @@ class PageviewTracker {
956
958
  this.client.track('$pageview', properties);
957
959
  this.lastUrl = currentUrl;
958
960
  }
961
+ /**
962
+ * Start automatic autocapture for pageviews
963
+ * @returns void
964
+ */
959
965
  startAutocapture() {
960
966
  this.capturePageview();
961
967
  if (typeof window !== 'undefined') {
@@ -976,6 +982,10 @@ class PageviewTracker {
976
982
  window.addEventListener('popstate', this.popStateHandler);
977
983
  }
978
984
  }
985
+ /**
986
+ * Stop automatic autocapture for pageviews
987
+ * @returns void
988
+ */
979
989
  stopAutocapture() {
980
990
  if (typeof window !== 'undefined') {
981
991
  // Restore original methods
@@ -1406,11 +1416,11 @@ const init = (config) => {
1406
1416
  return new JourniumAnalytics(config);
1407
1417
  };
1408
1418
 
1409
- const JourniumContext = createContext({ analytics: null, config: null, effectiveOptions: null });
1419
+ const JourniumContext = React.createContext({ analytics: null, config: null, effectiveOptions: null });
1410
1420
  const JourniumProvider = ({ children, config, }) => {
1411
- const [analytics, setAnalytics] = useState(null);
1412
- const [effectiveOptions, setEffectiveOptions] = useState(null);
1413
- useEffect(() => {
1421
+ const [analytics, setAnalytics] = React.useState(null);
1422
+ const [effectiveOptions, setEffectiveOptions] = React.useState(null);
1423
+ React.useEffect(() => {
1414
1424
  const analyticsInstance = new JourniumAnalytics(config);
1415
1425
  // Get effective options and check if autocapture is enabled
1416
1426
  const effective = analyticsInstance.getEffectiveOptions();
@@ -1429,7 +1439,7 @@ const JourniumProvider = ({ children, config, }) => {
1429
1439
  return (React.createElement(JourniumContext.Provider, { value: { analytics, config, effectiveOptions } }, children));
1430
1440
  };
1431
1441
  const useJournium = () => {
1432
- const context = useContext(JourniumContext);
1442
+ const context = React.useContext(JourniumContext);
1433
1443
  if (!context) {
1434
1444
  throw new Error('useJournium must be used within a JourniumProvider');
1435
1445
  }
@@ -1438,7 +1448,7 @@ const useJournium = () => {
1438
1448
 
1439
1449
  const useTrackEvent = () => {
1440
1450
  const { analytics } = useJournium();
1441
- return useCallback((event, properties) => {
1451
+ return React.useCallback((event, properties) => {
1442
1452
  if (analytics) {
1443
1453
  analytics.track(event, properties);
1444
1454
  }
@@ -1446,7 +1456,7 @@ const useTrackEvent = () => {
1446
1456
  };
1447
1457
  const useIdentify = () => {
1448
1458
  const { analytics } = useJournium();
1449
- return useCallback((distinctId, attributes) => {
1459
+ return React.useCallback((distinctId, attributes) => {
1450
1460
  if (analytics) {
1451
1461
  analytics.identify(distinctId, attributes);
1452
1462
  }
@@ -1454,7 +1464,7 @@ const useIdentify = () => {
1454
1464
  };
1455
1465
  const useReset = () => {
1456
1466
  const { analytics } = useJournium();
1457
- return useCallback(() => {
1467
+ return React.useCallback(() => {
1458
1468
  if (analytics) {
1459
1469
  analytics.reset();
1460
1470
  }
@@ -1462,7 +1472,7 @@ const useReset = () => {
1462
1472
  };
1463
1473
  const useTrackPageview = () => {
1464
1474
  const { analytics } = useJournium();
1465
- return useCallback((properties) => {
1475
+ return React.useCallback((properties) => {
1466
1476
  if (analytics) {
1467
1477
  analytics.capturePageview(properties);
1468
1478
  }
@@ -1470,18 +1480,18 @@ const useTrackPageview = () => {
1470
1480
  };
1471
1481
  const useAutoTrackPageview = (dependencies = [], properties) => {
1472
1482
  const trackPageview = useTrackPageview();
1473
- useEffect(() => {
1483
+ React.useEffect(() => {
1474
1484
  trackPageview(properties);
1475
1485
  }, [trackPageview, properties, ...dependencies]);
1476
1486
  };
1477
1487
  const useAutocapture = () => {
1478
1488
  const { analytics } = useJournium();
1479
- const startAutocapture = useCallback(() => {
1489
+ const startAutocapture = React.useCallback(() => {
1480
1490
  if (analytics) {
1481
1491
  analytics.startAutocapture();
1482
1492
  }
1483
1493
  }, [analytics]);
1484
- const stopAutocapture = useCallback(() => {
1494
+ const stopAutocapture = React.useCallback(() => {
1485
1495
  if (analytics) {
1486
1496
  analytics.stopAutocapture();
1487
1497
  }
@@ -1489,5 +1499,28 @@ const useAutocapture = () => {
1489
1499
  return { startAutocapture, stopAutocapture };
1490
1500
  };
1491
1501
 
1492
- export { AutocaptureTracker, BrowserIdentityManager, JourniumAnalytics, JourniumClient, JourniumProvider, PageviewTracker, fetchRemoteOptions, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeOptions, useAutoTrackPageview, useAutocapture, useIdentify, useJournium, useReset, useTrackEvent, useTrackPageview };
1493
- //# sourceMappingURL=index.js.map
1502
+ exports.AutocaptureTracker = AutocaptureTracker;
1503
+ exports.BrowserIdentityManager = BrowserIdentityManager;
1504
+ exports.JourniumAnalytics = JourniumAnalytics;
1505
+ exports.JourniumClient = JourniumClient;
1506
+ exports.JourniumProvider = JourniumProvider;
1507
+ exports.PageviewTracker = PageviewTracker;
1508
+ exports.fetchRemoteOptions = fetchRemoteOptions;
1509
+ exports.generateId = generateId;
1510
+ exports.generateUuidv7 = generateUuidv7;
1511
+ exports.getCurrentTimestamp = getCurrentTimestamp;
1512
+ exports.getCurrentUrl = getCurrentUrl;
1513
+ exports.getPageTitle = getPageTitle;
1514
+ exports.getReferrer = getReferrer;
1515
+ exports.init = init;
1516
+ exports.isBrowser = isBrowser;
1517
+ exports.isNode = isNode;
1518
+ exports.mergeOptions = mergeOptions;
1519
+ exports.useAutoTrackPageview = useAutoTrackPageview;
1520
+ exports.useAutocapture = useAutocapture;
1521
+ exports.useIdentify = useIdentify;
1522
+ exports.useJournium = useJournium;
1523
+ exports.useReset = useReset;
1524
+ exports.useTrackEvent = useTrackEvent;
1525
+ exports.useTrackPageview = useTrackPageview;
1526
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../journium-js/dist/index.mjs","../src/context.tsx","../src/hooks.ts"],"sourcesContent":["/**\n * uuidv7: A JavaScript implementation of UUID version 7\n *\n * Copyright 2021-2024 LiosK\n *\n * @license Apache-2.0\n * @packageDocumentation\n */\nconst DIGITS = \"0123456789abcdef\";\n/** Represents a UUID as a 16-byte byte array. */\nclass UUID {\n /** @param bytes - The 16-byte byte array representation. */\n constructor(bytes) {\n this.bytes = bytes;\n }\n /**\n * Creates an object from the internal representation, a 16-byte byte array\n * containing the binary UUID representation in the big-endian byte order.\n *\n * This method does NOT shallow-copy the argument, and thus the created object\n * holds the reference to the underlying buffer.\n *\n * @throws TypeError if the length of the argument is not 16.\n */\n static ofInner(bytes) {\n if (bytes.length !== 16) {\n throw new TypeError(\"not 128-bit length\");\n }\n else {\n return new UUID(bytes);\n }\n }\n /**\n * Builds a byte array from UUIDv7 field values.\n *\n * @param unixTsMs - A 48-bit `unix_ts_ms` field value.\n * @param randA - A 12-bit `rand_a` field value.\n * @param randBHi - The higher 30 bits of 62-bit `rand_b` field value.\n * @param randBLo - The lower 32 bits of 62-bit `rand_b` field value.\n * @throws RangeError if any field value is out of the specified range.\n */\n static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {\n if (!Number.isInteger(unixTsMs) ||\n !Number.isInteger(randA) ||\n !Number.isInteger(randBHi) ||\n !Number.isInteger(randBLo) ||\n unixTsMs < 0 ||\n randA < 0 ||\n randBHi < 0 ||\n randBLo < 0 ||\n unixTsMs > 281474976710655 ||\n randA > 0xfff ||\n randBHi > 1073741823 ||\n randBLo > 4294967295) {\n throw new RangeError(\"invalid field value\");\n }\n const bytes = new Uint8Array(16);\n bytes[0] = unixTsMs / 2 ** 40;\n bytes[1] = unixTsMs / 2 ** 32;\n bytes[2] = unixTsMs / 2 ** 24;\n bytes[3] = unixTsMs / 2 ** 16;\n bytes[4] = unixTsMs / 2 ** 8;\n bytes[5] = unixTsMs;\n bytes[6] = 0x70 | (randA >>> 8);\n bytes[7] = randA;\n bytes[8] = 0x80 | (randBHi >>> 24);\n bytes[9] = randBHi >>> 16;\n bytes[10] = randBHi >>> 8;\n bytes[11] = randBHi;\n bytes[12] = randBLo >>> 24;\n bytes[13] = randBLo >>> 16;\n bytes[14] = randBLo >>> 8;\n bytes[15] = randBLo;\n return new UUID(bytes);\n }\n /**\n * Builds a byte array from a string representation.\n *\n * This method accepts the following formats:\n *\n * - 32-digit hexadecimal format without hyphens: `0189dcd553117d408db09496a2eef37b`\n * - 8-4-4-4-12 hyphenated format: `0189dcd5-5311-7d40-8db0-9496a2eef37b`\n * - Hyphenated format with surrounding braces: `{0189dcd5-5311-7d40-8db0-9496a2eef37b}`\n * - RFC 9562 URN format: `urn:uuid:0189dcd5-5311-7d40-8db0-9496a2eef37b`\n *\n * Leading and trailing whitespaces represents an error.\n *\n * @throws SyntaxError if the argument could not parse as a valid UUID string.\n */\n static parse(uuid) {\n var _a, _b, _c, _d;\n let hex = undefined;\n switch (uuid.length) {\n case 32:\n hex = (_a = /^[0-9a-f]{32}$/i.exec(uuid)) === null || _a === void 0 ? void 0 : _a[0];\n break;\n case 36:\n hex =\n (_b = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _b === void 0 ? void 0 : _b.slice(1, 6).join(\"\");\n break;\n case 38:\n hex =\n (_c = /^\\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\\}$/i\n .exec(uuid)) === null || _c === void 0 ? void 0 : _c.slice(1, 6).join(\"\");\n break;\n case 45:\n hex =\n (_d = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _d === void 0 ? void 0 : _d.slice(1, 6).join(\"\");\n break;\n }\n if (hex) {\n const inner = new Uint8Array(16);\n for (let i = 0; i < 16; i += 4) {\n const n = parseInt(hex.substring(2 * i, 2 * i + 8), 16);\n inner[i + 0] = n >>> 24;\n inner[i + 1] = n >>> 16;\n inner[i + 2] = n >>> 8;\n inner[i + 3] = n;\n }\n return new UUID(inner);\n }\n else {\n throw new SyntaxError(\"could not parse UUID string\");\n }\n }\n /**\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (`0189dcd5-5311-7d40-8db0-9496a2eef37b`).\n */\n toString() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n if (i === 3 || i === 5 || i === 7 || i === 9) {\n text += \"-\";\n }\n }\n return text;\n }\n /**\n * @returns The 32-digit hexadecimal representation without hyphens\n * (`0189dcd553117d408db09496a2eef37b`).\n */\n toHex() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n }\n return text;\n }\n /** @returns The 8-4-4-4-12 canonical hexadecimal string representation. */\n toJSON() {\n return this.toString();\n }\n /**\n * Reports the variant field value of the UUID or, if appropriate, \"NIL\" or\n * \"MAX\".\n *\n * For convenience, this method reports \"NIL\" or \"MAX\" if `this` represents\n * the Nil or Max UUID, although the Nil and Max UUIDs are technically\n * subsumed under the variants `0b0` and `0b111`, respectively.\n */\n getVariant() {\n const n = this.bytes[8] >>> 4;\n if (n < 0) {\n throw new Error(\"unreachable\");\n }\n else if (n <= 0b0111) {\n return this.bytes.every((e) => e === 0) ? \"NIL\" : \"VAR_0\";\n }\n else if (n <= 0b1011) {\n return \"VAR_10\";\n }\n else if (n <= 0b1101) {\n return \"VAR_110\";\n }\n else if (n <= 0b1111) {\n return this.bytes.every((e) => e === 0xff) ? \"MAX\" : \"VAR_RESERVED\";\n }\n else {\n throw new Error(\"unreachable\");\n }\n }\n /**\n * Returns the version field value of the UUID or `undefined` if the UUID does\n * not have the variant field value of `0b10`.\n */\n getVersion() {\n return this.getVariant() === \"VAR_10\" ? this.bytes[6] >>> 4 : undefined;\n }\n /** Creates an object from `this`. */\n clone() {\n return new UUID(this.bytes.slice(0));\n }\n /** Returns true if `this` is equivalent to `other`. */\n equals(other) {\n return this.compareTo(other) === 0;\n }\n /**\n * Returns a negative integer, zero, or positive integer if `this` is less\n * than, equal to, or greater than `other`, respectively.\n */\n compareTo(other) {\n for (let i = 0; i < 16; i++) {\n const diff = this.bytes[i] - other.bytes[i];\n if (diff !== 0) {\n return Math.sign(diff);\n }\n }\n return 0;\n }\n}\n/**\n * Encapsulates the monotonic counter state.\n *\n * This class provides APIs to utilize a separate counter state from that of the\n * global generator used by {@link uuidv7} and {@link uuidv7obj}. In addition to\n * the default {@link generate} method, this class has {@link generateOrAbort}\n * that is useful to absolutely guarantee the monotonically increasing order of\n * generated UUIDs. See their respective documentation for details.\n */\nclass V7Generator {\n /**\n * Creates a generator object with the default random number generator, or\n * with the specified one if passed as an argument. The specified random\n * number generator should be cryptographically strong and securely seeded.\n */\n constructor(randomNumberGenerator) {\n this.timestamp = 0;\n this.counter = 0;\n this.random = randomNumberGenerator !== null && randomNumberGenerator !== void 0 ? randomNumberGenerator : getDefaultRandom();\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method resets the\n * generator and returns a new UUID based on the given timestamp, breaking the\n * increasing order of UUIDs.\n *\n * See {@link generateOrAbort} for the other mode of generation and\n * {@link generateOrResetCore} for the low-level primitive.\n */\n generate() {\n return this.generateOrResetCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method aborts and\n * returns `undefined` immediately.\n *\n * See {@link generate} for the other mode of generation and\n * {@link generateOrAbortCore} for the low-level primitive.\n */\n generateOrAbort() {\n return this.generateOrAbortCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generate} except that it takes a custom\n * timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit positive integer.\n */\n generateOrResetCore(unixTsMs, rollbackAllowance) {\n let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n if (value === undefined) {\n // reset state and resume\n this.timestamp = 0;\n value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n }\n return value;\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generateOrAbort} except that it takes a\n * custom timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit positive integer.\n */\n generateOrAbortCore(unixTsMs, rollbackAllowance) {\n const MAX_COUNTER = 4398046511103;\n if (!Number.isInteger(unixTsMs) ||\n unixTsMs < 1 ||\n unixTsMs > 281474976710655) {\n throw new RangeError(\"`unixTsMs` must be a 48-bit positive integer\");\n }\n else if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) {\n throw new RangeError(\"`rollbackAllowance` out of reasonable range\");\n }\n if (unixTsMs > this.timestamp) {\n this.timestamp = unixTsMs;\n this.resetCounter();\n }\n else if (unixTsMs + rollbackAllowance >= this.timestamp) {\n // go on with previous timestamp if new one is not much smaller\n this.counter++;\n if (this.counter > MAX_COUNTER) {\n // increment timestamp at counter overflow\n this.timestamp++;\n this.resetCounter();\n }\n }\n else {\n // abort if clock went backwards to unbearable extent\n return undefined;\n }\n return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & (2 ** 30 - 1), this.random.nextUint32());\n }\n /** Initializes the counter at a 42-bit random integer. */\n resetCounter() {\n this.counter =\n this.random.nextUint32() * 0x400 + (this.random.nextUint32() & 0x3ff);\n }\n /**\n * Generates a new UUIDv4 object utilizing the random number generator inside.\n *\n * @internal\n */\n generateV4() {\n const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);\n bytes[6] = 0x40 | (bytes[6] >>> 4);\n bytes[8] = 0x80 | (bytes[8] >>> 2);\n return UUID.ofInner(bytes);\n }\n}\n/** Returns the default random number generator available in the environment. */\nconst getDefaultRandom = () => {\n // detect Web Crypto API\n if (typeof crypto !== \"undefined\" &&\n typeof crypto.getRandomValues !== \"undefined\") {\n return new BufferedCryptoRandom();\n }\n else {\n // fall back on Math.random() unless the flag is set to true\n if (typeof UUIDV7_DENY_WEAK_RNG !== \"undefined\" && UUIDV7_DENY_WEAK_RNG) {\n throw new Error(\"no cryptographically strong RNG available\");\n }\n return {\n nextUint32: () => Math.trunc(Math.random() * 65536) * 65536 +\n Math.trunc(Math.random() * 65536),\n };\n }\n};\n/**\n * Wraps `crypto.getRandomValues()` to enable buffering; this uses a small\n * buffer by default to avoid both unbearable throughput decline in some\n * environments and the waste of time and space for unused values.\n */\nclass BufferedCryptoRandom {\n constructor() {\n this.buffer = new Uint32Array(8);\n this.cursor = 0xffff;\n }\n nextUint32() {\n if (this.cursor >= this.buffer.length) {\n crypto.getRandomValues(this.buffer);\n this.cursor = 0;\n }\n return this.buffer[this.cursor++];\n }\n}\nlet defaultGenerator;\n/**\n * Generates a UUIDv7 string.\n *\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\").\n */\nconst uuidv7 = () => uuidv7obj().toString();\n/** Generates a UUIDv7 object. */\nconst uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();\n\nconst generateId = () => {\n return Math.random().toString(36).substring(2) + Date.now().toString(36);\n};\nconst generateUuidv7 = () => {\n return uuidv7();\n};\nconst getCurrentTimestamp = () => {\n return new Date().toISOString();\n};\nconst getCurrentUrl = () => {\n if (typeof window !== 'undefined') {\n return window.location.href;\n }\n return '';\n};\nconst getPageTitle = () => {\n if (typeof document !== 'undefined') {\n return document.title;\n }\n return '';\n};\nconst getReferrer = () => {\n if (typeof document !== 'undefined') {\n return document.referrer;\n }\n return '';\n};\nconst isBrowser = () => {\n return typeof window !== 'undefined';\n};\nconst isNode = () => {\n var _a;\n return typeof process !== 'undefined' && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\n};\nconst fetchRemoteOptions = async (apiHost, publishableKey, fetchFn) => {\n const endpoint = '/v1/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(publishableKey)}`;\n try {\n let fetch = fetchFn;\n if (!fetch) {\n if (isNode()) {\n // For Node.js environments, expect fetch to be passed in\n throw new Error('Fetch function must be provided in Node.js environment');\n }\n else {\n // Use native fetch in browser\n fetch = window.fetch;\n }\n }\n const response = await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n });\n if (!response.ok) {\n throw new Error(`Options fetch failed: ${response.status} ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n }\n catch (error) {\n console.warn('Failed to fetch remote options:', error);\n return null;\n }\n};\nconst mergeOptions = (localOptions, remoteOptions) => {\n if (!remoteOptions && !localOptions) {\n return {};\n }\n if (!remoteOptions) {\n return localOptions;\n }\n if (!localOptions) {\n return remoteOptions;\n }\n // Deep merge local options into remote options\n // Local options takes precedence over remote options\n const merged = { ...remoteOptions };\n // Handle primitive values\n Object.keys(localOptions).forEach(key => {\n const localValue = localOptions[key];\n if (localValue !== undefined && localValue !== null) {\n if (typeof localValue === 'object' && !Array.isArray(localValue)) {\n // Deep merge objects - local options overrides remote\n merged[key] = {\n ...(merged[key] || {}),\n ...localValue\n };\n }\n else {\n // Override primitive values and arrays with local options\n merged[key] = localValue;\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, publishableKey) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with publishableKey pattern: jrnm_<publishableKey>_journium\n this.storageKey = publishableKey ? `jrnm_${publishableKey}_journium` : '__journium_identity';\n this.loadOrCreateIdentity();\n }\n loadOrCreateIdentity() {\n if (!this.isBrowser())\n return;\n try {\n const stored = localStorage.getItem(this.storageKey);\n if (stored) {\n const parsedIdentity = JSON.parse(stored);\n // Check if session is expired\n const now = Date.now();\n const sessionAge = now - parsedIdentity.session_timestamp;\n if (sessionAge > this.sessionTimeout) {\n // Session expired, create new session but keep device and distinct IDs\n this.identity = {\n distinct_id: parsedIdentity.distinct_id,\n $device_id: parsedIdentity.$device_id,\n $session_id: generateUuidv7(),\n session_timestamp: now,\n $user_state: parsedIdentity.$user_state || 'anonymous',\n };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\n // Ensure $user_state exists for backward compatibility\n if (!this.identity.$user_state) {\n this.identity.$user_state = 'anonymous';\n }\n }\n }\n else {\n // First time, create all new IDs\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n // Save to localStorage\n this.saveIdentity();\n }\n catch (error) {\n console.warn('Journium: Failed to load/create identity:', error);\n // Fallback: create temporary identity without localStorage\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n }\n saveIdentity() {\n if (!this.isBrowser() || !this.identity)\n return;\n try {\n localStorage.setItem(this.storageKey, JSON.stringify(this.identity));\n }\n catch (error) {\n console.warn('Journium: Failed to save identity to localStorage:', error);\n }\n }\n isBrowser() {\n return typeof window !== 'undefined' && typeof localStorage !== 'undefined';\n }\n getIdentity() {\n return this.identity;\n }\n updateSessionTimeout(timeoutMs) {\n this.sessionTimeout = timeoutMs;\n }\n refreshSession() {\n if (!this.identity)\n return;\n this.identity = {\n ...this.identity,\n $session_id: generateUuidv7(),\n session_timestamp: Date.now(),\n };\n this.saveIdentity();\n }\n identify(distinctId, _attributes = {}) {\n if (!this.identity)\n return { previousDistinctId: null };\n const previousDistinctId = this.identity.distinct_id;\n // Update the distinct ID and mark user as identified\n this.identity = {\n ...this.identity,\n distinct_id: distinctId,\n $user_state: 'identified',\n };\n this.saveIdentity();\n return { previousDistinctId };\n }\n reset() {\n if (!this.identity)\n return;\n // Generate new distinct ID but keep device ID\n this.identity = {\n ...this.identity,\n distinct_id: generateUuidv7(),\n $user_state: 'anonymous',\n };\n this.saveIdentity();\n }\n getUserAgentInfo() {\n if (!this.isBrowser()) {\n return {\n $raw_user_agent: '',\n $browser: 'Unknown',\n $os: 'Unknown',\n $device_type: 'Unknown',\n };\n }\n const userAgent = navigator.userAgent;\n return {\n $raw_user_agent: userAgent,\n $browser: this.parseBrowser(userAgent),\n $os: this.parseOS(userAgent),\n $device_type: this.parseDeviceType(userAgent),\n };\n }\n parseBrowser(userAgent) {\n if (userAgent.includes('Chrome') && !userAgent.includes('Edg'))\n return 'Chrome';\n if (userAgent.includes('Firefox'))\n return 'Firefox';\n if (userAgent.includes('Safari') && !userAgent.includes('Chrome'))\n return 'Safari';\n if (userAgent.includes('Edg'))\n return 'Edge';\n if (userAgent.includes('Opera') || userAgent.includes('OPR'))\n return 'Opera';\n return 'Unknown';\n }\n parseOS(userAgent) {\n if (userAgent.includes('Windows'))\n return 'Windows';\n if (userAgent.includes('Macintosh') || userAgent.includes('Mac OS'))\n return 'Mac OS';\n if (userAgent.includes('Linux'))\n return 'Linux';\n if (userAgent.includes('Android'))\n return 'Android';\n if (userAgent.includes('iPhone') || userAgent.includes('iPad'))\n return 'iOS';\n return 'Unknown';\n }\n parseDeviceType(userAgent) {\n if (userAgent.includes('Mobile') || userAgent.includes('Android') || userAgent.includes('iPhone')) {\n return 'Mobile';\n }\n if (userAgent.includes('iPad') || userAgent.includes('Tablet')) {\n return 'Tablet';\n }\n return 'Desktop';\n }\n}\n\nclass JourniumClient {\n constructor(config) {\n this.queue = [];\n this.flushTimer = null;\n this.initialized = false;\n // Validate required configuration\n if (!config.publishableKey) {\n console.error('Journium: publishableKey is required but not provided. SDK will not function.');\n return;\n }\n // Set default apiHost if not provided\n this.config = {\n ...config,\n apiHost: config.apiHost || 'https://events.journium.app'\n };\n // Generate storage key for options caching\n this.optionsStorageKey = `jrnm_${config.publishableKey}_options`;\n // Generate default values\n const defaultOptions = {\n debug: false,\n flushAt: 20,\n flushInterval: 10000,\n sessionTimeout: 30 * 60 * 1000, // 30 minutes\n };\n // Initialize effective options with local options taking precedence over defaults\n this.effectiveOptions = { ...defaultOptions };\n if (this.config.options) {\n this.effectiveOptions = mergeOptions(defaultOptions, this.config.options);\n }\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.effectiveOptions.sessionTimeout, this.config.publishableKey);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initializeSync();\n this.fetchRemoteOptionsAsync();\n }\n loadCachedOptions() {\n var _a;\n if (typeof window === 'undefined' || !window.localStorage) {\n return null;\n }\n try {\n const cached = window.localStorage.getItem(this.optionsStorageKey);\n return cached ? JSON.parse(cached) : null;\n }\n catch (error) {\n if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedOptions(options) {\n var _a;\n if (typeof window === 'undefined' || !window.localStorage) {\n return;\n }\n try {\n window.localStorage.setItem(this.optionsStorageKey, JSON.stringify(options));\n }\n catch (error) {\n if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n initializeSync() {\n // Step 1: Load cached remote options from localStorage (synchronous)\n const cachedRemoteOptions = this.loadCachedOptions();\n // Step 2: If no local options provided, use cached remote options\n if (!this.config.options && cachedRemoteOptions) {\n this.effectiveOptions = cachedRemoteOptions;\n if (this.effectiveOptions.debug) {\n console.log('Journium: Using cached remote options:', cachedRemoteOptions);\n }\n }\n // Step 3: Mark as initialized immediately - no need to wait for remote fetch\n this.initialized = true;\n // Step 4: Start flush timer immediately\n if (this.effectiveOptions.flushInterval && this.effectiveOptions.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.effectiveOptions.debug) {\n console.log('Journium: Client initialized with effective options:', this.effectiveOptions);\n }\n }\n async fetchRemoteOptionsAsync() {\n // Fetch fresh config in background\n if (this.config.publishableKey) {\n await this.fetchAndCacheRemoteOptions();\n }\n }\n async fetchAndCacheRemoteOptions() {\n try {\n if (this.effectiveOptions.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteOptionsResponse = await fetchRemoteOptions(this.config.apiHost, this.config.publishableKey);\n if (remoteOptionsResponse && remoteOptionsResponse.success) {\n // Save remote config to cache for next session\n this.saveCachedOptions(remoteOptionsResponse.config);\n // Update effective options: local options (if provided) overrides fresh remote options\n if (!this.config.options) {\n // No local options provided, use fresh remote options\n this.effectiveOptions = remoteOptionsResponse.config;\n }\n else {\n // Local options provided, merge it over fresh remote options\n this.effectiveOptions = mergeOptions(remoteOptionsResponse.config, this.config.options);\n }\n // Update session timeout if provided in fresh effective options\n if (this.effectiveOptions.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.effectiveOptions.sessionTimeout);\n }\n if (this.effectiveOptions.debug) {\n console.log('Journium: Background remote options applied:', remoteOptionsResponse.config);\n console.log('Journium: New effective options:', this.effectiveOptions);\n }\n }\n }\n catch (error) {\n if (this.effectiveOptions.debug) {\n console.warn('Journium: Background remote options fetch failed:', error);\n }\n }\n }\n startFlushTimer() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n }\n // Use universal setInterval (works in both browser and Node.js)\n this.flushTimer = setInterval(() => {\n this.flush();\n }, this.effectiveOptions.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/v1/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.publishableKey}`,\n },\n body: JSON.stringify({\n events,\n }),\n });\n if (!response.ok) {\n throw new Error(`HTTP ${response.status}: ${response.statusText}`);\n }\n if (this.effectiveOptions.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.effectiveOptions.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n identify(distinctId, attributes = {}) {\n var _a;\n // Don't identify if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: identify() call rejected - SDK not ready');\n }\n return;\n }\n // Call identify on identity manager to get previous distinct ID\n const { previousDistinctId } = this.identityManager.identify(distinctId, attributes);\n // Track $identify event with previous distinct ID\n const identifyProperties = {\n ...attributes,\n $anon_distinct_id: previousDistinctId,\n };\n this.track('$identify', identifyProperties);\n if (this.effectiveOptions.debug) {\n console.log('Journium: User identified', { distinctId, attributes, previousDistinctId });\n }\n }\n reset() {\n var _a;\n // Don't reset if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: reset() call rejected - SDK not ready');\n }\n return;\n }\n // Reset identity in identity manager\n this.identityManager.reset();\n if (this.effectiveOptions.debug) {\n console.log('Journium: User identity reset');\n }\n }\n track(event, properties = {}) {\n var _a;\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: track() call rejected - SDK not ready');\n }\n return;\n }\n const identity = this.identityManager.getIdentity();\n const userAgentInfo = this.identityManager.getUserAgentInfo();\n // Create standardized event properties\n const eventProperties = {\n $device_id: identity === null || identity === void 0 ? void 0 : identity.$device_id,\n distinct_id: identity === null || identity === void 0 ? void 0 : identity.distinct_id,\n $session_id: identity === null || identity === void 0 ? void 0 : identity.$session_id,\n $is_identified: (identity === null || identity === void 0 ? void 0 : identity.$user_state) === 'identified',\n $current_url: typeof window !== 'undefined' ? window.location.href : '',\n $pathname: typeof window !== 'undefined' ? window.location.pathname : '',\n ...userAgentInfo,\n $lib_version: '0.1.0', // TODO: Get from package.json\n $platform: 'web',\n ...properties, // User-provided properties override defaults\n };\n const journiumEvent = {\n uuid: generateUuidv7(),\n ingestion_key: this.config.publishableKey,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.effectiveOptions.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.effectiveOptions.flushAt) {\n this.flush();\n }\n }\n async flush() {\n // Don't flush if SDK is not properly configured\n if (!this.config || !this.config.publishableKey) {\n return;\n }\n if (this.queue.length === 0)\n return;\n const events = [...this.queue];\n this.queue = [];\n try {\n await this.sendEvents(events);\n }\n catch (error) {\n this.queue.unshift(...events);\n throw error;\n }\n }\n destroy() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n this.flushTimer = null;\n }\n this.flush();\n }\n getEffectiveOptions() {\n return this.effectiveOptions;\n }\n}\n\nclass PageviewTracker {\n constructor(client) {\n this.lastUrl = '';\n this.originalPushState = null;\n this.originalReplaceState = null;\n this.popStateHandler = null;\n this.client = client;\n }\n capturePageview(customProperties = {}) {\n const currentUrl = getCurrentUrl();\n const url = new URL(currentUrl);\n const properties = {\n $current_url: currentUrl,\n $host: url.host,\n $pathname: url.pathname,\n $search: url.search,\n $title: getPageTitle(),\n $referrer: getReferrer(),\n ...customProperties,\n };\n this.client.track('$pageview', properties);\n this.lastUrl = currentUrl;\n }\n /**\n * Start automatic autocapture for pageviews\n * @returns void\n */\n startAutocapture() {\n this.capturePageview();\n if (typeof window !== 'undefined') {\n // Store original methods for cleanup\n this.originalPushState = window.history.pushState;\n this.originalReplaceState = window.history.replaceState;\n window.history.pushState = (...args) => {\n this.originalPushState.apply(window.history, args);\n setTimeout(() => this.capturePageview(), 0);\n };\n window.history.replaceState = (...args) => {\n this.originalReplaceState.apply(window.history, args);\n setTimeout(() => this.capturePageview(), 0);\n };\n this.popStateHandler = () => {\n setTimeout(() => this.capturePageview(), 0);\n };\n window.addEventListener('popstate', this.popStateHandler);\n }\n }\n /**\n * Stop automatic autocapture for pageviews\n * @returns void\n */\n stopAutocapture() {\n if (typeof window !== 'undefined') {\n // Restore original methods\n if (this.originalPushState) {\n window.history.pushState = this.originalPushState;\n this.originalPushState = null;\n }\n if (this.originalReplaceState) {\n window.history.replaceState = this.originalReplaceState;\n this.originalReplaceState = null;\n }\n if (this.popStateHandler) {\n window.removeEventListener('popstate', this.popStateHandler);\n this.popStateHandler = null;\n }\n }\n }\n}\n\nclass AutocaptureTracker {\n constructor(client, options = {}) {\n this.listeners = new Map();\n this.isActive = false;\n this.client = client;\n this.options = {\n captureClicks: true,\n captureFormSubmits: true,\n captureFormChanges: true,\n captureTextSelection: false,\n ignoreClasses: ['journium-ignore'],\n ignoreElements: ['script', 'style', 'noscript'],\n captureContentText: true,\n ...options,\n };\n }\n start() {\n if (!isBrowser() || this.isActive) {\n return;\n }\n this.isActive = true;\n if (this.options.captureClicks) {\n this.addClickListener();\n }\n if (this.options.captureFormSubmits) {\n this.addFormSubmitListener();\n }\n if (this.options.captureFormChanges) {\n this.addFormChangeListener();\n }\n if (this.options.captureTextSelection) {\n this.addTextSelectionListener();\n }\n }\n stop() {\n if (!isBrowser() || !this.isActive) {\n return;\n }\n this.isActive = false;\n this.listeners.forEach((listener, event) => {\n document.removeEventListener(event, listener, true);\n });\n this.listeners.clear();\n }\n addClickListener() {\n const clickListener = (event) => {\n const target = event.target;\n if (this.shouldIgnoreElement(target)) {\n return;\n }\n const properties = this.getElementProperties(target, 'click');\n this.client.track('$autocapture', {\n $event_type: 'click',\n ...properties,\n });\n };\n document.addEventListener('click', clickListener, true);\n this.listeners.set('click', clickListener);\n }\n addFormSubmitListener() {\n const submitListener = (event) => {\n const target = event.target;\n if (this.shouldIgnoreElement(target)) {\n return;\n }\n const properties = this.getFormProperties(target, 'submit');\n this.client.track('$autocapture', {\n $event_type: 'submit',\n ...properties,\n });\n };\n document.addEventListener('submit', submitListener, true);\n this.listeners.set('submit', submitListener);\n }\n addFormChangeListener() {\n const changeListener = (event) => {\n const target = event.target;\n if (this.shouldIgnoreElement(target) || !this.isFormElement(target)) {\n return;\n }\n const properties = this.getInputProperties(target, 'change');\n this.client.track('$autocapture', {\n $event_type: 'change',\n ...properties,\n });\n };\n document.addEventListener('change', changeListener, true);\n this.listeners.set('change', changeListener);\n }\n addTextSelectionListener() {\n const selectionListener = () => {\n const selection = window.getSelection();\n if (!selection || selection.toString().trim().length === 0) {\n return;\n }\n const selectedText = selection.toString().trim();\n if (selectedText.length < 3) { // Ignore very short selections\n return;\n }\n this.client.track('$autocapture', {\n $event_type: 'text_selection',\n $selected_text: selectedText.substring(0, 200), // Limit text length\n $selection_length: selectedText.length,\n });\n };\n document.addEventListener('mouseup', selectionListener);\n this.listeners.set('mouseup', selectionListener);\n }\n shouldIgnoreElement(element) {\n var _a, _b, _c;\n if (!element || !element.tagName) {\n return true;\n }\n // Check if element should be ignored by tag name\n if ((_a = this.options.ignoreElements) === null || _a === void 0 ? void 0 : _a.includes(element.tagName.toLowerCase())) {\n return true;\n }\n // Check if element has ignore classes\n if ((_b = this.options.ignoreClasses) === null || _b === void 0 ? void 0 : _b.some(cls => element.classList.contains(cls))) {\n return true;\n }\n // Check parent elements for ignore classes\n let parent = element.parentElement;\n while (parent) {\n if ((_c = this.options.ignoreClasses) === null || _c === void 0 ? void 0 : _c.some(cls => parent.classList.contains(cls))) {\n return true;\n }\n parent = parent.parentElement;\n }\n return false;\n }\n isFormElement(element) {\n const formElements = ['input', 'select', 'textarea'];\n return formElements.includes(element.tagName.toLowerCase());\n }\n getElementProperties(element, eventType) {\n const properties = {\n $element_tag: element.tagName.toLowerCase(),\n $element_type: this.getElementType(element),\n };\n // Element identifiers\n if (element.id) {\n properties.$element_id = element.id;\n }\n if (element.className) {\n properties.$element_classes = Array.from(element.classList);\n }\n // Element attributes\n const relevantAttributes = ['name', 'role', 'aria-label', 'data-testid', 'data-track'];\n relevantAttributes.forEach(attr => {\n const value = element.getAttribute(attr);\n if (value) {\n properties[`$element_${attr.replace('-', '_')}`] = value;\n }\n });\n // Element content\n if (this.options.captureContentText) {\n const text = this.getElementText(element);\n if (text) {\n properties.$element_text = text.substring(0, 200); // Limit text length\n }\n }\n // Elements chain data\n const elementsChain = this.getElementsChain(element);\n properties.$elements_chain = elementsChain.chain;\n properties.$elements_chain_href = elementsChain.href;\n properties.$elements_chain_elements = elementsChain.elements;\n properties.$elements_chain_texts = elementsChain.texts;\n properties.$elements_chain_ids = elementsChain.ids;\n // Position information\n const rect = element.getBoundingClientRect();\n properties.$element_position = {\n x: Math.round(rect.left),\n y: Math.round(rect.top),\n width: Math.round(rect.width),\n height: Math.round(rect.height),\n };\n // Parent information\n if (element.parentElement) {\n properties.$parent_tag = element.parentElement.tagName.toLowerCase();\n if (element.parentElement.id) {\n properties.$parent_id = element.parentElement.id;\n }\n }\n // URL information\n properties.$current_url = window.location.href;\n properties.$host = window.location.host;\n properties.$pathname = window.location.pathname;\n return properties;\n }\n getFormProperties(form, eventType) {\n const properties = this.getElementProperties(form, eventType);\n // Form-specific properties\n properties.$form_method = form.method || 'get';\n properties.$form_action = form.action || '';\n // Count form elements\n const inputs = form.querySelectorAll('input, select, textarea');\n properties.$form_elements_count = inputs.length;\n // Form element types\n const elementTypes = {};\n inputs.forEach(input => {\n const type = this.getElementType(input);\n elementTypes[type] = (elementTypes[type] || 0) + 1;\n });\n properties.$form_element_types = elementTypes;\n return properties;\n }\n getInputProperties(input, eventType) {\n const properties = this.getElementProperties(input, eventType);\n // Input-specific properties\n properties.$input_type = input.type || 'text';\n if (input.name) {\n properties.$input_name = input.name;\n }\n if (input.placeholder) {\n properties.$input_placeholder = input.placeholder;\n }\n // Value information (be careful with sensitive data)\n if (this.isSafeInputType(input.type)) {\n if (input.type === 'checkbox' || input.type === 'radio') {\n properties.$input_checked = input.checked;\n }\n else if (input.value) {\n // For safe inputs, capture value length and basic characteristics\n properties.$input_value_length = input.value.length;\n properties.$input_has_value = input.value.length > 0;\n // For select elements, capture the selected value\n if (input.tagName.toLowerCase() === 'select') {\n properties.$input_selected_value = input.value;\n }\n }\n }\n // Form context\n const form = input.closest('form');\n if (form && form.id) {\n properties.$form_id = form.id;\n }\n return properties;\n }\n getElementType(element) {\n const tag = element.tagName.toLowerCase();\n if (tag === 'input') {\n return element.type || 'text';\n }\n if (tag === 'button') {\n return element.type || 'button';\n }\n return tag;\n }\n getElementText(element) {\n var _a, _b;\n // For buttons and links, get the visible text\n if (['button', 'a'].includes(element.tagName.toLowerCase())) {\n return ((_a = element.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';\n }\n // For inputs, get placeholder or label\n if (element.tagName.toLowerCase() === 'input') {\n const input = element;\n return input.placeholder || input.value || '';\n }\n // For other elements, get text content but limit it\n const text = ((_b = element.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || '';\n return text.length > 50 ? text.substring(0, 47) + '...' : text;\n }\n getElementsChain(element) {\n var _a;\n const elements = [];\n const texts = [];\n const ids = [];\n let href = '';\n let current = element;\n while (current && current !== document.body) {\n // Element selector\n let selector = current.tagName.toLowerCase();\n // Add ID if present\n if (current.id) {\n selector += `#${current.id}`;\n ids.push(current.id);\n }\n else {\n ids.push('');\n }\n // Add classes if present\n if (current.className && typeof current.className === 'string') {\n const classes = current.className.trim().split(/\\s+/).slice(0, 3); // Limit to first 3 classes\n if (classes.length > 0 && classes[0] !== '') {\n selector += '.' + classes.join('.');\n }\n }\n // Add nth-child if no ID (to make selector more specific)\n if (!current.id && current.parentElement) {\n const siblings = Array.from(current.parentElement.children)\n .filter(child => child.tagName === current.tagName);\n if (siblings.length > 1) {\n const index = siblings.indexOf(current) + 1;\n selector += `:nth-child(${index})`;\n }\n }\n elements.push(selector);\n // Extract text content\n let text = '';\n if (current.tagName.toLowerCase() === 'a') {\n text = ((_a = current.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';\n // Capture href for links\n if (!href && current.getAttribute('href')) {\n href = current.getAttribute('href') || '';\n }\n }\n else if (['button', 'span', 'div'].includes(current.tagName.toLowerCase())) {\n // For buttons and text elements, get direct text content (not including children)\n const directText = Array.from(current.childNodes)\n .filter(node => node.nodeType === Node.TEXT_NODE)\n .map(node => { var _a; return (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim(); })\n .join(' ')\n .trim();\n text = directText || '';\n }\n else if (current.tagName.toLowerCase() === 'input') {\n const input = current;\n text = input.placeholder || input.value || '';\n }\n // Limit text length and clean it\n text = text.substring(0, 100).replace(/\\s+/g, ' ').trim();\n texts.push(text);\n current = current.parentElement;\n }\n // Build the chain string (reverse order so it goes from parent to child)\n const chain = elements.reverse().join(' > ');\n return {\n chain,\n href,\n elements: elements,\n texts: texts.reverse(),\n ids: ids.reverse()\n };\n }\n isSafeInputType(type) {\n // Don't capture values for sensitive input types\n const sensitiveTypes = ['password', 'email', 'tel', 'credit-card-number'];\n return !sensitiveTypes.includes(type.toLowerCase());\n }\n}\n\nclass JourniumAnalytics {\n constructor(config) {\n var _a, _b;\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureOptions = this.resolveAutocaptureOptions((_a = config.options) === null || _a === void 0 ? void 0 : _a.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureOptions);\n // Store resolved autocapture state for startAutocapture method\n this.autocaptureEnabled = ((_b = config.options) === null || _b === void 0 ? void 0 : _b.autocapture) !== false;\n }\n resolveAutocaptureOptions(autocapture) {\n if (autocapture === false) {\n return {\n captureClicks: false,\n captureFormSubmits: false,\n captureFormChanges: false,\n captureTextSelection: false,\n };\n }\n if (autocapture === true || autocapture === undefined) {\n return {}; // Use default configuration (enabled by default)\n }\n return autocapture;\n }\n track(event, properties) {\n this.client.track(event, properties);\n }\n identify(distinctId, attributes) {\n this.client.identify(distinctId, attributes);\n }\n reset() {\n this.client.reset();\n }\n capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutocapture() {\n // Check if automatic pageview tracking is enabled (defaults to true)\n const effectiveOptions = this.client.getEffectiveOptions();\n const autoTrackPageviews = effectiveOptions.autoTrackPageviews !== false;\n if (autoTrackPageviews) {\n this.pageviewTracker.startAutocapture();\n }\n if (this.autocaptureEnabled) {\n this.autocaptureTracker.start();\n }\n }\n stopAutocapture() {\n this.pageviewTracker.stopAutocapture();\n this.autocaptureTracker.stop();\n }\n async flush() {\n return this.client.flush();\n }\n getEffectiveOptions() {\n return this.client.getEffectiveOptions();\n }\n destroy() {\n this.pageviewTracker.stopAutocapture();\n this.autocaptureTracker.stop();\n this.client.destroy();\n }\n}\nconst init = (config) => {\n return new JourniumAnalytics(config);\n};\n\nexport { AutocaptureTracker, BrowserIdentityManager, JourniumAnalytics, JourniumClient, PageviewTracker, fetchRemoteOptions, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeOptions };\n//# sourceMappingURL=index.mjs.map\n",null,null],"names":["createContext","useState","useEffect","useContext","useCallback"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,MAAM,GAAG,kBAAkB,CAAC;AAClC;AACA,MAAM,IAAI,CAAC;AACX;AACA,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,OAAO,CAAC,KAAK,EAAE;AAC1B,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAA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AAA,OAAOA,iBAAW,CAChB,CAAC,UAAoC,KAAI;QACvC,IAAI,SAAS,EAAE;AACb,YAAA,SAAS,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;SACvC;AACH,KAAC,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;AACJ,EAAE;AAEW,MAAA,oBAAoB,GAAG,CAClC,eAAqC,EAAE,EACvC,UAAoC,KAClC;AACF,IAAA,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzCF,eAAS,CAAC,MAAK;QACb,aAAa,CAAC,UAAU,CAAC,CAAC;KAC3B,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;AACnD,EAAE;AAEK,MAAM,cAAc,GAAG,MAAK;AACjC,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,WAAW,EAAE,CAAC;AAEpC,IAAA,MAAM,gBAAgB,GAAGE,iBAAW,CAAC,MAAK;QACxC,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,gBAAgB,EAAE,CAAC;SAC9B;AACH,KAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AAEhB,IAAA,MAAM,eAAe,GAAGA,iBAAW,CAAC,MAAK;QACvC,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,eAAe,EAAE,CAAC;SAC7B;AACH,KAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AAEhB,IAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC;AAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -589,7 +589,7 @@ class BrowserIdentityManager {
589
589
  };
590
590
  this.saveIdentity();
591
591
  }
592
- identify(distinctId, attributes = {}) {
592
+ identify(distinctId, _attributes = {}) {
593
593
  if (!this.identity)
594
594
  return { previousDistinctId: null };
595
595
  const previousDistinctId = this.identity.distinct_id;
@@ -956,6 +956,10 @@ class PageviewTracker {
956
956
  this.client.track('$pageview', properties);
957
957
  this.lastUrl = currentUrl;
958
958
  }
959
+ /**
960
+ * Start automatic autocapture for pageviews
961
+ * @returns void
962
+ */
959
963
  startAutocapture() {
960
964
  this.capturePageview();
961
965
  if (typeof window !== 'undefined') {
@@ -976,6 +980,10 @@ class PageviewTracker {
976
980
  window.addEventListener('popstate', this.popStateHandler);
977
981
  }
978
982
  }
983
+ /**
984
+ * Stop automatic autocapture for pageviews
985
+ * @returns void
986
+ */
979
987
  stopAutocapture() {
980
988
  if (typeof window !== 'undefined') {
981
989
  // Restore original methods
@@ -1490,4 +1498,4 @@ const useAutocapture = () => {
1490
1498
  };
1491
1499
 
1492
1500
  export { AutocaptureTracker, BrowserIdentityManager, JourniumAnalytics, JourniumClient, JourniumProvider, PageviewTracker, fetchRemoteOptions, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeOptions, useAutoTrackPageview, useAutocapture, useIdentify, useJournium, useReset, useTrackEvent, useTrackPageview };
1493
- //# sourceMappingURL=index.esm.js.map
1501
+ //# sourceMappingURL=index.mjs.map