@dotcms/uve 0.0.1-beta.22 → 0.0.1-beta.24
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.cjs2.js +3 -1
- package/index.esm2.js +3 -1
- package/package.json +1 -1
- package/src/lib/types/editor/public.d.ts +2 -0
package/index.cjs2.js
CHANGED
|
@@ -1075,6 +1075,7 @@ function getUVEState() {
|
|
|
1075
1075
|
const variantName = url.searchParams.get('variantName');
|
|
1076
1076
|
const experimentId = url.searchParams.get('experimentId');
|
|
1077
1077
|
const publishDate = url.searchParams.get('publishDate');
|
|
1078
|
+
const dotCMSHost = url.searchParams.get('dotCMSHost');
|
|
1078
1079
|
if (!possibleModes.includes(mode)) {
|
|
1079
1080
|
mode = types.UVE_MODE.EDIT;
|
|
1080
1081
|
}
|
|
@@ -1084,7 +1085,8 @@ function getUVEState() {
|
|
|
1084
1085
|
persona,
|
|
1085
1086
|
variantName,
|
|
1086
1087
|
experimentId,
|
|
1087
|
-
publishDate
|
|
1088
|
+
publishDate,
|
|
1089
|
+
dotCMSHost
|
|
1088
1090
|
};
|
|
1089
1091
|
}
|
|
1090
1092
|
/**
|
package/index.esm2.js
CHANGED
|
@@ -1073,6 +1073,7 @@ function getUVEState() {
|
|
|
1073
1073
|
const variantName = url.searchParams.get('variantName');
|
|
1074
1074
|
const experimentId = url.searchParams.get('experimentId');
|
|
1075
1075
|
const publishDate = url.searchParams.get('publishDate');
|
|
1076
|
+
const dotCMSHost = url.searchParams.get('dotCMSHost');
|
|
1076
1077
|
if (!possibleModes.includes(mode)) {
|
|
1077
1078
|
mode = UVE_MODE.EDIT;
|
|
1078
1079
|
}
|
|
@@ -1082,7 +1083,8 @@ function getUVEState() {
|
|
|
1082
1083
|
persona,
|
|
1083
1084
|
variantName,
|
|
1084
1085
|
experimentId,
|
|
1085
|
-
publishDate
|
|
1086
|
+
publishDate,
|
|
1087
|
+
dotCMSHost
|
|
1086
1088
|
};
|
|
1087
1089
|
}
|
|
1088
1090
|
/**
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import { DotCMSBasicGraphQLPage, DotCMSPageAsset } from '../page/public';
|
|
|
10
10
|
* @property {string | null} experimentId - The identifier for the current A/B testing experiment
|
|
11
11
|
* @property {string | null} publishDate - The scheduled publish date for content
|
|
12
12
|
* @property {string | null} languageId - The identifier for the current language selection
|
|
13
|
+
* @property {string | null} dotCMSHost - The host of the dotCMS instance
|
|
13
14
|
*/
|
|
14
15
|
export interface UVEState {
|
|
15
16
|
mode: UVE_MODE;
|
|
@@ -18,6 +19,7 @@ export interface UVEState {
|
|
|
18
19
|
experimentId: string | null;
|
|
19
20
|
publishDate: string | null;
|
|
20
21
|
languageId: string | null;
|
|
22
|
+
dotCMSHost: string | null;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* The mode of the page renderer component
|