@ninetailed/experience.js 4.3.0-beta.2 → 4.4.0-beta.1
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/index.cjs +127 -234
- package/index.d.ts +0 -4
- package/index.js +128 -232
- package/lib/Ninetailed.d.ts +1 -8
- package/lib/analytics/index.d.ts +0 -1
- package/lib/constants.d.ts +0 -2
- package/lib/types/TrackingProperties.d.ts +21 -21
- package/lib/types/index.d.ts +0 -8
- package/package.json +2 -2
- package/lib/ElementSeenObserver.d.ts +0 -16
- package/lib/guards/acceptsCredentials.d.ts +0 -2
- package/lib/guards/isInterestedInHiddenPage.d.ts +0 -2
- package/lib/guards/isInterestedInSeenElements.d.ts +0 -2
- package/lib/types/Credentials.d.ts +0 -4
- package/lib/types/ElementSeenPayload.d.ts +0 -7
- package/lib/types/ProfileChangedPayload.d.ts +0 -4
- package/lib/types/interfaces/AcceptsCredentials.d.ts +0 -4
- package/lib/types/interfaces/InterestedInHiddenPage.d.ts +0 -5
- package/lib/types/interfaces/InterestedInProfileChange.d.ts +0 -6
- package/lib/types/interfaces/InterestedInSeenElements.d.ts +0 -6
package/lib/types/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Logger, PageviewProperties, Profile, Properties, Traits } from '@nineta
|
|
|
2
2
|
import { DetachListeners } from 'analytics';
|
|
3
3
|
import { TrackExperienceProperties, TrackComponentProperties } from './TrackingProperties';
|
|
4
4
|
import { NinetailedPlugin } from './NinetailedPlugin';
|
|
5
|
-
import { type Ninetailed } from '../Ninetailed';
|
|
6
5
|
type Loading = {
|
|
7
6
|
status: 'loading';
|
|
8
7
|
profile: null;
|
|
@@ -41,8 +40,6 @@ export type Identify = (uid: string, traits?: Traits, options?: EventFunctionOpt
|
|
|
41
40
|
export type Reset = () => void;
|
|
42
41
|
export type Debug = (enable: boolean) => void;
|
|
43
42
|
export type OnProfileChange = (cb: OnProfileChangeCallback) => DetachListeners;
|
|
44
|
-
type ObserveElement = Ninetailed['observeElement'];
|
|
45
|
-
type UnObserveElement = Ninetailed['unobserveElement'];
|
|
46
43
|
export interface NinetailedInstance {
|
|
47
44
|
page: Page;
|
|
48
45
|
track: Track;
|
|
@@ -56,13 +53,8 @@ export interface NinetailedInstance {
|
|
|
56
53
|
plugins: NinetailedPlugin[];
|
|
57
54
|
logger: Logger;
|
|
58
55
|
onIsInitialized: OnIsInitialized;
|
|
59
|
-
observeElement: ObserveElement;
|
|
60
|
-
unobserveElement: UnObserveElement;
|
|
61
56
|
}
|
|
62
57
|
export { NinetailedPlugin, TrackExperienceProperties, TrackComponentProperties, };
|
|
63
58
|
export type { EventHandler } from './EventHandler';
|
|
64
59
|
export type { AnalyticsInstance } from './AnalyticsInstance';
|
|
65
60
|
export type { SanitizedTrackExperienceProperties } from './TrackingProperties';
|
|
66
|
-
export type { ElementSeenPayload } from './ElementSeenPayload';
|
|
67
|
-
export type { ProfileChangedPayload } from './ProfileChangedPayload';
|
|
68
|
-
export type { Credentials } from './Credentials';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0-beta.1",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@ninetailed/experience.js-shared": "4.
|
|
9
|
+
"@ninetailed/experience.js-shared": "4.4.0-beta.1",
|
|
10
10
|
"analytics": "0.8.1",
|
|
11
11
|
"zod": "3.21.4"
|
|
12
12
|
},
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type ElementSeenObserverOptions = {
|
|
2
|
-
onElementSeen: (element: Element) => void;
|
|
3
|
-
};
|
|
4
|
-
export type ObserveOptions = {
|
|
5
|
-
delay?: number;
|
|
6
|
-
};
|
|
7
|
-
export declare class ElementSeenObserver {
|
|
8
|
-
private _options;
|
|
9
|
-
private _intersectionObserver?;
|
|
10
|
-
private _elementDelays;
|
|
11
|
-
private _intersectionTimers;
|
|
12
|
-
constructor(_options: ElementSeenObserverOptions);
|
|
13
|
-
private onIntersection;
|
|
14
|
-
observe(element: Element, options?: ObserveOptions): void;
|
|
15
|
-
unobserve(element: Element): void;
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PROFILE_CHANGE } from '@ninetailed/experience.js-shared';
|
|
2
|
-
import { EventHandler } from '../EventHandler';
|
|
3
|
-
import { ProfileChangedPayload } from '../ProfileChangedPayload';
|
|
4
|
-
export interface InterestedInProfileChange {
|
|
5
|
-
[PROFILE_CHANGE]: EventHandler<ProfileChangedPayload>;
|
|
6
|
-
}
|