@ninetailed/experience.js-plugin-preview 3.0.1-beta.4 → 3.0.2-beta.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.
@@ -0,0 +1,33 @@
1
+ import { Credentials } from './types';
2
+ import { AnalyticsInstance, NinetailedPlugin } from '@ninetailed/experience.js-plugin-analytics';
3
+ import { PROFILE_CHANGE } from '@ninetailed/experience.js';
4
+ export declare const NINETAILED_PREVIEW_EVENTS: {
5
+ previewAudiences: string;
6
+ previewTraits: string;
7
+ };
8
+ declare type NinetailedPreviewPluginOptions = Credentials & {
9
+ url?: string;
10
+ environment?: string;
11
+ ui?: {
12
+ opener?: {
13
+ hide: boolean;
14
+ };
15
+ };
16
+ };
17
+ export declare class NinetailedPreviewPlugin extends NinetailedPlugin {
18
+ private readonly options;
19
+ name: string;
20
+ private isOpen;
21
+ private activatedAudiences;
22
+ private audiences;
23
+ private lastProfile?;
24
+ constructor(options: NinetailedPreviewPluginOptions);
25
+ initialize: ({ instance }: {
26
+ instance: AnalyticsInstance;
27
+ }) => Promise<void>;
28
+ loaded: () => boolean;
29
+ [PROFILE_CHANGE]: ({ payload }: {
30
+ payload: any;
31
+ }) => any;
32
+ }
33
+ export {};
@@ -1,2 +1,2 @@
1
- export * from './plugin';
1
+ export * from './NinetailedPreviewPlugin';
2
2
  export * from './types';
package/package.json CHANGED
@@ -1,22 +1,16 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-plugin-preview",
3
- "version": "3.0.1-beta.4",
4
- "main": "./index.umd.js",
5
- "module": "./index.esm.js",
6
- "typings": "./index.d.ts",
3
+ "version": "3.0.2-beta.0",
4
+ "module": "./index.js",
5
+ "main": "./index.cjs",
6
+ "type": "module",
7
+ "types": "./index.d.ts",
7
8
  "dependencies": {
8
- "analytics": "^0.8.0",
9
- "@ninetailed/experience.js-shared": "3.0.1-beta.4",
10
- "ts-toolbelt": "^9.6.0",
11
- "diary": "^0.3.1",
12
- "zod": "^3.18.0",
13
- "locale-enum": "^1.1.1",
14
- "i18n-iso-countries": "^7.3.0",
15
- "lodash": "^4.17.21",
16
- "@ninetailed/experience.js-preview-bridge": "3.0.1-beta.4",
17
- "zoid": "^9.0.86",
18
- "@ninetailed/experience.js": "3.0.1-beta.4",
19
- "murmurhash-js": "^1.0.0"
9
+ "@ninetailed/experience.js-shared": "3.0.2-beta.0",
10
+ "lodash": "4.17.21",
11
+ "@ninetailed/experience.js-plugin-analytics": "3.0.2-beta.0",
12
+ "@ninetailed/experience.js": "3.0.2-beta.0",
13
+ "@ninetailed/experience.js-preview-bridge": "3.0.2-beta.0"
20
14
  },
21
15
  "peerDependencies": {}
22
16
  }