@ninetailed/experience.js 1.0.0-beta.19 → 1.0.0-beta.20
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.esm.js +2 -0
- package/index.umd.js +3 -0
- package/lib/Ninetailed.d.ts +1 -0
- package/lib/analytics/get-analytics-plugin.d.ts +2 -1
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -3443,6 +3443,7 @@ const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
|
3443
3443
|
const ninetailedPlugin = ({
|
|
3444
3444
|
clientId,
|
|
3445
3445
|
environment,
|
|
3446
|
+
preview: _preview = false,
|
|
3446
3447
|
url,
|
|
3447
3448
|
profile,
|
|
3448
3449
|
locale
|
|
@@ -3483,6 +3484,7 @@ const ninetailedPlugin = ({
|
|
|
3483
3484
|
traits: get$2(cache, 'traits', {}),
|
|
3484
3485
|
traitsUpdatedAt: get$2(cache, 'traitsUpdatedAt', new Date().toISOString()),
|
|
3485
3486
|
localOnly,
|
|
3487
|
+
preview: _preview,
|
|
3486
3488
|
options: {
|
|
3487
3489
|
locale: locale || 'en'
|
|
3488
3490
|
},
|
package/index.umd.js
CHANGED
|
@@ -3549,6 +3549,8 @@
|
|
|
3549
3549
|
var ninetailedPlugin = function ninetailedPlugin(_a) {
|
|
3550
3550
|
var clientId = _a.clientId,
|
|
3551
3551
|
environment = _a.environment,
|
|
3552
|
+
_b = _a.preview,
|
|
3553
|
+
preview = _b === void 0 ? false : _b,
|
|
3552
3554
|
url = _a.url,
|
|
3553
3555
|
profile = _a.profile,
|
|
3554
3556
|
locale = _a.locale;
|
|
@@ -3596,6 +3598,7 @@
|
|
|
3596
3598
|
traits: get__default["default"](cache, 'traits', {}),
|
|
3597
3599
|
traitsUpdatedAt: get__default["default"](cache, 'traitsUpdatedAt', new Date().toISOString()),
|
|
3598
3600
|
localOnly: localOnly,
|
|
3601
|
+
preview: preview,
|
|
3599
3602
|
options: {
|
|
3600
3603
|
locale: locale || 'en'
|
|
3601
3604
|
},
|
package/lib/Ninetailed.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare class Ninetailed implements NinetailedInstance {
|
|
|
44
44
|
constructor({ clientId, environment }: {
|
|
45
45
|
clientId: string;
|
|
46
46
|
environment?: string;
|
|
47
|
+
preview?: boolean;
|
|
47
48
|
}, { plugins, url, profile, locale }?: Options);
|
|
48
49
|
page: (data?: PageData, options?: EventFunctionOptions) => Promise<any>;
|
|
49
50
|
track: (event: string, payload?: unknown, options?: EventFunctionOptions) => Promise<any>;
|
|
@@ -8,6 +8,7 @@ declare global {
|
|
|
8
8
|
declare type AnalyticsPluginNinetailedConfig = {
|
|
9
9
|
clientId: string;
|
|
10
10
|
environment?: string;
|
|
11
|
+
preview?: boolean;
|
|
11
12
|
url?: string;
|
|
12
13
|
profile?: Profile;
|
|
13
14
|
locale?: Locale;
|
|
@@ -19,5 +20,5 @@ export declare const NINETAILED_TRACKER_EVENTS: {
|
|
|
19
20
|
profile: string;
|
|
20
21
|
};
|
|
21
22
|
export declare const PLUGIN_NAME = "ninetailed";
|
|
22
|
-
export declare const ninetailedPlugin: ({ clientId, environment, url, profile, locale, }: AnalyticsPluginNinetailedConfig) => AnalyticsPlugin;
|
|
23
|
+
export declare const ninetailedPlugin: ({ clientId, environment, preview, url, profile, locale, }: AnalyticsPluginNinetailedConfig) => AnalyticsPlugin;
|
|
23
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.20",
|
|
4
4
|
"main": "./index.umd.js",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"analytics": "^0.8.0",
|
|
9
|
-
"@ninetailed/experience.js-shared": "1.0.0-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "1.0.0-beta.20",
|
|
10
10
|
"uuid": "^8.3.2",
|
|
11
11
|
"ts-toolbelt": "^9.6.0",
|
|
12
12
|
"locale-enum": "^1.1.1",
|