@adobe/alloy 2.30.1-beta.16 → 2.30.1-beta.18

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.
Files changed (86) hide show
  1. package/libEs5/components/Advertising/handlers/onBeforeSendEventHandler.js +8 -2
  2. package/libEs5/components/Advertising/handlers/viewThroughHandler.js +8 -2
  3. package/libEs5/components/Advertising/identities/collectSurferId.js +8 -1
  4. package/libEs5/components/Consent/types.js +12 -0
  5. package/libEs5/components/EventMerge/createEventMergeId.js +1 -1
  6. package/libEs5/components/Personalization/createComponent.js +3 -1
  7. package/libEs5/components/Personalization/createFetchDataHandler.js +4 -3
  8. package/libEs5/components/Personalization/createNotificationHandler.js +5 -3
  9. package/libEs5/components/Personalization/createOnDecisionHandler.js +4 -3
  10. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +2 -1
  11. package/libEs5/components/Personalization/handlers/createProcessRedirect.js +2 -1
  12. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +4 -1
  13. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +4 -2
  14. package/libEs5/components/Personalization/index.js +1 -1
  15. package/libEs5/components/PushNotifications/types.js +12 -0
  16. package/libEs5/components/RulesEngine/createApplyResponse.js +3 -1
  17. package/libEs5/components/RulesEngine/types.js +12 -0
  18. package/libEs5/constants/libraryVersion.js +1 -1
  19. package/libEs5/core/consent/types.js +12 -0
  20. package/libEs5/core/createEvent.js +3 -0
  21. package/libEs5/core/edgeNetwork/types.js +12 -0
  22. package/libEs5/core/identity/types.js +12 -0
  23. package/libEs5/core/types.js +12 -0
  24. package/libEs5/utils/createCollect.js +4 -2
  25. package/libEs5/utils/request/types.js +12 -0
  26. package/libEs5/utils/types.js +12 -0
  27. package/libEs6/components/Advertising/handlers/onBeforeSendEventHandler.js +8 -2
  28. package/libEs6/components/Advertising/handlers/viewThroughHandler.js +8 -2
  29. package/libEs6/components/Advertising/identities/collectSurferId.js +8 -1
  30. package/libEs6/components/Consent/types.js +12 -0
  31. package/libEs6/components/EventMerge/createEventMergeId.js +1 -1
  32. package/libEs6/components/Personalization/createComponent.js +3 -1
  33. package/libEs6/components/Personalization/createFetchDataHandler.js +4 -3
  34. package/libEs6/components/Personalization/createNotificationHandler.js +5 -3
  35. package/libEs6/components/Personalization/createOnDecisionHandler.js +4 -3
  36. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +2 -1
  37. package/libEs6/components/Personalization/handlers/createProcessRedirect.js +2 -1
  38. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +4 -1
  39. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +4 -2
  40. package/libEs6/components/Personalization/index.js +1 -1
  41. package/libEs6/components/PushNotifications/types.js +12 -0
  42. package/libEs6/components/RulesEngine/createApplyResponse.js +3 -1
  43. package/libEs6/components/RulesEngine/types.js +12 -0
  44. package/libEs6/constants/libraryVersion.js +1 -1
  45. package/libEs6/core/consent/types.js +12 -0
  46. package/libEs6/core/createEvent.js +3 -0
  47. package/libEs6/core/edgeNetwork/types.js +12 -0
  48. package/libEs6/core/identity/types.js +12 -0
  49. package/libEs6/core/types.js +12 -0
  50. package/libEs6/utils/createCollect.js +4 -2
  51. package/libEs6/utils/request/types.js +12 -0
  52. package/libEs6/utils/types.js +12 -0
  53. package/package.json +2 -5
  54. package/scripts/helpers/path.js +12 -0
  55. package/scripts/helpers/versionBabelPlugin.js +12 -0
  56. package/types/components/Advertising/handlers/onBeforeSendEventHandler.d.ts.map +1 -1
  57. package/types/components/Advertising/handlers/viewThroughHandler.d.ts.map +1 -1
  58. package/types/components/Advertising/identities/collectSurferId.d.ts.map +1 -1
  59. package/types/components/Consent/types.d.ts.map +1 -1
  60. package/types/components/Personalization/createComponent.d.ts.map +1 -1
  61. package/types/components/Personalization/createFetchDataHandler.d.ts +2 -1
  62. package/types/components/Personalization/createFetchDataHandler.d.ts.map +1 -1
  63. package/types/components/Personalization/createNotificationHandler.d.ts +1 -1
  64. package/types/components/Personalization/createNotificationHandler.d.ts.map +1 -1
  65. package/types/components/Personalization/createOnDecisionHandler.d.ts +2 -1
  66. package/types/components/Personalization/createOnDecisionHandler.d.ts.map +1 -1
  67. package/types/components/Personalization/handlers/createProcessInAppMessage.d.ts.map +1 -1
  68. package/types/components/Personalization/handlers/createProcessRedirect.d.ts.map +1 -1
  69. package/types/components/Personalization/handlers/injectCreateProposition.d.ts +2 -1
  70. package/types/components/Personalization/handlers/injectCreateProposition.d.ts.map +1 -1
  71. package/types/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts.map +1 -1
  72. package/types/components/Personalization/index.d.ts.map +1 -1
  73. package/types/components/PushNotifications/types.d.ts.map +1 -1
  74. package/types/components/RulesEngine/createApplyResponse.d.ts.map +1 -1
  75. package/types/components/RulesEngine/index.d.ts.map +1 -1
  76. package/types/components/RulesEngine/types.d.ts.map +1 -1
  77. package/types/core/consent/types.d.ts.map +1 -1
  78. package/types/core/createEvent.d.ts +1 -0
  79. package/types/core/createEvent.d.ts.map +1 -1
  80. package/types/core/edgeNetwork/types.d.ts.map +1 -1
  81. package/types/core/identity/types.d.ts.map +1 -1
  82. package/types/core/types.d.ts.map +1 -1
  83. package/types/utils/createCollect.d.ts +2 -1
  84. package/types/utils/createCollect.d.ts.map +1 -1
  85. package/types/utils/request/types.d.ts.map +1 -1
  86. package/types/utils/types.d.ts.map +1 -1
@@ -10,8 +10,14 @@ var _consentStatus = require("../../../constants/consentStatus.js");
10
10
  var _browser = require("../../../constants/browser.js");
11
11
  /*
12
12
  Copyright 2023 Adobe. All rights reserved.
13
- Licensed under the Apache License, Version 2.0.
14
- http://www.apache.org/licenses/LICENSE-2.0
13
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ you may not use this file except in compliance with the License. You may obtain a copy
15
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+
17
+ Unless required by applicable law or agreed to in writing, software distributed under
18
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ OF ANY KIND, either express or implied. See the License for the specific language
20
+ governing permissions and limitations under the License.
15
21
  */
16
22
 
17
23
  const isAdvertisingDisabled = advertising => {
@@ -6,8 +6,14 @@ var _index = require("../constants/index.js");
6
6
  var _helpers = require("../utils/helpers.js");
7
7
  /*
8
8
  Copyright 2025 Adobe. All rights reserved.
9
- Licensed under the Apache License, Version 2.0.
10
- http://www.apache.org/licenses/LICENSE-2.0
9
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
10
+ you may not use this file except in compliance with the License. You may obtain a copy
11
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software distributed under
14
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
+ OF ANY KIND, either express or implied. See the License for the specific language
16
+ governing permissions and limitations under the License.
11
17
  */
12
18
 
13
19
  async function handleViewThrough({
@@ -6,7 +6,14 @@ var _createNode = require("../../../utils/dom/createNode.js");
6
6
  var _index2 = require("../../../utils/index.js");
7
7
  /*
8
8
  Copyright 2025 Adobe. All rights reserved.
9
- This file is licensed under the Apache License, Version 2.0.
9
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
10
+ you may not use this file except in compliance with the License. You may obtain a copy
11
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software distributed under
14
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
+ OF ANY KIND, either express or implied. See the License for the specific language
16
+ governing permissions and limitations under the License.
10
17
  */
11
18
 
12
19
  let surferId = "";
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * Request payload object with methods for merging different types of data.
6
18
  *
@@ -3,7 +3,7 @@
3
3
  exports.default = void 0;
4
4
  var _index = require("../../utils/index.js");
5
5
  /*
6
- Copyright 20219 Adobe. All rights reserved.
6
+ Copyright 2025 Adobe. All rights reserved.
7
7
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
8
  you may not use this file except in compliance with the License. You may obtain a copy
9
9
  of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -84,11 +84,13 @@ var _default = ({
84
84
  if (personalizationDetails.shouldFetchData()) {
85
85
  const cacheUpdate = viewCache.createCacheUpdate(personalizationDetails.getViewName());
86
86
  onRequestFailure(() => cacheUpdate.cancel());
87
+ const identityMap = event.getUserIdentityMap();
87
88
  fetchDataHandler({
88
89
  cacheUpdate,
89
90
  personalizationDetails,
90
91
  event,
91
- onResponse
92
+ onResponse,
93
+ identityMap
92
94
  });
93
95
  } else if (personalizationDetails.shouldUseCachedData()) {
94
96
  decisionsMetaPromises.push(viewChangeHandler({
@@ -31,7 +31,8 @@ var _default = ({
31
31
  cacheUpdate,
32
32
  personalizationDetails,
33
33
  event,
34
- onResponse
34
+ onResponse,
35
+ identityMap
35
36
  }) => {
36
37
  const {
37
38
  state,
@@ -48,7 +49,7 @@ var _default = ({
48
49
 
49
50
  // This needs to be called before the response so that future sendEvent calls
50
51
  // can know to wait until this request is complete for pending display notifications.
51
- const handleNotifications = notificationHandler(personalizationDetails.isRenderDecisions(), personalizationDetails.isSendDisplayEvent(), personalizationDetails.getViewName());
52
+ const handleNotifications = notificationHandler(personalizationDetails.isRenderDecisions(), personalizationDetails.isSendDisplayEvent(), personalizationDetails.getViewName(), identityMap);
52
53
  onResponse(({
53
54
  response
54
55
  }) => {
@@ -63,7 +64,7 @@ var _default = ({
63
64
  }
64
65
  });
65
66
  }
66
- const propositions = handles.map(handle => createProposition(handle));
67
+ const propositions = handles.map(handle => createProposition(handle, true, false, identityMap));
67
68
  const {
68
69
  page: pagePropositions = [],
69
70
  view: viewPropositions = [],
@@ -16,7 +16,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
16
16
  governing permissions and limitations under the License.
17
17
  */
18
18
  var _default = (collect, renderedPropositions) => {
19
- return (isRenderDecisions, isSendDisplayEvent, viewName) => {
19
+ return (isRenderDecisions, isSendDisplayEvent, viewName, identityMap) => {
20
20
  if (!isRenderDecisions) {
21
21
  // If we aren't rendering anything, then we don't need to sendDisplayEvents.
22
22
  return () => undefined;
@@ -30,7 +30,8 @@ var _default = (collect, renderedPropositions) => {
30
30
  if ((0, _isNonEmptyArray.default)(decisionsMetaDisplay)) {
31
31
  collect({
32
32
  decisionsMeta: decisionsMetaDisplay,
33
- viewName
33
+ viewName,
34
+ identityMap
34
35
  });
35
36
  }
36
37
  if ((0, _isNonEmptyArray.default)(decisionsMetaSuppressed)) {
@@ -40,7 +41,8 @@ var _default = (collect, renderedPropositions) => {
40
41
  propositionAction: {
41
42
  reason: "Conflict"
42
43
  },
43
- viewName
44
+ viewName,
45
+ identityMap
44
46
  });
45
47
  }
46
48
  };
@@ -40,7 +40,8 @@ var _default = ({
40
40
  renderDecisions,
41
41
  propositions,
42
42
  event,
43
- personalization = {}
43
+ personalization = {},
44
+ identityMap
44
45
  }) => {
45
46
  if (!renderDecisions) {
46
47
  return Promise.resolve();
@@ -50,12 +51,12 @@ var _default = ({
50
51
  } = personalization;
51
52
  const viewName = event ? event.getViewName() : undefined;
52
53
  const shouldSuppressDisplay = createShouldSuppressDisplay();
53
- const propositionsToExecute = propositions.map(proposition => createProposition(proposition, true, shouldSuppressDisplay(proposition)));
54
+ const propositionsToExecute = propositions.map(proposition => createProposition(proposition, true, shouldSuppressDisplay(proposition), identityMap));
54
55
  const {
55
56
  render,
56
57
  returnedPropositions
57
58
  } = processPropositions(propositionsToExecute);
58
- const handleNotifications = notificationHandler(renderDecisions, sendDisplayEvent, viewName);
59
+ const handleNotifications = notificationHandler(renderDecisions, sendDisplayEvent, viewName, identityMap);
59
60
  const propositionsById = propositionsToExecute.reduce((tot, proposition) => {
60
61
  tot[proposition.getId()] = proposition;
61
62
  return tot;
@@ -73,7 +73,8 @@ var _default = ({
73
73
  render: () => {
74
74
  return shouldSuppressDisplay ? null : modules[type]({
75
75
  ...data,
76
- meta
76
+ meta,
77
+ identityMap: proposition.getIdentityMap()
77
78
  });
78
79
  },
79
80
  setRenderAttempted: true,
@@ -31,7 +31,8 @@ var _default = ({
31
31
  (0, _index.hideElements)(REDIRECT_HIDING_ELEMENT);
32
32
  return collect({
33
33
  decisionsMeta: [item.getProposition().getNotification()],
34
- documentMayUnload: true
34
+ documentMayUnload: true,
35
+ identityMap: item.getProposition().getIdentityMap()
35
36
  }).then(() => {
36
37
  logger.logOnContentRendering({
37
38
  status: "rendering-redirect",
@@ -59,7 +59,7 @@ var _default = ({
59
59
  }
60
60
  };
61
61
  };
62
- return (payload, visibleInReturnedItems = true, shouldSuppressDisplay = false) => {
62
+ return (payload, visibleInReturnedItems = true, shouldSuppressDisplay = false, identityMap = undefined) => {
63
63
  const {
64
64
  id,
65
65
  scope,
@@ -97,6 +97,9 @@ var _default = ({
97
97
  getId() {
98
98
  return id;
99
99
  },
100
+ getIdentityMap() {
101
+ return identityMap;
102
+ },
100
103
  toJSON() {
101
104
  return payload;
102
105
  },
@@ -279,7 +279,8 @@ exports.displayHTMLContentInIframe = displayHTMLContentInIframe;
279
279
  var _default = (settings, collect) => {
280
280
  return new Promise(resolve => {
281
281
  const {
282
- meta
282
+ meta,
283
+ identityMap
283
284
  } = settings;
284
285
  displayHTMLContentInIframe(settings, (action, propositionAction) => {
285
286
  const propositionEventTypes = {};
@@ -291,7 +292,8 @@ var _default = (settings, collect) => {
291
292
  decisionsMeta: [meta],
292
293
  propositionAction,
293
294
  eventType: _eventType.INTERACT,
294
- propositionEventTypes: Object.keys(propositionEventTypes)
295
+ propositionEventTypes: Object.keys(propositionEventTypes),
296
+ identityMap
295
297
  });
296
298
  });
297
299
  resolve({
@@ -40,7 +40,7 @@ var _collectInteractions = require("./dom-actions/clicks/collectInteractions.js"
40
40
  var _propositionInteractionType = require("../../constants/propositionInteractionType.js");
41
41
  var _decisionProvider = require("../../constants/decisionProvider.js");
42
42
  /*
43
- Copyright 2019 Adobe. Ackll rights reserved.
43
+ Copyright 2025 Adobe. All rights reserved.
44
44
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
45
45
  you may not use this file except in compliance with the License. You may obtain a copy
46
46
  of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /** @import { Identity } from '../../utils/request/types.js' */
5
17
 
6
18
  /**
@@ -28,11 +28,13 @@ var _default = ({
28
28
  // We extract them and add the events to the event registry.
29
29
  const eventPayloads = (0, _extractPayloadsFromEventHistoryOperations.default)(propositions);
30
30
  eventRegistry.addEventPayloads(eventPayloads);
31
+ const identityMap = event?.getUserIdentityMap();
31
32
  lifecycle.onDecision({
32
33
  renderDecisions,
33
34
  propositions,
34
35
  event,
35
- personalization
36
+ personalization,
37
+ identityMap
36
38
  });
37
39
  }
38
40
  return {
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * @typedef {Record<string, EventRecord>} EventRegistry
6
18
  */
@@ -14,4 +14,4 @@ governing permissions and limitations under the License.
14
14
  */
15
15
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
16
16
  // see babel-plugin-version
17
- var _default = exports.default = "2.30.1-beta.16";
17
+ var _default = exports.default = "2.30.1-beta.18";
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * @typedef {Object} ConsentStateMachine
6
18
  * @property {function(string): void} in
@@ -153,6 +153,9 @@ var _default = () => {
153
153
  }
154
154
  return userXdm.web.webPageDetails.viewName;
155
155
  },
156
+ getUserIdentityMap() {
157
+ return userXdm?.identityMap;
158
+ },
156
159
  toJSON() {
157
160
  if (!isFinalized) {
158
161
  throw new Error("toJSON called before finalize");
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /** @import { Request } from '../../utils/request/types.js' */
5
17
 
6
18
  /**
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /** @import { Logger } from '../../core/types.js' */
5
17
  /** @import { CookieJar } from '../../utils/types.js' */
6
18
 
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * @typedef {object} AlloyMonitor
6
18
  * @property {function(any): void} [onBeforeLog]
@@ -26,11 +26,13 @@ var _default = ({
26
26
  documentMayUnload = false,
27
27
  eventType = _eventType.DISPLAY,
28
28
  propositionEventTypes = [(0, _propositionEventType.getPropositionEventType)(eventType)],
29
- viewName
29
+ viewName,
30
+ identityMap
30
31
  }) => {
31
32
  const event = eventManager.createEvent();
32
33
  const data = {
33
- eventType
34
+ eventType,
35
+ identityMap
34
36
  };
35
37
  if (viewName) {
36
38
  data.web = {
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * Request object with methods to access and modify request properties.
6
18
  *
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  exports.Types = void 0;
4
+ /*
5
+ Copyright 2025 Adobe. All rights reserved.
6
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License. You may obtain a copy
8
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under
11
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ OF ANY KIND, either express or implied. See the License for the specific language
13
+ governing permissions and limitations under the License.
14
+ */
15
+
4
16
  /**
5
17
  * @typedef {Object} Storage
6
18
  * @property {function(string): string|null} getItem
@@ -1,7 +1,13 @@
1
1
  /*
2
2
  Copyright 2023 Adobe. All rights reserved.
3
- Licensed under the Apache License, Version 2.0.
4
- http://www.apache.org/licenses/LICENSE-2.0
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.
5
11
  */
6
12
 
7
13
  import collectSurferId from "../identities/collectSurferId.js";
@@ -1,7 +1,13 @@
1
1
  /*
2
2
  Copyright 2025 Adobe. All rights reserved.
3
- Licensed under the Apache License, Version 2.0.
4
- http://www.apache.org/licenses/LICENSE-2.0
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.
5
11
  */
6
12
 
7
13
  import collectAllIdentities from "../identities/collectAllIdentities.js";
@@ -1,6 +1,13 @@
1
1
  /*
2
2
  Copyright 2025 Adobe. All rights reserved.
3
- This file is licensed under the Apache License, Version 2.0.
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.
4
11
  */
5
12
 
6
13
  import { DISPLAY_CLICK_COOKIE_KEY, SURFER_ID, SURFER_PIXEL_HOST, SURFER_USER_ID, SURFER_TIMEOUT_MS, SURFER_TRUSTED_ORIGIN, SURFER_PARAM_KEY, DISPLAY_CLICK_COOKIE_KEY_EXPIRES } from "../constants/index.js";
@@ -1,3 +1,15 @@
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
+
1
13
  /**
2
14
  * Request payload object with methods for merging different types of data.
3
15
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 20219 Adobe. All rights reserved.
2
+ Copyright 2025 Adobe. All rights reserved.
3
3
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License. You may obtain a copy
5
5
  of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -82,11 +82,13 @@ export default ({
82
82
  if (personalizationDetails.shouldFetchData()) {
83
83
  const cacheUpdate = viewCache.createCacheUpdate(personalizationDetails.getViewName());
84
84
  onRequestFailure(() => cacheUpdate.cancel());
85
+ const identityMap = event.getUserIdentityMap();
85
86
  fetchDataHandler({
86
87
  cacheUpdate,
87
88
  personalizationDetails,
88
89
  event,
89
- onResponse
90
+ onResponse,
91
+ identityMap
90
92
  });
91
93
  } else if (personalizationDetails.shouldUseCachedData()) {
92
94
  decisionsMetaPromises.push(viewChangeHandler({
@@ -27,7 +27,8 @@ export default ({
27
27
  cacheUpdate,
28
28
  personalizationDetails,
29
29
  event,
30
- onResponse
30
+ onResponse,
31
+ identityMap
31
32
  }) => {
32
33
  const {
33
34
  state,
@@ -44,7 +45,7 @@ export default ({
44
45
 
45
46
  // This needs to be called before the response so that future sendEvent calls
46
47
  // can know to wait until this request is complete for pending display notifications.
47
- const handleNotifications = notificationHandler(personalizationDetails.isRenderDecisions(), personalizationDetails.isSendDisplayEvent(), personalizationDetails.getViewName());
48
+ const handleNotifications = notificationHandler(personalizationDetails.isRenderDecisions(), personalizationDetails.isSendDisplayEvent(), personalizationDetails.getViewName(), identityMap);
48
49
  onResponse(({
49
50
  response
50
51
  }) => {
@@ -59,7 +60,7 @@ export default ({
59
60
  }
60
61
  });
61
62
  }
62
- const propositions = handles.map(handle => createProposition(handle));
63
+ const propositions = handles.map(handle => createProposition(handle, true, false, identityMap));
63
64
  const {
64
65
  page: pagePropositions = [],
65
66
  view: viewPropositions = [],
@@ -13,7 +13,7 @@ import { defer } from "../../utils/index.js";
13
13
  import { SUPPRESS } from "../../constants/eventType.js";
14
14
  import isNonEmptyArray from "../../utils/isNonEmptyArray.js";
15
15
  export default (collect, renderedPropositions) => {
16
- return (isRenderDecisions, isSendDisplayEvent, viewName) => {
16
+ return (isRenderDecisions, isSendDisplayEvent, viewName, identityMap) => {
17
17
  if (!isRenderDecisions) {
18
18
  // If we aren't rendering anything, then we don't need to sendDisplayEvents.
19
19
  return () => undefined;
@@ -27,7 +27,8 @@ export default (collect, renderedPropositions) => {
27
27
  if (isNonEmptyArray(decisionsMetaDisplay)) {
28
28
  collect({
29
29
  decisionsMeta: decisionsMetaDisplay,
30
- viewName
30
+ viewName,
31
+ identityMap
31
32
  });
32
33
  }
33
34
  if (isNonEmptyArray(decisionsMetaSuppressed)) {
@@ -37,7 +38,8 @@ export default (collect, renderedPropositions) => {
37
38
  propositionAction: {
38
39
  reason: "Conflict"
39
40
  },
40
- viewName
41
+ viewName,
42
+ identityMap
41
43
  });
42
44
  }
43
45
  };
@@ -38,7 +38,8 @@ export default ({
38
38
  renderDecisions,
39
39
  propositions,
40
40
  event,
41
- personalization = {}
41
+ personalization = {},
42
+ identityMap
42
43
  }) => {
43
44
  if (!renderDecisions) {
44
45
  return Promise.resolve();
@@ -48,12 +49,12 @@ export default ({
48
49
  } = personalization;
49
50
  const viewName = event ? event.getViewName() : undefined;
50
51
  const shouldSuppressDisplay = createShouldSuppressDisplay();
51
- const propositionsToExecute = propositions.map(proposition => createProposition(proposition, true, shouldSuppressDisplay(proposition)));
52
+ const propositionsToExecute = propositions.map(proposition => createProposition(proposition, true, shouldSuppressDisplay(proposition), identityMap));
52
53
  const {
53
54
  render,
54
55
  returnedPropositions
55
56
  } = processPropositions(propositionsToExecute);
56
- const handleNotifications = notificationHandler(renderDecisions, sendDisplayEvent, viewName);
57
+ const handleNotifications = notificationHandler(renderDecisions, sendDisplayEvent, viewName, identityMap);
57
58
  const propositionsById = propositionsToExecute.reduce((tot, proposition) => {
58
59
  tot[proposition.getId()] = proposition;
59
60
  return tot;