@windstream/react-shared-components 0.1.41 → 0.1.42
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/core.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/cookie.ts +3 -3
package/package.json
CHANGED
package/src/utils/cookie.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Base64 } from "js-base64";
|
|
|
8
8
|
import Cookies from "js-cookie";
|
|
9
9
|
|
|
10
10
|
const UTM_COOKIE_KEY = "utm_parameters";
|
|
11
|
-
const DEFAULT_DOMAIN = ".
|
|
11
|
+
const DEFAULT_DOMAIN = ".gokinetic.com";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Reads UTM parameters from the Base64-encoded cookie.
|
|
@@ -31,7 +31,7 @@ export function getUTMs(): UTMProperties | null {
|
|
|
31
31
|
/**
|
|
32
32
|
* Stores UTM parameters as a Base64-encoded JSON cookie.
|
|
33
33
|
* @param utms - The UTM properties to store.
|
|
34
|
-
* @param domain - Cookie domain (defaults to `.
|
|
34
|
+
* @param domain - Cookie domain (defaults to `.gokinetic.com`).
|
|
35
35
|
*/
|
|
36
36
|
export function setUTMs(
|
|
37
37
|
utms: UTMProperties,
|
|
@@ -51,7 +51,7 @@ export function setUTMs(
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Removes the UTM cookie.
|
|
54
|
-
* @param domain - Cookie domain (defaults to `.
|
|
54
|
+
* @param domain - Cookie domain (defaults to `.gokinetic.com`).
|
|
55
55
|
*/
|
|
56
56
|
export function removeUTMs(domain: string = DEFAULT_DOMAIN): void {
|
|
57
57
|
Cookies.remove(UTM_COOKIE_KEY, { domain, path: "/" });
|