@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 ecidNamespace from "../../constants/ecidNamespace";
13
+ import ecidNamespace from "../../constants/ecidNamespace.js";
14
14
  export default (payload => {
15
15
  payload.mergeQuery({
16
16
  identity: {
@@ -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 ecidNamespace from "../../constants/ecidNamespace";
13
+ import ecidNamespace from "../../constants/ecidNamespace.js";
14
14
  export default ((payload, ecid) => {
15
15
  payload.addIdentity(ecidNamespace, {
16
16
  id: ecid
@@ -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 { validateConfigOverride } from "../../../utils";
14
- import { objectOf, string } from "../../../utils/validation";
13
+ import { validateConfigOverride } from "../../../utils/index.js";
14
+ import { objectOf, string } from "../../../utils/validation/index.js";
15
15
  /**
16
16
  * Verifies user provided event options.
17
17
  * @param {*} options The user event options to validate
@@ -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 { boolean, objectOf } from "../../utils/validation";
13
+ import { boolean, objectOf } from "../../utils/validation/index.js";
14
14
  const configValidators = objectOf({
15
15
  thirdPartyCookiesEnabled: boolean().default(true),
16
16
  idMigrationEnabled: boolean().default(true)
@@ -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 { assign } from "../../utils";
13
- import getIdentityOptionsValidator from "./getIdentity/getIdentityOptionsValidator";
14
- import appendIdentityToUrlOptionsValidator from "./appendIdentityToUrl/appendIdentityToUrlOptionsValidator";
12
+ import { assign } from "../../utils/index.js";
13
+ import getIdentityOptionsValidator from "./getIdentity/getIdentityOptionsValidator.js";
14
+ import appendIdentityToUrlOptionsValidator from "./appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js";
15
15
  export default (({
16
16
  addEcidQueryToPayload,
17
17
  addQueryStringIdentityToPayload,
@@ -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 { find } from "../../utils";
14
- import ecidNamespace from "../../constants/ecidNamespace";
13
+ import { find } from "../../utils/index.js";
14
+ import ecidNamespace from "../../constants/ecidNamespace.js";
15
15
  export default (response => {
16
16
  const identityResultPayloads = response.getPayloadsByType("identity:result");
17
17
  const ecidPayload = find(identityResultPayloads, payload => payload.namespace && payload.namespace.code === ecidNamespace);
@@ -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 { createRequestParams } from "../../../utils/request";
13
+ import { createRequestParams } from "../../../utils/request/index.js";
14
14
  export default (({
15
15
  sendEdgeNetworkRequest,
16
16
  createIdentityRequestPayload,
@@ -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 { createAddIdentity, createHasIdentity, createRequestPayload } from "../../../utils/request";
13
+ import { createAddIdentity, createHasIdentity, createRequestPayload } from "../../../utils/request/index.js";
14
14
  export default (namespaces => {
15
15
  const content = {
16
16
  query: {
@@ -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 { validateConfigOverride } from "../../../utils";
14
- import { objectOf, literal, arrayOf } from "../../../utils/validation";
13
+ import { validateConfigOverride } from "../../../utils/index.js";
14
+ import { objectOf, literal, arrayOf } from "../../../utils/validation/index.js";
15
15
  /**
16
16
  * Verifies user provided event options.
17
17
  * @param {*} options The user event options to validate
@@ -10,26 +10,26 @@ 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 { areThirdPartyCookiesSupportedByDefault, injectDoesIdentityCookieExist, createLoggingCookieJar, cookieJar } from "../../utils";
14
- import injectProcessIdSyncs from "./injectProcessIdSyncs";
15
- import configValidators from "./configValidators";
16
- import createComponent from "./createComponent";
17
- import createLegacyIdentity from "./createLegacyIdentity";
18
- import awaitVisitorOptIn from "./visitorService/awaitVisitorOptIn";
19
- import injectGetEcidFromVisitor from "./visitorService/injectGetEcidFromVisitor";
20
- import injectHandleResponseForIdSyncs from "./injectHandleResponseForIdSyncs";
21
- import injectEnsureSingleIdentity from "./injectEnsureSingleIdentity";
22
- import addEcidQueryToPayload from "./addEcidQueryToPayload";
23
- import injectSetDomainForInitialIdentityPayload from "./injectSetDomainForInitialIdentityPayload";
24
- import injectAddLegacyEcidToPayload from "./injectAddLegacyEcidToPayload";
25
- import injectAddQueryStringIdentityToPayload from "./injectAddQueryStringIdentityToPayload";
26
- import addEcidToPayload from "./addEcidToPayload";
27
- import injectAwaitIdentityCookie from "./injectAwaitIdentityCookie";
28
- import getEcidFromResponse from "./getEcidFromResponse";
29
- import createGetIdentity from "./getIdentity/createGetIdentity";
30
- import createIdentityRequest from "./getIdentity/createIdentityRequest";
31
- import createIdentityRequestPayload from "./getIdentity/createIdentityRequestPayload";
32
- import injectAppendIdentityToUrl from "./appendIdentityToUrl/injectAppendIdentityToUrl";
13
+ import { areThirdPartyCookiesSupportedByDefault, injectDoesIdentityCookieExist, createLoggingCookieJar, cookieJar } from "../../utils/index.js";
14
+ import injectProcessIdSyncs from "./injectProcessIdSyncs.js";
15
+ import configValidators from "./configValidators.js";
16
+ import createComponent from "./createComponent.js";
17
+ import createLegacyIdentity from "./createLegacyIdentity.js";
18
+ import awaitVisitorOptIn from "./visitorService/awaitVisitorOptIn.js";
19
+ import injectGetEcidFromVisitor from "./visitorService/injectGetEcidFromVisitor.js";
20
+ import injectHandleResponseForIdSyncs from "./injectHandleResponseForIdSyncs.js";
21
+ import injectEnsureSingleIdentity from "./injectEnsureSingleIdentity.js";
22
+ import addEcidQueryToPayload from "./addEcidQueryToPayload.js";
23
+ import injectSetDomainForInitialIdentityPayload from "./injectSetDomainForInitialIdentityPayload.js";
24
+ import injectAddLegacyEcidToPayload from "./injectAddLegacyEcidToPayload.js";
25
+ import injectAddQueryStringIdentityToPayload from "./injectAddQueryStringIdentityToPayload.js";
26
+ import addEcidToPayload from "./addEcidToPayload.js";
27
+ import injectAwaitIdentityCookie from "./injectAwaitIdentityCookie.js";
28
+ import getEcidFromResponse from "./getEcidFromResponse.js";
29
+ import createGetIdentity from "./getIdentity/createGetIdentity.js";
30
+ import createIdentityRequest from "./getIdentity/createIdentityRequest.js";
31
+ import createIdentityRequestPayload from "./getIdentity/createIdentityRequestPayload.js";
32
+ import injectAppendIdentityToUrl from "./appendIdentityToUrl/injectAppendIdentityToUrl.js";
33
33
  const createIdentity = ({
34
34
  config,
35
35
  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 ecidNamespace from "../../constants/ecidNamespace";
13
+ import ecidNamespace from "../../constants/ecidNamespace.js";
14
14
  export default (({
15
15
  getLegacyEcid,
16
16
  addEcidToPayload
@@ -12,9 +12,9 @@ governing permissions and limitations under the License.
12
12
  // Example: adobe_mc=TS%3D1641432103%7CMCMID%3D77094828402023918047117570965393734545%7CMCORGID%3DFAF554945B90342F0A495E2C%40AdobeOrg
13
13
  // Decoded: adobe_mc=TS=1641432103|MCMID=77094828402023918047117570965393734545|MCORGID=FAF554945B90342F0A495E2C@AdobeOrg
14
14
 
15
- import { queryString } from "../../utils";
16
- import queryStringIdentityParam from "../../constants/queryStringIdentityParam";
17
- import ecidNamespace from "../../constants/ecidNamespace";
15
+ import { queryString } from "../../utils/index.js";
16
+ import queryStringIdentityParam from "../../constants/queryStringIdentityParam.js";
17
+ import ecidNamespace from "../../constants/ecidNamespace.js";
18
18
  const LINK_TTL_SECONDS = 300; // 5 minute link time to live
19
19
 
20
20
  export default (({
@@ -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 { noop } from "../../utils";
12
+ import { noop } from "../../utils/index.js";
13
13
  const createResultLogMessage = (idSync, success) => {
14
14
  return `ID sync ${success ? "succeeded" : "failed"}: ${idSync.spec.url}`;
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 getBrowser from "../../utils/getBrowser";
13
+ import getBrowser from "../../utils/getBrowser.js";
14
14
  export default (({
15
15
  thirdPartyCookiesEnabled,
16
16
  areThirdPartyCookiesSupportedByDefault
@@ -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 { isObject } from "../../../utils";
13
+ import { isObject } from "../../../utils/index.js";
14
14
  export default (({
15
15
  logger
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 { isFunction } from "../../../utils";
13
+ import { isFunction } from "../../../utils/index.js";
14
14
  export default (window => {
15
15
  const Visitor = window.Visitor;
16
16
  return isFunction(Visitor) && isFunction(Visitor.getInstance) && Visitor;
@@ -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 getVisitor from "./getVisitor";
13
+ import getVisitor from "./getVisitor.js";
14
14
  export default (({
15
15
  logger,
16
16
  orgId,
@@ -9,19 +9,22 @@ 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 { EVENT, MEDIA_EVENTS_INTERNAL } from "./constants/constants";
13
- import { includes, isEmptyObject, isNonEmptyArray, isNumber } from "../../utils";
14
- import { adsToXdmKeys, mediaToXdmKeys } from "./constants/mediaKeysToXdmConverter";
12
+ import { EVENT, MEDIA_EVENTS_INTERNAL } from "./constants/constants.js";
13
+ import { includes, isEmptyObject, isNil, isNonEmptyArray, isNumber } from "../../utils/index.js";
14
+ import { adsToXdmKeys, mediaToXdmKeys } from "./constants/mediaKeysToXdmConverter.js";
15
15
  export default (({
16
16
  logger,
17
17
  trackMediaSession,
18
18
  trackMediaEvent,
19
19
  uuid
20
20
  }) => {
21
- let trackerState = {
22
- qoe: null,
23
- lastPlayhead: 0,
24
- playerId: uuid()
21
+ let trackerState = null;
22
+ const instantiateTracker = () => {
23
+ trackerState = {
24
+ qoe: null,
25
+ lastPlayhead: 0,
26
+ playerId: uuid()
27
+ };
25
28
  };
26
29
  const getEventType = ({
27
30
  eventType
@@ -89,17 +92,13 @@ export default (({
89
92
  };
90
93
  return {
91
94
  trackSessionStart: (mediaObject, contextData = {}) => {
92
- if (isEmptyObject(mediaObject)) {
95
+ if (isNil(mediaObject) || isEmptyObject(mediaObject)) {
93
96
  logger.warn("Invalid media object");
94
97
  return {};
95
98
  }
96
99
  if (trackerState === null) {
97
100
  logger.warn("The Media Session was completed. Restarting a new session.");
98
- trackerState = {
99
- qoe: null,
100
- lastPlayhead: 0,
101
- playerId: uuid()
102
- };
101
+ instantiateTracker();
103
102
  }
104
103
  const xdm = createXdmObject({
105
104
  eventType: MEDIA_EVENTS_INTERNAL.SessionStart,
@@ -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 { noop, uuid } from "../../utils";
14
- import { AD_METADATA_KEYS as AdMetadataKeys, AUDIO_METADATA_KEYS as AudioMetadataKeys, EVENT as Event, MEDIA_OBJECT_KEYS as MediaObjectKey, MEDIA_TYPE as MediaType, PLAYER_STATE as PlayerState, STREAM_TYPE as StreamType, VIDEO_METADATA_KEYS as VideoMetadataKeys } from "./constants/constants";
13
+ import { noop, uuid } from "../../utils/index.js";
14
+ import { AD_METADATA_KEYS as AdMetadataKeys, AUDIO_METADATA_KEYS as AudioMetadataKeys, EVENT as Event, MEDIA_OBJECT_KEYS as MediaObjectKey, MEDIA_TYPE as MediaType, PLAYER_STATE as PlayerState, STREAM_TYPE as StreamType, VIDEO_METADATA_KEYS as VideoMetadataKeys } from "./constants/constants.js";
15
15
  export default (({
16
16
  trackMediaEvent,
17
17
  trackMediaSession,
@@ -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 (({
15
15
  logger
16
16
  }) => {
@@ -131,7 +131,7 @@ export default (({
131
131
  }
132
132
  };
133
133
  const createStateObject = stateName => {
134
- const STATE_NAME_REGEX = new RegExp("^[a-zA-Z0-9_]{1,64}$");
134
+ const STATE_NAME_REGEX = /^[a-zA-Z0-9_]{1,64}$/;
135
135
  const validator = string().matches(STATE_NAME_REGEX, "This is not a valid state name.");
136
136
  try {
137
137
  const result = validator(stateName);
@@ -11,15 +11,15 @@ governing permissions and limitations under the License.
11
11
  */
12
12
  /* eslint-disable import/no-restricted-paths */
13
13
 
14
- import createMediaEventManager from "../StreamingMedia/createMediaEventManager";
15
- import createMediaSessionCacheManager from "../StreamingMedia/createMediaSessionCacheManager";
16
- import createTrackMediaEvent from "../StreamingMedia/createTrackMediaEvent";
17
- import createTrackMediaSession from "../StreamingMedia/createTrackMediaSession";
18
- import createMediaResponseHandler from "../StreamingMedia/createMediaResponseHandler";
19
- import createLegacyMediaComponent from "./createLegacyMediaComponent";
20
- import createMediaHelper from "./createMediaHelper";
21
- import createGetInstance from "./createGetInstance";
22
- import injectTimestamp from "../Context/injectTimestamp";
14
+ import createMediaEventManager from "../StreamingMedia/createMediaEventManager.js";
15
+ import createMediaSessionCacheManager from "../StreamingMedia/createMediaSessionCacheManager.js";
16
+ import createTrackMediaEvent from "../StreamingMedia/createTrackMediaEvent.js";
17
+ import createTrackMediaSession from "../StreamingMedia/createTrackMediaSession.js";
18
+ import createMediaResponseHandler from "../StreamingMedia/createMediaResponseHandler.js";
19
+ import createLegacyMediaComponent from "./createLegacyMediaComponent.js";
20
+ import createMediaHelper from "./createMediaHelper.js";
21
+ import createGetInstance from "./createGetInstance.js";
22
+ import injectTimestamp from "../Context/injectTimestamp.js";
23
23
  const createLegacyMediaAnalytics = ({
24
24
  eventManager,
25
25
  sendEdgeNetworkRequest,
@@ -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 libraryVersion from "../../constants/libraryVersion";
14
- import { CONFIGURE, SET_DEBUG } from "../../constants/coreCommands";
13
+ import libraryVersion from "../../constants/libraryVersion.js";
14
+ import { CONFIGURE, SET_DEBUG } from "../../constants/coreCommands.js";
15
15
  const prepareLibraryInfo = ({
16
16
  config,
17
17
  componentRegistry
@@ -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 processResponse from "./processResponse";
13
+ import processResponse from "./processResponse.js";
14
14
  const createMachineLearning = () => {
15
15
  return {
16
16
  lifecycle: {
@@ -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 createPreprocessors from "./createPreprocessors";
13
- import { assign } from "../../utils";
12
+ import createPreprocessors from "./createPreprocessors.js";
13
+ import { assign } from "../../utils/index.js";
14
14
  export default (({
15
15
  modules,
16
16
  preprocessors = createPreprocessors(),
@@ -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 { isNonEmptyArray, isObject, defer } from "../../utils";
14
- import { DOM_ACTION, HTML_CONTENT_ITEM, MESSAGE_IN_APP } from "../../constants/schema";
15
- import PAGE_WIDE_SCOPE from "../../constants/pageWideScope";
13
+ import { isNonEmptyArray, isObject, defer } from "../../utils/index.js";
14
+ import { DOM_ACTION, HTML_CONTENT_ITEM, MESSAGE_IN_APP } from "../../constants/schema.js";
15
+ import PAGE_WIDE_SCOPE from "../../constants/pageWideScope.js";
16
16
  const SUPPORTED_SCHEMAS = [DOM_ACTION, HTML_CONTENT_ITEM, MESSAGE_IN_APP];
17
17
  export default (({
18
18
  processPropositions,
@@ -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 { DISPLAY } from "../../constants/eventType";
13
- import { getPropositionEventType } from "../../constants/propositionEventType";
14
- import { isNonEmptyArray } from "../../utils";
12
+ import { DISPLAY } from "../../constants/eventType.js";
13
+ import { getPropositionEventType } from "../../constants/propositionEventType.js";
14
+ import { isNonEmptyArray } from "../../utils/index.js";
15
15
  export default (({
16
16
  eventManager,
17
17
  mergeDecisionsMeta
@@ -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 { noop, flatMap, isNonEmptyArray } from "../../utils";
14
- import createPersonalizationDetails from "./createPersonalizationDetails";
15
- import { AUTHORING_ENABLED } from "./constants/loggerMessage";
16
- import { PropositionEventType } from "../../constants/propositionEventType";
17
- import validateApplyPropositionsOptions from "./validateApplyPropositionsOptions";
13
+ import { noop, flatMap, isNonEmptyArray } from "../../utils/index.js";
14
+ import createPersonalizationDetails from "./createPersonalizationDetails.js";
15
+ import { AUTHORING_ENABLED } from "./constants/loggerMessage.js";
16
+ import { PropositionEventType } from "../../constants/propositionEventType.js";
17
+ import validateApplyPropositionsOptions from "./validateApplyPropositionsOptions.js";
18
18
  export default (({
19
19
  getPageLocation,
20
20
  logger,
@@ -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 { groupBy } from "../../utils";
12
+ import { groupBy } from "../../utils/index.js";
13
13
  const DECISIONS_HANDLE = "personalization:decisions";
14
14
  export default (({
15
15
  prehidingStyle,
@@ -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 { OUT } from "../../constants/consentStatus";
12
+ import { OUT } from "../../constants/consentStatus.js";
13
13
  export default (({
14
14
  showContainers,
15
15
  consent
@@ -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 { defer } from "../../utils";
12
+ import { defer } from "../../utils/index.js";
13
13
  export default ((collect, renderedPropositions) => {
14
14
  return (isRenderDecisions, isSendDisplayEvent, viewName) => {
15
15
  if (!isRenderDecisions) {
@@ -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 { isNonEmptyArray } from "../../utils";
14
- import { INTERACT } from "../../constants/eventType";
15
- import { PropositionEventType } from "../../constants/propositionEventType";
13
+ import { isNonEmptyArray } from "../../utils/index.js";
14
+ import { INTERACT } from "../../constants/eventType.js";
15
+ import { PropositionEventType } from "../../constants/propositionEventType.js";
16
16
  export default (({
17
17
  mergeDecisionsMeta,
18
18
  collectClicks,
@@ -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 { includes, isNonEmptyString, isNonEmptyArray } from "../../utils";
14
- import { buildPageSurface, normalizeSurfaces } from "./utils/surfaceUtils";
15
- import PAGE_WIDE_SCOPE from "../../constants/pageWideScope";
16
- import { DEFAULT_CONTENT_ITEM, DOM_ACTION, HTML_CONTENT_ITEM, MESSAGE_IN_APP, JSON_CONTENT_ITEM, REDIRECT_ITEM, RULESET_ITEM, MESSAGE_FEED_ITEM } from "../../constants/schema";
13
+ import { includes, isNonEmptyString, isNonEmptyArray } from "../../utils/index.js";
14
+ import { buildPageSurface, normalizeSurfaces } from "./utils/surfaceUtils.js";
15
+ import PAGE_WIDE_SCOPE from "../../constants/pageWideScope.js";
16
+ import { DEFAULT_CONTENT_ITEM, DOM_ACTION, HTML_CONTENT_ITEM, MESSAGE_IN_APP, JSON_CONTENT_ITEM, REDIRECT_ITEM, RULESET_ITEM, MESSAGE_FEED_ITEM } from "../../constants/schema.js";
17
17
  const addPageWideScope = scopes => {
18
18
  if (!includes(scopes, PAGE_WIDE_SCOPE)) {
19
19
  scopes.push(PAGE_WIDE_SCOPE);
@@ -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 { DOM_ACTION } from "../../constants/schema";
13
- import remapHeadOffers from "./dom-actions/remapHeadOffers";
14
- import remapCustomCodeOffers from "./dom-actions/remapCustomCodeOffers";
12
+ import { DOM_ACTION } from "../../constants/schema.js";
13
+ import remapHeadOffers from "./dom-actions/remapHeadOffers.js";
14
+ import remapCustomCodeOffers from "./dom-actions/remapCustomCodeOffers.js";
15
15
  export default (() => {
16
16
  return {
17
17
  [DOM_ACTION]: [remapHeadOffers, remapCustomCodeOffers]
@@ -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 { noop } from "../../utils";
13
+ import { noop } from "../../utils/index.js";
14
14
  export default (({
15
15
  targetMigrationEnabled
16
16
  }) => {
@@ -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 { assign, groupBy } from "../../utils";
14
- import defer from "../../utils/defer";
15
- import { DEFAULT_CONTENT_ITEM } from "../../constants/schema";
16
- import { VIEW_SCOPE_TYPE } from "./constants/scopeType";
13
+ import { assign, groupBy } from "../../utils/index.js";
14
+ import defer from "../../utils/defer.js";
15
+ import { DEFAULT_CONTENT_ITEM } from "../../constants/schema.js";
16
+ import { VIEW_SCOPE_TYPE } from "./constants/scopeType.js";
17
17
  export default (({
18
18
  createProposition
19
19
  }) => {
@@ -10,20 +10,20 @@ 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 { awaitSelector } from "../../../utils/dom";
14
- import { hideElements, showElements } from "../flicker";
15
- import { selectNodesWithEq } from "./dom";
16
- export { default as setText } from "./setText";
17
- export { default as setHtml } from "./setHtml";
18
- export { default as appendHtml } from "./appendHtml";
19
- export { default as prependHtml } from "./prependHtml";
20
- export { default as replaceHtml } from "./replaceHtml";
21
- export { default as insertHtmlBefore } from "./insertHtmlBefore";
22
- export { default as insertHtmlAfter } from "./insertHtmlAfter";
23
- export { default as setStyles } from "./setStyles";
24
- export { default as setAttributes } from "./setAttributes";
25
- export { default as swapImage } from "./swapImage";
26
- export { default as rearrangeChildren } from "./rearrangeChildren";
13
+ import { awaitSelector } from "../../../utils/dom/index.js";
14
+ import { hideElements, showElements } from "../flicker/index.js";
15
+ import { selectNodesWithEq } from "./dom/index.js";
16
+ export { default as setText } from "./setText.js";
17
+ export { default as setHtml } from "./setHtml.js";
18
+ export { default as appendHtml } from "./appendHtml.js";
19
+ export { default as prependHtml } from "./prependHtml.js";
20
+ export { default as replaceHtml } from "./replaceHtml.js";
21
+ export { default as insertHtmlBefore } from "./insertHtmlBefore.js";
22
+ export { default as insertHtmlAfter } from "./insertHtmlAfter.js";
23
+ export { default as setStyles } from "./setStyles.js";
24
+ export { default as setAttributes } from "./setAttributes.js";
25
+ export { default as swapImage } from "./swapImage.js";
26
+ export { default as rearrangeChildren } from "./rearrangeChildren.js";
27
27
  const renderContent = (elements, content, renderFunc) => {
28
28
  const executions = elements.map(element => renderFunc(element, content));
29
29
  return Promise.all(executions);
@@ -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 { selectNodes } from "../../../utils/dom";
14
- import { STYLE } from "../../../constants/tagName";
15
- import { SRC } from "../../../constants/elementAttribute";
16
- import { getAttribute, getNonce } from "./dom";
13
+ import { selectNodes } from "../../../utils/dom/index.js";
14
+ import { STYLE } from "../../../constants/tagName.js";
15
+ import { SRC } from "../../../constants/elementAttribute.js";
16
+ import { getAttribute, getNonce } from "./dom/index.js";
17
17
  const is = (element, tagName) => element.tagName === tagName;
18
18
  const isInlineStyleElement = element => is(element, STYLE) && !getAttribute(element, SRC);
19
19
  export default (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 } 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 } 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,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 matchesSelectorWithEq from "../dom/matchesSelectorWithEq";
14
- import { VIEW_SCOPE_TYPE } from "../../constants/scopeType";
13
+ import matchesSelectorWithEq from "../dom/matchesSelectorWithEq.js";
14
+ import { VIEW_SCOPE_TYPE } from "../../constants/scopeType.js";
15
15
  const getMetasIfMatches = (clickedElement, selector, getClickMetasBySelector) => {
16
16
  const {
17
17
  documentElement