@journium/react 0.1.0-alpha.1 → 0.1.0-alpha.2

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/dist/index.esm.js CHANGED
@@ -1271,9 +1271,11 @@ class Journium {
1271
1271
  this.pageviewTracker = new PageviewTracker(this.client);
1272
1272
  const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);
1273
1273
  this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);
1274
+ // Store resolved autocapture state for startAutoCapture method
1275
+ this.autocaptureEnabled = config.autocapture !== false;
1274
1276
  }
1275
1277
  resolveAutocaptureConfig(autocapture) {
1276
- if (autocapture === false || autocapture === undefined) {
1278
+ if (autocapture === false) {
1277
1279
  return {
1278
1280
  captureClicks: false,
1279
1281
  captureFormSubmits: false,
@@ -1281,8 +1283,8 @@ class Journium {
1281
1283
  captureTextSelection: false,
1282
1284
  };
1283
1285
  }
1284
- if (autocapture === true) {
1285
- return {}; // Use default configuration
1286
+ if (autocapture === true || autocapture === undefined) {
1287
+ return {}; // Use default configuration (enabled by default)
1286
1288
  }
1287
1289
  return autocapture;
1288
1290
  }
@@ -1294,7 +1296,7 @@ class Journium {
1294
1296
  }
1295
1297
  startAutoCapture() {
1296
1298
  this.pageviewTracker.startAutoCapture();
1297
- if (this.config.autocapture) {
1299
+ if (this.autocaptureEnabled) {
1298
1300
  this.autocaptureTracker.start();
1299
1301
  }
1300
1302
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../journium-js/dist/index.esm.js","../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 fetchRemoteConfig = async (apiHost, token, configEndpoint, fetchFn) => {\n const endpoint = configEndpoint || '/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(token)}`;\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(`Config 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 config:', error);\n return null;\n }\n};\nconst mergeConfigs = (localConfig, remoteConfig) => {\n if (!remoteConfig) {\n return localConfig;\n }\n // Deep merge remote config into local config\n // Remote config takes precedence over local config\n const merged = { ...localConfig };\n // Handle primitive values\n Object.keys(remoteConfig).forEach(key => {\n if (remoteConfig[key] !== undefined && remoteConfig[key] !== null) {\n if (typeof remoteConfig[key] === 'object' && !Array.isArray(remoteConfig[key])) {\n // Deep merge objects\n merged[key] = {\n ...(merged[key] || {}),\n ...remoteConfig[key]\n };\n }\n else {\n // Override primitive values and arrays\n merged[key] = remoteConfig[key];\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, token) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with token pattern: jrnm_<token>_journium\n this.storageKey = token ? `jrnm_${token}_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 };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\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 };\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 };\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 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.token) {\n console.error('Journium: token is required but not provided. SDK will not function.');\n return;\n }\n if (!config.apiHost) {\n console.error('Journium: apiHost is required but not provided. SDK will not function.');\n return;\n }\n this.config = config;\n // Generate storage key for config caching\n this.configStorageKey = `jrnm_${config.token}_config`;\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.config.sessionTimeout, this.config.token);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initialize();\n }\n loadCachedConfig() {\n if (typeof window === 'undefined' || !window.localStorage) {\n return null;\n }\n try {\n const cached = window.localStorage.getItem(this.configStorageKey);\n return cached ? JSON.parse(cached) : null;\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedConfig(config) {\n if (typeof window === 'undefined' || !window.localStorage) {\n return;\n }\n try {\n window.localStorage.setItem(this.configStorageKey, JSON.stringify(config));\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n async initialize() {\n var _a, _b, _c;\n // Step 1: Load cached config from localStorage (synchronous)\n const cachedConfig = this.loadCachedConfig();\n // Step 2: Apply cached config immediately, or use defaults\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n if (cachedConfig) {\n // Use cached remote config\n this.config = {\n ...localOnlyConfig,\n ...cachedConfig,\n };\n if (this.config.debug) {\n console.log('Journium: Using cached configuration:', cachedConfig);\n }\n }\n else {\n // Use defaults for first-time initialization\n this.config = {\n ...this.config,\n debug: (_a = this.config.debug) !== null && _a !== void 0 ? _a : false,\n flushAt: (_b = this.config.flushAt) !== null && _b !== void 0 ? _b : 20,\n flushInterval: (_c = this.config.flushInterval) !== null && _c !== void 0 ? _c : 10000,\n };\n if (this.config.debug) {\n console.log('Journium: No cached config found, using defaults');\n }\n }\n // Update session timeout from config\n if (this.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.config.sessionTimeout);\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.config.flushInterval && this.config.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.config.debug) {\n console.log('Journium: Client initialized immediately with config:', this.config);\n }\n // Step 5: Fetch fresh config in background (don't await)\n if (this.config.token) {\n this.fetchAndCacheRemoteConfig();\n }\n }\n async fetchAndCacheRemoteConfig() {\n try {\n if (this.config.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteConfigResponse = await fetchRemoteConfig(this.config.apiHost, this.config.token, this.config.configEndpoint);\n if (remoteConfigResponse && remoteConfigResponse.success) {\n // Save to cache for next session\n this.saveCachedConfig(remoteConfigResponse.config);\n // Apply fresh config to current session\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n this.config = {\n ...localOnlyConfig,\n ...remoteConfigResponse.config,\n };\n // Update session timeout if provided in fresh config\n if (remoteConfigResponse.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(remoteConfigResponse.config.sessionTimeout);\n }\n if (this.config.debug) {\n console.log('Journium: Background remote configuration applied:', remoteConfigResponse.config);\n }\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Background remote config fetch failed:', error);\n }\n }\n }\n startFlushTimer() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n }\n this.flushTimer = window.setInterval(() => {\n this.flush();\n }, this.config.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.token}`,\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.config.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n track(event, properties = {}) {\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.token || !this.config.apiHost || !this.initialized) {\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 $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.token,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.config.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.config.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.token || !this.config.apiHost) {\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}\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 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 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, config = {}) {\n this.listeners = new Map();\n this.isActive = false;\n this.client = client;\n this.config = {\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 ...config,\n };\n }\n start() {\n if (!isBrowser() || this.isActive) {\n return;\n }\n this.isActive = true;\n if (this.config.captureClicks) {\n this.addClickListener();\n }\n if (this.config.captureFormSubmits) {\n this.addFormSubmitListener();\n }\n if (this.config.captureFormChanges) {\n this.addFormChangeListener();\n }\n if (this.config.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.config.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.config.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.config.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.config.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 Journium {\n constructor(config) {\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);\n }\n resolveAutocaptureConfig(autocapture) {\n if (autocapture === false || autocapture === undefined) {\n return {\n captureClicks: false,\n captureFormSubmits: false,\n captureFormChanges: false,\n captureTextSelection: false,\n };\n }\n if (autocapture === true) {\n return {}; // Use default configuration\n }\n return autocapture;\n }\n track(event, properties) {\n this.client.track(event, properties);\n }\n capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutoCapture() {\n this.pageviewTracker.startAutoCapture();\n if (this.config.autocapture) {\n this.autocaptureTracker.start();\n }\n }\n stopAutoCapture() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n }\n // Aliases for consistency (deprecated - use startAutoCapture)\n /** @deprecated Use startAutoCapture() instead */\n startAutocapture() {\n this.startAutoCapture();\n }\n /** @deprecated Use stopAutoCapture() instead */\n stopAutocapture() {\n this.stopAutoCapture();\n }\n async flush() {\n return this.client.flush();\n }\n destroy() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n this.client.destroy();\n }\n}\nconst init = (config) => {\n return new Journium(config);\n};\n\nexport { AutocaptureTracker, BrowserIdentityManager, Journium, JourniumClient, PageviewTracker, fetchRemoteConfig, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeConfigs };\n//# sourceMappingURL=index.esm.js.map\n",null,null],"names":[],"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,EAAE;AACjC,YAAY,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,CAAC;AACtD,SAAS;AACT,aAAa;AACb,YAAY,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AACnC,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AAC3D,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AACvC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;AACpC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;AACtC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;AACtC,YAAY,QAAQ,GAAG,CAAC;AACxB,YAAY,KAAK,GAAG,CAAC;AACrB,YAAY,OAAO,GAAG,CAAC;AACvB,Y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AC;AACnB,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../journium-js/dist/index.esm.js","../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 fetchRemoteConfig = async (apiHost, token, configEndpoint, fetchFn) => {\n const endpoint = configEndpoint || '/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(token)}`;\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(`Config 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 config:', error);\n return null;\n }\n};\nconst mergeConfigs = (localConfig, remoteConfig) => {\n if (!remoteConfig) {\n return localConfig;\n }\n // Deep merge remote config into local config\n // Remote config takes precedence over local config\n const merged = { ...localConfig };\n // Handle primitive values\n Object.keys(remoteConfig).forEach(key => {\n if (remoteConfig[key] !== undefined && remoteConfig[key] !== null) {\n if (typeof remoteConfig[key] === 'object' && !Array.isArray(remoteConfig[key])) {\n // Deep merge objects\n merged[key] = {\n ...(merged[key] || {}),\n ...remoteConfig[key]\n };\n }\n else {\n // Override primitive values and arrays\n merged[key] = remoteConfig[key];\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, token) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with token pattern: jrnm_<token>_journium\n this.storageKey = token ? `jrnm_${token}_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 };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\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 };\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 };\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 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.token) {\n console.error('Journium: token is required but not provided. SDK will not function.');\n return;\n }\n if (!config.apiHost) {\n console.error('Journium: apiHost is required but not provided. SDK will not function.');\n return;\n }\n this.config = config;\n // Generate storage key for config caching\n this.configStorageKey = `jrnm_${config.token}_config`;\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.config.sessionTimeout, this.config.token);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initialize();\n }\n loadCachedConfig() {\n if (typeof window === 'undefined' || !window.localStorage) {\n return null;\n }\n try {\n const cached = window.localStorage.getItem(this.configStorageKey);\n return cached ? JSON.parse(cached) : null;\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedConfig(config) {\n if (typeof window === 'undefined' || !window.localStorage) {\n return;\n }\n try {\n window.localStorage.setItem(this.configStorageKey, JSON.stringify(config));\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n async initialize() {\n var _a, _b, _c;\n // Step 1: Load cached config from localStorage (synchronous)\n const cachedConfig = this.loadCachedConfig();\n // Step 2: Apply cached config immediately, or use defaults\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n if (cachedConfig) {\n // Use cached remote config\n this.config = {\n ...localOnlyConfig,\n ...cachedConfig,\n };\n if (this.config.debug) {\n console.log('Journium: Using cached configuration:', cachedConfig);\n }\n }\n else {\n // Use defaults for first-time initialization\n this.config = {\n ...this.config,\n debug: (_a = this.config.debug) !== null && _a !== void 0 ? _a : false,\n flushAt: (_b = this.config.flushAt) !== null && _b !== void 0 ? _b : 20,\n flushInterval: (_c = this.config.flushInterval) !== null && _c !== void 0 ? _c : 10000,\n };\n if (this.config.debug) {\n console.log('Journium: No cached config found, using defaults');\n }\n }\n // Update session timeout from config\n if (this.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.config.sessionTimeout);\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.config.flushInterval && this.config.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.config.debug) {\n console.log('Journium: Client initialized immediately with config:', this.config);\n }\n // Step 5: Fetch fresh config in background (don't await)\n if (this.config.token) {\n this.fetchAndCacheRemoteConfig();\n }\n }\n async fetchAndCacheRemoteConfig() {\n try {\n if (this.config.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteConfigResponse = await fetchRemoteConfig(this.config.apiHost, this.config.token, this.config.configEndpoint);\n if (remoteConfigResponse && remoteConfigResponse.success) {\n // Save to cache for next session\n this.saveCachedConfig(remoteConfigResponse.config);\n // Apply fresh config to current session\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n this.config = {\n ...localOnlyConfig,\n ...remoteConfigResponse.config,\n };\n // Update session timeout if provided in fresh config\n if (remoteConfigResponse.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(remoteConfigResponse.config.sessionTimeout);\n }\n if (this.config.debug) {\n console.log('Journium: Background remote configuration applied:', remoteConfigResponse.config);\n }\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Background remote config fetch failed:', error);\n }\n }\n }\n startFlushTimer() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n }\n this.flushTimer = window.setInterval(() => {\n this.flush();\n }, this.config.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.token}`,\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.config.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n track(event, properties = {}) {\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.token || !this.config.apiHost || !this.initialized) {\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 $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.token,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.config.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.config.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.token || !this.config.apiHost) {\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}\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 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 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, config = {}) {\n this.listeners = new Map();\n this.isActive = false;\n this.client = client;\n this.config = {\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 ...config,\n };\n }\n start() {\n if (!isBrowser() || this.isActive) {\n return;\n }\n this.isActive = true;\n if (this.config.captureClicks) {\n this.addClickListener();\n }\n if (this.config.captureFormSubmits) {\n this.addFormSubmitListener();\n }\n if (this.config.captureFormChanges) {\n this.addFormChangeListener();\n }\n if (this.config.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.config.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.config.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.config.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.config.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 Journium {\n constructor(config) {\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);\n // Store resolved autocapture state for startAutoCapture method\n this.autocaptureEnabled = config.autocapture !== false;\n }\n resolveAutocaptureConfig(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 capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutoCapture() {\n this.pageviewTracker.startAutoCapture();\n if (this.autocaptureEnabled) {\n this.autocaptureTracker.start();\n }\n }\n stopAutoCapture() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n }\n // Aliases for consistency (deprecated - use startAutoCapture)\n /** @deprecated Use startAutoCapture() instead */\n startAutocapture() {\n this.startAutoCapture();\n }\n /** @deprecated Use stopAutoCapture() instead */\n stopAutocapture() {\n this.stopAutoCapture();\n }\n async flush() {\n return this.client.flush();\n }\n destroy() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n this.client.destroy();\n }\n}\nconst init = (config) => {\n return new Journium(config);\n};\n\nexport { AutocaptureTracker, BrowserIdentityManager, Journium, JourniumClient, PageviewTracker, fetchRemoteConfig, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeConfigs };\n//# sourceMappingURL=index.esm.js.map\n",null,null],"names":[],"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,EAAE;AACjC,YAAY,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,CAAC;AACtD,SAAS;AACT,aAAa;AACb,YAAY,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AACnC,SAAS;A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C,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,eAAe,EAAE,CAAC;SAC5B;AACH,KAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEf,IAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC;AAC/C,EAAE;AAEW,MAAA,kBAAkB,GAAG,CAChC,UAAmB,IAAI,EACvB,MAAmC,KACjC;AACF,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IAEnC,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,QAAQ,IAAI,OAAO,EAAE;;YAEvB,QAAQ,CAAC,gBAAgB,EAAE,CAAC;AAC5B,YAAA,OAAO,MAAK;gBACV,QAAQ,CAAC,eAAe,EAAE,CAAC;AAC7B,aAAC,CAAC;SACH;AACD,QAAA,OAAO,SAAS,CAAC;AACnB,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B;;;;"}
package/dist/index.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- var React = require('react');
1
+ import React, { createContext, useRef, useEffect, useContext, useCallback } from 'react';
4
2
 
5
3
  /**
6
4
  * uuidv7: A JavaScript implementation of UUID version 7
@@ -1273,9 +1271,11 @@ class Journium {
1273
1271
  this.pageviewTracker = new PageviewTracker(this.client);
1274
1272
  const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);
1275
1273
  this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);
1274
+ // Store resolved autocapture state for startAutoCapture method
1275
+ this.autocaptureEnabled = config.autocapture !== false;
1276
1276
  }
1277
1277
  resolveAutocaptureConfig(autocapture) {
1278
- if (autocapture === false || autocapture === undefined) {
1278
+ if (autocapture === false) {
1279
1279
  return {
1280
1280
  captureClicks: false,
1281
1281
  captureFormSubmits: false,
@@ -1283,8 +1283,8 @@ class Journium {
1283
1283
  captureTextSelection: false,
1284
1284
  };
1285
1285
  }
1286
- if (autocapture === true) {
1287
- return {}; // Use default configuration
1286
+ if (autocapture === true || autocapture === undefined) {
1287
+ return {}; // Use default configuration (enabled by default)
1288
1288
  }
1289
1289
  return autocapture;
1290
1290
  }
@@ -1296,7 +1296,7 @@ class Journium {
1296
1296
  }
1297
1297
  startAutoCapture() {
1298
1298
  this.pageviewTracker.startAutoCapture();
1299
- if (this.config.autocapture) {
1299
+ if (this.autocaptureEnabled) {
1300
1300
  this.autocaptureTracker.start();
1301
1301
  }
1302
1302
  }
@@ -1326,10 +1326,10 @@ const init = (config) => {
1326
1326
  return new Journium(config);
1327
1327
  };
1328
1328
 
1329
- const JourniumContext = React.createContext({ journium: null });
1329
+ const JourniumContext = createContext({ journium: null });
1330
1330
  const JourniumProvider = ({ children, config, autoCapture = true, }) => {
1331
- const journiumRef = React.useRef(null);
1332
- React.useEffect(() => {
1331
+ const journiumRef = useRef(null);
1332
+ useEffect(() => {
1333
1333
  if (!journiumRef.current) {
1334
1334
  journiumRef.current = new Journium(config);
1335
1335
  if (autoCapture) {
@@ -1348,7 +1348,7 @@ const JourniumProvider = ({ children, config, autoCapture = true, }) => {
1348
1348
  return (React.createElement(JourniumContext.Provider, { value: { journium: journiumRef.current } }, children));
1349
1349
  };
1350
1350
  const useJournium = () => {
1351
- const context = React.useContext(JourniumContext);
1351
+ const context = useContext(JourniumContext);
1352
1352
  if (!context) {
1353
1353
  throw new Error('useJournium must be used within a JourniumProvider');
1354
1354
  }
@@ -1357,7 +1357,7 @@ const useJournium = () => {
1357
1357
 
1358
1358
  const useTrackEvent = () => {
1359
1359
  const { journium } = useJournium();
1360
- return React.useCallback((event, properties) => {
1360
+ return useCallback((event, properties) => {
1361
1361
  if (journium) {
1362
1362
  journium.track(event, properties);
1363
1363
  }
@@ -1365,7 +1365,7 @@ const useTrackEvent = () => {
1365
1365
  };
1366
1366
  const useTrackPageview = () => {
1367
1367
  const { journium } = useJournium();
1368
- return React.useCallback((properties) => {
1368
+ return useCallback((properties) => {
1369
1369
  if (journium) {
1370
1370
  journium.capturePageview(properties);
1371
1371
  }
@@ -1373,18 +1373,18 @@ const useTrackPageview = () => {
1373
1373
  };
1374
1374
  const useAutoTrackPageview = (dependencies = [], properties) => {
1375
1375
  const trackPageview = useTrackPageview();
1376
- React.useEffect(() => {
1376
+ useEffect(() => {
1377
1377
  trackPageview(properties);
1378
1378
  }, dependencies);
1379
1379
  };
1380
1380
  const useAutocapture = () => {
1381
1381
  const { journium } = useJournium();
1382
- const startAutocapture = React.useCallback(() => {
1382
+ const startAutocapture = useCallback(() => {
1383
1383
  if (journium) {
1384
1384
  journium.startAutocapture();
1385
1385
  }
1386
1386
  }, [journium]);
1387
- const stopAutocapture = React.useCallback(() => {
1387
+ const stopAutocapture = useCallback(() => {
1388
1388
  if (journium) {
1389
1389
  journium.stopAutocapture();
1390
1390
  }
@@ -1393,7 +1393,7 @@ const useAutocapture = () => {
1393
1393
  };
1394
1394
  const useAutoTrackClicks = (enabled = true, config) => {
1395
1395
  const { journium } = useJournium();
1396
- React.useEffect(() => {
1396
+ useEffect(() => {
1397
1397
  if (journium && enabled) {
1398
1398
  // Use startAutoCapture for consistency (includes both pageview + clicks)
1399
1399
  journium.startAutoCapture();
@@ -1405,27 +1405,5 @@ const useAutoTrackClicks = (enabled = true, config) => {
1405
1405
  }, [journium, enabled]);
1406
1406
  };
1407
1407
 
1408
- exports.AutocaptureTracker = AutocaptureTracker;
1409
- exports.BrowserIdentityManager = BrowserIdentityManager;
1410
- exports.Journium = Journium;
1411
- exports.JourniumClient = JourniumClient;
1412
- exports.JourniumProvider = JourniumProvider;
1413
- exports.PageviewTracker = PageviewTracker;
1414
- exports.fetchRemoteConfig = fetchRemoteConfig;
1415
- exports.generateId = generateId;
1416
- exports.generateUuidv7 = generateUuidv7;
1417
- exports.getCurrentTimestamp = getCurrentTimestamp;
1418
- exports.getCurrentUrl = getCurrentUrl;
1419
- exports.getPageTitle = getPageTitle;
1420
- exports.getReferrer = getReferrer;
1421
- exports.init = init;
1422
- exports.isBrowser = isBrowser;
1423
- exports.isNode = isNode;
1424
- exports.mergeConfigs = mergeConfigs;
1425
- exports.useAutoTrackClicks = useAutoTrackClicks;
1426
- exports.useAutoTrackPageview = useAutoTrackPageview;
1427
- exports.useAutocapture = useAutocapture;
1428
- exports.useJournium = useJournium;
1429
- exports.useTrackEvent = useTrackEvent;
1430
- exports.useTrackPageview = useTrackPageview;
1408
+ export { AutocaptureTracker, BrowserIdentityManager, Journium, JourniumClient, JourniumProvider, PageviewTracker, fetchRemoteConfig, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeConfigs, useAutoTrackClicks, useAutoTrackPageview, useAutocapture, useJournium, useTrackEvent, useTrackPageview };
1431
1409
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../journium-js/dist/index.esm.js","../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 fetchRemoteConfig = async (apiHost, token, configEndpoint, fetchFn) => {\n const endpoint = configEndpoint || '/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(token)}`;\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(`Config 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 config:', error);\n return null;\n }\n};\nconst mergeConfigs = (localConfig, remoteConfig) => {\n if (!remoteConfig) {\n return localConfig;\n }\n // Deep merge remote config into local config\n // Remote config takes precedence over local config\n const merged = { ...localConfig };\n // Handle primitive values\n Object.keys(remoteConfig).forEach(key => {\n if (remoteConfig[key] !== undefined && remoteConfig[key] !== null) {\n if (typeof remoteConfig[key] === 'object' && !Array.isArray(remoteConfig[key])) {\n // Deep merge objects\n merged[key] = {\n ...(merged[key] || {}),\n ...remoteConfig[key]\n };\n }\n else {\n // Override primitive values and arrays\n merged[key] = remoteConfig[key];\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, token) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with token pattern: jrnm_<token>_journium\n this.storageKey = token ? `jrnm_${token}_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 };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\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 };\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 };\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 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.token) {\n console.error('Journium: token is required but not provided. SDK will not function.');\n return;\n }\n if (!config.apiHost) {\n console.error('Journium: apiHost is required but not provided. SDK will not function.');\n return;\n }\n this.config = config;\n // Generate storage key for config caching\n this.configStorageKey = `jrnm_${config.token}_config`;\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.config.sessionTimeout, this.config.token);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initialize();\n }\n loadCachedConfig() {\n if (typeof window === 'undefined' || !window.localStorage) {\n return null;\n }\n try {\n const cached = window.localStorage.getItem(this.configStorageKey);\n return cached ? JSON.parse(cached) : null;\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedConfig(config) {\n if (typeof window === 'undefined' || !window.localStorage) {\n return;\n }\n try {\n window.localStorage.setItem(this.configStorageKey, JSON.stringify(config));\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n async initialize() {\n var _a, _b, _c;\n // Step 1: Load cached config from localStorage (synchronous)\n const cachedConfig = this.loadCachedConfig();\n // Step 2: Apply cached config immediately, or use defaults\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n if (cachedConfig) {\n // Use cached remote config\n this.config = {\n ...localOnlyConfig,\n ...cachedConfig,\n };\n if (this.config.debug) {\n console.log('Journium: Using cached configuration:', cachedConfig);\n }\n }\n else {\n // Use defaults for first-time initialization\n this.config = {\n ...this.config,\n debug: (_a = this.config.debug) !== null && _a !== void 0 ? _a : false,\n flushAt: (_b = this.config.flushAt) !== null && _b !== void 0 ? _b : 20,\n flushInterval: (_c = this.config.flushInterval) !== null && _c !== void 0 ? _c : 10000,\n };\n if (this.config.debug) {\n console.log('Journium: No cached config found, using defaults');\n }\n }\n // Update session timeout from config\n if (this.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.config.sessionTimeout);\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.config.flushInterval && this.config.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.config.debug) {\n console.log('Journium: Client initialized immediately with config:', this.config);\n }\n // Step 5: Fetch fresh config in background (don't await)\n if (this.config.token) {\n this.fetchAndCacheRemoteConfig();\n }\n }\n async fetchAndCacheRemoteConfig() {\n try {\n if (this.config.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteConfigResponse = await fetchRemoteConfig(this.config.apiHost, this.config.token, this.config.configEndpoint);\n if (remoteConfigResponse && remoteConfigResponse.success) {\n // Save to cache for next session\n this.saveCachedConfig(remoteConfigResponse.config);\n // Apply fresh config to current session\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n this.config = {\n ...localOnlyConfig,\n ...remoteConfigResponse.config,\n };\n // Update session timeout if provided in fresh config\n if (remoteConfigResponse.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(remoteConfigResponse.config.sessionTimeout);\n }\n if (this.config.debug) {\n console.log('Journium: Background remote configuration applied:', remoteConfigResponse.config);\n }\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Background remote config fetch failed:', error);\n }\n }\n }\n startFlushTimer() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n }\n this.flushTimer = window.setInterval(() => {\n this.flush();\n }, this.config.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.token}`,\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.config.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n track(event, properties = {}) {\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.token || !this.config.apiHost || !this.initialized) {\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 $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.token,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.config.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.config.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.token || !this.config.apiHost) {\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}\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 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 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, config = {}) {\n this.listeners = new Map();\n this.isActive = false;\n this.client = client;\n this.config = {\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 ...config,\n };\n }\n start() {\n if (!isBrowser() || this.isActive) {\n return;\n }\n this.isActive = true;\n if (this.config.captureClicks) {\n this.addClickListener();\n }\n if (this.config.captureFormSubmits) {\n this.addFormSubmitListener();\n }\n if (this.config.captureFormChanges) {\n this.addFormChangeListener();\n }\n if (this.config.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.config.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.config.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.config.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.config.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 Journium {\n constructor(config) {\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);\n }\n resolveAutocaptureConfig(autocapture) {\n if (autocapture === false || autocapture === undefined) {\n return {\n captureClicks: false,\n captureFormSubmits: false,\n captureFormChanges: false,\n captureTextSelection: false,\n };\n }\n if (autocapture === true) {\n return {}; // Use default configuration\n }\n return autocapture;\n }\n track(event, properties) {\n this.client.track(event, properties);\n }\n capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutoCapture() {\n this.pageviewTracker.startAutoCapture();\n if (this.config.autocapture) {\n this.autocaptureTracker.start();\n }\n }\n stopAutoCapture() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n }\n // Aliases for consistency (deprecated - use startAutoCapture)\n /** @deprecated Use startAutoCapture() instead */\n startAutocapture() {\n this.startAutoCapture();\n }\n /** @deprecated Use stopAutoCapture() instead */\n stopAutocapture() {\n this.stopAutoCapture();\n }\n async flush() {\n return this.client.flush();\n }\n destroy() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n this.client.destroy();\n }\n}\nconst init = (config) => {\n return new Journium(config);\n};\n\nexport { AutocaptureTracker, BrowserIdentityManager, Journium, JourniumClient, PageviewTracker, fetchRemoteConfig, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeConfigs };\n//# sourceMappingURL=index.esm.js.map\n",null,null],"names":["createContext","useRef","useEffect","useContext","useCallback"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,MAAM,GAAG,kBAAkB,CAAC;AAClC;AACA,MAAM,I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AAC,CAAC;AACnB,EAAE;AAEK,MAAM,cAAc,GAAG,MAAK;AACjC,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;AAEnC,IAAA,MAAM,gBAAgB,GAAGE,iBAAW,CAAC,MAAK;QACxC,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,gBAAgB,EAAE,CAAC;SAC7B;AACH,KAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEf,IAAA,MAAM,eAAe,GAAGA,iBAAW,CAAC,MAAK;QACvC,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,eAAe,EAAE,CAAC;SAC5B;AACH,KAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEf,IAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC;AAC/C,EAAE;AAEW,MAAA,kBAAkB,GAAG,CAChC,UAAmB,IAAI,EACvB,MAAmC,KACjC;AACF,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IAEnCF,eAAS,CAAC,MAAK;AACb,QAAA,IAAI,QAAQ,IAAI,OAAO,EAAE;;YAEvB,QAAQ,CAAC,gBAAgB,EAAE,CAAC;AAC5B,YAAA,OAAO,MAAK;gBACV,QAAQ,CAAC,eAAe,EAAE,CAAC;AAC7B,aAAC,CAAC;SACH;AACD,QAAA,OAAO,SAAS,CAAC;AACnB,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../journium-js/dist/index.esm.js","../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 fetchRemoteConfig = async (apiHost, token, configEndpoint, fetchFn) => {\n const endpoint = configEndpoint || '/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(token)}`;\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(`Config 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 config:', error);\n return null;\n }\n};\nconst mergeConfigs = (localConfig, remoteConfig) => {\n if (!remoteConfig) {\n return localConfig;\n }\n // Deep merge remote config into local config\n // Remote config takes precedence over local config\n const merged = { ...localConfig };\n // Handle primitive values\n Object.keys(remoteConfig).forEach(key => {\n if (remoteConfig[key] !== undefined && remoteConfig[key] !== null) {\n if (typeof remoteConfig[key] === 'object' && !Array.isArray(remoteConfig[key])) {\n // Deep merge objects\n merged[key] = {\n ...(merged[key] || {}),\n ...remoteConfig[key]\n };\n }\n else {\n // Override primitive values and arrays\n merged[key] = remoteConfig[key];\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, token) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with token pattern: jrnm_<token>_journium\n this.storageKey = token ? `jrnm_${token}_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 };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\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 };\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 };\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 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.token) {\n console.error('Journium: token is required but not provided. SDK will not function.');\n return;\n }\n if (!config.apiHost) {\n console.error('Journium: apiHost is required but not provided. SDK will not function.');\n return;\n }\n this.config = config;\n // Generate storage key for config caching\n this.configStorageKey = `jrnm_${config.token}_config`;\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.config.sessionTimeout, this.config.token);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initialize();\n }\n loadCachedConfig() {\n if (typeof window === 'undefined' || !window.localStorage) {\n return null;\n }\n try {\n const cached = window.localStorage.getItem(this.configStorageKey);\n return cached ? JSON.parse(cached) : null;\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedConfig(config) {\n if (typeof window === 'undefined' || !window.localStorage) {\n return;\n }\n try {\n window.localStorage.setItem(this.configStorageKey, JSON.stringify(config));\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n async initialize() {\n var _a, _b, _c;\n // Step 1: Load cached config from localStorage (synchronous)\n const cachedConfig = this.loadCachedConfig();\n // Step 2: Apply cached config immediately, or use defaults\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n if (cachedConfig) {\n // Use cached remote config\n this.config = {\n ...localOnlyConfig,\n ...cachedConfig,\n };\n if (this.config.debug) {\n console.log('Journium: Using cached configuration:', cachedConfig);\n }\n }\n else {\n // Use defaults for first-time initialization\n this.config = {\n ...this.config,\n debug: (_a = this.config.debug) !== null && _a !== void 0 ? _a : false,\n flushAt: (_b = this.config.flushAt) !== null && _b !== void 0 ? _b : 20,\n flushInterval: (_c = this.config.flushInterval) !== null && _c !== void 0 ? _c : 10000,\n };\n if (this.config.debug) {\n console.log('Journium: No cached config found, using defaults');\n }\n }\n // Update session timeout from config\n if (this.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.config.sessionTimeout);\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.config.flushInterval && this.config.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.config.debug) {\n console.log('Journium: Client initialized immediately with config:', this.config);\n }\n // Step 5: Fetch fresh config in background (don't await)\n if (this.config.token) {\n this.fetchAndCacheRemoteConfig();\n }\n }\n async fetchAndCacheRemoteConfig() {\n try {\n if (this.config.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteConfigResponse = await fetchRemoteConfig(this.config.apiHost, this.config.token, this.config.configEndpoint);\n if (remoteConfigResponse && remoteConfigResponse.success) {\n // Save to cache for next session\n this.saveCachedConfig(remoteConfigResponse.config);\n // Apply fresh config to current session\n const localOnlyConfig = {\n apiHost: this.config.apiHost,\n token: this.config.token,\n configEndpoint: this.config.configEndpoint,\n };\n this.config = {\n ...localOnlyConfig,\n ...remoteConfigResponse.config,\n };\n // Update session timeout if provided in fresh config\n if (remoteConfigResponse.config.sessionTimeout) {\n this.identityManager.updateSessionTimeout(remoteConfigResponse.config.sessionTimeout);\n }\n if (this.config.debug) {\n console.log('Journium: Background remote configuration applied:', remoteConfigResponse.config);\n }\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.warn('Journium: Background remote config fetch failed:', error);\n }\n }\n }\n startFlushTimer() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n }\n this.flushTimer = window.setInterval(() => {\n this.flush();\n }, this.config.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.token}`,\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.config.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.config.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n track(event, properties = {}) {\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.token || !this.config.apiHost || !this.initialized) {\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 $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.token,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.config.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.config.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.token || !this.config.apiHost) {\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}\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 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 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, config = {}) {\n this.listeners = new Map();\n this.isActive = false;\n this.client = client;\n this.config = {\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 ...config,\n };\n }\n start() {\n if (!isBrowser() || this.isActive) {\n return;\n }\n this.isActive = true;\n if (this.config.captureClicks) {\n this.addClickListener();\n }\n if (this.config.captureFormSubmits) {\n this.addFormSubmitListener();\n }\n if (this.config.captureFormChanges) {\n this.addFormChangeListener();\n }\n if (this.config.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.config.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.config.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.config.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.config.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 Journium {\n constructor(config) {\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureConfig = this.resolveAutocaptureConfig(config.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);\n // Store resolved autocapture state for startAutoCapture method\n this.autocaptureEnabled = config.autocapture !== false;\n }\n resolveAutocaptureConfig(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 capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutoCapture() {\n this.pageviewTracker.startAutoCapture();\n if (this.autocaptureEnabled) {\n this.autocaptureTracker.start();\n }\n }\n stopAutoCapture() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n }\n // Aliases for consistency (deprecated - use startAutoCapture)\n /** @deprecated Use startAutoCapture() instead */\n startAutocapture() {\n this.startAutoCapture();\n }\n /** @deprecated Use stopAutoCapture() instead */\n stopAutocapture() {\n this.stopAutoCapture();\n }\n async flush() {\n return this.client.flush();\n }\n destroy() {\n this.pageviewTracker.stopAutoCapture();\n this.autocaptureTracker.stop();\n this.client.destroy();\n }\n}\nconst init = (config) => {\n return new Journium(config);\n};\n\nexport { AutocaptureTracker, BrowserIdentityManager, Journium, JourniumClient, PageviewTracker, fetchRemoteConfig, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeConfigs };\n//# sourceMappingURL=index.esm.js.map\n",null,null],"names":[],"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,EAAE;AACjC,YAAY,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,CAAC;AACtD,SAAS;AACT,aAAa;AACb,YAAY,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AACnC,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AAC3D,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AACvC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;AACpC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;AACtC,YAAY,CAAC,MAAM,CAAC,S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AACb,QAAA,IAAI,QAAQ,IAAI,OAAO,EAAE;;YAEvB,QAAQ,CAAC,gBAAgB,EAAE,CAAC;AAC5B,YAAA,OAAO,MAAK;gBACV,QAAQ,CAAC,eAAe,EAAE,CAAC;AAC7B,aAAC,CAAC;SACH;AACD,QAAA,OAAO,SAAS,CAAC;AACnB,KAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@journium/react",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Journium React integration - Provider, hooks, and components for React applications",
@@ -26,8 +26,8 @@
26
26
  "clean": "rm -rf dist"
27
27
  },
28
28
  "dependencies": {
29
- "journium-js": "^0.1.0-alpha.5",
30
- "@journium/core": "^0.1.0-alpha.1"
29
+ "journium-js": "0.1.0-alpha.6",
30
+ "@journium/core": "0.1.0-alpha.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0"
package/readme.md CHANGED
@@ -28,9 +28,12 @@ import App from './App';
28
28
  function Root() {
29
29
  return (
30
30
  <JourniumProvider
31
- token="your-journium-token"
32
- apiHost="https://your-journium-instance.com"
33
- autocapture={true}
31
+ config={{
32
+ token: "your-journium-token",
33
+ apiHost: "https://your-journium-instance.com"
34
+ // autocapture: true by default - no need to specify unless disabling
35
+ }}
36
+ autoCapture={true} // Enables auto-pageview and triggers autocapture
34
37
  >
35
38
  <App />
36
39
  </JourniumProvider>