@sitecore-cloudsdk/personalize
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"license": "Apache-2.0", | ||
@@ -19,5 +19,5 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.2", | ||
"@sitecore-cloudsdk/events": "^0.4.2", | ||
"@sitecore-cloudsdk/utils": "^0.4.2" | ||
"@sitecore-cloudsdk/core": "^0.4.3", | ||
"@sitecore-cloudsdk/events": "^0.4.3", | ||
"@sitecore-cloudsdk/utils": "^0.4.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
@@ -9,5 +9,6 @@ export declare const PERSONALIZE_NAMESPACE: "sitecore-cloudsdk:personalize"; | ||
IE_0007 = "[IE-0007] You must first initialize the \"personalize/server\" module. Run the \"init\" function.", | ||
IE_0016 = "[IE-0016] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\".", | ||
IE_0017 = "[IE-0017] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\".", | ||
IE_0008 = "[IE-0008] You must first initialize the \"core\" package. Run the \"init\" function.", | ||
IE_0016 = "[IE-0016] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\".", | ||
IE_0017 = "[IE-0017] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\".", | ||
MV_0004 = "[MV-0004] \"friendlyId\" is required." | ||
} |
@@ -20,7 +20,8 @@ "use strict"; | ||
ErrorMessages["IE_0007"] = "[IE-0007] You must first initialize the \"personalize/server\" module. Run the \"init\" function."; | ||
ErrorMessages["IE_0008"] = "[IE-0008] You must first initialize the \"core\" package. Run the \"init\" function."; | ||
// eslint-disable-next-line max-len | ||
ErrorMessages["IE_0016"] = "[IE-0016] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["IE_0016"] = "[IE-0016] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\"."; | ||
// eslint-disable-next-line max-len | ||
ErrorMessages["IE_0017"] = "[IE-0017] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["IE_0017"] = "[IE-0017] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["MV_0004"] = "[MV-0004] \"friendlyId\" is required."; | ||
})(ErrorMessages || (exports.ErrorMessages = ErrorMessages = {})); |
import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
import { type EPResponse } from '@sitecore-cloudsdk/core/internal'; | ||
import type { EventData, IdentityData } from '@sitecore-cloudsdk/events/browser'; | ||
import type { BrowserSettings } from './interfaces'; | ||
@@ -24,10 +22,3 @@ export declare function sideEffects(): Promise<void>; | ||
version: string; | ||
pageView?: () => Promise<EPResponse | null>; | ||
identity?: (identityData: IdentityData) => Promise<EPResponse | null>; | ||
form?: (formId: string, interactionType: 'VIEWED' | 'SUBMITTED', componentInstanceId: string) => Promise<EPResponse | null>; | ||
event?: (eventData: EventData) => Promise<EPResponse | null>; | ||
addToEventQueue?: (eventData: EventData) => Promise<void>; | ||
processEventQueue?: () => Promise<void>; | ||
clearEventQueue?: () => Promise<void>; | ||
} | ||
} |
@@ -24,12 +24,2 @@ "use strict"; | ||
window.scCloudSDK.personalize.settings = personalizeSettings.webPersonalization; | ||
window.scCloudSDK.personalize = { | ||
...window.scCloudSDK.personalize, | ||
addToEventQueue: browser_2.addToEventQueue, | ||
clearEventQueue: browser_2.clearEventQueue, | ||
event: browser_2.event, | ||
form: browser_2.form, | ||
identity: browser_2.identity, | ||
pageView: browser_2.pageView, | ||
processEventQueue: browser_2.processEventQueue | ||
}; | ||
const cdnUrl = await (0, get_cdn_url_1.getCdnUrl)(cloudSDKSettings.sitecoreEdgeContextId, cloudSDKSettings.sitecoreEdgeUrl); | ||
@@ -36,0 +26,0 @@ if (cdnUrl) |
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"license": "Apache-2.0", | ||
@@ -19,5 +19,5 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.2", | ||
"@sitecore-cloudsdk/events": "^0.4.2", | ||
"@sitecore-cloudsdk/utils": "^0.4.2" | ||
"@sitecore-cloudsdk/core": "^0.4.3", | ||
"@sitecore-cloudsdk/events": "^0.4.3", | ||
"@sitecore-cloudsdk/utils": "^0.4.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
@@ -9,5 +9,6 @@ export declare const PERSONALIZE_NAMESPACE: "sitecore-cloudsdk:personalize"; | ||
IE_0007 = "[IE-0007] You must first initialize the \"personalize/server\" module. Run the \"init\" function.", | ||
IE_0016 = "[IE-0016] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\".", | ||
IE_0017 = "[IE-0017] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\".", | ||
IE_0008 = "[IE-0008] You must first initialize the \"core\" package. Run the \"init\" function.", | ||
IE_0016 = "[IE-0016] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\".", | ||
IE_0017 = "[IE-0017] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\".", | ||
MV_0004 = "[MV-0004] \"friendlyId\" is required." | ||
} |
@@ -14,7 +14,8 @@ // © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
ErrorMessages["IE_0007"] = "[IE-0007] You must first initialize the \"personalize/server\" module. Run the \"init\" function."; | ||
ErrorMessages["IE_0008"] = "[IE-0008] You must first initialize the \"core\" package. Run the \"init\" function."; | ||
// eslint-disable-next-line max-len | ||
ErrorMessages["IE_0016"] = "[IE-0016] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["IE_0016"] = "[IE-0016] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/browser\" and import \"@sitecore-cloudsdk/personalize/browser\". Then, run \"CloudSDK().addPersonalize().initialize()\"."; | ||
// eslint-disable-next-line max-len | ||
ErrorMessages["IE_0017"] = "[IE-0017] - You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["IE_0017"] = "[IE-0017] You must first initialize the Cloud SDK and the \"personalize\" package. First, import \"CloudSDK\" from \"@sitecore-cloudsdk/core/server\", and import \"@sitecore-cloudsdk/personalize/server\". Then, run \"await CloudSDK().addPersonalize().initialize()\"."; | ||
ErrorMessages["MV_0004"] = "[MV-0004] \"friendlyId\" is required."; | ||
})(ErrorMessages || (ErrorMessages = {})); |
import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
import { type EPResponse } from '@sitecore-cloudsdk/core/internal'; | ||
import type { EventData, IdentityData } from '@sitecore-cloudsdk/events/browser'; | ||
import type { BrowserSettings } from './interfaces'; | ||
@@ -24,10 +22,3 @@ export declare function sideEffects(): Promise<void>; | ||
version: string; | ||
pageView?: () => Promise<EPResponse | null>; | ||
identity?: (identityData: IdentityData) => Promise<EPResponse | null>; | ||
form?: (formId: string, interactionType: 'VIEWED' | 'SUBMITTED', componentInstanceId: string) => Promise<EPResponse | null>; | ||
event?: (eventData: EventData) => Promise<EPResponse | null>; | ||
addToEventQueue?: (eventData: EventData) => Promise<void>; | ||
processEventQueue?: () => Promise<void>; | ||
clearEventQueue?: () => Promise<void>; | ||
} | ||
} |
// © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
import { COOKIE_NAME_PREFIX, debug, enabledPackagesBrowser as enabledPackages, getCloudSDKSettingsBrowser as getCloudSDKSettings, getEnabledPackageBrowser, PackageInitializer } from '@sitecore-cloudsdk/core/internal'; | ||
import { addToEventQueue, clearEventQueue, event, PACKAGE_NAME as EVENTS_PACKAGE_NAME, form, identity, PACKAGE_INITIALIZER_METHOD_NAME, pageView, processEventQueue } from '@sitecore-cloudsdk/events/browser'; | ||
import { PACKAGE_NAME as EVENTS_PACKAGE_NAME, PACKAGE_INITIALIZER_METHOD_NAME } from '@sitecore-cloudsdk/events/browser'; | ||
import { appendScriptWithAttributes } from '@sitecore-cloudsdk/utils'; | ||
@@ -21,12 +21,2 @@ import { PACKAGE_NAME, PACKAGE_VERSION, PERSONALIZE_NAMESPACE } from '../../consts'; | ||
window.scCloudSDK.personalize.settings = personalizeSettings.webPersonalization; | ||
window.scCloudSDK.personalize = { | ||
...window.scCloudSDK.personalize, | ||
addToEventQueue, | ||
clearEventQueue, | ||
event, | ||
form, | ||
identity, | ||
pageView, | ||
processEventQueue | ||
}; | ||
const cdnUrl = await getCdnUrl(cloudSDKSettings.sitecoreEdgeContextId, cloudSDKSettings.sitecoreEdgeUrl); | ||
@@ -33,0 +23,0 @@ if (cdnUrl) |
{ | ||
"name": "@sitecore-cloudsdk/personalize", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"license": "Apache-2.0", | ||
@@ -19,5 +19,5 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.2", | ||
"@sitecore-cloudsdk/events": "^0.4.2", | ||
"@sitecore-cloudsdk/utils": "^0.4.2" | ||
"@sitecore-cloudsdk/core": "^0.4.3", | ||
"@sitecore-cloudsdk/events": "^0.4.3", | ||
"@sitecore-cloudsdk/utils": "^0.4.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
169539
1715