@adobe/alloy 2.20.0-beta.0 → 2.20.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +2 -2
- package/libEs5/components/ActivityCollector/configValidators.js +5 -5
- package/libEs5/components/ActivityCollector/getLinkName.js +1 -1
- package/libEs5/components/ActivityCollector/getLinkRegion.js +3 -3
- package/libEs5/components/ActivityCollector/index.js +7 -7
- package/libEs5/components/Audiences/index.js +5 -5
- package/libEs5/components/Audiences/injectProcessDestinations.js +2 -2
- package/libEs5/components/Context/createComponent.js +2 -2
- package/libEs5/components/Context/implementationDetails.js +4 -4
- package/libEs5/components/Context/index.js +11 -11
- package/libEs5/components/Context/injectDevice.js +5 -5
- package/libEs5/components/Context/injectEnvironment.js +4 -4
- package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +5 -5
- package/libEs5/components/Context/injectPlaceContext.js +4 -4
- package/libEs5/components/Context/injectTimestamp.js +2 -2
- package/libEs5/components/Context/injectWeb.js +2 -2
- package/libEs5/components/DataCollector/index.js +5 -5
- package/libEs5/components/DataCollector/validateApplyResponse.js +11 -11
- package/libEs5/components/DataCollector/validateUserEventOptions.js +22 -22
- package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
- package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
- package/libEs5/components/DecisioningEngine/createContextProvider.js +4 -4
- package/libEs5/components/DecisioningEngine/createDecisionHistory.js +1 -1
- package/libEs5/components/DecisioningEngine/createDecisionProvider.js +3 -3
- package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
- package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +5 -5
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +3 -3
- package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +2 -2
- package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +9 -9
- package/libEs5/components/DecisioningEngine/index.js +18 -18
- package/libEs5/components/EventMerge/createEventMergeId.js +2 -2
- package/libEs5/components/EventMerge/index.js +2 -2
- package/libEs5/components/Identity/addEcidQueryToPayload.js +1 -1
- package/libEs5/components/Identity/addEcidToPayload.js +1 -1
- package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +5 -5
- package/libEs5/components/Identity/configValidators.js +4 -4
- package/libEs5/components/Identity/createComponent.js +4 -4
- package/libEs5/components/Identity/getEcidFromResponse.js +3 -3
- package/libEs5/components/Identity/getIdentity/createGetIdentity.js +2 -2
- package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -2
- package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +4 -4
- package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +5 -5
- package/libEs5/components/Identity/index.js +24 -24
- package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +4 -4
- package/libEs5/components/Identity/injectProcessIdSyncs.js +2 -2
- package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
- package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
- package/libEs5/components/Identity/visitorService/getVisitor.js +2 -2
- package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
- package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +16 -17
- package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +4 -4
- package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +28 -28
- package/libEs5/components/LegacyMediaAnalytics/index.js +9 -9
- package/libEs5/components/LibraryInfo/index.js +2 -2
- package/libEs5/components/MachineLearning/index.js +1 -1
- package/libEs5/components/Personalization/createActionsProvider.js +3 -3
- package/libEs5/components/Personalization/createApplyPropositions.js +7 -7
- package/libEs5/components/Personalization/createCollect.js +4 -4
- package/libEs5/components/Personalization/createComponent.js +9 -9
- package/libEs5/components/Personalization/createFetchDataHandler.js +2 -2
- package/libEs5/components/Personalization/createHandleConsentFlicker.js +1 -1
- package/libEs5/components/Personalization/createNotificationHandler.js +2 -2
- package/libEs5/components/Personalization/createOnClickHandler.js +5 -5
- package/libEs5/components/Personalization/createPersonalizationDetails.js +11 -11
- package/libEs5/components/Personalization/createPreprocessors.js +3 -3
- package/libEs5/components/Personalization/createSetTargetMigration.js +2 -2
- package/libEs5/components/Personalization/createViewCacheManager.js +6 -6
- package/libEs5/components/Personalization/dom-actions/action.js +18 -18
- package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +7 -7
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +8 -8
- package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +3 -3
- package/libEs5/components/Personalization/dom-actions/createPreprocess.js +2 -2
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +1 -3
- package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +3 -3
- package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/index.js +14 -14
- package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
- package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +4 -4
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +4 -4
- package/libEs5/components/Personalization/dom-actions/images.js +7 -7
- package/libEs5/components/Personalization/dom-actions/index.js +1 -1
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +3 -3
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +7 -7
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +7 -7
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +10 -10
- package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +4 -4
- package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
- package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +10 -10
- package/libEs5/components/Personalization/dom-actions/replaceHtml.js +3 -3
- package/libEs5/components/Personalization/dom-actions/scripts.js +11 -11
- package/libEs5/components/Personalization/dom-actions/setAttributes.js +2 -2
- package/libEs5/components/Personalization/dom-actions/setHtml.js +5 -5
- package/libEs5/components/Personalization/dom-actions/setStyles.js +3 -3
- package/libEs5/components/Personalization/dom-actions/swapImage.js +5 -5
- package/libEs5/components/Personalization/event.js +1 -1
- package/libEs5/components/Personalization/flicker/index.js +13 -13
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +2 -2
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +23 -21
- package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
- package/libEs5/components/Personalization/in-app-message-actions/utils.js +7 -7
- package/libEs5/components/Personalization/index.js +43 -43
- package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
- package/libEs5/components/Personalization/utils/surfaceUtils.js +11 -9
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +5 -5
- package/libEs5/components/Privacy/computeConsentHash.js +2 -2
- package/libEs5/components/Privacy/createComponent.js +1 -1
- package/libEs5/components/Privacy/createConsentHashStore.js +2 -2
- package/libEs5/components/Privacy/createConsentRequest.js +2 -2
- package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -2
- package/libEs5/components/Privacy/createStoredConsent.js +3 -3
- package/libEs5/components/Privacy/index.js +13 -13
- package/libEs5/components/Privacy/injectSendSetConsentRequest.js +4 -4
- package/libEs5/components/Privacy/validateSetConsentOptions.js +6 -6
- package/libEs5/components/StreamingMedia/configValidators.js +8 -8
- package/libEs5/components/StreamingMedia/createMediaEventManager.js +6 -6
- package/libEs5/components/StreamingMedia/createMediaRequest.js +2 -2
- package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +5 -5
- package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
- package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +4 -4
- package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +1 -1
- package/libEs5/components/StreamingMedia/createTrackMediaSession.js +1 -1
- package/libEs5/components/StreamingMedia/index.js +8 -8
- package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +13 -13
- package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +12 -12
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/constants/propositionEventType.js +1 -1
- package/libEs5/core/buildAndValidateConfig.js +2 -2
- package/libEs5/core/componentCreators.js +14 -14
- package/libEs5/core/config/createConfig.js +2 -2
- package/libEs5/core/config/createCoreConfigs.js +15 -15
- package/libEs5/core/consent/createConsent.js +3 -3
- package/libEs5/core/consent/createConsentStateMachine.js +2 -2
- package/libEs5/core/createComponentRegistry.js +4 -4
- package/libEs5/core/createCookieTransfer.js +2 -2
- package/libEs5/core/createEvent.js +12 -12
- package/libEs5/core/createEventManager.js +9 -9
- package/libEs5/core/createLogController.js +4 -4
- package/libEs5/core/createLogger.js +2 -2
- package/libEs5/core/edgeNetwork/injectApplyResponse.js +7 -7
- package/libEs5/core/edgeNetwork/injectGetLocationHint.js +4 -4
- package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +9 -9
- package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
- package/libEs5/core/index.js +44 -44
- package/libEs5/core/initializeComponents.js +2 -2
- package/libEs5/core/injectCreateResponse.js +3 -3
- package/libEs5/core/injectExecuteCommand.js +4 -4
- package/libEs5/core/injectHandleError.js +4 -4
- package/libEs5/core/injectShouldTransferCookie.js +3 -3
- package/libEs5/core/network/getRequestRetryDelay.js +3 -3
- package/libEs5/core/network/injectSendNetworkRequest.js +2 -2
- package/libEs5/core/network/isRequestRetryable.js +3 -3
- package/libEs5/index.js +10 -10
- package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
- package/libEs5/utils/assignConcatArrayValues.js +2 -2
- package/libEs5/utils/assignIf.js +1 -1
- package/libEs5/utils/createMerger.js +1 -1
- package/libEs5/utils/createSubscription.js +1 -1
- package/libEs5/utils/deepAssign.js +2 -2
- package/libEs5/utils/dom/awaitSelector.js +3 -3
- package/libEs5/utils/dom/createNode.js +2 -2
- package/libEs5/utils/dom/index.js +8 -8
- package/libEs5/utils/dom/isShadowSelector.js +1 -1
- package/libEs5/utils/dom/querySelectorAll.js +1 -1
- package/libEs5/utils/dom/selectNodes.js +3 -3
- package/libEs5/utils/dom/selectNodesWithShadow.js +3 -3
- package/libEs5/utils/filterObject.js +3 -3
- package/libEs5/utils/fireImage.js +2 -2
- package/libEs5/utils/getApexDomain.js +2 -2
- package/libEs5/utils/getBrowser.js +2 -2
- package/libEs5/utils/getNamespacedCookieName.js +2 -2
- package/libEs5/utils/index.js +58 -58
- package/libEs5/utils/injectDoesIdentityCookieExist.js +3 -3
- package/libEs5/utils/injectFireReferrerHideableImage.js +6 -6
- package/libEs5/utils/injectStorage.js +2 -2
- package/libEs5/utils/intersection.js +1 -1
- package/libEs5/utils/isBlankString.js +1 -1
- package/libEs5/utils/isEmptyObject.js +1 -1
- package/libEs5/utils/isInteger.js +1 -1
- package/libEs5/utils/isNamespacedCookieName.js +2 -2
- package/libEs5/utils/isNonEmptyString.js +1 -1
- package/libEs5/utils/isObject.js +1 -1
- package/libEs5/utils/isValidRegExp.js +1 -1
- package/libEs5/utils/parseUrl.js +1 -1
- package/libEs5/utils/prepareConfigOverridesForEdge.js +7 -7
- package/libEs5/utils/request/createDataCollectionRequest.js +1 -1
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +3 -3
- package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
- package/libEs5/utils/request/createRequest.js +2 -2
- package/libEs5/utils/request/createRequestParams.js +1 -1
- package/libEs5/utils/request/createRequestPayload.js +6 -6
- package/libEs5/utils/request/index.js +8 -8
- package/libEs5/utils/stackError.js +2 -2
- package/libEs5/utils/stringToBoolean.js +1 -1
- package/libEs5/utils/toISOStringLocal.js +2 -2
- package/libEs5/utils/toInteger.js +2 -2
- package/libEs5/utils/uuid.js +2 -2
- package/libEs5/utils/validateConfigOverride.js +2 -2
- package/libEs5/utils/validateIdentityMap.js +2 -2
- package/libEs5/utils/validation/booleanValidator.js +2 -2
- package/libEs5/utils/validation/callbackValidator.js +2 -2
- package/libEs5/utils/validation/createAnyOfValidator.js +2 -2
- package/libEs5/utils/validation/createArrayOfValidator.js +1 -1
- package/libEs5/utils/validation/createDeprecatedValidator.js +3 -3
- package/libEs5/utils/validation/createLiteralValidator.js +1 -1
- package/libEs5/utils/validation/createMapOfValuesValidator.js +2 -2
- package/libEs5/utils/validation/createMaximumValidator.js +1 -1
- package/libEs5/utils/validation/createMinimumValidator.js +1 -1
- package/libEs5/utils/validation/createNonEmptyValidator.js +3 -3
- package/libEs5/utils/validation/createObjectOfValidator.js +2 -2
- package/libEs5/utils/validation/createUniqueItemsValidator.js +2 -2
- package/libEs5/utils/validation/createUniqueValidator.js +1 -1
- package/libEs5/utils/validation/domainValidator.js +1 -1
- package/libEs5/utils/validation/index.js +23 -23
- package/libEs5/utils/validation/integerValidator.js +2 -2
- package/libEs5/utils/validation/matchesRegexpValidator.js +1 -1
- package/libEs5/utils/validation/numberValidator.js +2 -2
- package/libEs5/utils/validation/regexpValidator.js +2 -2
- package/libEs5/utils/validation/stringValidator.js +2 -2
- package/libEs5/utils/validation/utils.js +1 -1
- package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +1 -1
- package/libEs6/components/ActivityCollector/configValidators.js +1 -1
- package/libEs6/components/ActivityCollector/getLinkName.js +1 -1
- package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
- package/libEs6/components/ActivityCollector/index.js +7 -7
- package/libEs6/components/Audiences/index.js +3 -3
- package/libEs6/components/Audiences/injectProcessDestinations.js +1 -1
- package/libEs6/components/Context/createComponent.js +1 -1
- package/libEs6/components/Context/implementationDetails.js +3 -3
- package/libEs6/components/Context/index.js +9 -9
- package/libEs6/components/Context/injectDevice.js +1 -1
- package/libEs6/components/Context/injectEnvironment.js +1 -1
- package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
- package/libEs6/components/Context/injectPlaceContext.js +1 -1
- package/libEs6/components/Context/injectTimestamp.js +1 -1
- package/libEs6/components/Context/injectWeb.js +1 -1
- package/libEs6/components/DataCollector/index.js +3 -3
- package/libEs6/components/DataCollector/validateApplyResponse.js +1 -1
- package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
- package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
- package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
- package/libEs6/components/DecisioningEngine/createContextProvider.js +4 -4
- package/libEs6/components/DecisioningEngine/createDecisionHistory.js +1 -1
- package/libEs6/components/DecisioningEngine/createDecisionProvider.js +3 -3
- package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
- package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +1 -1
- package/libEs6/components/DecisioningEngine/createEventRegistry.js +3 -3
- package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +2 -2
- package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +3 -3
- package/libEs6/components/DecisioningEngine/index.js +11 -11
- package/libEs6/components/EventMerge/createEventMergeId.js +1 -1
- package/libEs6/components/EventMerge/index.js +2 -2
- package/libEs6/components/Identity/addEcidQueryToPayload.js +1 -1
- package/libEs6/components/Identity/addEcidToPayload.js +1 -1
- package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +2 -2
- package/libEs6/components/Identity/configValidators.js +1 -1
- package/libEs6/components/Identity/createComponent.js +3 -3
- package/libEs6/components/Identity/getEcidFromResponse.js +2 -2
- package/libEs6/components/Identity/getIdentity/createGetIdentity.js +1 -1
- package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +1 -1
- package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +1 -1
- package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +2 -2
- package/libEs6/components/Identity/index.js +20 -20
- package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +3 -3
- package/libEs6/components/Identity/injectProcessIdSyncs.js +1 -1
- package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
- package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +1 -1
- package/libEs6/components/Identity/visitorService/getVisitor.js +1 -1
- package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
- package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +12 -13
- package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +2 -2
- package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +2 -2
- package/libEs6/components/LegacyMediaAnalytics/index.js +9 -9
- package/libEs6/components/LibraryInfo/index.js +2 -2
- package/libEs6/components/MachineLearning/index.js +1 -1
- package/libEs6/components/Personalization/createActionsProvider.js +2 -2
- package/libEs6/components/Personalization/createApplyPropositions.js +3 -3
- package/libEs6/components/Personalization/createCollect.js +3 -3
- package/libEs6/components/Personalization/createComponent.js +5 -5
- package/libEs6/components/Personalization/createFetchDataHandler.js +1 -1
- package/libEs6/components/Personalization/createHandleConsentFlicker.js +1 -1
- package/libEs6/components/Personalization/createNotificationHandler.js +1 -1
- package/libEs6/components/Personalization/createOnClickHandler.js +3 -3
- package/libEs6/components/Personalization/createPersonalizationDetails.js +4 -4
- package/libEs6/components/Personalization/createPreprocessors.js +3 -3
- package/libEs6/components/Personalization/createSetTargetMigration.js +1 -1
- package/libEs6/components/Personalization/createViewCacheManager.js +4 -4
- package/libEs6/components/Personalization/dom-actions/action.js +14 -14
- package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +4 -4
- package/libEs6/components/Personalization/dom-actions/appendHtml.js +5 -5
- package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
- package/libEs6/components/Personalization/dom-actions/createPreprocess.js +1 -1
- package/libEs6/components/Personalization/dom-actions/createRedirect.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/index.js +14 -14
- package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +3 -3
- package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +2 -2
- package/libEs6/components/Personalization/dom-actions/images.js +4 -4
- package/libEs6/components/Personalization/dom-actions/index.js +1 -1
- package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
- package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +4 -4
- package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +4 -4
- package/libEs6/components/Personalization/dom-actions/prependHtml.js +5 -5
- package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +1 -1
- package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +1 -1
- package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +6 -6
- package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/scripts.js +4 -4
- package/libEs6/components/Personalization/dom-actions/setAttributes.js +1 -1
- package/libEs6/components/Personalization/dom-actions/setHtml.js +3 -3
- package/libEs6/components/Personalization/dom-actions/setStyles.js +1 -1
- package/libEs6/components/Personalization/dom-actions/swapImage.js +3 -3
- package/libEs6/components/Personalization/event.js +1 -1
- package/libEs6/components/Personalization/flicker/index.js +3 -3
- package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
- package/libEs6/components/Personalization/handlers/injectCreateProposition.js +2 -2
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +11 -9
- package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
- package/libEs6/components/Personalization/in-app-message-actions/utils.js +2 -2
- package/libEs6/components/Personalization/index.js +35 -35
- package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +1 -1
- package/libEs6/components/Personalization/utils/surfaceUtils.js +4 -2
- package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +1 -1
- package/libEs6/components/Privacy/computeConsentHash.js +1 -1
- package/libEs6/components/Privacy/createComponent.js +1 -1
- package/libEs6/components/Privacy/createConsentHashStore.js +1 -1
- package/libEs6/components/Privacy/createConsentRequest.js +1 -1
- package/libEs6/components/Privacy/createConsentRequestPayload.js +1 -1
- package/libEs6/components/Privacy/createStoredConsent.js +2 -2
- package/libEs6/components/Privacy/index.js +9 -9
- package/libEs6/components/Privacy/injectSendSetConsentRequest.js +2 -2
- package/libEs6/components/Privacy/validateSetConsentOptions.js +2 -2
- package/libEs6/components/StreamingMedia/configValidators.js +1 -1
- package/libEs6/components/StreamingMedia/createMediaEventManager.js +4 -4
- package/libEs6/components/StreamingMedia/createMediaRequest.js +1 -1
- package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +4 -4
- package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
- package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +3 -3
- package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +1 -1
- package/libEs6/components/StreamingMedia/createTrackMediaSession.js +1 -1
- package/libEs6/components/StreamingMedia/index.js +8 -8
- package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
- package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +1 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/constants/propositionEventType.js +1 -1
- package/libEs6/core/buildAndValidateConfig.js +1 -1
- package/libEs6/core/componentCreators.js +13 -13
- package/libEs6/core/config/createConfig.js +1 -1
- package/libEs6/core/config/createCoreConfigs.js +5 -5
- package/libEs6/core/consent/createConsent.js +3 -3
- package/libEs6/core/consent/createConsentStateMachine.js +1 -1
- package/libEs6/core/createComponentRegistry.js +1 -1
- package/libEs6/core/createCookieTransfer.js +1 -1
- package/libEs6/core/createEvent.js +1 -1
- package/libEs6/core/createEventManager.js +3 -3
- package/libEs6/core/createLogController.js +2 -2
- package/libEs6/core/createLogger.js +1 -1
- package/libEs6/core/edgeNetwork/injectApplyResponse.js +3 -3
- package/libEs6/core/edgeNetwork/injectGetLocationHint.js +3 -3
- package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
- package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +5 -5
- package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +1 -1
- package/libEs6/core/index.js +33 -33
- package/libEs6/core/initializeComponents.js +1 -1
- package/libEs6/core/injectCreateResponse.js +2 -2
- package/libEs6/core/injectExecuteCommand.js +2 -2
- package/libEs6/core/injectHandleError.js +2 -2
- package/libEs6/core/injectShouldTransferCookie.js +2 -2
- package/libEs6/core/network/getRequestRetryDelay.js +2 -2
- package/libEs6/core/network/injectSendNetworkRequest.js +1 -1
- package/libEs6/core/network/isRequestRetryable.js +2 -2
- package/libEs6/index.js +5 -5
- package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
- package/libEs6/utils/assignConcatArrayValues.js +2 -2
- package/libEs6/utils/assignIf.js +1 -1
- package/libEs6/utils/createMerger.js +1 -1
- package/libEs6/utils/createSubscription.js +1 -1
- package/libEs6/utils/deepAssign.js +2 -2
- package/libEs6/utils/dom/awaitSelector.js +3 -3
- package/libEs6/utils/dom/createNode.js +2 -2
- package/libEs6/utils/dom/index.js +8 -8
- package/libEs6/utils/dom/isShadowSelector.js +1 -1
- package/libEs6/utils/dom/querySelectorAll.js +1 -1
- package/libEs6/utils/dom/selectNodes.js +3 -3
- package/libEs6/utils/dom/selectNodesWithShadow.js +3 -3
- package/libEs6/utils/filterObject.js +3 -3
- package/libEs6/utils/fireImage.js +2 -2
- package/libEs6/utils/getApexDomain.js +2 -2
- package/libEs6/utils/getBrowser.js +2 -2
- package/libEs6/utils/getNamespacedCookieName.js +2 -2
- package/libEs6/utils/index.js +58 -58
- package/libEs6/utils/injectDoesIdentityCookieExist.js +3 -3
- package/libEs6/utils/injectFireReferrerHideableImage.js +3 -3
- package/libEs6/utils/injectStorage.js +2 -2
- package/libEs6/utils/intersection.js +1 -1
- package/libEs6/utils/isBlankString.js +1 -1
- package/libEs6/utils/isEmptyObject.js +1 -1
- package/libEs6/utils/isInteger.js +1 -1
- package/libEs6/utils/isNamespacedCookieName.js +2 -2
- package/libEs6/utils/isNonEmptyString.js +1 -1
- package/libEs6/utils/isObject.js +1 -1
- package/libEs6/utils/isValidRegExp.js +1 -1
- package/libEs6/utils/parseUrl.js +1 -1
- package/libEs6/utils/prepareConfigOverridesForEdge.js +7 -7
- package/libEs6/utils/request/createDataCollectionRequest.js +1 -1
- package/libEs6/utils/request/createDataCollectionRequestPayload.js +3 -3
- package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
- package/libEs6/utils/request/createRequest.js +1 -1
- package/libEs6/utils/request/createRequestPayload.js +1 -1
- package/libEs6/utils/request/index.js +8 -8
- package/libEs6/utils/stackError.js +2 -2
- package/libEs6/utils/stringToBoolean.js +1 -1
- package/libEs6/utils/toISOStringLocal.js +2 -2
- package/libEs6/utils/toInteger.js +2 -2
- package/libEs6/utils/uuid.js +2 -2
- package/libEs6/utils/validateConfigOverride.js +1 -1
- package/libEs6/utils/validateIdentityMap.js +2 -2
- package/libEs6/utils/validation/booleanValidator.js +2 -2
- package/libEs6/utils/validation/callbackValidator.js +2 -2
- package/libEs6/utils/validation/createAnyOfValidator.js +2 -2
- package/libEs6/utils/validation/createArrayOfValidator.js +1 -1
- package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
- package/libEs6/utils/validation/createLiteralValidator.js +1 -1
- package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
- package/libEs6/utils/validation/createMaximumValidator.js +1 -1
- package/libEs6/utils/validation/createMinimumValidator.js +1 -1
- package/libEs6/utils/validation/createNonEmptyValidator.js +3 -3
- package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueValidator.js +1 -1
- package/libEs6/utils/validation/domainValidator.js +1 -1
- package/libEs6/utils/validation/index.js +23 -23
- package/libEs6/utils/validation/integerValidator.js +2 -2
- package/libEs6/utils/validation/matchesRegexpValidator.js +1 -1
- package/libEs6/utils/validation/numberValidator.js +2 -2
- package/libEs6/utils/validation/regexpValidator.js +2 -2
- package/libEs6/utils/validation/stringValidator.js +2 -2
- package/libEs6/utils/validation/utils.js +1 -1
- package/package.json +68 -65
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
4
|
+
var _index = require("../components/DataCollector/index.js");
|
|
5
|
+
var _index2 = require("../components/ActivityCollector/index.js");
|
|
6
|
+
var _index3 = require("../components/Identity/index.js");
|
|
7
|
+
var _index4 = require("../components/Audiences/index.js");
|
|
8
|
+
var _index5 = require("../components/Personalization/index.js");
|
|
9
|
+
var _index6 = require("../components/Context/index.js");
|
|
10
|
+
var _index7 = require("../components/Privacy/index.js");
|
|
11
|
+
var _index8 = require("../components/EventMerge/index.js");
|
|
12
|
+
var _index9 = require("../components/LibraryInfo/index.js");
|
|
13
|
+
var _index10 = require("../components/DecisioningEngine/index.js");
|
|
14
|
+
var _index11 = require("../components/MachineLearning/index.js");
|
|
15
|
+
var _index12 = require("../components/StreamingMedia/index.js");
|
|
16
|
+
var _index13 = require("../components/LegacyMediaAnalytics/index.js");
|
|
17
17
|
/*
|
|
18
18
|
Copyright 2023 Adobe. All rights reserved.
|
|
19
19
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -36,4 +36,4 @@ governing permissions and limitations under the License.
|
|
|
36
36
|
/* @skipwhen ENV.alloy_machinelearning === false */
|
|
37
37
|
// TODO: Register the Components here statically for now. They might be registered differently.
|
|
38
38
|
// TODO: Figure out how sub-components will be made available/registered
|
|
39
|
-
var _default = exports.default = [
|
|
39
|
+
var _default = exports.default = [_index.default, _index2.default, _index3.default, _index4.default, _index5.default, _index6.default, _index7.default, _index8.default, _index9.default, _index11.default, _index10.default, _index13.default, _index12.default];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../../utils/index.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2019 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -15,6 +15,6 @@ governing permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
var createConfig = function createConfig(options) {
|
|
18
|
-
return (0,
|
|
18
|
+
return (0, _index.assign)({}, options);
|
|
19
19
|
};
|
|
20
20
|
var _default = exports.default = createConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var _domain = require("../../constants/domain");
|
|
7
|
-
var _edgeBasePath = require("../../constants/edgeBasePath");
|
|
8
|
-
var _consentStatus = require("../../constants/consentStatus");
|
|
4
|
+
var _index = require("../../utils/validation/index.js");
|
|
5
|
+
var _index2 = require("../../utils/index.js");
|
|
6
|
+
var _domain = require("../../constants/domain.js");
|
|
7
|
+
var _edgeBasePath = require("../../constants/edgeBasePath.js");
|
|
8
|
+
var _consentStatus = require("../../constants/consentStatus.js");
|
|
9
9
|
/*
|
|
10
10
|
Copyright 2019 Adobe. All rights reserved.
|
|
11
11
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,14 +18,14 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
18
18
|
governing permissions and limitations under the License.
|
|
19
19
|
*/
|
|
20
20
|
var _default = exports.default = function _default() {
|
|
21
|
-
return (0,
|
|
22
|
-
debugEnabled: (0,
|
|
23
|
-
defaultConsent: (0,
|
|
24
|
-
datastreamId: (0,
|
|
25
|
-
edgeDomain: (0,
|
|
26
|
-
edgeBasePath: (0,
|
|
27
|
-
orgId: (0,
|
|
28
|
-
onBeforeEventSend: (0,
|
|
29
|
-
edgeConfigOverrides:
|
|
30
|
-
}).deprecated("edgeConfigId", (0,
|
|
21
|
+
return (0, _index.objectOf)({
|
|
22
|
+
debugEnabled: (0, _index.boolean)().default(false),
|
|
23
|
+
defaultConsent: (0, _index.enumOf)(_consentStatus.IN, _consentStatus.OUT, _consentStatus.PENDING).default(_consentStatus.IN),
|
|
24
|
+
datastreamId: (0, _index.string)().unique().required(),
|
|
25
|
+
edgeDomain: (0, _index.string)().domain().default(_domain.EDGE),
|
|
26
|
+
edgeBasePath: (0, _index.string)().nonEmpty().default(_edgeBasePath.default),
|
|
27
|
+
orgId: (0, _index.string)().unique().required(),
|
|
28
|
+
onBeforeEventSend: (0, _index.callback)().default(_index2.noop),
|
|
29
|
+
edgeConfigOverrides: _index2.validateConfigOverride
|
|
30
|
+
}).deprecated("edgeConfigId", (0, _index.string)().unique(), "datastreamId");
|
|
31
31
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var _consentStatus = require("../../constants/consentStatus");
|
|
5
|
-
var _consentPurpose = require("../../constants/consentPurpose");
|
|
6
|
-
var _createConsentStateMachine = require("./createConsentStateMachine");
|
|
4
|
+
var _consentStatus = require("../../constants/consentStatus.js");
|
|
5
|
+
var _consentPurpose = require("../../constants/consentPurpose.js");
|
|
6
|
+
var _createConsentStateMachine = require("./createConsentStateMachine.js");
|
|
7
7
|
/*
|
|
8
8
|
Copyright 2020 Adobe. All rights reserved.
|
|
9
9
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = exports.DECLINED_CONSENT_ERROR_CODE = exports.DECLINED_CONSENT = exports.CONSENT_SOURCE_NEW = exports.CONSENT_SOURCE_INITIAL = exports.CONSENT_SOURCE_DEFAULT = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../../utils/index.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2020 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -57,7 +57,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
57
57
|
if (returnImmediately) {
|
|
58
58
|
return Promise.reject(new Error("Consent is pending."));
|
|
59
59
|
}
|
|
60
|
-
var deferred = (0,
|
|
60
|
+
var deferred = (0, _index.defer)();
|
|
61
61
|
deferreds.push(deferred);
|
|
62
62
|
return deferred.promise;
|
|
63
63
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../utils/index.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2019 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -20,14 +20,14 @@ var wrapForErrorHandling = function wrapForErrorHandling(fn, stackMessage) {
|
|
|
20
20
|
try {
|
|
21
21
|
result = fn.apply(void 0, arguments);
|
|
22
22
|
} catch (error) {
|
|
23
|
-
throw (0,
|
|
23
|
+
throw (0, _index.stackError)({
|
|
24
24
|
error: error,
|
|
25
25
|
message: stackMessage
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
if (result instanceof Promise) {
|
|
29
29
|
result = result.catch(function (error) {
|
|
30
|
-
throw (0,
|
|
30
|
+
throw (0, _index.stackError)({
|
|
31
31
|
error: error,
|
|
32
32
|
message: stackMessage
|
|
33
33
|
});
|
|
@@ -44,7 +44,7 @@ var _default = exports.default = function _default() {
|
|
|
44
44
|
var lifecycleCallbacksByName = {};
|
|
45
45
|
var registerComponentCommands = function registerComponentCommands(namespace) {
|
|
46
46
|
var componentCommandsByName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47
|
-
var conflictingCommandNames = (0,
|
|
47
|
+
var conflictingCommandNames = (0, _index.intersection)(Object.keys(commandsByName), Object.keys(componentCommandsByName));
|
|
48
48
|
if (conflictingCommandNames.length) {
|
|
49
49
|
throw new Error("[ComponentRegistry] Could not register " + namespace + " " + ("because it has existing command(s): " + conflictingCommandNames.join(",")));
|
|
50
50
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../utils/index.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2019 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -27,7 +27,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
27
27
|
* the request body so they can be read by the server.
|
|
28
28
|
*/
|
|
29
29
|
cookiesToPayload: function cookiesToPayload(payload, endpointDomain) {
|
|
30
|
-
var isEndpointFirstParty = (0,
|
|
30
|
+
var isEndpointFirstParty = (0, _index.endsWith)(endpointDomain, apexDomain);
|
|
31
31
|
var state = {
|
|
32
32
|
domain: apexDomain,
|
|
33
33
|
cookiesEnabled: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../utils/index.js");
|
|
5
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
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
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); }
|
|
@@ -25,7 +25,7 @@ var getXdmPropositions = function getXdmPropositions(xdm) {
|
|
|
25
25
|
// eslint-disable-next-line no-underscore-dangle
|
|
26
26
|
xdm._experience.decisioning &&
|
|
27
27
|
// eslint-disable-next-line no-underscore-dangle
|
|
28
|
-
(0,
|
|
28
|
+
(0, _index.isNonEmptyArray)(xdm._experience.decisioning.propositions) ?
|
|
29
29
|
// eslint-disable-next-line no-underscore-dangle
|
|
30
30
|
xdm._experience.decisioning.propositions : [];
|
|
31
31
|
};
|
|
@@ -48,12 +48,12 @@ var _default = exports.default = function _default() {
|
|
|
48
48
|
getContent: function getContent() {
|
|
49
49
|
var currentContent = JSON.parse(JSON.stringify(content));
|
|
50
50
|
if (userXdm) {
|
|
51
|
-
(0,
|
|
51
|
+
(0, _index.deepAssign)(currentContent, {
|
|
52
52
|
xdm: userXdm
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
if (userData) {
|
|
56
|
-
(0,
|
|
56
|
+
(0, _index.deepAssign)(currentContent, {
|
|
57
57
|
data: userData
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -70,7 +70,7 @@ var _default = exports.default = function _default() {
|
|
|
70
70
|
mergeXdm: function mergeXdm(xdm) {
|
|
71
71
|
throwIfEventFinalized("mergeXdm");
|
|
72
72
|
if (xdm) {
|
|
73
|
-
(0,
|
|
73
|
+
(0, _index.deepAssign)(content, {
|
|
74
74
|
xdm: xdm
|
|
75
75
|
});
|
|
76
76
|
}
|
|
@@ -78,7 +78,7 @@ var _default = exports.default = function _default() {
|
|
|
78
78
|
mergeData: function mergeData(data) {
|
|
79
79
|
throwIfEventFinalized("mergeData");
|
|
80
80
|
if (data) {
|
|
81
|
-
(0,
|
|
81
|
+
(0, _index.deepAssign)(content, {
|
|
82
82
|
data: data
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -86,7 +86,7 @@ var _default = exports.default = function _default() {
|
|
|
86
86
|
mergeMeta: function mergeMeta(meta) {
|
|
87
87
|
throwIfEventFinalized("mergeMeta");
|
|
88
88
|
if (meta) {
|
|
89
|
-
(0,
|
|
89
|
+
(0, _index.deepAssign)(content, {
|
|
90
90
|
meta: meta
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -94,7 +94,7 @@ var _default = exports.default = function _default() {
|
|
|
94
94
|
mergeQuery: function mergeQuery(query) {
|
|
95
95
|
throwIfEventFinalized("mergeQuery");
|
|
96
96
|
if (query) {
|
|
97
|
-
(0,
|
|
97
|
+
(0, _index.deepAssign)(content, {
|
|
98
98
|
query: query
|
|
99
99
|
});
|
|
100
100
|
}
|
|
@@ -106,7 +106,7 @@ var _default = exports.default = function _default() {
|
|
|
106
106
|
if (isFinalized) {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
var newPropositions = (0,
|
|
109
|
+
var newPropositions = (0, _index.deduplicateArray)([].concat(_toConsumableArray(getXdmPropositions(userXdm)), _toConsumableArray(getXdmPropositions(content.xdm))), function (a, b) {
|
|
110
110
|
return a === b || a.id && b.id && a.id === b.id && a.scope && b.scope && a.scope === b.scope;
|
|
111
111
|
});
|
|
112
112
|
if (userXdm) {
|
|
@@ -136,10 +136,10 @@ var _default = exports.default = function _default() {
|
|
|
136
136
|
shouldSendEvent = result !== false;
|
|
137
137
|
content.xdm = tempContent.xdm || {};
|
|
138
138
|
content.data = tempContent.data || {};
|
|
139
|
-
if ((0,
|
|
139
|
+
if ((0, _index.isEmptyObject)(content.xdm)) {
|
|
140
140
|
delete content.xdm;
|
|
141
141
|
}
|
|
142
|
-
if ((0,
|
|
142
|
+
if ((0, _index.isEmptyObject)(content.data)) {
|
|
143
143
|
delete content.data;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -148,7 +148,7 @@ var _default = exports.default = function _default() {
|
|
|
148
148
|
return _documentMayUnload;
|
|
149
149
|
},
|
|
150
150
|
isEmpty: function isEmpty() {
|
|
151
|
-
return (0,
|
|
151
|
+
return (0, _index.isEmptyObject)(content) && (!userXdm || (0, _index.isEmptyObject)(userXdm)) && (!userData || (0, _index.isEmptyObject)(userData));
|
|
152
152
|
},
|
|
153
153
|
shouldSend: function shouldSend() {
|
|
154
154
|
return shouldSendEvent;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
var _pageWideScope = require("../constants/pageWideScope");
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var _pageWideScope = require("../constants/pageWideScope.js");
|
|
6
|
+
var _index = require("../utils/index.js");
|
|
7
|
+
var _index2 = require("../utils/request/index.js");
|
|
8
8
|
var _excluded = ["edgeConfigOverrides"];
|
|
9
9
|
/*
|
|
10
10
|
Copyright 2019 Adobe. All rights reserved.
|
|
@@ -23,7 +23,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
23
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
24
|
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); }
|
|
25
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
var EVENT_CANCELLATION_MESSAGE = "Event was canceled because the onBeforeEventSend callback returned false.";
|
|
28
28
|
var _default = exports.default = function _default(_ref) {
|
|
29
29
|
var config = _ref.config,
|
|
@@ -56,14 +56,14 @@ var _default = exports.default = function _default(_ref) {
|
|
|
56
56
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
57
57
|
var localConfigOverrides = options.edgeConfigOverrides,
|
|
58
58
|
otherOptions = _objectWithoutProperties(options, _excluded);
|
|
59
|
-
var requestParams = (0,
|
|
59
|
+
var requestParams = (0, _index2.createRequestParams)({
|
|
60
60
|
payload: createDataCollectionRequestPayload(),
|
|
61
61
|
localConfigOverrides: localConfigOverrides,
|
|
62
62
|
globalConfigOverrides: globalConfigOverrides
|
|
63
63
|
});
|
|
64
64
|
var request = createDataCollectionRequest(requestParams);
|
|
65
|
-
var onResponseCallbackAggregator = (0,
|
|
66
|
-
var onRequestFailureCallbackAggregator = (0,
|
|
65
|
+
var onResponseCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
66
|
+
var onRequestFailureCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
67
67
|
return lifecycle.onBeforeEvent(_objectSpread(_objectSpread({}, otherOptions), {}, {
|
|
68
68
|
event: event,
|
|
69
69
|
onResponse: onResponseCallbackAggregator.add,
|
|
@@ -121,7 +121,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
121
121
|
var request = createDataCollectionRequest({
|
|
122
122
|
payload: payload
|
|
123
123
|
});
|
|
124
|
-
var onResponseCallbackAggregator = (0,
|
|
124
|
+
var onResponseCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
125
125
|
return lifecycle.onBeforeEvent({
|
|
126
126
|
event: event,
|
|
127
127
|
renderDecisions: renderDecisions,
|
|
@@ -129,7 +129,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
129
129
|
decisionScopes: [_pageWideScope.default],
|
|
130
130
|
personalization: personalization,
|
|
131
131
|
onResponse: onResponseCallbackAggregator.add,
|
|
132
|
-
onRequestFailure:
|
|
132
|
+
onRequestFailure: _index.noop
|
|
133
133
|
}).then(function () {
|
|
134
134
|
payload.addEvent(event);
|
|
135
135
|
return _applyResponse({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
5
|
-
var _debugQueryParam = require("../constants/debugQueryParam");
|
|
4
|
+
var _index = require("../utils/index.js");
|
|
5
|
+
var _debugQueryParam = require("../constants/debugQueryParam.js");
|
|
6
6
|
/*
|
|
7
7
|
Copyright 2019 Adobe. All rights reserved.
|
|
8
8
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -21,7 +21,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
21
21
|
instanceName = _ref.instanceName,
|
|
22
22
|
createNamespacedStorage = _ref.createNamespacedStorage,
|
|
23
23
|
getMonitors = _ref.getMonitors;
|
|
24
|
-
var parsedQueryString =
|
|
24
|
+
var parsedQueryString = _index.queryString.parse(locationSearch);
|
|
25
25
|
var storage = createNamespacedStorage("instance." + instanceName + ".");
|
|
26
26
|
var debugSessionValue = storage.session.getItem("debug");
|
|
27
27
|
var debugEnabled = debugSessionValue === "true";
|
|
@@ -41,7 +41,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
if (parsedQueryString[_debugQueryParam.default] !== undefined) {
|
|
44
|
-
setDebugEnabled((0,
|
|
44
|
+
setDebugEnabled((0, _index.stringToBoolean)(parsedQueryString[_debugQueryParam.default]), {
|
|
45
45
|
fromConfig: false
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../utils/index.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2019 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -25,7 +25,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
25
25
|
var notifyMonitors = function notifyMonitors(method, data) {
|
|
26
26
|
var monitors = getMonitors();
|
|
27
27
|
if (monitors.length > 0) {
|
|
28
|
-
var dataWithContext = (0,
|
|
28
|
+
var dataWithContext = (0, _index.assign)({}, context, data);
|
|
29
29
|
monitors.forEach(function (monitor) {
|
|
30
30
|
if (monitor[method]) {
|
|
31
31
|
monitor[method](dataWithContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
5
|
-
var _mergeLifecycleResponses = require("./mergeLifecycleResponses");
|
|
6
|
-
var _handleRequestFailure = require("./handleRequestFailure");
|
|
4
|
+
var _index = require("../../utils/index.js");
|
|
5
|
+
var _mergeLifecycleResponses = require("./mergeLifecycleResponses.js");
|
|
6
|
+
var _handleRequestFailure = require("./handleRequestFailure.js");
|
|
7
7
|
/*
|
|
8
8
|
Copyright 2023 Adobe. All rights reserved.
|
|
9
9
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -27,13 +27,13 @@ var _default = exports.default = function _default(_ref) {
|
|
|
27
27
|
responseHeaders = _ref2.responseHeaders,
|
|
28
28
|
responseBody = _ref2.responseBody,
|
|
29
29
|
_ref2$runOnResponseCa = _ref2.runOnResponseCallbacks,
|
|
30
|
-
runOnResponseCallbacks = _ref2$runOnResponseCa === void 0 ?
|
|
30
|
+
runOnResponseCallbacks = _ref2$runOnResponseCa === void 0 ? _index.noop : _ref2$runOnResponseCa,
|
|
31
31
|
_ref2$runOnRequestFai = _ref2.runOnRequestFailureCallbacks,
|
|
32
|
-
runOnRequestFailureCallbacks = _ref2$runOnRequestFai === void 0 ?
|
|
33
|
-
var onResponseCallbackAggregator = (0,
|
|
32
|
+
runOnRequestFailureCallbacks = _ref2$runOnRequestFai === void 0 ? _index.noop : _ref2$runOnRequestFai;
|
|
33
|
+
var onResponseCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
34
34
|
onResponseCallbackAggregator.add(lifecycle.onResponse);
|
|
35
35
|
onResponseCallbackAggregator.add(runOnResponseCallbacks);
|
|
36
|
-
var onRequestFailureCallbackAggregator = (0,
|
|
36
|
+
var onRequestFailureCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
37
37
|
onRequestFailureCallbackAggregator.add(lifecycle.onRequestFailure);
|
|
38
38
|
onRequestFailureCallbackAggregator.add(runOnRequestFailureCallbacks);
|
|
39
39
|
var getHeader = function getHeader(key) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
5
|
-
var _cookieNameKey = require("../../constants/cookieNameKey");
|
|
6
|
-
var _legacyCookies = require("../../constants/legacyCookies");
|
|
4
|
+
var _index = require("../../utils/index.js");
|
|
5
|
+
var _cookieNameKey = require("../../constants/cookieNameKey.js");
|
|
6
|
+
var _legacyCookies = require("../../constants/legacyCookies.js");
|
|
7
7
|
/*
|
|
8
8
|
Copyright 2022 Adobe. All rights reserved.
|
|
9
9
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,7 +18,7 @@ governing permissions and limitations under the License.
|
|
|
18
18
|
var _default = exports.default = function _default(_ref) {
|
|
19
19
|
var orgId = _ref.orgId,
|
|
20
20
|
cookieJar = _ref.cookieJar;
|
|
21
|
-
var clusterCookieName = (0,
|
|
21
|
+
var clusterCookieName = (0, _index.getNamespacedCookieName)(orgId, _cookieNameKey.CLUSTER);
|
|
22
22
|
var fromClusterCookie = function fromClusterCookie() {
|
|
23
23
|
return cookieJar.get(clusterCookieName);
|
|
24
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var _httpStatusCode = require("../../constants/httpStatusCode");
|
|
4
|
+
var _httpStatusCode = require("../../constants/httpStatusCode.js");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2019 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var _domain = require("../../constants/domain");
|
|
5
|
-
var _apiVersion = require("../../constants/apiVersion");
|
|
6
|
-
var
|
|
7
|
-
var _mergeLifecycleResponses = require("./mergeLifecycleResponses");
|
|
8
|
-
var _handleRequestFailure = require("./handleRequestFailure");
|
|
4
|
+
var _domain = require("../../constants/domain.js");
|
|
5
|
+
var _apiVersion = require("../../constants/apiVersion.js");
|
|
6
|
+
var _index = require("../../utils/index.js");
|
|
7
|
+
var _mergeLifecycleResponses = require("./mergeLifecycleResponses.js");
|
|
8
|
+
var _handleRequestFailure = require("./handleRequestFailure.js");
|
|
9
9
|
/*
|
|
10
10
|
Copyright 2019 Adobe. All rights reserved.
|
|
11
11
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -37,13 +37,13 @@ var _default = exports.default = function _default(_ref) {
|
|
|
37
37
|
return function (_ref2) {
|
|
38
38
|
var request = _ref2.request,
|
|
39
39
|
_ref2$runOnResponseCa = _ref2.runOnResponseCallbacks,
|
|
40
|
-
runOnResponseCallbacks = _ref2$runOnResponseCa === void 0 ?
|
|
40
|
+
runOnResponseCallbacks = _ref2$runOnResponseCa === void 0 ? _index.noop : _ref2$runOnResponseCa,
|
|
41
41
|
_ref2$runOnRequestFai = _ref2.runOnRequestFailureCallbacks,
|
|
42
|
-
runOnRequestFailureCallbacks = _ref2$runOnRequestFai === void 0 ?
|
|
43
|
-
var onResponseCallbackAggregator = (0,
|
|
42
|
+
runOnRequestFailureCallbacks = _ref2$runOnRequestFai === void 0 ? _index.noop : _ref2$runOnRequestFai;
|
|
43
|
+
var onResponseCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
44
44
|
onResponseCallbackAggregator.add(lifecycle.onResponse);
|
|
45
45
|
onResponseCallbackAggregator.add(runOnResponseCallbacks);
|
|
46
|
-
var onRequestFailureCallbackAggregator = (0,
|
|
46
|
+
var onRequestFailureCallbackAggregator = (0, _index.createCallbackAggregator)();
|
|
47
47
|
onRequestFailureCallbackAggregator.add(lifecycle.onRequestFailure);
|
|
48
48
|
onRequestFailureCallbackAggregator.add(runOnRequestFailureCallbacks);
|
|
49
49
|
return lifecycle.onBeforeRequest({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _index = require("../../utils/index.js");
|
|
5
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
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
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); }
|
|
@@ -24,5 +24,5 @@ var _default = exports.default = function _default(returnValues) {
|
|
|
24
24
|
var lifecycleOnResponseReturnValues = returnValues.shift() || [];
|
|
25
25
|
var consumerOnResponseReturnValues = returnValues.shift() || [];
|
|
26
26
|
var lifecycleOnBeforeRequestReturnValues = returnValues;
|
|
27
|
-
return
|
|
27
|
+
return _index.assignConcatArrayValues.apply(void 0, [{}].concat(_toConsumableArray(lifecycleOnResponseReturnValues), _toConsumableArray(consumerOnResponseReturnValues), _toConsumableArray(lifecycleOnBeforeRequestReturnValues)));
|
|
28
28
|
};
|