@adobe/alloy 2.23.0 → 2.24.0-beta.1

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 (347) hide show
  1. package/libEs5/components/{MachineLearning/index.js → Consent/configValidators.js} +6 -13
  2. package/libEs5/components/{Privacy → Consent}/index.js +5 -3
  3. package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/index.js +5 -5
  4. package/libEs5/components/Personalization/createApplyPropositions.js +2 -1
  5. package/libEs5/components/Personalization/createNotificationHandler.js +15 -3
  6. package/libEs5/components/Personalization/createOnDecisionHandler.js +30 -2
  7. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +4 -2
  8. package/libEs5/components/Personalization/handlers/createProcessPropositions.js +33 -15
  9. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +4 -1
  10. package/libEs5/components/Personalization/handlers/processDefaultContent.js +2 -0
  11. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +1 -1
  12. package/libEs5/components/{DecisioningEngine → RulesEngine}/createDecisionProvider.js +8 -1
  13. package/libEs5/components/{DecisioningEngine → RulesEngine}/createEvaluableRulesetPayload.js +1 -0
  14. package/libEs5/components/{DecisioningEngine → RulesEngine}/index.js +4 -4
  15. package/libEs5/components/StreamingMedia/createMediaEventManager.js +7 -4
  16. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +4 -2
  17. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +4 -2
  18. package/libEs5/constants/eventType.js +2 -1
  19. package/libEs5/constants/libraryVersion.js +1 -1
  20. package/libEs5/constants/propositionEventType.js +6 -3
  21. package/libEs5/core/componentCreators.js +14 -21
  22. package/libEs5/core/config/createCoreConfigs.js +0 -2
  23. package/libEs5/core/consent/createConsentStateMachine.js +1 -1
  24. package/libEs5/core/createLifecycle.js +1 -1
  25. package/libEs5/utils/request/createRequestParams.js +7 -2
  26. package/libEs6/baseCode/index.js +2 -2
  27. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +2 -2
  28. package/libEs6/components/ActivityCollector/createClickActivityStorage.js +2 -2
  29. package/libEs6/components/ActivityCollector/createClickedElementProperties.js +2 -2
  30. package/libEs6/components/ActivityCollector/createGetClickedElementProperties.js +2 -2
  31. package/libEs6/components/ActivityCollector/createInjectClickedElementProperties.js +2 -2
  32. package/libEs6/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +2 -2
  33. package/libEs6/components/ActivityCollector/createStorePageViewProperties.js +2 -2
  34. package/libEs6/components/ActivityCollector/getLinkName.js +2 -2
  35. package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
  36. package/libEs6/components/ActivityCollector/utils/activityMapExtensionEnabled.js +1 -1
  37. package/libEs6/components/ActivityCollector/utils/createTransientStorage.js +2 -2
  38. package/libEs6/components/ActivityCollector/utils/determineLinkType.js +2 -2
  39. package/libEs6/components/ActivityCollector/utils/dom/elementHasClickHandler.js +2 -2
  40. package/libEs6/components/ActivityCollector/utils/dom/extractDomain.js +2 -2
  41. package/libEs6/components/ActivityCollector/utils/dom/findClickableElement.js +2 -2
  42. package/libEs6/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +2 -2
  43. package/libEs6/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +2 -2
  44. package/libEs6/components/ActivityCollector/utils/dom/isDownloadLink.js +2 -2
  45. package/libEs6/components/ActivityCollector/utils/dom/isExitLink.js +2 -2
  46. package/libEs6/components/ActivityCollector/utils/dom/isInputSubmitElement.js +2 -2
  47. package/libEs6/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +2 -2
  48. package/libEs6/components/ActivityCollector/utils/dom/isSupportedTextNode.js +2 -2
  49. package/libEs6/components/ActivityCollector/utils/hasPageName.js +2 -2
  50. package/libEs6/components/ActivityCollector/utils/isDifferentDomains.js +2 -2
  51. package/libEs6/components/ActivityCollector/utils/trimQueryFromUrl.js +2 -2
  52. package/libEs6/components/ActivityCollector/utils/truncateWhiteSpace.js +2 -2
  53. package/libEs6/components/ActivityCollector/utils/urlStartsWithScheme.js +2 -2
  54. package/libEs6/components/Audiences/injectProcessDestinations.js +2 -2
  55. package/libEs6/components/Audiences/injectProcessResponse.js +2 -2
  56. package/libEs6/components/{Privacy → Consent}/computeConsentHash.js +2 -2
  57. package/libEs6/components/{MachineLearning/processResponse.js → Consent/configValidators.js} +6 -8
  58. package/libEs6/components/{Privacy → Consent}/createComponent.js +2 -2
  59. package/libEs6/components/{Privacy → Consent}/createConsentHashStore.js +2 -2
  60. package/libEs6/components/{Privacy → Consent}/createConsentRequest.js +2 -2
  61. package/libEs6/components/{Privacy → Consent}/createConsentRequestPayload.js +2 -2
  62. package/libEs6/components/{Privacy → Consent}/createStoredConsent.js +2 -2
  63. package/libEs6/components/{Privacy → Consent}/index.js +5 -3
  64. package/libEs6/components/{Privacy → Consent}/injectSendSetConsentRequest.js +2 -2
  65. package/libEs6/components/{Privacy → Consent}/parseConsentCookie.js +2 -2
  66. package/libEs6/components/Context/createComponent.js +2 -2
  67. package/libEs6/components/Context/implementationDetails.js +2 -2
  68. package/libEs6/components/Context/injectDevice.js +2 -2
  69. package/libEs6/components/Context/injectEnvironment.js +2 -2
  70. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
  71. package/libEs6/components/Context/injectPlaceContext.js +2 -2
  72. package/libEs6/components/Context/injectTimestamp.js +2 -2
  73. package/libEs6/components/Context/injectWeb.js +2 -2
  74. package/libEs6/components/DataCollector/validateApplyResponse.js +2 -2
  75. package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
  76. package/libEs6/components/EventMerge/createComponent.js +2 -2
  77. package/libEs6/components/EventMerge/createEventMergeId.js +2 -2
  78. package/libEs6/components/Identity/addEcidToPayload.js +2 -2
  79. package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +2 -2
  80. package/libEs6/components/Identity/createComponent.js +2 -2
  81. package/libEs6/components/Identity/createLegacyIdentity.js +2 -2
  82. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +2 -2
  83. package/libEs6/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +2 -2
  84. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +2 -2
  85. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +2 -2
  86. package/libEs6/components/Identity/getNamespacesFromResponse.js +2 -2
  87. package/libEs6/components/Identity/injectAddEcidQueryToPayload.js +2 -2
  88. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +2 -2
  89. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +2 -2
  90. package/libEs6/components/Identity/injectAwaitIdentityCookie.js +2 -2
  91. package/libEs6/components/Identity/injectEnsureSingleIdentity.js +2 -2
  92. package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +2 -2
  93. package/libEs6/components/Identity/injectProcessIdSyncs.js +2 -2
  94. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +2 -2
  95. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
  96. package/libEs6/components/Identity/visitorService/getVisitor.js +2 -2
  97. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +2 -2
  98. package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createGetInstance.js +2 -2
  99. package/libEs6/components/{LegacyMediaAnalytics/createLegacyMediaComponent.js → MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js} +2 -2
  100. package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createMediaHelper.js +2 -2
  101. package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/index.js +5 -5
  102. package/libEs6/components/Personalization/createActionsProvider.js +2 -2
  103. package/libEs6/components/Personalization/createApplyPropositions.js +5 -4
  104. package/libEs6/components/Personalization/createClickStorage.js +2 -2
  105. package/libEs6/components/Personalization/createComponent.js +2 -2
  106. package/libEs6/components/Personalization/createFetchDataHandler.js +2 -2
  107. package/libEs6/components/Personalization/createGetPageLocation.js +2 -2
  108. package/libEs6/components/Personalization/createHandleConsentFlicker.js +2 -2
  109. package/libEs6/components/Personalization/createInteractionStorage.js +2 -2
  110. package/libEs6/components/Personalization/createNotificationHandler.js +17 -5
  111. package/libEs6/components/Personalization/createOnClickHandler.js +2 -2
  112. package/libEs6/components/Personalization/createOnDecisionHandler.js +32 -4
  113. package/libEs6/components/Personalization/createPersonalizationDetails.js +2 -2
  114. package/libEs6/components/Personalization/createPreprocessors.js +2 -2
  115. package/libEs6/components/Personalization/createSetTargetMigration.js +2 -2
  116. package/libEs6/components/Personalization/createViewCacheManager.js +2 -2
  117. package/libEs6/components/Personalization/createViewChangeHandler.js +2 -2
  118. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +2 -2
  119. package/libEs6/components/Personalization/dom-actions/appendHtml.js +2 -2
  120. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
  121. package/libEs6/components/Personalization/dom-actions/clicks/collectInteractions.js +2 -2
  122. package/libEs6/components/Personalization/dom-actions/collectInteractions.js +2 -2
  123. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +2 -2
  124. package/libEs6/components/Personalization/dom-actions/createRedirect.js +2 -2
  125. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
  126. package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +2 -2
  127. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
  128. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +2 -2
  129. package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +2 -2
  130. package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +2 -2
  131. package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +2 -2
  132. package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +2 -2
  133. package/libEs6/components/Personalization/dom-actions/dom/getParent.js +2 -2
  134. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
  135. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +2 -2
  136. package/libEs6/components/Personalization/dom-actions/dom/isDomElement.js +1 -1
  137. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +2 -2
  138. package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +2 -2
  139. package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +2 -2
  140. package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +2 -2
  141. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
  142. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +2 -2
  143. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +2 -2
  144. package/libEs6/components/Personalization/dom-actions/prependHtml.js +2 -2
  145. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +2 -2
  146. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
  147. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +2 -2
  148. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
  149. package/libEs6/components/Personalization/dom-actions/setAttributes.js +2 -2
  150. package/libEs6/components/Personalization/dom-actions/setHtml.js +2 -2
  151. package/libEs6/components/Personalization/dom-actions/setStyles.js +2 -2
  152. package/libEs6/components/Personalization/dom-actions/setText.js +2 -2
  153. package/libEs6/components/Personalization/dom-actions/swapImage.js +2 -2
  154. package/libEs6/components/Personalization/handlers/createProcessDomAction.js +2 -2
  155. package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +2 -2
  156. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +6 -4
  157. package/libEs6/components/Personalization/handlers/createProcessPropositions.js +36 -18
  158. package/libEs6/components/Personalization/handlers/createProcessRedirect.js +2 -2
  159. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +6 -3
  160. package/libEs6/components/Personalization/handlers/processDefaultContent.js +4 -2
  161. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +2 -2
  162. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +2 -2
  163. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
  164. package/libEs6/components/Personalization/utils/createAsyncArray.js +2 -2
  165. package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +2 -2
  166. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +3 -3
  167. package/libEs6/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
  168. package/libEs6/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/schemaTypeConsequenceAdapter.js +2 -2
  169. package/libEs6/components/{DecisioningEngine → RulesEngine}/createApplyResponse.js +2 -2
  170. package/libEs6/components/{DecisioningEngine → RulesEngine}/createConsequenceAdapter.js +2 -2
  171. package/libEs6/components/{DecisioningEngine → RulesEngine}/createContextProvider.js +2 -2
  172. package/libEs6/components/{DecisioningEngine → RulesEngine}/createDecisionHistory.js +2 -2
  173. package/libEs6/components/{DecisioningEngine → RulesEngine}/createDecisionProvider.js +10 -3
  174. package/libEs6/components/{DecisioningEngine → RulesEngine}/createEvaluableRulesetPayload.js +3 -2
  175. package/libEs6/components/{DecisioningEngine → RulesEngine}/createEvaluateRulesetsCommand.js +2 -2
  176. package/libEs6/components/{DecisioningEngine → RulesEngine}/createEventRegistry.js +2 -2
  177. package/libEs6/components/{DecisioningEngine → RulesEngine}/createOnResponseHandler.js +2 -2
  178. package/libEs6/components/{DecisioningEngine → RulesEngine}/createSubscribeRulesetItems.js +2 -2
  179. package/libEs6/components/{DecisioningEngine → RulesEngine}/index.js +4 -4
  180. package/libEs6/components/StreamingMedia/createMediaEventManager.js +9 -6
  181. package/libEs6/components/StreamingMedia/createMediaRequest.js +2 -2
  182. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +2 -2
  183. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +2 -2
  184. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +2 -2
  185. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +2 -2
  186. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +6 -4
  187. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
  188. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +6 -4
  189. package/libEs6/constants/eventType.js +1 -0
  190. package/libEs6/constants/libraryVersion.js +1 -1
  191. package/libEs6/constants/propositionEventType.js +7 -4
  192. package/libEs6/core/buildAndValidateConfig.js +2 -2
  193. package/libEs6/core/componentCreators.js +3 -4
  194. package/libEs6/core/config/createCoreConfigs.js +3 -5
  195. package/libEs6/core/consent/createConsent.js +2 -2
  196. package/libEs6/core/consent/createConsentStateMachine.js +3 -3
  197. package/libEs6/core/createComponentRegistry.js +2 -2
  198. package/libEs6/core/createCookieTransfer.js +2 -2
  199. package/libEs6/core/createEvent.js +2 -2
  200. package/libEs6/core/createEventManager.js +2 -2
  201. package/libEs6/core/createInstanceFunction.js +2 -2
  202. package/libEs6/core/createLifecycle.js +3 -3
  203. package/libEs6/core/createLogController.js +2 -2
  204. package/libEs6/core/createLogger.js +2 -2
  205. package/libEs6/core/edgeNetwork/handleRequestFailure.js +2 -2
  206. package/libEs6/core/edgeNetwork/injectApplyResponse.js +2 -2
  207. package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +2 -2
  208. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +2 -2
  209. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +2 -2
  210. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +2 -2
  211. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
  212. package/libEs6/core/index.js +2 -2
  213. package/libEs6/core/initializeComponents.js +2 -2
  214. package/libEs6/core/injectCreateResponse.js +2 -2
  215. package/libEs6/core/injectExecuteCommand.js +2 -2
  216. package/libEs6/core/injectHandleError.js +2 -2
  217. package/libEs6/core/injectShouldTransferCookie.js +2 -2
  218. package/libEs6/core/network/getRequestRetryDelay.js +2 -2
  219. package/libEs6/core/network/injectSendNetworkRequest.js +2 -2
  220. package/libEs6/core/network/isRequestRetryable.js +2 -2
  221. package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +2 -2
  222. package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +2 -2
  223. package/libEs6/core/validateCommandOptions.js +2 -2
  224. package/libEs6/utils/assignConcatArrayValues.js +2 -2
  225. package/libEs6/utils/clone.js +1 -1
  226. package/libEs6/utils/createCallbackAggregator.js +2 -2
  227. package/libEs6/utils/createCollect.js +2 -2
  228. package/libEs6/utils/createLoggingCookieJar.js +2 -2
  229. package/libEs6/utils/createMerger.js +2 -2
  230. package/libEs6/utils/createTaskQueue.js +2 -2
  231. package/libEs6/utils/decodeUriComponentSafely.js +2 -2
  232. package/libEs6/utils/deduplicateArray.js +2 -2
  233. package/libEs6/utils/deepAssign.js +2 -2
  234. package/libEs6/utils/defer.js +2 -2
  235. package/libEs6/utils/dom/appendNode.js +2 -2
  236. package/libEs6/utils/dom/awaitSelector.js +2 -2
  237. package/libEs6/utils/dom/createNode.js +2 -2
  238. package/libEs6/utils/dom/isShadowSelector.js +1 -1
  239. package/libEs6/utils/dom/matchesSelector.js +2 -2
  240. package/libEs6/utils/dom/querySelectorAll.js +2 -2
  241. package/libEs6/utils/dom/removeNode.js +2 -2
  242. package/libEs6/utils/dom/selectNodes.js +2 -2
  243. package/libEs6/utils/dom/selectNodesWithShadow.js +2 -2
  244. package/libEs6/utils/fireImage.js +2 -2
  245. package/libEs6/utils/flattenObject.js +2 -2
  246. package/libEs6/utils/getApexDomain.js +2 -2
  247. package/libEs6/utils/getLastArrayItems.js +1 -1
  248. package/libEs6/utils/getNamespacedCookieName.js +1 -1
  249. package/libEs6/utils/groupBy.js +2 -2
  250. package/libEs6/utils/injectAreThirdPartyCookiesSupportedByDefault.js +2 -2
  251. package/libEs6/utils/injectDoesIdentityCookieExist.js +2 -2
  252. package/libEs6/utils/injectFireReferrerHideableImage.js +2 -2
  253. package/libEs6/utils/injectGetBrowser.js +2 -2
  254. package/libEs6/utils/injectStorage.js +2 -2
  255. package/libEs6/utils/intersection.js +1 -1
  256. package/libEs6/utils/isBlankString.js +1 -1
  257. package/libEs6/utils/isBoolean.js +1 -1
  258. package/libEs6/utils/isEmptyObject.js +1 -1
  259. package/libEs6/utils/isFunction.js +1 -1
  260. package/libEs6/utils/isInteger.js +2 -2
  261. package/libEs6/utils/isNamespacedCookieName.js +1 -1
  262. package/libEs6/utils/isNil.js +1 -1
  263. package/libEs6/utils/isNonEmptyArray.js +1 -1
  264. package/libEs6/utils/isNonEmptyString.js +1 -1
  265. package/libEs6/utils/isNumber.js +1 -1
  266. package/libEs6/utils/isObject.js +1 -1
  267. package/libEs6/utils/isString.js +1 -1
  268. package/libEs6/utils/isUnique.js +2 -2
  269. package/libEs6/utils/isValidRegExp.js +2 -2
  270. package/libEs6/utils/lazy.js +2 -2
  271. package/libEs6/utils/noop.js +1 -1
  272. package/libEs6/utils/prepareConfigOverridesForEdge.js +2 -2
  273. package/libEs6/utils/request/createAddIdentity.js +2 -2
  274. package/libEs6/utils/request/createDataCollectionRequest.js +2 -2
  275. package/libEs6/utils/request/createDataCollectionRequestPayload.js +2 -2
  276. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +2 -2
  277. package/libEs6/utils/request/createHasIdentity.js +2 -2
  278. package/libEs6/utils/request/createRequest.js +2 -2
  279. package/libEs6/utils/request/createRequestParams.js +10 -4
  280. package/libEs6/utils/request/createRequestPayload.js +2 -2
  281. package/libEs6/utils/sanitizeOrgIdForCookieName.js +1 -1
  282. package/libEs6/utils/stackError.js +2 -2
  283. package/libEs6/utils/stringToBoolean.js +2 -2
  284. package/libEs6/utils/toArray.js +2 -2
  285. package/libEs6/utils/toError.js +2 -2
  286. package/libEs6/utils/toISOStringLocal.js +2 -2
  287. package/libEs6/utils/toInteger.js +2 -2
  288. package/libEs6/utils/updateErrorMessage.js +2 -2
  289. package/libEs6/utils/validation/booleanValidator.js +2 -2
  290. package/libEs6/utils/validation/callbackValidator.js +2 -2
  291. package/libEs6/utils/validation/createAnyOfValidator.js +2 -2
  292. package/libEs6/utils/validation/createArrayOfValidator.js +2 -2
  293. package/libEs6/utils/validation/createDefaultValidator.js +2 -2
  294. package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
  295. package/libEs6/utils/validation/createLiteralValidator.js +2 -2
  296. package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
  297. package/libEs6/utils/validation/createMaximumValidator.js +2 -2
  298. package/libEs6/utils/validation/createMinimumValidator.js +2 -2
  299. package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +2 -2
  300. package/libEs6/utils/validation/createNonEmptyValidator.js +2 -2
  301. package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
  302. package/libEs6/utils/validation/createRenamedValidator.js +2 -2
  303. package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
  304. package/libEs6/utils/validation/createUniqueValidator.js +2 -2
  305. package/libEs6/utils/validation/domainValidator.js +2 -2
  306. package/libEs6/utils/validation/integerValidator.js +2 -2
  307. package/libEs6/utils/validation/matchesRegexpValidator.js +2 -2
  308. package/libEs6/utils/validation/numberValidator.js +2 -2
  309. package/libEs6/utils/validation/regexpValidator.js +2 -2
  310. package/libEs6/utils/validation/requiredValidator.js +2 -2
  311. package/libEs6/utils/validation/stringValidator.js +2 -2
  312. package/package.json +30 -30
  313. package/rollup.config.js +1 -0
  314. package/scripts/alloyBuilder.js +24 -29
  315. package/libEs5/components/MachineLearning/processResponse.js +0 -21
  316. package/libEs6/components/MachineLearning/index.js +0 -23
  317. /package/libEs5/components/{Privacy → Consent}/computeConsentHash.js +0 -0
  318. /package/libEs5/components/{Privacy → Consent}/createComponent.js +0 -0
  319. /package/libEs5/components/{Privacy → Consent}/createConsentHashStore.js +0 -0
  320. /package/libEs5/components/{Privacy → Consent}/createConsentRequest.js +0 -0
  321. /package/libEs5/components/{Privacy → Consent}/createConsentRequestPayload.js +0 -0
  322. /package/libEs5/components/{Privacy → Consent}/createStoredConsent.js +0 -0
  323. /package/libEs5/components/{Privacy → Consent}/injectSendSetConsentRequest.js +0 -0
  324. /package/libEs5/components/{Privacy → Consent}/parseConsentCookie.js +0 -0
  325. /package/libEs5/components/{Privacy → Consent}/validateSetConsentOptions.js +0 -0
  326. /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js +0 -0
  327. /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/mediaKeysToXdmConverter.js +0 -0
  328. /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createGetInstance.js +0 -0
  329. /package/libEs5/components/{LegacyMediaAnalytics/createLegacyMediaComponent.js → MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js} +0 -0
  330. /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createMediaHelper.js +0 -0
  331. /package/libEs5/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -0
  332. /package/libEs5/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -0
  333. /package/libEs5/components/{DecisioningEngine → RulesEngine}/constants.js +0 -0
  334. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createApplyResponse.js +0 -0
  335. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createConsequenceAdapter.js +0 -0
  336. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createContextProvider.js +0 -0
  337. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createDecisionHistory.js +0 -0
  338. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createEvaluateRulesetsCommand.js +0 -0
  339. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createEventRegistry.js +0 -0
  340. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createOnResponseHandler.js +0 -0
  341. /package/libEs5/components/{DecisioningEngine → RulesEngine}/createSubscribeRulesetItems.js +0 -0
  342. /package/libEs5/components/{DecisioningEngine → RulesEngine}/utils.js +0 -0
  343. /package/libEs6/components/{Privacy → Consent}/validateSetConsentOptions.js +0 -0
  344. /package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js +0 -0
  345. /package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/mediaKeysToXdmConverter.js +0 -0
  346. /package/libEs6/components/{DecisioningEngine → RulesEngine}/constants.js +0 -0
  347. /package/libEs6/components/{DecisioningEngine → RulesEngine}/utils.js +0 -0
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
  import { noop } from "../../utils/index.js";
13
13
  import validateSessionOptions from "./validateMediaSessionOptions.js";
14
14
  import validateMediaEventOptions from "./validateMediaEventOptions.js";
15
- export default (({
15
+ export default ({
16
16
  config,
17
17
  trackMediaEvent,
18
18
  trackMediaSession,
@@ -66,4 +66,4 @@ export default (({
66
66
  }
67
67
  }
68
68
  };
69
- });
69
+ };
@@ -22,7 +22,7 @@ const getContentState = (eventType, sessionContentState) => {
22
22
  }
23
23
  return sessionContentState;
24
24
  };
25
- export default (({
25
+ export default ({
26
26
  mediaEventManager,
27
27
  mediaSessionCacheManager,
28
28
  config
@@ -90,4 +90,4 @@ export default (({
90
90
  });
91
91
  };
92
92
  return options => sendMediaEvent(options);
93
- });
93
+ };
@@ -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
  import PlaybackState from "./constants/playbackState.js";
13
- export default (({
13
+ export default ({
14
14
  config,
15
15
  mediaEventManager,
16
16
  mediaSessionCacheManager,
@@ -22,7 +22,8 @@ export default (({
22
22
  }
23
23
  const {
24
24
  playerId,
25
- getPlayerDetails
25
+ getPlayerDetails,
26
+ edgeConfigOverrides
26
27
  } = options;
27
28
  const event = mediaEventManager.createMediaSession(options);
28
29
  mediaEventManager.augmentMediaEvent({
@@ -36,7 +37,8 @@ export default (({
36
37
  playerId,
37
38
  getPlayerDetails,
38
39
  legacy
39
- }
40
+ },
41
+ edgeConfigOverrides
40
42
  });
41
43
  mediaSessionCacheManager.storeSession({
42
44
  playerId,
@@ -48,4 +50,4 @@ export default (({
48
50
  });
49
51
  return sessionPromise;
50
52
  };
51
- });
53
+ };
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
11
11
  */
12
12
  import { anyOf, anything, enumOf, number, objectOf, string } from "../../utils/validation/index.js";
13
13
  import EventTypes from "./constants/eventTypes.js";
14
- export default (({
14
+ export default ({
15
15
  options
16
16
  }) => {
17
17
  const validator = anyOf([objectOf({
@@ -30,4 +30,4 @@ export default (({
30
30
  }).required()
31
31
  }).required()], "Error validating the sendMediaEvent command options.");
32
32
  return validator(options);
33
- });
33
+ };
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import { anyOf, anything, callback, number, objectOf, string } from "../../utils/validation/index.js";
14
- export default (({
14
+ export default ({
15
15
  options
16
16
  }) => {
17
17
  const sessionValidator = anyOf([objectOf({
@@ -21,14 +21,16 @@ export default (({
21
21
  mediaCollection: objectOf({
22
22
  sessionDetails: objectOf(anything()).required()
23
23
  })
24
- })
24
+ }),
25
+ edgeConfigOverrides: objectOf({})
25
26
  }).required(), objectOf({
26
27
  xdm: objectOf({
27
28
  mediaCollection: objectOf({
28
29
  playhead: number().required(),
29
30
  sessionDetails: objectOf(anything()).required()
30
31
  })
31
- })
32
+ }),
33
+ edgeConfigOverrides: objectOf({})
32
34
  }).required()], "Error validating the createMediaSession command options.");
33
35
  return sessionValidator(options);
34
- });
36
+ };
@@ -14,4 +14,5 @@ export const DISPLAY = "decisioning.propositionDisplay";
14
14
  export const INTERACT = "decisioning.propositionInteract";
15
15
  export const TRIGGER = "decisioning.propositionTrigger";
16
16
  export const DISMISS = "decisioning.propositionDismiss";
17
+ export const SUPPRESS = "decisioning.propositionSuppressDisplay";
17
18
  export const EVENT_TYPE_TRUE = 1;
@@ -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.23.0";
16
+ export default "2.24.0-beta.1";
@@ -10,24 +10,27 @@ 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.js";
13
+ import { DISPLAY, INTERACT, TRIGGER, DISMISS, SUPPRESS } from "./eventType.js";
14
14
  export const PropositionEventType = {
15
15
  DISPLAY: "display",
16
16
  INTERACT: "interact",
17
17
  TRIGGER: "trigger",
18
- DISMISS: "dismiss"
18
+ DISMISS: "dismiss",
19
+ SUPPRESS: "suppressDisplay"
19
20
  };
20
21
  const eventTypeToPropositionEventTypeMapping = {
21
22
  [DISPLAY]: PropositionEventType.DISPLAY,
22
23
  [INTERACT]: PropositionEventType.INTERACT,
23
24
  [TRIGGER]: PropositionEventType.TRIGGER,
24
- [DISMISS]: PropositionEventType.DISMISS
25
+ [DISMISS]: PropositionEventType.DISMISS,
26
+ [SUPPRESS]: PropositionEventType.SUPPRESS
25
27
  };
26
28
  const propositionEventTypeToEventTypeMapping = {
27
29
  [PropositionEventType.DISPLAY]: DISPLAY,
28
30
  [PropositionEventType.INTERACT]: INTERACT,
29
31
  [PropositionEventType.TRIGGER]: TRIGGER,
30
- [PropositionEventType.DISMISS]: DISMISS
32
+ [PropositionEventType.DISMISS]: DISMISS,
33
+ [PropositionEventType.SUPPRESS]: SUPPRESS
31
34
  };
32
35
  export const getPropositionEventType = eventType => eventTypeToPropositionEventTypeMapping[eventType];
33
36
  export const getEventType = propositionEventType => propositionEventTypeToEventTypeMapping[propositionEventType];
@@ -64,7 +64,7 @@ const wrapLoggerInQueue = logger => {
64
64
  });
65
65
  return queuedLogger;
66
66
  };
67
- export default (({
67
+ export default ({
68
68
  options,
69
69
  componentCreators,
70
70
  coreConfigValidators,
@@ -94,4 +94,4 @@ export default (({
94
94
  config
95
95
  });
96
96
  return config;
97
- });
97
+ };
@@ -17,10 +17,9 @@ governing permissions and limitations under the License.
17
17
  export { default as activityCollector } from "../components/ActivityCollector/index.js";
18
18
  export { default as audiences } from "../components/Audiences/index.js";
19
19
  export { default as context } from "../components/Context/index.js";
20
- export { default as decisioningEngine } from "../components/DecisioningEngine/index.js";
20
+ export { default as rulesEngine } from "../components/RulesEngine/index.js";
21
21
  export { default as eventMerge } from "../components/EventMerge/index.js";
22
- export { default as legacyMediaAnalytics } from "../components/LegacyMediaAnalytics/index.js";
23
- export { default as machineLearning } from "../components/MachineLearning/index.js";
22
+ export { default as mediaAnalyticsBridge } from "../components/MediaAnalyticsBridge/index.js";
24
23
  export { default as personalization } from "../components/Personalization/index.js";
25
- export { default as privacy } from "../components/Privacy/index.js";
24
+ export { default as consent } from "../components/Consent/index.js";
26
25
  export { default as streamingMedia } from "../components/StreamingMedia/index.js";
@@ -10,18 +10,16 @@ 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/index.js";
13
+ import { boolean, string, callback, objectOf } from "../../utils/validation/index.js";
14
14
  import { noop, validateConfigOverride } from "../../utils/index.js";
15
15
  import { EDGE as EDGE_DOMAIN } from "../../constants/domain.js";
16
16
  import EDGE_BASE_PATH from "../../constants/edgeBasePath.js";
17
- import { IN, OUT, PENDING } from "../../constants/consentStatus.js";
18
- export default (() => objectOf({
17
+ export default () => objectOf({
19
18
  debugEnabled: boolean().default(false),
20
- defaultConsent: enumOf(IN, OUT, PENDING).default(IN),
21
19
  datastreamId: string().unique().required(),
22
20
  edgeDomain: string().domain().default(EDGE_DOMAIN),
23
21
  edgeBasePath: string().nonEmpty().default(EDGE_BASE_PATH),
24
22
  orgId: string().unique().required(),
25
23
  onBeforeEventSend: callback().default(noop),
26
24
  edgeConfigOverrides: validateConfigOverride
27
- }).renamed("edgeConfigId", string().unique(), "datastreamId"));
25
+ }).renamed("edgeConfigId", string().unique(), "datastreamId");
@@ -13,7 +13,7 @@ governing permissions and limitations under the License.
13
13
  import { IN, OUT, PENDING } from "../../constants/consentStatus.js";
14
14
  import { GENERAL } from "../../constants/consentPurpose.js";
15
15
  import { CONSENT_SOURCE_DEFAULT, CONSENT_SOURCE_INITIAL, CONSENT_SOURCE_NEW } from "./createConsentStateMachine.js";
16
- export default (({
16
+ export default ({
17
17
  generalConsentState,
18
18
  logger
19
19
  }) => {
@@ -57,4 +57,4 @@ export default (({
57
57
  return generalConsentState.current();
58
58
  }
59
59
  };
60
- });
60
+ };
@@ -22,7 +22,7 @@ const createDeclinedConsentError = errorMessage => {
22
22
  error.message = errorMessage;
23
23
  return error;
24
24
  };
25
- export default (({
25
+ export default ({
26
26
  logger
27
27
  }) => {
28
28
  const deferreds = [];
@@ -36,7 +36,7 @@ export default (({
36
36
  deferreds.shift().reject(createDeclinedConsentError("The user declined consent."));
37
37
  }
38
38
  };
39
- const awaitInitial = () => Promise.reject(new Error("Consent has not been initialized."));
39
+ const awaitInitial = () => Promise.resolve();
40
40
  const awaitInDefault = () => Promise.resolve();
41
41
  const awaitIn = () => Promise.resolve();
42
42
  const awaitOutDefault = () => Promise.reject(createDeclinedConsentError("No consent preferences have been set."));
@@ -122,4 +122,4 @@ export default (({
122
122
  }
123
123
  }
124
124
  };
125
- });
125
+ };
@@ -35,7 +35,7 @@ const wrapForErrorHandling = (fn, stackMessage) => {
35
35
  };
36
36
 
37
37
  // TO-DOCUMENT: All public commands and their signatures.
38
- export default (() => {
38
+ export default () => {
39
39
  const componentsByNamespace = {};
40
40
  const commandsByName = {};
41
41
  const lifecycleCallbacksByName = {};
@@ -80,4 +80,4 @@ export default (() => {
80
80
  return Object.keys(componentsByNamespace);
81
81
  }
82
82
  };
83
- });
83
+ };
@@ -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
  const STATE_STORE_HANDLE_TYPE = "state:store";
13
- export default (({
13
+ export default ({
14
14
  cookieJar,
15
15
  shouldTransferCookie,
16
16
  apexDomain,
@@ -75,4 +75,4 @@ export default (({
75
75
  });
76
76
  }
77
77
  };
78
- });
78
+ };
@@ -22,7 +22,7 @@ const getXdmPropositions = xdm => {
22
22
  // eslint-disable-next-line no-underscore-dangle
23
23
  xdm._experience.decisioning.propositions : [];
24
24
  };
25
- export default (() => {
25
+ export default () => {
26
26
  const content = {};
27
27
  let userXdm;
28
28
  let userData;
@@ -158,4 +158,4 @@ export default (() => {
158
158
  }
159
159
  };
160
160
  return event;
161
- });
161
+ };
@@ -14,7 +14,7 @@ import PAGE_WIDE_SCOPE from "../constants/pageWideScope.js";
14
14
  import { createCallbackAggregator, noop } from "../utils/index.js";
15
15
  import { createRequestParams } from "../utils/request/index.js";
16
16
  const EVENT_CANCELLATION_MESSAGE = "Event was canceled because the onBeforeEventSend callback returned false.";
17
- export default (({
17
+ export default ({
18
18
  config,
19
19
  logger,
20
20
  lifecycle,
@@ -132,4 +132,4 @@ export default (({
132
132
  });
133
133
  }
134
134
  };
135
- });
135
+ };
@@ -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
- export default (executeCommand => {
13
+ export default executeCommand => {
14
14
  return ([resolve, reject, [commandName, options]]) => {
15
15
  executeCommand(commandName, options).then(resolve, reject);
16
16
  };
17
- });
17
+ };
@@ -30,7 +30,7 @@ const hookNames = [
30
30
  "onRequestFailure",
31
31
  // A user clicked on an element.
32
32
  "onClick",
33
- // Called by DecisioningEngine when a ruleset is satisfied with a list of
33
+ // Called by RulesEngine when a ruleset is satisfied with a list of
34
34
  // propositions
35
35
  "onDecision"];
36
36
  const createHook = (componentRegistry, hookName) => {
@@ -57,9 +57,9 @@ const guardHook = fn => {
57
57
  });
58
58
  };
59
59
  };
60
- export default (componentRegistry => {
60
+ export default componentRegistry => {
61
61
  return hookNames.reduce((memo, hookName) => {
62
62
  memo[hookName] = guardHook(createHook(componentRegistry, hookName));
63
63
  return memo;
64
64
  }, {});
65
- });
65
+ };
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
 
13
13
  import { queryString, stringToBoolean } from "../utils/index.js";
14
14
  import debugQueryParam from "../constants/debugQueryParam.js";
15
- export default (({
15
+ export default ({
16
16
  console,
17
17
  locationSearch,
18
18
  createLogger,
@@ -65,4 +65,4 @@ export default (({
65
65
  });
66
66
  }
67
67
  };
68
- });
68
+ };
@@ -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
- export default (({
13
+ export default ({
14
14
  getDebugEnabled,
15
15
  console,
16
16
  getMonitors,
@@ -111,4 +111,4 @@ export default (({
111
111
  */
112
112
  error: log.bind(null, "error")
113
113
  };
114
- });
114
+ };
@@ -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
- export default (onRequestFailureCallbackAggregator => {
12
+ export default onRequestFailureCallbackAggregator => {
13
13
  return error => {
14
14
  // Regardless of whether the network call failed, an unexpected status
15
15
  // code was returned, or the response body was malformed, we want to call
@@ -21,4 +21,4 @@ export default (onRequestFailureCallbackAggregator => {
21
21
  error
22
22
  }).then(throwError, throwError);
23
23
  };
24
- });
24
+ };
@@ -13,7 +13,7 @@ import { createCallbackAggregator, noop } from "../../utils/index.js";
13
13
  import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
14
14
  import handleRequestFailure from "./handleRequestFailure.js";
15
15
  const HTTP_STATUS_OK = 200;
16
- export default (({
16
+ export default ({
17
17
  cookieTransfer,
18
18
  lifecycle,
19
19
  createResponse,
@@ -55,4 +55,4 @@ export default (({
55
55
  }).then(mergeLifecycleResponses);
56
56
  });
57
57
  };
58
- });
58
+ };
@@ -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
- export default (({
13
+ export default ({
14
14
  logger
15
15
  }) => adobeEdgeHeader => {
16
16
  if (adobeEdgeHeader) {
@@ -30,4 +30,4 @@ export default (({
30
30
  logger.warn(`Invalid adobe edge: "${adobeEdgeHeader}"`);
31
31
  }
32
32
  return {};
33
- });
33
+ };
@@ -13,7 +13,7 @@ governing permissions and limitations under the License.
13
13
  import { getNamespacedCookieName } from "../../utils/index.js";
14
14
  import { CLUSTER } from "../../constants/cookieNameKey.js";
15
15
  import { MBOX_EDGE_CLUSTER } from "../../constants/legacyCookies.js";
16
- export default (({
16
+ export default ({
17
17
  orgId,
18
18
  cookieJar
19
19
  }) => {
@@ -29,4 +29,4 @@ export default (({
29
29
  return () => {
30
30
  return fromClusterCookie() || fromTarget();
31
31
  };
32
- });
32
+ };
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
 
13
13
  import { NO_CONTENT } from "../../constants/httpStatusCode.js";
14
14
  const MESSAGE_PREFIX = "The server responded with a";
15
- export default (({
15
+ export default ({
16
16
  logger
17
17
  }) => {
18
18
  return networkResponse => {
@@ -39,4 +39,4 @@ export default (({
39
39
  });
40
40
  }
41
41
  };
42
- });
42
+ };
@@ -15,7 +15,7 @@ import apiVersion from "../../constants/apiVersion.js";
15
15
  import { createCallbackAggregator, noop } from "../../utils/index.js";
16
16
  import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
17
17
  import handleRequestFailure from "./handleRequestFailure.js";
18
- export default (({
18
+ export default ({
19
19
  config,
20
20
  lifecycle,
21
21
  cookieTransfer,
@@ -97,4 +97,4 @@ export default (({
97
97
  }).then(mergeLifecycleResponses);
98
98
  });
99
99
  };
100
- });
100
+ };
@@ -11,11 +11,11 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import { assignConcatArrayValues } from "../../utils/index.js";
14
- export default (returnValues => {
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.
17
17
  const lifecycleOnResponseReturnValues = returnValues.shift() || [];
18
18
  const consumerOnResponseReturnValues = returnValues.shift() || [];
19
19
  const lifecycleOnBeforeRequestReturnValues = returnValues;
20
20
  return assignConcatArrayValues({}, ...lifecycleOnResponseReturnValues, ...consumerOnResponseReturnValues, ...lifecycleOnBeforeRequestReturnValues);
21
- });
21
+ };
@@ -209,7 +209,7 @@ export const createExecuteCommand = ({
209
209
  });
210
210
  return executeCommand;
211
211
  };
212
- export default (({
212
+ export default ({
213
213
  components
214
214
  }) => {
215
215
  // eslint-disable-next-line no-underscore-dangle
@@ -238,4 +238,4 @@ export default (({
238
238
  queue.forEach(instance);
239
239
  });
240
240
  }
241
- });
241
+ };
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import { stackError } from "../utils/index.js";
14
- export default (({
14
+ export default ({
15
15
  componentCreators,
16
16
  lifecycle,
17
17
  componentRegistry,
@@ -37,4 +37,4 @@ export default (({
37
37
  return lifecycle.onComponentsRegistered({
38
38
  lifecycle
39
39
  }).then(() => componentRegistry);
40
- });
40
+ };
@@ -16,7 +16,7 @@ import { ADOBE_EDGE } from "../constants/httpHeaderNames.js";
16
16
  * helper methods.
17
17
  * @returns Response
18
18
  */
19
- export default (({
19
+ export default ({
20
20
  extractEdgeInfo
21
21
  }) => ({
22
22
  content = {},
@@ -65,4 +65,4 @@ export default (({
65
65
  return content;
66
66
  }
67
67
  };
68
- });
68
+ };
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
 
13
13
  import { isFunction, isObject } from "../utils/index.js";
14
14
  import { CONFIGURE, SET_DEBUG } from "../constants/coreCommands.js";
15
- export default (({
15
+ export default ({
16
16
  logger,
17
17
  configureCommand,
18
18
  setDebugCommand,
@@ -97,4 +97,4 @@ export default (({
97
97
  return result;
98
98
  });
99
99
  };
100
- });
100
+ };
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
 
13
13
  import { toError, updateErrorMessage } from "../utils/index.js";
14
14
  import { DECLINED_CONSENT_ERROR_CODE } from "./consent/createConsentStateMachine.js";
15
- export default (({
15
+ export default ({
16
16
  errorPrefix,
17
17
  logger
18
18
  }) => (error, operation) => {
@@ -30,4 +30,4 @@ export default (({
30
30
  message: `${errorPrefix} ${err.message}`
31
31
  });
32
32
  throw err;
33
- });
33
+ };
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
12
12
 
13
13
  import { isNamespacedCookieName } from "../utils/index.js";
14
14
  import { AT_QA_MODE, MBOX } from "../constants/legacyCookies.js";
15
- export default (({
15
+ export default ({
16
16
  orgId,
17
17
  targetMigrationEnabled
18
18
  }) => name => {
@@ -22,4 +22,4 @@ export default (({
22
22
  // cookie names (so that the server can handle migrating
23
23
  // identities on websites previously using Visitor.js)
24
24
  return isNamespacedCookieName(orgId, name) || name === AT_QA_MODE || targetMigrationEnabled && name === MBOX;
25
- });
25
+ };
@@ -54,7 +54,7 @@ const getDelayFromHeader = response => {
54
54
  // practices outlined in https://docs.microsoft.com/en-us/azure/architecture/best-practices/transient-faults:
55
55
  // * Incremental retry
56
56
  // * Random interval
57
- export default (({
57
+ export default ({
58
58
  response,
59
59
  retriesAttempted
60
60
  }) => {
@@ -69,4 +69,4 @@ export default (({
69
69
  delayInMillis = calculateRetryDelay(retriesAttempted);
70
70
  }
71
71
  return delayInMillis;
72
- });
72
+ };
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  import { stackError } from "../../utils/index.js";
14
- export default (({
14
+ export default ({
15
15
  logger,
16
16
  sendFetchRequest,
17
17
  sendBeaconRequest,
@@ -93,4 +93,4 @@ export default (({
93
93
  });
94
94
  });
95
95
  };
96
- });
96
+ };
@@ -16,9 +16,9 @@ const RETRYABLE_STATUS_CODES = [TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE, BAD_GATE
16
16
 
17
17
  // These rules are in accordance with
18
18
  // https://git.corp.adobe.com/pages/experience-edge/konductor/#/apis/errors?id=handling-4xx-and-5xx-responses
19
- export default (({
19
+ export default ({
20
20
  response,
21
21
  retriesAttempted
22
22
  }) => {
23
23
  return retriesAttempted < MAX_RETRIES && RETRYABLE_STATUS_CODES.includes(response.statusCode);
24
- });
24
+ };
@@ -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
- export default (({
13
+ export default ({
14
14
  sendBeacon,
15
15
  sendFetchRequest,
16
16
  logger
@@ -35,4 +35,4 @@ export default (({
35
35
  body: ""
36
36
  });
37
37
  };
38
- });
38
+ };
@@ -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
- export default (({
13
+ export default ({
14
14
  fetch
15
15
  }) => {
16
16
  return (url, body) => {
@@ -37,4 +37,4 @@ export default (({
37
37
  }));
38
38
  });
39
39
  };
40
- });
40
+ };