@adobe/alloy 2.23.0 → 2.24.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libEs5/components/{MachineLearning/index.js → Consent/configValidators.js} +6 -13
- package/libEs5/components/{Privacy → Consent}/index.js +5 -3
- package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/index.js +5 -5
- package/libEs5/components/Personalization/createApplyPropositions.js +2 -1
- package/libEs5/components/Personalization/createNotificationHandler.js +15 -3
- package/libEs5/components/Personalization/createOnDecisionHandler.js +30 -2
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +4 -2
- package/libEs5/components/Personalization/handlers/createProcessPropositions.js +33 -15
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +4 -1
- package/libEs5/components/Personalization/handlers/processDefaultContent.js +2 -0
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +1 -1
- package/libEs5/components/{DecisioningEngine → RulesEngine}/createDecisionProvider.js +8 -1
- package/libEs5/components/{DecisioningEngine → RulesEngine}/createEvaluableRulesetPayload.js +1 -0
- package/libEs5/components/{DecisioningEngine → RulesEngine}/index.js +4 -4
- package/libEs5/components/StreamingMedia/createMediaEventManager.js +7 -4
- package/libEs5/components/StreamingMedia/createTrackMediaSession.js +4 -2
- package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +4 -2
- package/libEs5/constants/eventType.js +2 -1
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/constants/propositionEventType.js +6 -3
- package/libEs5/core/componentCreators.js +14 -21
- package/libEs5/core/config/createCoreConfigs.js +0 -2
- package/libEs5/core/consent/createConsentStateMachine.js +1 -1
- package/libEs5/core/createLifecycle.js +1 -1
- package/libEs5/utils/request/createRequestParams.js +7 -2
- package/libEs6/baseCode/index.js +2 -2
- package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +2 -2
- package/libEs6/components/ActivityCollector/createClickActivityStorage.js +2 -2
- package/libEs6/components/ActivityCollector/createClickedElementProperties.js +2 -2
- package/libEs6/components/ActivityCollector/createGetClickedElementProperties.js +2 -2
- package/libEs6/components/ActivityCollector/createInjectClickedElementProperties.js +2 -2
- package/libEs6/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +2 -2
- package/libEs6/components/ActivityCollector/createStorePageViewProperties.js +2 -2
- package/libEs6/components/ActivityCollector/getLinkName.js +2 -2
- package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
- package/libEs6/components/ActivityCollector/utils/activityMapExtensionEnabled.js +1 -1
- package/libEs6/components/ActivityCollector/utils/createTransientStorage.js +2 -2
- package/libEs6/components/ActivityCollector/utils/determineLinkType.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/elementHasClickHandler.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/extractDomain.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/findClickableElement.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isDownloadLink.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isExitLink.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isInputSubmitElement.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +2 -2
- package/libEs6/components/ActivityCollector/utils/dom/isSupportedTextNode.js +2 -2
- package/libEs6/components/ActivityCollector/utils/hasPageName.js +2 -2
- package/libEs6/components/ActivityCollector/utils/isDifferentDomains.js +2 -2
- package/libEs6/components/ActivityCollector/utils/trimQueryFromUrl.js +2 -2
- package/libEs6/components/ActivityCollector/utils/truncateWhiteSpace.js +2 -2
- package/libEs6/components/ActivityCollector/utils/urlStartsWithScheme.js +2 -2
- package/libEs6/components/Audiences/injectProcessDestinations.js +2 -2
- package/libEs6/components/Audiences/injectProcessResponse.js +2 -2
- package/libEs6/components/{Privacy → Consent}/computeConsentHash.js +2 -2
- package/libEs6/components/{MachineLearning/processResponse.js → Consent/configValidators.js} +6 -8
- package/libEs6/components/{Privacy → Consent}/createComponent.js +2 -2
- package/libEs6/components/{Privacy → Consent}/createConsentHashStore.js +2 -2
- package/libEs6/components/{Privacy → Consent}/createConsentRequest.js +2 -2
- package/libEs6/components/{Privacy → Consent}/createConsentRequestPayload.js +2 -2
- package/libEs6/components/{Privacy → Consent}/createStoredConsent.js +2 -2
- package/libEs6/components/{Privacy → Consent}/index.js +5 -3
- package/libEs6/components/{Privacy → Consent}/injectSendSetConsentRequest.js +2 -2
- package/libEs6/components/{Privacy → Consent}/parseConsentCookie.js +2 -2
- package/libEs6/components/Context/createComponent.js +2 -2
- package/libEs6/components/Context/implementationDetails.js +2 -2
- package/libEs6/components/Context/injectDevice.js +2 -2
- package/libEs6/components/Context/injectEnvironment.js +2 -2
- package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
- package/libEs6/components/Context/injectPlaceContext.js +2 -2
- package/libEs6/components/Context/injectTimestamp.js +2 -2
- package/libEs6/components/Context/injectWeb.js +2 -2
- package/libEs6/components/DataCollector/validateApplyResponse.js +2 -2
- package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
- package/libEs6/components/EventMerge/createComponent.js +2 -2
- package/libEs6/components/EventMerge/createEventMergeId.js +2 -2
- package/libEs6/components/Identity/addEcidToPayload.js +2 -2
- package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +2 -2
- package/libEs6/components/Identity/createComponent.js +2 -2
- package/libEs6/components/Identity/createLegacyIdentity.js +2 -2
- package/libEs6/components/Identity/getIdentity/createGetIdentity.js +2 -2
- package/libEs6/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +2 -2
- package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +2 -2
- package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +2 -2
- package/libEs6/components/Identity/getNamespacesFromResponse.js +2 -2
- package/libEs6/components/Identity/injectAddEcidQueryToPayload.js +2 -2
- package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +2 -2
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +2 -2
- package/libEs6/components/Identity/injectAwaitIdentityCookie.js +2 -2
- package/libEs6/components/Identity/injectEnsureSingleIdentity.js +2 -2
- package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +2 -2
- package/libEs6/components/Identity/injectProcessIdSyncs.js +2 -2
- package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +2 -2
- package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
- package/libEs6/components/Identity/visitorService/getVisitor.js +2 -2
- package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +2 -2
- package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createGetInstance.js +2 -2
- package/libEs6/components/{LegacyMediaAnalytics/createLegacyMediaComponent.js → MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js} +2 -2
- package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createMediaHelper.js +2 -2
- package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/index.js +5 -5
- package/libEs6/components/Personalization/createActionsProvider.js +2 -2
- package/libEs6/components/Personalization/createApplyPropositions.js +5 -4
- package/libEs6/components/Personalization/createClickStorage.js +2 -2
- package/libEs6/components/Personalization/createComponent.js +2 -2
- package/libEs6/components/Personalization/createFetchDataHandler.js +2 -2
- package/libEs6/components/Personalization/createGetPageLocation.js +2 -2
- package/libEs6/components/Personalization/createHandleConsentFlicker.js +2 -2
- package/libEs6/components/Personalization/createInteractionStorage.js +2 -2
- package/libEs6/components/Personalization/createNotificationHandler.js +17 -5
- package/libEs6/components/Personalization/createOnClickHandler.js +2 -2
- package/libEs6/components/Personalization/createOnDecisionHandler.js +32 -4
- package/libEs6/components/Personalization/createPersonalizationDetails.js +2 -2
- package/libEs6/components/Personalization/createPreprocessors.js +2 -2
- package/libEs6/components/Personalization/createSetTargetMigration.js +2 -2
- package/libEs6/components/Personalization/createViewCacheManager.js +2 -2
- package/libEs6/components/Personalization/createViewChangeHandler.js +2 -2
- package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +2 -2
- package/libEs6/components/Personalization/dom-actions/appendHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
- package/libEs6/components/Personalization/dom-actions/clicks/collectInteractions.js +2 -2
- package/libEs6/components/Personalization/dom-actions/collectInteractions.js +2 -2
- package/libEs6/components/Personalization/dom-actions/createPreprocess.js +2 -2
- package/libEs6/components/Personalization/dom-actions/createRedirect.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getParent.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/isDomElement.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +2 -2
- package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
- package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +2 -2
- package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +2 -2
- package/libEs6/components/Personalization/dom-actions/prependHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +2 -2
- package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
- package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +2 -2
- package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/setAttributes.js +2 -2
- package/libEs6/components/Personalization/dom-actions/setHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/setStyles.js +2 -2
- package/libEs6/components/Personalization/dom-actions/setText.js +2 -2
- package/libEs6/components/Personalization/dom-actions/swapImage.js +2 -2
- package/libEs6/components/Personalization/handlers/createProcessDomAction.js +2 -2
- package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +2 -2
- package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +6 -4
- package/libEs6/components/Personalization/handlers/createProcessPropositions.js +36 -18
- package/libEs6/components/Personalization/handlers/createProcessRedirect.js +2 -2
- package/libEs6/components/Personalization/handlers/injectCreateProposition.js +6 -3
- package/libEs6/components/Personalization/handlers/processDefaultContent.js +4 -2
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +2 -2
- package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +2 -2
- package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
- package/libEs6/components/Personalization/utils/createAsyncArray.js +2 -2
- package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +2 -2
- package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +3 -3
- package/libEs6/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/schemaTypeConsequenceAdapter.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createApplyResponse.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createConsequenceAdapter.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createContextProvider.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createDecisionHistory.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createDecisionProvider.js +10 -3
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createEvaluableRulesetPayload.js +3 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createEvaluateRulesetsCommand.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createEventRegistry.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createOnResponseHandler.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/createSubscribeRulesetItems.js +2 -2
- package/libEs6/components/{DecisioningEngine → RulesEngine}/index.js +4 -4
- package/libEs6/components/StreamingMedia/createMediaEventManager.js +9 -6
- package/libEs6/components/StreamingMedia/createMediaRequest.js +2 -2
- package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +2 -2
- package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +2 -2
- package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +2 -2
- package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +2 -2
- package/libEs6/components/StreamingMedia/createTrackMediaSession.js +6 -4
- package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
- package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +6 -4
- package/libEs6/constants/eventType.js +1 -0
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/constants/propositionEventType.js +7 -4
- package/libEs6/core/buildAndValidateConfig.js +2 -2
- package/libEs6/core/componentCreators.js +3 -4
- package/libEs6/core/config/createCoreConfigs.js +3 -5
- package/libEs6/core/consent/createConsent.js +2 -2
- package/libEs6/core/consent/createConsentStateMachine.js +3 -3
- package/libEs6/core/createComponentRegistry.js +2 -2
- package/libEs6/core/createCookieTransfer.js +2 -2
- package/libEs6/core/createEvent.js +2 -2
- package/libEs6/core/createEventManager.js +2 -2
- package/libEs6/core/createInstanceFunction.js +2 -2
- package/libEs6/core/createLifecycle.js +3 -3
- package/libEs6/core/createLogController.js +2 -2
- package/libEs6/core/createLogger.js +2 -2
- package/libEs6/core/edgeNetwork/handleRequestFailure.js +2 -2
- package/libEs6/core/edgeNetwork/injectApplyResponse.js +2 -2
- package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +2 -2
- package/libEs6/core/edgeNetwork/injectGetLocationHint.js +2 -2
- package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +2 -2
- package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +2 -2
- package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
- package/libEs6/core/index.js +2 -2
- package/libEs6/core/initializeComponents.js +2 -2
- 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 +2 -2
- package/libEs6/core/network/isRequestRetryable.js +2 -2
- package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +2 -2
- package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +2 -2
- package/libEs6/core/validateCommandOptions.js +2 -2
- package/libEs6/utils/assignConcatArrayValues.js +2 -2
- package/libEs6/utils/clone.js +1 -1
- package/libEs6/utils/createCallbackAggregator.js +2 -2
- package/libEs6/utils/createCollect.js +2 -2
- package/libEs6/utils/createLoggingCookieJar.js +2 -2
- package/libEs6/utils/createMerger.js +2 -2
- package/libEs6/utils/createTaskQueue.js +2 -2
- package/libEs6/utils/decodeUriComponentSafely.js +2 -2
- package/libEs6/utils/deduplicateArray.js +2 -2
- package/libEs6/utils/deepAssign.js +2 -2
- package/libEs6/utils/defer.js +2 -2
- package/libEs6/utils/dom/appendNode.js +2 -2
- package/libEs6/utils/dom/awaitSelector.js +2 -2
- package/libEs6/utils/dom/createNode.js +2 -2
- package/libEs6/utils/dom/isShadowSelector.js +1 -1
- package/libEs6/utils/dom/matchesSelector.js +2 -2
- package/libEs6/utils/dom/querySelectorAll.js +2 -2
- package/libEs6/utils/dom/removeNode.js +2 -2
- package/libEs6/utils/dom/selectNodes.js +2 -2
- package/libEs6/utils/dom/selectNodesWithShadow.js +2 -2
- package/libEs6/utils/fireImage.js +2 -2
- package/libEs6/utils/flattenObject.js +2 -2
- package/libEs6/utils/getApexDomain.js +2 -2
- package/libEs6/utils/getLastArrayItems.js +1 -1
- package/libEs6/utils/getNamespacedCookieName.js +1 -1
- package/libEs6/utils/groupBy.js +2 -2
- package/libEs6/utils/injectAreThirdPartyCookiesSupportedByDefault.js +2 -2
- package/libEs6/utils/injectDoesIdentityCookieExist.js +2 -2
- package/libEs6/utils/injectFireReferrerHideableImage.js +2 -2
- package/libEs6/utils/injectGetBrowser.js +2 -2
- package/libEs6/utils/injectStorage.js +2 -2
- package/libEs6/utils/intersection.js +1 -1
- package/libEs6/utils/isBlankString.js +1 -1
- package/libEs6/utils/isBoolean.js +1 -1
- package/libEs6/utils/isEmptyObject.js +1 -1
- package/libEs6/utils/isFunction.js +1 -1
- package/libEs6/utils/isInteger.js +2 -2
- package/libEs6/utils/isNamespacedCookieName.js +1 -1
- package/libEs6/utils/isNil.js +1 -1
- package/libEs6/utils/isNonEmptyArray.js +1 -1
- package/libEs6/utils/isNonEmptyString.js +1 -1
- package/libEs6/utils/isNumber.js +1 -1
- package/libEs6/utils/isObject.js +1 -1
- package/libEs6/utils/isString.js +1 -1
- package/libEs6/utils/isUnique.js +2 -2
- package/libEs6/utils/isValidRegExp.js +2 -2
- package/libEs6/utils/lazy.js +2 -2
- package/libEs6/utils/noop.js +1 -1
- package/libEs6/utils/prepareConfigOverridesForEdge.js +2 -2
- package/libEs6/utils/request/createAddIdentity.js +2 -2
- package/libEs6/utils/request/createDataCollectionRequest.js +2 -2
- package/libEs6/utils/request/createDataCollectionRequestPayload.js +2 -2
- package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +2 -2
- package/libEs6/utils/request/createHasIdentity.js +2 -2
- package/libEs6/utils/request/createRequest.js +2 -2
- package/libEs6/utils/request/createRequestParams.js +10 -4
- package/libEs6/utils/request/createRequestPayload.js +2 -2
- package/libEs6/utils/sanitizeOrgIdForCookieName.js +1 -1
- package/libEs6/utils/stackError.js +2 -2
- package/libEs6/utils/stringToBoolean.js +2 -2
- package/libEs6/utils/toArray.js +2 -2
- package/libEs6/utils/toError.js +2 -2
- package/libEs6/utils/toISOStringLocal.js +2 -2
- package/libEs6/utils/toInteger.js +2 -2
- package/libEs6/utils/updateErrorMessage.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 +2 -2
- package/libEs6/utils/validation/createDefaultValidator.js +2 -2
- package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
- package/libEs6/utils/validation/createLiteralValidator.js +2 -2
- package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
- package/libEs6/utils/validation/createMaximumValidator.js +2 -2
- package/libEs6/utils/validation/createMinimumValidator.js +2 -2
- package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +2 -2
- package/libEs6/utils/validation/createNonEmptyValidator.js +2 -2
- package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
- package/libEs6/utils/validation/createRenamedValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueValidator.js +2 -2
- package/libEs6/utils/validation/domainValidator.js +2 -2
- package/libEs6/utils/validation/integerValidator.js +2 -2
- package/libEs6/utils/validation/matchesRegexpValidator.js +2 -2
- package/libEs6/utils/validation/numberValidator.js +2 -2
- package/libEs6/utils/validation/regexpValidator.js +2 -2
- package/libEs6/utils/validation/requiredValidator.js +2 -2
- package/libEs6/utils/validation/stringValidator.js +2 -2
- package/package.json +30 -30
- package/rollup.config.js +1 -0
- package/scripts/alloyBuilder.js +24 -29
- package/libEs5/components/MachineLearning/processResponse.js +0 -21
- package/libEs6/components/MachineLearning/index.js +0 -23
- /package/libEs5/components/{Privacy → Consent}/computeConsentHash.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/createComponent.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/createConsentHashStore.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/createConsentRequest.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/createConsentRequestPayload.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/createStoredConsent.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/injectSendSetConsentRequest.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/parseConsentCookie.js +0 -0
- /package/libEs5/components/{Privacy → Consent}/validateSetConsentOptions.js +0 -0
- /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js +0 -0
- /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/mediaKeysToXdmConverter.js +0 -0
- /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createGetInstance.js +0 -0
- /package/libEs5/components/{LegacyMediaAnalytics/createLegacyMediaComponent.js → MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js} +0 -0
- /package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createMediaHelper.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/constants.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createApplyResponse.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createConsequenceAdapter.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createContextProvider.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createDecisionHistory.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createEvaluateRulesetsCommand.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createEventRegistry.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createOnResponseHandler.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/createSubscribeRulesetItems.js +0 -0
- /package/libEs5/components/{DecisioningEngine → RulesEngine}/utils.js +0 -0
- /package/libEs6/components/{Privacy → Consent}/validateSetConsentOptions.js +0 -0
- /package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js +0 -0
- /package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/mediaKeysToXdmConverter.js +0 -0
- /package/libEs6/components/{DecisioningEngine → RulesEngine}/constants.js +0 -0
- /package/libEs6/components/{DecisioningEngine → RulesEngine}/utils.js +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _consentStatus = require("../../constants/consentStatus.js");
|
|
5
|
+
var _index = require("../../utils/validation/index.js");
|
|
5
6
|
/*
|
|
6
|
-
Copyright
|
|
7
|
+
Copyright 2024 Adobe. All rights reserved.
|
|
7
8
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
8
9
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
9
10
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -13,14 +14,6 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
14
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
15
|
governing permissions and limitations under the License.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
lifecycle: {
|
|
20
|
-
onResponse: _processResponse.default
|
|
21
|
-
},
|
|
22
|
-
commands: {}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
createMachineLearning.namespace = "MachineLearning";
|
|
26
|
-
var _default = exports.default = createMachineLearning;
|
|
17
|
+
var _default = exports.default = (0, _index.objectOf)({
|
|
18
|
+
defaultConsent: (0, _index.enumOf)(_consentStatus.IN, _consentStatus.OUT, _consentStatus.PENDING).default(_consentStatus.IN)
|
|
19
|
+
});
|
|
@@ -10,6 +10,7 @@ var _createStoredConsent = require("./createStoredConsent.js");
|
|
|
10
10
|
var _injectSendSetConsentRequest = require("./injectSendSetConsentRequest.js");
|
|
11
11
|
var _parseConsentCookie = require("./parseConsentCookie.js");
|
|
12
12
|
var _validateSetConsentOptions = require("./validateSetConsentOptions.js");
|
|
13
|
+
var _configValidators = require("./configValidators.js");
|
|
13
14
|
/*
|
|
14
15
|
Copyright 2019 Adobe. All rights reserved.
|
|
15
16
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -22,7 +23,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
22
23
|
governing permissions and limitations under the License.
|
|
23
24
|
*/
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const createConsent = ({
|
|
26
27
|
config,
|
|
27
28
|
consent,
|
|
28
29
|
sendEdgeNetworkRequest,
|
|
@@ -62,5 +63,6 @@ const createPrivacy = ({
|
|
|
62
63
|
doesIdentityCookieExist
|
|
63
64
|
});
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
createConsent.namespace = "Consent";
|
|
67
|
+
createConsent.configValidators = _configValidators.default;
|
|
68
|
+
var _default = exports.default = createConsent;
|
|
@@ -6,7 +6,7 @@ var _createMediaSessionCacheManager = require("../StreamingMedia/createMediaSess
|
|
|
6
6
|
var _createTrackMediaEvent = require("../StreamingMedia/createTrackMediaEvent.js");
|
|
7
7
|
var _createTrackMediaSession = require("../StreamingMedia/createTrackMediaSession.js");
|
|
8
8
|
var _createMediaResponseHandler = require("../StreamingMedia/createMediaResponseHandler.js");
|
|
9
|
-
var
|
|
9
|
+
var _createMediaAnalyticsBridgeComponent = require("./createMediaAnalyticsBridgeComponent.js");
|
|
10
10
|
var _createMediaHelper = require("./createMediaHelper.js");
|
|
11
11
|
var _createGetInstance = require("./createGetInstance.js");
|
|
12
12
|
var _injectTimestamp = require("../Context/injectTimestamp.js");
|
|
@@ -23,7 +23,7 @@ governing permissions and limitations under the License.
|
|
|
23
23
|
*/
|
|
24
24
|
/* eslint-disable import/no-restricted-paths */
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const createMediaAnalyticsBridge = ({
|
|
27
27
|
eventManager,
|
|
28
28
|
sendEdgeNetworkRequest,
|
|
29
29
|
config,
|
|
@@ -56,7 +56,7 @@ const createLegacyMediaAnalytics = ({
|
|
|
56
56
|
config,
|
|
57
57
|
trackMediaEvent
|
|
58
58
|
});
|
|
59
|
-
return (0,
|
|
59
|
+
return (0, _createMediaAnalyticsBridgeComponent.default)({
|
|
60
60
|
mediaResponseHandler,
|
|
61
61
|
trackMediaSession,
|
|
62
62
|
trackMediaEvent,
|
|
@@ -66,5 +66,5 @@ const createLegacyMediaAnalytics = ({
|
|
|
66
66
|
config
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
var _default = exports.default =
|
|
69
|
+
createMediaAnalyticsBridge.namespace = "Legacy Media Analytics";
|
|
70
|
+
var _default = exports.default = createMediaAnalyticsBridge;
|
|
@@ -22,7 +22,8 @@ const SUPPORTED_SCHEMAS = {
|
|
|
22
22
|
[_schema.DOM_ACTION]: () => true,
|
|
23
23
|
[_schema.HTML_CONTENT_ITEM]: () => true,
|
|
24
24
|
[_schema.JSON_CONTENT_ITEM]: isInteractionTrackingItem,
|
|
25
|
-
[_schema.MESSAGE_IN_APP]: () => true
|
|
25
|
+
[_schema.MESSAGE_IN_APP]: () => true,
|
|
26
|
+
[_schema.DEFAULT_CONTENT_ITEM]: () => true
|
|
26
27
|
};
|
|
27
28
|
const filterItemsPredicate = (schema, actionType) => typeof SUPPORTED_SCHEMAS[schema] === "function" && SUPPORTED_SCHEMAS[schema](schema, actionType);
|
|
28
29
|
var _default = ({
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
4
|
var _index = require("../../utils/index.js");
|
|
5
|
+
var _eventType = require("../../constants/eventType.js");
|
|
6
|
+
var _isNonEmptyArray = require("../../utils/isNonEmptyArray.js");
|
|
5
7
|
/*
|
|
6
8
|
Copyright 2023 Adobe. All rights reserved.
|
|
7
9
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -24,10 +26,20 @@ var _default = (collect, renderedPropositions) => {
|
|
|
24
26
|
renderedPropositions.concat(renderedPropositionsDeferred.promise);
|
|
25
27
|
return renderedPropositionsDeferred.resolve;
|
|
26
28
|
}
|
|
27
|
-
return
|
|
28
|
-
if (
|
|
29
|
+
return (decisionsMetaDisplay = [], decisionsMetaSuppressed = []) => {
|
|
30
|
+
if ((0, _isNonEmptyArray.default)(decisionsMetaDisplay)) {
|
|
29
31
|
collect({
|
|
30
|
-
decisionsMeta,
|
|
32
|
+
decisionsMeta: decisionsMetaDisplay,
|
|
33
|
+
viewName
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if ((0, _isNonEmptyArray.default)(decisionsMetaSuppressed)) {
|
|
37
|
+
collect({
|
|
38
|
+
decisionsMeta: decisionsMetaSuppressed,
|
|
39
|
+
eventType: _eventType.SUPPRESS,
|
|
40
|
+
propositionAction: {
|
|
41
|
+
reason: "Conflict"
|
|
42
|
+
},
|
|
31
43
|
viewName
|
|
32
44
|
});
|
|
33
45
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
+
var _schema = require("../../constants/schema.js");
|
|
4
5
|
/*
|
|
5
6
|
Copyright 2023 Adobe. All rights reserved.
|
|
6
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -12,6 +13,24 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
12
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
14
|
governing permissions and limitations under the License.
|
|
14
15
|
*/
|
|
16
|
+
|
|
17
|
+
// When multiple In-App messages propositions are returned, we need to show only one
|
|
18
|
+
// of them (the one with lowest rank). This function keep track of the number of
|
|
19
|
+
// times it was called. It returns false for the first proposition that contains
|
|
20
|
+
// In-App messages items, true afterwards.
|
|
21
|
+
const createShouldSuppressDisplay = () => {
|
|
22
|
+
let count = 0;
|
|
23
|
+
return proposition => {
|
|
24
|
+
const {
|
|
25
|
+
items = []
|
|
26
|
+
} = proposition;
|
|
27
|
+
if (!items.some(item => item.schema === _schema.MESSAGE_IN_APP)) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
count += 1;
|
|
31
|
+
return count > 1;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
15
34
|
var _default = ({
|
|
16
35
|
processPropositions,
|
|
17
36
|
createProposition,
|
|
@@ -30,13 +49,22 @@ var _default = ({
|
|
|
30
49
|
sendDisplayEvent = true
|
|
31
50
|
} = personalization;
|
|
32
51
|
const viewName = event ? event.getViewName() : undefined;
|
|
33
|
-
const
|
|
52
|
+
const shouldSuppressDisplay = createShouldSuppressDisplay();
|
|
53
|
+
const propositionsToExecute = propositions.map(proposition => createProposition(proposition, true, shouldSuppressDisplay(proposition)));
|
|
34
54
|
const {
|
|
35
55
|
render,
|
|
36
56
|
returnedPropositions
|
|
37
57
|
} = processPropositions(propositionsToExecute);
|
|
38
58
|
const handleNotifications = notificationHandler(renderDecisions, sendDisplayEvent, viewName);
|
|
39
|
-
|
|
59
|
+
const propositionsById = propositionsToExecute.reduce((tot, proposition) => {
|
|
60
|
+
tot[proposition.getId()] = proposition;
|
|
61
|
+
return tot;
|
|
62
|
+
}, {});
|
|
63
|
+
render().then(decisionsMeta => {
|
|
64
|
+
const decisionsMetaDisplay = decisionsMeta.filter(meta => !propositionsById[meta.id].shouldSuppressDisplay());
|
|
65
|
+
const decisionsMetaSuppressed = decisionsMeta.filter(meta => propositionsById[meta.id].shouldSuppressDisplay());
|
|
66
|
+
handleNotifications(decisionsMetaDisplay, decisionsMetaSuppressed);
|
|
67
|
+
});
|
|
40
68
|
return Promise.resolve({
|
|
41
69
|
propositions: returnedPropositions
|
|
42
70
|
});
|
|
@@ -46,9 +46,11 @@ var _default = ({
|
|
|
46
46
|
}) => {
|
|
47
47
|
return item => {
|
|
48
48
|
const data = item.getData();
|
|
49
|
+
const proposition = item.getProposition();
|
|
49
50
|
const meta = {
|
|
50
|
-
...
|
|
51
|
+
...proposition.getNotification()
|
|
51
52
|
};
|
|
53
|
+
const shouldSuppressDisplay = proposition.shouldSuppressDisplay();
|
|
52
54
|
if (!data) {
|
|
53
55
|
logger.warn("Invalid in-app message data: undefined.", data);
|
|
54
56
|
return {};
|
|
@@ -69,7 +71,7 @@ var _default = ({
|
|
|
69
71
|
}
|
|
70
72
|
return {
|
|
71
73
|
render: () => {
|
|
72
|
-
return modules[type]({
|
|
74
|
+
return shouldSuppressDisplay ? null : modules[type]({
|
|
73
75
|
...data,
|
|
74
76
|
meta
|
|
75
77
|
});
|
|
@@ -22,7 +22,7 @@ var _default = ({
|
|
|
22
22
|
if (logger.enabled) {
|
|
23
23
|
logger.info("Action " + item.toString() + " executed.");
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return item.toJSON();
|
|
26
26
|
}).catch(error => {
|
|
27
27
|
const {
|
|
28
28
|
message,
|
|
@@ -39,16 +39,20 @@ var _default = ({
|
|
|
39
39
|
message: warning,
|
|
40
40
|
logLevel: "warn"
|
|
41
41
|
});
|
|
42
|
-
return
|
|
42
|
+
return undefined;
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
const renderItems = (renderers, meta) => Promise.all(renderers.map(renderer => renderer())).then(
|
|
45
|
+
const renderItems = (renderers, meta) => Promise.all(renderers.map(renderer => renderer())).then(results => {
|
|
46
|
+
const successes = results.filter(result => result);
|
|
46
47
|
// as long as at least one renderer succeeds, we want to add the notification
|
|
47
48
|
// to the display notifications
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
49
|
+
if (meta && (0, _index.isNonEmptyArray)(successes)) {
|
|
50
|
+
return {
|
|
51
|
+
...meta,
|
|
52
|
+
items: successes
|
|
53
|
+
};
|
|
50
54
|
}
|
|
51
|
-
return
|
|
55
|
+
return undefined;
|
|
52
56
|
});
|
|
53
57
|
const processItem = item => {
|
|
54
58
|
const processor = schemaProcessors[item.getSchema()];
|
|
@@ -175,16 +179,30 @@ var _default = ({
|
|
|
175
179
|
});
|
|
176
180
|
const render = () => {
|
|
177
181
|
return Promise.all(renderers.map(renderer => renderer())).then(metas => {
|
|
178
|
-
const
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
const propositions = metas.filter(meta => meta);
|
|
183
|
+
const renderedPropositions = propositions.map(prop => {
|
|
184
|
+
const {
|
|
185
|
+
id,
|
|
186
|
+
scope,
|
|
187
|
+
scopeDetails
|
|
188
|
+
} = prop;
|
|
189
|
+
return {
|
|
190
|
+
id,
|
|
191
|
+
scope,
|
|
192
|
+
scopeDetails
|
|
193
|
+
};
|
|
187
194
|
});
|
|
195
|
+
if ((0, _index.isNonEmptyArray)(propositions)) {
|
|
196
|
+
const propsByScope = (0, _index.groupBy)(propositions, p => p.scope);
|
|
197
|
+
logger.logOnContentRendering({
|
|
198
|
+
status: "rendering-succeeded",
|
|
199
|
+
detail: {
|
|
200
|
+
...propsByScope
|
|
201
|
+
},
|
|
202
|
+
message: "Scopes: " + JSON.stringify(propsByScope) + " successfully executed.",
|
|
203
|
+
logLevel: "info"
|
|
204
|
+
});
|
|
205
|
+
}
|
|
188
206
|
return renderedPropositions;
|
|
189
207
|
});
|
|
190
208
|
};
|
|
@@ -59,7 +59,7 @@ var _default = ({
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
return (payload, visibleInReturnedItems = true) => {
|
|
62
|
+
return (payload, visibleInReturnedItems = true, shouldSuppressDisplay = false) => {
|
|
63
63
|
const {
|
|
64
64
|
id,
|
|
65
65
|
scope,
|
|
@@ -100,6 +100,9 @@ var _default = ({
|
|
|
100
100
|
toJSON() {
|
|
101
101
|
return payload;
|
|
102
102
|
},
|
|
103
|
+
shouldSuppressDisplay() {
|
|
104
|
+
return shouldSuppressDisplay;
|
|
105
|
+
},
|
|
103
106
|
addToReturnValues(propositions, decisions, includedItems, renderAttempted) {
|
|
104
107
|
if (visibleInReturnedItems) {
|
|
105
108
|
propositions.push({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
+
var _noop = require("../../../utils/noop.js");
|
|
4
5
|
/*
|
|
5
6
|
Copyright 2023 Adobe. All rights reserved.
|
|
6
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,6 +15,7 @@ governing permissions and limitations under the License.
|
|
|
14
15
|
*/
|
|
15
16
|
var _default = () => {
|
|
16
17
|
return {
|
|
18
|
+
render: _noop.default,
|
|
17
19
|
setRenderAttempted: true,
|
|
18
20
|
includeInNotification: true
|
|
19
21
|
};
|
|
@@ -31,7 +31,7 @@ var _default = ({
|
|
|
31
31
|
items: (0, _index.arrayOf)((0, _index.objectOf)({
|
|
32
32
|
id: (0, _index.string)().required(),
|
|
33
33
|
schema: (0, _index.string)().required(),
|
|
34
|
-
data: (0, _index.
|
|
34
|
+
data: (0, _index.objectOf)((0, _index.anything)())
|
|
35
35
|
})).nonEmpty().required()
|
|
36
36
|
}).required()).nonEmpty().required(),
|
|
37
37
|
metadata: (0, _index.objectOf)((0, _index.anything)()),
|
|
@@ -32,7 +32,14 @@ var _default = ({
|
|
|
32
32
|
payloadsBasedOnActivityId[activityId] = evaluableRulesetPayload;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
const evaluate = (context = {}) =>
|
|
35
|
+
const evaluate = (context = {}) => {
|
|
36
|
+
const sortedPayloadsBasedOnActivityId = Object.values(payloadsBasedOnActivityId).sort(({
|
|
37
|
+
rank: rankA
|
|
38
|
+
}, {
|
|
39
|
+
rank: rankB
|
|
40
|
+
}) => rankA - rankB);
|
|
41
|
+
return sortedPayloadsBasedOnActivityId.map(payload => payload.evaluate(context)).filter(payload => payload.items.length > 0);
|
|
42
|
+
};
|
|
36
43
|
const addPayloads = personalizationPayloads => {
|
|
37
44
|
personalizationPayloads.forEach(addPayload);
|
|
38
45
|
};
|
|
@@ -26,7 +26,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
26
26
|
governing permissions and limitations under the License.
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const createRulesEngine = ({
|
|
30
30
|
config,
|
|
31
31
|
eventManager,
|
|
32
32
|
createNamespacedStorage,
|
|
@@ -143,8 +143,8 @@ const createDecisioningEngine = ({
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
createRulesEngine.namespace = "RulesEngine";
|
|
147
|
+
createRulesEngine.configValidators = (0, _index2.objectOf)({
|
|
148
148
|
personalizationStorageEnabled: (0, _index2.boolean)().default(false)
|
|
149
149
|
});
|
|
150
|
-
var _default = exports.default =
|
|
150
|
+
var _default = exports.default = createRulesEngine;
|
|
@@ -96,11 +96,14 @@ var _default = ({
|
|
|
96
96
|
},
|
|
97
97
|
trackMediaSession({
|
|
98
98
|
event,
|
|
99
|
-
mediaOptions
|
|
99
|
+
mediaOptions,
|
|
100
|
+
edgeConfigOverrides
|
|
100
101
|
}) {
|
|
101
|
-
|
|
102
|
-
mediaOptions
|
|
103
|
-
|
|
102
|
+
const sendEventOptions = {
|
|
103
|
+
mediaOptions,
|
|
104
|
+
edgeConfigOverrides
|
|
105
|
+
};
|
|
106
|
+
return eventManager.sendEvent(event, sendEventOptions);
|
|
104
107
|
},
|
|
105
108
|
trackMediaEvent({
|
|
106
109
|
event,
|
|
@@ -25,7 +25,8 @@ var _default = ({
|
|
|
25
25
|
}
|
|
26
26
|
const {
|
|
27
27
|
playerId,
|
|
28
|
-
getPlayerDetails
|
|
28
|
+
getPlayerDetails,
|
|
29
|
+
edgeConfigOverrides
|
|
29
30
|
} = options;
|
|
30
31
|
const event = mediaEventManager.createMediaSession(options);
|
|
31
32
|
mediaEventManager.augmentMediaEvent({
|
|
@@ -39,7 +40,8 @@ var _default = ({
|
|
|
39
40
|
playerId,
|
|
40
41
|
getPlayerDetails,
|
|
41
42
|
legacy
|
|
42
|
-
}
|
|
43
|
+
},
|
|
44
|
+
edgeConfigOverrides
|
|
43
45
|
});
|
|
44
46
|
mediaSessionCacheManager.storeSession({
|
|
45
47
|
playerId,
|
|
@@ -23,14 +23,16 @@ var _default = ({
|
|
|
23
23
|
mediaCollection: (0, _index.objectOf)({
|
|
24
24
|
sessionDetails: (0, _index.objectOf)((0, _index.anything)()).required()
|
|
25
25
|
})
|
|
26
|
-
})
|
|
26
|
+
}),
|
|
27
|
+
edgeConfigOverrides: (0, _index.objectOf)({})
|
|
27
28
|
}).required(), (0, _index.objectOf)({
|
|
28
29
|
xdm: (0, _index.objectOf)({
|
|
29
30
|
mediaCollection: (0, _index.objectOf)({
|
|
30
31
|
playhead: (0, _index.number)().required(),
|
|
31
32
|
sessionDetails: (0, _index.objectOf)((0, _index.anything)()).required()
|
|
32
33
|
})
|
|
33
|
-
})
|
|
34
|
+
}),
|
|
35
|
+
edgeConfigOverrides: (0, _index.objectOf)({})
|
|
34
36
|
}).required()], "Error validating the createMediaSession command options.");
|
|
35
37
|
return sessionValidator(options);
|
|
36
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports.TRIGGER = exports.INTERACT = exports.EVENT_TYPE_TRUE = exports.DISPLAY = exports.DISMISS = void 0;
|
|
3
|
+
exports.TRIGGER = exports.SUPPRESS = exports.INTERACT = exports.EVENT_TYPE_TRUE = exports.DISPLAY = exports.DISMISS = void 0;
|
|
4
4
|
/*
|
|
5
5
|
Copyright 2022 Adobe. All rights reserved.
|
|
6
6
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -17,4 +17,5 @@ const DISPLAY = exports.DISPLAY = "decisioning.propositionDisplay";
|
|
|
17
17
|
const INTERACT = exports.INTERACT = "decisioning.propositionInteract";
|
|
18
18
|
const TRIGGER = exports.TRIGGER = "decisioning.propositionTrigger";
|
|
19
19
|
const DISMISS = exports.DISMISS = "decisioning.propositionDismiss";
|
|
20
|
+
const SUPPRESS = exports.SUPPRESS = "decisioning.propositionSuppressDisplay";
|
|
20
21
|
const EVENT_TYPE_TRUE = exports.EVENT_TYPE_TRUE = 1;
|
|
@@ -14,4 +14,4 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
*/
|
|
15
15
|
// The __VERSION__ keyword will be replace at alloy build time with the package.json version.
|
|
16
16
|
// see babel-plugin-version
|
|
17
|
-
var _default = exports.default = "2.
|
|
17
|
+
var _default = exports.default = "2.24.0-beta.1";
|
|
@@ -18,19 +18,22 @@ const PropositionEventType = exports.PropositionEventType = {
|
|
|
18
18
|
DISPLAY: "display",
|
|
19
19
|
INTERACT: "interact",
|
|
20
20
|
TRIGGER: "trigger",
|
|
21
|
-
DISMISS: "dismiss"
|
|
21
|
+
DISMISS: "dismiss",
|
|
22
|
+
SUPPRESS: "suppressDisplay"
|
|
22
23
|
};
|
|
23
24
|
const eventTypeToPropositionEventTypeMapping = {
|
|
24
25
|
[_eventType.DISPLAY]: PropositionEventType.DISPLAY,
|
|
25
26
|
[_eventType.INTERACT]: PropositionEventType.INTERACT,
|
|
26
27
|
[_eventType.TRIGGER]: PropositionEventType.TRIGGER,
|
|
27
|
-
[_eventType.DISMISS]: PropositionEventType.DISMISS
|
|
28
|
+
[_eventType.DISMISS]: PropositionEventType.DISMISS,
|
|
29
|
+
[_eventType.SUPPRESS]: PropositionEventType.SUPPRESS
|
|
28
30
|
};
|
|
29
31
|
const propositionEventTypeToEventTypeMapping = {
|
|
30
32
|
[PropositionEventType.DISPLAY]: _eventType.DISPLAY,
|
|
31
33
|
[PropositionEventType.INTERACT]: _eventType.INTERACT,
|
|
32
34
|
[PropositionEventType.TRIGGER]: _eventType.TRIGGER,
|
|
33
|
-
[PropositionEventType.DISMISS]: _eventType.DISMISS
|
|
35
|
+
[PropositionEventType.DISMISS]: _eventType.DISMISS,
|
|
36
|
+
[PropositionEventType.SUPPRESS]: _eventType.SUPPRESS
|
|
34
37
|
};
|
|
35
38
|
const getPropositionEventType = eventType => eventTypeToPropositionEventTypeMapping[eventType];
|
|
36
39
|
exports.getPropositionEventType = getPropositionEventType;
|
|
@@ -12,16 +12,16 @@ Object.defineProperty(exports, "audiences", {
|
|
|
12
12
|
return _index2.default;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "consent", {
|
|
16
16
|
enumerable: true,
|
|
17
17
|
get: function () {
|
|
18
|
-
return
|
|
18
|
+
return _index8.default;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "context", {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
get: function () {
|
|
24
|
-
return
|
|
24
|
+
return _index3.default;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "eventMerge", {
|
|
@@ -30,43 +30,36 @@ Object.defineProperty(exports, "eventMerge", {
|
|
|
30
30
|
return _index5.default;
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
Object.defineProperty(exports, "
|
|
33
|
+
Object.defineProperty(exports, "mediaAnalyticsBridge", {
|
|
34
34
|
enumerable: true,
|
|
35
35
|
get: function () {
|
|
36
36
|
return _index6.default;
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
Object.defineProperty(exports, "machineLearning", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return _index7.default;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
39
|
Object.defineProperty(exports, "personalization", {
|
|
46
40
|
enumerable: true,
|
|
47
41
|
get: function () {
|
|
48
|
-
return
|
|
42
|
+
return _index7.default;
|
|
49
43
|
}
|
|
50
44
|
});
|
|
51
|
-
Object.defineProperty(exports, "
|
|
45
|
+
Object.defineProperty(exports, "rulesEngine", {
|
|
52
46
|
enumerable: true,
|
|
53
47
|
get: function () {
|
|
54
|
-
return
|
|
48
|
+
return _index4.default;
|
|
55
49
|
}
|
|
56
50
|
});
|
|
57
51
|
Object.defineProperty(exports, "streamingMedia", {
|
|
58
52
|
enumerable: true,
|
|
59
53
|
get: function () {
|
|
60
|
-
return
|
|
54
|
+
return _index9.default;
|
|
61
55
|
}
|
|
62
56
|
});
|
|
63
57
|
var _index = require("../components/ActivityCollector/index.js");
|
|
64
58
|
var _index2 = require("../components/Audiences/index.js");
|
|
65
59
|
var _index3 = require("../components/Context/index.js");
|
|
66
|
-
var _index4 = require("../components/
|
|
60
|
+
var _index4 = require("../components/RulesEngine/index.js");
|
|
67
61
|
var _index5 = require("../components/EventMerge/index.js");
|
|
68
|
-
var _index6 = require("../components/
|
|
69
|
-
var _index7 = require("../components/
|
|
70
|
-
var _index8 = require("../components/
|
|
71
|
-
var _index9 = require("../components/
|
|
72
|
-
var _index10 = require("../components/StreamingMedia/index.js");
|
|
62
|
+
var _index6 = require("../components/MediaAnalyticsBridge/index.js");
|
|
63
|
+
var _index7 = require("../components/Personalization/index.js");
|
|
64
|
+
var _index8 = require("../components/Consent/index.js");
|
|
65
|
+
var _index9 = require("../components/StreamingMedia/index.js");
|
|
@@ -5,7 +5,6 @@ var _index = require("../../utils/validation/index.js");
|
|
|
5
5
|
var _index2 = require("../../utils/index.js");
|
|
6
6
|
var _domain = require("../../constants/domain.js");
|
|
7
7
|
var _edgeBasePath = require("../../constants/edgeBasePath.js");
|
|
8
|
-
var _consentStatus = require("../../constants/consentStatus.js");
|
|
9
8
|
/*
|
|
10
9
|
Copyright 2019 Adobe. All rights reserved.
|
|
11
10
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -19,7 +18,6 @@ governing permissions and limitations under the License.
|
|
|
19
18
|
*/
|
|
20
19
|
var _default = () => (0, _index.objectOf)({
|
|
21
20
|
debugEnabled: (0, _index.boolean)().default(false),
|
|
22
|
-
defaultConsent: (0, _index.enumOf)(_consentStatus.IN, _consentStatus.OUT, _consentStatus.PENDING).default(_consentStatus.IN),
|
|
23
21
|
datastreamId: (0, _index.string)().unique().required(),
|
|
24
22
|
edgeDomain: (0, _index.string)().domain().default(_domain.EDGE),
|
|
25
23
|
edgeBasePath: (0, _index.string)().nonEmpty().default(_edgeBasePath.default),
|
|
@@ -39,7 +39,7 @@ var _default = ({
|
|
|
39
39
|
deferreds.shift().reject(createDeclinedConsentError("The user declined consent."));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
const awaitInitial = () => Promise.
|
|
42
|
+
const awaitInitial = () => Promise.resolve();
|
|
43
43
|
const awaitInDefault = () => Promise.resolve();
|
|
44
44
|
const awaitIn = () => Promise.resolve();
|
|
45
45
|
const awaitOutDefault = () => Promise.reject(createDeclinedConsentError("No consent preferences have been set."));
|
|
@@ -33,7 +33,7 @@ const hookNames = [
|
|
|
33
33
|
"onRequestFailure",
|
|
34
34
|
// A user clicked on an element.
|
|
35
35
|
"onClick",
|
|
36
|
-
// Called by
|
|
36
|
+
// Called by RulesEngine when a ruleset is satisfied with a list of
|
|
37
37
|
// propositions
|
|
38
38
|
"onDecision"];
|
|
39
39
|
const createHook = (componentRegistry, hookName) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
+
var _index = require("../index.js");
|
|
4
5
|
/*
|
|
5
6
|
Copyright 2023 Adobe. All rights reserved.
|
|
6
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -37,8 +38,12 @@ var _default = ({
|
|
|
37
38
|
if (datastreamId) {
|
|
38
39
|
requestParams.datastreamIdOverride = datastreamId;
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
if (globalConfigOverrides && !(0, _index.isEmptyObject)(globalConfigOverrides)) {
|
|
42
|
+
payload.mergeConfigOverride(globalConfigOverrides);
|
|
43
|
+
}
|
|
44
|
+
if (localConfigOverridesWithoutDatastreamId && !(0, _index.isEmptyObject)(localConfigOverridesWithoutDatastreamId)) {
|
|
45
|
+
payload.mergeConfigOverride(localConfigOverridesWithoutDatastreamId);
|
|
46
|
+
}
|
|
42
47
|
return requestParams;
|
|
43
48
|
};
|
|
44
49
|
exports.default = _default;
|
package/libEs6/baseCode/index.js
CHANGED
|
@@ -33,7 +33,7 @@ governing permissions and limitations under the License.
|
|
|
33
33
|
* particularly sensitive to base code size.
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
|
-
export default (
|
|
36
|
+
export default (window, instanceNames) => {
|
|
37
37
|
instanceNames.forEach(function (instanceName) {
|
|
38
38
|
if (!window[instanceName]) {
|
|
39
39
|
// __alloyNS stores a name of each "instance", or in other words, each
|
|
@@ -58,4 +58,4 @@ export default ((window, instanceNames) => {
|
|
|
58
58
|
window[instanceName].q = [];
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
}
|
|
61
|
+
};
|