@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
package/rollup.config.js
CHANGED
package/scripts/alloyBuilder.js
CHANGED
|
@@ -15,7 +15,7 @@ import fs from "fs";
|
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { rollup } from "rollup";
|
|
17
17
|
import { Command, Option, InvalidOptionArgumentError } from "commander";
|
|
18
|
-
import
|
|
18
|
+
import { input, checkbox, select } from "@inquirer/prompts";
|
|
19
19
|
import { fileURLToPath } from "url";
|
|
20
20
|
import babel from "@babel/core";
|
|
21
21
|
import { buildConfig } from "../rollup.config.js";
|
|
@@ -101,14 +101,14 @@ const generateInputEntryFile = ({
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const build = async (argv) => {
|
|
104
|
-
const
|
|
104
|
+
const inputFile = generateInputEntryFile({
|
|
105
105
|
inputPath: `${sourceRootPath}/standalone.js`,
|
|
106
106
|
includedModules: argv.include,
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
const rollupConfig = buildConfig({
|
|
110
110
|
variant: "CUSTOM_BUILD",
|
|
111
|
-
input,
|
|
111
|
+
input: inputFile,
|
|
112
112
|
file: getOutputFilePath(argv),
|
|
113
113
|
minify: argv.minify,
|
|
114
114
|
});
|
|
@@ -116,7 +116,7 @@ const build = async (argv) => {
|
|
|
116
116
|
const bundle = await rollup(rollupConfig);
|
|
117
117
|
await bundle.write(rollupConfig.output[0]);
|
|
118
118
|
|
|
119
|
-
fs.unlinkSync(
|
|
119
|
+
fs.unlinkSync(inputFile);
|
|
120
120
|
|
|
121
121
|
console.log(
|
|
122
122
|
`🎉 Wrote ${
|
|
@@ -195,44 +195,39 @@ const getInteractiveBuildCommand = () =>
|
|
|
195
195
|
"Interactive process that will ask a series of questions and then it will generate a build.",
|
|
196
196
|
)
|
|
197
197
|
.action(async () => {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
{
|
|
201
|
-
type: "checkbox",
|
|
202
|
-
name: "include",
|
|
198
|
+
try {
|
|
199
|
+
const opts = {
|
|
200
|
+
include: await checkbox({
|
|
203
201
|
message: "What components should be included in your Alloy build?",
|
|
204
202
|
choices: getComponents().optional.map((value) => ({
|
|
205
203
|
name: camelCaseToTitleCase(value),
|
|
206
204
|
checked: true,
|
|
207
205
|
value,
|
|
208
206
|
})),
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: "list",
|
|
212
|
-
name: "minify",
|
|
207
|
+
}),
|
|
208
|
+
minify: await select({
|
|
213
209
|
message: "How would you like your JavaScript to be?",
|
|
214
210
|
choices: [
|
|
215
211
|
{ name: "Minified", value: true },
|
|
216
212
|
{ name: "Unminified", value: false },
|
|
217
213
|
],
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
type: "string",
|
|
221
|
-
name: "outputDir",
|
|
214
|
+
}),
|
|
215
|
+
outputDir: await input({
|
|
222
216
|
message: "Where would you like to save the build?",
|
|
223
217
|
default: process.cwd(),
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
218
|
+
}),
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
build(opts);
|
|
222
|
+
} catch (error) {
|
|
223
|
+
if (error.isTtyError) {
|
|
224
|
+
console.error(
|
|
225
|
+
"Prompt couldn't be rendered in the current environment",
|
|
226
|
+
);
|
|
227
|
+
} else if (error.name !== "ExitPromptError") {
|
|
228
|
+
console.error("An error occurred: ", error);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
236
231
|
});
|
|
237
232
|
|
|
238
233
|
const program = new Command();
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
/*
|
|
5
|
-
Copyright 2021 Adobe. All rights reserved.
|
|
6
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
10
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
11
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
12
|
-
governing permissions and limitations under the License.
|
|
13
|
-
*/
|
|
14
|
-
var _default = ({
|
|
15
|
-
response
|
|
16
|
-
}) => {
|
|
17
|
-
return {
|
|
18
|
-
inferences: response.getPayloadsByType("rtml:inferences")
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2021 Adobe. All rights reserved.
|
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import processResponse from "./processResponse.js";
|
|
14
|
-
const createMachineLearning = () => {
|
|
15
|
-
return {
|
|
16
|
-
lifecycle: {
|
|
17
|
-
onResponse: processResponse
|
|
18
|
-
},
|
|
19
|
-
commands: {}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
createMachineLearning.namespace = "MachineLearning";
|
|
23
|
-
export default createMachineLearning;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createGetInstance.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/libEs5/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/createMediaHelper.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/libEs5/components/{DecisioningEngine → RulesEngine}/createEvaluateRulesetsCommand.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/libEs6/components/{LegacyMediaAnalytics → MediaAnalyticsBridge}/constants/constants.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|