@journium/react 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/readme.md CHANGED
@@ -27,6 +27,19 @@ yarn add @journium/react
27
27
 
28
28
  ## Basic Setup
29
29
 
30
+ ### Environment Variables
31
+ First, create a `.env.local` file in your project root:
32
+
33
+ **Note:** For CRA projects, use `REACT_APP_` prefix:
34
+ ```env
35
+ REACT_APP_JOURNIUM_PUBLISHABLE_KEY=your-actual-publishable-key-here
36
+ ```
37
+
38
+ **Note:** For Vite projects, use `VITE_` prefix:
39
+ ```env
40
+ VITE_JOURNIUM_PUBLISHABLE_KEY=your-actual-publishable-key-here
41
+ ```
42
+
30
43
  ### Initialize Journium
31
44
  Wrap your app with the `JourniumProvider` to enable analytics throughout your React application.
32
45
 
@@ -39,7 +52,7 @@ function Root() {
39
52
  return (
40
53
  <JourniumProvider
41
54
  config={{
42
- publishableKey: 'your-journium-publishable-key'
55
+ publishableKey: process.env.REACT_APP_JOURNIUM_PUBLISHABLE_KEY!
43
56
  }}
44
57
  >
45
58
  <App />
@@ -50,6 +63,38 @@ function Root() {
50
63
  export default Root;
51
64
  ```
52
65
 
66
+ **Vite Example:**
67
+ ```jsx
68
+ // main.tsx
69
+ import React from 'react';
70
+ import ReactDOM from 'react-dom/client';
71
+ import { JourniumProvider } from '@journium/react';
72
+ import App from './App';
73
+
74
+ ReactDOM.createRoot(document.getElementById('root')!).render(
75
+ <React.StrictMode>
76
+ <JourniumProvider
77
+ config={{
78
+ publishableKey: import.meta.env.VITE_JOURNIUM_PUBLISHABLE_KEY!
79
+ }}
80
+ >
81
+ <App />
82
+ </JourniumProvider>
83
+ </React.StrictMode>
84
+ );
85
+ ```
86
+
87
+ **Vite .env file:**
88
+ ```env
89
+ VITE_JOURNIUM_PUBLISHABLE_KEY=your-actual-publishable-key-here
90
+ ```
91
+
92
+ **For Next.js applications, use the dedicated [`@journium/nextjs`](../journium-nextjs) package instead.**
93
+
94
+ ### API Classes and Types
95
+
96
+ The main analytics class is `JourniumAnalytics`, available through the React hooks and context.
97
+
53
98
  ### Track a Custom Event
54
99
  Use the `useTrackEvent` hook to track custom events from any component.
55
100
 
@@ -119,9 +164,9 @@ function LogoutButton() {
119
164
  ```
120
165
 
121
166
  ## Advanced Setup
122
-
123
167
  You can override default configurations and control autocapture:
124
168
 
169
+ **React/CRA Example:**
125
170
  ```jsx
126
171
  import React from 'react';
127
172
  import { JourniumProvider } from '@journium/react';
@@ -131,13 +176,14 @@ function Root() {
131
176
  return (
132
177
  <JourniumProvider
133
178
  config={{
134
- publishableKey: 'your-journium-publishable-key',
135
- apiHost: 'https://your-custom-instance.com', // Optional: defaults to 'https://events.journium.app'
136
- config: {
137
- debug: true, // Enable debug logging
179
+ publishableKey: process.env.REACT_APP_JOURNIUM_PUBLISHABLE_KEY!,
180
+ apiHost: 'https://events.journium.app',
181
+ options: {
182
+ debug: process.env.REACT_APP_JOURNIUM_DEBUG === 'true',
138
183
  flushAt: 5, // Send events after N events
139
184
  flushInterval: 10000, // Send events every N milliseconds
140
185
  sessionTimeout: 1800000, // Session timeout (30 minutes)
186
+ autoTrackPageviews: true, // Automatically track pageview events (default: true)
141
187
  autocapture: { // Configure automatic event capture
142
188
  captureClicks: true, // Track click events
143
189
  captureFormSubmits: true, // Track form submissions
@@ -156,156 +202,167 @@ function Root() {
156
202
  export default Root;
157
203
  ```
158
204
 
159
- ## API Reference
205
+ **Vite Example:**
206
+ ```jsx
207
+ import React from 'react';
208
+ import { JourniumProvider } from '@journium/react';
209
+ import App from './App';
160
210
 
161
- ### `<JourniumProvider>`
162
- Provider component to initialize Journium throughout your React app.
211
+ function Root() {
212
+ return (
213
+ <JourniumProvider
214
+ config={{
215
+ publishableKey: import.meta.env.VITE_JOURNIUM_PUBLISHABLE_KEY!,
216
+ apiHost: 'https://events.journium.app',
217
+ options: {
218
+ debug: import.meta.env.VITE_JOURNIUM_DEBUG === 'true',
219
+ flushAt: 5,
220
+ flushInterval: 10000,
221
+ sessionTimeout: 1800000,
222
+ autoTrackPageviews: true,
223
+ autocapture: {
224
+ captureClicks: true,
225
+ captureFormSubmits: true,
226
+ captureFormChanges: false,
227
+ ignoreClasses: ['no-track', 'sensitive'],
228
+ ignoreElements: ['input[type="password"]']
229
+ }
230
+ }
231
+ }}
232
+ >
233
+ <App />
234
+ </JourniumProvider>
235
+ );
236
+ }
163
237
 
164
- ```jsx
165
- <JourniumProvider
166
- config={{
167
- publishableKey: 'your-journium-publishable-key',
168
- apiHost: 'https://events.journium.app', // Optional
169
- config: { /* optional local config */ }
170
- }}
171
- >
172
- <App />
173
- </JourniumProvider>
238
+ export default Root;
174
239
  ```
175
240
 
176
- ### `useTrackEvent()`
177
- Hook for tracking custom events with optional properties.
178
-
179
- ```jsx
180
- import { useTrackEvent } from '@journium/react';
241
+ ## API Reference
181
242
 
182
- function Component() {
183
- const trackEvent = useTrackEvent();
243
+ ### Components
184
244
 
185
- const handlePurchase = () => {
186
- trackEvent('purchase_completed', {
187
- product_id: 'prod_123',
188
- price: 29.99,
189
- currency: 'USD'
190
- });
191
- };
245
+ #### `<JourniumProvider>`
246
+ Provider component that initializes Journium analytics throughout your React application.
192
247
 
193
- return <button onClick={handlePurchase}>Buy Now</button>;
194
- }
195
- ```
248
+ **Props:**
249
+ - `config: JourniumConfig` - Configuration object for Journium
250
+ - `publishableKey: string` - Your Journium publishable key (required)
251
+ - `apiHost?: string` - Custom API endpoint (optional, defaults to 'https://events.journium.app')
252
+ - `options?: JourniumLocalOptions` - Local configuration options (optional)
253
+ - `children: ReactNode` - React children to wrap
196
254
 
197
- ### `useIdentify()`
198
- Hook for identifying users on login or signup.
255
+ ### Hooks
199
256
 
200
- ```jsx
201
- import { useIdentify } from '@journium/react';
257
+ #### `useTrackEvent()`
258
+ Returns a function to track custom events.
202
259
 
203
- function Component() {
204
- const identify = useIdentify();
260
+ **Returns:** `(event: string, properties?: Record<string, unknown>) => void`
261
+ - `event: string` - Event name to track
262
+ - `properties?: Record<string, unknown>` - Optional event properties
205
263
 
206
- const handleLogin = (userId, userAttributes) => {
207
- identify(userId, userAttributes);
208
- };
264
+ #### `useIdentify()`
265
+ Returns a function to identify users.
209
266
 
210
- return <LoginForm onLogin={handleLogin} />;
211
- }
212
- ```
267
+ **Returns:** `(distinctId: string, attributes?: Record<string, unknown>) => void`
268
+ - `distinctId: string` - Unique user identifier
269
+ - `attributes?: Record<string, unknown>` - Optional user attributes
213
270
 
214
- ### `useReset()`
215
- Hook for resetting user identity on logout.
271
+ #### `useReset()`
272
+ Returns a function to reset user identity (typically on logout).
216
273
 
217
- ```jsx
218
- import { useReset } from '@journium/react';
274
+ **Returns:** `() => void`
219
275
 
220
- function Component() {
221
- const reset = useReset();
276
+ #### `useTrackPageview()`
277
+ Returns a function to manually track pageview events.
222
278
 
223
- const handleLogout = () => {
224
- reset();
225
- };
279
+ **Returns:** `(properties?: Record<string, unknown>) => void`
280
+ - `properties?: Record<string, unknown>` - Optional pageview properties
226
281
 
227
- return <button onClick={handleLogout}>Logout</button>;
228
- }
229
- ```
282
+ #### `useAutoTrackPageview()`
283
+ Automatically tracks pageview when component mounts or dependencies change.
230
284
 
231
- ### `useTrackPageview()`
232
- Hook for manual pageview tracking.
285
+ **Parameters:**
286
+ - `dependencies?: React.DependencyList` - Dependencies to watch for changes (defaults to empty array)
287
+ - `properties?: Record<string, unknown>` - Optional pageview properties
233
288
 
234
- ```jsx
235
- import { useTrackPageview } from '@journium/react';
289
+ **Returns:** `void`
236
290
 
237
- function Component() {
238
- const trackPageview = useTrackPageview();
291
+ #### `useAutocapture()`
292
+ Returns functions to control automatic event capture.
239
293
 
240
- const handleSpecialPageview = () => {
241
- trackPageview({
242
- page_type: 'modal',
243
- content_type: 'pricing_calculator'
244
- });
245
- };
294
+ **Returns:** `{ startAutocapture: () => void, stopAutocapture: () => void }`
295
+ - `startAutocapture()` - Enable automatic event capture
296
+ - `stopAutocapture()` - Disable automatic event capture
246
297
 
247
- return <button onClick={handleSpecialPageview}>Track Modal View</button>;
248
- }
249
- ```
298
+ #### `useJournium()`
299
+ Returns the Journium context for advanced use cases.
250
300
 
251
- ### `useAutoTrackPageview()`
252
- Hook for automatic pageview tracking when components mount or dependencies change.
301
+ **Returns:** `JourniumContextValue`
302
+ - `analytics: JourniumAnalytics | null` - The analytics instance
303
+ - `config: JourniumConfig | null` - The configuration object
304
+ - `effectiveOptions: JourniumLocalOptions | null` - The effective options (merged local and remote)
253
305
 
254
- ```jsx
255
- import { useAutoTrackPageview } from '@journium/react';
306
+ ### Types
256
307
 
257
- function ProductPage({ productId, category }) {
258
- // Tracks pageview when component mounts or productId changes
259
- useAutoTrackPageview([productId], {
260
- page_type: 'product_detail',
261
- product_id: productId,
262
- category: category
263
- });
308
+ #### `JourniumConfig`
309
+ Configuration object for initializing Journium.
264
310
 
265
- return <div>Product {productId}</div>;
311
+ ```typescript
312
+ interface JourniumConfig {
313
+ publishableKey: string;
314
+ apiHost?: string;
315
+ options?: JourniumLocalOptions;
266
316
  }
267
317
  ```
268
318
 
269
- ### `useAutocapture()`
270
- Hook for controlling automatic event capture.
271
-
272
- ```jsx
273
- import { useAutocapture } from '@journium/react';
274
-
275
- function ConsentBanner() {
276
- const { startAutocapture, stopAutocapture } = useAutocapture();
277
-
278
- const handleAccept = () => {
279
- startAutocapture();
319
+ #### `JourniumLocalOptions`
320
+ Local configuration options that can be set on the client.
321
+
322
+ ```typescript
323
+ interface JourniumLocalOptions {
324
+ debug?: boolean; // Enable debug logging
325
+ flushAt?: number; // Number of events before auto-flush
326
+ flushInterval?: number; // Flush interval in milliseconds
327
+ autocapture?: boolean | AutocaptureOptions; // Auto-capture configuration
328
+ autoTrackPageviews?: boolean; // Automatic pageview tracking
329
+ sessionTimeout?: number; // Session timeout in milliseconds
330
+ sampling?: {
331
+ enabled?: boolean;
332
+ rate?: number;
280
333
  };
281
-
282
- const handleDecline = () => {
283
- stopAutocapture();
334
+ features?: {
335
+ enableGeolocation?: boolean;
336
+ enableSessionRecording?: boolean;
337
+ enablePerformanceTracking?: boolean;
284
338
  };
285
-
286
- return (
287
- <div>
288
- <button onClick={handleAccept}>Accept</button>
289
- <button onClick={handleDecline}>Decline</button>
290
- </div>
291
- );
292
339
  }
293
340
  ```
294
341
 
295
- ### `useJournium()`
296
- Hook for direct access to the Journium instance for advanced use cases.
297
-
298
- ```jsx
299
- import { useJournium } from '@journium/react';
300
-
301
- function Component() {
302
- const { journium } = useJournium();
303
-
304
- const handleAdvancedTracking = () => {
305
- journium?.track('custom_event', { advanced: true });
306
- journium?.flush();
307
- };
308
-
309
- return <button onClick={handleAdvancedTracking}>Advanced Track</button>;
342
+ #### `AutocaptureOptions`
343
+ Configuration for automatic event capture.
344
+
345
+ ```typescript
346
+ interface AutocaptureOptions {
347
+ captureClicks?: boolean; // Capture click events
348
+ captureFormSubmits?: boolean; // Capture form submissions
349
+ captureFormChanges?: boolean; // Capture form field changes
350
+ captureTextSelection?: boolean; // Capture text selection events
351
+ ignoreClasses?: string[]; // CSS classes to ignore
352
+ ignoreElements?: string[]; // HTML elements to ignore
353
+ captureContentText?: boolean; // Capture element text content
310
354
  }
311
- ```
355
+ ```
356
+
357
+ #### `JourniumAnalytics`
358
+ The main analytics class instance available through hooks.
359
+
360
+ **Methods:**
361
+ - `track(event: string, properties?: Record<string, unknown>): void` - Track custom event
362
+ - `identify(distinctId: string, attributes?: Record<string, unknown>): void` - Identify user
363
+ - `reset(): void` - Reset user identity
364
+ - `capturePageview(properties?: Record<string, unknown>): void` - Track pageview
365
+ - `startAutocapture(): void` - Start automatic event capture
366
+ - `stopAutocapture(): void` - Stop automatic event capture
367
+ - `flush(): void` - Flush pending events immediately
368
+ - `getEffectiveOptions(): JourniumLocalOptions` - Get effective configuration
@@ -1 +0,0 @@
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, publishableKey, fetchFn) => {\n const endpoint = '/v1/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(publishableKey)}`;\n try {\n let fetch = fetchFn;\n if (!fetch) {\n if (isNode()) {\n // For Node.js environments, expect fetch to be passed in\n throw new Error('Fetch function must be provided in Node.js environment');\n }\n else {\n // Use native fetch in browser\n fetch = window.fetch;\n }\n }\n const response = await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n });\n if (!response.ok) {\n throw new Error(`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 && !localConfig) {\n return {};\n }\n if (!remoteConfig) {\n return localConfig;\n }\n if (!localConfig) {\n return remoteConfig;\n }\n // Deep merge local config into remote config\n // Local config takes precedence over remote config\n const merged = { ...remoteConfig };\n // Handle primitive values\n Object.keys(localConfig).forEach(key => {\n if (localConfig[key] !== undefined && localConfig[key] !== null) {\n if (typeof localConfig[key] === 'object' && !Array.isArray(localConfig[key])) {\n // Deep merge objects - local config overrides remote\n merged[key] = {\n ...(merged[key] || {}),\n ...localConfig[key]\n };\n }\n else {\n // Override primitive values and arrays with local config\n merged[key] = localConfig[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, publishableKey) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with publishableKey pattern: jrnm_<publishableKey>_journium\n this.storageKey = publishableKey ? `jrnm_${publishableKey}_journium` : '__journium_identity';\n this.loadOrCreateIdentity();\n }\n loadOrCreateIdentity() {\n if (!this.isBrowser())\n return;\n try {\n const stored = localStorage.getItem(this.storageKey);\n if (stored) {\n const parsedIdentity = JSON.parse(stored);\n // Check if session is expired\n const now = Date.now();\n const sessionAge = now - parsedIdentity.session_timestamp;\n if (sessionAge > this.sessionTimeout) {\n // Session expired, create new session but keep device and distinct IDs\n this.identity = {\n distinct_id: parsedIdentity.distinct_id,\n $device_id: parsedIdentity.$device_id,\n $session_id: generateUuidv7(),\n session_timestamp: now,\n $user_state: parsedIdentity.$user_state || 'anonymous',\n };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\n // Ensure $user_state exists for backward compatibility\n if (!this.identity.$user_state) {\n this.identity.$user_state = 'anonymous';\n }\n }\n }\n else {\n // First time, create all new IDs\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n // Save to localStorage\n this.saveIdentity();\n }\n catch (error) {\n console.warn('Journium: Failed to load/create identity:', error);\n // Fallback: create temporary identity without localStorage\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n }\n saveIdentity() {\n if (!this.isBrowser() || !this.identity)\n return;\n try {\n localStorage.setItem(this.storageKey, JSON.stringify(this.identity));\n }\n catch (error) {\n console.warn('Journium: Failed to save identity to localStorage:', error);\n }\n }\n isBrowser() {\n return typeof window !== 'undefined' && typeof localStorage !== 'undefined';\n }\n getIdentity() {\n return this.identity;\n }\n updateSessionTimeout(timeoutMs) {\n this.sessionTimeout = timeoutMs;\n }\n refreshSession() {\n if (!this.identity)\n return;\n this.identity = {\n ...this.identity,\n $session_id: generateUuidv7(),\n session_timestamp: Date.now(),\n };\n this.saveIdentity();\n }\n identify(distinctId, attributes = {}) {\n if (!this.identity)\n return { previousDistinctId: null };\n const previousDistinctId = this.identity.distinct_id;\n // Update the distinct ID and mark user as identified\n this.identity = {\n ...this.identity,\n distinct_id: distinctId,\n $user_state: 'identified',\n };\n this.saveIdentity();\n return { previousDistinctId };\n }\n reset() {\n if (!this.identity)\n return;\n // Generate new distinct ID but keep device ID\n this.identity = {\n ...this.identity,\n distinct_id: generateUuidv7(),\n $user_state: 'anonymous',\n };\n this.saveIdentity();\n }\n getUserAgentInfo() {\n if (!this.isBrowser()) {\n return {\n $raw_user_agent: '',\n $browser: 'Unknown',\n $os: 'Unknown',\n $device_type: 'Unknown',\n };\n }\n const userAgent = navigator.userAgent;\n return {\n $raw_user_agent: userAgent,\n $browser: this.parseBrowser(userAgent),\n $os: this.parseOS(userAgent),\n $device_type: this.parseDeviceType(userAgent),\n };\n }\n parseBrowser(userAgent) {\n if (userAgent.includes('Chrome') && !userAgent.includes('Edg'))\n return 'Chrome';\n if (userAgent.includes('Firefox'))\n return 'Firefox';\n if (userAgent.includes('Safari') && !userAgent.includes('Chrome'))\n return 'Safari';\n if (userAgent.includes('Edg'))\n return 'Edge';\n if (userAgent.includes('Opera') || userAgent.includes('OPR'))\n return 'Opera';\n return 'Unknown';\n }\n parseOS(userAgent) {\n if (userAgent.includes('Windows'))\n return 'Windows';\n if (userAgent.includes('Macintosh') || userAgent.includes('Mac OS'))\n return 'Mac OS';\n if (userAgent.includes('Linux'))\n return 'Linux';\n if (userAgent.includes('Android'))\n return 'Android';\n if (userAgent.includes('iPhone') || userAgent.includes('iPad'))\n return 'iOS';\n return 'Unknown';\n }\n parseDeviceType(userAgent) {\n if (userAgent.includes('Mobile') || userAgent.includes('Android') || userAgent.includes('iPhone')) {\n return 'Mobile';\n }\n if (userAgent.includes('iPad') || userAgent.includes('Tablet')) {\n return 'Tablet';\n }\n return 'Desktop';\n }\n}\n\nclass JourniumClient {\n constructor(config) {\n this.queue = [];\n this.flushTimer = null;\n this.initialized = false;\n // Validate required configuration\n if (!config.publishableKey) {\n console.error('Journium: publishableKey is required but not provided. SDK will not function.');\n return;\n }\n // Set default apiHost if not provided\n this.config = {\n ...config,\n apiHost: config.apiHost || 'https://events.journium.app'\n };\n // Generate storage key for config caching\n this.configStorageKey = `jrnm_${config.publishableKey}_config`;\n // Generate default values\n const defaultConfig = {\n debug: false,\n flushAt: 20,\n flushInterval: 10000,\n sessionTimeout: 30 * 60 * 1000, // 30 minutes\n };\n // Initialize effective config with local config taking precedence over defaults\n this.effectiveConfig = { ...defaultConfig };\n if (this.config.config) {\n this.effectiveConfig = mergeConfigs(this.config.config, defaultConfig);\n }\n // Initialize identity manager\n this.identityManager = new BrowserIdentityManager(this.effectiveConfig.sessionTimeout, this.config.publishableKey);\n // Initialize synchronously with cached config, fetch fresh config in background\n this.initializeSync();\n this.fetchRemoteConfigAsync();\n }\n loadCachedConfig() {\n var _a;\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 ((_a = this.effectiveConfig) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: Failed to load cached config:', error);\n }\n return null;\n }\n }\n saveCachedConfig(config) {\n var _a;\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 ((_a = this.effectiveConfig) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: Failed to save config to cache:', error);\n }\n }\n }\n initializeSync() {\n // Step 1: Load cached remote config from localStorage (synchronous)\n const cachedRemoteConfig = this.loadCachedConfig();\n // Step 2: If no local config provided, use cached remote config\n if (!this.config.config && cachedRemoteConfig) {\n this.effectiveConfig = mergeConfigs(undefined, cachedRemoteConfig);\n if (this.effectiveConfig.debug) {\n console.log('Journium: Using cached remote configuration:', cachedRemoteConfig);\n }\n }\n // Step 3: Mark as initialized immediately - no need to wait for remote fetch\n this.initialized = true;\n // Step 4: Start flush timer immediately\n if (this.effectiveConfig.flushInterval && this.effectiveConfig.flushInterval > 0) {\n this.startFlushTimer();\n }\n if (this.effectiveConfig.debug) {\n console.log('Journium: Client initialized with effective config:', this.effectiveConfig);\n }\n }\n async fetchRemoteConfigAsync() {\n // Fetch fresh config in background\n if (this.config.publishableKey) {\n await this.fetchAndCacheRemoteConfig();\n }\n }\n async fetchAndCacheRemoteConfig() {\n try {\n if (this.effectiveConfig.debug) {\n console.log('Journium: Fetching remote configuration in background...');\n }\n const remoteConfigResponse = await fetchRemoteConfig(this.config.apiHost, this.config.publishableKey);\n if (remoteConfigResponse && remoteConfigResponse.success) {\n // Save remote config to cache for next session\n this.saveCachedConfig(remoteConfigResponse.config);\n // Update effective config: local config (if provided) overrides fresh remote config\n if (!this.config.config) {\n // No local config provided, use fresh remote config\n this.effectiveConfig = mergeConfigs(undefined, remoteConfigResponse.config);\n }\n else {\n // Local config provided, merge it over fresh remote config\n this.effectiveConfig = mergeConfigs(this.config.config, remoteConfigResponse.config);\n }\n // Update session timeout if provided in fresh effective config\n if (this.effectiveConfig.sessionTimeout) {\n this.identityManager.updateSessionTimeout(this.effectiveConfig.sessionTimeout);\n }\n if (this.effectiveConfig.debug) {\n console.log('Journium: Background remote configuration applied:', remoteConfigResponse.config);\n console.log('Journium: New effective configuration:', this.effectiveConfig);\n }\n }\n }\n catch (error) {\n if (this.effectiveConfig.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 // Use universal setInterval (works in both browser and Node.js)\n this.flushTimer = setInterval(() => {\n this.flush();\n }, this.effectiveConfig.flushInterval);\n }\n async sendEvents(events) {\n if (!events.length)\n return;\n try {\n const response = await fetch(`${this.config.apiHost}/v1/ingest_event`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.config.publishableKey}`,\n },\n body: JSON.stringify({\n events,\n }),\n });\n if (!response.ok) {\n throw new Error(`HTTP ${response.status}: ${response.statusText}`);\n }\n if (this.effectiveConfig.debug) {\n console.log('Journium: Successfully sent events', events);\n }\n }\n catch (error) {\n if (this.effectiveConfig.debug) {\n console.error('Journium: Failed to send events', error);\n }\n throw error;\n }\n }\n identify(distinctId, attributes = {}) {\n var _a;\n // Don't identify if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveConfig) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: identify() call rejected - SDK not ready');\n }\n return;\n }\n // Call identify on identity manager to get previous distinct ID\n const { previousDistinctId } = this.identityManager.identify(distinctId, attributes);\n // Track $identify event with previous distinct ID\n const identifyProperties = {\n ...attributes,\n $anon_distinct_id: previousDistinctId,\n };\n this.track('$identify', identifyProperties);\n if (this.effectiveConfig.debug) {\n console.log('Journium: User identified', { distinctId, attributes, previousDistinctId });\n }\n }\n reset() {\n var _a;\n // Don't reset if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveConfig) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: reset() call rejected - SDK not ready');\n }\n return;\n }\n // Reset identity in identity manager\n this.identityManager.reset();\n if (this.effectiveConfig.debug) {\n console.log('Journium: User identity reset');\n }\n }\n track(event, properties = {}) {\n var _a;\n // Don't track if SDK is not properly configured\n if (!this.config || !this.config.publishableKey || !this.initialized) {\n if ((_a = this.effectiveConfig) === null || _a === void 0 ? void 0 : _a.debug) {\n console.warn('Journium: track() call rejected - SDK not ready');\n }\n return;\n }\n const identity = this.identityManager.getIdentity();\n const userAgentInfo = this.identityManager.getUserAgentInfo();\n // Create standardized event properties\n const eventProperties = {\n $device_id: identity === null || identity === void 0 ? void 0 : identity.$device_id,\n distinct_id: identity === null || identity === void 0 ? void 0 : identity.distinct_id,\n $session_id: identity === null || identity === void 0 ? void 0 : identity.$session_id,\n $is_identified: (identity === null || identity === void 0 ? void 0 : identity.$user_state) === 'identified',\n $current_url: typeof window !== 'undefined' ? window.location.href : '',\n $pathname: typeof window !== 'undefined' ? window.location.pathname : '',\n ...userAgentInfo,\n $lib_version: '0.1.0', // TODO: Get from package.json\n $platform: 'web',\n ...properties, // User-provided properties override defaults\n };\n const journiumEvent = {\n uuid: generateUuidv7(),\n ingestion_key: this.config.publishableKey,\n client_timestamp: getCurrentTimestamp(),\n event,\n properties: eventProperties,\n };\n this.queue.push(journiumEvent);\n if (this.effectiveConfig.debug) {\n console.log('Journium: Event tracked', journiumEvent);\n }\n if (this.queue.length >= this.effectiveConfig.flushAt) {\n this.flush();\n }\n }\n async flush() {\n // Don't flush if SDK is not properly configured\n if (!this.config || !this.config.publishableKey) {\n return;\n }\n if (this.queue.length === 0)\n return;\n const events = [...this.queue];\n this.queue = [];\n try {\n await this.sendEvents(events);\n }\n catch (error) {\n this.queue.unshift(...events);\n throw error;\n }\n }\n destroy() {\n if (this.flushTimer) {\n clearInterval(this.flushTimer);\n this.flushTimer = null;\n }\n this.flush();\n }\n}\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 var _a, _b;\n this.config = config;\n this.client = new JourniumClient(config);\n this.pageviewTracker = new PageviewTracker(this.client);\n const autocaptureConfig = this.resolveAutocaptureConfig((_a = config.config) === null || _a === void 0 ? void 0 : _a.autocapture);\n this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureConfig);\n // Store resolved autocapture state for startAutocapture method\n this.autocaptureEnabled = ((_b = config.config) === null || _b === void 0 ? void 0 : _b.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 identify(distinctId, attributes) {\n this.client.identify(distinctId, attributes);\n }\n reset() {\n this.client.reset();\n }\n capturePageview(properties) {\n this.pageviewTracker.capturePageview(properties);\n }\n startAutocapture() {\n 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 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,C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