@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
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
import { noop } from "../../utils/index.js";
|
|
13
13
|
import validateSessionOptions from "./validateMediaSessionOptions.js";
|
|
14
14
|
import validateMediaEventOptions from "./validateMediaEventOptions.js";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
config,
|
|
17
17
|
trackMediaEvent,
|
|
18
18
|
trackMediaSession,
|
|
@@ -66,4 +66,4 @@ export default (({
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
}
|
|
69
|
+
};
|
|
@@ -22,7 +22,7 @@ const getContentState = (eventType, sessionContentState) => {
|
|
|
22
22
|
}
|
|
23
23
|
return sessionContentState;
|
|
24
24
|
};
|
|
25
|
-
export default (
|
|
25
|
+
export default ({
|
|
26
26
|
mediaEventManager,
|
|
27
27
|
mediaSessionCacheManager,
|
|
28
28
|
config
|
|
@@ -90,4 +90,4 @@ export default (({
|
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
92
|
return options => sendMediaEvent(options);
|
|
93
|
-
}
|
|
93
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import PlaybackState from "./constants/playbackState.js";
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
config,
|
|
15
15
|
mediaEventManager,
|
|
16
16
|
mediaSessionCacheManager,
|
|
@@ -22,7 +22,8 @@ export default (({
|
|
|
22
22
|
}
|
|
23
23
|
const {
|
|
24
24
|
playerId,
|
|
25
|
-
getPlayerDetails
|
|
25
|
+
getPlayerDetails,
|
|
26
|
+
edgeConfigOverrides
|
|
26
27
|
} = options;
|
|
27
28
|
const event = mediaEventManager.createMediaSession(options);
|
|
28
29
|
mediaEventManager.augmentMediaEvent({
|
|
@@ -36,7 +37,8 @@ export default (({
|
|
|
36
37
|
playerId,
|
|
37
38
|
getPlayerDetails,
|
|
38
39
|
legacy
|
|
39
|
-
}
|
|
40
|
+
},
|
|
41
|
+
edgeConfigOverrides
|
|
40
42
|
});
|
|
41
43
|
mediaSessionCacheManager.storeSession({
|
|
42
44
|
playerId,
|
|
@@ -48,4 +50,4 @@ export default (({
|
|
|
48
50
|
});
|
|
49
51
|
return sessionPromise;
|
|
50
52
|
};
|
|
51
|
-
}
|
|
53
|
+
};
|
|
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
import { anyOf, anything, enumOf, number, objectOf, string } from "../../utils/validation/index.js";
|
|
13
13
|
import EventTypes from "./constants/eventTypes.js";
|
|
14
|
-
export default (
|
|
14
|
+
export default ({
|
|
15
15
|
options
|
|
16
16
|
}) => {
|
|
17
17
|
const validator = anyOf([objectOf({
|
|
@@ -30,4 +30,4 @@ export default (({
|
|
|
30
30
|
}).required()
|
|
31
31
|
}).required()], "Error validating the sendMediaEvent command options.");
|
|
32
32
|
return validator(options);
|
|
33
|
-
}
|
|
33
|
+
};
|
|
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { anyOf, anything, callback, number, objectOf, string } from "../../utils/validation/index.js";
|
|
14
|
-
export default (
|
|
14
|
+
export default ({
|
|
15
15
|
options
|
|
16
16
|
}) => {
|
|
17
17
|
const sessionValidator = anyOf([objectOf({
|
|
@@ -21,14 +21,16 @@ export default (({
|
|
|
21
21
|
mediaCollection: objectOf({
|
|
22
22
|
sessionDetails: objectOf(anything()).required()
|
|
23
23
|
})
|
|
24
|
-
})
|
|
24
|
+
}),
|
|
25
|
+
edgeConfigOverrides: objectOf({})
|
|
25
26
|
}).required(), objectOf({
|
|
26
27
|
xdm: objectOf({
|
|
27
28
|
mediaCollection: objectOf({
|
|
28
29
|
playhead: number().required(),
|
|
29
30
|
sessionDetails: objectOf(anything()).required()
|
|
30
31
|
})
|
|
31
|
-
})
|
|
32
|
+
}),
|
|
33
|
+
edgeConfigOverrides: objectOf({})
|
|
32
34
|
}).required()], "Error validating the createMediaSession command options.");
|
|
33
35
|
return sessionValidator(options);
|
|
34
|
-
}
|
|
36
|
+
};
|
|
@@ -14,4 +14,5 @@ export const DISPLAY = "decisioning.propositionDisplay";
|
|
|
14
14
|
export const INTERACT = "decisioning.propositionInteract";
|
|
15
15
|
export const TRIGGER = "decisioning.propositionTrigger";
|
|
16
16
|
export const DISMISS = "decisioning.propositionDismiss";
|
|
17
|
+
export const SUPPRESS = "decisioning.propositionSuppressDisplay";
|
|
17
18
|
export const EVENT_TYPE_TRUE = 1;
|
|
@@ -10,24 +10,27 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { DISPLAY, INTERACT, TRIGGER, DISMISS } from "./eventType.js";
|
|
13
|
+
import { DISPLAY, INTERACT, TRIGGER, DISMISS, SUPPRESS } from "./eventType.js";
|
|
14
14
|
export const PropositionEventType = {
|
|
15
15
|
DISPLAY: "display",
|
|
16
16
|
INTERACT: "interact",
|
|
17
17
|
TRIGGER: "trigger",
|
|
18
|
-
DISMISS: "dismiss"
|
|
18
|
+
DISMISS: "dismiss",
|
|
19
|
+
SUPPRESS: "suppressDisplay"
|
|
19
20
|
};
|
|
20
21
|
const eventTypeToPropositionEventTypeMapping = {
|
|
21
22
|
[DISPLAY]: PropositionEventType.DISPLAY,
|
|
22
23
|
[INTERACT]: PropositionEventType.INTERACT,
|
|
23
24
|
[TRIGGER]: PropositionEventType.TRIGGER,
|
|
24
|
-
[DISMISS]: PropositionEventType.DISMISS
|
|
25
|
+
[DISMISS]: PropositionEventType.DISMISS,
|
|
26
|
+
[SUPPRESS]: PropositionEventType.SUPPRESS
|
|
25
27
|
};
|
|
26
28
|
const propositionEventTypeToEventTypeMapping = {
|
|
27
29
|
[PropositionEventType.DISPLAY]: DISPLAY,
|
|
28
30
|
[PropositionEventType.INTERACT]: INTERACT,
|
|
29
31
|
[PropositionEventType.TRIGGER]: TRIGGER,
|
|
30
|
-
[PropositionEventType.DISMISS]: DISMISS
|
|
32
|
+
[PropositionEventType.DISMISS]: DISMISS,
|
|
33
|
+
[PropositionEventType.SUPPRESS]: SUPPRESS
|
|
31
34
|
};
|
|
32
35
|
export const getPropositionEventType = eventType => eventTypeToPropositionEventTypeMapping[eventType];
|
|
33
36
|
export const getEventType = propositionEventType => propositionEventTypeToEventTypeMapping[propositionEventType];
|
|
@@ -64,7 +64,7 @@ const wrapLoggerInQueue = logger => {
|
|
|
64
64
|
});
|
|
65
65
|
return queuedLogger;
|
|
66
66
|
};
|
|
67
|
-
export default (
|
|
67
|
+
export default ({
|
|
68
68
|
options,
|
|
69
69
|
componentCreators,
|
|
70
70
|
coreConfigValidators,
|
|
@@ -94,4 +94,4 @@ export default (({
|
|
|
94
94
|
config
|
|
95
95
|
});
|
|
96
96
|
return config;
|
|
97
|
-
}
|
|
97
|
+
};
|
|
@@ -17,10 +17,9 @@ governing permissions and limitations under the License.
|
|
|
17
17
|
export { default as activityCollector } from "../components/ActivityCollector/index.js";
|
|
18
18
|
export { default as audiences } from "../components/Audiences/index.js";
|
|
19
19
|
export { default as context } from "../components/Context/index.js";
|
|
20
|
-
export { default as
|
|
20
|
+
export { default as rulesEngine } from "../components/RulesEngine/index.js";
|
|
21
21
|
export { default as eventMerge } from "../components/EventMerge/index.js";
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as machineLearning } from "../components/MachineLearning/index.js";
|
|
22
|
+
export { default as mediaAnalyticsBridge } from "../components/MediaAnalyticsBridge/index.js";
|
|
24
23
|
export { default as personalization } from "../components/Personalization/index.js";
|
|
25
|
-
export { default as
|
|
24
|
+
export { default as consent } from "../components/Consent/index.js";
|
|
26
25
|
export { default as streamingMedia } from "../components/StreamingMedia/index.js";
|
|
@@ -10,18 +10,16 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { boolean, string, callback,
|
|
13
|
+
import { boolean, string, callback, objectOf } from "../../utils/validation/index.js";
|
|
14
14
|
import { noop, validateConfigOverride } from "../../utils/index.js";
|
|
15
15
|
import { EDGE as EDGE_DOMAIN } from "../../constants/domain.js";
|
|
16
16
|
import EDGE_BASE_PATH from "../../constants/edgeBasePath.js";
|
|
17
|
-
|
|
18
|
-
export default (() => objectOf({
|
|
17
|
+
export default () => objectOf({
|
|
19
18
|
debugEnabled: boolean().default(false),
|
|
20
|
-
defaultConsent: enumOf(IN, OUT, PENDING).default(IN),
|
|
21
19
|
datastreamId: string().unique().required(),
|
|
22
20
|
edgeDomain: string().domain().default(EDGE_DOMAIN),
|
|
23
21
|
edgeBasePath: string().nonEmpty().default(EDGE_BASE_PATH),
|
|
24
22
|
orgId: string().unique().required(),
|
|
25
23
|
onBeforeEventSend: callback().default(noop),
|
|
26
24
|
edgeConfigOverrides: validateConfigOverride
|
|
27
|
-
}).renamed("edgeConfigId", string().unique(), "datastreamId")
|
|
25
|
+
}).renamed("edgeConfigId", string().unique(), "datastreamId");
|
|
@@ -13,7 +13,7 @@ governing permissions and limitations under the License.
|
|
|
13
13
|
import { IN, OUT, PENDING } from "../../constants/consentStatus.js";
|
|
14
14
|
import { GENERAL } from "../../constants/consentPurpose.js";
|
|
15
15
|
import { CONSENT_SOURCE_DEFAULT, CONSENT_SOURCE_INITIAL, CONSENT_SOURCE_NEW } from "./createConsentStateMachine.js";
|
|
16
|
-
export default (
|
|
16
|
+
export default ({
|
|
17
17
|
generalConsentState,
|
|
18
18
|
logger
|
|
19
19
|
}) => {
|
|
@@ -57,4 +57,4 @@ export default (({
|
|
|
57
57
|
return generalConsentState.current();
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
}
|
|
60
|
+
};
|
|
@@ -22,7 +22,7 @@ const createDeclinedConsentError = errorMessage => {
|
|
|
22
22
|
error.message = errorMessage;
|
|
23
23
|
return error;
|
|
24
24
|
};
|
|
25
|
-
export default (
|
|
25
|
+
export default ({
|
|
26
26
|
logger
|
|
27
27
|
}) => {
|
|
28
28
|
const deferreds = [];
|
|
@@ -36,7 +36,7 @@ export default (({
|
|
|
36
36
|
deferreds.shift().reject(createDeclinedConsentError("The user declined consent."));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
const awaitInitial = () => Promise.
|
|
39
|
+
const awaitInitial = () => Promise.resolve();
|
|
40
40
|
const awaitInDefault = () => Promise.resolve();
|
|
41
41
|
const awaitIn = () => Promise.resolve();
|
|
42
42
|
const awaitOutDefault = () => Promise.reject(createDeclinedConsentError("No consent preferences have been set."));
|
|
@@ -122,4 +122,4 @@ export default (({
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
}
|
|
125
|
+
};
|
|
@@ -35,7 +35,7 @@ const wrapForErrorHandling = (fn, stackMessage) => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// TO-DOCUMENT: All public commands and their signatures.
|
|
38
|
-
export default (
|
|
38
|
+
export default () => {
|
|
39
39
|
const componentsByNamespace = {};
|
|
40
40
|
const commandsByName = {};
|
|
41
41
|
const lifecycleCallbacksByName = {};
|
|
@@ -80,4 +80,4 @@ export default (() => {
|
|
|
80
80
|
return Object.keys(componentsByNamespace);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
}
|
|
83
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
const STATE_STORE_HANDLE_TYPE = "state:store";
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
cookieJar,
|
|
15
15
|
shouldTransferCookie,
|
|
16
16
|
apexDomain,
|
|
@@ -75,4 +75,4 @@ export default (({
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
}
|
|
78
|
+
};
|
|
@@ -22,7 +22,7 @@ const getXdmPropositions = xdm => {
|
|
|
22
22
|
// eslint-disable-next-line no-underscore-dangle
|
|
23
23
|
xdm._experience.decisioning.propositions : [];
|
|
24
24
|
};
|
|
25
|
-
export default (
|
|
25
|
+
export default () => {
|
|
26
26
|
const content = {};
|
|
27
27
|
let userXdm;
|
|
28
28
|
let userData;
|
|
@@ -158,4 +158,4 @@ export default (() => {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
return event;
|
|
161
|
-
}
|
|
161
|
+
};
|
|
@@ -14,7 +14,7 @@ import PAGE_WIDE_SCOPE from "../constants/pageWideScope.js";
|
|
|
14
14
|
import { createCallbackAggregator, noop } from "../utils/index.js";
|
|
15
15
|
import { createRequestParams } from "../utils/request/index.js";
|
|
16
16
|
const EVENT_CANCELLATION_MESSAGE = "Event was canceled because the onBeforeEventSend callback returned false.";
|
|
17
|
-
export default (
|
|
17
|
+
export default ({
|
|
18
18
|
config,
|
|
19
19
|
logger,
|
|
20
20
|
lifecycle,
|
|
@@ -132,4 +132,4 @@ export default (({
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
}
|
|
135
|
+
};
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default
|
|
13
|
+
export default executeCommand => {
|
|
14
14
|
return ([resolve, reject, [commandName, options]]) => {
|
|
15
15
|
executeCommand(commandName, options).then(resolve, reject);
|
|
16
16
|
};
|
|
17
|
-
}
|
|
17
|
+
};
|
|
@@ -30,7 +30,7 @@ const hookNames = [
|
|
|
30
30
|
"onRequestFailure",
|
|
31
31
|
// A user clicked on an element.
|
|
32
32
|
"onClick",
|
|
33
|
-
// Called by
|
|
33
|
+
// Called by RulesEngine when a ruleset is satisfied with a list of
|
|
34
34
|
// propositions
|
|
35
35
|
"onDecision"];
|
|
36
36
|
const createHook = (componentRegistry, hookName) => {
|
|
@@ -57,9 +57,9 @@ const guardHook = fn => {
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
export default
|
|
60
|
+
export default componentRegistry => {
|
|
61
61
|
return hookNames.reduce((memo, hookName) => {
|
|
62
62
|
memo[hookName] = guardHook(createHook(componentRegistry, hookName));
|
|
63
63
|
return memo;
|
|
64
64
|
}, {});
|
|
65
|
-
}
|
|
65
|
+
};
|
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import { queryString, stringToBoolean } from "../utils/index.js";
|
|
14
14
|
import debugQueryParam from "../constants/debugQueryParam.js";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
console,
|
|
17
17
|
locationSearch,
|
|
18
18
|
createLogger,
|
|
@@ -65,4 +65,4 @@ export default (({
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
}
|
|
68
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
getDebugEnabled,
|
|
15
15
|
console,
|
|
16
16
|
getMonitors,
|
|
@@ -111,4 +111,4 @@ export default (({
|
|
|
111
111
|
*/
|
|
112
112
|
error: log.bind(null, "error")
|
|
113
113
|
};
|
|
114
|
-
}
|
|
114
|
+
};
|
|
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
export default
|
|
12
|
+
export default onRequestFailureCallbackAggregator => {
|
|
13
13
|
return error => {
|
|
14
14
|
// Regardless of whether the network call failed, an unexpected status
|
|
15
15
|
// code was returned, or the response body was malformed, we want to call
|
|
@@ -21,4 +21,4 @@ export default (onRequestFailureCallbackAggregator => {
|
|
|
21
21
|
error
|
|
22
22
|
}).then(throwError, throwError);
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
};
|
|
@@ -13,7 +13,7 @@ import { createCallbackAggregator, noop } from "../../utils/index.js";
|
|
|
13
13
|
import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
|
|
14
14
|
import handleRequestFailure from "./handleRequestFailure.js";
|
|
15
15
|
const HTTP_STATUS_OK = 200;
|
|
16
|
-
export default (
|
|
16
|
+
export default ({
|
|
17
17
|
cookieTransfer,
|
|
18
18
|
lifecycle,
|
|
19
19
|
createResponse,
|
|
@@ -55,4 +55,4 @@ export default (({
|
|
|
55
55
|
}).then(mergeLifecycleResponses);
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
}
|
|
58
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
logger
|
|
15
15
|
}) => adobeEdgeHeader => {
|
|
16
16
|
if (adobeEdgeHeader) {
|
|
@@ -30,4 +30,4 @@ export default (({
|
|
|
30
30
|
logger.warn(`Invalid adobe edge: "${adobeEdgeHeader}"`);
|
|
31
31
|
}
|
|
32
32
|
return {};
|
|
33
|
-
}
|
|
33
|
+
};
|
|
@@ -13,7 +13,7 @@ governing permissions and limitations under the License.
|
|
|
13
13
|
import { getNamespacedCookieName } from "../../utils/index.js";
|
|
14
14
|
import { CLUSTER } from "../../constants/cookieNameKey.js";
|
|
15
15
|
import { MBOX_EDGE_CLUSTER } from "../../constants/legacyCookies.js";
|
|
16
|
-
export default (
|
|
16
|
+
export default ({
|
|
17
17
|
orgId,
|
|
18
18
|
cookieJar
|
|
19
19
|
}) => {
|
|
@@ -29,4 +29,4 @@ export default (({
|
|
|
29
29
|
return () => {
|
|
30
30
|
return fromClusterCookie() || fromTarget();
|
|
31
31
|
};
|
|
32
|
-
}
|
|
32
|
+
};
|
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import { NO_CONTENT } from "../../constants/httpStatusCode.js";
|
|
14
14
|
const MESSAGE_PREFIX = "The server responded with a";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
logger
|
|
17
17
|
}) => {
|
|
18
18
|
return networkResponse => {
|
|
@@ -39,4 +39,4 @@ export default (({
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
}
|
|
42
|
+
};
|
|
@@ -15,7 +15,7 @@ import apiVersion from "../../constants/apiVersion.js";
|
|
|
15
15
|
import { createCallbackAggregator, noop } from "../../utils/index.js";
|
|
16
16
|
import mergeLifecycleResponses from "./mergeLifecycleResponses.js";
|
|
17
17
|
import handleRequestFailure from "./handleRequestFailure.js";
|
|
18
|
-
export default (
|
|
18
|
+
export default ({
|
|
19
19
|
config,
|
|
20
20
|
lifecycle,
|
|
21
21
|
cookieTransfer,
|
|
@@ -97,4 +97,4 @@ export default (({
|
|
|
97
97
|
}).then(mergeLifecycleResponses);
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
}
|
|
100
|
+
};
|
|
@@ -11,11 +11,11 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { assignConcatArrayValues } from "../../utils/index.js";
|
|
14
|
-
export default
|
|
14
|
+
export default returnValues => {
|
|
15
15
|
// Merges all returned objects from all `onResponse` callbacks into
|
|
16
16
|
// a single object that can later be returned to the customer.
|
|
17
17
|
const lifecycleOnResponseReturnValues = returnValues.shift() || [];
|
|
18
18
|
const consumerOnResponseReturnValues = returnValues.shift() || [];
|
|
19
19
|
const lifecycleOnBeforeRequestReturnValues = returnValues;
|
|
20
20
|
return assignConcatArrayValues({}, ...lifecycleOnResponseReturnValues, ...consumerOnResponseReturnValues, ...lifecycleOnBeforeRequestReturnValues);
|
|
21
|
-
}
|
|
21
|
+
};
|
package/libEs6/core/index.js
CHANGED
|
@@ -209,7 +209,7 @@ export const createExecuteCommand = ({
|
|
|
209
209
|
});
|
|
210
210
|
return executeCommand;
|
|
211
211
|
};
|
|
212
|
-
export default (
|
|
212
|
+
export default ({
|
|
213
213
|
components
|
|
214
214
|
}) => {
|
|
215
215
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -238,4 +238,4 @@ export default (({
|
|
|
238
238
|
queue.forEach(instance);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
}
|
|
241
|
+
};
|
|
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { stackError } from "../utils/index.js";
|
|
14
|
-
export default (
|
|
14
|
+
export default ({
|
|
15
15
|
componentCreators,
|
|
16
16
|
lifecycle,
|
|
17
17
|
componentRegistry,
|
|
@@ -37,4 +37,4 @@ export default (({
|
|
|
37
37
|
return lifecycle.onComponentsRegistered({
|
|
38
38
|
lifecycle
|
|
39
39
|
}).then(() => componentRegistry);
|
|
40
|
-
}
|
|
40
|
+
};
|
|
@@ -16,7 +16,7 @@ import { ADOBE_EDGE } from "../constants/httpHeaderNames.js";
|
|
|
16
16
|
* helper methods.
|
|
17
17
|
* @returns Response
|
|
18
18
|
*/
|
|
19
|
-
export default (
|
|
19
|
+
export default ({
|
|
20
20
|
extractEdgeInfo
|
|
21
21
|
}) => ({
|
|
22
22
|
content = {},
|
|
@@ -65,4 +65,4 @@ export default (({
|
|
|
65
65
|
return content;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
}
|
|
68
|
+
};
|
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import { isFunction, isObject } from "../utils/index.js";
|
|
14
14
|
import { CONFIGURE, SET_DEBUG } from "../constants/coreCommands.js";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
logger,
|
|
17
17
|
configureCommand,
|
|
18
18
|
setDebugCommand,
|
|
@@ -97,4 +97,4 @@ export default (({
|
|
|
97
97
|
return result;
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
}
|
|
100
|
+
};
|
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import { toError, updateErrorMessage } from "../utils/index.js";
|
|
14
14
|
import { DECLINED_CONSENT_ERROR_CODE } from "./consent/createConsentStateMachine.js";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
errorPrefix,
|
|
17
17
|
logger
|
|
18
18
|
}) => (error, operation) => {
|
|
@@ -30,4 +30,4 @@ export default (({
|
|
|
30
30
|
message: `${errorPrefix} ${err.message}`
|
|
31
31
|
});
|
|
32
32
|
throw err;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
@@ -12,7 +12,7 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import { isNamespacedCookieName } from "../utils/index.js";
|
|
14
14
|
import { AT_QA_MODE, MBOX } from "../constants/legacyCookies.js";
|
|
15
|
-
export default (
|
|
15
|
+
export default ({
|
|
16
16
|
orgId,
|
|
17
17
|
targetMigrationEnabled
|
|
18
18
|
}) => name => {
|
|
@@ -22,4 +22,4 @@ export default (({
|
|
|
22
22
|
// cookie names (so that the server can handle migrating
|
|
23
23
|
// identities on websites previously using Visitor.js)
|
|
24
24
|
return isNamespacedCookieName(orgId, name) || name === AT_QA_MODE || targetMigrationEnabled && name === MBOX;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
@@ -54,7 +54,7 @@ const getDelayFromHeader = response => {
|
|
|
54
54
|
// practices outlined in https://docs.microsoft.com/en-us/azure/architecture/best-practices/transient-faults:
|
|
55
55
|
// * Incremental retry
|
|
56
56
|
// * Random interval
|
|
57
|
-
export default (
|
|
57
|
+
export default ({
|
|
58
58
|
response,
|
|
59
59
|
retriesAttempted
|
|
60
60
|
}) => {
|
|
@@ -69,4 +69,4 @@ export default (({
|
|
|
69
69
|
delayInMillis = calculateRetryDelay(retriesAttempted);
|
|
70
70
|
}
|
|
71
71
|
return delayInMillis;
|
|
72
|
-
}
|
|
72
|
+
};
|
|
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { stackError } from "../../utils/index.js";
|
|
14
|
-
export default (
|
|
14
|
+
export default ({
|
|
15
15
|
logger,
|
|
16
16
|
sendFetchRequest,
|
|
17
17
|
sendBeaconRequest,
|
|
@@ -93,4 +93,4 @@ export default (({
|
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
}
|
|
96
|
+
};
|
|
@@ -16,9 +16,9 @@ const RETRYABLE_STATUS_CODES = [TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE, BAD_GATE
|
|
|
16
16
|
|
|
17
17
|
// These rules are in accordance with
|
|
18
18
|
// https://git.corp.adobe.com/pages/experience-edge/konductor/#/apis/errors?id=handling-4xx-and-5xx-responses
|
|
19
|
-
export default (
|
|
19
|
+
export default ({
|
|
20
20
|
response,
|
|
21
21
|
retriesAttempted
|
|
22
22
|
}) => {
|
|
23
23
|
return retriesAttempted < MAX_RETRIES && RETRYABLE_STATUS_CODES.includes(response.statusCode);
|
|
24
|
-
}
|
|
24
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
sendBeacon,
|
|
15
15
|
sendFetchRequest,
|
|
16
16
|
logger
|
|
@@ -35,4 +35,4 @@ export default (({
|
|
|
35
35
|
body: ""
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
}
|
|
38
|
+
};
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export default (
|
|
13
|
+
export default ({
|
|
14
14
|
fetch
|
|
15
15
|
}) => {
|
|
16
16
|
return (url, body) => {
|
|
@@ -37,4 +37,4 @@ export default (({
|
|
|
37
37
|
}));
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
}
|
|
40
|
+
};
|