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

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 (701) hide show
  1. package/package.json +68 -65
  2. package/libEs5/baseCode/index.js +0 -61
  3. package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +0 -53
  4. package/libEs5/components/ActivityCollector/configValidators.js +0 -22
  5. package/libEs5/components/ActivityCollector/createGetLinkDetails.js +0 -68
  6. package/libEs5/components/ActivityCollector/createLinkClick.js +0 -38
  7. package/libEs5/components/ActivityCollector/getLinkName.js +0 -139
  8. package/libEs5/components/ActivityCollector/getLinkRegion.js +0 -61
  9. package/libEs5/components/ActivityCollector/index.js +0 -78
  10. package/libEs5/components/ActivityCollector/utils.js +0 -104
  11. package/libEs5/components/Audiences/index.js +0 -49
  12. package/libEs5/components/Audiences/injectProcessDestinations.js +0 -67
  13. package/libEs5/components/Audiences/injectProcessResponse.js +0 -38
  14. package/libEs5/components/Context/createComponent.js +0 -39
  15. package/libEs5/components/Context/implementationDetails.js +0 -27
  16. package/libEs5/components/Context/index.js +0 -59
  17. package/libEs5/components/Context/injectDevice.js +0 -66
  18. package/libEs5/components/Context/injectEnvironment.js +0 -40
  19. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +0 -58
  20. package/libEs5/components/Context/injectPlaceContext.js +0 -32
  21. package/libEs5/components/Context/injectTimestamp.js +0 -23
  22. package/libEs5/components/Context/injectWeb.js +0 -30
  23. package/libEs5/components/DataCollector/index.js +0 -110
  24. package/libEs5/components/DataCollector/validateApplyResponse.js +0 -35
  25. package/libEs5/components/DataCollector/validateUserEventOptions.js +0 -50
  26. package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -31
  27. package/libEs5/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -24
  28. package/libEs5/components/DecisioningEngine/constants.js +0 -28
  29. package/libEs5/components/DecisioningEngine/createApplyResponse.js +0 -35
  30. package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +0 -30
  31. package/libEs5/components/DecisioningEngine/createContextProvider.js +0 -95
  32. package/libEs5/components/DecisioningEngine/createDecisionHistory.js +0 -27
  33. package/libEs5/components/DecisioningEngine/createDecisionProvider.js +0 -50
  34. package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +0 -82
  35. package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +0 -48
  36. package/libEs5/components/DecisioningEngine/createEventRegistry.js +0 -130
  37. package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +0 -48
  38. package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +0 -89
  39. package/libEs5/components/DecisioningEngine/index.js +0 -119
  40. package/libEs5/components/DecisioningEngine/utils.js +0 -82
  41. package/libEs5/components/EventMerge/createComponent.js +0 -24
  42. package/libEs5/components/EventMerge/createEventMergeId.js +0 -20
  43. package/libEs5/components/EventMerge/index.js +0 -24
  44. package/libEs5/components/Identity/addEcidQueryToPayload.js +0 -22
  45. package/libEs5/components/Identity/addEcidToPayload.js +0 -20
  46. package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -25
  47. package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -45
  48. package/libEs5/components/Identity/configValidators.js +0 -21
  49. package/libEs5/components/Identity/constants/authState.js +0 -18
  50. package/libEs5/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -15
  51. package/libEs5/components/Identity/createComponent.js +0 -97
  52. package/libEs5/components/Identity/createLegacyIdentity.js +0 -72
  53. package/libEs5/components/Identity/getEcidFromResponse.js +0 -23
  54. package/libEs5/components/Identity/getIdentity/createGetIdentity.js +0 -35
  55. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +0 -29
  56. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -29
  57. package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +0 -27
  58. package/libEs5/components/Identity/index.js +0 -129
  59. package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +0 -31
  60. package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -68
  61. package/libEs5/components/Identity/injectAwaitIdentityCookie.js +0 -52
  62. package/libEs5/components/Identity/injectEnsureSingleIdentity.js +0 -100
  63. package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +0 -20
  64. package/libEs5/components/Identity/injectProcessIdSyncs.js +0 -41
  65. package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -33
  66. package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +0 -34
  67. package/libEs5/components/Identity/visitorService/getVisitor.js +0 -19
  68. package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -49
  69. package/libEs5/components/LegacyMediaAnalytics/constants/constants.js +0 -144
  70. package/libEs5/components/LegacyMediaAnalytics/constants/mediaKeysToXdmConverter.js +0 -49
  71. package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +0 -246
  72. package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +0 -87
  73. package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +0 -181
  74. package/libEs5/components/LegacyMediaAnalytics/index.js +0 -71
  75. package/libEs5/components/LibraryInfo/index.js +0 -68
  76. package/libEs5/components/MachineLearning/index.js +0 -26
  77. package/libEs5/components/MachineLearning/processResponse.js +0 -19
  78. package/libEs5/components/Personalization/constants/loggerMessage.js +0 -16
  79. package/libEs5/components/Personalization/constants/scopeType.js +0 -18
  80. package/libEs5/components/Personalization/constants/surface.js +0 -19
  81. package/libEs5/components/Personalization/createActionsProvider.js +0 -71
  82. package/libEs5/components/Personalization/createApplyPropositions.js +0 -115
  83. package/libEs5/components/Personalization/createClickStorage.js +0 -64
  84. package/libEs5/components/Personalization/createCollect.js +0 -53
  85. package/libEs5/components/Personalization/createComponent.js +0 -145
  86. package/libEs5/components/Personalization/createFetchDataHandler.js +0 -92
  87. package/libEs5/components/Personalization/createGetPageLocation.js +0 -20
  88. package/libEs5/components/Personalization/createHandleConsentFlicker.js +0 -29
  89. package/libEs5/components/Personalization/createNotificationHandler.js +0 -38
  90. package/libEs5/components/Personalization/createOnClickHandler.js +0 -51
  91. package/libEs5/components/Personalization/createOnDecisionHandler.js +0 -43
  92. package/libEs5/components/Personalization/createPersonalizationDetails.js +0 -104
  93. package/libEs5/components/Personalization/createPreprocessors.js +0 -23
  94. package/libEs5/components/Personalization/createSetTargetMigration.js +0 -28
  95. package/libEs5/components/Personalization/createViewCacheManager.js +0 -90
  96. package/libEs5/components/Personalization/createViewChangeHandler.js +0 -45
  97. package/libEs5/components/Personalization/dom-actions/action.js +0 -120
  98. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -41
  99. package/libEs5/components/Personalization/dom-actions/appendHtml.js +0 -32
  100. package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +0 -108
  101. package/libEs5/components/Personalization/dom-actions/createPreprocess.js +0 -25
  102. package/libEs5/components/Personalization/dom-actions/createRedirect.js +0 -29
  103. package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +0 -21
  104. package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +0 -17
  105. package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +0 -22
  106. package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +0 -22
  107. package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +0 -24
  108. package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +0 -17
  109. package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +0 -17
  110. package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +0 -35
  111. package/libEs5/components/Personalization/dom-actions/dom/getParent.js +0 -17
  112. package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +0 -24
  113. package/libEs5/components/Personalization/dom-actions/dom/index.js +0 -100
  114. package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +0 -25
  115. package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +0 -24
  116. package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -37
  117. package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +0 -17
  118. package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -104
  119. package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +0 -17
  120. package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +0 -23
  121. package/libEs5/components/Personalization/dom-actions/images.js +0 -36
  122. package/libEs5/components/Personalization/dom-actions/index.js +0 -9
  123. package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +0 -35
  124. package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +0 -31
  125. package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +0 -31
  126. package/libEs5/components/Personalization/dom-actions/prependHtml.js +0 -45
  127. package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +0 -32
  128. package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -36
  129. package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +0 -54
  130. package/libEs5/components/Personalization/dom-actions/replaceHtml.js +0 -20
  131. package/libEs5/components/Personalization/dom-actions/scripts.js +0 -90
  132. package/libEs5/components/Personalization/dom-actions/setAttributes.js +0 -20
  133. package/libEs5/components/Personalization/dom-actions/setHtml.js +0 -27
  134. package/libEs5/components/Personalization/dom-actions/setStyles.js +0 -25
  135. package/libEs5/components/Personalization/dom-actions/setText.js +0 -17
  136. package/libEs5/components/Personalization/dom-actions/swapImage.js +0 -31
  137. package/libEs5/components/Personalization/event.js +0 -49
  138. package/libEs5/components/Personalization/flicker/index.js +0 -86
  139. package/libEs5/components/Personalization/handlers/createProcessDomAction.js +0 -71
  140. package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +0 -43
  141. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +0 -78
  142. package/libEs5/components/Personalization/handlers/createProcessPropositions.js +0 -194
  143. package/libEs5/components/Personalization/handlers/createProcessRedirect.js +0 -44
  144. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +0 -118
  145. package/libEs5/components/Personalization/handlers/processDefaultContent.js +0 -20
  146. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -284
  147. package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -22
  148. package/libEs5/components/Personalization/in-app-message-actions/utils.js +0 -51
  149. package/libEs5/components/Personalization/index.js +0 -162
  150. package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -24
  151. package/libEs5/components/Personalization/utils/createAsyncArray.js +0 -38
  152. package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +0 -18
  153. package/libEs5/components/Personalization/utils/surfaceUtils.js +0 -99
  154. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +0 -34
  155. package/libEs5/components/Privacy/computeConsentHash.js +0 -33
  156. package/libEs5/components/Privacy/createComponent.js +0 -88
  157. package/libEs5/components/Privacy/createConsentHashStore.js +0 -59
  158. package/libEs5/components/Privacy/createConsentRequest.js +0 -29
  159. package/libEs5/components/Privacy/createConsentRequestPayload.js +0 -33
  160. package/libEs5/components/Privacy/createStoredConsent.js +0 -31
  161. package/libEs5/components/Privacy/index.js +0 -63
  162. package/libEs5/components/Privacy/injectSendSetConsentRequest.js +0 -47
  163. package/libEs5/components/Privacy/parseConsentCookie.js +0 -37
  164. package/libEs5/components/Privacy/validateSetConsentOptions.js +0 -21
  165. package/libEs5/components/StreamingMedia/configValidators.js +0 -24
  166. package/libEs5/components/StreamingMedia/constants/eventTypes.js +0 -34
  167. package/libEs5/components/StreamingMedia/constants/playbackState.js +0 -19
  168. package/libEs5/components/StreamingMedia/createMediaEventManager.js +0 -112
  169. package/libEs5/components/StreamingMedia/createMediaRequest.js +0 -29
  170. package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +0 -57
  171. package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +0 -58
  172. package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +0 -72
  173. package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +0 -90
  174. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +0 -52
  175. package/libEs5/components/StreamingMedia/index.js +0 -69
  176. package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +0 -40
  177. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +0 -35
  178. package/libEs5/constants/apiVersion.js +0 -15
  179. package/libEs5/constants/browser.js +0 -22
  180. package/libEs5/constants/consentPurpose.js +0 -16
  181. package/libEs5/constants/consentStatus.js +0 -18
  182. package/libEs5/constants/contentType.js +0 -16
  183. package/libEs5/constants/cookieNameKey.js +0 -18
  184. package/libEs5/constants/cookieNamePrefix.js +0 -16
  185. package/libEs5/constants/coreCommands.js +0 -17
  186. package/libEs5/constants/debugQueryParam.js +0 -15
  187. package/libEs5/constants/decisionProvider.js +0 -15
  188. package/libEs5/constants/domain.js +0 -17
  189. package/libEs5/constants/ecidNamespace.js +0 -15
  190. package/libEs5/constants/edgeBasePath.js +0 -15
  191. package/libEs5/constants/elementAttribute.js +0 -16
  192. package/libEs5/constants/eventType.js +0 -20
  193. package/libEs5/constants/handle.js +0 -15
  194. package/libEs5/constants/highEntropyUserAgentClientHints.js +0 -15
  195. package/libEs5/constants/httpHeaderNames.js +0 -17
  196. package/libEs5/constants/httpStatusCode.js +0 -20
  197. package/libEs5/constants/identityMapAuthenticatedState.js +0 -17
  198. package/libEs5/constants/legacyCookies.js +0 -18
  199. package/libEs5/constants/libraryName.js +0 -15
  200. package/libEs5/constants/libraryVersion.js +0 -17
  201. package/libEs5/constants/namespace.js +0 -15
  202. package/libEs5/constants/pageWideScope.js +0 -15
  203. package/libEs5/constants/propositionEventType.js +0 -32
  204. package/libEs5/constants/queryStringIdentityParam.js +0 -15
  205. package/libEs5/constants/schema.js +0 -25
  206. package/libEs5/constants/shadowSeparator.js +0 -15
  207. package/libEs5/constants/tagName.js +0 -22
  208. package/libEs5/core/buildAndValidateConfig.js +0 -115
  209. package/libEs5/core/componentCreators.js +0 -39
  210. package/libEs5/core/config/createConfig.js +0 -20
  211. package/libEs5/core/config/createCoreConfigs.js +0 -31
  212. package/libEs5/core/consent/createConsent.js +0 -61
  213. package/libEs5/core/consent/createConsentStateMachine.js +0 -137
  214. package/libEs5/core/createComponentRegistry.js +0 -86
  215. package/libEs5/core/createCookieTransfer.js +0 -80
  216. package/libEs5/core/createEvent.js +0 -170
  217. package/libEs5/core/createEventManager.js +0 -144
  218. package/libEs5/core/createInstanceFunction.js +0 -27
  219. package/libEs5/core/createLifecycle.js +0 -74
  220. package/libEs5/core/createLogController.js +0 -70
  221. package/libEs5/core/createLogger.js +0 -103
  222. package/libEs5/core/edgeNetwork/handleRequestFailure.js +0 -27
  223. package/libEs5/core/edgeNetwork/injectApplyResponse.js +0 -66
  224. package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +0 -42
  225. package/libEs5/core/edgeNetwork/injectGetLocationHint.js +0 -35
  226. package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -42
  227. package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -99
  228. package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +0 -28
  229. package/libEs5/core/index.js +0 -238
  230. package/libEs5/core/initializeComponents.js +0 -41
  231. package/libEs5/core/injectCreateResponse.js +0 -77
  232. package/libEs5/core/injectExecuteCommand.js +0 -104
  233. package/libEs5/core/injectHandleError.js +0 -36
  234. package/libEs5/core/injectShouldTransferCookie.js +0 -28
  235. package/libEs5/core/network/getRequestRetryDelay.js +0 -73
  236. package/libEs5/core/network/injectSendNetworkRequest.js +0 -102
  237. package/libEs5/core/network/isRequestRetryable.js +0 -27
  238. package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +0 -39
  239. package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +0 -44
  240. package/libEs5/core/network/requestMethods/injectSendXhrRequest.js +0 -50
  241. package/libEs5/core/validateCommandOptions.js +0 -34
  242. package/libEs5/index.js +0 -59
  243. package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +0 -24
  244. package/libEs5/utils/assign.js +0 -16
  245. package/libEs5/utils/assignConcatArrayValues.js +0 -48
  246. package/libEs5/utils/assignIf.js +0 -21
  247. package/libEs5/utils/clone.js +0 -22
  248. package/libEs5/utils/cookieJar.js +0 -21
  249. package/libEs5/utils/crc32.js +0 -36
  250. package/libEs5/utils/createCallbackAggregator.js +0 -38
  251. package/libEs5/utils/createLoggingCookieJar.js +0 -33
  252. package/libEs5/utils/createMerger.js +0 -33
  253. package/libEs5/utils/createSubscription.js +0 -90
  254. package/libEs5/utils/createTaskQueue.js +0 -50
  255. package/libEs5/utils/deduplicateArray.js +0 -31
  256. package/libEs5/utils/deepAssign.js +0 -48
  257. package/libEs5/utils/defer.js +0 -26
  258. package/libEs5/utils/dom/appendNode.js +0 -17
  259. package/libEs5/utils/dom/awaitSelector.js +0 -105
  260. package/libEs5/utils/dom/createNode.js +0 -47
  261. package/libEs5/utils/dom/index.js +0 -58
  262. package/libEs5/utils/dom/isShadowSelector.js +0 -18
  263. package/libEs5/utils/dom/matchesSelector.js +0 -28
  264. package/libEs5/utils/dom/querySelectorAll.js +0 -32
  265. package/libEs5/utils/dom/removeNode.js +0 -21
  266. package/libEs5/utils/dom/selectNodes.js +0 -30
  267. package/libEs5/utils/dom/selectNodesWithShadow.js +0 -66
  268. package/libEs5/utils/endsWith.js +0 -23
  269. package/libEs5/utils/filterObject.js +0 -55
  270. package/libEs5/utils/find.js +0 -30
  271. package/libEs5/utils/fireImage.js +0 -38
  272. package/libEs5/utils/flatMap.js +0 -17
  273. package/libEs5/utils/flattenArray.js +0 -36
  274. package/libEs5/utils/flattenObject.js +0 -42
  275. package/libEs5/utils/getApexDomain.js +0 -45
  276. package/libEs5/utils/getBrowser.js +0 -35
  277. package/libEs5/utils/getLastArrayItems.js +0 -23
  278. package/libEs5/utils/getNamespacedCookieName.js +0 -19
  279. package/libEs5/utils/groupBy.js +0 -31
  280. package/libEs5/utils/includes.js +0 -23
  281. package/libEs5/utils/index.js +0 -408
  282. package/libEs5/utils/injectDoesIdentityCookieExist.js +0 -27
  283. package/libEs5/utils/injectFireReferrerHideableImage.js +0 -75
  284. package/libEs5/utils/injectStorage.js +0 -74
  285. package/libEs5/utils/intersection.js +0 -26
  286. package/libEs5/utils/isBlankString.js +0 -23
  287. package/libEs5/utils/isBoolean.js +0 -22
  288. package/libEs5/utils/isEmptyObject.js +0 -23
  289. package/libEs5/utils/isFunction.js +0 -22
  290. package/libEs5/utils/isInteger.js +0 -24
  291. package/libEs5/utils/isNamespacedCookieName.js +0 -26
  292. package/libEs5/utils/isNil.js +0 -22
  293. package/libEs5/utils/isNonEmptyArray.js +0 -22
  294. package/libEs5/utils/isNonEmptyString.js +0 -23
  295. package/libEs5/utils/isNumber.js +0 -23
  296. package/libEs5/utils/isObject.js +0 -23
  297. package/libEs5/utils/isString.js +0 -22
  298. package/libEs5/utils/isUnique.js +0 -30
  299. package/libEs5/utils/isValidRegExp.js +0 -26
  300. package/libEs5/utils/memoize.js +0 -36
  301. package/libEs5/utils/noop.js +0 -18
  302. package/libEs5/utils/padStart.js +0 -27
  303. package/libEs5/utils/parseUrl.js +0 -72
  304. package/libEs5/utils/prepareConfigOverridesForEdge.js +0 -52
  305. package/libEs5/utils/querystring.js +0 -16
  306. package/libEs5/utils/request/createAddIdentity.js +0 -22
  307. package/libEs5/utils/request/createDataCollectionRequest.js +0 -68
  308. package/libEs5/utils/request/createDataCollectionRequestPayload.js +0 -35
  309. package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +0 -44
  310. package/libEs5/utils/request/createHasIdentity.js +0 -19
  311. package/libEs5/utils/request/createRequest.js +0 -62
  312. package/libEs5/utils/request/createRequestParams.js +0 -44
  313. package/libEs5/utils/request/createRequestPayload.js +0 -36
  314. package/libEs5/utils/request/index.js +0 -58
  315. package/libEs5/utils/sanitizeOrgIdForCookieName.js +0 -17
  316. package/libEs5/utils/stackError.js +0 -34
  317. package/libEs5/utils/startsWith.js +0 -23
  318. package/libEs5/utils/stringToBoolean.js +0 -18
  319. package/libEs5/utils/toArray.js +0 -23
  320. package/libEs5/utils/toError.js +0 -23
  321. package/libEs5/utils/toISOStringLocal.js +0 -39
  322. package/libEs5/utils/toInteger.js +0 -31
  323. package/libEs5/utils/updateErrorMessage.js +0 -24
  324. package/libEs5/utils/uuid.js +0 -16
  325. package/libEs5/utils/validateConfigOverride.js +0 -16
  326. package/libEs5/utils/validateIdentityMap.js +0 -25
  327. package/libEs5/utils/validation/booleanValidator.js +0 -20
  328. package/libEs5/utils/validation/callbackValidator.js +0 -20
  329. package/libEs5/utils/validation/createAnyOfValidator.js +0 -32
  330. package/libEs5/utils/validation/createArrayOfValidator.js +0 -34
  331. package/libEs5/utils/validation/createDefaultValidator.js +0 -22
  332. package/libEs5/utils/validation/createDeprecatedValidator.js +0 -44
  333. package/libEs5/utils/validation/createLiteralValidator.js +0 -21
  334. package/libEs5/utils/validation/createMapOfValuesValidator.js +0 -40
  335. package/libEs5/utils/validation/createMaximumValidator.js +0 -21
  336. package/libEs5/utils/validation/createMinimumValidator.js +0 -21
  337. package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +0 -29
  338. package/libEs5/utils/validation/createNonEmptyValidator.js +0 -27
  339. package/libEs5/utils/validation/createObjectOfValidator.js +0 -48
  340. package/libEs5/utils/validation/createUniqueItemsValidator.js +0 -21
  341. package/libEs5/utils/validation/createUniqueValidator.js +0 -23
  342. package/libEs5/utils/validation/domainValidator.js +0 -21
  343. package/libEs5/utils/validation/index.js +0 -239
  344. package/libEs5/utils/validation/integerValidator.js +0 -20
  345. package/libEs5/utils/validation/matchesRegexpValidator.js +0 -21
  346. package/libEs5/utils/validation/numberValidator.js +0 -20
  347. package/libEs5/utils/validation/regexpValidator.js +0 -20
  348. package/libEs5/utils/validation/requiredValidator.js +0 -20
  349. package/libEs5/utils/validation/stringValidator.js +0 -20
  350. package/libEs5/utils/validation/utils.js +0 -137
  351. package/libEs5/utils/values.js +0 -25
  352. package/libEs6/baseCode/index.js +0 -61
  353. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +0 -52
  354. package/libEs6/components/ActivityCollector/configValidators.js +0 -19
  355. package/libEs6/components/ActivityCollector/createGetLinkDetails.js +0 -70
  356. package/libEs6/components/ActivityCollector/createLinkClick.js +0 -37
  357. package/libEs6/components/ActivityCollector/getLinkName.js +0 -136
  358. package/libEs6/components/ActivityCollector/getLinkRegion.js +0 -58
  359. package/libEs6/components/ActivityCollector/index.js +0 -80
  360. package/libEs6/components/ActivityCollector/utils.js +0 -104
  361. package/libEs6/components/Audiences/index.js +0 -47
  362. package/libEs6/components/Audiences/injectProcessDestinations.js +0 -60
  363. package/libEs6/components/Audiences/injectProcessResponse.js +0 -38
  364. package/libEs6/components/Context/createComponent.js +0 -34
  365. package/libEs6/components/Context/implementationDetails.js +0 -24
  366. package/libEs6/components/Context/index.js +0 -52
  367. package/libEs6/components/Context/injectDevice.js +0 -70
  368. package/libEs6/components/Context/injectEnvironment.js +0 -42
  369. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +0 -45
  370. package/libEs6/components/Context/injectPlaceContext.js +0 -29
  371. package/libEs6/components/Context/injectTimestamp.js +0 -21
  372. package/libEs6/components/Context/injectWeb.js +0 -28
  373. package/libEs6/components/DataCollector/index.js +0 -106
  374. package/libEs6/components/DataCollector/validateApplyResponse.js +0 -33
  375. package/libEs6/components/DataCollector/validateUserEventOptions.js +0 -49
  376. package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -30
  377. package/libEs6/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -24
  378. package/libEs6/components/DecisioningEngine/constants.js +0 -25
  379. package/libEs6/components/DecisioningEngine/createApplyResponse.js +0 -31
  380. package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +0 -29
  381. package/libEs6/components/DecisioningEngine/createContextProvider.js +0 -95
  382. package/libEs6/components/DecisioningEngine/createDecisionHistory.js +0 -25
  383. package/libEs6/components/DecisioningEngine/createDecisionProvider.js +0 -41
  384. package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +0 -79
  385. package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +0 -45
  386. package/libEs6/components/DecisioningEngine/createEventRegistry.js +0 -120
  387. package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +0 -45
  388. package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +0 -79
  389. package/libEs6/components/DecisioningEngine/index.js +0 -124
  390. package/libEs6/components/DecisioningEngine/utils.js +0 -83
  391. package/libEs6/components/EventMerge/createComponent.js +0 -23
  392. package/libEs6/components/EventMerge/createEventMergeId.js +0 -18
  393. package/libEs6/components/EventMerge/index.js +0 -21
  394. package/libEs6/components/Identity/addEcidQueryToPayload.js +0 -20
  395. package/libEs6/components/Identity/addEcidToPayload.js +0 -18
  396. package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -23
  397. package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -31
  398. package/libEs6/components/Identity/configValidators.js +0 -18
  399. package/libEs6/components/Identity/constants/authState.js +0 -15
  400. package/libEs6/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -13
  401. package/libEs6/components/Identity/createComponent.js +0 -97
  402. package/libEs6/components/Identity/createLegacyIdentity.js +0 -69
  403. package/libEs6/components/Identity/getEcidFromResponse.js +0 -19
  404. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +0 -34
  405. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +0 -28
  406. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -27
  407. package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +0 -25
  408. package/libEs6/components/Identity/index.js +0 -125
  409. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +0 -30
  410. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -59
  411. package/libEs6/components/Identity/injectAwaitIdentityCookie.js +0 -52
  412. package/libEs6/components/Identity/injectEnsureSingleIdentity.js +0 -98
  413. package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +0 -19
  414. package/libEs6/components/Identity/injectProcessIdSyncs.js +0 -34
  415. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -32
  416. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +0 -33
  417. package/libEs6/components/Identity/visitorService/getVisitor.js +0 -17
  418. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -48
  419. package/libEs6/components/LegacyMediaAnalytics/constants/constants.js +0 -141
  420. package/libEs6/components/LegacyMediaAnalytics/constants/mediaKeysToXdmConverter.js +0 -46
  421. package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +0 -240
  422. package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +0 -85
  423. package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +0 -180
  424. package/libEs6/components/LegacyMediaAnalytics/index.js +0 -67
  425. package/libEs6/components/LibraryInfo/index.js +0 -59
  426. package/libEs6/components/MachineLearning/index.js +0 -23
  427. package/libEs6/components/MachineLearning/processResponse.js +0 -18
  428. package/libEs6/components/Personalization/constants/loggerMessage.js +0 -13
  429. package/libEs6/components/Personalization/constants/scopeType.js +0 -15
  430. package/libEs6/components/Personalization/constants/surface.js +0 -16
  431. package/libEs6/components/Personalization/createActionsProvider.js +0 -70
  432. package/libEs6/components/Personalization/createApplyPropositions.js +0 -103
  433. package/libEs6/components/Personalization/createClickStorage.js +0 -58
  434. package/libEs6/components/Personalization/createCollect.js +0 -48
  435. package/libEs6/components/Personalization/createComponent.js +0 -133
  436. package/libEs6/components/Personalization/createFetchDataHandler.js +0 -84
  437. package/libEs6/components/Personalization/createGetPageLocation.js +0 -17
  438. package/libEs6/components/Personalization/createHandleConsentFlicker.js +0 -26
  439. package/libEs6/components/Personalization/createNotificationHandler.js +0 -33
  440. package/libEs6/components/Personalization/createOnClickHandler.js +0 -52
  441. package/libEs6/components/Personalization/createOnDecisionHandler.js +0 -42
  442. package/libEs6/components/Personalization/createPersonalizationDetails.js +0 -94
  443. package/libEs6/components/Personalization/createPreprocessors.js +0 -19
  444. package/libEs6/components/Personalization/createSetTargetMigration.js +0 -27
  445. package/libEs6/components/Personalization/createViewCacheManager.js +0 -81
  446. package/libEs6/components/Personalization/createViewChangeHandler.js +0 -47
  447. package/libEs6/components/Personalization/dom-actions/action.js +0 -49
  448. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -36
  449. package/libEs6/components/Personalization/dom-actions/appendHtml.js +0 -30
  450. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +0 -91
  451. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +0 -18
  452. package/libEs6/components/Personalization/dom-actions/createRedirect.js +0 -22
  453. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +0 -19
  454. package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +0 -15
  455. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +0 -22
  456. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +0 -22
  457. package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +0 -21
  458. package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +0 -15
  459. package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +0 -15
  460. package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +0 -33
  461. package/libEs6/components/Personalization/dom-actions/dom/getParent.js +0 -15
  462. package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +0 -19
  463. package/libEs6/components/Personalization/dom-actions/dom/index.js +0 -26
  464. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +0 -23
  465. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +0 -22
  466. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -35
  467. package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +0 -15
  468. package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -102
  469. package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +0 -15
  470. package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +0 -21
  471. package/libEs6/components/Personalization/dom-actions/images.js +0 -31
  472. package/libEs6/components/Personalization/dom-actions/index.js +0 -13
  473. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +0 -33
  474. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +0 -29
  475. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +0 -29
  476. package/libEs6/components/Personalization/dom-actions/prependHtml.js +0 -45
  477. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +0 -31
  478. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -34
  479. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +0 -51
  480. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +0 -18
  481. package/libEs6/components/Personalization/dom-actions/scripts.js +0 -85
  482. package/libEs6/components/Personalization/dom-actions/setAttributes.js +0 -18
  483. package/libEs6/components/Personalization/dom-actions/setHtml.js +0 -24
  484. package/libEs6/components/Personalization/dom-actions/setStyles.js +0 -22
  485. package/libEs6/components/Personalization/dom-actions/setText.js +0 -15
  486. package/libEs6/components/Personalization/dom-actions/swapImage.js +0 -29
  487. package/libEs6/components/Personalization/event.js +0 -45
  488. package/libEs6/components/Personalization/flicker/index.js +0 -82
  489. package/libEs6/components/Personalization/handlers/createProcessDomAction.js +0 -61
  490. package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +0 -40
  491. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +0 -77
  492. package/libEs6/components/Personalization/handlers/createProcessPropositions.js +0 -175
  493. package/libEs6/components/Personalization/handlers/createProcessRedirect.js +0 -41
  494. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +0 -110
  495. package/libEs6/components/Personalization/handlers/processDefaultContent.js +0 -17
  496. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -291
  497. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -17
  498. package/libEs6/components/Personalization/in-app-message-actions/utils.js +0 -49
  499. package/libEs6/components/Personalization/index.js +0 -167
  500. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -21
  501. package/libEs6/components/Personalization/utils/createAsyncArray.js +0 -35
  502. package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +0 -15
  503. package/libEs6/components/Personalization/utils/surfaceUtils.js +0 -74
  504. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +0 -31
  505. package/libEs6/components/Privacy/computeConsentHash.js +0 -30
  506. package/libEs6/components/Privacy/createComponent.js +0 -85
  507. package/libEs6/components/Privacy/createConsentHashStore.js +0 -57
  508. package/libEs6/components/Privacy/createConsentRequest.js +0 -28
  509. package/libEs6/components/Privacy/createConsentRequestPayload.js +0 -31
  510. package/libEs6/components/Privacy/createStoredConsent.js +0 -30
  511. package/libEs6/components/Privacy/index.js +0 -63
  512. package/libEs6/components/Privacy/injectSendSetConsentRequest.js +0 -45
  513. package/libEs6/components/Privacy/parseConsentCookie.js +0 -26
  514. package/libEs6/components/Privacy/validateSetConsentOptions.js +0 -18
  515. package/libEs6/components/StreamingMedia/configValidators.js +0 -22
  516. package/libEs6/components/StreamingMedia/constants/eventTypes.js +0 -31
  517. package/libEs6/components/StreamingMedia/constants/playbackState.js +0 -16
  518. package/libEs6/components/StreamingMedia/createMediaEventManager.js +0 -122
  519. package/libEs6/components/StreamingMedia/createMediaRequest.js +0 -28
  520. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +0 -58
  521. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +0 -59
  522. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +0 -69
  523. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +0 -88
  524. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +0 -51
  525. package/libEs6/components/StreamingMedia/index.js +0 -64
  526. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +0 -33
  527. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +0 -34
  528. package/libEs6/constants/apiVersion.js +0 -12
  529. package/libEs6/constants/browser.js +0 -19
  530. package/libEs6/constants/consentPurpose.js +0 -13
  531. package/libEs6/constants/consentStatus.js +0 -15
  532. package/libEs6/constants/contentType.js +0 -13
  533. package/libEs6/constants/cookieNameKey.js +0 -15
  534. package/libEs6/constants/cookieNamePrefix.js +0 -14
  535. package/libEs6/constants/coreCommands.js +0 -14
  536. package/libEs6/constants/debugQueryParam.js +0 -13
  537. package/libEs6/constants/decisionProvider.js +0 -12
  538. package/libEs6/constants/domain.js +0 -14
  539. package/libEs6/constants/ecidNamespace.js +0 -13
  540. package/libEs6/constants/edgeBasePath.js +0 -12
  541. package/libEs6/constants/elementAttribute.js +0 -13
  542. package/libEs6/constants/eventType.js +0 -17
  543. package/libEs6/constants/handle.js +0 -12
  544. package/libEs6/constants/highEntropyUserAgentClientHints.js +0 -13
  545. package/libEs6/constants/httpHeaderNames.js +0 -14
  546. package/libEs6/constants/httpStatusCode.js +0 -17
  547. package/libEs6/constants/identityMapAuthenticatedState.js +0 -14
  548. package/libEs6/constants/legacyCookies.js +0 -15
  549. package/libEs6/constants/libraryName.js +0 -13
  550. package/libEs6/constants/libraryVersion.js +0 -16
  551. package/libEs6/constants/namespace.js +0 -13
  552. package/libEs6/constants/pageWideScope.js +0 -13
  553. package/libEs6/constants/propositionEventType.js +0 -33
  554. package/libEs6/constants/queryStringIdentityParam.js +0 -13
  555. package/libEs6/constants/schema.js +0 -22
  556. package/libEs6/constants/shadowSeparator.js +0 -13
  557. package/libEs6/constants/tagName.js +0 -19
  558. package/libEs6/core/buildAndValidateConfig.js +0 -94
  559. package/libEs6/core/componentCreators.js +0 -47
  560. package/libEs6/core/config/createConfig.js +0 -17
  561. package/libEs6/core/config/createCoreConfigs.js +0 -27
  562. package/libEs6/core/consent/createConsent.js +0 -60
  563. package/libEs6/core/consent/createConsentStateMachine.js +0 -125
  564. package/libEs6/core/createComponentRegistry.js +0 -83
  565. package/libEs6/core/createCookieTransfer.js +0 -78
  566. package/libEs6/core/createEvent.js +0 -161
  567. package/libEs6/core/createEventManager.js +0 -135
  568. package/libEs6/core/createInstanceFunction.js +0 -25
  569. package/libEs6/core/createLifecycle.js +0 -65
  570. package/libEs6/core/createLogController.js +0 -68
  571. package/libEs6/core/createLogger.js +0 -99
  572. package/libEs6/core/edgeNetwork/handleRequestFailure.js +0 -24
  573. package/libEs6/core/edgeNetwork/injectApplyResponse.js +0 -58
  574. package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +0 -39
  575. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +0 -32
  576. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -42
  577. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -100
  578. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +0 -21
  579. package/libEs6/core/index.js +0 -236
  580. package/libEs6/core/initializeComponents.js +0 -40
  581. package/libEs6/core/injectCreateResponse.js +0 -70
  582. package/libEs6/core/injectExecuteCommand.js +0 -100
  583. package/libEs6/core/injectHandleError.js +0 -33
  584. package/libEs6/core/injectShouldTransferCookie.js +0 -25
  585. package/libEs6/core/network/getRequestRetryDelay.js +0 -72
  586. package/libEs6/core/network/injectSendNetworkRequest.js +0 -96
  587. package/libEs6/core/network/isRequestRetryable.js +0 -25
  588. package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +0 -38
  589. package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +0 -41
  590. package/libEs6/core/network/requestMethods/injectSendXhrRequest.js +0 -49
  591. package/libEs6/core/validateCommandOptions.js +0 -33
  592. package/libEs6/index.js +0 -55
  593. package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +0 -20
  594. package/libEs6/utils/assign.js +0 -14
  595. package/libEs6/utils/assignConcatArrayValues.js +0 -36
  596. package/libEs6/utils/assignIf.js +0 -19
  597. package/libEs6/utils/clone.js +0 -18
  598. package/libEs6/utils/cookieJar.js +0 -19
  599. package/libEs6/utils/crc32.js +0 -33
  600. package/libEs6/utils/createCallbackAggregator.js +0 -31
  601. package/libEs6/utils/createLoggingCookieJar.js +0 -28
  602. package/libEs6/utils/createMerger.js +0 -30
  603. package/libEs6/utils/createSubscription.js +0 -70
  604. package/libEs6/utils/createTaskQueue.js +0 -48
  605. package/libEs6/utils/deduplicateArray.js +0 -23
  606. package/libEs6/utils/deepAssign.js +0 -40
  607. package/libEs6/utils/defer.js +0 -24
  608. package/libEs6/utils/dom/appendNode.js +0 -15
  609. package/libEs6/utils/dom/awaitSelector.js +0 -98
  610. package/libEs6/utils/dom/createNode.js +0 -38
  611. package/libEs6/utils/dom/index.js +0 -20
  612. package/libEs6/utils/dom/isShadowSelector.js +0 -14
  613. package/libEs6/utils/dom/matchesSelector.js +0 -26
  614. package/libEs6/utils/dom/querySelectorAll.js +0 -29
  615. package/libEs6/utils/dom/removeNode.js +0 -19
  616. package/libEs6/utils/dom/selectNodes.js +0 -28
  617. package/libEs6/utils/dom/selectNodesWithShadow.js +0 -63
  618. package/libEs6/utils/endsWith.js +0 -19
  619. package/libEs6/utils/filterObject.js +0 -55
  620. package/libEs6/utils/find.js +0 -28
  621. package/libEs6/utils/fireImage.js +0 -37
  622. package/libEs6/utils/flatMap.js +0 -14
  623. package/libEs6/utils/flattenArray.js +0 -26
  624. package/libEs6/utils/flattenObject.js +0 -28
  625. package/libEs6/utils/getApexDomain.js +0 -42
  626. package/libEs6/utils/getBrowser.js +0 -65
  627. package/libEs6/utils/getLastArrayItems.js +0 -19
  628. package/libEs6/utils/getNamespacedCookieName.js +0 -15
  629. package/libEs6/utils/groupBy.js +0 -29
  630. package/libEs6/utils/includes.js +0 -21
  631. package/libEs6/utils/index.js +0 -71
  632. package/libEs6/utils/injectDoesIdentityCookieExist.js +0 -24
  633. package/libEs6/utils/injectFireReferrerHideableImage.js +0 -65
  634. package/libEs6/utils/injectStorage.js +0 -69
  635. package/libEs6/utils/intersection.js +0 -21
  636. package/libEs6/utils/isBlankString.js +0 -20
  637. package/libEs6/utils/isBoolean.js +0 -18
  638. package/libEs6/utils/isEmptyObject.js +0 -20
  639. package/libEs6/utils/isFunction.js +0 -18
  640. package/libEs6/utils/isInteger.js +0 -23
  641. package/libEs6/utils/isNamespacedCookieName.js +0 -23
  642. package/libEs6/utils/isNil.js +0 -18
  643. package/libEs6/utils/isNonEmptyArray.js +0 -18
  644. package/libEs6/utils/isNonEmptyString.js +0 -20
  645. package/libEs6/utils/isNumber.js +0 -19
  646. package/libEs6/utils/isObject.js +0 -20
  647. package/libEs6/utils/isString.js +0 -18
  648. package/libEs6/utils/isUnique.js +0 -27
  649. package/libEs6/utils/isValidRegExp.js +0 -24
  650. package/libEs6/utils/memoize.js +0 -34
  651. package/libEs6/utils/noop.js +0 -16
  652. package/libEs6/utils/padStart.js +0 -25
  653. package/libEs6/utils/parseUrl.js +0 -62
  654. package/libEs6/utils/prepareConfigOverridesForEdge.js +0 -50
  655. package/libEs6/utils/querystring.js +0 -14
  656. package/libEs6/utils/request/createAddIdentity.js +0 -19
  657. package/libEs6/utils/request/createDataCollectionRequest.js +0 -69
  658. package/libEs6/utils/request/createDataCollectionRequestPayload.js +0 -30
  659. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +0 -42
  660. package/libEs6/utils/request/createHasIdentity.js +0 -15
  661. package/libEs6/utils/request/createRequest.js +0 -63
  662. package/libEs6/utils/request/createRequestParams.js +0 -40
  663. package/libEs6/utils/request/createRequestPayload.js +0 -35
  664. package/libEs6/utils/request/index.js +0 -20
  665. package/libEs6/utils/sanitizeOrgIdForCookieName.js +0 -13
  666. package/libEs6/utils/stackError.js +0 -34
  667. package/libEs6/utils/startsWith.js +0 -19
  668. package/libEs6/utils/stringToBoolean.js +0 -15
  669. package/libEs6/utils/toArray.js +0 -21
  670. package/libEs6/utils/toError.js +0 -21
  671. package/libEs6/utils/toISOStringLocal.js +0 -37
  672. package/libEs6/utils/toInteger.js +0 -30
  673. package/libEs6/utils/updateErrorMessage.js +0 -23
  674. package/libEs6/utils/uuid.js +0 -14
  675. package/libEs6/utils/validateConfigOverride.js +0 -14
  676. package/libEs6/utils/validateIdentityMap.js +0 -23
  677. package/libEs6/utils/validation/booleanValidator.js +0 -18
  678. package/libEs6/utils/validation/callbackValidator.js +0 -17
  679. package/libEs6/utils/validation/createAnyOfValidator.js +0 -26
  680. package/libEs6/utils/validation/createArrayOfValidator.js +0 -28
  681. package/libEs6/utils/validation/createDefaultValidator.js +0 -18
  682. package/libEs6/utils/validation/createDeprecatedValidator.js +0 -37
  683. package/libEs6/utils/validation/createLiteralValidator.js +0 -16
  684. package/libEs6/utils/validation/createMapOfValuesValidator.js +0 -35
  685. package/libEs6/utils/validation/createMaximumValidator.js +0 -16
  686. package/libEs6/utils/validation/createMinimumValidator.js +0 -16
  687. package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +0 -25
  688. package/libEs6/utils/validation/createNonEmptyValidator.js +0 -23
  689. package/libEs6/utils/validation/createObjectOfValidator.js +0 -43
  690. package/libEs6/utils/validation/createUniqueItemsValidator.js +0 -18
  691. package/libEs6/utils/validation/createUniqueValidator.js +0 -21
  692. package/libEs6/utils/validation/domainValidator.js +0 -17
  693. package/libEs6/utils/validation/index.js +0 -232
  694. package/libEs6/utils/validation/integerValidator.js +0 -18
  695. package/libEs6/utils/validation/matchesRegexpValidator.js +0 -17
  696. package/libEs6/utils/validation/numberValidator.js +0 -18
  697. package/libEs6/utils/validation/regexpValidator.js +0 -18
  698. package/libEs6/utils/validation/requiredValidator.js +0 -18
  699. package/libEs6/utils/validation/stringValidator.js +0 -17
  700. package/libEs6/utils/validation/utils.js +0 -127
  701. package/libEs6/utils/values.js +0 -21
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- /*
5
- Copyright 2021 Adobe. All rights reserved.
6
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
- you may not use this file except in compliance with the License. You may obtain a copy
8
- of the License at http://www.apache.org/licenses/LICENSE-2.0
9
- Unless required by applicable law or agreed to in writing, software distributed under
10
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
- OF ANY KIND, either express or implied. See the License for the specific language
12
- governing permissions and limitations under the License.
13
- */
14
- var _default = exports.default = function _default(_ref) {
15
- var response = _ref.response;
16
- return {
17
- inferences: response.getPayloadsByType("rtml:inferences")
18
- };
19
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- exports.REDIRECT_EXECUTION_ERROR = exports.AUTHORING_ENABLED = void 0;
4
- /*
5
- Copyright 2023 Adobe. All rights reserved.
6
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
- you may not use this file except in compliance with the License. You may obtain a copy
8
- of the License at http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software distributed under
11
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
- OF ANY KIND, either express or implied. See the License for the specific language
13
- governing permissions and limitations under the License.
14
- */
15
- var AUTHORING_ENABLED = exports.AUTHORING_ENABLED = "Rendering is disabled for authoring mode.";
16
- var REDIRECT_EXECUTION_ERROR = exports.REDIRECT_EXECUTION_ERROR = "An error occurred while executing the redirect offer.";
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- exports.VIEW_SCOPE_TYPE = exports.PROPOSITION_SCOPE_TYPE = exports.PAGE_SCOPE_TYPE = void 0;
4
- /*
5
- Copyright 2022 Adobe. All rights reserved.
6
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
- you may not use this file except in compliance with the License. You may obtain a copy
8
- of the License at http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software distributed under
11
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
- OF ANY KIND, either express or implied. See the License for the specific language
13
- governing permissions and limitations under the License.
14
- */
15
-
16
- var VIEW_SCOPE_TYPE = exports.VIEW_SCOPE_TYPE = "view";
17
- var PAGE_SCOPE_TYPE = exports.PAGE_SCOPE_TYPE = "page";
18
- var PROPOSITION_SCOPE_TYPE = exports.PROPOSITION_SCOPE_TYPE = "proposition";
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- exports.WEBAPP = exports.WEB = exports.SURFACE_TYPE_DELIMITER = exports.FRAGMENT_DELIMITER = void 0;
4
- /*
5
- Copyright 2022 Adobe. All rights reserved.
6
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
- you may not use this file except in compliance with the License. You may obtain a copy
8
- of the License at http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software distributed under
11
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
- OF ANY KIND, either express or implied. See the License for the specific language
13
- governing permissions and limitations under the License.
14
- */
15
-
16
- var WEB = exports.WEB = "web";
17
- var WEBAPP = exports.WEBAPP = "webapp";
18
- var SURFACE_TYPE_DELIMITER = exports.SURFACE_TYPE_DELIMITER = "://";
19
- var FRAGMENT_DELIMITER = exports.FRAGMENT_DELIMITER = "#";
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- var _createPreprocessors = require("./createPreprocessors");
5
- var _utils = require("../../utils");
6
- /*
7
- Copyright 2023 Adobe. All rights reserved.
8
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
9
- you may not use this file except in compliance with the License. You may obtain a copy
10
- of the License at http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software distributed under
13
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
14
- OF ANY KIND, either express or implied. See the License for the specific language
15
- governing permissions and limitations under the License.
16
- */
17
- var _default = exports.default = function _default(_ref) {
18
- var modules = _ref.modules,
19
- _ref$preprocessors = _ref.preprocessors,
20
- preprocessors = _ref$preprocessors === void 0 ? (0, _createPreprocessors.default)() : _ref$preprocessors,
21
- logger = _ref.logger;
22
- var logActionError = function logActionError(action, error) {
23
- if (logger.enabled) {
24
- var details = JSON.stringify(action);
25
- var message = error.message,
26
- stack = error.stack;
27
- var errorMessage = "Failed to execute action " + details + ". " + message + " " + (stack ? "\n " + stack : "");
28
- logger.warn(errorMessage);
29
- }
30
- };
31
- var logActionCompleted = function logActionCompleted(action) {
32
- if (logger.enabled) {
33
- var details = JSON.stringify(action);
34
- logger.info("Action " + details + " executed.");
35
- }
36
- };
37
- var getExecuteAction = function getExecuteAction(schema, type) {
38
- if (!modules[schema] || !modules[schema][type]) {
39
- return function () {
40
- return Promise.reject(new Error("Action \"" + type + "\" not found for schema \"" + schema + "\""));
41
- };
42
- }
43
- return modules[schema][type];
44
- };
45
- var applyPreprocessors = function applyPreprocessors(action) {
46
- var schema = action.schema;
47
- var preprocessorsList = preprocessors[schema];
48
- if (!schema || !(preprocessorsList instanceof Array) || preprocessorsList.length === 0) {
49
- return action;
50
- }
51
- return preprocessorsList.reduce(function (processed, fn) {
52
- return (0, _utils.assign)(processed, fn(processed));
53
- }, action);
54
- };
55
- var executeAction = function executeAction(action) {
56
- var processedAction = applyPreprocessors(action);
57
- var type = processedAction.type,
58
- schema = processedAction.schema;
59
- var execute = getExecuteAction(schema, type);
60
- return execute(processedAction).then(function (result) {
61
- logActionCompleted(processedAction);
62
- return result;
63
- }).catch(function (error) {
64
- logActionError(processedAction, error);
65
- throw error;
66
- });
67
- };
68
- return {
69
- executeAction: executeAction
70
- };
71
- };
@@ -1,115 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- var _utils = require("../../utils");
5
- var _schema = require("../../constants/schema");
6
- var _pageWideScope = require("../../constants/pageWideScope");
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
19
- Copyright 2022 Adobe. All rights reserved.
20
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
21
- you may not use this file except in compliance with the License. You may obtain a copy
22
- of the License at http://www.apache.org/licenses/LICENSE-2.0
23
-
24
- Unless required by applicable law or agreed to in writing, software distributed under
25
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
26
- OF ANY KIND, either express or implied. See the License for the specific language
27
- governing permissions and limitations under the License.
28
- */
29
- var SUPPORTED_SCHEMAS = [_schema.DOM_ACTION, _schema.HTML_CONTENT_ITEM, _schema.MESSAGE_IN_APP];
30
- var _default = exports.default = function _default(_ref) {
31
- var processPropositions = _ref.processPropositions,
32
- createProposition = _ref.createProposition,
33
- renderedPropositions = _ref.renderedPropositions,
34
- viewCache = _ref.viewCache;
35
- var filterItemsPredicate = function filterItemsPredicate(item) {
36
- return SUPPORTED_SCHEMAS.indexOf(item.schema) > -1;
37
- };
38
- var updatePropositionItems = function updatePropositionItems(_ref2) {
39
- var items = _ref2.items,
40
- metadataForScope = _ref2.metadataForScope;
41
- return items.filter(filterItemsPredicate).map(function (item) {
42
- if (item.schema !== _schema.HTML_CONTENT_ITEM) {
43
- return _objectSpread({}, item);
44
- }
45
- if ((0, _utils.isObject)(metadataForScope)) {
46
- return _objectSpread(_objectSpread({}, item), {}, {
47
- data: _objectSpread(_objectSpread({}, item.data), {}, {
48
- selector: metadataForScope.selector,
49
- type: metadataForScope.actionType
50
- })
51
- });
52
- }
53
- return undefined;
54
- }).filter(function (item) {
55
- return item;
56
- });
57
- };
58
- var filterPropositionsPredicate = function filterPropositionsPredicate(proposition) {
59
- return !(proposition.scope === _pageWideScope.default && proposition.renderAttempted);
60
- };
61
- var preparePropositions = function preparePropositions(_ref3) {
62
- var propositions = _ref3.propositions,
63
- metadata = _ref3.metadata;
64
- return propositions.filter(filterPropositionsPredicate).map(function (proposition) {
65
- if ((0, _utils.isNonEmptyArray)(proposition.items)) {
66
- var id = proposition.id,
67
- scope = proposition.scope,
68
- scopeDetails = proposition.scopeDetails;
69
- return {
70
- id: id,
71
- scope: scope,
72
- scopeDetails: scopeDetails,
73
- items: updatePropositionItems({
74
- items: proposition.items,
75
- metadataForScope: metadata[proposition.scope]
76
- })
77
- };
78
- }
79
- return proposition;
80
- }).filter(function (proposition) {
81
- return (0, _utils.isNonEmptyArray)(proposition.items);
82
- });
83
- };
84
- return function (_ref4) {
85
- var _ref4$propositions = _ref4.propositions,
86
- propositions = _ref4$propositions === void 0 ? [] : _ref4$propositions,
87
- _ref4$metadata = _ref4.metadata,
88
- metadata = _ref4$metadata === void 0 ? {} : _ref4$metadata,
89
- viewName = _ref4.viewName;
90
- // We need to immediately call concat so that subsequent sendEvent
91
- // calls will wait for applyPropositions to complete before executing.
92
- var renderedPropositionsDeferred = (0, _utils.defer)();
93
- renderedPropositions.concat(renderedPropositionsDeferred.promise);
94
- var propositionsToExecute = preparePropositions({
95
- propositions: propositions,
96
- metadata: metadata
97
- }).map(function (proposition) {
98
- return createProposition(proposition);
99
- });
100
- return Promise.resolve().then(function () {
101
- if (viewName) {
102
- return viewCache.getView(viewName);
103
- }
104
- return [];
105
- }).then(function (additionalPropositions) {
106
- var _processPropositions = processPropositions([].concat(_toConsumableArray(propositionsToExecute), _toConsumableArray(additionalPropositions))),
107
- render = _processPropositions.render,
108
- returnedPropositions = _processPropositions.returnedPropositions;
109
- render().then(renderedPropositionsDeferred.resolve);
110
- return {
111
- propositions: returnedPropositions
112
- };
113
- });
114
- };
115
- };
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- /*
11
- Copyright 2020 Adobe. All rights reserved.
12
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
13
- you may not use this file except in compliance with the License. You may obtain a copy
14
- of the License at http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software distributed under
17
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
18
- OF ANY KIND, either express or implied. See the License for the specific language
19
- governing permissions and limitations under the License.
20
- */
21
-
22
- var metasToArray = function metasToArray(metas) {
23
- return Object.keys(metas).map(function (key) {
24
- return _objectSpread({
25
- id: key
26
- }, metas[key]);
27
- });
28
- };
29
- var _default = exports.default = function _default() {
30
- var clickStorage = {};
31
- var storeClickMetrics = function storeClickMetrics(_ref) {
32
- var selector = _ref.selector,
33
- _ref$meta = _ref.meta,
34
- id = _ref$meta.id,
35
- scope = _ref$meta.scope,
36
- scopeDetails = _ref$meta.scopeDetails,
37
- trackingLabel = _ref$meta.trackingLabel,
38
- scopeType = _ref$meta.scopeType;
39
- if (!clickStorage[selector]) {
40
- clickStorage[selector] = {};
41
- }
42
- clickStorage[selector][id] = {
43
- scope: scope,
44
- scopeDetails: scopeDetails,
45
- trackingLabel: trackingLabel,
46
- scopeType: scopeType
47
- };
48
- };
49
- var getClickSelectors = function getClickSelectors() {
50
- return Object.keys(clickStorage);
51
- };
52
- var getClickMetasBySelector = function getClickMetasBySelector(selector) {
53
- var metas = clickStorage[selector];
54
- if (!metas) {
55
- return {};
56
- }
57
- return metasToArray(clickStorage[selector]);
58
- };
59
- return {
60
- storeClickMetrics: storeClickMetrics,
61
- getClickSelectors: getClickSelectors,
62
- getClickMetasBySelector: getClickMetasBySelector
63
- };
64
- };
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- var _eventType = require("../../constants/eventType");
5
- var _propositionEventType = require("../../constants/propositionEventType");
6
- var _utils = require("../../utils");
7
- /*
8
- Copyright 2020 Adobe. All rights reserved.
9
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
10
- you may not use this file except in compliance with the License. You may obtain a copy
11
- of the License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software distributed under
14
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
- OF ANY KIND, either express or implied. See the License for the specific language
16
- governing permissions and limitations under the License.
17
- */
18
- var _default = exports.default = function _default(_ref) {
19
- var eventManager = _ref.eventManager,
20
- mergeDecisionsMeta = _ref.mergeDecisionsMeta;
21
- // Called when a decision is auto-rendered for the __view__ scope or a SPA view(display and empty display notification)
22
- return function (_ref2) {
23
- var _ref2$decisionsMeta = _ref2.decisionsMeta,
24
- decisionsMeta = _ref2$decisionsMeta === void 0 ? [] : _ref2$decisionsMeta,
25
- propositionAction = _ref2.propositionAction,
26
- _ref2$documentMayUnlo = _ref2.documentMayUnload,
27
- documentMayUnload = _ref2$documentMayUnlo === void 0 ? false : _ref2$documentMayUnlo,
28
- _ref2$eventType = _ref2.eventType,
29
- eventType = _ref2$eventType === void 0 ? _eventType.DISPLAY : _ref2$eventType,
30
- _ref2$propositionEven = _ref2.propositionEventTypes,
31
- propositionEventTypes = _ref2$propositionEven === void 0 ? [(0, _propositionEventType.getPropositionEventType)(eventType)] : _ref2$propositionEven,
32
- viewName = _ref2.viewName;
33
- var event = eventManager.createEvent();
34
- var data = {
35
- eventType: eventType
36
- };
37
- if (viewName) {
38
- data.web = {
39
- webPageDetails: {
40
- viewName: viewName
41
- }
42
- };
43
- }
44
- if ((0, _utils.isNonEmptyArray)(decisionsMeta)) {
45
- mergeDecisionsMeta(event, decisionsMeta, propositionEventTypes, propositionAction);
46
- }
47
- event.mergeXdm(data);
48
- if (documentMayUnload) {
49
- event.documentMayUnload();
50
- }
51
- return eventManager.sendEvent(event);
52
- };
53
- };
@@ -1,145 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- var _utils = require("../../utils");
5
- var _createPersonalizationDetails = require("./createPersonalizationDetails");
6
- var _loggerMessage = require("./constants/loggerMessage");
7
- var _propositionEventType = require("../../constants/propositionEventType");
8
- var _validateApplyPropositionsOptions = require("./validateApplyPropositionsOptions");
9
- /*
10
- Copyright 2020 Adobe. All rights reserved.
11
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
- you may not use this file except in compliance with the License. You may obtain a copy
13
- of the License at http://www.apache.org/licenses/LICENSE-2.0
14
-
15
- Unless required by applicable law or agreed to in writing, software distributed under
16
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
- OF ANY KIND, either express or implied. See the License for the specific language
18
- governing permissions and limitations under the License.
19
- */
20
- var _default = exports.default = function _default(_ref) {
21
- var getPageLocation = _ref.getPageLocation,
22
- logger = _ref.logger,
23
- fetchDataHandler = _ref.fetchDataHandler,
24
- viewChangeHandler = _ref.viewChangeHandler,
25
- onClickHandler = _ref.onClickHandler,
26
- isAuthoringModeEnabled = _ref.isAuthoringModeEnabled,
27
- mergeQuery = _ref.mergeQuery,
28
- viewCache = _ref.viewCache,
29
- showContainers = _ref.showContainers,
30
- applyPropositions = _ref.applyPropositions,
31
- setTargetMigration = _ref.setTargetMigration,
32
- mergeDecisionsMeta = _ref.mergeDecisionsMeta,
33
- renderedPropositions = _ref.renderedPropositions,
34
- onDecisionHandler = _ref.onDecisionHandler,
35
- handleConsentFlicker = _ref.handleConsentFlicker;
36
- return {
37
- lifecycle: {
38
- onComponentsRegistered: function onComponentsRegistered() {
39
- handleConsentFlicker();
40
- },
41
- onDecision: onDecisionHandler,
42
- onBeforeRequest: function onBeforeRequest(_ref2) {
43
- var request = _ref2.request;
44
- setTargetMigration(request);
45
- return Promise.resolve();
46
- },
47
- onBeforeEvent: function onBeforeEvent(_ref3) {
48
- var event = _ref3.event,
49
- renderDecisions = _ref3.renderDecisions,
50
- _ref3$decisionScopes = _ref3.decisionScopes,
51
- decisionScopes = _ref3$decisionScopes === void 0 ? [] : _ref3$decisionScopes,
52
- _ref3$personalization = _ref3.personalization,
53
- personalization = _ref3$personalization === void 0 ? {} : _ref3$personalization,
54
- _ref3$onResponse = _ref3.onResponse,
55
- onResponse = _ref3$onResponse === void 0 ? _utils.noop : _ref3$onResponse,
56
- _ref3$onRequestFailur = _ref3.onRequestFailure,
57
- onRequestFailure = _ref3$onRequestFailur === void 0 ? _utils.noop : _ref3$onRequestFailur;
58
- // Include propositions on all responses, overridden with data as needed
59
- onResponse(function () {
60
- return {
61
- propositions: []
62
- };
63
- });
64
- onRequestFailure(function () {
65
- return showContainers();
66
- });
67
- if (isAuthoringModeEnabled()) {
68
- logger.warn(_loggerMessage.AUTHORING_ENABLED);
69
-
70
- // If we are in authoring mode we disable personalization
71
- mergeQuery(event, {
72
- enabled: false
73
- });
74
- return Promise.resolve();
75
- }
76
- var personalizationDetails = (0, _createPersonalizationDetails.default)({
77
- getPageLocation: getPageLocation,
78
- renderDecisions: renderDecisions,
79
- decisionScopes: decisionScopes,
80
- personalization: personalization,
81
- event: event,
82
- isCacheInitialized: viewCache.isInitialized(),
83
- logger: logger
84
- });
85
- var decisionsMetaPromises = [];
86
- if (personalizationDetails.shouldIncludeRenderedPropositions()) {
87
- decisionsMetaPromises.push(renderedPropositions.clear());
88
- }
89
- if (personalizationDetails.shouldFetchData()) {
90
- var cacheUpdate = viewCache.createCacheUpdate(personalizationDetails.getViewName());
91
- onRequestFailure(function () {
92
- return cacheUpdate.cancel();
93
- });
94
- fetchDataHandler({
95
- cacheUpdate: cacheUpdate,
96
- personalizationDetails: personalizationDetails,
97
- event: event,
98
- onResponse: onResponse
99
- });
100
- } else if (personalizationDetails.shouldUseCachedData()) {
101
- // eslint-disable-next-line consistent-return
102
- decisionsMetaPromises.push(viewChangeHandler({
103
- personalizationDetails: personalizationDetails,
104
- event: event,
105
- onResponse: onResponse,
106
- onRequestFailure: onRequestFailure
107
- }));
108
- }
109
-
110
- // This promise.all waits for both the pending display notifications to be resolved
111
- // (i.e. the top of page call to finish rendering) and the view change handler to
112
- // finish rendering anything for this view.
113
- return Promise.all(decisionsMetaPromises).then(function (decisionsMetas) {
114
- // We only want to call mergeDecisionsMeta once, but we can get the propositions
115
- // from two places: the pending display notifications and the view change handler.
116
- var decisionsMeta = (0, _utils.flatMap)(decisionsMetas, function (dms) {
117
- return dms;
118
- });
119
- if ((0, _utils.isNonEmptyArray)(decisionsMeta)) {
120
- mergeDecisionsMeta(event, decisionsMeta, [_propositionEventType.PropositionEventType.DISPLAY]);
121
- }
122
- });
123
- },
124
- onClick: function onClick(_ref4) {
125
- var event = _ref4.event,
126
- clickedElement = _ref4.clickedElement;
127
- onClickHandler({
128
- event: event,
129
- clickedElement: clickedElement
130
- });
131
- }
132
- },
133
- commands: {
134
- applyPropositions: {
135
- optionsValidator: function optionsValidator(options) {
136
- return (0, _validateApplyPropositionsOptions.default)({
137
- logger: logger,
138
- options: options
139
- });
140
- },
141
- run: applyPropositions
142
- }
143
- }
144
- };
145
- };
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- var _utils = require("../../utils");
5
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /*
11
- Copyright 2023 Adobe. All rights reserved.
12
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
13
- you may not use this file except in compliance with the License. You may obtain a copy
14
- of the License at http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software distributed under
17
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
18
- OF ANY KIND, either express or implied. See the License for the specific language
19
- governing permissions and limitations under the License.
20
- */
21
- var DECISIONS_HANDLE = "personalization:decisions";
22
- var _default = exports.default = function _default(_ref) {
23
- var prehidingStyle = _ref.prehidingStyle,
24
- showContainers = _ref.showContainers,
25
- hideContainers = _ref.hideContainers,
26
- mergeQuery = _ref.mergeQuery,
27
- processPropositions = _ref.processPropositions,
28
- createProposition = _ref.createProposition,
29
- notificationHandler = _ref.notificationHandler,
30
- consent = _ref.consent;
31
- return function (_ref2) {
32
- var cacheUpdate = _ref2.cacheUpdate,
33
- personalizationDetails = _ref2.personalizationDetails,
34
- event = _ref2.event,
35
- onResponse = _ref2.onResponse;
36
- var _consent$current = consent.current(),
37
- state = _consent$current.state,
38
- wasSet = _consent$current.wasSet;
39
- if (!(state === "out" && wasSet)) {
40
- if (personalizationDetails.isRenderDecisions()) {
41
- hideContainers(prehidingStyle);
42
- } else {
43
- showContainers();
44
- }
45
- }
46
- mergeQuery(event, personalizationDetails.createQueryDetails());
47
-
48
- // This needs to be called before the response so that future sendEvent calls
49
- // can know to wait until this request is complete for pending display notifications.
50
- var handleNotifications = notificationHandler(personalizationDetails.isRenderDecisions(), personalizationDetails.isSendDisplayEvent(), personalizationDetails.getViewName());
51
- onResponse(function (_ref3) {
52
- var response = _ref3.response;
53
- var handles = response.getPayloadsByType(DECISIONS_HANDLE);
54
- var propositions = handles.map(function (handle) {
55
- return createProposition(handle);
56
- });
57
- var _groupBy = (0, _utils.groupBy)(propositions, function (p) {
58
- return p.getScopeType();
59
- }),
60
- _groupBy$page = _groupBy.page,
61
- pagePropositions = _groupBy$page === void 0 ? [] : _groupBy$page,
62
- _groupBy$view = _groupBy.view,
63
- viewPropositions = _groupBy$view === void 0 ? [] : _groupBy$view,
64
- _groupBy$proposition = _groupBy.proposition,
65
- nonRenderedPropositions = _groupBy$proposition === void 0 ? [] : _groupBy$proposition;
66
- var currentViewPropositions = cacheUpdate.update(viewPropositions);
67
- var render;
68
- var returnedPropositions;
69
- var returnedDecisions;
70
- if (personalizationDetails.isRenderDecisions()) {
71
- var _processPropositions = processPropositions([].concat(_toConsumableArray(pagePropositions), _toConsumableArray(currentViewPropositions)), nonRenderedPropositions);
72
- render = _processPropositions.render;
73
- returnedPropositions = _processPropositions.returnedPropositions;
74
- returnedDecisions = _processPropositions.returnedDecisions;
75
- render().then(handleNotifications);
76
-
77
- // Render could take a long time especially if one of the renders
78
- // is waiting for html to appear on the page. We show the containers
79
- // immediately, and whatever renders quickly will not have flicker.
80
- showContainers();
81
- } else {
82
- var _processPropositions2 = processPropositions([], [].concat(_toConsumableArray(pagePropositions), _toConsumableArray(currentViewPropositions), _toConsumableArray(nonRenderedPropositions)));
83
- returnedPropositions = _processPropositions2.returnedPropositions;
84
- returnedDecisions = _processPropositions2.returnedDecisions;
85
- }
86
- return {
87
- propositions: returnedPropositions,
88
- decisions: returnedDecisions
89
- };
90
- });
91
- };
92
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- exports.default = void 0;
4
- /*
5
- Copyright 2022 Adobe. All rights reserved.
6
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
- you may not use this file except in compliance with the License. You may obtain a copy
8
- of the License at http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software distributed under
11
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
- OF ANY KIND, either express or implied. See the License for the specific language
13
- governing permissions and limitations under the License.
14
- */
15
- var _default = exports.default = function _default(_ref) {
16
- var window = _ref.window;
17
- return function () {
18
- return window.location;
19
- };
20
- };