@aranova/tracking-next 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/blog-server.js.map +1 -1
  2. package/dist/blog-server.mjs.map +1 -1
  3. package/dist/blog.js.map +1 -1
  4. package/dist/blog.mjs.map +1 -1
  5. package/dist/calendar-server.js.map +1 -1
  6. package/dist/calendar-server.mjs.map +1 -1
  7. package/dist/calendar.js.map +1 -1
  8. package/dist/calendar.mjs.map +1 -1
  9. package/dist/client.d.mts +9 -3
  10. package/dist/client.d.ts +9 -3
  11. package/dist/client.js +550 -194
  12. package/dist/client.js.map +1 -1
  13. package/dist/client.mjs +550 -194
  14. package/dist/client.mjs.map +1 -1
  15. package/dist/index.d.mts +5 -5
  16. package/dist/index.d.ts +5 -5
  17. package/dist/index.js +336 -271
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +336 -271
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/{ingest-typed-BdKmlouW.d.ts → ingest-typed-MBuMe9Pn.d.ts} +94 -2
  22. package/dist/{ingest-typed-Bo7WPmpU.d.mts → ingest-typed-UA13xTfI.d.mts} +94 -2
  23. package/dist/{phone-utils-CubQif9Z.d.mts → phone-utils-C0ds6cqZ.d.mts} +6 -0
  24. package/dist/{phone-utils-CubQif9Z.d.ts → phone-utils-C0ds6cqZ.d.ts} +6 -0
  25. package/dist/phone.d.mts +1 -1
  26. package/dist/phone.d.ts +1 -1
  27. package/dist/{sales-DG150g3o.d.ts → sales-DQC815f3.d.ts} +1 -1
  28. package/dist/{sales-D7KstKA-.d.mts → sales-w1reW_Y3.d.mts} +1 -1
  29. package/dist/sales.d.mts +2 -2
  30. package/dist/sales.d.ts +2 -2
  31. package/dist/sales.js +6 -1
  32. package/dist/sales.js.map +1 -1
  33. package/dist/sales.mjs +6 -1
  34. package/dist/sales.mjs.map +1 -1
  35. package/dist/server.d.mts +1 -1
  36. package/dist/server.d.ts +1 -1
  37. package/dist/{tracking-config-runtime-D7prdTE1.d.mts → tracking-config-runtime-C6H7ofmo.d.mts} +6 -0
  38. package/dist/{tracking-config-runtime-D7prdTE1.d.ts → tracking-config-runtime-C6H7ofmo.d.ts} +6 -0
  39. package/package.json +1 -1
package/dist/server.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TrackingParams } from './phone-utils-CubQif9Z.mjs';
1
+ import { T as TrackingParams } from './phone-utils-C0ds6cqZ.mjs';
2
2
  import 'zod/mini';
3
3
  import 'libphonenumber-js';
4
4
 
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TrackingParams } from './phone-utils-CubQif9Z.js';
1
+ import { T as TrackingParams } from './phone-utils-C0ds6cqZ.js';
2
2
  import 'zod/mini';
3
3
  import 'libphonenumber-js';
4
4
 
@@ -39,6 +39,8 @@ interface ConversionConfig {
39
39
  }>;
40
40
  /** Unified goal list (sales + on-page events). Superset of `services`. */
41
41
  goals: ConversionGoal[];
42
+ /** Sibling hostnames of this site (roster minus self); the cross-site linker's targets. */
43
+ linked_hostnames?: string[];
42
44
  }
43
45
  interface ConversionConfigStore {
44
46
  /** Firing config for a goal/service key, or null when it doesn't fire on-site. */
@@ -47,6 +49,8 @@ interface ConversionConfigStore {
47
49
  getGoal(key: string): ConversionGoal | null;
48
50
  /** Every adopted goal (sales + events). */
49
51
  listGoals(): ConversionGoal[];
52
+ /** Sibling hostnames for the cross-site linker; empty until a config resolves. */
53
+ linkedHostnames(): readonly string[];
50
54
  /** The currently adopted config (baked / cached fallback until the fetch lands). */
51
55
  current(): ConversionConfig | null;
52
56
  /** True once a config is adopted (seeded synchronously from cache/baked, or fetched). */
@@ -184,6 +188,8 @@ declare class TrackingConfigRuntime {
184
188
  fireConversion(key: string, options?: TrackingConfigConversionOptions): void;
185
189
  queueAutomaticEvent(eventType: string, metadata: Record<string, unknown>, transactionPath: string, transactionScope: string): void;
186
190
  listGoals(): ConversionGoal[];
191
+ /** Sibling hostnames for the linker — read from the cached object even while unconfirmed. */
192
+ linkedHostnames(): readonly string[];
187
193
  private revalidateNow;
188
194
  private expireAuthority;
189
195
  private confirm;
@@ -39,6 +39,8 @@ interface ConversionConfig {
39
39
  }>;
40
40
  /** Unified goal list (sales + on-page events). Superset of `services`. */
41
41
  goals: ConversionGoal[];
42
+ /** Sibling hostnames of this site (roster minus self); the cross-site linker's targets. */
43
+ linked_hostnames?: string[];
42
44
  }
43
45
  interface ConversionConfigStore {
44
46
  /** Firing config for a goal/service key, or null when it doesn't fire on-site. */
@@ -47,6 +49,8 @@ interface ConversionConfigStore {
47
49
  getGoal(key: string): ConversionGoal | null;
48
50
  /** Every adopted goal (sales + events). */
49
51
  listGoals(): ConversionGoal[];
52
+ /** Sibling hostnames for the cross-site linker; empty until a config resolves. */
53
+ linkedHostnames(): readonly string[];
50
54
  /** The currently adopted config (baked / cached fallback until the fetch lands). */
51
55
  current(): ConversionConfig | null;
52
56
  /** True once a config is adopted (seeded synchronously from cache/baked, or fetched). */
@@ -184,6 +188,8 @@ declare class TrackingConfigRuntime {
184
188
  fireConversion(key: string, options?: TrackingConfigConversionOptions): void;
185
189
  queueAutomaticEvent(eventType: string, metadata: Record<string, unknown>, transactionPath: string, transactionScope: string): void;
186
190
  listGoals(): ConversionGoal[];
191
+ /** Sibling hostnames for the linker — read from the cached object even while unconfirmed. */
192
+ linkedHostnames(): readonly string[];
187
193
  private revalidateNow;
188
194
  private expireAuthority;
189
195
  private confirm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aranova/tracking-next",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "Next.js tracking utilities for Aranova client sites",