@ninetailed/experience.js-react 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 +3 -1
- package/index.umd.js +3 -1
- package/lib/NinetailedProvider.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -9,6 +9,7 @@ const NinetailedProvider = ({
|
|
|
9
9
|
children,
|
|
10
10
|
clientId,
|
|
11
11
|
environment,
|
|
12
|
+
preview,
|
|
12
13
|
url,
|
|
13
14
|
profile,
|
|
14
15
|
locale,
|
|
@@ -16,7 +17,8 @@ const NinetailedProvider = ({
|
|
|
16
17
|
}) => {
|
|
17
18
|
const ninetailed = useMemo(() => new Ninetailed({
|
|
18
19
|
clientId,
|
|
19
|
-
environment
|
|
20
|
+
environment,
|
|
21
|
+
preview
|
|
20
22
|
}, {
|
|
21
23
|
url,
|
|
22
24
|
plugins: _plugins,
|
package/index.umd.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
var children = _a.children,
|
|
16
16
|
clientId = _a.clientId,
|
|
17
17
|
environment = _a.environment,
|
|
18
|
+
preview = _a.preview,
|
|
18
19
|
url = _a.url,
|
|
19
20
|
profile = _a.profile,
|
|
20
21
|
locale = _a.locale,
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
var ninetailed = React.useMemo(function () {
|
|
24
25
|
return new experience_js.Ninetailed({
|
|
25
26
|
clientId: clientId,
|
|
26
|
-
environment: environment
|
|
27
|
+
environment: environment,
|
|
28
|
+
preview: preview
|
|
27
29
|
}, {
|
|
28
30
|
url: url,
|
|
29
31
|
plugins: plugins,
|
|
@@ -4,6 +4,7 @@ import { Profile, Locale } from '@ninetailed/experience.js-shared';
|
|
|
4
4
|
export declare type NinetailedProviderProps = {
|
|
5
5
|
clientId: string;
|
|
6
6
|
environment?: string;
|
|
7
|
+
preview?: boolean;
|
|
7
8
|
url?: string;
|
|
8
9
|
plugins?: (AnalyticsPlugin | AnalyticsPlugin[])[];
|
|
9
10
|
profile?: Profile;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { NinetailedProvider, NinetailedProviderProps, } from './NinetailedProvider';
|
|
2
2
|
export { useNinetailed } from './useNinetailed';
|
|
3
3
|
export { useProfile } from './useProfile';
|
|
4
|
-
export { Personalize } from './Personalize';
|
|
4
|
+
export { Personalize, PersonalizedComponent } from './Personalize';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=16.8.0"
|
|
6
6
|
},
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@analytics/google-analytics": "0.5.3",
|
|
9
9
|
"react-visibility-sensor": "5.1.1",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
|
-
"@ninetailed/experience.js": "1.0.0-beta.
|
|
11
|
+
"@ninetailed/experience.js": "1.0.0-beta.20",
|
|
12
12
|
"analytics": "^0.8.0",
|
|
13
|
-
"@ninetailed/experience.js-shared": "1.0.0-beta.
|
|
13
|
+
"@ninetailed/experience.js-shared": "1.0.0-beta.20",
|
|
14
14
|
"uuid": "^8.3.2",
|
|
15
15
|
"ts-toolbelt": "^9.6.0",
|
|
16
16
|
"locale-enum": "^1.1.1",
|