@adobe/alloy 2.20.0-alpha.0 → 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 +157 -158
- 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/{MediaCollection/createMediaRequestPayload.js → StreamingMedia/configValidators.js} +11 -16
- package/libEs5/components/StreamingMedia/constants/eventTypes.js +34 -0
- package/libEs5/components/StreamingMedia/constants/playbackState.js +19 -0
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaEventManager.js +46 -53
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaRequest.js +2 -3
- package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +57 -0
- package/libEs5/components/{MediaCollection → StreamingMedia}/createMediaSessionCacheManager.js +23 -27
- 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 +90 -93
- package/libEs5/utils/validation/integerValidator.js +2 -3
- package/{libEs6/components/MediaCollection/createMediaRequestPayload.js → libEs5/utils/validation/matchesRegexpValidator.js} +9 -14
- 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 +11 -10
- package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +240 -0
- package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +85 -0
- package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +157 -150
- 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/{MediaCollection/createUpdateMediaSessionState.js → Personalization/createHandleConsentFlicker.js} +14 -24
- 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/StreamingMedia/constants/playbackState.js +16 -0
- package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaEventManager.js +44 -44
- package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +58 -0
- package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaSessionCacheManager.js +17 -21
- 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/libEs6/utils/validation/index.js +6 -1
- package/libEs6/utils/{debounce.js → validation/matchesRegexpValidator.js} +5 -10
- package/package.json +19 -4
- package/libEs5/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -272
- package/libEs5/components/MediaCollection/createHeartbeatEngine.js +0 -55
- package/libEs5/components/MediaCollection/createUpdateMediaSessionState.js +0 -35
- package/libEs5/components/MediaCollection/index.js +0 -159
- package/libEs5/components/MediaCollection/mediaConstants/mediaEvents.js +0 -13
- package/libEs5/components/MediaCollection/validateMediaEventOptions.js +0 -35
- package/libEs6/components/LegacyMediaAnalytics/createMediaAnalyticsTracker.js +0 -276
- package/libEs6/components/MediaCollection/createHeartbeatEngine.js +0 -57
- package/libEs6/components/MediaCollection/index.js +0 -158
- package/libEs6/components/MediaCollection/mediaConstants/mediaEvents.js +0 -9
- /package/libEs6/components/LegacyMediaAnalytics/{media → constants}/mediaKeysToXdmConverter.js +0 -0
- /package/libEs6/components/{MediaCollection → StreamingMedia}/createMediaRequest.js +0 -0
|
@@ -34,22 +34,26 @@ var _createProcessInAppMessage = require("./handlers/createProcessInAppMessage")
|
|
|
34
34
|
var _initInAppMessageActionsModules = require("./in-app-message-actions/initInAppMessageActionsModules");
|
|
35
35
|
var _createRedirect = require("./dom-actions/createRedirect");
|
|
36
36
|
var _createNotificationHandler = require("./createNotificationHandler");
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
var _createHandleConsentFlicker = require("./createHandleConsentFlicker");
|
|
38
|
+
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); }
|
|
39
|
+
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; }
|
|
40
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
41
|
+
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); } /*
|
|
42
|
+
Copyright 2019 Adobe. All rights reserved.
|
|
43
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
45
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
|
|
47
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
48
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
49
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
50
|
+
governing permissions and limitations under the License.
|
|
51
|
+
*/
|
|
48
52
|
var createPersonalization = function createPersonalization(_ref) {
|
|
49
|
-
var _schemaProcessors;
|
|
50
53
|
var config = _ref.config,
|
|
51
54
|
logger = _ref.logger,
|
|
52
|
-
eventManager = _ref.eventManager
|
|
55
|
+
eventManager = _ref.eventManager,
|
|
56
|
+
consent = _ref.consent;
|
|
53
57
|
var targetMigrationEnabled = config.targetMigrationEnabled,
|
|
54
58
|
prehidingStyle = config.prehidingStyle;
|
|
55
59
|
var collect = (0, _createCollect.default)({
|
|
@@ -73,21 +77,21 @@ var createPersonalization = function createPersonalization(_ref) {
|
|
|
73
77
|
createProposition: createProposition
|
|
74
78
|
});
|
|
75
79
|
var executeRedirect = (0, _createRedirect.default)(window);
|
|
76
|
-
var schemaProcessors = (
|
|
80
|
+
var schemaProcessors = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, schema.DEFAULT_CONTENT_ITEM, _processDefaultContent.default), schema.DOM_ACTION, (0, _createProcessDomAction.default)({
|
|
77
81
|
modules: domActionsModules,
|
|
78
82
|
logger: logger,
|
|
79
83
|
storeClickMetrics: storeClickMetrics
|
|
80
|
-
})),
|
|
84
|
+
})), schema.HTML_CONTENT_ITEM, (0, _createProcessHtmlContent.default)({
|
|
81
85
|
modules: domActionsModules,
|
|
82
86
|
logger: logger
|
|
83
|
-
})),
|
|
87
|
+
})), schema.REDIRECT_ITEM, (0, _createProcessRedirect.default)({
|
|
84
88
|
logger: logger,
|
|
85
89
|
executeRedirect: executeRedirect,
|
|
86
90
|
collect: collect
|
|
87
|
-
})),
|
|
91
|
+
})), schema.MESSAGE_IN_APP, (0, _createProcessInAppMessage.default)({
|
|
88
92
|
modules: (0, _initInAppMessageActionsModules.default)(collect),
|
|
89
93
|
logger: logger
|
|
90
|
-
}))
|
|
94
|
+
}));
|
|
91
95
|
var processPropositions = (0, _createProcessPropositions.default)({
|
|
92
96
|
schemaProcessors: schemaProcessors,
|
|
93
97
|
logger: logger
|
|
@@ -101,7 +105,8 @@ var createPersonalization = function createPersonalization(_ref) {
|
|
|
101
105
|
mergeQuery: _event.mergeQuery,
|
|
102
106
|
processPropositions: processPropositions,
|
|
103
107
|
createProposition: createProposition,
|
|
104
|
-
notificationHandler: notificationHandler
|
|
108
|
+
notificationHandler: notificationHandler,
|
|
109
|
+
consent: consent
|
|
105
110
|
});
|
|
106
111
|
var onClickHandler = (0, _createOnClickHandler.default)({
|
|
107
112
|
mergeDecisionsMeta: _event.mergeDecisionsMeta,
|
|
@@ -127,6 +132,10 @@ var createPersonalization = function createPersonalization(_ref) {
|
|
|
127
132
|
createProposition: createProposition,
|
|
128
133
|
notificationHandler: notificationHandler
|
|
129
134
|
});
|
|
135
|
+
var handleConsentFlicker = (0, _createHandleConsentFlicker.default)({
|
|
136
|
+
showContainers: _flicker.showContainers,
|
|
137
|
+
consent: consent
|
|
138
|
+
});
|
|
130
139
|
return (0, _createComponent.default)({
|
|
131
140
|
getPageLocation: getPageLocation,
|
|
132
141
|
logger: logger,
|
|
@@ -141,7 +150,8 @@ var createPersonalization = function createPersonalization(_ref) {
|
|
|
141
150
|
setTargetMigration: setTargetMigration,
|
|
142
151
|
mergeDecisionsMeta: _event.mergeDecisionsMeta,
|
|
143
152
|
renderedPropositions: renderedPropositions,
|
|
144
|
-
onDecisionHandler: onDecisionHandler
|
|
153
|
+
onDecisionHandler: onDecisionHandler,
|
|
154
|
+
handleConsentFlicker: handleConsentFlicker
|
|
145
155
|
});
|
|
146
156
|
};
|
|
147
157
|
createPersonalization.namespace = "Personalization";
|
|
@@ -149,5 +159,4 @@ createPersonalization.configValidators = (0, _validation.objectOf)({
|
|
|
149
159
|
prehidingStyle: (0, _validation.string)().nonEmpty(),
|
|
150
160
|
targetMigrationEnabled: (0, _validation.boolean)().default(false)
|
|
151
161
|
});
|
|
152
|
-
var _default = createPersonalization;
|
|
153
|
-
exports.default = _default;
|
|
162
|
+
var _default = exports.default = createPersonalization;
|
|
@@ -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 decisions = _ref.decisions,
|
|
18
18
|
renderAttempted = _ref.renderAttempted;
|
|
19
19
|
return decisions.map(function (decision) {
|
|
@@ -21,5 +21,4 @@ var _default = function _default(_ref) {
|
|
|
21
21
|
renderAttempted: renderAttempted
|
|
22
22
|
}, decision);
|
|
23
23
|
});
|
|
24
|
-
};
|
|
25
|
-
exports.default = _default;
|
|
24
|
+
};
|
|
@@ -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() {
|
|
15
|
+
var _default = exports.default = function _default() {
|
|
16
16
|
var latest = Promise.resolve([]);
|
|
17
17
|
return {
|
|
18
18
|
concat: function concat(promise) {
|
|
@@ -35,5 +35,4 @@ var _default = function _default() {
|
|
|
35
35
|
return oldLatest;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
};
|
|
39
|
-
exports.default = _default;
|
|
38
|
+
};
|
|
@@ -12,8 +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() {
|
|
15
|
+
var _default = exports.default = function _default() {
|
|
16
16
|
var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
|
|
17
17
|
return doc.location.href.indexOf("adobe_authoring_enabled") !== -1;
|
|
18
|
-
};
|
|
19
|
-
exports.default = _default;
|
|
18
|
+
};
|
|
@@ -48,13 +48,12 @@ var parseSurface = function parseSurface(surfaceString) {
|
|
|
48
48
|
var stringifySurface = function stringifySurface(surface) {
|
|
49
49
|
return "" + surface.surfaceType + _surface.SURFACE_TYPE_DELIMITER + surface.authority + (surface.path || "") + (surface.fragment || "");
|
|
50
50
|
};
|
|
51
|
-
var buildPageSurface = function buildPageSurface(getPageLocation) {
|
|
51
|
+
var buildPageSurface = exports.buildPageSurface = function buildPageSurface(getPageLocation) {
|
|
52
52
|
var location = getPageLocation();
|
|
53
53
|
var host = location.host.toLowerCase();
|
|
54
54
|
var path = location.pathname;
|
|
55
55
|
return _surface.WEB + _surface.SURFACE_TYPE_DELIMITER + host + normalizePath(path);
|
|
56
56
|
};
|
|
57
|
-
exports.buildPageSurface = buildPageSurface;
|
|
58
57
|
var expandFragmentSurface = function expandFragmentSurface(surface, getPageLocation) {
|
|
59
58
|
return (0, _utils.startsWith)(surface, _surface.FRAGMENT_DELIMITER) ? buildPageSurface(getPageLocation) + surface : surface;
|
|
60
59
|
};
|
|
@@ -85,11 +84,10 @@ var validateSurface = function validateSurface(surface, getPageLocation, logger)
|
|
|
85
84
|
}
|
|
86
85
|
return parsed;
|
|
87
86
|
};
|
|
88
|
-
var isPageWideSurface = function isPageWideSurface(scope) {
|
|
87
|
+
var isPageWideSurface = exports.isPageWideSurface = function isPageWideSurface(scope) {
|
|
89
88
|
return !!scope && scope.indexOf(_surface.WEB + _surface.SURFACE_TYPE_DELIMITER) === 0 && scope.indexOf(_surface.FRAGMENT_DELIMITER) === -1;
|
|
90
89
|
};
|
|
91
|
-
exports.
|
|
92
|
-
var normalizeSurfaces = function normalizeSurfaces() {
|
|
90
|
+
var normalizeSurfaces = exports.normalizeSurfaces = function normalizeSurfaces() {
|
|
93
91
|
var surfaces = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
94
92
|
var getPageLocation = arguments.length > 1 ? arguments[1] : undefined;
|
|
95
93
|
var logger = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -98,5 +96,4 @@ var normalizeSurfaces = function normalizeSurfaces() {
|
|
|
98
96
|
}).filter(function (surface) {
|
|
99
97
|
return !(0, _utils.isNil)(surface);
|
|
100
98
|
}).map(stringifySurface);
|
|
101
|
-
};
|
|
102
|
-
exports.normalizeSurfaces = normalizeSurfaces;
|
|
99
|
+
};
|
|
@@ -14,11 +14,10 @@ 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 EMPTY_PROPOSITIONS = {
|
|
17
|
+
var EMPTY_PROPOSITIONS = exports.EMPTY_PROPOSITIONS = {
|
|
18
18
|
propositions: []
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var _default = function _default(_ref) {
|
|
20
|
+
var _default = exports.default = function _default(_ref) {
|
|
22
21
|
var logger = _ref.logger,
|
|
23
22
|
options = _ref.options;
|
|
24
23
|
var applyPropositionsOptionsValidator = (0, _validation.objectOf)({
|
|
@@ -32,5 +31,4 @@ var _default = function _default(_ref) {
|
|
|
32
31
|
logger.warn("Invalid options for applyPropositions. No propositions will be applied.", e);
|
|
33
32
|
return EMPTY_PROPOSITIONS;
|
|
34
33
|
}
|
|
35
|
-
};
|
|
36
|
-
exports.default = _default;
|
|
34
|
+
};
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
4
|
var _utils = require("../../utils");
|
|
5
|
-
function _typeof(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
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); } /*
|
|
6
|
+
Copyright 2020 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
16
|
// serialize an object with a consistent ordering
|
|
17
17
|
var serialize = function serialize(obj) {
|
|
18
18
|
if (Array.isArray(obj)) {
|
|
@@ -28,7 +28,6 @@ var serialize = function serialize(obj) {
|
|
|
28
28
|
}
|
|
29
29
|
return obj;
|
|
30
30
|
};
|
|
31
|
-
var _default = function _default(obj) {
|
|
31
|
+
var _default = exports.default = function _default(obj) {
|
|
32
32
|
return (0, _utils.crc32)(JSON.stringify(serialize(obj)));
|
|
33
|
-
};
|
|
34
|
-
exports.default = _default;
|
|
33
|
+
};
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
4
|
var _consentPurpose = require("../../constants/consentPurpose");
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
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); }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
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); } /*
|
|
9
|
+
Copyright 2020 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 = exports.default = function _default(_ref) {
|
|
17
20
|
var storedConsent = _ref.storedConsent,
|
|
18
21
|
taskQueue = _ref.taskQueue,
|
|
19
22
|
defaultConsent = _ref.defaultConsent,
|
|
@@ -82,5 +85,4 @@ var _default = function _default(_ref) {
|
|
|
82
85
|
onRequestFailure: readCookieIfQueueEmpty
|
|
83
86
|
}
|
|
84
87
|
};
|
|
85
|
-
};
|
|
86
|
-
exports.default = _default;
|
|
88
|
+
};
|
|
@@ -21,7 +21,7 @@ var getKey = function getKey(_ref) {
|
|
|
21
21
|
version = _ref.version;
|
|
22
22
|
return standard + "." + version;
|
|
23
23
|
};
|
|
24
|
-
var _default = function _default(_ref2) {
|
|
24
|
+
var _default = exports.default = function _default(_ref2) {
|
|
25
25
|
var storage = _ref2.storage;
|
|
26
26
|
return {
|
|
27
27
|
clear: function clear() {
|
|
@@ -56,5 +56,4 @@ var _default = function _default(_ref2) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
};
|
|
60
|
-
exports.default = _default;
|
|
59
|
+
};
|
|
@@ -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() {
|
|
16
|
+
var _default = exports.default = function _default() {
|
|
17
17
|
var content = {};
|
|
18
18
|
var payload = (0, _request.createRequestPayload)({
|
|
19
19
|
content: content,
|
|
@@ -30,5 +30,4 @@ var _default = function _default() {
|
|
|
30
30
|
content.consent = consent;
|
|
31
31
|
};
|
|
32
32
|
return payload;
|
|
33
|
-
};
|
|
34
|
-
exports.default = _default;
|
|
33
|
+
};
|
|
@@ -14,7 +14,7 @@ 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(_ref) {
|
|
17
|
+
var _default = exports.default = function _default(_ref) {
|
|
18
18
|
var parseConsentCookie = _ref.parseConsentCookie,
|
|
19
19
|
orgId = _ref.orgId,
|
|
20
20
|
cookieJar = _ref.cookieJar;
|
|
@@ -28,5 +28,4 @@ var _default = function _default(_ref) {
|
|
|
28
28
|
cookieJar.remove(consentCookieName);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
};
|
|
32
|
-
exports.default = _default;
|
|
31
|
+
};
|
|
@@ -14,7 +14,7 @@ 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(_ref) {
|
|
17
|
+
var _default = exports.default = function _default(_ref) {
|
|
18
18
|
var createConsentRequestPayload = _ref.createConsentRequestPayload,
|
|
19
19
|
createConsentRequest = _ref.createConsentRequest,
|
|
20
20
|
sendEdgeNetworkRequest = _ref.sendEdgeNetworkRequest,
|
|
@@ -44,5 +44,4 @@ var _default = function _default(_ref) {
|
|
|
44
44
|
// point unless necessary.
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
};
|
|
48
|
-
exports.default = _default;
|
|
47
|
+
};
|
|
@@ -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 2019 Adobe. All rights reserved.
|
|
@@ -24,7 +24,7 @@ governing permissions and limitations under the License.
|
|
|
24
24
|
* @returns {Object} An object where the keys are purpose names and the values
|
|
25
25
|
* are the consent status for the purpose.
|
|
26
26
|
*/
|
|
27
|
-
var _default = function _default(cookieValue) {
|
|
27
|
+
var _default = exports.default = function _default(cookieValue) {
|
|
28
28
|
var categoryPairs = cookieValue.split(";");
|
|
29
29
|
return categoryPairs.reduce(function (consentByPurpose, categoryPair) {
|
|
30
30
|
var _categoryPair$split = categoryPair.split("="),
|
|
@@ -34,5 +34,4 @@ var _default = function _default(cookieValue) {
|
|
|
34
34
|
consentByPurpose[name] = value;
|
|
35
35
|
return consentByPurpose;
|
|
36
36
|
}, {});
|
|
37
|
-
};
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
};
|
|
@@ -14,9 +14,8 @@ 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 = (0, _validation.objectOf)({
|
|
17
|
+
var _default = exports.default = (0, _validation.objectOf)({
|
|
18
18
|
consent: (0, _validation.arrayOf)((0, _validation.anything)()).required().nonEmpty(),
|
|
19
19
|
identityMap: _utils.validateIdentityMap,
|
|
20
20
|
edgeConfigOverrides: _utils.validateConfigOverride
|
|
21
|
-
}).noUnknownFields().required();
|
|
22
|
-
exports.default = _default;
|
|
21
|
+
}).noUnknownFields().required();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
var
|
|
4
|
+
var _validation = require("../../utils/validation");
|
|
5
5
|
/*
|
|
6
|
-
Copyright
|
|
6
|
+
Copyright 2024 Adobe. All rights reserved.
|
|
7
7
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
9
9
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -13,17 +13,12 @@ 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 =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
content.events.push(event);
|
|
26
|
-
};
|
|
27
|
-
return payload;
|
|
28
|
-
};
|
|
29
|
-
exports.default = _default;
|
|
16
|
+
var _default = exports.default = (0, _validation.objectOf)({
|
|
17
|
+
streamingMedia: (0, _validation.objectOf)({
|
|
18
|
+
channel: (0, _validation.string)().nonEmpty().required(),
|
|
19
|
+
playerName: (0, _validation.string)().nonEmpty().required(),
|
|
20
|
+
appVersion: (0, _validation.string)(),
|
|
21
|
+
mainPingInterval: (0, _validation.number)().minimum(10).maximum(50).default(10),
|
|
22
|
+
adPingInterval: (0, _validation.number)().minimum(1).maximum(10).default(10)
|
|
23
|
+
}).noUnknownFields()
|
|
24
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = exports.default = {
|
|
16
|
+
PAUSE: "media.pauseStart",
|
|
17
|
+
PLAY: "media.play",
|
|
18
|
+
BUFFER_START: "media.bufferStart",
|
|
19
|
+
AD_START: "media.adStart",
|
|
20
|
+
Ad_BREAK_START: "media.adBreakStart",
|
|
21
|
+
SESSION_END: "media.sessionEnd",
|
|
22
|
+
SESSION_START: "media.sessionStart",
|
|
23
|
+
SESSION_COMPLETE: "media.sessionComplete",
|
|
24
|
+
PING: "media.ping",
|
|
25
|
+
AD_BREAK_COMPLETE: "media.adBreakComplete",
|
|
26
|
+
AD_COMPLETE: "media.adComplete",
|
|
27
|
+
AD_SKIP: "media.adSkip",
|
|
28
|
+
BITRATE_CHANGE: "media.bitrateChange",
|
|
29
|
+
CHAPTER_COMPLETE: "media.chapterComplete",
|
|
30
|
+
CHAPTER_SKIP: "media.chapterSkip",
|
|
31
|
+
CHAPTER_START: "media.chapterStart",
|
|
32
|
+
ERROR: "media.error",
|
|
33
|
+
STATES_UPDATE: "media.statesUpdate"
|
|
34
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.default = void 0;
|
|
4
|
+
/*
|
|
5
|
+
Copyright 2024 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 = exports.default = {
|
|
16
|
+
MAIN: "main",
|
|
17
|
+
AD: "ad",
|
|
18
|
+
COMPLETED: "completed"
|
|
19
|
+
};
|