@adobe/alloy 2.28.1 → 2.29.0-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.
- package/libEs5/components/Advertising/configValidators.js +26 -0
- package/libEs5/components/Advertising/constants/index.js +78 -0
- package/libEs5/components/Advertising/createComponent.js +59 -0
- package/libEs5/components/Advertising/handlers/clickThroughHandler.js +81 -0
- package/libEs5/components/Advertising/handlers/createAdConversionHandler.js +55 -0
- package/libEs5/components/Advertising/handlers/onBeforeSendEventHandler.js +69 -0
- package/libEs5/components/Advertising/handlers/sendAdConversion.js +67 -0
- package/libEs5/components/Advertising/handlers/viewThroughHandler.js +56 -0
- package/libEs5/components/Advertising/identities/collectAllIdentities.js +34 -0
- package/libEs5/components/Advertising/identities/collectID5Id.js +112 -0
- package/libEs5/components/Advertising/identities/collectRampId.js +183 -0
- package/libEs5/components/Advertising/identities/collectSurferId.js +146 -0
- package/libEs5/components/Advertising/index.js +52 -0
- package/libEs5/components/Advertising/utils/advertisingCookieManager.js +80 -0
- package/libEs5/components/Advertising/utils/helpers.js +123 -0
- package/libEs5/components/DataCollector/validateUserEventOptions.js +5 -1
- package/libEs5/constants/consentStatus.js +5 -2
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/core/componentCreators.js +8 -1
- package/libEs5/utils/dom/index.js +7 -0
- package/libEs5/utils/dom/loadScript.js +93 -0
- package/libEs6/components/Advertising/configValidators.js +24 -0
- package/libEs6/components/Advertising/constants/index.js +75 -0
- package/libEs6/components/Advertising/createComponent.js +56 -0
- package/libEs6/components/Advertising/handlers/clickThroughHandler.js +79 -0
- package/libEs6/components/Advertising/handlers/createAdConversionHandler.js +52 -0
- package/libEs6/components/Advertising/handlers/onBeforeSendEventHandler.js +66 -0
- package/libEs6/components/Advertising/handlers/sendAdConversion.js +65 -0
- package/libEs6/components/Advertising/handlers/viewThroughHandler.js +53 -0
- package/libEs6/components/Advertising/identities/collectAllIdentities.js +31 -0
- package/libEs6/components/Advertising/identities/collectID5Id.js +108 -0
- package/libEs6/components/Advertising/identities/collectRampId.js +179 -0
- package/libEs6/components/Advertising/identities/collectSurferId.js +143 -0
- package/libEs6/components/Advertising/index.js +49 -0
- package/libEs6/components/Advertising/utils/advertisingCookieManager.js +77 -0
- package/libEs6/components/Advertising/utils/helpers.js +113 -0
- package/libEs6/components/DataCollector/validateUserEventOptions.js +6 -2
- package/libEs6/constants/consentStatus.js +4 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/core/componentCreators.js +2 -1
- package/libEs6/utils/dom/index.js +1 -0
- package/libEs6/utils/dom/loadScript.js +90 -0
- package/package.json +2 -2
- package/types/components/Advertising/configValidators.d.ts +3 -0
- package/types/components/Advertising/configValidators.d.ts.map +1 -0
- package/types/components/Advertising/constants/index.d.ts +46 -0
- package/types/components/Advertising/constants/index.d.ts.map +1 -0
- package/types/components/Advertising/createComponent.d.ts +18 -0
- package/types/components/Advertising/createComponent.d.ts.map +1 -0
- package/types/components/Advertising/handlers/clickThroughHandler.d.ts +22 -0
- package/types/components/Advertising/handlers/clickThroughHandler.d.ts.map +1 -0
- package/types/components/Advertising/handlers/createAdConversionHandler.d.ts +13 -0
- package/types/components/Advertising/handlers/createAdConversionHandler.d.ts.map +1 -0
- package/types/components/Advertising/handlers/onBeforeSendEventHandler.d.ts +21 -0
- package/types/components/Advertising/handlers/onBeforeSendEventHandler.d.ts.map +1 -0
- package/types/components/Advertising/handlers/sendAdConversion.d.ts +10 -0
- package/types/components/Advertising/handlers/sendAdConversion.d.ts.map +1 -0
- package/types/components/Advertising/handlers/viewThroughHandler.d.ts +9 -0
- package/types/components/Advertising/handlers/viewThroughHandler.d.ts.map +1 -0
- package/types/components/Advertising/identities/collectAllIdentities.d.ts +7 -0
- package/types/components/Advertising/identities/collectAllIdentities.d.ts.map +1 -0
- package/types/components/Advertising/identities/collectID5Id.d.ts +3 -0
- package/types/components/Advertising/identities/collectID5Id.d.ts.map +1 -0
- package/types/components/Advertising/identities/collectRampId.d.ts +3 -0
- package/types/components/Advertising/identities/collectRampId.d.ts.map +1 -0
- package/types/components/Advertising/identities/collectSurferId.d.ts +3 -0
- package/types/components/Advertising/identities/collectSurferId.d.ts.map +1 -0
- package/types/components/Advertising/index.d.ts +23 -0
- package/types/components/Advertising/index.d.ts.map +1 -0
- package/types/components/Advertising/utils/advertisingCookieManager.d.ts +9 -0
- package/types/components/Advertising/utils/advertisingCookieManager.d.ts.map +1 -0
- package/types/components/Advertising/utils/helpers.d.ts +23 -0
- package/types/components/Advertising/utils/helpers.d.ts.map +1 -0
- package/types/components/DataCollector/validateUserEventOptions.d.ts.map +1 -1
- package/types/constants/consentStatus.d.ts +3 -0
- package/types/constants/consentStatus.d.ts.map +1 -1
- package/types/core/componentCreators.d.ts +1 -0
- package/types/utils/dom/index.d.ts +1 -0
- package/types/utils/dom/loadScript.d.ts +17 -0
- package/types/utils/dom/loadScript.d.ts.map +1 -0
|
@@ -12,4 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
export const IN = "in";
|
|
14
14
|
export const OUT = "out";
|
|
15
|
-
export const PENDING = "pending";
|
|
15
|
+
export const PENDING = "pending";
|
|
16
|
+
export const DISABLED = "disabled";
|
|
17
|
+
export const WAIT = "wait";
|
|
18
|
+
export const AUTO = "auto";
|
|
@@ -21,4 +21,5 @@ export { default as eventMerge } from "../components/EventMerge/index.js";
|
|
|
21
21
|
export { default as mediaAnalyticsBridge } from "../components/MediaAnalyticsBridge/index.js";
|
|
22
22
|
export { default as personalization } from "../components/Personalization/index.js";
|
|
23
23
|
export { default as rulesEngine } from "../components/RulesEngine/index.js";
|
|
24
|
-
export { default as streamingMedia } from "../components/StreamingMedia/index.js";
|
|
24
|
+
export { default as streamingMedia } from "../components/StreamingMedia/index.js";
|
|
25
|
+
export { default as advertising } from "../components/Advertising/index.js";
|
|
@@ -13,6 +13,7 @@ governing permissions and limitations under the License.
|
|
|
13
13
|
export { default as awaitSelector } from "./awaitSelector.js";
|
|
14
14
|
export { default as appendNode } from "./appendNode.js";
|
|
15
15
|
export { default as createNode } from "./createNode.js";
|
|
16
|
+
export { default as loadScript } from "./loadScript.js";
|
|
16
17
|
export { default as matchesSelector } from "./matchesSelector.js";
|
|
17
18
|
export { default as querySelectorAll } from "./querySelectorAll.js";
|
|
18
19
|
export { default as removeNode } from "./removeNode.js";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2025 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import createNode from "./createNode.js";
|
|
14
|
+
import appendNode from "./appendNode.js";
|
|
15
|
+
let nonce;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns the nonce if available.
|
|
19
|
+
* @param {Node} [context=document] defaults to document
|
|
20
|
+
* @returns {(String|undefined)} the nonce or undefined if not available
|
|
21
|
+
*/
|
|
22
|
+
const getNonce = (context = document) => {
|
|
23
|
+
if (nonce === undefined) {
|
|
24
|
+
const n = context.querySelector("[nonce]");
|
|
25
|
+
// NOTE: We're keeping n.getAttribute("nonce") until it is safe to remove:
|
|
26
|
+
// ref: https://github.com/whatwg/html/issues/2369#issuecomment-280853946
|
|
27
|
+
nonce = n && (n.nonce || n.getAttribute("nonce"));
|
|
28
|
+
}
|
|
29
|
+
return nonce;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Loads an external JavaScript file using Alloy's DOM utilities.
|
|
34
|
+
* Enhanced version that supports additional script attributes.
|
|
35
|
+
* @param {string} url The URL of the script to load.
|
|
36
|
+
* @param {Object} options Additional options for script loading
|
|
37
|
+
* @param {Object} options.attributes Additional attributes to set on script element
|
|
38
|
+
* @param {Function} options.onLoad Optional callback when script loads successfully
|
|
39
|
+
* @param {Function} options.onError Optional callback when script fails to load
|
|
40
|
+
* @returns {Promise<void>} A promise that resolves when the script is loaded or rejects on error.
|
|
41
|
+
*/
|
|
42
|
+
const loadScript = (url, options = {}) => {
|
|
43
|
+
// Check if script already exists
|
|
44
|
+
if (document.querySelector(`script[src="${url}"]`)) {
|
|
45
|
+
if (options.onLoad) options.onLoad();
|
|
46
|
+
return Promise.resolve();
|
|
47
|
+
}
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
const {
|
|
50
|
+
attributes = {},
|
|
51
|
+
onLoad,
|
|
52
|
+
onError
|
|
53
|
+
} = options;
|
|
54
|
+
const script = createNode("script", {
|
|
55
|
+
type: "text/javascript",
|
|
56
|
+
src: url,
|
|
57
|
+
async: true,
|
|
58
|
+
...(getNonce() && {
|
|
59
|
+
nonce: getNonce()
|
|
60
|
+
}),
|
|
61
|
+
...attributes // Allow additional attributes like crossorigin
|
|
62
|
+
}, {
|
|
63
|
+
onload: () => {
|
|
64
|
+
if (onLoad) onLoad();
|
|
65
|
+
resolve();
|
|
66
|
+
},
|
|
67
|
+
onerror: () => {
|
|
68
|
+
const error = new Error(`Failed to load script: ${url}`);
|
|
69
|
+
if (onError) onError(error);
|
|
70
|
+
reject(error);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
const appendToDOM = () => {
|
|
74
|
+
const parent = document.head || document.body;
|
|
75
|
+
if (parent) {
|
|
76
|
+
appendNode(parent, script);
|
|
77
|
+
} else {
|
|
78
|
+
const error = new Error("Neither <head> nor <body> available for script insertion.");
|
|
79
|
+
if (onError) onError(error);
|
|
80
|
+
reject(error);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
if (document.readyState === "loading") {
|
|
84
|
+
document.addEventListener("DOMContentLoaded", appendToDOM);
|
|
85
|
+
} else {
|
|
86
|
+
appendToDOM();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
export default loadScript;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0-beta.0",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "libEs5/index.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"uuid": "^11.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@adobe/alloy": "^2.28.1
|
|
97
|
+
"@adobe/alloy": "^2.28.1",
|
|
98
98
|
"@babel/cli": "^7.27.2",
|
|
99
99
|
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
100
100
|
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configValidators.d.ts","sourceRoot":"","sources":["../../../src/components/Advertising/configValidators.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export const ADVERTISING_COOKIE_KEY: "advertising";
|
|
2
|
+
export const SURFER_ID_COOKIE_KEY: "surfer_id";
|
|
3
|
+
export const RAMP_ID_COOKIE_KEY: "ramp_id";
|
|
4
|
+
export const ID5_COOKIE_KEY: "id5_id";
|
|
5
|
+
export const LAST_CLICK_COOKIE_KEY: "_les_lsc";
|
|
6
|
+
export const LAST_CONVERSION_TIME_KEY: "lastConversionTime";
|
|
7
|
+
export const DISPLAY_CLICK_COOKIE_KEY_EXPIRES: "displayClickCookieExpires";
|
|
8
|
+
export const RAMP_ID_EXPIRES: "rampIdExpires";
|
|
9
|
+
export const LAST_CONVERSION_TIME_KEY_EXPIRES: "lastConversionTimeExpires";
|
|
10
|
+
export const SKWCID_PARAM: "s_kwcid";
|
|
11
|
+
export const EFID_PARAM: "ef_id";
|
|
12
|
+
export const SURFER_ID: "surferId";
|
|
13
|
+
export const RAMP_ID: "rampId";
|
|
14
|
+
export const ID5_ID: "id5Id";
|
|
15
|
+
export const UNKNOWN_ADVERTISER: "";
|
|
16
|
+
export const DEFAULT_THROTTLE_MINUTES: 30;
|
|
17
|
+
export const DEFAULT_COOKIE_EXPIRATION_MINUTES: 527040;
|
|
18
|
+
export const AD_CONVERSION_CLICK_EVENT_TYPE: "advertising.enrichment_ct";
|
|
19
|
+
export const AD_CONVERSION_VIEW_EVENT_TYPE: "advertising.enrichment";
|
|
20
|
+
export const XDM_AD_CLOUD_PATH: "_experience.adloud";
|
|
21
|
+
export const XDM_AD_ASSET_REFERENCE: "adAssetReference";
|
|
22
|
+
export const XDM_AD_STITCH_DATA: "adStitchData";
|
|
23
|
+
export const XDM_AD_ASSET_DATA: "adAssetData";
|
|
24
|
+
export const XDM_ADVERTISER: "advertiser";
|
|
25
|
+
export const TRACKING_CODE: "trackingCode";
|
|
26
|
+
export const TRACKING_IDENTITIES: "trackingIdentities";
|
|
27
|
+
export const ID5_SCRIPT_URL: "https://www.everestjs.net/static/id5-api.js";
|
|
28
|
+
export const SURFER_PIXEL_HOST: "pixel.everesttech.net";
|
|
29
|
+
export const SURFER_USER_ID: "1";
|
|
30
|
+
export const SURFER_TIMEOUT_MS: 5000;
|
|
31
|
+
export const SURFER_TRUSTED_ORIGIN: "www.everestjs.net";
|
|
32
|
+
export const SURFER_PARAM_KEY: "gsurfer";
|
|
33
|
+
export const ERROR_ID5_PARTNER_ID_REQUIRED: "ID5 partner ID is required";
|
|
34
|
+
export const ERROR_RAMP_ID_MAX_RETRIES: "Failed to retrieve RampID after maximum retries";
|
|
35
|
+
export const LOG_AD_CONVERSION_START: "Processing ad conversion";
|
|
36
|
+
export const LOG_COOKIE_WRITTEN: "Ad tracking data saved";
|
|
37
|
+
export const LOG_CONVERSION_TIME_UPDATED: "Conversion timing recorded";
|
|
38
|
+
export const LOG_SENDING_CONVERSION: "Submitting ad conversion data";
|
|
39
|
+
export const LOG_ALL_IDS_THROTTLED: "Ad conversion paused to prevent duplicate submissions";
|
|
40
|
+
export const LOG_ALL_IDS_USED: "Ad conversion already processed";
|
|
41
|
+
export const LOG_ID_RESOLVED: "Ad identity available";
|
|
42
|
+
export const LOG_ERROR_RESOLVING_ID: "Unable to obtain ad identity";
|
|
43
|
+
export const LOG_ID_CONVERSION_SUCCESS: "Ad conversion submitted successfully";
|
|
44
|
+
export const LOG_AD_CONVERSION_FAILED: "Ad conversion submission failed";
|
|
45
|
+
export const DISPLAY_CLICK_COOKIE_KEY: "ev_lcc";
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/constants/index.js"],"names":[],"mappings":"AAaA,qCAAsC,aAAa,CAAC;AACpD,mCAAoC,WAAW,CAAC;AAChD,iCAAkC,SAAS,CAAC;AAC5C,6BAA8B,QAAQ,CAAC;AACvC,oCAAqC,UAAU,CAAC;AAChD,uCAAwC,oBAAoB,CAAC;AAC7D,+CAAgD,2BAA2B,CAAC;AAC5E,8BAA+B,eAAe,CAAC;AAC/C,+CAAgD,2BAA2B,CAAC;AAE5E,2BAA4B,SAAS,CAAC;AACtC,yBAA0B,OAAO,CAAC;AAGlC,wBAAyB,UAAU,CAAC;AACpC,sBAAuB,QAAQ,CAAC;AAChC,qBAAsB,OAAO,CAAC;AAG9B,iCAAkC,EAAE,CAAC;AACrC,uCAAwC,EAAE,CAAC;AAC3C,gDAAiD,MAAM,CAAC;AAGxD,6CAA8C,2BAA2B,CAAC;AAC1E,4CAA6C,wBAAwB,CAAC;AAGtE,gCAAiC,oBAAoB,CAAC;AACtD,qCAAsC,kBAAkB,CAAC;AACzD,iCAAkC,cAAc,CAAC;AACjD,gCAAiC,aAAa,CAAC;AAC/C,6BAA8B,YAAY,CAAC;AAC3C,4BAA6B,cAAc,CAAC;AAC5C,kCAAmC,oBAAoB,CAAC;AAGxD,6BAA8B,6CAA6C,CAAC;AAG5E,gCAAiC,uBAAuB,CAAC;AACzD,6BAA8B,GAAG,CAAC;AAClC,gCAAiC,IAAI,CAAC;AACtC,oCAAqC,mBAAmB,CAAC;AACzD,+BAAgC,SAAS,CAAC;AAG1C,4CAA6C,4BAA4B,CAAC;AAC1E,wCACE,iDAAiD,CAAC;AAGpD,sCAAuC,0BAA0B,CAAC;AAClE,iCAAkC,wBAAwB,CAAC;AAC3D,0CAA2C,4BAA4B,CAAC;AACxE,qCAAsC,+BAA+B,CAAC;AACtE,oCACE,uDAAuD,CAAC;AAC1D,+BAAgC,iCAAiC,CAAC;AAClE,8BAA+B,uBAAuB,CAAC;AACvD,qCAAsC,8BAA8B,CAAC;AACrE,wCAAyC,sCAAsC,CAAC;AAChF,uCAAwC,iCAAiC,CAAC;AAC1E,uCAAwC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function _default({ logger, config, eventManager, cookieManager, adConversionHandler, getBrowser, }: {
|
|
2
|
+
logger: any;
|
|
3
|
+
config: any;
|
|
4
|
+
eventManager: any;
|
|
5
|
+
cookieManager: any;
|
|
6
|
+
adConversionHandler: any;
|
|
7
|
+
getBrowser: any;
|
|
8
|
+
}): {
|
|
9
|
+
lifecycle: {
|
|
10
|
+
onComponentsRegistered(): void;
|
|
11
|
+
onBeforeEvent: ({ event, advertising }: {
|
|
12
|
+
event: any;
|
|
13
|
+
advertising?: {};
|
|
14
|
+
}) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=createComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../src/components/Advertising/createComponent.js"],"names":[],"mappings":"AAee;;;;;;;;;;;;;;;EAyCd"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles click-through ad conversions
|
|
3
|
+
* @param {Object} params - All required parameters
|
|
4
|
+
* @param {Object} params.eventManager - Event manager for creating events
|
|
5
|
+
* @param {Object} params.cookieManager - Session manager for cookie operations
|
|
6
|
+
* @param {Object} params.adConversionHandler - Handler for sending ad conversion events
|
|
7
|
+
* @param {Object} params.logger - Logger instance
|
|
8
|
+
* @param {string} params.skwcid - Search keyword click ID
|
|
9
|
+
* @param {string} params.efid - EF ID parameter
|
|
10
|
+
* @param {Object} params.optionsFromCommand - Additional options from command
|
|
11
|
+
* @returns {Promise} Result of the ad conversion tracking
|
|
12
|
+
*/
|
|
13
|
+
export default function handleClickThrough({ eventManager, cookieManager, adConversionHandler, logger, skwcid, efid, }: {
|
|
14
|
+
eventManager: any;
|
|
15
|
+
cookieManager: any;
|
|
16
|
+
adConversionHandler: any;
|
|
17
|
+
logger: any;
|
|
18
|
+
skwcid: string;
|
|
19
|
+
efid: string;
|
|
20
|
+
optionsFromCommand: any;
|
|
21
|
+
}): Promise<any>;
|
|
22
|
+
//# sourceMappingURL=clickThroughHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clickThroughHandler.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/handlers/clickThroughHandler.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;GAWG;AACH,wHATG;IAAuB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,MAAM;IACN,MAAM,EAArB,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,kBAAkB;CACzC,gBAuDF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare function _default({ sendEdgeNetworkRequest, consent, createDataCollectionRequest, createDataCollectionRequestPayload, logger, }: {
|
|
2
|
+
sendEdgeNetworkRequest: any;
|
|
3
|
+
consent: any;
|
|
4
|
+
createDataCollectionRequest: any;
|
|
5
|
+
createDataCollectionRequestPayload: any;
|
|
6
|
+
logger: any;
|
|
7
|
+
}): {
|
|
8
|
+
trackAdConversion: ({ event }: {
|
|
9
|
+
event: any;
|
|
10
|
+
}) => any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=createAdConversionHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAdConversionHandler.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/handlers/createAdConversionHandler.js"],"names":[],"mappings":"AAgBe;;;;;;;;;;EAiCd"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Appends advertising identity IDs to AEP event query if not already added.
|
|
3
|
+
* @param {Object} params
|
|
4
|
+
* @param {Object} params.cookieManager
|
|
5
|
+
* @param {Object} params.logger
|
|
6
|
+
* @param {Object} params.state
|
|
7
|
+
* @param {Object} params.event
|
|
8
|
+
* @param {Object} params.componentConfig
|
|
9
|
+
* @param {Object} params.advertising
|
|
10
|
+
* @param {Function} params.getBrowser
|
|
11
|
+
*/
|
|
12
|
+
export default function handleOnBeforeSendEvent({ cookieManager, logger, event, componentConfig, advertising, getBrowser, }: {
|
|
13
|
+
cookieManager: any;
|
|
14
|
+
logger: any;
|
|
15
|
+
state: any;
|
|
16
|
+
event: any;
|
|
17
|
+
componentConfig: any;
|
|
18
|
+
advertising: any;
|
|
19
|
+
getBrowser: Function;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=onBeforeSendEventHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onBeforeSendEventHandler.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/handlers/onBeforeSendEventHandler.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AACH,6HARG;IAAuB,aAAa;IACb,MAAM;IACN,KAAK;IACL,KAAK;IACL,eAAe;IACf,WAAW;IACT,UAAU;CACrC,iBAiFA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare function _default({ eventManager, cookieManager, adConversionHandler, logger, componentConfig, getBrowser, }: {
|
|
2
|
+
eventManager: any;
|
|
3
|
+
cookieManager: any;
|
|
4
|
+
adConversionHandler: any;
|
|
5
|
+
logger: any;
|
|
6
|
+
componentConfig: any;
|
|
7
|
+
getBrowser: any;
|
|
8
|
+
}): () => Promise<any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=sendAdConversion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendAdConversion.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/handlers/sendAdConversion.js"],"names":[],"mappings":"AAqBe;;;;;;;uBA4Cd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default function handleViewThrough({ eventManager, cookieManager, logger, componentConfig, adConversionHandler, getBrowser, }: {
|
|
2
|
+
eventManager: any;
|
|
3
|
+
cookieManager: any;
|
|
4
|
+
logger: any;
|
|
5
|
+
componentConfig: any;
|
|
6
|
+
adConversionHandler: any;
|
|
7
|
+
getBrowser: any;
|
|
8
|
+
}): Promise<PromiseSettledResult<any>[]>;
|
|
9
|
+
//# sourceMappingURL=viewThroughHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewThroughHandler.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/handlers/viewThroughHandler.js"],"names":[],"mappings":"AAkBA;;;;;;;yCAkEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectAllIdentities.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/identities/collectAllIdentities.js"],"names":[],"mappings":";AAkBA;;;;EAsCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectID5Id.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/identities/collectID5Id.js"],"names":[],"mappings":"AA+GA,0HAmBC;AA/GD,wFA0FC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function getRampId(logger: any, rampIdScriptPath: any, cookieManager: any, resolveRampIdIfNotAvailable?: boolean, useShortTimeout?: boolean): any;
|
|
2
|
+
export function initiateRampIDCall(rampIdScriptPath: any, cookieManager: any, logger: any, useShortTimeout?: boolean): any;
|
|
3
|
+
//# sourceMappingURL=collectRampId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectRampId.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/identities/collectRampId.js"],"names":[],"mappings":"AA2OA,yJA2BC;AA7ID,2HAgHC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectSurferId.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/identities/collectSurferId.js"],"names":[],"mappings":";AAwIA,oHA+CC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default createAdvertising;
|
|
2
|
+
declare function createAdvertising({ logger, config, eventManager, sendEdgeNetworkRequest, consent, getBrowser, }: {
|
|
3
|
+
logger: any;
|
|
4
|
+
config: any;
|
|
5
|
+
eventManager: any;
|
|
6
|
+
sendEdgeNetworkRequest: any;
|
|
7
|
+
consent: any;
|
|
8
|
+
getBrowser: any;
|
|
9
|
+
}): {
|
|
10
|
+
lifecycle: {
|
|
11
|
+
onComponentsRegistered(): void;
|
|
12
|
+
onBeforeEvent: ({ event, advertising }: {
|
|
13
|
+
event: any;
|
|
14
|
+
advertising?: {};
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare namespace createAdvertising {
|
|
19
|
+
export let namespace: string;
|
|
20
|
+
export { configValidators };
|
|
21
|
+
}
|
|
22
|
+
import configValidators from "./configValidators.js";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Advertising/index.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;;;;EA6BC;;;;;6BArC4B,uBAAuB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function _default({ orgId, logger }: {
|
|
2
|
+
orgId: any;
|
|
3
|
+
logger: any;
|
|
4
|
+
}): {
|
|
5
|
+
setValue: (key: any, value: any, options?: {}) => boolean;
|
|
6
|
+
getValue: (key: any) => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=advertisingCookieManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advertisingCookieManager.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/utils/advertisingCookieManager.js"],"names":[],"mappings":"AAoBe;;;;;;EAuEd"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function getUrlParams(): {
|
|
2
|
+
skwcid: any;
|
|
3
|
+
efid: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Normalizes advertiser settings - extracts enabled advertiser IDs
|
|
7
|
+
* @param {Object[]} advertiserSettings - Array of advertiserSettings objects with advertiserId and enabled properties
|
|
8
|
+
* @returns {string} Comma-separated string of enabled advertiser IDs
|
|
9
|
+
*/
|
|
10
|
+
export function normalizeAdvertiser(advertiserSettings: any[]): string;
|
|
11
|
+
/**
|
|
12
|
+
* Manages a single, ongoing asynchronous operation to prevent redundant calls.
|
|
13
|
+
* @param {string} operationName - A name for the operation for logging purposes.
|
|
14
|
+
* @param {Function} workerFn - A function that returns a Promise to be executed.
|
|
15
|
+
* @returns {Function} A function that, when called, will either start the worker or return the in-progress promise.
|
|
16
|
+
*/
|
|
17
|
+
export function createManagedAsyncOperation(operationName: string, workerFn: Function): Function;
|
|
18
|
+
export function appendAdvertisingIdQueryToEvent(idsToInclude: any, event: any, cookieManager: any, componentConfig: any, addEventType?: boolean): any;
|
|
19
|
+
export function isAnyIdUnused(availableIds: any, conversionCalled: any): boolean;
|
|
20
|
+
export function markIdsAsConverted(idTypes: any, conversionCalled: any, cookieManager: any, logger: any): void;
|
|
21
|
+
export function isThrottled(idType: any, cookieManager: any): boolean;
|
|
22
|
+
export function shouldThrottle(idType: any, cookieManager: any): boolean;
|
|
23
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/Advertising/utils/helpers.js"],"names":[],"mappings":"AA6BA;;;EAMC;AAuBD;;;;GAIG;AACH,wDAHW,KAAQ,GACN,MAAM,CAWlB;AAnCD;;;;;GAKG;AACH,2DAJW,MAAM,gCAiBhB;AAkBD,sJAsCC;AAED,iFAIC;AAED,+GAeC;AAED,sEAUC;AAED,yEAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateUserEventOptions.d.ts","sourceRoot":"","sources":["../../../src/components/DataCollector/validateUserEventOptions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateUserEventOptions.d.ts","sourceRoot":"","sources":["../../../src/components/DataCollector/validateUserEventOptions.js"],"names":[],"mappings":"AA6Be,uCAHJ,GAAC,GACC,GAAC,CA+Bb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consentStatus.d.ts","sourceRoot":"","sources":["../../src/constants/consentStatus.js"],"names":[],"mappings":"AAYA,iBAAkB,IAAI,CAAC;AACvB,kBAAmB,KAAK,CAAC;AACzB,sBAAuB,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"consentStatus.d.ts","sourceRoot":"","sources":["../../src/constants/consentStatus.js"],"names":[],"mappings":"AAYA,iBAAkB,IAAI,CAAC;AACvB,kBAAmB,KAAK,CAAC;AACzB,sBAAuB,SAAS,CAAC;AACjC,uBAAwB,UAAU,CAAC;AACnC,mBAAoB,MAAM,CAAC;AAC3B,mBAAoB,MAAM,CAAC"}
|
|
@@ -6,4 +6,5 @@ export { default as mediaAnalyticsBridge } from "../components/MediaAnalyticsBri
|
|
|
6
6
|
export { default as personalization } from "../components/Personalization/index.js";
|
|
7
7
|
export { default as rulesEngine } from "../components/RulesEngine/index.js";
|
|
8
8
|
export { default as streamingMedia } from "../components/StreamingMedia/index.js";
|
|
9
|
+
export { default as advertising } from "../components/Advertising/index.js";
|
|
9
10
|
//# sourceMappingURL=componentCreators.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as awaitSelector } from "./awaitSelector.js";
|
|
2
2
|
export { default as appendNode } from "./appendNode.js";
|
|
3
3
|
export { default as createNode } from "./createNode.js";
|
|
4
|
+
export { default as loadScript } from "./loadScript.js";
|
|
4
5
|
export { default as matchesSelector } from "./matchesSelector.js";
|
|
5
6
|
export { default as querySelectorAll } from "./querySelectorAll.js";
|
|
6
7
|
export { default as removeNode } from "./removeNode.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default loadScript;
|
|
2
|
+
/**
|
|
3
|
+
* Loads an external JavaScript file using Alloy's DOM utilities.
|
|
4
|
+
* Enhanced version that supports additional script attributes.
|
|
5
|
+
* @param {string} url The URL of the script to load.
|
|
6
|
+
* @param {Object} options Additional options for script loading
|
|
7
|
+
* @param {Object} options.attributes Additional attributes to set on script element
|
|
8
|
+
* @param {Function} options.onLoad Optional callback when script loads successfully
|
|
9
|
+
* @param {Function} options.onError Optional callback when script fails to load
|
|
10
|
+
* @returns {Promise<void>} A promise that resolves when the script is loaded or rejects on error.
|
|
11
|
+
*/
|
|
12
|
+
declare function loadScript(url: string, options?: {
|
|
13
|
+
attributes: any;
|
|
14
|
+
onLoad: Function;
|
|
15
|
+
onError: Function;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
//# sourceMappingURL=loadScript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadScript.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/loadScript.js"],"names":[],"mappings":";AAgCA;;;;;;;;;GASG;AACH,iCAPW,MAAM,YAEd;IAAwB,UAAU;IACR,MAAM;IACN,OAAO;CACjC,GAAU,OAAO,CAAC,IAAI,CAAC,CAqDzB"}
|