aurea-tracking-sdk 1.3.1 → 1.3.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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ interface EventCategoryConfig {
|
|
|
9
9
|
value?: number;
|
|
10
10
|
description?: string;
|
|
11
11
|
trackOnce?: boolean;
|
|
12
|
+
color?: string;
|
|
12
13
|
}
|
|
13
14
|
interface AureaConfig {
|
|
14
15
|
apiKey: string;
|
|
@@ -202,6 +203,7 @@ declare class AureaSDK {
|
|
|
202
203
|
value?: number;
|
|
203
204
|
advanceTo?: FunnelStage;
|
|
204
205
|
description?: string;
|
|
206
|
+
color?: string;
|
|
205
207
|
}): void;
|
|
206
208
|
/**
|
|
207
209
|
* Get current event category statistics
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface EventCategoryConfig {
|
|
|
9
9
|
value?: number;
|
|
10
10
|
description?: string;
|
|
11
11
|
trackOnce?: boolean;
|
|
12
|
+
color?: string;
|
|
12
13
|
}
|
|
13
14
|
interface AureaConfig {
|
|
14
15
|
apiKey: string;
|
|
@@ -202,6 +203,7 @@ declare class AureaSDK {
|
|
|
202
203
|
value?: number;
|
|
203
204
|
advanceTo?: FunnelStage;
|
|
204
205
|
description?: string;
|
|
206
|
+
color?: string;
|
|
205
207
|
}): void;
|
|
206
208
|
/**
|
|
207
209
|
* Get current event category statistics
|
package/dist/index.js
CHANGED
|
@@ -252,6 +252,7 @@ var AureaSDK = class {
|
|
|
252
252
|
const value = options?.value ?? categoryConfig?.value ?? 50;
|
|
253
253
|
const advanceTo = options?.advanceTo || categoryConfig?.advanceTo;
|
|
254
254
|
const description = options?.description || categoryConfig?.description;
|
|
255
|
+
const color = options?.color || categoryConfig?.color;
|
|
255
256
|
const trackOnce = categoryConfig?.trackOnce ?? false;
|
|
256
257
|
if (trackOnce) {
|
|
257
258
|
if (this.trackedOnceEvents.has(eventName)) {
|
|
@@ -276,6 +277,8 @@ var AureaSDK = class {
|
|
|
276
277
|
_category: category,
|
|
277
278
|
_value: value,
|
|
278
279
|
_description: description,
|
|
280
|
+
_color: color,
|
|
281
|
+
// Custom color (e.g., 'fuchsia' or full Tailwind classes)
|
|
279
282
|
_currentStage: this.currentStage,
|
|
280
283
|
_categoryStats: Object.fromEntries(this.eventCategoryStats),
|
|
281
284
|
_trackedOnce: trackOnce
|
package/dist/index.mjs
CHANGED
|
@@ -223,6 +223,7 @@ var AureaSDK = class {
|
|
|
223
223
|
const value = options?.value ?? categoryConfig?.value ?? 50;
|
|
224
224
|
const advanceTo = options?.advanceTo || categoryConfig?.advanceTo;
|
|
225
225
|
const description = options?.description || categoryConfig?.description;
|
|
226
|
+
const color = options?.color || categoryConfig?.color;
|
|
226
227
|
const trackOnce = categoryConfig?.trackOnce ?? false;
|
|
227
228
|
if (trackOnce) {
|
|
228
229
|
if (this.trackedOnceEvents.has(eventName)) {
|
|
@@ -247,6 +248,8 @@ var AureaSDK = class {
|
|
|
247
248
|
_category: category,
|
|
248
249
|
_value: value,
|
|
249
250
|
_description: description,
|
|
251
|
+
_color: color,
|
|
252
|
+
// Custom color (e.g., 'fuchsia' or full Tailwind classes)
|
|
250
253
|
_currentStage: this.currentStage,
|
|
251
254
|
_categoryStats: Object.fromEntries(this.eventCategoryStats),
|
|
252
255
|
_trackedOnce: trackOnce
|