@adobe/alloy 2.20.0-alpha.1 → 2.20.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +83 -65
- package/libEs5/baseCode/index.js +0 -62
- package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +0 -54
- package/libEs5/components/ActivityCollector/configValidators.js +0 -24
- package/libEs5/components/ActivityCollector/createGetLinkDetails.js +0 -69
- package/libEs5/components/ActivityCollector/createLinkClick.js +0 -39
- package/libEs5/components/ActivityCollector/getLinkName.js +0 -140
- package/libEs5/components/ActivityCollector/getLinkRegion.js +0 -62
- package/libEs5/components/ActivityCollector/index.js +0 -79
- package/libEs5/components/ActivityCollector/utils.js +0 -114
- package/libEs5/components/Audiences/index.js +0 -50
- package/libEs5/components/Audiences/injectProcessDestinations.js +0 -65
- package/libEs5/components/Audiences/injectProcessResponse.js +0 -39
- package/libEs5/components/Context/createComponent.js +0 -40
- package/libEs5/components/Context/implementationDetails.js +0 -28
- package/libEs5/components/Context/index.js +0 -57
- package/libEs5/components/Context/injectDevice.js +0 -67
- package/libEs5/components/Context/injectEnvironment.js +0 -41
- package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +0 -59
- package/libEs5/components/Context/injectPlaceContext.js +0 -33
- package/libEs5/components/Context/injectTimestamp.js +0 -24
- package/libEs5/components/Context/injectWeb.js +0 -31
- package/libEs5/components/DataCollector/index.js +0 -111
- package/libEs5/components/DataCollector/validateApplyResponse.js +0 -36
- package/libEs5/components/DataCollector/validateUserEventOptions.js +0 -51
- package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -32
- package/libEs5/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -25
- package/libEs5/components/DecisioningEngine/constants.js +0 -31
- package/libEs5/components/DecisioningEngine/createApplyResponse.js +0 -36
- package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +0 -29
- package/libEs5/components/DecisioningEngine/createContextProvider.js +0 -93
- package/libEs5/components/DecisioningEngine/createDecisionHistory.js +0 -28
- package/libEs5/components/DecisioningEngine/createDecisionProvider.js +0 -51
- package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +0 -80
- package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +0 -49
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +0 -130
- package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +0 -46
- package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +0 -87
- package/libEs5/components/DecisioningEngine/index.js +0 -119
- package/libEs5/components/DecisioningEngine/utils.js +0 -90
- package/libEs5/components/EventMerge/createComponent.js +0 -25
- package/libEs5/components/EventMerge/createEventMergeId.js +0 -21
- package/libEs5/components/EventMerge/index.js +0 -25
- package/libEs5/components/Identity/addEcidQueryToPayload.js +0 -23
- package/libEs5/components/Identity/addEcidToPayload.js +0 -21
- package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -26
- package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -46
- package/libEs5/components/Identity/configValidators.js +0 -22
- package/libEs5/components/Identity/constants/authState.js +0 -21
- package/libEs5/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -16
- package/libEs5/components/Identity/createComponent.js +0 -98
- package/libEs5/components/Identity/createLegacyIdentity.js +0 -70
- package/libEs5/components/Identity/getEcidFromResponse.js +0 -24
- package/libEs5/components/Identity/getIdentity/createGetIdentity.js +0 -36
- package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +0 -30
- package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -30
- package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +0 -28
- package/libEs5/components/Identity/index.js +0 -129
- package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +0 -32
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -65
- package/libEs5/components/Identity/injectAwaitIdentityCookie.js +0 -57
- package/libEs5/components/Identity/injectEnsureSingleIdentity.js +0 -98
- package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +0 -21
- package/libEs5/components/Identity/injectProcessIdSyncs.js +0 -42
- package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -34
- package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +0 -35
- package/libEs5/components/Identity/visitorService/getVisitor.js +0 -20
- package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -50
- package/libEs5/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -272
- package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +0 -188
- package/libEs5/components/LegacyMediaAnalytics/index.js +0 -48
- package/libEs5/components/LegacyMediaAnalytics/media/constants.js +0 -154
- package/libEs5/components/LegacyMediaAnalytics/media/mediaKeysToXdmConverter.js +0 -51
- package/libEs5/components/LibraryInfo/index.js +0 -64
- package/libEs5/components/MachineLearning/index.js +0 -27
- package/libEs5/components/MachineLearning/processResponse.js +0 -20
- package/libEs5/components/MediaCollection/constants/eventTypes.js +0 -25
- package/libEs5/components/MediaCollection/createHeartbeatEngine.js +0 -63
- package/libEs5/components/MediaCollection/createMediaEventManager.js +0 -109
- package/libEs5/components/MediaCollection/createMediaRequest.js +0 -30
- package/libEs5/components/MediaCollection/createMediaSessionCacheManager.js +0 -62
- package/libEs5/components/MediaCollection/createUpdateMediaSessionState.js +0 -31
- package/libEs5/components/MediaCollection/index.js +0 -165
- package/libEs5/components/MediaCollection/validateMediaEventOptions.js +0 -35
- package/libEs5/components/MediaCollection/validateMediaSessionOptions.js +0 -36
- package/libEs5/components/Personalization/constants/loggerMessage.js +0 -18
- package/libEs5/components/Personalization/constants/scopeType.js +0 -21
- package/libEs5/components/Personalization/constants/surface.js +0 -23
- package/libEs5/components/Personalization/createActionsProvider.js +0 -72
- package/libEs5/components/Personalization/createApplyPropositions.js +0 -113
- package/libEs5/components/Personalization/createClickStorage.js +0 -62
- package/libEs5/components/Personalization/createCollect.js +0 -54
- package/libEs5/components/Personalization/createComponent.js +0 -142
- package/libEs5/components/Personalization/createFetchDataHandler.js +0 -84
- package/libEs5/components/Personalization/createGetPageLocation.js +0 -21
- package/libEs5/components/Personalization/createNotificationHandler.js +0 -33
- package/libEs5/components/Personalization/createOnClickHandler.js +0 -52
- package/libEs5/components/Personalization/createOnDecisionHandler.js +0 -44
- package/libEs5/components/Personalization/createPersonalizationDetails.js +0 -105
- package/libEs5/components/Personalization/createPreprocessors.js +0 -21
- package/libEs5/components/Personalization/createSetTargetMigration.js +0 -29
- package/libEs5/components/Personalization/createViewCacheManager.js +0 -91
- package/libEs5/components/Personalization/createViewChangeHandler.js +0 -46
- package/libEs5/components/Personalization/dom-actions/action.js +0 -121
- package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -42
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +0 -33
- package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +0 -109
- package/libEs5/components/Personalization/dom-actions/createPreprocess.js +0 -26
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +0 -30
- package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +0 -22
- package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +0 -23
- package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +0 -23
- package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +0 -25
- package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +0 -37
- package/libEs5/components/Personalization/dom-actions/dom/getParent.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +0 -26
- package/libEs5/components/Personalization/dom-actions/dom/index.js +0 -100
- package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +0 -26
- package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +0 -25
- package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -38
- package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -107
- package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +0 -18
- package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +0 -24
- package/libEs5/components/Personalization/dom-actions/images.js +0 -39
- package/libEs5/components/Personalization/dom-actions/index.js +0 -9
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +0 -36
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +0 -32
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +0 -32
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +0 -46
- package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +0 -33
- package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -37
- package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +0 -55
- package/libEs5/components/Personalization/dom-actions/replaceHtml.js +0 -21
- package/libEs5/components/Personalization/dom-actions/scripts.js +0 -92
- package/libEs5/components/Personalization/dom-actions/setAttributes.js +0 -21
- package/libEs5/components/Personalization/dom-actions/setHtml.js +0 -28
- package/libEs5/components/Personalization/dom-actions/setStyles.js +0 -26
- package/libEs5/components/Personalization/dom-actions/setText.js +0 -18
- package/libEs5/components/Personalization/dom-actions/swapImage.js +0 -32
- package/libEs5/components/Personalization/event.js +0 -48
- package/libEs5/components/Personalization/flicker/index.js +0 -87
- package/libEs5/components/Personalization/handlers/createProcessDomAction.js +0 -69
- package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +0 -44
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +0 -76
- package/libEs5/components/Personalization/handlers/createProcessPropositions.js +0 -195
- package/libEs5/components/Personalization/handlers/createProcessRedirect.js +0 -46
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +0 -116
- package/libEs5/components/Personalization/handlers/processDefaultContent.js +0 -21
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -288
- package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -23
- package/libEs5/components/Personalization/in-app-message-actions/utils.js +0 -53
- package/libEs5/components/Personalization/index.js +0 -153
- package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -25
- package/libEs5/components/Personalization/utils/createAsyncArray.js +0 -39
- package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +0 -19
- package/libEs5/components/Personalization/utils/surfaceUtils.js +0 -102
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +0 -36
- package/libEs5/components/Privacy/computeConsentHash.js +0 -34
- package/libEs5/components/Privacy/createComponent.js +0 -86
- package/libEs5/components/Privacy/createConsentHashStore.js +0 -60
- package/libEs5/components/Privacy/createConsentRequest.js +0 -30
- package/libEs5/components/Privacy/createConsentRequestPayload.js +0 -34
- package/libEs5/components/Privacy/createStoredConsent.js +0 -32
- package/libEs5/components/Privacy/index.js +0 -64
- package/libEs5/components/Privacy/injectSendSetConsentRequest.js +0 -48
- package/libEs5/components/Privacy/parseConsentCookie.js +0 -38
- package/libEs5/components/Privacy/validateSetConsentOptions.js +0 -22
- package/libEs5/constants/apiVersion.js +0 -16
- package/libEs5/constants/browser.js +0 -29
- package/libEs5/constants/consentPurpose.js +0 -17
- package/libEs5/constants/consentStatus.js +0 -21
- package/libEs5/constants/contentType.js +0 -18
- package/libEs5/constants/cookieNameKey.js +0 -21
- package/libEs5/constants/cookieNamePrefix.js +0 -17
- package/libEs5/constants/coreCommands.js +0 -19
- package/libEs5/constants/debugQueryParam.js +0 -16
- package/libEs5/constants/decisionProvider.js +0 -16
- package/libEs5/constants/domain.js +0 -19
- package/libEs5/constants/ecidNamespace.js +0 -16
- package/libEs5/constants/edgeBasePath.js +0 -16
- package/libEs5/constants/elementAttribute.js +0 -17
- package/libEs5/constants/eventType.js +0 -25
- package/libEs5/constants/handle.js +0 -16
- package/libEs5/constants/highEntropyUserAgentClientHints.js +0 -16
- package/libEs5/constants/httpHeaderNames.js +0 -19
- package/libEs5/constants/httpStatusCode.js +0 -25
- package/libEs5/constants/identityMapAuthenticatedState.js +0 -20
- package/libEs5/constants/legacyCookies.js +0 -21
- package/libEs5/constants/libraryName.js +0 -16
- package/libEs5/constants/libraryVersion.js +0 -18
- package/libEs5/constants/namespace.js +0 -16
- package/libEs5/constants/pageWideScope.js +0 -16
- package/libEs5/constants/propositionEventType.js +0 -33
- package/libEs5/constants/queryStringIdentityParam.js +0 -16
- package/libEs5/constants/schema.js +0 -35
- package/libEs5/constants/shadowSeparator.js +0 -16
- package/libEs5/constants/tagName.js +0 -29
- package/libEs5/core/buildAndValidateConfig.js +0 -113
- package/libEs5/core/componentCreators.js +0 -34
- package/libEs5/core/config/createConfig.js +0 -21
- package/libEs5/core/config/createCoreConfigs.js +0 -32
- package/libEs5/core/consent/createConsent.js +0 -59
- package/libEs5/core/consent/createConsentStateMachine.js +0 -109
- package/libEs5/core/createComponentRegistry.js +0 -84
- package/libEs5/core/createCookieTransfer.js +0 -81
- package/libEs5/core/createEvent.js +0 -171
- package/libEs5/core/createEventManager.js +0 -142
- package/libEs5/core/createInstanceFunction.js +0 -28
- package/libEs5/core/createLifecycle.js +0 -75
- package/libEs5/core/createLogController.js +0 -71
- package/libEs5/core/createLogger.js +0 -104
- package/libEs5/core/edgeNetwork/handleRequestFailure.js +0 -28
- package/libEs5/core/edgeNetwork/injectApplyResponse.js +0 -67
- package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +0 -43
- package/libEs5/core/edgeNetwork/injectGetLocationHint.js +0 -36
- package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -43
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -100
- package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +0 -29
- package/libEs5/core/index.js +0 -240
- package/libEs5/core/initializeComponents.js +0 -42
- package/libEs5/core/injectCreateResponse.js +0 -78
- package/libEs5/core/injectExecuteCommand.js +0 -105
- package/libEs5/core/injectHandleError.js +0 -37
- package/libEs5/core/injectShouldTransferCookie.js +0 -29
- package/libEs5/core/network/getRequestRetryDelay.js +0 -74
- package/libEs5/core/network/injectSendNetworkRequest.js +0 -100
- package/libEs5/core/network/isRequestRetryable.js +0 -28
- package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +0 -40
- package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +0 -45
- package/libEs5/core/network/requestMethods/injectSendXhrRequest.js +0 -51
- package/libEs5/core/validateCommandOptions.js +0 -35
- package/libEs5/index.js +0 -60
- package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +0 -25
- package/libEs5/utils/assign.js +0 -17
- package/libEs5/utils/assignConcatArrayValues.js +0 -49
- package/libEs5/utils/assignIf.js +0 -22
- package/libEs5/utils/clone.js +0 -23
- package/libEs5/utils/cookieJar.js +0 -22
- package/libEs5/utils/crc32.js +0 -37
- package/libEs5/utils/createCallbackAggregator.js +0 -39
- package/libEs5/utils/createLoggingCookieJar.js +0 -31
- package/libEs5/utils/createMerger.js +0 -34
- package/libEs5/utils/createSubscription.js +0 -91
- package/libEs5/utils/createTaskQueue.js +0 -51
- package/libEs5/utils/debounce.js +0 -30
- package/libEs5/utils/deduplicateArray.js +0 -32
- package/libEs5/utils/deepAssign.js +0 -49
- package/libEs5/utils/defer.js +0 -27
- package/libEs5/utils/dom/appendNode.js +0 -18
- package/libEs5/utils/dom/awaitSelector.js +0 -111
- package/libEs5/utils/dom/createNode.js +0 -48
- package/libEs5/utils/dom/index.js +0 -58
- package/libEs5/utils/dom/isShadowSelector.js +0 -19
- package/libEs5/utils/dom/matchesSelector.js +0 -29
- package/libEs5/utils/dom/querySelectorAll.js +0 -33
- package/libEs5/utils/dom/removeNode.js +0 -22
- package/libEs5/utils/dom/selectNodes.js +0 -31
- package/libEs5/utils/dom/selectNodesWithShadow.js +0 -67
- package/libEs5/utils/endsWith.js +0 -24
- package/libEs5/utils/filterObject.js +0 -53
- package/libEs5/utils/find.js +0 -31
- package/libEs5/utils/fireImage.js +0 -39
- package/libEs5/utils/flatMap.js +0 -18
- package/libEs5/utils/flattenArray.js +0 -37
- package/libEs5/utils/flattenObject.js +0 -43
- package/libEs5/utils/getApexDomain.js +0 -46
- package/libEs5/utils/getBrowser.js +0 -34
- package/libEs5/utils/getLastArrayItems.js +0 -24
- package/libEs5/utils/getNamespacedCookieName.js +0 -20
- package/libEs5/utils/groupBy.js +0 -32
- package/libEs5/utils/includes.js +0 -24
- package/libEs5/utils/index.js +0 -408
- package/libEs5/utils/injectDoesIdentityCookieExist.js +0 -28
- package/libEs5/utils/injectFireReferrerHideableImage.js +0 -76
- package/libEs5/utils/injectStorage.js +0 -75
- package/libEs5/utils/intersection.js +0 -27
- package/libEs5/utils/isBlankString.js +0 -24
- package/libEs5/utils/isBoolean.js +0 -23
- package/libEs5/utils/isEmptyObject.js +0 -24
- package/libEs5/utils/isFunction.js +0 -23
- package/libEs5/utils/isInteger.js +0 -25
- package/libEs5/utils/isNamespacedCookieName.js +0 -27
- package/libEs5/utils/isNil.js +0 -23
- package/libEs5/utils/isNonEmptyArray.js +0 -23
- package/libEs5/utils/isNonEmptyString.js +0 -24
- package/libEs5/utils/isNumber.js +0 -24
- package/libEs5/utils/isObject.js +0 -24
- package/libEs5/utils/isString.js +0 -23
- package/libEs5/utils/isUnique.js +0 -31
- package/libEs5/utils/isValidRegExp.js +0 -27
- package/libEs5/utils/memoize.js +0 -37
- package/libEs5/utils/noop.js +0 -19
- package/libEs5/utils/padStart.js +0 -28
- package/libEs5/utils/parseUrl.js +0 -70
- package/libEs5/utils/prepareConfigOverridesForEdge.js +0 -53
- package/libEs5/utils/querystring.js +0 -17
- package/libEs5/utils/request/createAddIdentity.js +0 -23
- package/libEs5/utils/request/createDataCollectionRequest.js +0 -69
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +0 -36
- package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +0 -45
- package/libEs5/utils/request/createHasIdentity.js +0 -20
- package/libEs5/utils/request/createRequest.js +0 -63
- package/libEs5/utils/request/createRequestParams.js +0 -45
- package/libEs5/utils/request/createRequestPayload.js +0 -37
- package/libEs5/utils/request/index.js +0 -58
- package/libEs5/utils/sanitizeOrgIdForCookieName.js +0 -18
- package/libEs5/utils/stackError.js +0 -35
- package/libEs5/utils/startsWith.js +0 -24
- package/libEs5/utils/stringToBoolean.js +0 -19
- package/libEs5/utils/toArray.js +0 -24
- package/libEs5/utils/toError.js +0 -24
- package/libEs5/utils/toISOStringLocal.js +0 -40
- package/libEs5/utils/toInteger.js +0 -32
- package/libEs5/utils/updateErrorMessage.js +0 -25
- package/libEs5/utils/uuid.js +0 -17
- package/libEs5/utils/validateConfigOverride.js +0 -17
- package/libEs5/utils/validateIdentityMap.js +0 -26
- package/libEs5/utils/validation/booleanValidator.js +0 -21
- package/libEs5/utils/validation/callbackValidator.js +0 -21
- package/libEs5/utils/validation/createAnyOfValidator.js +0 -33
- package/libEs5/utils/validation/createArrayOfValidator.js +0 -35
- package/libEs5/utils/validation/createDefaultValidator.js +0 -23
- package/libEs5/utils/validation/createDeprecatedValidator.js +0 -45
- package/libEs5/utils/validation/createLiteralValidator.js +0 -22
- package/libEs5/utils/validation/createMapOfValuesValidator.js +0 -41
- package/libEs5/utils/validation/createMaximumValidator.js +0 -22
- package/libEs5/utils/validation/createMinimumValidator.js +0 -22
- package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +0 -30
- package/libEs5/utils/validation/createNonEmptyValidator.js +0 -28
- package/libEs5/utils/validation/createObjectOfValidator.js +0 -49
- package/libEs5/utils/validation/createUniqueItemsValidator.js +0 -22
- package/libEs5/utils/validation/createUniqueValidator.js +0 -24
- package/libEs5/utils/validation/domainValidator.js +0 -22
- package/libEs5/utils/validation/index.js +0 -247
- package/libEs5/utils/validation/integerValidator.js +0 -21
- package/libEs5/utils/validation/matchesRegexpValidator.js +0 -22
- package/libEs5/utils/validation/numberValidator.js +0 -21
- package/libEs5/utils/validation/regexpValidator.js +0 -21
- package/libEs5/utils/validation/requiredValidator.js +0 -21
- package/libEs5/utils/validation/stringValidator.js +0 -21
- package/libEs5/utils/validation/utils.js +0 -141
- package/libEs5/utils/values.js +0 -26
- package/libEs6/baseCode/index.js +0 -61
- package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +0 -52
- package/libEs6/components/ActivityCollector/configValidators.js +0 -19
- package/libEs6/components/ActivityCollector/createGetLinkDetails.js +0 -70
- package/libEs6/components/ActivityCollector/createLinkClick.js +0 -37
- package/libEs6/components/ActivityCollector/getLinkName.js +0 -136
- package/libEs6/components/ActivityCollector/getLinkRegion.js +0 -58
- package/libEs6/components/ActivityCollector/index.js +0 -81
- package/libEs6/components/ActivityCollector/utils.js +0 -104
- package/libEs6/components/Audiences/index.js +0 -47
- package/libEs6/components/Audiences/injectProcessDestinations.js +0 -60
- package/libEs6/components/Audiences/injectProcessResponse.js +0 -38
- package/libEs6/components/Context/createComponent.js +0 -34
- package/libEs6/components/Context/implementationDetails.js +0 -24
- package/libEs6/components/Context/index.js +0 -52
- package/libEs6/components/Context/injectDevice.js +0 -70
- package/libEs6/components/Context/injectEnvironment.js +0 -42
- package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +0 -45
- package/libEs6/components/Context/injectPlaceContext.js +0 -29
- package/libEs6/components/Context/injectTimestamp.js +0 -21
- package/libEs6/components/Context/injectWeb.js +0 -28
- package/libEs6/components/DataCollector/index.js +0 -106
- package/libEs6/components/DataCollector/validateApplyResponse.js +0 -33
- package/libEs6/components/DataCollector/validateUserEventOptions.js +0 -49
- package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -30
- package/libEs6/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -24
- package/libEs6/components/DecisioningEngine/constants.js +0 -25
- package/libEs6/components/DecisioningEngine/createApplyResponse.js +0 -31
- package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +0 -29
- package/libEs6/components/DecisioningEngine/createContextProvider.js +0 -95
- package/libEs6/components/DecisioningEngine/createDecisionHistory.js +0 -25
- package/libEs6/components/DecisioningEngine/createDecisionProvider.js +0 -41
- package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +0 -79
- package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +0 -45
- package/libEs6/components/DecisioningEngine/createEventRegistry.js +0 -120
- package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +0 -45
- package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +0 -79
- package/libEs6/components/DecisioningEngine/index.js +0 -124
- package/libEs6/components/DecisioningEngine/utils.js +0 -83
- package/libEs6/components/EventMerge/createComponent.js +0 -23
- package/libEs6/components/EventMerge/createEventMergeId.js +0 -18
- package/libEs6/components/EventMerge/index.js +0 -21
- package/libEs6/components/Identity/addEcidQueryToPayload.js +0 -20
- package/libEs6/components/Identity/addEcidToPayload.js +0 -18
- package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -23
- package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -31
- package/libEs6/components/Identity/configValidators.js +0 -18
- package/libEs6/components/Identity/constants/authState.js +0 -15
- package/libEs6/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -13
- package/libEs6/components/Identity/createComponent.js +0 -97
- package/libEs6/components/Identity/createLegacyIdentity.js +0 -69
- package/libEs6/components/Identity/getEcidFromResponse.js +0 -19
- package/libEs6/components/Identity/getIdentity/createGetIdentity.js +0 -34
- package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +0 -28
- package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -27
- package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +0 -25
- package/libEs6/components/Identity/index.js +0 -124
- package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +0 -30
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -55
- package/libEs6/components/Identity/injectAwaitIdentityCookie.js +0 -56
- package/libEs6/components/Identity/injectEnsureSingleIdentity.js +0 -97
- package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +0 -19
- package/libEs6/components/Identity/injectProcessIdSyncs.js +0 -34
- package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -32
- package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +0 -33
- package/libEs6/components/Identity/visitorService/getVisitor.js +0 -17
- package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -48
- package/libEs6/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -276
- package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +0 -186
- package/libEs6/components/LegacyMediaAnalytics/index.js +0 -45
- package/libEs6/components/LegacyMediaAnalytics/media/constants.js +0 -140
- package/libEs6/components/LegacyMediaAnalytics/media/mediaKeysToXdmConverter.js +0 -46
- package/libEs6/components/LibraryInfo/index.js +0 -57
- package/libEs6/components/MachineLearning/index.js +0 -23
- package/libEs6/components/MachineLearning/processResponse.js +0 -18
- package/libEs6/components/MediaCollection/constants/eventTypes.js +0 -21
- package/libEs6/components/MediaCollection/createHeartbeatEngine.js +0 -64
- package/libEs6/components/MediaCollection/createMediaEventManager.js +0 -115
- package/libEs6/components/MediaCollection/createMediaRequest.js +0 -28
- package/libEs6/components/MediaCollection/createMediaSessionCacheManager.js +0 -63
- package/libEs6/components/MediaCollection/createUpdateMediaSessionState.js +0 -30
- package/libEs6/components/MediaCollection/index.js +0 -164
- package/libEs6/components/MediaCollection/validateMediaEventOptions.js +0 -32
- package/libEs6/components/MediaCollection/validateMediaSessionOptions.js +0 -34
- package/libEs6/components/Personalization/constants/loggerMessage.js +0 -13
- package/libEs6/components/Personalization/constants/scopeType.js +0 -15
- package/libEs6/components/Personalization/constants/surface.js +0 -16
- package/libEs6/components/Personalization/createActionsProvider.js +0 -70
- package/libEs6/components/Personalization/createApplyPropositions.js +0 -103
- package/libEs6/components/Personalization/createClickStorage.js +0 -58
- package/libEs6/components/Personalization/createCollect.js +0 -48
- package/libEs6/components/Personalization/createComponent.js +0 -129
- package/libEs6/components/Personalization/createFetchDataHandler.js +0 -74
- package/libEs6/components/Personalization/createGetPageLocation.js +0 -17
- package/libEs6/components/Personalization/createNotificationHandler.js +0 -29
- package/libEs6/components/Personalization/createOnClickHandler.js +0 -52
- package/libEs6/components/Personalization/createOnDecisionHandler.js +0 -42
- package/libEs6/components/Personalization/createPersonalizationDetails.js +0 -94
- package/libEs6/components/Personalization/createPreprocessors.js +0 -19
- package/libEs6/components/Personalization/createSetTargetMigration.js +0 -27
- package/libEs6/components/Personalization/createViewCacheManager.js +0 -81
- package/libEs6/components/Personalization/createViewChangeHandler.js +0 -47
- package/libEs6/components/Personalization/dom-actions/action.js +0 -49
- package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -36
- package/libEs6/components/Personalization/dom-actions/appendHtml.js +0 -30
- package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +0 -91
- package/libEs6/components/Personalization/dom-actions/createPreprocess.js +0 -18
- package/libEs6/components/Personalization/dom-actions/createRedirect.js +0 -22
- package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +0 -19
- package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +0 -22
- package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +0 -22
- package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +0 -21
- package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +0 -33
- package/libEs6/components/Personalization/dom-actions/dom/getParent.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +0 -19
- package/libEs6/components/Personalization/dom-actions/dom/index.js +0 -26
- package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +0 -23
- package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +0 -22
- package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -35
- package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -102
- package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +0 -15
- package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +0 -21
- package/libEs6/components/Personalization/dom-actions/images.js +0 -31
- package/libEs6/components/Personalization/dom-actions/index.js +0 -13
- package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +0 -33
- package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +0 -29
- package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +0 -29
- package/libEs6/components/Personalization/dom-actions/prependHtml.js +0 -45
- package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +0 -31
- package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -34
- package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +0 -51
- package/libEs6/components/Personalization/dom-actions/replaceHtml.js +0 -18
- package/libEs6/components/Personalization/dom-actions/scripts.js +0 -85
- package/libEs6/components/Personalization/dom-actions/setAttributes.js +0 -18
- package/libEs6/components/Personalization/dom-actions/setHtml.js +0 -24
- package/libEs6/components/Personalization/dom-actions/setStyles.js +0 -22
- package/libEs6/components/Personalization/dom-actions/setText.js +0 -15
- package/libEs6/components/Personalization/dom-actions/swapImage.js +0 -29
- package/libEs6/components/Personalization/event.js +0 -45
- package/libEs6/components/Personalization/flicker/index.js +0 -82
- package/libEs6/components/Personalization/handlers/createProcessDomAction.js +0 -61
- package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +0 -40
- package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +0 -77
- package/libEs6/components/Personalization/handlers/createProcessPropositions.js +0 -175
- package/libEs6/components/Personalization/handlers/createProcessRedirect.js +0 -42
- package/libEs6/components/Personalization/handlers/injectCreateProposition.js +0 -110
- package/libEs6/components/Personalization/handlers/processDefaultContent.js +0 -17
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -291
- package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -17
- package/libEs6/components/Personalization/in-app-message-actions/utils.js +0 -49
- package/libEs6/components/Personalization/index.js +0 -159
- package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -21
- package/libEs6/components/Personalization/utils/createAsyncArray.js +0 -35
- package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +0 -15
- package/libEs6/components/Personalization/utils/surfaceUtils.js +0 -74
- package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +0 -31
- package/libEs6/components/Privacy/computeConsentHash.js +0 -30
- package/libEs6/components/Privacy/createComponent.js +0 -85
- package/libEs6/components/Privacy/createConsentHashStore.js +0 -57
- package/libEs6/components/Privacy/createConsentRequest.js +0 -28
- package/libEs6/components/Privacy/createConsentRequestPayload.js +0 -31
- package/libEs6/components/Privacy/createStoredConsent.js +0 -30
- package/libEs6/components/Privacy/index.js +0 -63
- package/libEs6/components/Privacy/injectSendSetConsentRequest.js +0 -45
- package/libEs6/components/Privacy/parseConsentCookie.js +0 -26
- package/libEs6/components/Privacy/validateSetConsentOptions.js +0 -18
- package/libEs6/constants/apiVersion.js +0 -12
- package/libEs6/constants/browser.js +0 -19
- package/libEs6/constants/consentPurpose.js +0 -13
- package/libEs6/constants/consentStatus.js +0 -15
- package/libEs6/constants/contentType.js +0 -13
- package/libEs6/constants/cookieNameKey.js +0 -15
- package/libEs6/constants/cookieNamePrefix.js +0 -14
- package/libEs6/constants/coreCommands.js +0 -14
- package/libEs6/constants/debugQueryParam.js +0 -13
- package/libEs6/constants/decisionProvider.js +0 -12
- package/libEs6/constants/domain.js +0 -14
- package/libEs6/constants/ecidNamespace.js +0 -13
- package/libEs6/constants/edgeBasePath.js +0 -12
- package/libEs6/constants/elementAttribute.js +0 -13
- package/libEs6/constants/eventType.js +0 -17
- package/libEs6/constants/handle.js +0 -12
- package/libEs6/constants/highEntropyUserAgentClientHints.js +0 -13
- package/libEs6/constants/httpHeaderNames.js +0 -14
- package/libEs6/constants/httpStatusCode.js +0 -17
- package/libEs6/constants/identityMapAuthenticatedState.js +0 -14
- package/libEs6/constants/legacyCookies.js +0 -15
- package/libEs6/constants/libraryName.js +0 -13
- package/libEs6/constants/libraryVersion.js +0 -16
- package/libEs6/constants/namespace.js +0 -13
- package/libEs6/constants/pageWideScope.js +0 -13
- package/libEs6/constants/propositionEventType.js +0 -33
- package/libEs6/constants/queryStringIdentityParam.js +0 -13
- package/libEs6/constants/schema.js +0 -22
- package/libEs6/constants/shadowSeparator.js +0 -13
- package/libEs6/constants/tagName.js +0 -19
- package/libEs6/core/buildAndValidateConfig.js +0 -94
- package/libEs6/core/componentCreators.js +0 -31
- package/libEs6/core/config/createConfig.js +0 -17
- package/libEs6/core/config/createCoreConfigs.js +0 -27
- package/libEs6/core/consent/createConsent.js +0 -57
- package/libEs6/core/consent/createConsentStateMachine.js +0 -91
- package/libEs6/core/createComponentRegistry.js +0 -80
- package/libEs6/core/createCookieTransfer.js +0 -78
- package/libEs6/core/createEvent.js +0 -161
- package/libEs6/core/createEventManager.js +0 -135
- package/libEs6/core/createInstanceFunction.js +0 -25
- package/libEs6/core/createLifecycle.js +0 -65
- package/libEs6/core/createLogController.js +0 -68
- package/libEs6/core/createLogger.js +0 -99
- package/libEs6/core/edgeNetwork/handleRequestFailure.js +0 -24
- package/libEs6/core/edgeNetwork/injectApplyResponse.js +0 -58
- package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +0 -39
- package/libEs6/core/edgeNetwork/injectGetLocationHint.js +0 -32
- package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -42
- package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -100
- package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +0 -21
- package/libEs6/core/index.js +0 -236
- package/libEs6/core/initializeComponents.js +0 -40
- package/libEs6/core/injectCreateResponse.js +0 -70
- package/libEs6/core/injectExecuteCommand.js +0 -100
- package/libEs6/core/injectHandleError.js +0 -33
- package/libEs6/core/injectShouldTransferCookie.js +0 -25
- package/libEs6/core/network/getRequestRetryDelay.js +0 -72
- package/libEs6/core/network/injectSendNetworkRequest.js +0 -96
- package/libEs6/core/network/isRequestRetryable.js +0 -25
- package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +0 -38
- package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +0 -41
- package/libEs6/core/network/requestMethods/injectSendXhrRequest.js +0 -49
- package/libEs6/core/validateCommandOptions.js +0 -33
- package/libEs6/index.js +0 -55
- package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +0 -20
- package/libEs6/utils/assign.js +0 -14
- package/libEs6/utils/assignConcatArrayValues.js +0 -36
- package/libEs6/utils/assignIf.js +0 -19
- package/libEs6/utils/clone.js +0 -18
- package/libEs6/utils/cookieJar.js +0 -19
- package/libEs6/utils/crc32.js +0 -33
- package/libEs6/utils/createCallbackAggregator.js +0 -31
- package/libEs6/utils/createLoggingCookieJar.js +0 -28
- package/libEs6/utils/createMerger.js +0 -30
- package/libEs6/utils/createSubscription.js +0 -70
- package/libEs6/utils/createTaskQueue.js +0 -48
- package/libEs6/utils/debounce.js +0 -22
- package/libEs6/utils/deduplicateArray.js +0 -23
- package/libEs6/utils/deepAssign.js +0 -40
- package/libEs6/utils/defer.js +0 -24
- package/libEs6/utils/dom/appendNode.js +0 -15
- package/libEs6/utils/dom/awaitSelector.js +0 -98
- package/libEs6/utils/dom/createNode.js +0 -38
- package/libEs6/utils/dom/index.js +0 -20
- package/libEs6/utils/dom/isShadowSelector.js +0 -14
- package/libEs6/utils/dom/matchesSelector.js +0 -26
- package/libEs6/utils/dom/querySelectorAll.js +0 -29
- package/libEs6/utils/dom/removeNode.js +0 -19
- package/libEs6/utils/dom/selectNodes.js +0 -28
- package/libEs6/utils/dom/selectNodesWithShadow.js +0 -63
- package/libEs6/utils/endsWith.js +0 -19
- package/libEs6/utils/filterObject.js +0 -55
- package/libEs6/utils/find.js +0 -28
- package/libEs6/utils/fireImage.js +0 -37
- package/libEs6/utils/flatMap.js +0 -14
- package/libEs6/utils/flattenArray.js +0 -26
- package/libEs6/utils/flattenObject.js +0 -28
- package/libEs6/utils/getApexDomain.js +0 -42
- package/libEs6/utils/getBrowser.js +0 -65
- package/libEs6/utils/getLastArrayItems.js +0 -19
- package/libEs6/utils/getNamespacedCookieName.js +0 -15
- package/libEs6/utils/groupBy.js +0 -29
- package/libEs6/utils/includes.js +0 -21
- package/libEs6/utils/index.js +0 -71
- package/libEs6/utils/injectDoesIdentityCookieExist.js +0 -24
- package/libEs6/utils/injectFireReferrerHideableImage.js +0 -65
- package/libEs6/utils/injectStorage.js +0 -69
- package/libEs6/utils/intersection.js +0 -21
- package/libEs6/utils/isBlankString.js +0 -20
- package/libEs6/utils/isBoolean.js +0 -18
- package/libEs6/utils/isEmptyObject.js +0 -20
- package/libEs6/utils/isFunction.js +0 -18
- package/libEs6/utils/isInteger.js +0 -23
- package/libEs6/utils/isNamespacedCookieName.js +0 -23
- package/libEs6/utils/isNil.js +0 -18
- package/libEs6/utils/isNonEmptyArray.js +0 -18
- package/libEs6/utils/isNonEmptyString.js +0 -20
- package/libEs6/utils/isNumber.js +0 -19
- package/libEs6/utils/isObject.js +0 -20
- package/libEs6/utils/isString.js +0 -18
- package/libEs6/utils/isUnique.js +0 -27
- package/libEs6/utils/isValidRegExp.js +0 -24
- package/libEs6/utils/memoize.js +0 -34
- package/libEs6/utils/noop.js +0 -16
- package/libEs6/utils/padStart.js +0 -25
- package/libEs6/utils/parseUrl.js +0 -62
- package/libEs6/utils/prepareConfigOverridesForEdge.js +0 -50
- package/libEs6/utils/querystring.js +0 -14
- package/libEs6/utils/request/createAddIdentity.js +0 -19
- package/libEs6/utils/request/createDataCollectionRequest.js +0 -69
- package/libEs6/utils/request/createDataCollectionRequestPayload.js +0 -30
- package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +0 -42
- package/libEs6/utils/request/createHasIdentity.js +0 -15
- package/libEs6/utils/request/createRequest.js +0 -63
- package/libEs6/utils/request/createRequestParams.js +0 -40
- package/libEs6/utils/request/createRequestPayload.js +0 -35
- package/libEs6/utils/request/index.js +0 -20
- package/libEs6/utils/sanitizeOrgIdForCookieName.js +0 -13
- package/libEs6/utils/stackError.js +0 -34
- package/libEs6/utils/startsWith.js +0 -19
- package/libEs6/utils/stringToBoolean.js +0 -15
- package/libEs6/utils/toArray.js +0 -21
- package/libEs6/utils/toError.js +0 -21
- package/libEs6/utils/toISOStringLocal.js +0 -37
- package/libEs6/utils/toInteger.js +0 -30
- package/libEs6/utils/updateErrorMessage.js +0 -23
- package/libEs6/utils/uuid.js +0 -14
- package/libEs6/utils/validateConfigOverride.js +0 -14
- package/libEs6/utils/validateIdentityMap.js +0 -23
- package/libEs6/utils/validation/booleanValidator.js +0 -18
- package/libEs6/utils/validation/callbackValidator.js +0 -17
- package/libEs6/utils/validation/createAnyOfValidator.js +0 -26
- package/libEs6/utils/validation/createArrayOfValidator.js +0 -28
- package/libEs6/utils/validation/createDefaultValidator.js +0 -18
- package/libEs6/utils/validation/createDeprecatedValidator.js +0 -37
- package/libEs6/utils/validation/createLiteralValidator.js +0 -16
- package/libEs6/utils/validation/createMapOfValuesValidator.js +0 -35
- package/libEs6/utils/validation/createMaximumValidator.js +0 -16
- package/libEs6/utils/validation/createMinimumValidator.js +0 -16
- package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +0 -25
- package/libEs6/utils/validation/createNonEmptyValidator.js +0 -23
- package/libEs6/utils/validation/createObjectOfValidator.js +0 -43
- package/libEs6/utils/validation/createUniqueItemsValidator.js +0 -18
- package/libEs6/utils/validation/createUniqueValidator.js +0 -21
- package/libEs6/utils/validation/domainValidator.js +0 -17
- package/libEs6/utils/validation/index.js +0 -232
- package/libEs6/utils/validation/integerValidator.js +0 -18
- package/libEs6/utils/validation/matchesRegexpValidator.js +0 -17
- package/libEs6/utils/validation/numberValidator.js +0 -18
- package/libEs6/utils/validation/regexpValidator.js +0 -18
- package/libEs6/utils/validation/requiredValidator.js +0 -18
- package/libEs6/utils/validation/stringValidator.js +0 -17
- package/libEs6/utils/validation/utils.js +0 -127
- package/libEs6/utils/values.js +0 -21
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
/*
|
|
5
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
6
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
-
governing permissions and limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
var _default = function _default(_ref) {
|
|
16
|
-
var logger = _ref.logger,
|
|
17
|
-
executeRedirect = _ref.executeRedirect,
|
|
18
|
-
collect = _ref.collect;
|
|
19
|
-
return function (item) {
|
|
20
|
-
var _ref2 = item.getData() || {},
|
|
21
|
-
content = _ref2.content;
|
|
22
|
-
if (!content) {
|
|
23
|
-
logger.warn("Invalid Redirect data", item.getData());
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
var render = function render() {
|
|
27
|
-
return collect({
|
|
28
|
-
decisionsMeta: [item.getProposition().getNotification()],
|
|
29
|
-
documentMayUnload: true
|
|
30
|
-
}).then(function () {
|
|
31
|
-
return executeRedirect(content);
|
|
32
|
-
// Execute redirect will never resolve. If there are bottom of page events that are waiting
|
|
33
|
-
// for display notifications from this request, they will never run because this promise will
|
|
34
|
-
// not resolve. This is intentional because we don't want to run bottom of page events if
|
|
35
|
-
// there is a redirect.
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
render: render,
|
|
41
|
-
setRenderAttempted: true,
|
|
42
|
-
onlyRenderThis: true
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
exports.default = _default;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
var _pageWideScope = require("../../../constants/pageWideScope");
|
|
5
|
-
var _scopeType = require("../constants/scopeType");
|
|
6
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /*
|
|
9
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
10
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
|
|
14
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
-
governing permissions and limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
var _default = function _default(_ref) {
|
|
20
|
-
var preprocess = _ref.preprocess,
|
|
21
|
-
isPageWideSurface = _ref.isPageWideSurface;
|
|
22
|
-
var createItem = function createItem(item, proposition) {
|
|
23
|
-
var schema = item.schema,
|
|
24
|
-
data = item.data,
|
|
25
|
-
_item$characteristics = item.characteristics;
|
|
26
|
-
_item$characteristics = _item$characteristics === void 0 ? {} : _item$characteristics;
|
|
27
|
-
var trackingLabel = _item$characteristics.trackingLabel;
|
|
28
|
-
var processedData = preprocess(data);
|
|
29
|
-
return {
|
|
30
|
-
getSchema: function getSchema() {
|
|
31
|
-
return schema;
|
|
32
|
-
},
|
|
33
|
-
getData: function getData() {
|
|
34
|
-
return processedData;
|
|
35
|
-
},
|
|
36
|
-
getProposition: function getProposition() {
|
|
37
|
-
return proposition;
|
|
38
|
-
},
|
|
39
|
-
getTrackingLabel: function getTrackingLabel() {
|
|
40
|
-
return trackingLabel;
|
|
41
|
-
},
|
|
42
|
-
getOriginalItem: function getOriginalItem() {
|
|
43
|
-
return item;
|
|
44
|
-
},
|
|
45
|
-
toString: function toString() {
|
|
46
|
-
return JSON.stringify(item);
|
|
47
|
-
},
|
|
48
|
-
toJSON: function toJSON() {
|
|
49
|
-
return item;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
return function (payload) {
|
|
54
|
-
var visibleInReturnedItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
55
|
-
var id = payload.id,
|
|
56
|
-
scope = payload.scope,
|
|
57
|
-
scopeDetails = payload.scopeDetails,
|
|
58
|
-
_payload$items = payload.items,
|
|
59
|
-
items = _payload$items === void 0 ? [] : _payload$items;
|
|
60
|
-
var _ref2 = scopeDetails || {},
|
|
61
|
-
_ref2$characteristics = _ref2.characteristics;
|
|
62
|
-
_ref2$characteristics = _ref2$characteristics === void 0 ? {} : _ref2$characteristics;
|
|
63
|
-
var scopeType = _ref2$characteristics.scopeType;
|
|
64
|
-
return {
|
|
65
|
-
getScope: function getScope() {
|
|
66
|
-
if (!scope) {
|
|
67
|
-
return scope;
|
|
68
|
-
}
|
|
69
|
-
return scope;
|
|
70
|
-
},
|
|
71
|
-
getScopeType: function getScopeType() {
|
|
72
|
-
if (scope === _pageWideScope.default || isPageWideSurface(scope)) {
|
|
73
|
-
return _scopeType.PAGE_SCOPE_TYPE;
|
|
74
|
-
}
|
|
75
|
-
if (scopeType === _scopeType.VIEW_SCOPE_TYPE) {
|
|
76
|
-
return _scopeType.VIEW_SCOPE_TYPE;
|
|
77
|
-
}
|
|
78
|
-
return _scopeType.PROPOSITION_SCOPE_TYPE;
|
|
79
|
-
},
|
|
80
|
-
getItems: function getItems() {
|
|
81
|
-
var _this = this;
|
|
82
|
-
return items.map(function (item) {
|
|
83
|
-
return createItem(item, _this);
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
getNotification: function getNotification() {
|
|
87
|
-
return {
|
|
88
|
-
id: id,
|
|
89
|
-
scope: scope,
|
|
90
|
-
scopeDetails: scopeDetails
|
|
91
|
-
};
|
|
92
|
-
},
|
|
93
|
-
toJSON: function toJSON() {
|
|
94
|
-
return payload;
|
|
95
|
-
},
|
|
96
|
-
addToReturnValues: function addToReturnValues(propositions, decisions, includedItems, renderAttempted) {
|
|
97
|
-
if (visibleInReturnedItems) {
|
|
98
|
-
propositions.push(_objectSpread(_objectSpread({}, payload), {}, {
|
|
99
|
-
items: includedItems.map(function (i) {
|
|
100
|
-
return i.getOriginalItem();
|
|
101
|
-
}),
|
|
102
|
-
renderAttempted: renderAttempted
|
|
103
|
-
}));
|
|
104
|
-
if (!renderAttempted) {
|
|
105
|
-
decisions.push(_objectSpread(_objectSpread({}, payload), {}, {
|
|
106
|
-
items: includedItems.map(function (i) {
|
|
107
|
-
return i.getOriginalItem();
|
|
108
|
-
})
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
exports.default = _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
/*
|
|
5
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
6
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
-
governing permissions and limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
var _default = function _default() {
|
|
16
|
-
return {
|
|
17
|
-
setRenderAttempted: true,
|
|
18
|
-
includeInNotification: true
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.mobileOverlay = exports.displayHTMLContentInIframe = exports.default = exports.createIframeClickHandler = exports.createIframe = exports.buildStyleFromMobileParameters = void 0;
|
|
4
|
-
var _dom = require("../../dom-actions/dom");
|
|
5
|
-
var _utils = require("../utils");
|
|
6
|
-
var _contentType = require("../../../../constants/contentType");
|
|
7
|
-
var _utils2 = require("../../../../utils");
|
|
8
|
-
var _dom2 = require("../../../../utils/dom");
|
|
9
|
-
var _validation = require("../../../../utils/validation");
|
|
10
|
-
var _propositionEventType = require("../../../../constants/propositionEventType");
|
|
11
|
-
var _eventType = require("../../../../constants/eventType");
|
|
12
|
-
var _createRedirect = require("../../dom-actions/createRedirect");
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /*
|
|
14
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
15
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
17
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
20
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
21
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
22
|
-
governing permissions and limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
var MESSAGING_CONTAINER_ID = "alloy-messaging-container";
|
|
25
|
-
var OVERLAY_CONTAINER_ID = "alloy-overlay-container";
|
|
26
|
-
var IFRAME_ID = "alloy-content-iframe";
|
|
27
|
-
var dismissMessage = function dismissMessage() {
|
|
28
|
-
return [MESSAGING_CONTAINER_ID, OVERLAY_CONTAINER_ID].forEach(_utils.removeElementById);
|
|
29
|
-
};
|
|
30
|
-
var createIframeClickHandler = function createIframeClickHandler(interact) {
|
|
31
|
-
var navigateToUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _createRedirect.default)(window);
|
|
32
|
-
return function (event) {
|
|
33
|
-
event.preventDefault();
|
|
34
|
-
event.stopImmediatePropagation();
|
|
35
|
-
var target = event.target;
|
|
36
|
-
var anchor = target.tagName.toLowerCase() === "a" ? target : target.closest("a");
|
|
37
|
-
if (!anchor) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
var _parseAnchor = (0, _utils.parseAnchor)(anchor),
|
|
41
|
-
action = _parseAnchor.action,
|
|
42
|
-
interaction = _parseAnchor.interaction,
|
|
43
|
-
link = _parseAnchor.link,
|
|
44
|
-
label = _parseAnchor.label,
|
|
45
|
-
uuid = _parseAnchor.uuid;
|
|
46
|
-
interact(action, {
|
|
47
|
-
label: label,
|
|
48
|
-
id: interaction,
|
|
49
|
-
uuid: uuid,
|
|
50
|
-
link: link
|
|
51
|
-
});
|
|
52
|
-
if (action === "dismiss") {
|
|
53
|
-
dismissMessage();
|
|
54
|
-
}
|
|
55
|
-
if ((0, _utils2.isNonEmptyString)(link) && link.length > 0) {
|
|
56
|
-
navigateToUrl(link, true);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
exports.createIframeClickHandler = createIframeClickHandler;
|
|
61
|
-
var createIframe = function createIframe(htmlContent, clickHandler) {
|
|
62
|
-
var parser = new DOMParser();
|
|
63
|
-
var htmlDocument = parser.parseFromString(htmlContent, _contentType.TEXT_HTML);
|
|
64
|
-
var scriptTag = htmlDocument.querySelector("script");
|
|
65
|
-
if (scriptTag) {
|
|
66
|
-
scriptTag.setAttribute("nonce", (0, _dom.getNonce)());
|
|
67
|
-
}
|
|
68
|
-
var element = (0, _dom2.createNode)("iframe", {
|
|
69
|
-
src: URL.createObjectURL(new Blob([htmlDocument.documentElement.outerHTML], {
|
|
70
|
-
type: "text/html"
|
|
71
|
-
})),
|
|
72
|
-
id: IFRAME_ID
|
|
73
|
-
});
|
|
74
|
-
element.addEventListener("load", function () {
|
|
75
|
-
var _ref = element.contentDocument || element.contentWindow.document,
|
|
76
|
-
addEventListener = _ref.addEventListener;
|
|
77
|
-
addEventListener("click", clickHandler);
|
|
78
|
-
});
|
|
79
|
-
return element;
|
|
80
|
-
};
|
|
81
|
-
exports.createIframe = createIframe;
|
|
82
|
-
var renderMessage = function renderMessage(iframe, webParameters, container, overlay) {
|
|
83
|
-
[{
|
|
84
|
-
id: OVERLAY_CONTAINER_ID,
|
|
85
|
-
element: overlay
|
|
86
|
-
}, {
|
|
87
|
-
id: MESSAGING_CONTAINER_ID,
|
|
88
|
-
element: container
|
|
89
|
-
}, {
|
|
90
|
-
id: IFRAME_ID,
|
|
91
|
-
element: iframe
|
|
92
|
-
}].forEach(function (_ref2) {
|
|
93
|
-
var id = _ref2.id,
|
|
94
|
-
element = _ref2.element;
|
|
95
|
-
var _webParameters$id = webParameters[id],
|
|
96
|
-
_webParameters$id$sty = _webParameters$id.style,
|
|
97
|
-
style = _webParameters$id$sty === void 0 ? {} : _webParameters$id$sty,
|
|
98
|
-
_webParameters$id$par = _webParameters$id.params,
|
|
99
|
-
params = _webParameters$id$par === void 0 ? {} : _webParameters$id$par;
|
|
100
|
-
(0, _utils2.assign)(element.style, style);
|
|
101
|
-
var _params$parentElement = params.parentElement,
|
|
102
|
-
parentElement = _params$parentElement === void 0 ? "body" : _params$parentElement,
|
|
103
|
-
_params$insertionMeth = params.insertionMethod,
|
|
104
|
-
insertionMethod = _params$insertionMeth === void 0 ? "appendChild" : _params$insertionMeth,
|
|
105
|
-
_params$enabled = params.enabled,
|
|
106
|
-
enabled = _params$enabled === void 0 ? true : _params$enabled;
|
|
107
|
-
var parent = document.querySelector(parentElement);
|
|
108
|
-
if (enabled && parent && typeof parent[insertionMethod] === "function") {
|
|
109
|
-
parent[insertionMethod](element);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
var buildStyleFromMobileParameters = function buildStyleFromMobileParameters(mobileParameters) {
|
|
114
|
-
var verticalAlign = mobileParameters.verticalAlign,
|
|
115
|
-
width = mobileParameters.width,
|
|
116
|
-
horizontalAlign = mobileParameters.horizontalAlign,
|
|
117
|
-
backdropColor = mobileParameters.backdropColor,
|
|
118
|
-
height = mobileParameters.height,
|
|
119
|
-
cornerRadius = mobileParameters.cornerRadius,
|
|
120
|
-
horizontalInset = mobileParameters.horizontalInset,
|
|
121
|
-
verticalInset = mobileParameters.verticalInset,
|
|
122
|
-
_mobileParameters$uiT = mobileParameters.uiTakeover,
|
|
123
|
-
uiTakeover = _mobileParameters$uiT === void 0 ? false : _mobileParameters$uiT;
|
|
124
|
-
var style = {
|
|
125
|
-
width: width ? width + "%" : "100%",
|
|
126
|
-
backgroundColor: backdropColor || "rgba(0, 0, 0, 0.5)",
|
|
127
|
-
borderRadius: cornerRadius ? cornerRadius + "px" : "0px",
|
|
128
|
-
border: "none",
|
|
129
|
-
position: uiTakeover ? "fixed" : "relative",
|
|
130
|
-
overflow: "hidden"
|
|
131
|
-
};
|
|
132
|
-
if (horizontalAlign === "left") {
|
|
133
|
-
style.left = horizontalInset ? horizontalInset + "%" : "0";
|
|
134
|
-
} else if (horizontalAlign === "right") {
|
|
135
|
-
style.right = horizontalInset ? horizontalInset + "%" : "0";
|
|
136
|
-
} else if (horizontalAlign === "center") {
|
|
137
|
-
style.left = "50%";
|
|
138
|
-
style.transform = "translateX(-50%)";
|
|
139
|
-
}
|
|
140
|
-
if (verticalAlign === "top") {
|
|
141
|
-
style.top = verticalInset ? verticalInset + "%" : "0";
|
|
142
|
-
} else if (verticalAlign === "bottom") {
|
|
143
|
-
style.position = "fixed";
|
|
144
|
-
style.bottom = verticalInset ? verticalInset + "%" : "0";
|
|
145
|
-
} else if (verticalAlign === "center") {
|
|
146
|
-
style.top = "50%";
|
|
147
|
-
style.transform = (horizontalAlign === "center" ? style.transform + " " : "") + "translateY(-50%)";
|
|
148
|
-
style.display = "flex";
|
|
149
|
-
style.alignItems = "center";
|
|
150
|
-
style.justifyContent = "center";
|
|
151
|
-
}
|
|
152
|
-
if (height) {
|
|
153
|
-
style.height = height + "vh";
|
|
154
|
-
} else {
|
|
155
|
-
style.height = "100%";
|
|
156
|
-
}
|
|
157
|
-
return style;
|
|
158
|
-
};
|
|
159
|
-
exports.buildStyleFromMobileParameters = buildStyleFromMobileParameters;
|
|
160
|
-
var mobileOverlay = function mobileOverlay(mobileParameters) {
|
|
161
|
-
var backdropOpacity = mobileParameters.backdropOpacity,
|
|
162
|
-
backdropColor = mobileParameters.backdropColor;
|
|
163
|
-
var opacity = backdropOpacity || 0.5;
|
|
164
|
-
var color = backdropColor || "#FFFFFF";
|
|
165
|
-
var style = {
|
|
166
|
-
position: "fixed",
|
|
167
|
-
top: "0",
|
|
168
|
-
left: "0",
|
|
169
|
-
width: "100%",
|
|
170
|
-
height: "100%",
|
|
171
|
-
background: "transparent",
|
|
172
|
-
opacity: opacity,
|
|
173
|
-
backgroundColor: color
|
|
174
|
-
};
|
|
175
|
-
return style;
|
|
176
|
-
};
|
|
177
|
-
exports.mobileOverlay = mobileOverlay;
|
|
178
|
-
var REQUIRED_PARAMS = ["enabled", "parentElement", "insertionMethod"];
|
|
179
|
-
var isValidWebParameters = function isValidWebParameters(webParameters) {
|
|
180
|
-
if (!webParameters) {
|
|
181
|
-
return false;
|
|
182
|
-
}
|
|
183
|
-
var ids = Object.keys(webParameters);
|
|
184
|
-
if (!(0, _utils2.includes)(ids, MESSAGING_CONTAINER_ID)) {
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
if (!(0, _utils2.includes)(ids, OVERLAY_CONTAINER_ID)) {
|
|
188
|
-
return false;
|
|
189
|
-
}
|
|
190
|
-
var valuesArray = (0, _utils2.values)(webParameters);
|
|
191
|
-
for (var i = 0; i < valuesArray.length; i += 1) {
|
|
192
|
-
if (!(0, _validation.objectOf)(valuesArray[i], "style")) {
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
if (!(0, _validation.objectOf)(valuesArray[i], "params")) {
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
for (var j = 0; j < REQUIRED_PARAMS.length; j += 1) {
|
|
199
|
-
if (!(0, _validation.objectOf)(valuesArray[i].params, REQUIRED_PARAMS[j])) {
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return true;
|
|
205
|
-
};
|
|
206
|
-
var generateWebParameters = function generateWebParameters(mobileParameters) {
|
|
207
|
-
var _ref3;
|
|
208
|
-
if (!mobileParameters) {
|
|
209
|
-
return undefined;
|
|
210
|
-
}
|
|
211
|
-
var _mobileParameters$uiT2 = mobileParameters.uiTakeover,
|
|
212
|
-
uiTakeover = _mobileParameters$uiT2 === void 0 ? false : _mobileParameters$uiT2;
|
|
213
|
-
return _ref3 = {}, _defineProperty(_ref3, IFRAME_ID, {
|
|
214
|
-
style: {
|
|
215
|
-
border: "none",
|
|
216
|
-
width: "100%",
|
|
217
|
-
height: "100%"
|
|
218
|
-
},
|
|
219
|
-
params: {
|
|
220
|
-
enabled: true,
|
|
221
|
-
parentElement: "#alloy-messaging-container",
|
|
222
|
-
insertionMethod: "appendChild"
|
|
223
|
-
}
|
|
224
|
-
}), _defineProperty(_ref3, MESSAGING_CONTAINER_ID, {
|
|
225
|
-
style: buildStyleFromMobileParameters(mobileParameters),
|
|
226
|
-
params: {
|
|
227
|
-
enabled: true,
|
|
228
|
-
parentElement: "body",
|
|
229
|
-
insertionMethod: "appendChild"
|
|
230
|
-
}
|
|
231
|
-
}), _defineProperty(_ref3, OVERLAY_CONTAINER_ID, {
|
|
232
|
-
style: mobileOverlay(mobileParameters),
|
|
233
|
-
params: {
|
|
234
|
-
enabled: uiTakeover === true,
|
|
235
|
-
parentElement: "body",
|
|
236
|
-
insertionMethod: "appendChild"
|
|
237
|
-
}
|
|
238
|
-
}), _ref3;
|
|
239
|
-
};
|
|
240
|
-
var displayHTMLContentInIframe = function displayHTMLContentInIframe() {
|
|
241
|
-
var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
242
|
-
var interact = arguments.length > 1 ? arguments[1] : undefined;
|
|
243
|
-
dismissMessage();
|
|
244
|
-
var content = settings.content,
|
|
245
|
-
contentType = settings.contentType,
|
|
246
|
-
mobileParameters = settings.mobileParameters;
|
|
247
|
-
var webParameters = settings.webParameters;
|
|
248
|
-
if (contentType !== _contentType.TEXT_HTML) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
var container = (0, _dom2.createNode)("div", {
|
|
252
|
-
id: MESSAGING_CONTAINER_ID
|
|
253
|
-
});
|
|
254
|
-
var iframe = createIframe(content, createIframeClickHandler(interact));
|
|
255
|
-
var overlay = (0, _dom2.createNode)("div", {
|
|
256
|
-
id: OVERLAY_CONTAINER_ID
|
|
257
|
-
});
|
|
258
|
-
if (!isValidWebParameters(webParameters)) {
|
|
259
|
-
webParameters = generateWebParameters(mobileParameters);
|
|
260
|
-
}
|
|
261
|
-
if (!webParameters) {
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
renderMessage(iframe, webParameters, container, overlay);
|
|
265
|
-
};
|
|
266
|
-
exports.displayHTMLContentInIframe = displayHTMLContentInIframe;
|
|
267
|
-
var _default = function _default(settings, collect) {
|
|
268
|
-
return new Promise(function (resolve) {
|
|
269
|
-
var meta = settings.meta;
|
|
270
|
-
displayHTMLContentInIframe(settings, function (action, propositionAction) {
|
|
271
|
-
var propositionEventTypes = {};
|
|
272
|
-
propositionEventTypes[_propositionEventType.PropositionEventType.INTERACT] = _eventType.EVENT_TYPE_TRUE;
|
|
273
|
-
if (Object.values(_propositionEventType.PropositionEventType).indexOf(action) !== -1) {
|
|
274
|
-
propositionEventTypes[action] = _eventType.EVENT_TYPE_TRUE;
|
|
275
|
-
}
|
|
276
|
-
collect({
|
|
277
|
-
decisionsMeta: [meta],
|
|
278
|
-
propositionAction: propositionAction,
|
|
279
|
-
eventType: _eventType.INTERACT,
|
|
280
|
-
propositionEventTypes: Object.keys(propositionEventTypes)
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
resolve({
|
|
284
|
-
meta: meta
|
|
285
|
-
});
|
|
286
|
-
});
|
|
287
|
-
};
|
|
288
|
-
exports.default = _default;
|
package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.default = void 0;
|
|
4
|
-
var _displayIframeContent = require("./actions/displayIframeContent");
|
|
5
|
-
/*
|
|
6
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
7
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
9
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
|
|
11
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
12
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
13
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
|
-
governing permissions and limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
var _default = function _default(collect) {
|
|
17
|
-
return {
|
|
18
|
-
defaultContent: function defaultContent(settings) {
|
|
19
|
-
return (0, _displayIframeContent.default)(settings, collect);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
exports.default = _default;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.removeElementById = exports.parseAnchor = void 0;
|
|
4
|
-
var _utils = require("../../../utils");
|
|
5
|
-
var _dom = require("../../../utils/dom");
|
|
6
|
-
/*
|
|
7
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
8
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
10
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
|
|
12
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
13
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
14
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
15
|
-
governing permissions and limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
var removeElementById = function removeElementById(id) {
|
|
19
|
-
var element = (0, _dom.selectNodes)("#" + id, document);
|
|
20
|
-
if (element && element.length > 0) {
|
|
21
|
-
(0, _dom.removeNode)(element[0]);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.removeElementById = removeElementById;
|
|
25
|
-
var parseAnchor = function parseAnchor(anchor) {
|
|
26
|
-
var nothing = {};
|
|
27
|
-
if (!anchor || anchor.tagName.toLowerCase() !== "a") {
|
|
28
|
-
return nothing;
|
|
29
|
-
}
|
|
30
|
-
var href = anchor.href;
|
|
31
|
-
if (!href || !(0, _utils.startsWith)(href, "adbinapp://")) {
|
|
32
|
-
return nothing;
|
|
33
|
-
}
|
|
34
|
-
var hrefParts = href.split("?");
|
|
35
|
-
var action = hrefParts[0].split("://")[1];
|
|
36
|
-
var label = anchor.innerText;
|
|
37
|
-
var uuid = anchor.getAttribute("data-uuid") || "";
|
|
38
|
-
var interaction;
|
|
39
|
-
var link;
|
|
40
|
-
if ((0, _utils.isNonEmptyArray)(hrefParts)) {
|
|
41
|
-
var queryParams = _utils.queryString.parse(hrefParts[1]);
|
|
42
|
-
interaction = queryParams.interaction || "";
|
|
43
|
-
link = decodeURIComponent(queryParams.link || "");
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
action: action,
|
|
47
|
-
interaction: interaction,
|
|
48
|
-
link: link,
|
|
49
|
-
label: label,
|
|
50
|
-
uuid: uuid
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
exports.parseAnchor = parseAnchor;
|