@adobe/alloy 2.20.0-beta.0 → 2.20.0-beta.4

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 (450) hide show
  1. package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +2 -2
  2. package/libEs5/components/ActivityCollector/configValidators.js +5 -5
  3. package/libEs5/components/ActivityCollector/getLinkName.js +1 -1
  4. package/libEs5/components/ActivityCollector/getLinkRegion.js +3 -3
  5. package/libEs5/components/ActivityCollector/index.js +7 -7
  6. package/libEs5/components/Audiences/index.js +5 -5
  7. package/libEs5/components/Audiences/injectProcessDestinations.js +2 -2
  8. package/libEs5/components/Context/createComponent.js +2 -2
  9. package/libEs5/components/Context/implementationDetails.js +4 -4
  10. package/libEs5/components/Context/index.js +11 -11
  11. package/libEs5/components/Context/injectDevice.js +5 -5
  12. package/libEs5/components/Context/injectEnvironment.js +4 -4
  13. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +5 -5
  14. package/libEs5/components/Context/injectPlaceContext.js +4 -4
  15. package/libEs5/components/Context/injectTimestamp.js +2 -2
  16. package/libEs5/components/Context/injectWeb.js +2 -2
  17. package/libEs5/components/DataCollector/index.js +5 -5
  18. package/libEs5/components/DataCollector/validateApplyResponse.js +11 -11
  19. package/libEs5/components/DataCollector/validateUserEventOptions.js +22 -22
  20. package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
  21. package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
  22. package/libEs5/components/DecisioningEngine/createContextProvider.js +4 -4
  23. package/libEs5/components/DecisioningEngine/createDecisionHistory.js +1 -1
  24. package/libEs5/components/DecisioningEngine/createDecisionProvider.js +3 -3
  25. package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
  26. package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +5 -5
  27. package/libEs5/components/DecisioningEngine/createEventRegistry.js +3 -3
  28. package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +2 -2
  29. package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +9 -9
  30. package/libEs5/components/DecisioningEngine/index.js +18 -18
  31. package/libEs5/components/EventMerge/createEventMergeId.js +2 -2
  32. package/libEs5/components/EventMerge/index.js +2 -2
  33. package/libEs5/components/Identity/addEcidQueryToPayload.js +1 -1
  34. package/libEs5/components/Identity/addEcidToPayload.js +1 -1
  35. package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +5 -5
  36. package/libEs5/components/Identity/configValidators.js +4 -4
  37. package/libEs5/components/Identity/createComponent.js +4 -4
  38. package/libEs5/components/Identity/getEcidFromResponse.js +3 -3
  39. package/libEs5/components/Identity/getIdentity/createGetIdentity.js +2 -2
  40. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -2
  41. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +4 -4
  42. package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +5 -5
  43. package/libEs5/components/Identity/index.js +24 -24
  44. package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
  45. package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +4 -4
  46. package/libEs5/components/Identity/injectProcessIdSyncs.js +2 -2
  47. package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
  48. package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
  49. package/libEs5/components/Identity/visitorService/getVisitor.js +2 -2
  50. package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
  51. package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +16 -17
  52. package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +4 -4
  53. package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +28 -28
  54. package/libEs5/components/LegacyMediaAnalytics/index.js +9 -9
  55. package/libEs5/components/LibraryInfo/index.js +2 -2
  56. package/libEs5/components/MachineLearning/index.js +1 -1
  57. package/libEs5/components/Personalization/createActionsProvider.js +3 -3
  58. package/libEs5/components/Personalization/createApplyPropositions.js +7 -7
  59. package/libEs5/components/Personalization/createCollect.js +4 -4
  60. package/libEs5/components/Personalization/createComponent.js +9 -9
  61. package/libEs5/components/Personalization/createFetchDataHandler.js +2 -2
  62. package/libEs5/components/Personalization/createHandleConsentFlicker.js +1 -1
  63. package/libEs5/components/Personalization/createNotificationHandler.js +2 -2
  64. package/libEs5/components/Personalization/createOnClickHandler.js +5 -5
  65. package/libEs5/components/Personalization/createPersonalizationDetails.js +11 -11
  66. package/libEs5/components/Personalization/createPreprocessors.js +3 -3
  67. package/libEs5/components/Personalization/createSetTargetMigration.js +2 -2
  68. package/libEs5/components/Personalization/createViewCacheManager.js +6 -6
  69. package/libEs5/components/Personalization/dom-actions/action.js +18 -18
  70. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +7 -7
  71. package/libEs5/components/Personalization/dom-actions/appendHtml.js +8 -8
  72. package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +3 -3
  73. package/libEs5/components/Personalization/dom-actions/createPreprocess.js +2 -2
  74. package/libEs5/components/Personalization/dom-actions/createRedirect.js +1 -3
  75. package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +3 -3
  76. package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
  77. package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +2 -2
  78. package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +2 -2
  79. package/libEs5/components/Personalization/dom-actions/dom/index.js +14 -14
  80. package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
  81. package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
  82. package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +4 -4
  83. package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +4 -4
  84. package/libEs5/components/Personalization/dom-actions/images.js +7 -7
  85. package/libEs5/components/Personalization/dom-actions/index.js +1 -1
  86. package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +3 -3
  87. package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +7 -7
  88. package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +7 -7
  89. package/libEs5/components/Personalization/dom-actions/prependHtml.js +10 -10
  90. package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +4 -4
  91. package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
  92. package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +10 -10
  93. package/libEs5/components/Personalization/dom-actions/replaceHtml.js +3 -3
  94. package/libEs5/components/Personalization/dom-actions/scripts.js +11 -11
  95. package/libEs5/components/Personalization/dom-actions/setAttributes.js +2 -2
  96. package/libEs5/components/Personalization/dom-actions/setHtml.js +5 -5
  97. package/libEs5/components/Personalization/dom-actions/setStyles.js +3 -3
  98. package/libEs5/components/Personalization/dom-actions/swapImage.js +5 -5
  99. package/libEs5/components/Personalization/event.js +1 -1
  100. package/libEs5/components/Personalization/flicker/index.js +13 -13
  101. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
  102. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +2 -2
  103. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +23 -21
  104. package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
  105. package/libEs5/components/Personalization/in-app-message-actions/utils.js +7 -7
  106. package/libEs5/components/Personalization/index.js +43 -43
  107. package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
  108. package/libEs5/components/Personalization/utils/surfaceUtils.js +11 -9
  109. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +5 -5
  110. package/libEs5/components/Privacy/computeConsentHash.js +2 -2
  111. package/libEs5/components/Privacy/createComponent.js +1 -1
  112. package/libEs5/components/Privacy/createConsentHashStore.js +2 -2
  113. package/libEs5/components/Privacy/createConsentRequest.js +2 -2
  114. package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -2
  115. package/libEs5/components/Privacy/createStoredConsent.js +3 -3
  116. package/libEs5/components/Privacy/index.js +13 -13
  117. package/libEs5/components/Privacy/injectSendSetConsentRequest.js +4 -4
  118. package/libEs5/components/Privacy/validateSetConsentOptions.js +6 -6
  119. package/libEs5/components/StreamingMedia/configValidators.js +8 -8
  120. package/libEs5/components/StreamingMedia/createMediaEventManager.js +6 -6
  121. package/libEs5/components/StreamingMedia/createMediaRequest.js +2 -2
  122. package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +5 -5
  123. package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
  124. package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +4 -4
  125. package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +1 -1
  126. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +1 -1
  127. package/libEs5/components/StreamingMedia/index.js +8 -8
  128. package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +13 -13
  129. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +12 -12
  130. package/libEs5/constants/libraryVersion.js +1 -1
  131. package/libEs5/constants/propositionEventType.js +1 -1
  132. package/libEs5/core/buildAndValidateConfig.js +2 -2
  133. package/libEs5/core/componentCreators.js +14 -14
  134. package/libEs5/core/config/createConfig.js +2 -2
  135. package/libEs5/core/config/createCoreConfigs.js +15 -15
  136. package/libEs5/core/consent/createConsent.js +3 -3
  137. package/libEs5/core/consent/createConsentStateMachine.js +2 -2
  138. package/libEs5/core/createComponentRegistry.js +4 -4
  139. package/libEs5/core/createCookieTransfer.js +2 -2
  140. package/libEs5/core/createEvent.js +12 -12
  141. package/libEs5/core/createEventManager.js +9 -9
  142. package/libEs5/core/createLogController.js +4 -4
  143. package/libEs5/core/createLogger.js +2 -2
  144. package/libEs5/core/edgeNetwork/injectApplyResponse.js +7 -7
  145. package/libEs5/core/edgeNetwork/injectGetLocationHint.js +4 -4
  146. package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
  147. package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +9 -9
  148. package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
  149. package/libEs5/core/index.js +44 -44
  150. package/libEs5/core/initializeComponents.js +2 -2
  151. package/libEs5/core/injectCreateResponse.js +3 -3
  152. package/libEs5/core/injectExecuteCommand.js +4 -4
  153. package/libEs5/core/injectHandleError.js +4 -4
  154. package/libEs5/core/injectShouldTransferCookie.js +3 -3
  155. package/libEs5/core/network/getRequestRetryDelay.js +3 -3
  156. package/libEs5/core/network/injectSendNetworkRequest.js +2 -2
  157. package/libEs5/core/network/isRequestRetryable.js +3 -3
  158. package/libEs5/index.js +10 -10
  159. package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
  160. package/libEs5/utils/assignConcatArrayValues.js +2 -2
  161. package/libEs5/utils/assignIf.js +1 -1
  162. package/libEs5/utils/createMerger.js +1 -1
  163. package/libEs5/utils/createSubscription.js +1 -1
  164. package/libEs5/utils/deepAssign.js +2 -2
  165. package/libEs5/utils/dom/awaitSelector.js +3 -3
  166. package/libEs5/utils/dom/createNode.js +2 -2
  167. package/libEs5/utils/dom/index.js +8 -8
  168. package/libEs5/utils/dom/isShadowSelector.js +1 -1
  169. package/libEs5/utils/dom/querySelectorAll.js +1 -1
  170. package/libEs5/utils/dom/selectNodes.js +3 -3
  171. package/libEs5/utils/dom/selectNodesWithShadow.js +3 -3
  172. package/libEs5/utils/filterObject.js +3 -3
  173. package/libEs5/utils/fireImage.js +2 -2
  174. package/libEs5/utils/getApexDomain.js +2 -2
  175. package/libEs5/utils/getBrowser.js +2 -2
  176. package/libEs5/utils/getNamespacedCookieName.js +2 -2
  177. package/libEs5/utils/index.js +58 -58
  178. package/libEs5/utils/injectDoesIdentityCookieExist.js +3 -3
  179. package/libEs5/utils/injectFireReferrerHideableImage.js +6 -6
  180. package/libEs5/utils/injectStorage.js +2 -2
  181. package/libEs5/utils/intersection.js +1 -1
  182. package/libEs5/utils/isBlankString.js +1 -1
  183. package/libEs5/utils/isEmptyObject.js +1 -1
  184. package/libEs5/utils/isInteger.js +1 -1
  185. package/libEs5/utils/isNamespacedCookieName.js +2 -2
  186. package/libEs5/utils/isNonEmptyString.js +1 -1
  187. package/libEs5/utils/isObject.js +1 -1
  188. package/libEs5/utils/isValidRegExp.js +1 -1
  189. package/libEs5/utils/parseUrl.js +1 -1
  190. package/libEs5/utils/prepareConfigOverridesForEdge.js +7 -7
  191. package/libEs5/utils/request/createDataCollectionRequest.js +1 -1
  192. package/libEs5/utils/request/createDataCollectionRequestPayload.js +3 -3
  193. package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
  194. package/libEs5/utils/request/createRequest.js +2 -2
  195. package/libEs5/utils/request/createRequestParams.js +1 -1
  196. package/libEs5/utils/request/createRequestPayload.js +6 -6
  197. package/libEs5/utils/request/index.js +8 -8
  198. package/libEs5/utils/stackError.js +2 -2
  199. package/libEs5/utils/stringToBoolean.js +1 -1
  200. package/libEs5/utils/toISOStringLocal.js +2 -2
  201. package/libEs5/utils/toInteger.js +2 -2
  202. package/libEs5/utils/uuid.js +2 -2
  203. package/libEs5/utils/validateConfigOverride.js +2 -2
  204. package/libEs5/utils/validateIdentityMap.js +2 -2
  205. package/libEs5/utils/validation/booleanValidator.js +2 -2
  206. package/libEs5/utils/validation/callbackValidator.js +2 -2
  207. package/libEs5/utils/validation/createAnyOfValidator.js +2 -2
  208. package/libEs5/utils/validation/createArrayOfValidator.js +1 -1
  209. package/libEs5/utils/validation/createDeprecatedValidator.js +3 -3
  210. package/libEs5/utils/validation/createLiteralValidator.js +1 -1
  211. package/libEs5/utils/validation/createMapOfValuesValidator.js +2 -2
  212. package/libEs5/utils/validation/createMaximumValidator.js +1 -1
  213. package/libEs5/utils/validation/createMinimumValidator.js +1 -1
  214. package/libEs5/utils/validation/createNonEmptyValidator.js +3 -3
  215. package/libEs5/utils/validation/createObjectOfValidator.js +2 -2
  216. package/libEs5/utils/validation/createUniqueItemsValidator.js +2 -2
  217. package/libEs5/utils/validation/createUniqueValidator.js +1 -1
  218. package/libEs5/utils/validation/domainValidator.js +1 -1
  219. package/libEs5/utils/validation/index.js +23 -23
  220. package/libEs5/utils/validation/integerValidator.js +2 -2
  221. package/libEs5/utils/validation/matchesRegexpValidator.js +1 -1
  222. package/libEs5/utils/validation/numberValidator.js +2 -2
  223. package/libEs5/utils/validation/regexpValidator.js +2 -2
  224. package/libEs5/utils/validation/stringValidator.js +2 -2
  225. package/libEs5/utils/validation/utils.js +1 -1
  226. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +1 -1
  227. package/libEs6/components/ActivityCollector/configValidators.js +1 -1
  228. package/libEs6/components/ActivityCollector/getLinkName.js +1 -1
  229. package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
  230. package/libEs6/components/ActivityCollector/index.js +7 -7
  231. package/libEs6/components/Audiences/index.js +3 -3
  232. package/libEs6/components/Audiences/injectProcessDestinations.js +1 -1
  233. package/libEs6/components/Context/createComponent.js +1 -1
  234. package/libEs6/components/Context/implementationDetails.js +3 -3
  235. package/libEs6/components/Context/index.js +9 -9
  236. package/libEs6/components/Context/injectDevice.js +1 -1
  237. package/libEs6/components/Context/injectEnvironment.js +1 -1
  238. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
  239. package/libEs6/components/Context/injectPlaceContext.js +1 -1
  240. package/libEs6/components/Context/injectTimestamp.js +1 -1
  241. package/libEs6/components/Context/injectWeb.js +1 -1
  242. package/libEs6/components/DataCollector/index.js +3 -3
  243. package/libEs6/components/DataCollector/validateApplyResponse.js +1 -1
  244. package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
  245. package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
  246. package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
  247. package/libEs6/components/DecisioningEngine/createContextProvider.js +4 -4
  248. package/libEs6/components/DecisioningEngine/createDecisionHistory.js +1 -1
  249. package/libEs6/components/DecisioningEngine/createDecisionProvider.js +3 -3
  250. package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
  251. package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +1 -1
  252. package/libEs6/components/DecisioningEngine/createEventRegistry.js +3 -3
  253. package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +2 -2
  254. package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +3 -3
  255. package/libEs6/components/DecisioningEngine/index.js +11 -11
  256. package/libEs6/components/EventMerge/createEventMergeId.js +1 -1
  257. package/libEs6/components/EventMerge/index.js +2 -2
  258. package/libEs6/components/Identity/addEcidQueryToPayload.js +1 -1
  259. package/libEs6/components/Identity/addEcidToPayload.js +1 -1
  260. package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +2 -2
  261. package/libEs6/components/Identity/configValidators.js +1 -1
  262. package/libEs6/components/Identity/createComponent.js +3 -3
  263. package/libEs6/components/Identity/getEcidFromResponse.js +2 -2
  264. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +1 -1
  265. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +1 -1
  266. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +1 -1
  267. package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +2 -2
  268. package/libEs6/components/Identity/index.js +20 -20
  269. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
  270. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +3 -3
  271. package/libEs6/components/Identity/injectProcessIdSyncs.js +1 -1
  272. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
  273. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +1 -1
  274. package/libEs6/components/Identity/visitorService/getVisitor.js +1 -1
  275. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
  276. package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +12 -13
  277. package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +2 -2
  278. package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +2 -2
  279. package/libEs6/components/LegacyMediaAnalytics/index.js +9 -9
  280. package/libEs6/components/LibraryInfo/index.js +2 -2
  281. package/libEs6/components/MachineLearning/index.js +1 -1
  282. package/libEs6/components/Personalization/createActionsProvider.js +2 -2
  283. package/libEs6/components/Personalization/createApplyPropositions.js +3 -3
  284. package/libEs6/components/Personalization/createCollect.js +3 -3
  285. package/libEs6/components/Personalization/createComponent.js +5 -5
  286. package/libEs6/components/Personalization/createFetchDataHandler.js +1 -1
  287. package/libEs6/components/Personalization/createHandleConsentFlicker.js +1 -1
  288. package/libEs6/components/Personalization/createNotificationHandler.js +1 -1
  289. package/libEs6/components/Personalization/createOnClickHandler.js +3 -3
  290. package/libEs6/components/Personalization/createPersonalizationDetails.js +4 -4
  291. package/libEs6/components/Personalization/createPreprocessors.js +3 -3
  292. package/libEs6/components/Personalization/createSetTargetMigration.js +1 -1
  293. package/libEs6/components/Personalization/createViewCacheManager.js +4 -4
  294. package/libEs6/components/Personalization/dom-actions/action.js +14 -14
  295. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +4 -4
  296. package/libEs6/components/Personalization/dom-actions/appendHtml.js +5 -5
  297. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
  298. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +1 -1
  299. package/libEs6/components/Personalization/dom-actions/createRedirect.js +1 -1
  300. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
  301. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +1 -1
  302. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +1 -1
  303. package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +1 -1
  304. package/libEs6/components/Personalization/dom-actions/dom/index.js +14 -14
  305. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
  306. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
  307. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +3 -3
  308. package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +2 -2
  309. package/libEs6/components/Personalization/dom-actions/images.js +4 -4
  310. package/libEs6/components/Personalization/dom-actions/index.js +1 -1
  311. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
  312. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +4 -4
  313. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +4 -4
  314. package/libEs6/components/Personalization/dom-actions/prependHtml.js +5 -5
  315. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +1 -1
  316. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +1 -1
  317. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +6 -6
  318. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
  319. package/libEs6/components/Personalization/dom-actions/scripts.js +4 -4
  320. package/libEs6/components/Personalization/dom-actions/setAttributes.js +1 -1
  321. package/libEs6/components/Personalization/dom-actions/setHtml.js +3 -3
  322. package/libEs6/components/Personalization/dom-actions/setStyles.js +1 -1
  323. package/libEs6/components/Personalization/dom-actions/swapImage.js +3 -3
  324. package/libEs6/components/Personalization/event.js +1 -1
  325. package/libEs6/components/Personalization/flicker/index.js +3 -3
  326. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
  327. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +2 -2
  328. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +11 -9
  329. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
  330. package/libEs6/components/Personalization/in-app-message-actions/utils.js +2 -2
  331. package/libEs6/components/Personalization/index.js +35 -35
  332. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +1 -1
  333. package/libEs6/components/Personalization/utils/surfaceUtils.js +4 -2
  334. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +1 -1
  335. package/libEs6/components/Privacy/computeConsentHash.js +1 -1
  336. package/libEs6/components/Privacy/createComponent.js +1 -1
  337. package/libEs6/components/Privacy/createConsentHashStore.js +1 -1
  338. package/libEs6/components/Privacy/createConsentRequest.js +1 -1
  339. package/libEs6/components/Privacy/createConsentRequestPayload.js +1 -1
  340. package/libEs6/components/Privacy/createStoredConsent.js +2 -2
  341. package/libEs6/components/Privacy/index.js +9 -9
  342. package/libEs6/components/Privacy/injectSendSetConsentRequest.js +2 -2
  343. package/libEs6/components/Privacy/validateSetConsentOptions.js +2 -2
  344. package/libEs6/components/StreamingMedia/configValidators.js +1 -1
  345. package/libEs6/components/StreamingMedia/createMediaEventManager.js +4 -4
  346. package/libEs6/components/StreamingMedia/createMediaRequest.js +1 -1
  347. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +4 -4
  348. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
  349. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +3 -3
  350. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +1 -1
  351. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +1 -1
  352. package/libEs6/components/StreamingMedia/index.js +8 -8
  353. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
  354. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +1 -1
  355. package/libEs6/constants/libraryVersion.js +1 -1
  356. package/libEs6/constants/propositionEventType.js +1 -1
  357. package/libEs6/core/buildAndValidateConfig.js +1 -1
  358. package/libEs6/core/componentCreators.js +13 -13
  359. package/libEs6/core/config/createConfig.js +1 -1
  360. package/libEs6/core/config/createCoreConfigs.js +5 -5
  361. package/libEs6/core/consent/createConsent.js +3 -3
  362. package/libEs6/core/consent/createConsentStateMachine.js +1 -1
  363. package/libEs6/core/createComponentRegistry.js +1 -1
  364. package/libEs6/core/createCookieTransfer.js +1 -1
  365. package/libEs6/core/createEvent.js +1 -1
  366. package/libEs6/core/createEventManager.js +3 -3
  367. package/libEs6/core/createLogController.js +2 -2
  368. package/libEs6/core/createLogger.js +1 -1
  369. package/libEs6/core/edgeNetwork/injectApplyResponse.js +3 -3
  370. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +3 -3
  371. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
  372. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +5 -5
  373. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +1 -1
  374. package/libEs6/core/index.js +33 -33
  375. package/libEs6/core/initializeComponents.js +1 -1
  376. package/libEs6/core/injectCreateResponse.js +2 -2
  377. package/libEs6/core/injectExecuteCommand.js +2 -2
  378. package/libEs6/core/injectHandleError.js +2 -2
  379. package/libEs6/core/injectShouldTransferCookie.js +2 -2
  380. package/libEs6/core/network/getRequestRetryDelay.js +2 -2
  381. package/libEs6/core/network/injectSendNetworkRequest.js +1 -1
  382. package/libEs6/core/network/isRequestRetryable.js +2 -2
  383. package/libEs6/index.js +5 -5
  384. package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
  385. package/libEs6/utils/assignConcatArrayValues.js +2 -2
  386. package/libEs6/utils/assignIf.js +1 -1
  387. package/libEs6/utils/createMerger.js +1 -1
  388. package/libEs6/utils/createSubscription.js +1 -1
  389. package/libEs6/utils/deepAssign.js +2 -2
  390. package/libEs6/utils/dom/awaitSelector.js +3 -3
  391. package/libEs6/utils/dom/createNode.js +2 -2
  392. package/libEs6/utils/dom/index.js +8 -8
  393. package/libEs6/utils/dom/isShadowSelector.js +1 -1
  394. package/libEs6/utils/dom/querySelectorAll.js +1 -1
  395. package/libEs6/utils/dom/selectNodes.js +3 -3
  396. package/libEs6/utils/dom/selectNodesWithShadow.js +3 -3
  397. package/libEs6/utils/filterObject.js +3 -3
  398. package/libEs6/utils/fireImage.js +2 -2
  399. package/libEs6/utils/getApexDomain.js +2 -2
  400. package/libEs6/utils/getBrowser.js +2 -2
  401. package/libEs6/utils/getNamespacedCookieName.js +2 -2
  402. package/libEs6/utils/index.js +58 -58
  403. package/libEs6/utils/injectDoesIdentityCookieExist.js +3 -3
  404. package/libEs6/utils/injectFireReferrerHideableImage.js +3 -3
  405. package/libEs6/utils/injectStorage.js +2 -2
  406. package/libEs6/utils/intersection.js +1 -1
  407. package/libEs6/utils/isBlankString.js +1 -1
  408. package/libEs6/utils/isEmptyObject.js +1 -1
  409. package/libEs6/utils/isInteger.js +1 -1
  410. package/libEs6/utils/isNamespacedCookieName.js +2 -2
  411. package/libEs6/utils/isNonEmptyString.js +1 -1
  412. package/libEs6/utils/isObject.js +1 -1
  413. package/libEs6/utils/isValidRegExp.js +1 -1
  414. package/libEs6/utils/parseUrl.js +1 -1
  415. package/libEs6/utils/prepareConfigOverridesForEdge.js +7 -7
  416. package/libEs6/utils/request/createDataCollectionRequest.js +1 -1
  417. package/libEs6/utils/request/createDataCollectionRequestPayload.js +3 -3
  418. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
  419. package/libEs6/utils/request/createRequest.js +1 -1
  420. package/libEs6/utils/request/createRequestPayload.js +1 -1
  421. package/libEs6/utils/request/index.js +8 -8
  422. package/libEs6/utils/stackError.js +2 -2
  423. package/libEs6/utils/stringToBoolean.js +1 -1
  424. package/libEs6/utils/toISOStringLocal.js +2 -2
  425. package/libEs6/utils/toInteger.js +2 -2
  426. package/libEs6/utils/uuid.js +2 -2
  427. package/libEs6/utils/validateConfigOverride.js +1 -1
  428. package/libEs6/utils/validateIdentityMap.js +2 -2
  429. package/libEs6/utils/validation/booleanValidator.js +2 -2
  430. package/libEs6/utils/validation/callbackValidator.js +2 -2
  431. package/libEs6/utils/validation/createAnyOfValidator.js +2 -2
  432. package/libEs6/utils/validation/createArrayOfValidator.js +1 -1
  433. package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
  434. package/libEs6/utils/validation/createLiteralValidator.js +1 -1
  435. package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
  436. package/libEs6/utils/validation/createMaximumValidator.js +1 -1
  437. package/libEs6/utils/validation/createMinimumValidator.js +1 -1
  438. package/libEs6/utils/validation/createNonEmptyValidator.js +3 -3
  439. package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
  440. package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
  441. package/libEs6/utils/validation/createUniqueValidator.js +1 -1
  442. package/libEs6/utils/validation/domainValidator.js +1 -1
  443. package/libEs6/utils/validation/index.js +23 -23
  444. package/libEs6/utils/validation/integerValidator.js +2 -2
  445. package/libEs6/utils/validation/matchesRegexpValidator.js +1 -1
  446. package/libEs6/utils/validation/numberValidator.js +2 -2
  447. package/libEs6/utils/validation/regexpValidator.js +2 -2
  448. package/libEs6/utils/validation/stringValidator.js +2 -2
  449. package/libEs6/utils/validation/utils.js +1 -1
  450. package/package.json +68 -65
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assign } from "../../../utils";
12
+ import { assign } from "../../../utils/index.js";
13
13
  export default (preprocessors => action => {
14
14
  if (!action) {
15
15
  return action;
@@ -18,5 +18,5 @@ export default (window => (url, preserveHistory = false) => {
18
18
  }
19
19
  // Return a promise that never resolves because redirects never complete
20
20
  // within the current page.
21
- return new Promise(() => undefined);
21
+ return new Promise(() => {});
22
22
  });
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createNode } from "../../../../utils/dom";
14
- import { DIV } from "../../../../constants/tagName";
13
+ import { createNode } from "../../../../utils/dom/index.js";
14
+ import { DIV } from "../../../../constants/tagName.js";
15
15
  export default (content => {
16
16
  return createNode(DIV, {}, {
17
17
  innerHTML: content
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { toArray } from "../../../../utils";
13
+ import { toArray } from "../../../../utils/index.js";
14
14
  export default (element => {
15
15
  const {
16
16
  childNodes
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { toArray } from "../../../../utils";
13
+ import { toArray } from "../../../../utils/index.js";
14
14
  export default (element => {
15
15
  const {
16
16
  children
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { isNonEmptyString } from "../../../../utils";
13
+ import { isNonEmptyString } from "../../../../utils/index.js";
14
14
  const EQ_START = ":eq(";
15
15
  const EQ_PATTERN = /:eq\((\d+)\)/g;
16
16
  export const isNotEqSelector = str => str.indexOf(EQ_START) === -1;
@@ -10,17 +10,17 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export { default as createFragment } from "./createFragment";
14
- export { selectNodesWithEq } from "./selectNodesWithEq";
15
- export { default as getElementById } from "./getElementById";
16
- export { default as setAttribute } from "./setAttribute";
17
- export { default as getAttribute } from "./getAttribute";
18
- export { default as removeAttribute } from "./removeAttribute";
19
- export { default as setStyle } from "./setStyle";
20
- export { default as insertAfter } from "./insertAfter";
21
- export { default as insertBefore } from "./insertBefore";
22
- export { default as getNextSibling } from "./getNextSibling";
23
- export { default as getChildren } from "./getChildren";
24
- export { default as getChildNodes } from "./getChildNodes";
25
- export { default as getFirstChild } from "./getFirstChild";
26
- export { default as getNonce } from "./getNonce";
13
+ export { default as createFragment } from "./createFragment.js";
14
+ export { selectNodesWithEq } from "./selectNodesWithEq.js";
15
+ export { default as getElementById } from "./getElementById.js";
16
+ export { default as setAttribute } from "./setAttribute.js";
17
+ export { default as getAttribute } from "./getAttribute.js";
18
+ export { default as removeAttribute } from "./removeAttribute.js";
19
+ export { default as setStyle } from "./setStyle.js";
20
+ export { default as insertAfter } from "./insertAfter.js";
21
+ export { default as insertBefore } from "./insertBefore.js";
22
+ export { default as getNextSibling } from "./getNextSibling.js";
23
+ export { default as getChildren } from "./getChildren.js";
24
+ export { default as getChildNodes } from "./getChildNodes.js";
25
+ export { default as getFirstChild } from "./getFirstChild.js";
26
+ export { default as getNonce } from "./getNonce.js";
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import getParent from "./getParent";
14
- import getNextSibling from "./getNextSibling";
13
+ import getParent from "./getParent.js";
14
+ import getNextSibling from "./getNextSibling.js";
15
15
  export default ((container, element) => {
16
16
  if (!container) {
17
17
  return;
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import getParent from "./getParent";
13
+ import getParent from "./getParent.js";
14
14
  export default ((container, element) => {
15
15
  if (!container) {
16
16
  return;
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { matchesSelector } from "../../../../utils/dom";
14
- import { isNotEqSelector } from "./helperForEq";
15
- import { selectNodesWithEq } from "./selectNodesWithEq";
13
+ import { matchesSelector } from "../../../../utils/dom/index.js";
14
+ import { isNotEqSelector } from "./helperForEq.js";
15
+ import { selectNodesWithEq } from "./selectNodesWithEq.js";
16
16
  export default ((selector, element) => {
17
17
  if (isNotEqSelector(selector)) {
18
18
  return matchesSelector(selector, element);
@@ -11,8 +11,8 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import escape from "css.escape";
14
- import { selectNodes } from "../../../../utils/dom";
15
- import { isNotEqSelector, splitWithEq } from "./helperForEq";
14
+ import { selectNodes } from "../../../../utils/dom/index.js";
15
+ import { isNotEqSelector, splitWithEq } from "./helperForEq.js";
16
16
 
17
17
  // Trying to match ID or CSS class
18
18
  const CSS_IDENTIFIER_PATTERN = /(#|\.)(-?\w+)/g;
@@ -10,10 +10,10 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createNode, selectNodes } from "../../../utils/dom";
14
- import { IMG } from "../../../constants/tagName";
15
- import { SRC } from "../../../constants/elementAttribute";
16
- import { getAttribute } from "./dom";
13
+ import { createNode, selectNodes } from "../../../utils/dom/index.js";
14
+ import { IMG } from "../../../constants/tagName.js";
15
+ import { SRC } from "../../../constants/elementAttribute.js";
16
+ import { getAttribute } from "./dom/index.js";
17
17
  export const isImage = element => element.tagName === IMG;
18
18
  export const loadImage = url => {
19
19
  return createNode(IMG, {
@@ -10,4 +10,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export { default as initDomActionsModules } from "./initDomActionsModules";
13
+ export { default as initDomActionsModules } from "./initDomActionsModules.js";
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { removeNode } from "../../../utils/dom";
14
- import { createAction, setHtml, setText, setAttributes, swapImage, setStyles, rearrangeChildren, replaceHtml, appendHtml, prependHtml, insertHtmlAfter, insertHtmlBefore } from "./action";
13
+ import { removeNode } from "../../../utils/dom/index.js";
14
+ import { createAction, setHtml, setText, setAttributes, swapImage, setStyles, rearrangeChildren, replaceHtml, appendHtml, prependHtml, insertHtmlAfter, insertHtmlBefore } from "./action.js";
15
15
  export default (() => {
16
16
  return {
17
17
  setHtml: createAction(setHtml),
@@ -10,10 +10,10 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createFragment, getChildNodes, insertAfter } from "./dom";
14
- import { loadImages } from "./images";
15
- import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements";
16
- import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts";
13
+ import { createFragment, getChildNodes, insertAfter } from "./dom/index.js";
14
+ import { loadImages } from "./images.js";
15
+ import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements.js";
16
+ import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts.js";
17
17
  export default ((container, html) => {
18
18
  const fragment = createFragment(html);
19
19
  addNonceToInlineStyleElements(fragment);
@@ -10,10 +10,10 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createFragment, getChildNodes, insertBefore } from "./dom";
14
- import { loadImages } from "./images";
15
- import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements";
16
- import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts";
13
+ import { createFragment, getChildNodes, insertBefore } from "./dom/index.js";
14
+ import { loadImages } from "./images.js";
15
+ import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements.js";
16
+ import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts.js";
17
17
  export default ((container, html) => {
18
18
  const fragment = createFragment(html);
19
19
  addNonceToInlineStyleElements(fragment);
@@ -10,11 +10,11 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { appendNode } from "../../../utils/dom";
14
- import { createFragment, getChildNodes, getFirstChild, insertBefore } from "./dom";
15
- import { loadImages } from "./images";
16
- import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements";
17
- import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts";
13
+ import { appendNode } from "../../../utils/dom/index.js";
14
+ import { createFragment, getChildNodes, getFirstChild, insertBefore } from "./dom/index.js";
15
+ import { loadImages } from "./images.js";
16
+ import addNonceToInlineStyleElements from "./addNonceToInlineStyleElements.js";
17
+ import { getInlineScripts, getRemoteScriptsUrls, executeInlineScripts, executeRemoteScripts } from "./scripts.js";
18
18
  export default ((container, html) => {
19
19
  const fragment = createFragment(html);
20
20
  addNonceToInlineStyleElements(fragment);
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { getChildren, insertAfter, insertBefore } from "./dom";
13
+ import { getChildren, insertAfter, insertBefore } from "./dom/index.js";
14
14
  export default ((container, {
15
15
  from,
16
16
  to
@@ -14,7 +14,7 @@ governing permissions and limitations under the License.
14
14
  * Preprocess customCode actions before rendering, so that offer selectors are remapped appropriately for
15
15
  * target offers, to align with the way it works in at.js.
16
16
  */
17
- import { assign } from "../../../utils";
17
+ import { assign } from "../../../utils/index.js";
18
18
  const ACTION_CUSTOM_CODE = "customCode";
19
19
  const TARGET_BODY_SELECTOR = "BODY > *:eq(0)";
20
20
  export default (action => {
@@ -16,12 +16,12 @@ governing permissions and limitations under the License.
16
16
  * Offer content should also be filtered, so that only tags allowed in HEAD are preserved.
17
17
  */
18
18
 
19
- import { selectNodes } from "../../../utils/dom";
20
- import { is } from "./scripts";
21
- import { createFragment, selectNodesWithEq } from "./dom";
22
- import { assign } from "../../../utils";
23
- import isBlankString from "../../../utils/isBlankString";
24
- import { HEAD } from "../../../constants/tagName";
19
+ import { selectNodes } from "../../../utils/dom/index.js";
20
+ import { is } from "./scripts.js";
21
+ import { createFragment, selectNodesWithEq } from "./dom/index.js";
22
+ import { assign } from "../../../utils/index.js";
23
+ import isBlankString from "../../../utils/isBlankString.js";
24
+ import { HEAD } from "../../../constants/tagName.js";
25
25
  const APPEND_HTML = "appendHtml";
26
26
  const HEAD_TAGS_SELECTOR = "SCRIPT,LINK,STYLE";
27
27
  const filterHeadContent = content => {
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { removeNode } from "../../../utils/dom";
14
- import insertHtmlBefore from "./insertHtmlBefore";
13
+ import { removeNode } from "../../../utils/dom/index.js";
14
+ import insertHtmlBefore from "./insertHtmlBefore.js";
15
15
  export default ((container, html) => {
16
16
  insertHtmlBefore(container, html);
17
17
  removeNode(container);
@@ -11,10 +11,10 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import loadScript from "@adobe/reactor-load-script";
14
- import { selectNodes, createNode } from "../../../utils/dom";
15
- import { SCRIPT } from "../../../constants/tagName";
16
- import { SRC } from "../../../constants/elementAttribute";
17
- import { getAttribute, getNonce } from "./dom";
14
+ import { selectNodes, createNode } from "../../../utils/dom/index.js";
15
+ import { SCRIPT } from "../../../constants/tagName.js";
16
+ import { SRC } from "../../../constants/elementAttribute.js";
17
+ import { getAttribute, getNonce } from "./dom/index.js";
18
18
  export const is = (element, tagName) => !!element && element.tagName === tagName;
19
19
  const isInlineScript = element => is(element, SCRIPT) && !getAttribute(element, SRC);
20
20
  const isRemoteScript = element => is(element, SCRIPT) && getAttribute(element, SRC);
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { setAttribute } from "./dom";
13
+ import { setAttribute } from "./dom/index.js";
14
14
  export default ((container, attributes) => {
15
15
  Object.keys(attributes).forEach(key => {
16
16
  setAttribute(container, key, attributes[key]);
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { removeNode } from "../../../utils/dom";
14
- import { getChildNodes } from "./dom";
15
- import appendHtml from "./appendHtml";
13
+ import { removeNode } from "../../../utils/dom/index.js";
14
+ import { getChildNodes } from "./dom/index.js";
15
+ import appendHtml from "./appendHtml.js";
16
16
  const clear = container => {
17
17
  // We want to remove ALL nodes, text, comments etc
18
18
  const childNodes = getChildNodes(container);
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { setStyle } from "./dom";
13
+ import { setStyle } from "./dom/index.js";
14
14
  export default ((container, styles) => {
15
15
  const {
16
16
  priority,
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { SRC } from "../../../constants/elementAttribute";
14
- import { setAttribute, removeAttribute } from "./dom";
15
- import { isImage, loadImage } from "./images";
13
+ import { SRC } from "../../../constants/elementAttribute.js";
14
+ import { setAttribute, removeAttribute } from "./dom/index.js";
15
+ import { isImage, loadImage } from "./images.js";
16
16
  export default ((container, url) => {
17
17
  if (!isImage(container)) {
18
18
  return;
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { EVENT_TYPE_TRUE } from "../../constants/eventType";
13
+ import { EVENT_TYPE_TRUE } from "../../constants/eventType.js";
14
14
 
15
15
  /* eslint-disable no-underscore-dangle */
16
16
  export const mergeDecisionsMeta = (event, decisionsMeta, propositionEventTypes, propositionAction) => {
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createNode, appendNode, removeNode } from "../../../utils/dom";
14
- import { STYLE } from "../../../constants/tagName";
15
- import { getElementById, getNonce } from "../dom-actions/dom";
13
+ import { createNode, appendNode, removeNode } from "../../../utils/dom/index.js";
14
+ import { STYLE } from "../../../constants/tagName.js";
15
+ import { getElementById, getNonce } from "../dom-actions/dom/index.js";
16
16
  const PREHIDING_ID = "alloy-prehiding";
17
17
  const HIDING_STYLE_DEFINITION = "{ visibility: hidden }";
18
18
 
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { APPLICATION_JSON } from "../../../constants/contentType";
12
+ import { APPLICATION_JSON } from "../../../constants/contentType.js";
13
13
  const DEFAULT_CONTENT = "defaultContent";
14
14
  const expectedProps = ["content", "contentType"];
15
15
  const expectedContentProps = ["mobileParameters", "webParameters", "html"];
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import PAGE_WIDE_SCOPE from "../../../constants/pageWideScope";
14
- import { VIEW_SCOPE_TYPE, PAGE_SCOPE_TYPE, PROPOSITION_SCOPE_TYPE } from "../constants/scopeType";
13
+ import PAGE_WIDE_SCOPE from "../../../constants/pageWideScope.js";
14
+ import { VIEW_SCOPE_TYPE, PAGE_SCOPE_TYPE, PROPOSITION_SCOPE_TYPE } from "../constants/scopeType.js";
15
15
  export default (({
16
16
  preprocess,
17
17
  isPageWideSurface
@@ -10,15 +10,15 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { getNonce } from "../../dom-actions/dom";
14
- import { parseAnchor, removeElementById } from "../utils";
15
- import { TEXT_HTML } from "../../../../constants/contentType";
16
- import { assign, includes, isNonEmptyString, values } from "../../../../utils";
17
- import { createNode } from "../../../../utils/dom";
18
- import { objectOf } from "../../../../utils/validation";
19
- import { PropositionEventType } from "../../../../constants/propositionEventType";
20
- import { EVENT_TYPE_TRUE, INTERACT } from "../../../../constants/eventType";
21
- import createRedirect from "../../dom-actions/createRedirect";
13
+ import { getNonce } from "../../dom-actions/dom/index.js";
14
+ import { parseAnchor, removeElementById } from "../utils.js";
15
+ import { TEXT_HTML } from "../../../../constants/contentType.js";
16
+ import { assign, includes, isNonEmptyString, values } from "../../../../utils/index.js";
17
+ import { createNode } from "../../../../utils/dom/index.js";
18
+ import { objectOf } from "../../../../utils/validation/index.js";
19
+ import { PropositionEventType } from "../../../../constants/propositionEventType.js";
20
+ import { EVENT_TYPE_TRUE, INTERACT } from "../../../../constants/eventType.js";
21
+ import createRedirect from "../../dom-actions/createRedirect.js";
22
22
  const MESSAGING_CONTAINER_ID = "alloy-messaging-container";
23
23
  const OVERLAY_CONTAINER_ID = "alloy-overlay-container";
24
24
  const IFRAME_ID = "alloy-content-iframe";
@@ -238,6 +238,8 @@ const generateWebParameters = mobileParameters => {
238
238
  }
239
239
  };
240
240
  };
241
+
242
+ // eslint-disable-next-line default-param-last
241
243
  export const displayHTMLContentInIframe = (settings = {}, interact) => {
242
244
  dismissMessage();
243
245
  const {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import displayIframeContent from "./actions/displayIframeContent";
12
+ import displayIframeContent from "./actions/displayIframeContent.js";
13
13
  export default (collect => {
14
14
  return {
15
15
  defaultContent: settings => displayIframeContent(settings, collect)
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { isNonEmptyArray, queryString, startsWith } from "../../../utils";
13
- import { removeNode, selectNodes } from "../../../utils/dom";
12
+ import { isNonEmptyArray, queryString, startsWith } from "../../../utils/index.js";
13
+ import { removeNode, selectNodes } from "../../../utils/dom/index.js";
14
14
  export const removeElementById = id => {
15
15
  const element = selectNodes(`#${id}`, document);
16
16
  if (element && element.length > 0) {
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2019 Adobe. All rights reserved.
2
+ Copyright 2019 Adobe. Ackll 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
@@ -10,40 +10,40 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { boolean, objectOf, string } from "../../utils/validation";
14
- import createComponent from "./createComponent";
15
- import { initDomActionsModules } from "./dom-actions";
16
- import createCollect from "./createCollect";
17
- import { hideContainers, showContainers } from "./flicker";
18
- import createFetchDataHandler from "./createFetchDataHandler";
19
- import collectClicks from "./dom-actions/clicks/collectClicks";
20
- import isAuthoringModeEnabled from "./utils/isAuthoringModeEnabled";
21
- import { mergeDecisionsMeta, mergeQuery } from "./event";
22
- import createOnClickHandler from "./createOnClickHandler";
23
- import createViewCacheManager from "./createViewCacheManager";
24
- import createViewChangeHandler from "./createViewChangeHandler";
25
- import createClickStorage from "./createClickStorage";
26
- import createApplyPropositions from "./createApplyPropositions";
27
- import createGetPageLocation from "./createGetPageLocation";
28
- import createSetTargetMigration from "./createSetTargetMigration";
29
- import remapCustomCodeOffers from "./dom-actions/remapCustomCodeOffers";
30
- import remapHeadOffers from "./dom-actions/remapHeadOffers";
31
- import createPreprocess from "./dom-actions/createPreprocess";
32
- import injectCreateProposition from "./handlers/injectCreateProposition";
33
- import createAsyncArray from "./utils/createAsyncArray";
34
- import * as schema from "../../constants/schema";
35
- import processDefaultContent from "./handlers/processDefaultContent";
36
- import { isPageWideSurface } from "./utils/surfaceUtils";
37
- import createProcessDomAction from "./handlers/createProcessDomAction";
38
- import createProcessHtmlContent from "./handlers/createProcessHtmlContent";
39
- import createProcessRedirect from "./handlers/createProcessRedirect";
40
- import createProcessPropositions from "./handlers/createProcessPropositions";
41
- import createOnDecisionHandler from "./createOnDecisionHandler";
42
- import createProcessInAppMessage from "./handlers/createProcessInAppMessage";
43
- import initInAppMessageActionsModules from "./in-app-message-actions/initInAppMessageActionsModules";
44
- import createRedirect from "./dom-actions/createRedirect";
45
- import createNotificationHandler from "./createNotificationHandler";
46
- import createHandleConsentFlicker from "./createHandleConsentFlicker";
13
+ import { boolean, objectOf, string } from "../../utils/validation/index.js";
14
+ import createComponent from "./createComponent.js";
15
+ import { initDomActionsModules } from "./dom-actions/index.js";
16
+ import createCollect from "./createCollect.js";
17
+ import { hideContainers, showContainers } from "./flicker/index.js";
18
+ import createFetchDataHandler from "./createFetchDataHandler.js";
19
+ import collectClicks from "./dom-actions/clicks/collectClicks.js";
20
+ import isAuthoringModeEnabled from "./utils/isAuthoringModeEnabled.js";
21
+ import { mergeDecisionsMeta, mergeQuery } from "./event.js";
22
+ import createOnClickHandler from "./createOnClickHandler.js";
23
+ import createViewCacheManager from "./createViewCacheManager.js";
24
+ import createViewChangeHandler from "./createViewChangeHandler.js";
25
+ import createClickStorage from "./createClickStorage.js";
26
+ import createApplyPropositions from "./createApplyPropositions.js";
27
+ import createGetPageLocation from "./createGetPageLocation.js";
28
+ import createSetTargetMigration from "./createSetTargetMigration.js";
29
+ import remapCustomCodeOffers from "./dom-actions/remapCustomCodeOffers.js";
30
+ import remapHeadOffers from "./dom-actions/remapHeadOffers.js";
31
+ import createPreprocess from "./dom-actions/createPreprocess.js";
32
+ import injectCreateProposition from "./handlers/injectCreateProposition.js";
33
+ import createAsyncArray from "./utils/createAsyncArray.js";
34
+ import * as schema from "../../constants/schema.js";
35
+ import processDefaultContent from "./handlers/processDefaultContent.js";
36
+ import { isPageWideSurface } from "./utils/surfaceUtils.js";
37
+ import createProcessDomAction from "./handlers/createProcessDomAction.js";
38
+ import createProcessHtmlContent from "./handlers/createProcessHtmlContent.js";
39
+ import createProcessRedirect from "./handlers/createProcessRedirect.js";
40
+ import createProcessPropositions from "./handlers/createProcessPropositions.js";
41
+ import createOnDecisionHandler from "./createOnDecisionHandler.js";
42
+ import createProcessInAppMessage from "./handlers/createProcessInAppMessage.js";
43
+ import initInAppMessageActionsModules from "./in-app-message-actions/initInAppMessageActionsModules.js";
44
+ import createRedirect from "./dom-actions/createRedirect.js";
45
+ import createNotificationHandler from "./createNotificationHandler.js";
46
+ import createHandleConsentFlicker from "./createHandleConsentFlicker.js";
47
47
  const createPersonalization = ({
48
48
  config,
49
49
  logger,
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { assign } from "../../../utils";
13
+ import { assign } from "../../../utils/index.js";
14
14
  export default (({
15
15
  decisions,
16
16
  renderAttempted
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { WEB, WEBAPP, SURFACE_TYPE_DELIMITER, FRAGMENT_DELIMITER } from "../constants/surface";
14
- import { startsWith, isNil, isNonEmptyString, includes } from "../../../utils";
13
+ import { WEB, WEBAPP, SURFACE_TYPE_DELIMITER, FRAGMENT_DELIMITER } from "../constants/surface.js";
14
+ import { startsWith, isNil, isNonEmptyString, includes } from "../../../utils/index.js";
15
15
  const SURFACE_REGEX = /^(\w+):\/\/([^/#]+)(\/[^#]*)?(#.*)?$/;
16
16
  const AUTHORITY_REGEX = /^(?:.*@)?(?:[a-z\d\u00a1-\uffff.-]+|\[[a-f\d:]+])(?::\d+)?$/;
17
17
  const PATH_REGEX = /^\/(?:[/\w\u00a1-\uffff-.~]|%[a-fA-F\d]{2})*$/;
@@ -71,4 +71,6 @@ const validateSurface = (surface, getPageLocation, logger) => {
71
71
  return parsed;
72
72
  };
73
73
  export const isPageWideSurface = scope => !!scope && scope.indexOf(WEB + SURFACE_TYPE_DELIMITER) === 0 && scope.indexOf(FRAGMENT_DELIMITER) === -1;
74
+
75
+ // eslint-disable-next-line default-param-last
74
76
  export const normalizeSurfaces = (surfaces = [], getPageLocation, logger) => surfaces.map(surface => validateSurface(surface, getPageLocation, logger)).filter(surface => !isNil(surface)).map(stringifySurface);
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { anything, objectOf, arrayOf, string } from "../../utils/validation";
12
+ import { anything, objectOf, arrayOf, string } from "../../utils/validation/index.js";
13
13
  export const EMPTY_PROPOSITIONS = {
14
14
  propositions: []
15
15
  };
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { crc32 } from "../../utils";
13
+ import { crc32 } from "../../utils/index.js";
14
14
 
15
15
  // serialize an object with a consistent ordering
16
16
  const serialize = obj => {
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { GENERAL } from "../../constants/consentPurpose";
13
+ import { GENERAL } from "../../constants/consentPurpose.js";
14
14
  export default (({
15
15
  storedConsent,
16
16
  taskQueue,
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import computeConsentHash from "./computeConsentHash";
12
+ import computeConsentHash from "./computeConsentHash.js";
13
13
  const getKey = ({
14
14
  standard,
15
15
  version