@heycatch/sdk 0.8.3 → 0.8.5-dev.2545
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 +86 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +2 -2
- package/dist/react-native.cjs +1 -1
- package/dist/react-native.d.cts +24 -0
- package/dist/server.cjs +2 -2
- package/dist/server.d.cts +10 -2
- package/dist/server.d.ts +10 -2
- package/dist/server.js +2 -2
- package/dist/{shared-C0-GQTbz.d.cts → shared-nNQmChFP.d.cts} +15 -0
- package/dist/{shared-C0-GQTbz.d.ts → shared-nNQmChFP.d.ts} +15 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as HeyCatchPersonProperties, b as HeyCatchConfig, e as HeyCatchProperties, j as TrackOptions } from './shared-
|
|
2
|
-
export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersistence, f as HeyCatchSanitizeProperties, K as KNOWN_FRAMEWORKS, g as KNOWN_INSTALL_AGENTS, P as PersonPropertyUpdate, S as SDK_VERSION, h as STAGE, i as ServerTrackOptions, T as TRACING_HEADERS, U as UNKNOWN_INSTALL_VALUE } from './shared-
|
|
1
|
+
import { d as HeyCatchPersonProperties, b as HeyCatchConfig, e as HeyCatchProperties, j as TrackOptions } from './shared-nNQmChFP.cjs';
|
|
2
|
+
export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersistence, f as HeyCatchSanitizeProperties, K as KNOWN_FRAMEWORKS, g as KNOWN_INSTALL_AGENTS, P as PersonPropertyUpdate, S as SDK_VERSION, h as STAGE, i as ServerTrackOptions, T as TRACING_HEADERS, U as UNKNOWN_INSTALL_VALUE } from './shared-nNQmChFP.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Starts capturing after `optOutCapturingByDefault` gated `init()` from
|
|
@@ -11,6 +11,10 @@ export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersi
|
|
|
11
11
|
* Also releases the browser-storage half of the gate, since `init()` pairs
|
|
12
12
|
* `opt_out_persistence_by_default` with the capture opt-out.
|
|
13
13
|
*
|
|
14
|
+
* Also runs the catch-redirect utm cleanup that `init()` held back under the
|
|
15
|
+
* gate: `opt_in_capturing()` sends `$opt_in` and the initial `$pageview`
|
|
16
|
+
* synchronously, and those are posthog's first read of the landing URL.
|
|
17
|
+
*
|
|
14
18
|
* Warns and does nothing before `init()` - see the note above.
|
|
15
19
|
*/
|
|
16
20
|
declare function optInCapturing(): void;
|
|
@@ -56,6 +60,15 @@ declare function setIdentity(userId: string, properties?: HeyCatchPersonProperti
|
|
|
56
60
|
declare function resetIdentity(): void;
|
|
57
61
|
|
|
58
62
|
declare function init(config: HeyCatchConfig): void;
|
|
63
|
+
/**
|
|
64
|
+
* Turns visitor IP collection off (`false`) or back on (`true`) from here on,
|
|
65
|
+
* for a consent banner answered after `init()` - the runtime half of
|
|
66
|
+
* `collectIp`. Not remembered across loads: pass the visitor's answer to
|
|
67
|
+
* `init()` as `collectIp` on every load too.
|
|
68
|
+
*
|
|
69
|
+
* Warns and does nothing before `init()` (see `./consent`).
|
|
70
|
+
*/
|
|
71
|
+
declare function setIpCollection(collect: boolean): void;
|
|
59
72
|
|
|
60
73
|
/**
|
|
61
74
|
* Record a product event.
|
|
@@ -106,6 +119,7 @@ declare const analytics: {
|
|
|
106
119
|
readonly optOutCapturing: typeof optOutCapturing;
|
|
107
120
|
readonly resetIdentity: typeof resetIdentity;
|
|
108
121
|
readonly setIdentity: typeof setIdentity;
|
|
122
|
+
readonly setIpCollection: typeof setIpCollection;
|
|
109
123
|
readonly setPersonProperties: typeof setPersonProperties;
|
|
110
124
|
readonly trackEvent: typeof trackEvent;
|
|
111
125
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as HeyCatchPersonProperties, b as HeyCatchConfig, e as HeyCatchProperties, j as TrackOptions } from './shared-
|
|
2
|
-
export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersistence, f as HeyCatchSanitizeProperties, K as KNOWN_FRAMEWORKS, g as KNOWN_INSTALL_AGENTS, P as PersonPropertyUpdate, S as SDK_VERSION, h as STAGE, i as ServerTrackOptions, T as TRACING_HEADERS, U as UNKNOWN_INSTALL_VALUE } from './shared-
|
|
1
|
+
import { d as HeyCatchPersonProperties, b as HeyCatchConfig, e as HeyCatchProperties, j as TrackOptions } from './shared-nNQmChFP.js';
|
|
2
|
+
export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersistence, f as HeyCatchSanitizeProperties, K as KNOWN_FRAMEWORKS, g as KNOWN_INSTALL_AGENTS, P as PersonPropertyUpdate, S as SDK_VERSION, h as STAGE, i as ServerTrackOptions, T as TRACING_HEADERS, U as UNKNOWN_INSTALL_VALUE } from './shared-nNQmChFP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Starts capturing after `optOutCapturingByDefault` gated `init()` from
|
|
@@ -11,6 +11,10 @@ export { H as HeyCatchBeforeSend, a as HeyCatchCapturedEvent, c as HeyCatchPersi
|
|
|
11
11
|
* Also releases the browser-storage half of the gate, since `init()` pairs
|
|
12
12
|
* `opt_out_persistence_by_default` with the capture opt-out.
|
|
13
13
|
*
|
|
14
|
+
* Also runs the catch-redirect utm cleanup that `init()` held back under the
|
|
15
|
+
* gate: `opt_in_capturing()` sends `$opt_in` and the initial `$pageview`
|
|
16
|
+
* synchronously, and those are posthog's first read of the landing URL.
|
|
17
|
+
*
|
|
14
18
|
* Warns and does nothing before `init()` - see the note above.
|
|
15
19
|
*/
|
|
16
20
|
declare function optInCapturing(): void;
|
|
@@ -56,6 +60,15 @@ declare function setIdentity(userId: string, properties?: HeyCatchPersonProperti
|
|
|
56
60
|
declare function resetIdentity(): void;
|
|
57
61
|
|
|
58
62
|
declare function init(config: HeyCatchConfig): void;
|
|
63
|
+
/**
|
|
64
|
+
* Turns visitor IP collection off (`false`) or back on (`true`) from here on,
|
|
65
|
+
* for a consent banner answered after `init()` - the runtime half of
|
|
66
|
+
* `collectIp`. Not remembered across loads: pass the visitor's answer to
|
|
67
|
+
* `init()` as `collectIp` on every load too.
|
|
68
|
+
*
|
|
69
|
+
* Warns and does nothing before `init()` (see `./consent`).
|
|
70
|
+
*/
|
|
71
|
+
declare function setIpCollection(collect: boolean): void;
|
|
59
72
|
|
|
60
73
|
/**
|
|
61
74
|
* Record a product event.
|
|
@@ -106,6 +119,7 @@ declare const analytics: {
|
|
|
106
119
|
readonly optOutCapturing: typeof optOutCapturing;
|
|
107
120
|
readonly resetIdentity: typeof resetIdentity;
|
|
108
121
|
readonly setIdentity: typeof setIdentity;
|
|
122
|
+
readonly setIpCollection: typeof setIpCollection;
|
|
109
123
|
readonly setPersonProperties: typeof setPersonProperties;
|
|
110
124
|
readonly trackEvent: typeof trackEvent;
|
|
111
125
|
};
|