@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
@@ -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 { createRequest } from "../../utils/request";
13
+ import { createRequest } from "../../utils/request/index.js";
14
14
  export default (({
15
15
  payload,
16
16
  datastreamIdOverride
@@ -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 { createRequestPayload } from "../../utils/request";
13
+ import { createRequestPayload } from "../../utils/request/index.js";
14
14
  export default (() => {
15
15
  const content = {};
16
16
  const payload = createRequestPayload({
@@ -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 { getNamespacedCookieName } from "../../utils";
14
- import { CONSENT } from "../../constants/cookieNameKey";
13
+ import { getNamespacedCookieName } from "../../utils/index.js";
14
+ import { CONSENT } from "../../constants/cookieNameKey.js";
15
15
  export default (({
16
16
  parseConsentCookie,
17
17
  orgId,
@@ -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 { createTaskQueue, cookieJar, injectDoesIdentityCookieExist, sanitizeOrgIdForCookieName } from "../../utils";
14
- import createComponent from "./createComponent";
15
- import createConsentHashStore from "./createConsentHashStore";
16
- import createConsentRequestPayload from "./createConsentRequestPayload";
17
- import createConsentRequest from "./createConsentRequest";
18
- import createStoredConsent from "./createStoredConsent";
19
- import injectSendSetConsentRequest from "./injectSendSetConsentRequest";
20
- import parseConsentCookie from "./parseConsentCookie";
21
- import validateSetConsentOptions from "./validateSetConsentOptions";
13
+ import { createTaskQueue, cookieJar, injectDoesIdentityCookieExist, sanitizeOrgIdForCookieName } from "../../utils/index.js";
14
+ import createComponent from "./createComponent.js";
15
+ import createConsentHashStore from "./createConsentHashStore.js";
16
+ import createConsentRequestPayload from "./createConsentRequestPayload.js";
17
+ import createConsentRequest from "./createConsentRequest.js";
18
+ import createStoredConsent from "./createStoredConsent.js";
19
+ import injectSendSetConsentRequest from "./injectSendSetConsentRequest.js";
20
+ import parseConsentCookie from "./parseConsentCookie.js";
21
+ import validateSetConsentOptions from "./validateSetConsentOptions.js";
22
22
  const createPrivacy = ({
23
23
  config,
24
24
  consent,
@@ -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 { isObject } from "../../utils";
14
- import { createRequestParams } from "../../utils/request";
13
+ import { isObject } from "../../utils/index.js";
14
+ import { createRequestParams } from "../../utils/request/index.js";
15
15
  export default (({
16
16
  createConsentRequestPayload,
17
17
  createConsentRequest,
@@ -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 { objectOf, anything, arrayOf } from "../../utils/validation";
13
- import { validateIdentityMap, validateConfigOverride } from "../../utils";
12
+ import { objectOf, anything, arrayOf } from "../../utils/validation/index.js";
13
+ import { validateIdentityMap, validateConfigOverride } from "../../utils/index.js";
14
14
  export default objectOf({
15
15
  consent: arrayOf(anything()).required().nonEmpty(),
16
16
  identityMap: validateIdentityMap,
@@ -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 { number, objectOf, string } from "../../utils/validation";
13
+ import { number, objectOf, string } from "../../utils/validation/index.js";
14
14
  export default objectOf({
15
15
  streamingMedia: objectOf({
16
16
  channel: string().nonEmpty().required(),
@@ -9,10 +9,10 @@ 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 MediaEvents from "./constants/eventTypes";
13
- import createMediaRequest from "./createMediaRequest";
14
- import { toInteger } from "../../utils";
15
- import { createDataCollectionRequestPayload } from "../../utils/request";
12
+ import MediaEvents from "./constants/eventTypes.js";
13
+ import createMediaRequest from "./createMediaRequest.js";
14
+ import { toInteger } from "../../utils/index.js";
15
+ import { createDataCollectionRequestPayload } from "../../utils/request/index.js";
16
16
  export default (({
17
17
  config,
18
18
  eventManager,
@@ -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 { createRequest } from "../../utils/request";
13
+ import { createRequest } from "../../utils/request/index.js";
14
14
  export default (({
15
15
  mediaRequestPayload,
16
16
  action
@@ -9,10 +9,10 @@ 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 isBlankString from "../../utils/isBlankString";
13
- import MediaEvents from "./constants/eventTypes";
14
- import { isNonEmptyArray } from "../../utils";
15
- import PlaybackState from "./constants/playbackState";
12
+ import isBlankString from "../../utils/isBlankString.js";
13
+ import MediaEvents from "./constants/eventTypes.js";
14
+ import { isNonEmptyArray } from "../../utils/index.js";
15
+ import PlaybackState from "./constants/playbackState.js";
16
16
  export default (({
17
17
  mediaSessionCacheManager,
18
18
  config,
@@ -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 PlaybackState from "./constants/playbackState";
13
+ import PlaybackState from "./constants/playbackState.js";
14
14
  export default (() => {
15
15
  let mediaSessionCache;
16
16
  const getSession = playerId => {
@@ -9,9 +9,9 @@ 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 { noop } from "../../utils";
13
- import validateSessionOptions from "./validateMediaSessionOptions";
14
- import validateMediaEventOptions from "./validateMediaEventOptions";
12
+ import { noop } from "../../utils/index.js";
13
+ import validateSessionOptions from "./validateMediaSessionOptions.js";
14
+ import validateMediaEventOptions from "./validateMediaEventOptions.js";
15
15
  export default (({
16
16
  config,
17
17
  trackMediaEvent,
@@ -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 MediaEvents from "./constants/eventTypes";
12
+ import MediaEvents from "./constants/eventTypes.js";
13
13
  const getContentState = (eventType, sessionContentState) => {
14
14
  if (eventType === MediaEvents.AD_START || eventType === MediaEvents.Ad_BREAK_START || eventType === MediaEvents.AD_SKIP || eventType === MediaEvents.AD_COMPLETE) {
15
15
  return "ad";
@@ -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 PlaybackState from "./constants/playbackState";
12
+ import PlaybackState from "./constants/playbackState.js";
13
13
  export default (({
14
14
  config,
15
15
  mediaEventManager,
@@ -10,14 +10,14 @@ 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
  /* eslint-disable import/no-restricted-paths */
13
- import createMediaSessionCacheManager from "./createMediaSessionCacheManager";
14
- import createMediaEventManager from "./createMediaEventManager";
15
- import createTrackMediaEvent from "./createTrackMediaEvent";
16
- import configValidators from "./configValidators";
17
- import createStreamingMediaComponent from "./createStreamingMediaComponent";
18
- import createTrackMediaSession from "./createTrackMediaSession";
19
- import createMediaResponseHandler from "./createMediaResponseHandler";
20
- import injectTimestamp from "../Context/injectTimestamp";
13
+ import createMediaSessionCacheManager from "./createMediaSessionCacheManager.js";
14
+ import createMediaEventManager from "./createMediaEventManager.js";
15
+ import createTrackMediaEvent from "./createTrackMediaEvent.js";
16
+ import configValidators from "./configValidators.js";
17
+ import createStreamingMediaComponent from "./createStreamingMediaComponent.js";
18
+ import createTrackMediaSession from "./createTrackMediaSession.js";
19
+ import createMediaResponseHandler from "./createMediaResponseHandler.js";
20
+ import injectTimestamp from "../Context/injectTimestamp.js";
21
21
  const createStreamingMedia = ({
22
22
  config,
23
23
  logger,
@@ -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 { anyOf, anything, enumOf, number, objectOf, string } from "../../utils/validation";
13
- import EventTypes from "./constants/eventTypes";
12
+ import { anyOf, anything, enumOf, number, objectOf, string } from "../../utils/validation/index.js";
13
+ import EventTypes from "./constants/eventTypes.js";
14
14
  export default (({
15
15
  options
16
16
  }) => {
@@ -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 { anyOf, anything, callback, number, objectOf, string } from "../../utils/validation";
13
+ import { anyOf, anything, callback, number, objectOf, string } from "../../utils/validation/index.js";
14
14
  export default (({
15
15
  options
16
16
  }) => {
@@ -13,4 +13,4 @@ governing permissions and limitations under the License.
13
13
  // The __VERSION__ keyword will be replace at alloy build time with the package.json version.
14
14
  // see babel-plugin-version
15
15
 
16
- export default "2.20.0-beta.0";
16
+ export default "2.20.0-beta.4";
@@ -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 { DISPLAY, INTERACT, TRIGGER, DISMISS } from "./eventType";
13
+ import { DISPLAY, INTERACT, TRIGGER, DISMISS } from "./eventType.js";
14
14
  export const PropositionEventType = {
15
15
  DISPLAY: "display",
16
16
  INTERACT: "interact",
@@ -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
  const CONFIG_DOC_URI = "https://adobe.ly/3sHh553";
14
14
  const transformOptions = ({
15
15
  combinedConfigValidator,
@@ -15,31 +15,31 @@ governing permissions and limitations under the License.
15
15
 
16
16
  /* eslint-disable import/no-restricted-paths */
17
17
 
18
- import createDataCollector from "../components/DataCollector";
18
+ import createDataCollector from "../components/DataCollector/index.js";
19
19
 
20
20
  /* @skipwhen ENV.alloy_activitycollector === false */
21
- import createActivityCollector from "../components/ActivityCollector";
22
- import createIdentity from "../components/Identity";
21
+ import createActivityCollector from "../components/ActivityCollector/index.js";
22
+ import createIdentity from "../components/Identity/index.js";
23
23
 
24
24
  /* @skipwhen ENV.alloy_audiences === false */
25
- import createAudiences from "../components/Audiences";
25
+ import createAudiences from "../components/Audiences/index.js";
26
26
 
27
27
  /* @skipwhen ENV.alloy_personalization === false */
28
- import createPersonalization from "../components/Personalization";
29
- import createContext from "../components/Context";
30
- import createPrivacy from "../components/Privacy";
28
+ import createPersonalization from "../components/Personalization/index.js";
29
+ import createContext from "../components/Context/index.js";
30
+ import createPrivacy from "../components/Privacy/index.js";
31
31
 
32
32
  /* @skipwhen ENV.alloy_eventmerge === false */
33
- import createEventMerge from "../components/EventMerge";
34
- import createLibraryInfo from "../components/LibraryInfo";
33
+ import createEventMerge from "../components/EventMerge/index.js";
34
+ import createLibraryInfo from "../components/LibraryInfo/index.js";
35
35
 
36
36
  /* @skipwhen ENV.alloy_decisioningengine === false */
37
- import createDecisioningEngine from "../components/DecisioningEngine";
37
+ import createDecisioningEngine from "../components/DecisioningEngine/index.js";
38
38
 
39
39
  /* @skipwhen ENV.alloy_machinelearning === false */
40
- import createMachineLearning from "../components/MachineLearning";
41
- import createStreamingMedia from "../components/StreamingMedia";
42
- import createLegacyMediaAnalytics from "../components/LegacyMediaAnalytics";
40
+ import createMachineLearning from "../components/MachineLearning/index.js";
41
+ import createStreamingMedia from "../components/StreamingMedia/index.js";
42
+ import createLegacyMediaAnalytics from "../components/LegacyMediaAnalytics/index.js";
43
43
 
44
44
  // TODO: Register the Components here statically for now. They might be registered differently.
45
45
  // TODO: Figure out how sub-components will be made available/registered
@@ -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
  const createConfig = options => {
15
15
  return assign({}, options);
16
16
  };
@@ -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 { boolean, string, callback, enumOf, objectOf } from "../../utils/validation";
14
- import { noop, validateConfigOverride } from "../../utils";
15
- import { EDGE as EDGE_DOMAIN } from "../../constants/domain";
16
- import EDGE_BASE_PATH from "../../constants/edgeBasePath";
17
- import { IN, OUT, PENDING } from "../../constants/consentStatus";
13
+ import { boolean, string, callback, enumOf, objectOf } from "../../utils/validation/index.js";
14
+ import { noop, validateConfigOverride } from "../../utils/index.js";
15
+ import { EDGE as EDGE_DOMAIN } from "../../constants/domain.js";
16
+ import EDGE_BASE_PATH from "../../constants/edgeBasePath.js";
17
+ import { IN, OUT, PENDING } from "../../constants/consentStatus.js";
18
18
  export default (() => objectOf({
19
19
  debugEnabled: boolean().default(false),
20
20
  defaultConsent: enumOf(IN, OUT, PENDING).default(IN),
@@ -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 { IN, OUT, PENDING } from "../../constants/consentStatus";
14
- import { GENERAL } from "../../constants/consentPurpose";
15
- import { CONSENT_SOURCE_DEFAULT, CONSENT_SOURCE_INITIAL, CONSENT_SOURCE_NEW } from "./createConsentStateMachine";
13
+ import { IN, OUT, PENDING } from "../../constants/consentStatus.js";
14
+ import { GENERAL } from "../../constants/consentPurpose.js";
15
+ import { CONSENT_SOURCE_DEFAULT, CONSENT_SOURCE_INITIAL, CONSENT_SOURCE_NEW } from "./createConsentStateMachine.js";
16
16
  export default (({
17
17
  generalConsentState,
18
18
  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 { defer } from "../../utils";
13
+ import { defer } from "../../utils/index.js";
14
14
  export const DECLINED_CONSENT = "The user declined consent.";
15
15
  export const DECLINED_CONSENT_ERROR_CODE = "declinedConsent";
16
16
  export const CONSENT_SOURCE_DEFAULT = "default";
@@ -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 { intersection, stackError } from "../utils";
13
+ import { intersection, stackError } from "../utils/index.js";
14
14
  const wrapForErrorHandling = (fn, stackMessage) => {
15
15
  return (...args) => {
16
16
  let result;
@@ -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 { endsWith } from "../utils";
13
+ import { endsWith } from "../utils/index.js";
14
14
  const STATE_STORE_HANDLE_TYPE = "state:store";
15
15
  export default (({
16
16
  cookieJar,
@@ -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 { isEmptyObject, deepAssign, isNonEmptyArray, deduplicateArray } from "../utils";
13
+ import { isEmptyObject, deepAssign, isNonEmptyArray, deduplicateArray } from "../utils/index.js";
14
14
  const getXdmPropositions = xdm => {
15
15
  return xdm &&
16
16
  // eslint-disable-next-line no-underscore-dangle
@@ -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 PAGE_WIDE_SCOPE from "../constants/pageWideScope";
14
- import { createCallbackAggregator, noop } from "../utils";
15
- import { createRequestParams } from "../utils/request";
13
+ import PAGE_WIDE_SCOPE from "../constants/pageWideScope.js";
14
+ import { createCallbackAggregator, noop } from "../utils/index.js";
15
+ import { createRequestParams } from "../utils/request/index.js";
16
16
  const EVENT_CANCELLATION_MESSAGE = "Event was canceled because the onBeforeEventSend callback returned false.";
17
17
  export default (({
18
18
  config,
@@ -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 { queryString, stringToBoolean } from "../utils";
14
- import debugQueryParam from "../constants/debugQueryParam";
13
+ import { queryString, stringToBoolean } from "../utils/index.js";
14
+ import debugQueryParam from "../constants/debugQueryParam.js";
15
15
  export default (({
16
16
  console,
17
17
  locationSearch,
@@ -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
  getDebugEnabled,
16
16
  console,
@@ -9,9 +9,9 @@ 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 { createCallbackAggregator, noop } from "../../utils";
13
- import mergeLifecycleResponses from "./mergeLifecycleResponses";
14
- import handleRequestFailure from "./handleRequestFailure";
12
+ import { createCallbackAggregator, noop } from "../../utils/index.js";
13
+ import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
14
+ import handleRequestFailure from "./handleRequestFailure.js";
15
15
  const HTTP_STATUS_OK = 200;
16
16
  export default (({
17
17
  cookieTransfer,
@@ -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 { getNamespacedCookieName } from "../../utils";
14
- import { CLUSTER } from "../../constants/cookieNameKey";
15
- import { MBOX_EDGE_CLUSTER } from "../../constants/legacyCookies";
13
+ import { getNamespacedCookieName } from "../../utils/index.js";
14
+ import { CLUSTER } from "../../constants/cookieNameKey.js";
15
+ import { MBOX_EDGE_CLUSTER } from "../../constants/legacyCookies.js";
16
16
  export default (({
17
17
  orgId,
18
18
  cookieJar
@@ -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 { NO_CONTENT } from "../../constants/httpStatusCode";
13
+ import { NO_CONTENT } from "../../constants/httpStatusCode.js";
14
14
  const MESSAGE_PREFIX = "The server responded with a";
15
15
  export default (({
16
16
  logger
@@ -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 { ID_THIRD_PARTY as ID_THIRD_PARTY_DOMAIN } from "../../constants/domain";
14
- import apiVersion from "../../constants/apiVersion";
15
- import { createCallbackAggregator, noop } from "../../utils";
16
- import mergeLifecycleResponses from "./mergeLifecycleResponses";
17
- import handleRequestFailure from "./handleRequestFailure";
13
+ import { ID_THIRD_PARTY as ID_THIRD_PARTY_DOMAIN } from "../../constants/domain.js";
14
+ import apiVersion from "../../constants/apiVersion.js";
15
+ import { createCallbackAggregator, noop } from "../../utils/index.js";
16
+ import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
17
+ import handleRequestFailure from "./handleRequestFailure.js";
18
18
  export default (({
19
19
  config,
20
20
  lifecycle,
@@ -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 { assignConcatArrayValues } from "../../utils";
13
+ import { assignConcatArrayValues } from "../../utils/index.js";
14
14
  export default (returnValues => {
15
15
  // Merges all returned objects from all `onResponse` callbacks into
16
16
  // a single object that can later be returned to the customer.
@@ -10,39 +10,39 @@ 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 createInstanceFunction from "./createInstanceFunction";
14
- import { getApexDomain, injectStorage, cookieJar, isFunction, createLoggingCookieJar, injectFireReferrerHideableImage } from "../utils";
15
- import createLogController from "./createLogController";
16
- import createLifecycle from "./createLifecycle";
17
- import createComponentRegistry from "./createComponentRegistry";
18
- import injectSendNetworkRequest from "./network/injectSendNetworkRequest";
19
- import injectExtractEdgeInfo from "./edgeNetwork/injectExtractEdgeInfo";
20
- import createConsent from "./consent/createConsent";
21
- import createConsentStateMachine from "./consent/createConsentStateMachine";
22
- import createEvent from "./createEvent";
23
- import injectCreateResponse from "./injectCreateResponse";
24
- import injectExecuteCommand from "./injectExecuteCommand";
25
- import validateCommandOptions from "./validateCommandOptions";
26
- import componentCreators from "./componentCreators";
27
- import buildAndValidateConfig from "./buildAndValidateConfig";
28
- import initializeComponents from "./initializeComponents";
29
- import createConfig from "./config/createConfig";
30
- import createCoreConfigs from "./config/createCoreConfigs";
31
- import injectHandleError from "./injectHandleError";
32
- import injectSendFetchRequest from "./network/requestMethods/injectSendFetchRequest";
33
- import injectSendXhrRequest from "./network/requestMethods/injectSendXhrRequest";
34
- import injectSendBeaconRequest from "./network/requestMethods/injectSendBeaconRequest";
35
- import createLogger from "./createLogger";
36
- import createEventManager from "./createEventManager";
37
- import createCookieTransfer from "./createCookieTransfer";
38
- import injectShouldTransferCookie from "./injectShouldTransferCookie";
39
- import { createDataCollectionRequest, createDataCollectionRequestPayload, createGetAssuranceValidationTokenParams } from "../utils/request";
40
- import injectSendEdgeNetworkRequest from "./edgeNetwork/injectSendEdgeNetworkRequest";
41
- import injectProcessWarningsAndErrors from "./edgeNetwork/injectProcessWarningsAndErrors";
42
- import injectGetLocationHint from "./edgeNetwork/injectGetLocationHint";
43
- import isRequestRetryable from "./network/isRequestRetryable";
44
- import getRequestRetryDelay from "./network/getRequestRetryDelay";
45
- import injectApplyResponse from "./edgeNetwork/injectApplyResponse";
13
+ import createInstanceFunction from "./createInstanceFunction.js";
14
+ import { getApexDomain, injectStorage, cookieJar, isFunction, createLoggingCookieJar, injectFireReferrerHideableImage } from "../utils/index.js";
15
+ import createLogController from "./createLogController.js";
16
+ import createLifecycle from "./createLifecycle.js";
17
+ import createComponentRegistry from "./createComponentRegistry.js";
18
+ import injectSendNetworkRequest from "./network/injectSendNetworkRequest.js";
19
+ import injectExtractEdgeInfo from "./edgeNetwork/injectExtractEdgeInfo.js";
20
+ import createConsent from "./consent/createConsent.js";
21
+ import createConsentStateMachine from "./consent/createConsentStateMachine.js";
22
+ import createEvent from "./createEvent.js";
23
+ import injectCreateResponse from "./injectCreateResponse.js";
24
+ import injectExecuteCommand from "./injectExecuteCommand.js";
25
+ import validateCommandOptions from "./validateCommandOptions.js";
26
+ import componentCreators from "./componentCreators.js";
27
+ import buildAndValidateConfig from "./buildAndValidateConfig.js";
28
+ import initializeComponents from "./initializeComponents.js";
29
+ import createConfig from "./config/createConfig.js";
30
+ import createCoreConfigs from "./config/createCoreConfigs.js";
31
+ import injectHandleError from "./injectHandleError.js";
32
+ import injectSendFetchRequest from "./network/requestMethods/injectSendFetchRequest.js";
33
+ import injectSendXhrRequest from "./network/requestMethods/injectSendXhrRequest.js";
34
+ import injectSendBeaconRequest from "./network/requestMethods/injectSendBeaconRequest.js";
35
+ import createLogger from "./createLogger.js";
36
+ import createEventManager from "./createEventManager.js";
37
+ import createCookieTransfer from "./createCookieTransfer.js";
38
+ import injectShouldTransferCookie from "./injectShouldTransferCookie.js";
39
+ import { createDataCollectionRequest, createDataCollectionRequestPayload, createGetAssuranceValidationTokenParams } from "../utils/request/index.js";
40
+ import injectSendEdgeNetworkRequest from "./edgeNetwork/injectSendEdgeNetworkRequest.js";
41
+ import injectProcessWarningsAndErrors from "./edgeNetwork/injectProcessWarningsAndErrors.js";
42
+ import injectGetLocationHint from "./edgeNetwork/injectGetLocationHint.js";
43
+ import isRequestRetryable from "./network/isRequestRetryable.js";
44
+ import getRequestRetryDelay from "./network/getRequestRetryDelay.js";
45
+ import injectApplyResponse from "./edgeNetwork/injectApplyResponse.js";
46
46
  const createNamespacedStorage = injectStorage(window);
47
47
  const {
48
48
  console,
@@ -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 { stackError } from "../utils";
13
+ import { stackError } from "../utils/index.js";
14
14
  export default (({
15
15
  componentCreators,
16
16
  lifecycle,
@@ -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 { flatMap } from "../utils";
14
- import { ADOBE_EDGE } from "../constants/httpHeaderNames";
13
+ import { flatMap } from "../utils/index.js";
14
+ import { ADOBE_EDGE } from "../constants/httpHeaderNames.js";
15
15
 
16
16
  /**
17
17
  * Creates a representation of a gateway response with the addition of
@@ -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 { isFunction, isObject } from "../utils";
14
- import { CONFIGURE, SET_DEBUG } from "../constants/coreCommands";
13
+ import { isFunction, isObject } from "../utils/index.js";
14
+ import { CONFIGURE, SET_DEBUG } from "../constants/coreCommands.js";
15
15
  export default (({
16
16
  logger,
17
17
  configureCommand,
@@ -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 { toError, updateErrorMessage } from "../utils";
14
- import { DECLINED_CONSENT_ERROR_CODE } from "./consent/createConsentStateMachine";
13
+ import { toError, updateErrorMessage } from "../utils/index.js";
14
+ import { DECLINED_CONSENT_ERROR_CODE } from "./consent/createConsentStateMachine.js";
15
15
  export default (({
16
16
  errorPrefix,
17
17
  logger