@avsbhq/snippet-types 1.1.0 → 1.2.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 (2) hide show
  1. package/avsb.d.ts +2 -0
  2. package/package.json +1 -1
package/avsb.d.ts CHANGED
@@ -398,6 +398,8 @@ interface AvsbApi {
398
398
  commerce: AvsbCommerceApi
399
399
  /** Leave a shared preview link: clears the preview token and reloads. */
400
400
  exitPreview(): void
401
+ /** After a split-URL redirect in this tab: the referrer of the page the visitor was redirected FROM, captured before the redirect so your analytics can undo the self-referral. `''` means that visit was direct; `null` means no redirect has happened (or storage is unavailable). Same-origin only, so a destination on a different domain cannot read it. Optional: absent on snippet builds that predate it, so read it as `avsb.getOriginalReferrer?.()`. */
402
+ getOriginalReferrer?(): string | null
401
403
  /** Re-run every experiment against the page as it is now. For app-driven navigation the History API never sees. */
402
404
  refresh(): void
403
405
  /** The snippet build running on this page, e.g. `1.1.0`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avsbhq/snippet-types",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "TypeScript declarations for window.avsb, the A vs B web-snippet API",
5
5
  "keywords": [
6
6
  "avsb",