@adobe/alloy 2.20.0-alpha.1 → 2.20.0-beta.0
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/baseCode/index.js +2 -3
- package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +2 -3
- package/libEs5/components/ActivityCollector/configValidators.js +3 -5
- package/libEs5/components/ActivityCollector/createGetLinkDetails.js +2 -3
- package/libEs5/components/ActivityCollector/createLinkClick.js +2 -3
- package/libEs5/components/ActivityCollector/getLinkName.js +2 -3
- package/libEs5/components/ActivityCollector/getLinkRegion.js +2 -3
- package/libEs5/components/ActivityCollector/index.js +1 -2
- package/libEs5/components/ActivityCollector/utils.js +11 -21
- package/libEs5/components/Audiences/index.js +1 -2
- package/libEs5/components/Audiences/injectProcessDestinations.js +18 -16
- package/libEs5/components/Audiences/injectProcessResponse.js +2 -3
- package/libEs5/components/Context/createComponent.js +2 -3
- package/libEs5/components/Context/implementationDetails.js +2 -3
- package/libEs5/components/Context/index.js +17 -15
- package/libEs5/components/Context/injectDevice.js +2 -3
- package/libEs5/components/Context/injectEnvironment.js +6 -7
- package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +15 -16
- package/libEs5/components/Context/injectPlaceContext.js +2 -3
- package/libEs5/components/Context/injectTimestamp.js +2 -3
- package/libEs5/components/Context/injectWeb.js +2 -3
- package/libEs5/components/DataCollector/index.js +1 -2
- package/libEs5/components/DataCollector/validateApplyResponse.js +2 -3
- package/libEs5/components/DataCollector/validateUserEventOptions.js +2 -3
- package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -3
- package/libEs5/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +2 -3
- package/libEs5/components/DecisioningEngine/constants.js +4 -7
- package/libEs5/components/DecisioningEngine/createApplyResponse.js +2 -3
- package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +17 -16
- package/libEs5/components/DecisioningEngine/createContextProvider.js +18 -16
- package/libEs5/components/DecisioningEngine/createDecisionHistory.js +2 -3
- package/libEs5/components/DecisioningEngine/createDecisionProvider.js +2 -3
- package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +18 -16
- package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +2 -3
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +20 -20
- package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +18 -16
- package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +18 -16
- package/libEs5/components/DecisioningEngine/index.js +19 -19
- package/libEs5/components/DecisioningEngine/utils.js +10 -18
- package/libEs5/components/EventMerge/createComponent.js +2 -3
- package/libEs5/components/EventMerge/createEventMergeId.js +2 -3
- package/libEs5/components/EventMerge/index.js +1 -2
- package/libEs5/components/Identity/addEcidQueryToPayload.js +2 -3
- package/libEs5/components/Identity/addEcidToPayload.js +2 -3
- package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +2 -3
- package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +4 -5
- package/libEs5/components/Identity/configValidators.js +1 -2
- package/libEs5/components/Identity/constants/authState.js +3 -6
- package/libEs5/components/Identity/constants/defaultIdSyncTtlMinutes.js +1 -2
- package/libEs5/components/Identity/createComponent.js +2 -3
- package/libEs5/components/Identity/createLegacyIdentity.js +8 -6
- package/libEs5/components/Identity/getEcidFromResponse.js +2 -3
- package/libEs5/components/Identity/getIdentity/createGetIdentity.js +2 -3
- package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -3
- package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +2 -3
- package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +2 -3
- package/libEs5/components/Identity/index.js +3 -3
- package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +2 -3
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +18 -15
- package/libEs5/components/Identity/injectAwaitIdentityCookie.js +9 -14
- package/libEs5/components/Identity/injectEnsureSingleIdentity.js +8 -6
- package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +2 -3
- package/libEs5/components/Identity/injectProcessIdSyncs.js +2 -3
- package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +2 -3
- package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +2 -3
- package/libEs5/components/Identity/visitorService/getVisitor.js +2 -3
- package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +2 -3
- package/libEs5/components/LegacyMediaAnalytics/{media → constants}/constants.js +15 -25
- package/libEs5/components/LegacyMediaAnalytics/{media → constants}/mediaKeysToXdmConverter.js +3 -5
- package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +246 -0
- package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +87 -0
- package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +7 -14
- package/libEs5/components/LegacyMediaAnalytics/index.js +43 -20
- package/libEs5/components/LibraryInfo/index.js +21 -17
- package/libEs5/components/MachineLearning/index.js +1 -2
- package/libEs5/components/MachineLearning/processResponse.js +2 -3
- package/libEs5/components/Personalization/constants/loggerMessage.js +2 -4
- package/libEs5/components/Personalization/constants/scopeType.js +3 -6
- package/libEs5/components/Personalization/constants/surface.js +4 -8
- package/libEs5/components/Personalization/createActionsProvider.js +2 -3
- package/libEs5/components/Personalization/createApplyPropositions.js +19 -17
- package/libEs5/components/Personalization/createClickStorage.js +8 -6
- package/libEs5/components/Personalization/createCollect.js +2 -3
- package/libEs5/components/Personalization/createComponent.js +7 -4
- package/libEs5/components/Personalization/createFetchDataHandler.js +28 -20
- package/libEs5/components/Personalization/createGetPageLocation.js +2 -3
- package/libEs5/{utils/debounce.js → components/Personalization/createHandleConsentFlicker.js} +13 -14
- package/libEs5/components/Personalization/createNotificationHandler.js +10 -5
- package/libEs5/components/Personalization/createOnClickHandler.js +2 -3
- package/libEs5/components/Personalization/createOnDecisionHandler.js +3 -4
- package/libEs5/components/Personalization/createPersonalizationDetails.js +13 -14
- package/libEs5/components/Personalization/createPreprocessors.js +16 -14
- package/libEs5/components/Personalization/createSetTargetMigration.js +2 -3
- package/libEs5/components/Personalization/createViewCacheManager.js +2 -3
- package/libEs5/components/Personalization/createViewChangeHandler.js +2 -3
- package/libEs5/components/Personalization/dom-actions/action.js +2 -3
- package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +2 -3
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +2 -3
- package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +3 -4
- package/libEs5/components/Personalization/dom-actions/createPreprocess.js +2 -3
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +3 -5
- package/libEs5/components/Personalization/dom-actions/dom/getParent.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +3 -5
- package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +16 -19
- package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +2 -3
- package/libEs5/components/Personalization/dom-actions/images.js +4 -7
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +2 -3
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +2 -3
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +2 -3
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +2 -3
- package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +2 -3
- package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -3
- package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +2 -3
- package/libEs5/components/Personalization/dom-actions/replaceHtml.js +2 -3
- package/libEs5/components/Personalization/dom-actions/scripts.js +22 -24
- package/libEs5/components/Personalization/dom-actions/setAttributes.js +2 -3
- package/libEs5/components/Personalization/dom-actions/setHtml.js +2 -3
- package/libEs5/components/Personalization/dom-actions/setStyles.js +2 -3
- package/libEs5/components/Personalization/dom-actions/setText.js +2 -3
- package/libEs5/components/Personalization/dom-actions/swapImage.js +2 -3
- package/libEs5/components/Personalization/event.js +19 -18
- package/libEs5/components/Personalization/flicker/index.js +21 -22
- package/libEs5/components/Personalization/handlers/createProcessDomAction.js +8 -6
- package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +2 -3
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +18 -16
- package/libEs5/components/Personalization/handlers/createProcessPropositions.js +3 -4
- package/libEs5/components/Personalization/handlers/createProcessRedirect.js +2 -4
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +24 -22
- package/libEs5/components/Personalization/handlers/processDefaultContent.js +2 -3
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +25 -29
- package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +2 -3
- package/libEs5/components/Personalization/in-app-message-actions/utils.js +3 -5
- package/libEs5/components/Personalization/index.js +31 -22
- package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -3
- package/libEs5/components/Personalization/utils/createAsyncArray.js +2 -3
- package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +2 -3
- package/libEs5/components/Personalization/utils/surfaceUtils.js +4 -7
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +3 -5
- package/libEs5/components/Privacy/computeConsentHash.js +13 -14
- package/libEs5/components/Privacy/createComponent.js +16 -14
- package/libEs5/components/Privacy/createConsentHashStore.js +2 -3
- package/libEs5/components/Privacy/createConsentRequest.js +2 -3
- package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -3
- package/libEs5/components/Privacy/createStoredConsent.js +2 -3
- package/libEs5/components/Privacy/index.js +1 -2
- package/libEs5/components/Privacy/injectSendSetConsentRequest.js +2 -3
- package/libEs5/components/Privacy/parseConsentCookie.js +4 -5
- package/libEs5/components/Privacy/validateSetConsentOptions.js +2 -3
- package/libEs5/components/StreamingMedia/configValidators.js +24 -0
- package/libEs5/components/{MediaCollection → StreamingMedia}/constants/eventTypes.js +14 -5
- package/{libEs6/utils/debounce.js → libEs5/components/StreamingMedia/constants/playbackState.js} +9 -12
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaEventManager.js +27 -24
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaRequest.js +2 -3
- package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +57 -0
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaSessionCacheManager.js +21 -25
- package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +72 -0
- package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +90 -0
- package/libEs5/components/StreamingMedia/createTrackMediaSession.js +52 -0
- package/libEs5/components/StreamingMedia/index.js +69 -0
- package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +40 -0
- package/libEs5/components/{MediaCollection → StreamingMedia}/validateMediaSessionOptions.js +3 -4
- package/libEs5/constants/apiVersion.js +1 -2
- package/libEs5/constants/browser.js +7 -14
- package/libEs5/constants/consentPurpose.js +1 -2
- package/libEs5/constants/consentStatus.js +3 -6
- package/libEs5/constants/contentType.js +2 -4
- package/libEs5/constants/cookieNameKey.js +3 -6
- package/libEs5/constants/cookieNamePrefix.js +1 -2
- package/libEs5/constants/coreCommands.js +2 -4
- package/libEs5/constants/debugQueryParam.js +1 -2
- package/libEs5/constants/decisionProvider.js +1 -2
- package/libEs5/constants/domain.js +2 -4
- package/libEs5/constants/ecidNamespace.js +1 -2
- package/libEs5/constants/edgeBasePath.js +1 -2
- package/libEs5/constants/elementAttribute.js +1 -2
- package/libEs5/constants/eventType.js +5 -10
- package/libEs5/constants/handle.js +1 -2
- package/libEs5/constants/highEntropyUserAgentClientHints.js +1 -2
- package/libEs5/constants/httpHeaderNames.js +2 -4
- package/libEs5/constants/httpStatusCode.js +5 -10
- package/libEs5/constants/identityMapAuthenticatedState.js +3 -6
- package/libEs5/constants/legacyCookies.js +3 -6
- package/libEs5/constants/libraryName.js +1 -2
- package/libEs5/constants/libraryVersion.js +1 -2
- package/libEs5/constants/namespace.js +1 -2
- package/libEs5/constants/pageWideScope.js +1 -2
- package/libEs5/constants/propositionEventType.js +20 -21
- package/libEs5/constants/queryStringIdentityParam.js +1 -2
- package/libEs5/constants/schema.js +10 -20
- package/libEs5/constants/shadowSeparator.js +1 -2
- package/libEs5/constants/tagName.js +7 -14
- package/libEs5/core/buildAndValidateConfig.js +19 -17
- package/libEs5/core/componentCreators.js +9 -4
- package/libEs5/core/config/createConfig.js +1 -2
- package/libEs5/core/config/createCoreConfigs.js +2 -3
- package/libEs5/core/consent/createConsent.js +5 -3
- package/libEs5/core/consent/createConsentStateMachine.js +41 -13
- package/libEs5/core/createComponentRegistry.js +5 -3
- package/libEs5/core/createCookieTransfer.js +2 -3
- package/libEs5/core/createEvent.js +13 -14
- package/libEs5/core/createEventManager.js +8 -6
- package/libEs5/core/createInstanceFunction.js +2 -3
- package/libEs5/core/createLifecycle.js +2 -3
- package/libEs5/core/createLogController.js +2 -3
- package/libEs5/core/createLogger.js +2 -3
- package/libEs5/core/edgeNetwork/handleRequestFailure.js +2 -3
- package/libEs5/core/edgeNetwork/injectApplyResponse.js +2 -3
- package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +2 -3
- package/libEs5/core/edgeNetwork/injectGetLocationHint.js +2 -3
- package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +2 -3
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +2 -3
- package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +13 -14
- package/libEs5/core/index.js +3 -5
- package/libEs5/core/initializeComponents.js +2 -3
- package/libEs5/core/injectCreateResponse.js +2 -3
- package/libEs5/core/injectExecuteCommand.js +2 -3
- package/libEs5/core/injectHandleError.js +2 -3
- package/libEs5/core/injectShouldTransferCookie.js +2 -3
- package/libEs5/core/network/getRequestRetryDelay.js +2 -3
- package/libEs5/core/network/injectSendNetworkRequest.js +18 -16
- package/libEs5/core/network/isRequestRetryable.js +2 -3
- package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +2 -3
- package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +2 -3
- package/libEs5/core/network/requestMethods/injectSendXhrRequest.js +2 -3
- package/libEs5/core/validateCommandOptions.js +2 -3
- package/libEs5/index.js +2 -3
- package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +2 -3
- package/libEs5/utils/assign.js +1 -2
- package/libEs5/utils/assignConcatArrayValues.js +13 -14
- package/libEs5/utils/assignIf.js +2 -3
- package/libEs5/utils/clone.js +2 -3
- package/libEs5/utils/cookieJar.js +2 -3
- package/libEs5/utils/crc32.js +1 -2
- package/libEs5/utils/createCallbackAggregator.js +2 -3
- package/libEs5/utils/createLoggingCookieJar.js +8 -6
- package/libEs5/utils/createMerger.js +2 -3
- package/libEs5/utils/createSubscription.js +12 -13
- package/libEs5/utils/createTaskQueue.js +2 -3
- package/libEs5/utils/deduplicateArray.js +2 -3
- package/libEs5/utils/deepAssign.js +2 -3
- package/libEs5/utils/defer.js +2 -3
- package/libEs5/utils/dom/appendNode.js +2 -3
- package/libEs5/utils/dom/awaitSelector.js +7 -13
- package/libEs5/utils/dom/createNode.js +2 -3
- package/libEs5/utils/dom/isShadowSelector.js +2 -3
- package/libEs5/utils/dom/matchesSelector.js +2 -3
- package/libEs5/utils/dom/querySelectorAll.js +2 -3
- package/libEs5/utils/dom/removeNode.js +2 -3
- package/libEs5/utils/dom/selectNodes.js +2 -3
- package/libEs5/utils/dom/selectNodesWithShadow.js +2 -3
- package/libEs5/utils/endsWith.js +2 -3
- package/libEs5/utils/filterObject.js +17 -15
- package/libEs5/utils/find.js +2 -3
- package/libEs5/utils/fireImage.js +2 -3
- package/libEs5/utils/flatMap.js +2 -3
- package/libEs5/utils/flattenArray.js +2 -3
- package/libEs5/utils/flattenObject.js +4 -5
- package/libEs5/utils/getApexDomain.js +2 -3
- package/libEs5/utils/getBrowser.js +17 -16
- package/libEs5/utils/getLastArrayItems.js +2 -3
- package/libEs5/utils/getNamespacedCookieName.js +2 -3
- package/libEs5/utils/groupBy.js +2 -3
- package/libEs5/utils/includes.js +2 -3
- package/libEs5/utils/injectDoesIdentityCookieExist.js +2 -3
- package/libEs5/utils/injectFireReferrerHideableImage.js +14 -15
- package/libEs5/utils/injectStorage.js +2 -3
- package/libEs5/utils/intersection.js +2 -3
- package/libEs5/utils/isBlankString.js +2 -3
- package/libEs5/utils/isBoolean.js +2 -3
- package/libEs5/utils/isEmptyObject.js +2 -3
- package/libEs5/utils/isFunction.js +2 -3
- package/libEs5/utils/isInteger.js +2 -3
- package/libEs5/utils/isNamespacedCookieName.js +2 -3
- package/libEs5/utils/isNil.js +2 -3
- package/libEs5/utils/isNonEmptyArray.js +2 -3
- package/libEs5/utils/isNonEmptyString.js +2 -3
- package/libEs5/utils/isNumber.js +2 -3
- package/libEs5/utils/isObject.js +13 -14
- package/libEs5/utils/isString.js +2 -3
- package/libEs5/utils/isUnique.js +2 -3
- package/libEs5/utils/isValidRegExp.js +2 -3
- package/libEs5/utils/memoize.js +2 -3
- package/libEs5/utils/noop.js +1 -2
- package/libEs5/utils/padStart.js +2 -3
- package/libEs5/utils/parseUrl.js +17 -15
- package/libEs5/utils/prepareConfigOverridesForEdge.js +13 -14
- package/libEs5/utils/querystring.js +1 -2
- package/libEs5/utils/request/createAddIdentity.js +2 -3
- package/libEs5/utils/request/createDataCollectionRequest.js +2 -3
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +2 -3
- package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +2 -3
- package/libEs5/utils/request/createHasIdentity.js +2 -3
- package/libEs5/utils/request/createRequest.js +2 -3
- package/libEs5/utils/request/createRequestParams.js +2 -3
- package/libEs5/utils/request/createRequestPayload.js +2 -3
- package/libEs5/utils/sanitizeOrgIdForCookieName.js +2 -3
- package/libEs5/utils/stackError.js +2 -3
- package/libEs5/utils/startsWith.js +2 -3
- package/libEs5/utils/stringToBoolean.js +2 -3
- package/libEs5/utils/toArray.js +2 -3
- package/libEs5/utils/toError.js +2 -3
- package/libEs5/utils/toISOStringLocal.js +2 -3
- package/libEs5/utils/toInteger.js +2 -3
- package/libEs5/utils/updateErrorMessage.js +2 -3
- package/libEs5/utils/uuid.js +1 -2
- package/libEs5/utils/validateConfigOverride.js +1 -2
- package/libEs5/utils/validateIdentityMap.js +2 -3
- package/libEs5/utils/validation/booleanValidator.js +2 -3
- package/libEs5/utils/validation/callbackValidator.js +2 -3
- package/libEs5/utils/validation/createAnyOfValidator.js +2 -3
- package/libEs5/utils/validation/createArrayOfValidator.js +2 -3
- package/libEs5/utils/validation/createDefaultValidator.js +2 -3
- package/libEs5/utils/validation/createDeprecatedValidator.js +18 -19
- package/libEs5/utils/validation/createLiteralValidator.js +2 -3
- package/libEs5/utils/validation/createMapOfValuesValidator.js +2 -3
- package/libEs5/utils/validation/createMaximumValidator.js +2 -3
- package/libEs5/utils/validation/createMinimumValidator.js +2 -3
- package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +2 -3
- package/libEs5/utils/validation/createNonEmptyValidator.js +2 -3
- package/libEs5/utils/validation/createObjectOfValidator.js +2 -3
- package/libEs5/utils/validation/createUniqueItemsValidator.js +2 -3
- package/libEs5/utils/validation/createUniqueValidator.js +2 -3
- package/libEs5/utils/validation/domainValidator.js +2 -3
- package/libEs5/utils/validation/index.js +84 -92
- package/libEs5/utils/validation/integerValidator.js +2 -3
- package/libEs5/utils/validation/matchesRegexpValidator.js +2 -3
- package/libEs5/utils/validation/numberValidator.js +2 -3
- package/libEs5/utils/validation/regexpValidator.js +2 -3
- package/libEs5/utils/validation/requiredValidator.js +2 -3
- package/libEs5/utils/validation/stringValidator.js +2 -3
- package/libEs5/utils/validation/utils.js +5 -9
- package/libEs5/utils/values.js +2 -3
- package/libEs6/components/ActivityCollector/index.js +0 -1
- package/libEs6/components/Identity/index.js +2 -1
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +5 -1
- package/libEs6/components/Identity/injectAwaitIdentityCookie.js +7 -11
- package/libEs6/components/Identity/injectEnsureSingleIdentity.js +4 -3
- package/libEs6/components/LegacyMediaAnalytics/{media → constants}/constants.js +3 -2
- package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +240 -0
- package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +85 -0
- package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +5 -11
- package/libEs6/components/LegacyMediaAnalytics/index.js +40 -18
- package/libEs6/components/LibraryInfo/index.js +3 -1
- package/libEs6/components/Personalization/createComponent.js +5 -1
- package/libEs6/components/Personalization/createFetchDataHandler.js +16 -6
- package/libEs6/components/Personalization/createHandleConsentFlicker.js +26 -0
- package/libEs6/components/Personalization/createNotificationHandler.js +6 -2
- package/libEs6/components/Personalization/createOnDecisionHandler.js +1 -1
- package/libEs6/components/Personalization/handlers/createProcessRedirect.js +0 -1
- package/libEs6/components/Personalization/index.js +11 -3
- package/libEs6/components/StreamingMedia/configValidators.js +22 -0
- package/libEs6/components/StreamingMedia/constants/eventTypes.js +31 -0
- package/libEs6/components/{MediaCollection/constants/eventTypes.js → StreamingMedia/constants/playbackState.js} +4 -9
- package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaEventManager.js +23 -16
- package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +58 -0
- package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaSessionCacheManager.js +15 -19
- package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +69 -0
- package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +88 -0
- package/libEs6/components/StreamingMedia/createTrackMediaSession.js +51 -0
- package/libEs6/components/StreamingMedia/index.js +64 -0
- package/libEs6/components/{MediaCollection → StreamingMedia}/validateMediaEventOptions.js +4 -3
- package/libEs6/components/{MediaCollection → StreamingMedia}/validateMediaSessionOptions.js +1 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/core/componentCreators.js +19 -3
- package/libEs6/core/consent/createConsent.js +3 -0
- package/libEs6/core/consent/createConsentStateMachine.js +34 -0
- package/libEs6/core/createComponentRegistry.js +3 -0
- package/package.json +19 -4
- package/libEs5/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -272
- package/libEs5/components/MediaCollection/createHeartbeatEngine.js +0 -63
- 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/libEs6/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -276
- package/libEs6/components/MediaCollection/createHeartbeatEngine.js +0 -64
- package/libEs6/components/MediaCollection/createUpdateMediaSessionState.js +0 -30
- package/libEs6/components/MediaCollection/index.js +0 -164
- /package/libEs6/components/LegacyMediaAnalytics/{media → constants}/mediaKeysToXdmConverter.js +0 -0
- /package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaRequest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.hasExperienceData = exports.getExpirationDate = exports.getDecisionProvider = exports.getActivityId = exports.createSaveStorage = exports.createRestoreStorage = exports.createInMemoryStorage = exports.clearLocalStorage = void 0;
|
|
4
|
-
function _typeof(
|
|
4
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2023 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,7 +14,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
var createRestoreStorage = function createRestoreStorage(storage, storageKey) {
|
|
17
|
+
var createRestoreStorage = exports.createRestoreStorage = function createRestoreStorage(storage, storageKey) {
|
|
18
18
|
return function (defaultValue) {
|
|
19
19
|
var stored = storage.getItem(storageKey);
|
|
20
20
|
if (!stored) {
|
|
@@ -27,8 +27,7 @@ var createRestoreStorage = function createRestoreStorage(storage, storageKey) {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
var createSaveStorage = function createSaveStorage(storage, storageKey) {
|
|
30
|
+
var createSaveStorage = exports.createSaveStorage = function createSaveStorage(storage, storageKey) {
|
|
32
31
|
var prepareFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (value) {
|
|
33
32
|
return value;
|
|
34
33
|
};
|
|
@@ -36,14 +35,12 @@ var createSaveStorage = function createSaveStorage(storage, storageKey) {
|
|
|
36
35
|
storage.setItem(storageKey, JSON.stringify(prepareFn(value)));
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
|
-
exports.
|
|
40
|
-
var getExpirationDate = function getExpirationDate(retentionPeriod) {
|
|
38
|
+
var getExpirationDate = exports.getExpirationDate = function getExpirationDate(retentionPeriod) {
|
|
41
39
|
var expirationDate = new Date();
|
|
42
40
|
expirationDate.setDate(expirationDate.getDate() - retentionPeriod);
|
|
43
41
|
return expirationDate;
|
|
44
42
|
};
|
|
45
|
-
exports.
|
|
46
|
-
var getActivityId = function getActivityId(proposition) {
|
|
43
|
+
var getActivityId = exports.getActivityId = function getActivityId(proposition) {
|
|
47
44
|
var _proposition$scopeDet = proposition.scopeDetails,
|
|
48
45
|
scopeDetails = _proposition$scopeDet === void 0 ? {} : _proposition$scopeDet;
|
|
49
46
|
var _scopeDetails$activit = scopeDetails.activity,
|
|
@@ -51,8 +48,7 @@ var getActivityId = function getActivityId(proposition) {
|
|
|
51
48
|
var id = activity.id;
|
|
52
49
|
return id;
|
|
53
50
|
};
|
|
54
|
-
exports.
|
|
55
|
-
var createInMemoryStorage = function createInMemoryStorage() {
|
|
51
|
+
var createInMemoryStorage = exports.createInMemoryStorage = function createInMemoryStorage() {
|
|
56
52
|
var inMemoryStorage = {};
|
|
57
53
|
return {
|
|
58
54
|
getItem: function getItem(key) {
|
|
@@ -63,12 +59,10 @@ var createInMemoryStorage = function createInMemoryStorage() {
|
|
|
63
59
|
}
|
|
64
60
|
};
|
|
65
61
|
};
|
|
66
|
-
exports.
|
|
67
|
-
var clearLocalStorage = function clearLocalStorage(storage) {
|
|
62
|
+
var clearLocalStorage = exports.clearLocalStorage = function clearLocalStorage(storage) {
|
|
68
63
|
storage.clear();
|
|
69
64
|
};
|
|
70
|
-
exports.
|
|
71
|
-
var hasExperienceData = function hasExperienceData(xdm) {
|
|
65
|
+
var hasExperienceData = exports.hasExperienceData = function hasExperienceData(xdm) {
|
|
72
66
|
var _xdm$eventType = xdm.eventType,
|
|
73
67
|
eventType = _xdm$eventType === void 0 ? "" : _xdm$eventType,
|
|
74
68
|
_experience = xdm._experience;
|
|
@@ -80,11 +74,9 @@ var hasExperienceData = function hasExperienceData(xdm) {
|
|
|
80
74
|
}
|
|
81
75
|
return true;
|
|
82
76
|
};
|
|
83
|
-
exports.
|
|
84
|
-
var getDecisionProvider = function getDecisionProvider(proposition) {
|
|
77
|
+
var getDecisionProvider = exports.getDecisionProvider = function getDecisionProvider(proposition) {
|
|
85
78
|
var _proposition$scopeDet2 = proposition.scopeDetails,
|
|
86
79
|
scopeDetails = _proposition$scopeDet2 === void 0 ? {} : _proposition$scopeDet2;
|
|
87
80
|
var decisionProvider = scopeDetails.decisionProvider;
|
|
88
81
|
return decisionProvider;
|
|
89
|
-
};
|
|
90
|
-
exports.getDecisionProvider = getDecisionProvider;
|
|
82
|
+
};
|
|
@@ -12,7 +12,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
12
12
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
var _default = function _default(_ref) {
|
|
15
|
+
var _default = exports.default = function _default(_ref) {
|
|
16
16
|
var createEventMergeId = _ref.createEventMergeId;
|
|
17
17
|
return {
|
|
18
18
|
commands: {
|
|
@@ -21,5 +21,4 @@ var _default = function _default(_ref) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
};
|
|
25
|
-
exports.default = _default;
|
|
24
|
+
};
|
|
@@ -13,9 +13,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default() {
|
|
16
|
+
var _default = exports.default = function _default() {
|
|
17
17
|
return {
|
|
18
18
|
eventMergeId: (0, _utils.uuid)()
|
|
19
19
|
};
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
|
20
|
+
};
|
|
@@ -13,11 +13,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(payload) {
|
|
16
|
+
var _default = exports.default = function _default(payload) {
|
|
17
17
|
payload.mergeQuery({
|
|
18
18
|
identity: {
|
|
19
19
|
fetch: [_ecidNamespace.default]
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
};
|
|
23
|
-
exports.default = _default;
|
|
22
|
+
};
|
|
@@ -13,9 +13,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(payload, ecid) {
|
|
16
|
+
var _default = exports.default = function _default(payload, ecid) {
|
|
17
17
|
payload.addIdentity(_ecidNamespace.default, {
|
|
18
18
|
id: ecid
|
|
19
19
|
});
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
|
20
|
+
};
|
package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js
CHANGED
|
@@ -19,8 +19,7 @@ governing permissions and limitations under the License.
|
|
|
19
19
|
* @param {*} options The user event options to validate
|
|
20
20
|
* @returns {*} Validated options
|
|
21
21
|
*/
|
|
22
|
-
var _default = (0, _validation.objectOf)({
|
|
22
|
+
var _default = exports.default = (0, _validation.objectOf)({
|
|
23
23
|
url: (0, _validation.string)().required().nonEmpty(),
|
|
24
24
|
edgeConfigOverrides: _utils.validateConfigOverride
|
|
25
|
-
}).required().noUnknownFields();
|
|
26
|
-
exports.default = _default;
|
|
25
|
+
}).required().noUnknownFields();
|
|
@@ -4,8 +4,8 @@ exports.default = void 0;
|
|
|
4
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8
|
-
function _iterableToArrayLimit(
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
10
|
/*
|
|
11
11
|
Copyright 2022 Adobe. All rights reserved.
|
|
@@ -28,7 +28,7 @@ var getSeparator = function getSeparator(queryString) {
|
|
|
28
28
|
}
|
|
29
29
|
return "&";
|
|
30
30
|
};
|
|
31
|
-
var _default = function _default(_ref) {
|
|
31
|
+
var _default = exports.default = function _default(_ref) {
|
|
32
32
|
var dateProvider = _ref.dateProvider,
|
|
33
33
|
orgId = _ref.orgId;
|
|
34
34
|
return function (ecid, url) {
|
|
@@ -42,5 +42,4 @@ var _default = function _default(_ref) {
|
|
|
42
42
|
var separator = getSeparator(queryString);
|
|
43
43
|
return "" + location + queryString + separator + "adobe_mc=" + adobemc + fragment;
|
|
44
44
|
};
|
|
45
|
-
};
|
|
46
|
-
exports.default = _default;
|
|
45
|
+
};
|
|
@@ -18,5 +18,4 @@ var configValidators = (0, _validation.objectOf)({
|
|
|
18
18
|
thirdPartyCookiesEnabled: (0, _validation.boolean)().default(true),
|
|
19
19
|
idMigrationEnabled: (0, _validation.boolean)().default(true)
|
|
20
20
|
});
|
|
21
|
-
var _default = configValidators;
|
|
22
|
-
exports.default = _default;
|
|
21
|
+
var _default = exports.default = configValidators;
|
|
@@ -13,9 +13,6 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
var AMBIGUOUS = "ambiguous";
|
|
17
|
-
exports.
|
|
18
|
-
var
|
|
19
|
-
exports.AUTHENTICATED = AUTHENTICATED;
|
|
20
|
-
var LOGGED_OUT = "loggedOut";
|
|
21
|
-
exports.LOGGED_OUT = LOGGED_OUT;
|
|
16
|
+
var AMBIGUOUS = exports.AMBIGUOUS = "ambiguous";
|
|
17
|
+
var AUTHENTICATED = exports.AUTHENTICATED = "authenticated";
|
|
18
|
+
var LOGGED_OUT = exports.LOGGED_OUT = "loggedOut";
|
|
@@ -12,5 +12,4 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
12
12
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
var _default = 10080; // 7 days
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
var _default = exports.default = 10080; // 7 days
|
|
@@ -15,7 +15,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
15
15
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
16
|
governing permissions and limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
var _default = function _default(_ref) {
|
|
18
|
+
var _default = exports.default = function _default(_ref) {
|
|
19
19
|
var addEcidQueryToPayload = _ref.addEcidQueryToPayload,
|
|
20
20
|
addQueryStringIdentityToPayload = _ref.addQueryStringIdentityToPayload,
|
|
21
21
|
ensureSingleIdentity = _ref.ensureSingleIdentity,
|
|
@@ -94,5 +94,4 @@ var _default = function _default(_ref) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
};
|
|
98
|
-
exports.default = _default;
|
|
97
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
function
|
|
5
|
-
function
|
|
6
|
-
function
|
|
4
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
10
|
/*
|
|
8
11
|
Copyright 2019 Adobe. All rights reserved.
|
|
9
12
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,7 +21,7 @@ governing permissions and limitations under the License.
|
|
|
18
21
|
/**
|
|
19
22
|
* Handles migration of ECID to and from Visitor.js.
|
|
20
23
|
*/
|
|
21
|
-
var _default = function _default(_ref) {
|
|
24
|
+
var _default = exports.default = function _default(_ref) {
|
|
22
25
|
var config = _ref.config,
|
|
23
26
|
getEcidFromVisitor = _ref.getEcidFromVisitor,
|
|
24
27
|
apexDomain = _ref.apexDomain,
|
|
@@ -66,5 +69,4 @@ var _default = function _default(_ref) {
|
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
};
|
|
69
|
-
};
|
|
70
|
-
exports.default = _default;
|
|
72
|
+
};
|
|
@@ -14,11 +14,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
14
14
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
15
15
|
governing permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
var _default = function _default(response) {
|
|
17
|
+
var _default = exports.default = function _default(response) {
|
|
18
18
|
var identityResultPayloads = response.getPayloadsByType("identity:result");
|
|
19
19
|
var ecidPayload = (0, _utils.find)(identityResultPayloads, function (payload) {
|
|
20
20
|
return payload.namespace && payload.namespace.code === _ecidNamespace.default;
|
|
21
21
|
});
|
|
22
22
|
return ecidPayload ? ecidPayload.id : undefined;
|
|
23
|
-
};
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var sendEdgeNetworkRequest = _ref.sendEdgeNetworkRequest,
|
|
18
18
|
createIdentityRequestPayload = _ref.createIdentityRequestPayload,
|
|
19
19
|
createIdentityRequest = _ref.createIdentityRequest,
|
|
@@ -32,5 +32,4 @@ var _default = function _default(_ref) {
|
|
|
32
32
|
request: request
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
};
|
|
36
|
-
exports.default = _default;
|
|
35
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var payload = _ref.payload,
|
|
18
18
|
datastreamIdOverride = _ref.datastreamIdOverride;
|
|
19
19
|
return (0, _request.createRequest)({
|
|
@@ -26,5 +26,4 @@ var _default = function _default(_ref) {
|
|
|
26
26
|
return false;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
};
|
|
30
|
-
exports.default = _default;
|
|
29
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(namespaces) {
|
|
16
|
+
var _default = exports.default = function _default(namespaces) {
|
|
17
17
|
var content = {
|
|
18
18
|
query: {
|
|
19
19
|
identity: {
|
|
@@ -26,5 +26,4 @@ var _default = function _default(namespaces) {
|
|
|
26
26
|
addIdentity: (0, _request.createAddIdentity)(content),
|
|
27
27
|
hasIdentity: (0, _request.createHasIdentity)(content)
|
|
28
28
|
});
|
|
29
|
-
};
|
|
30
|
-
exports.default = _default;
|
|
29
|
+
};
|
|
@@ -19,10 +19,9 @@ governing permissions and limitations under the License.
|
|
|
19
19
|
* @param {*} options The user event options to validate
|
|
20
20
|
* @returns {*} Validated options
|
|
21
21
|
*/
|
|
22
|
-
var _default = (0, _validation.objectOf)({
|
|
22
|
+
var _default = exports.default = (0, _validation.objectOf)({
|
|
23
23
|
namespaces: (0, _validation.arrayOf)((0, _validation.literal)("ECID")).nonEmpty().uniqueItems().default(["ECID"]),
|
|
24
24
|
edgeConfigOverrides: _utils.validateConfigOverride
|
|
25
25
|
}).noUnknownFields().default({
|
|
26
26
|
namespaces: ["ECID"]
|
|
27
|
-
});
|
|
28
|
-
exports.default = _default;
|
|
27
|
+
});
|
|
@@ -86,7 +86,8 @@ var createIdentity = function createIdentity(_ref) {
|
|
|
86
86
|
});
|
|
87
87
|
var awaitIdentityCookie = (0, _injectAwaitIdentityCookie.default)({
|
|
88
88
|
doesIdentityCookieExist: doesIdentityCookieExist,
|
|
89
|
-
orgId: orgId
|
|
89
|
+
orgId: orgId,
|
|
90
|
+
logger: logger
|
|
90
91
|
});
|
|
91
92
|
var ensureSingleIdentity = (0, _injectEnsureSingleIdentity.default)({
|
|
92
93
|
doesIdentityCookieExist: doesIdentityCookieExist,
|
|
@@ -125,5 +126,4 @@ var createIdentity = function createIdentity(_ref) {
|
|
|
125
126
|
};
|
|
126
127
|
createIdentity.namespace = "Identity";
|
|
127
128
|
createIdentity.configValidators = _configValidators.default;
|
|
128
|
-
var _default = createIdentity;
|
|
129
|
-
exports.default = _default;
|
|
129
|
+
var _default = exports.default = createIdentity;
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var getLegacyEcid = _ref.getLegacyEcid,
|
|
18
18
|
addEcidToPayload = _ref.addEcidToPayload;
|
|
19
19
|
return function (payload) {
|
|
@@ -28,5 +28,4 @@ var _default = function _default(_ref) {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
};
|
|
32
|
-
exports.default = _default;
|
|
31
|
+
};
|
|
@@ -7,22 +7,22 @@ var _ecidNamespace = require("../../constants/ecidNamespace");
|
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11
|
-
function _iterableToArrayLimit(
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
Copyright 2023 Adobe. All rights reserved.
|
|
14
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
15
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
16
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
|
|
18
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
19
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
20
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
21
|
+
governing permissions and limitations under the License.
|
|
22
|
+
*/ // Example: adobe_mc=TS%3D1641432103%7CMCMID%3D77094828402023918047117570965393734545%7CMCORGID%3DFAF554945B90342F0A495E2C%40AdobeOrg
|
|
23
23
|
// Decoded: adobe_mc=TS=1641432103|MCMID=77094828402023918047117570965393734545|MCORGID=FAF554945B90342F0A495E2C@AdobeOrg
|
|
24
24
|
var LINK_TTL_SECONDS = 300; // 5 minute link time to live
|
|
25
|
-
var _default = function _default(_ref) {
|
|
25
|
+
var _default = exports.default = function _default(_ref) {
|
|
26
26
|
var locationSearch = _ref.locationSearch,
|
|
27
27
|
dateProvider = _ref.dateProvider,
|
|
28
28
|
orgId = _ref.orgId,
|
|
@@ -37,6 +37,10 @@ var _default = function _default(_ref) {
|
|
|
37
37
|
if (queryStringValue === undefined) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
+
if (Array.isArray(queryStringValue)) {
|
|
41
|
+
logger.warn("Found multiple adobe_mc query string paramters, only using the last one.");
|
|
42
|
+
queryStringValue = queryStringValue[queryStringValue.length - 1];
|
|
43
|
+
}
|
|
40
44
|
var properties = queryStringValue.split("|").reduce(function (memo, keyValue) {
|
|
41
45
|
var _keyValue$split = keyValue.split("="),
|
|
42
46
|
_keyValue$split2 = _slicedToArray(_keyValue$split, 2),
|
|
@@ -61,5 +65,4 @@ var _default = function _default(_ref) {
|
|
|
61
65
|
logger.info("Detected invalid or expired adobe_mc query string parameter.");
|
|
62
66
|
}
|
|
63
67
|
};
|
|
64
|
-
};
|
|
65
|
-
exports.default = _default;
|
|
68
|
+
};
|
|
@@ -12,9 +12,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
12
12
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
var _default = function _default(_ref) {
|
|
15
|
+
var _default = exports.default = function _default(_ref) {
|
|
16
16
|
var doesIdentityCookieExist = _ref.doesIdentityCookieExist,
|
|
17
|
-
orgId = _ref.orgId
|
|
17
|
+
orgId = _ref.orgId,
|
|
18
|
+
logger = _ref.logger;
|
|
18
19
|
/**
|
|
19
20
|
* Returns a promise that will be resolved once an identity cookie exists.
|
|
20
21
|
* If an identity cookie doesn't already exist, it should always exist after
|
|
@@ -30,16 +31,11 @@ var _default = function _default(_ref) {
|
|
|
30
31
|
} else {
|
|
31
32
|
// This logic assumes that the code setting the cookie is working as expected and that
|
|
32
33
|
// the cookie was missing from the response.
|
|
33
|
-
|
|
34
|
+
logger.warn("Identity cookie not found. This could be caused by any of the following issues:\n" + ("\t* The org ID " + orgId + " configured in Alloy doesn't match the org ID specified in the edge configuration.\n") + "\t* Experience edge was not able to set the identity cookie due to domain or cookie restrictions.\n" + "\t* The request was canceled by the browser and not fully processed.");
|
|
34
35
|
|
|
35
|
-
// Rejecting the promise will
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
reject(noIdentityCookieError);
|
|
39
|
-
|
|
40
|
-
// Throwing an error will reject the event command that initiated
|
|
41
|
-
// the request.
|
|
42
|
-
throw noIdentityCookieError;
|
|
36
|
+
// Rejecting the promise will tell queued events to still go out
|
|
37
|
+
// one at a time.
|
|
38
|
+
reject(new Error("Identity cookie not found."));
|
|
43
39
|
}
|
|
44
40
|
});
|
|
45
41
|
onRequestFailure(function () {
|
|
@@ -48,10 +44,9 @@ var _default = function _default(_ref) {
|
|
|
48
44
|
} else {
|
|
49
45
|
// The error from the request failure will be logged separately. Rejecting this here
|
|
50
46
|
// will tell ensureSingleIdentity to send the next request without identity
|
|
51
|
-
reject(new Error("
|
|
47
|
+
reject(new Error("Identity cookie not found."));
|
|
52
48
|
}
|
|
53
49
|
});
|
|
54
50
|
});
|
|
55
51
|
};
|
|
56
|
-
};
|
|
57
|
-
exports.default = _default;
|
|
52
|
+
};
|
|
@@ -13,7 +13,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
15
|
// TO-DOCUMENT: We queue subsequent requests until we have an identity cookie.
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var doesIdentityCookieExist = _ref.doesIdentityCookieExist,
|
|
18
18
|
setDomainForInitialIdentityPayload = _ref.setDomainForInitialIdentityPayload,
|
|
19
19
|
addLegacyEcidToPayload = _ref.addLegacyEcidToPayload,
|
|
@@ -55,9 +55,8 @@ var _default = function _default(_ref) {
|
|
|
55
55
|
if (obtainedIdentityPromise) {
|
|
56
56
|
// We don't have an identity cookie, but at least one request has
|
|
57
57
|
// been sent to get it. Konductor may set the identity cookie in the
|
|
58
|
-
// response. We will hold up this request until the
|
|
59
|
-
//
|
|
60
|
-
// identity was set.
|
|
58
|
+
// response. We will hold up this request until the previous request
|
|
59
|
+
// returns and awaitIdentityCookie confirms the identity was set.
|
|
61
60
|
logger.info("Delaying request while retrieving ECID from server.");
|
|
62
61
|
var previousObtainedIdentityPromise = obtainedIdentityPromise;
|
|
63
62
|
|
|
@@ -92,7 +91,10 @@ var _default = function _default(_ref) {
|
|
|
92
91
|
onResponse: onResponse,
|
|
93
92
|
onRequestFailure: onRequestFailure
|
|
94
93
|
});
|
|
94
|
+
// This prevents an un-caught promise in the console when the identity isn't set.
|
|
95
|
+
obtainedIdentityPromise.catch(function () {
|
|
96
|
+
return undefined;
|
|
97
|
+
});
|
|
95
98
|
return allowRequestToGoWithoutIdentity(request);
|
|
96
99
|
};
|
|
97
|
-
};
|
|
98
|
-
exports.default = _default;
|
|
100
|
+
};
|
|
@@ -12,10 +12,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
12
12
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
13
|
governing permissions and limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
var _default = function _default(_ref) {
|
|
15
|
+
var _default = exports.default = function _default(_ref) {
|
|
16
16
|
var processIdSyncs = _ref.processIdSyncs;
|
|
17
17
|
return function (response) {
|
|
18
18
|
return processIdSyncs(response.getPayloadsByType("identity:exchange"));
|
|
19
19
|
};
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
|
20
|
+
};
|
|
@@ -17,7 +17,7 @@ governing permissions and limitations under the License.
|
|
|
17
17
|
var createResultLogMessage = function createResultLogMessage(idSync, success) {
|
|
18
18
|
return "ID sync " + (success ? "succeeded" : "failed") + ": " + idSync.spec.url;
|
|
19
19
|
};
|
|
20
|
-
var _default = function _default(_ref) {
|
|
20
|
+
var _default = exports.default = function _default(_ref) {
|
|
21
21
|
var fireReferrerHideableImage = _ref.fireReferrerHideableImage,
|
|
22
22
|
logger = _ref.logger;
|
|
23
23
|
return function (idSyncs) {
|
|
@@ -38,5 +38,4 @@ var _default = function _default(_ref) {
|
|
|
38
38
|
});
|
|
39
39
|
})).then(_utils.noop);
|
|
40
40
|
};
|
|
41
|
-
};
|
|
42
|
-
exports.default = _default;
|
|
41
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var thirdPartyCookiesEnabled = _ref.thirdPartyCookiesEnabled,
|
|
18
18
|
areThirdPartyCookiesSupportedByDefault = _ref.areThirdPartyCookiesSupportedByDefault;
|
|
19
19
|
return function (request) {
|
|
@@ -30,5 +30,4 @@ var _default = function _default(_ref) {
|
|
|
30
30
|
request.setUseIdThirdPartyDomain();
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
};
|
|
34
|
-
exports.default = _default;
|
|
33
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var logger = _ref.logger;
|
|
18
18
|
return new Promise(function (resolve, reject) {
|
|
19
19
|
if ((0, _utils.isObject)(window.adobe) && (0, _utils.isObject)(window.adobe.optIn)) {
|
|
@@ -31,5 +31,4 @@ var _default = function _default(_ref) {
|
|
|
31
31
|
resolve();
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
};
|
|
35
|
-
exports.default = _default;
|
|
34
|
+
};
|
|
@@ -13,8 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(window) {
|
|
16
|
+
var _default = exports.default = function _default(window) {
|
|
17
17
|
var Visitor = window.Visitor;
|
|
18
18
|
return (0, _utils.isFunction)(Visitor) && (0, _utils.isFunction)(Visitor.getInstance) && Visitor;
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
19
|
+
};
|
|
@@ -13,7 +13,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
13
13
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
14
14
|
governing permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
var _default = function _default(_ref) {
|
|
16
|
+
var _default = exports.default = function _default(_ref) {
|
|
17
17
|
var logger = _ref.logger,
|
|
18
18
|
orgId = _ref.orgId,
|
|
19
19
|
awaitVisitorOptIn = _ref.awaitVisitorOptIn;
|
|
@@ -46,5 +46,4 @@ var _default = function _default(_ref) {
|
|
|
46
46
|
}
|
|
47
47
|
return Promise.resolve();
|
|
48
48
|
};
|
|
49
|
-
};
|
|
50
|
-
exports.default = _default;
|
|
49
|
+
};
|